[ARM] Tweak HONOR_REG_ALLOC_ORDER
[official-gcc.git] / gcc / ChangeLog
blob8118e14b5633b57d4bd26c47640bc053c7eff366
1 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
3         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
4         size.
6 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9         vectorizable_live_operation.
10         (vectorizable_live_operation): Adjust parameters.
11         * tree-vect-stmts.c (vect_init_vector,
12         vect_gen_widened_results_half): Fix typo in function comment.
13         (can_vectorize_live_stmts): Adjust function comment.
14         Adjust parameters.  Adjust call to vectorizable_live_operation.
15         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
16         (vect_transform_stmt): Adjust function comment.  Adjust call to
17         can_vectorize_live_stmts.
18         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
20 2019-10-11  Richard Biener  <rguenther@suse.de>
22         PR tree-optimization/90883
23         PR tree-optimization/91091
24         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
25         alias-sets both for recording VN table entries and continuing
26         walking after translating through copies.  Handle same-sized
27         reads from SSA names by returning the plain SSA name.
28         (eliminate_dom_walker::eliminate_stmt): Properly handle
29         non-size precision stores in redundant store elimination.
31 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
33         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
34         (ggc_collect): Dump later to not interfere with release_page dump.
35         (ggc_trim): New function.
36         * ggc-none.c (ggc_trim): New.
37         * ggc.h (ggc_trim): Declare.
39 2019-10-11  Richard Biener  <rguenther@suse.de>
41         PR tree-optimization/92066
42         PR tree-optimization/92046
43         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
44         Fix bogus cost model check.
46 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
48         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
49         (LANG_HOOKS_DECLS): Add it.
50         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
51         update comment for omp_is_optional_argument.
52         * omp-general.c (omp_is_allocatable_or_ptr): New.
53         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
54         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
55         Fortran's optional arguments and allocatable/pointer scalars
56         with use_device_addr.
58 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
60         PR target/77918
61         * config/s390/2827.md: Add new opcodes.
62         * config/s390/2964.md: Likewise.
63         * config/s390/3906.md: Likewise.
64         * config/s390/8561.md: Likewise.
65         * config/s390/s390-builtins.def (s390_vfchesb): Use
66         the new vec_cmpgev4sf_quiet_nocc.
67         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
68         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
69         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
70         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
71         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
72         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
73         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
74         * config/s390/s390-modes.def (CCSFPS): New mode.
75         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
76         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
77         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
78         (s390_expand_vec_compare): Use non-signaling patterns where
79         necessary.
80         (s390_reverse_condition): Support CCSFPS.
81         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
82         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
83         (asm_fcmp_op): Likewise.
84         (*smaxv2df3_vx): Use pattern for quiet comparison.
85         (*sminv2df3_vx): Likewise.
86         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
87         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
88         (vec_cmpgt<mode>_quiet_nocc): Likewise.
89         (vec_cmplt<mode>_quiet_nocc): New expander.
90         (vec_cmpge<mode>_quiet_nocc): New pattern.
91         (vec_cmple<mode>_quiet_nocc): New expander.
92         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
93         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
94         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
95         (*vec_cmpge<mode>_signaling_nocc): Likewise.
96         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
97         (vec_cmpungt<mode>): New expander.
98         (vec_cmpunge<mode>): Likewise.
99         (vec_cmpuneq<mode>): Use quiet patterns.
100         (vec_cmpltgt<mode>): Allow only on z14+.
101         (vec_cmpordered<mode>): Use quiet patterns.
102         (vec_cmpunordered<mode>): Likewise.
103         (VEC_CMP_EXPAND): Add ungt and unge.
105 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
107         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
108         parameter.
109         * lto-streamer-out.c: Include tree-dfa.h.
110         (output_cfg): Do not use cfun.
111         (lto_prepare_function_for_streaming): New.
112         (output_function): Do not push cfun; do not initialize loop optimizer.
113         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
114         * passes.c (ipa_write_summaries): Use it.
115         (ipa_write_optimization_summaries): Do not modify bodies.
116         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
117         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
118         * tree-ssa-dse.c (pass_dse::execute): Update use of
119         renumber_gimple_stmt_uids.
120         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
122 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
124         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
125         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
127 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
129         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
130         macros.
131         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
132         Also define DFP macros for these conditions.
133         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
134         DEC128_SUBNORMAL_MIN): Do not define.
135         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
136         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
138 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
139             Sandra Loosemore  <sandra@codesourcery.com>
141         PR middle-end/26241
142         * doc/lto.texi (IPA): Reference to the IPA passes.
143         * doc/passes.texi (Pass manager): Add node IPA passes and
144           description for each IPA pass.
146 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
148         * ipa-reference.c: Do not include splay-tree.h
149         (reference_vars_to_consider): Turn to hash map.
150         (get_static_name, ipa_init, analyze_function, propagate,
151         stream_out_bitmap, ipa_reference_write_optimization_summary,
152         ipa_reference_write_optimization_summary): Update.
154 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
156         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
158 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
160         * config/darwin.c: Lookup Objective C metadata and force indirection
161         for IVAR refs.
163 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
165         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
166         addresses.
167         (mem_operand_gpr): Add check for prefixed addresses.
168         (mem_operand_ds_form): Add check for prefixed addresses.
169         (rs6000_legitimate_offset_address_p): If we support prefixed
170         addresses, check for a 34-bit offset instead of 16-bit.
171         (rs6000_legitimate_address_p): Add check for prefixed addresses.
172         Do not allow load/store with update if the address is prefixed.
173         (rs6000_mode_dependent_address):  If we support prefixed
174         addresses, check for a 34-bit offset instead of 16-bit.
176 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
178         PR target/77918
179         * config/s390/vector.md (vcond_comparison_operator): New
180         predicate.
181         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
183 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
185         PR 87488
186         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
187         -D.
188         * configure.ac (--with-documentation-root-url): New option.
189         * configure: Regenerate.
190         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
191         option URL, add it as a new string field of the diagnostic option.
192         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
193         (print_option_information): If get_option_url is non-NULL, call
194         it, and if the result is non-NULL, potentially emit an escape
195         sequence to markup the option text with the resulting URL.
196         * diagnostic.h (diagnostic_context::get_option_url): New callback.
197         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
198         example of JSON output.
199         * opts-diagnostic.h (get_option_url): New decl.
200         * opts.c (get_option_url): New function.
201         * toplev.c (general_init): Initialize the get_option_url callback.
203 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
205         PR 87488
206         * common.opt (fdiagnostics-urls=): New option.
207         (diagnostic-url.h): Add SourceInclude.
208         (diagnostic_url_rule): New enum.
209         * diagnostic-color.c: Include "diagnostic-url.h".
210         (diagnostic_urls_enabled_p): New function.
211         * diagnostic-url.h: New file.
212         * diagnostic.c: Include "diagnostic-url.h".
213         (diagnostic_urls_init): New function.
214         * diagnostic.h (diagnostic_urls_init): New decl.
215         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
216         -fdiagnostics-urls to the list.
217         (-fdiagnostics-urls): New option.
218         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
219         (driver::global_initializations): Call diagnostic_urls_init.
220         * opts-global.c (init_options_once): Likewise.
221         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
222         * pretty-print.c (pretty_printer::pretty_printer): Initialize
223         show_urls.
224         (pp_begin_url): New function.
225         (pp_end_url): New function.
226         (selftest::test_urls): New selftest.
227         (selftest::pretty_print_c_tests): Call it.
228         * pretty-print.h (pretty_printer::show_urls): New field.
229         (pp_begin_url): New decl.
230         (pp_end_url): New decl.
232 2019-10-10  Uroš Bizjak  <ubizjak@gmail.com>
234         PR target/92022
235         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
237 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
239         PR target/88630
240         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
241         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
242         also for TARGET_FPU_SH4_300.
243         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
244         TARGET_SH4_300.
245         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
246         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
247         (*negsf2_i): Split into ...
248         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
249         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
250         (**abssf2_i): Split into ...
251         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
252         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
253         (*negdf2_i): Split into ...
254         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
255         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
256         (**abssf2_i): Split into ...
257         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
259 2019-10-10  Richard Biener  <rguenther@suse.de>
261         PR middle-end/92046
262         * opts.c (finish_options): Do not influence global --params
263         from options that are adjustable per function.
264         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
265         Apply --param adjustment based on active cost-model.
266         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
267         further store-sinking when vectorization or if-conversion
268         are not enabled.
270 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
272         PR middle-end/92037
273         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
274         rather than ggc_alloc_cleared to alloc symbol table.
275         * toplev.c (general_init): Likewise.
276         * cgraph.h (symbol_table): Explicitly construct every field.
278 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
280         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
281         (PF_Z15): ... this.
282         * config.gcc: Add z15 as option for --with-arch and --with-tune
283         configure switches.
284         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
285         error reporting for unsupported builtins.
286         * config/s390/s390-opts.h (enum processor_type): Rename
287         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
288         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
289         * config/s390/driver-native.c (s390_host_detect_local_cpu):
290         Likewise.
291         * config/s390/s390-builtins.def: Likewise.
292         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
293         (s390_expand_builtin): Add missing check for unsupported builtins.
294         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
295         (s390_rtx_costs): Likewise.
296         (s390_get_sched_attrmask): Rename arch13 to z15.
297         (s390_get_unit_mask): Likewise.
298         (s390_is_fpd): Likewise.
299         (s390_is_fxd): Likewise.
300         * config/s390/s390.h (enum processor_flags): Likewise.
301         * config/s390/s390.md: Likewise.
302         * config/s390/vector.md: Likewise.
303         * config/s390/vx-builtins.md: Likewise.
304         * config/s390/s390.opt: Add z15 to processor_type value.
306 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
308         PR target/91035
309         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
310         prototype.
311         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
312         ("split_stack_data", "split_stack_call")
313         ("split_stack_call_<mode>", "split_stack_cond_call")
314         ("split_stack_cond_call_<mode>"): Remove.
315         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
316         insn definition.
317         * config/s390/s390.c (s390_output_split_stack_data): New function.
318         (s390_expand_split_stack_prologue): Use the merged expander.
320 2019-10-09  Martin Sebor  <msebor@redhat.com>
322         PR tree-optimization/90879
323         * builtins.c (check_access): Avoid using maxbound when null.
324         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
325         * doc/invoke.texi (-Wstring-compare): Document new warning option.
326         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
327         conditional.
328         (get_range_strlen): Overwrite initial maxbound when non-null.
329         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
330         changes.
331         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
332         (used_only_for_zero_equality): New function.
333         (handle_builtin_memcmp): Call it.
334         (determine_min_objsize): Return an integer instead of tree.
335         (get_len_or_size, strxcmp_eqz_result): New functions.
336         (maybe_warn_pointless_strcmp): New function.
337         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
338         between a longer string and a smaller array.
339         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
341 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
343         * config/darwin.c (darwin_override_options): Make the check for
344         Objective-C ABI version more specific for 64bit code.
346 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
348         * config/darwin.c (machopic_indirect_data_reference): Set flag to
349         indicate that the new symbol is an indirection.
350         (machopic_indirect_call_target): Likewise.
351         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
352         (MACHO_SYMBOL_INDIRECTION_P): New.
353         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
355 2019-10-08  Jason Merrill  <jason@redhat.com>
357         * doc/invoke.texi: Document -fconcepts-ts.
359 2019-10-09  Richard Biener  <rguenther@suse.de>
361         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
362         allow stmts other than GIMPLE_ASSIGN in nested cycles.
364 2019-10-08  Richard Biener  <rguenther@suse.de>
366         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
367         (_stmt_vec_info::force_single_cycle): Likewise.
368         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
369         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
370         * tree-vect-loop.c (vectorizable_reduction): Set
371         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
372         (vect_transform_reduction): Use them to remove redundant code.
373         (vect_transform_cycle_phi): Likewise.
375 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
377         PR tree-optimization/90836
378         * gcc/match.pd (popcount): New pattern.
380 2019-10-08  Martin Sebor  <msebor@redhat.com>
382         PR middle-end/92026
383         PR middle-end/92014
384         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
385         again once nbytes has been set.  Set the access size when not yet set.
387 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
389         * config/darwin.c (machopic_select_section): Remove dead code for
390         old Objective-C section selection method, replace with unreachable.
392 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
394         * config/darwin.c (machopic_indirect_data_reference): Check for
395         required indirections before making direct access to defined
396         values.
397         (machopic_output_indirection): Place the indirected pointes for
398         required indirections into the non-lazy symbol pointers section.
399         (darwin_encode_section_info):
400         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
401         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
403 2019-10-08  Uroš Bizjak  <ubizjak@gmail.com>
405         PR target/91994
406         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
407         instead of ALL_SSE_REG to check if function call preserves some
408         256-bit SSE registers.
410 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
412         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
413         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
414         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
416 2019-10-08  Richard Biener  <rguenther@suse.de>
418         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
419         (_stmt_vec_info::is_reduc_info): Add.
420         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
421         (vectorizable_condition): Remove.
422         (vectorizable_shift): Likewise.
423         (vectorizable_reduction): Adjust.
424         (info_for_reduction): New.
425         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
426         (vect_analyze_scalar_cycles_1): ... here.
427         (vect_analyze_loop_operations): Adjust.
428         (needs_fold_left_reduction_p): Simplify for single caller.
429         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
430         for nested cycles not part of double reductions.
431         (vect_model_reduction_cost): Pass in the reduction type.
432         (info_for_reduction): New function.
433         (vect_create_epilog_for_reduction): Use it, access reduction
434         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
435         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
436         (vectorize_fold_left_reduction): Remove pointless assert.
437         (vectorizable_reduction): Analyze the full reduction when
438         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
439         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
440         stmt code-generation to vectorizable_* in most cases.  Verify
441         code-generation only for cases handled by
442         vect_transform_reductuon.
443         (vect_transform_reduction): Use info_for_reduction to get at
444         reduction meta.  Simplify.
445         (vect_transform_cycle_phi): Likewise.
446         (vectorizable_live_operation): Likewise.
447         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
448         at the PHI node for STMT_VINFO_REDUC_TYPE.
449         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
450         longer necessary code.
451         * tree-vect-stmts.c (vectorizable_shift): Make static again.
452         (vectorizable_condition): Likewise.  Get at reduction related
453         info via info_for_reduction.
454         (vect_analyze_stmt): Adjust.
455         (vect_transform_stmt): Likewise.
456         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
457         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
459 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
461         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
462         -fno-fp-int-builtin-inexact default for C2X.
464 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
465             Richard Biener  <rguenther@suse.de>
467         PR tree-optimization/91532
468         * tree-if-conv.c: Include tree-ssa-dse.h.
469         (ifcvt_local_dce): Change param from bb to loop,
470         and call dse_classify_store.
471         (tree_if_conversion): Pass loop instead of loop->header as arg
472         to ifcvt_local_dce.
473         * tree-ssa-dse.c: Include tree-ssa-dse.h.
474         (delete_dead_or_redundant_assignment): Remove static qualifier from
475         declaration, and add prototype in tree-ssa-dse.h.
476         (dse_store_status): Move to tree-ssa-dse.h.
477         (dse_classify_store): Remove static qualifier and add new tree param
478         stop_at_vuse, and add prototype in tree-ssa-dse.h.
479         * tree-ssa-dse.h: New header.
481 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
483         * config/darwin.c (machopic_output_indirection): Don't put
484         hidden symbol indirections into the .data section, use the
485         non-lazy symbol pointers section as normal.
486         (darwin_encode_section_info): Record if a symbol is hidden.
487         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
488         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
490 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
492         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
493         predicates instead of accessing bits directly.
494         (machopic_indirect_call_target): Likewise.
495         (machopic_output_indirection): Likewise.
496         (darwin_encode_section_info): Improve description.  Use renamed
497         symbol flags.  Use predicate macros for variables and functions.
498         * config/darwin.h:
499         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
500         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
501         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
502         (MACHO_SYMBOL_VARIABLE_P): New.
503         (MACHO_SYMBOL_DEFINED_P):New.
504         (MACHO_SYMBOL_STATIC_P): New.
505         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
506         (SYMBOL_FLAG_SUBT_DEP): New.
507         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
509 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
511         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
512         (msp430_expand_epilogue): Likewise.
513         * config/msp430/predicates.md: Likewise.
514         * config/msp430/msp430.md: Likewise.
515         Replace blocks of 8 spaces with tabs.
517 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
519         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
520         * config/msp430/msp430.c (msp430_split_addsi): New.
521         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
522         a block of C code for splitting addsi.
524 2019-10-07  Uroš Bizjak  <ubizjak@gmail.com>
526         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
527         ix86_expand_rounddf_32): Reorder functions.
528         * config/i386/i386-protos.h: Update.
530 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
532         * config.in: Regenerate.
533         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
534         Add new "Yx" constraint.
535         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
536         function.
537         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
538         prototype.
539         * config/msp430/msp430.c (msp430_option_override): Allow the lower
540         code/data region to be selected in the small memory model.
541         (msp430_section_attr): Don't warn if the "section" and "lower"
542         attributes are used together.
543         (msp430_handle_generic_attribute): Likewise.
544         (msp430_var_in_low_mem): New function.
545         (TARGET_ENCODE_SECTION_INFO): Define.
546         (msp430_encode_section_info): New function.
547         (gen_prefix): Return early in the small memory model.
548         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
549         ".lower" prefix if -m{code,data}-region=lower have been passed.
550         (msp430_output_aligned_decl_common): Emit common symbols when
551         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
552         set.
553         (TARGET_ASM_FILE_END): Define.
554         (msp430_file_end): New function.
555         (msp430_do_not_relax_short_jumps): Allow relaxation when
556         function will be in the lower region.
557         (msp430_op_not_in_high_mem): New function.
558         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
559         the 'X' operand selector.
560         Clarify comment for 'x' operand selector.
561         * config/msp430/msp430.h (LINK_SPEC): Propagate
562         -m{code,data}-region to the linker via spec function
563         msp430_propagate_region_opt.
564         (msp430_propagate_region_opt): New prototype.
565         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
566         (SYMBOL_FLAG_LOW_MEM): Define.
567         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
568         selector.
569         (zero_extendqihi2): Fix operand number used by "%X" selector.
570         (zero_extendqisi2): Likewise.
571         (zero_extendhisi2): Likewise.
572         (movqi): Use "Yx" constraint in place of "%X" operand selector.
573         (movhi): Likewise.
574         (addqi3): Likewise.
575         (addhi3): Likewise.
576         (addsi3): Likewise.
577         (addhi3_cy): Likewise.
578         (addchi4_cy): Likewise.
579         (subqi3): Likewise.
580         (subhi3): Likewise.
581         (subsi3): Likewise.
582         (bic<mode>3): Likewise.
583         (and<mode>3): Likewise.
584         (ior<mode>3): Likewise.
585         (xor<mode>3): Likewise.
586         (slli_1): Add missing "%X" operand selector.
587         (slll_1): Likewise.
588         (slll_2): Likewise.
589         (srai_1): Likewise.
590         (sral_1): Likewise.
591         (sral_2): Likewise.
592         (srli_1): Likewise.
593         (srll_1): Likewise.
594         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
595         selector.
596         (cbranchhi4_real): Likewise.
597         (cbranchqi4_reversed): Likewise.
598         (cbranchhi4_reversed): Likewise.
599         (*bitbranch<mode>4): Likewise.
600         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
601         * config/msp430/msp430.opt (mcode-region=): Set default to
602         MSP430_REGION_LOWER. Improve docstring.
603         (mdata-region=): Likewise.
604         (muse-lower-region-prefix): New option.
605         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
606         mdata-region=none multilib.
607         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
608         mdata-region=none multilib.
609         MULTILIB_EXCEPTIONS: Remove.
610         MULTILIB_REQUIRED: Define.
611         * configure: Regenerate.
612         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
613         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
614         * doc/extend.texi: Clarify comment for {upper,lower,either}
615         function attributes.
616         Add separate description for "lower" variable attribute.
618 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
620         PR target/77918
621         * optabs-tree.c (vcond_icode_p): New function.
622         (vcond_eq_icode_p): Likewise.
623         (expand_vec_cond_expr_p): Use vcond_icode_p and
624         vcond_eq_icode_p.
625         * optabs.c (can_vcond_compare_p): New function.
626         * optabs.h (can_vcond_compare_p): Likewise.
628 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
630         PR target/77918
631         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
632         caller passes a non-trapping condition.
633         (is_gimple_condexpr): Allow trapping conditions.
634         (is_gimple_condexpr_1): New helper function.
635         (is_gimple_condexpr_for_cond): New function, acts like old
636         is_gimple_condexpr.
637         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
638         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
639         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
640         * gimplify.c (gimplify_cond_expr): Use
641         is_gimple_condexpr_for_cond.
642         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
643         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
644         VEC_COND_EXPR.
645         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
646         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
647         is_gimple_condexpr_for_cond, remove pointless tmp check
648         (forward_propagate_into_cond): Remove pointless tmp check.
650 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
652         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
653         match that of other gsi_next_* functions.  Adjust the comment.
654         (gsi_start_nonvirtual_phis): New function.
655         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
656         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
658 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
660         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
661         setjmp situation here.  Fix a verb's ending: "the exact variables or
662         elements for which there are warnings depends" -> "... depend".
664 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
666         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
668 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
670         * ipa-prop.c (ipa_vr::nonzero_p): New.
671         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
672         non-zero range.
673         * ipa-prop.h (class ipa_vr): Add nonzero_p.
674         * tree-vrp.c (range_has_numeric_bounds_p): New.
675         (range_int_cst_p): Use range_has_numeric_bounds_p.
676         (get_range_op_handler): New.
677         (supported_types_p): New.
678         (defined_ranges_p): New.
679         (drop_undefines_to_varying): New.
680         (range_fold_binary_symbolics_p): New.
681         (range_fold_unary_symbolics_p): New.
682         (range_fold_unary_expr): Extract out into above functions.
683         (range_fold_binary_expr): Same.
684         (value_range_base::normalize_addresses): New.
685         (value_range_base::normalize_symbolics): Normalize addresses.
686         * tree-vrp.h (class value_range_base): Add normalize_addresses.
688 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
690         * tree-vrp.c (value_range_base::singleton_p): Use
691         value_range_base::num_pairs instead of vrp_val_is* to check
692         if a range has one sub-range.
694 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
696         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
697         DEF is not a true earlyclobber but is tied to a specific input
698         operand, and so is effectively earlyclobber wrt inputs that have
699         different values.
700         (make_early_clobber_and_input_conflicts): Pass this case to the above.
702 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
704         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
705         (pod_mode): Mark operators likewise.
706         (scalar_int_mode): Mark non-default constructors and
707         operators with CONSTEXPR.
708         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
709         (fixed_size_mode): Likewise.
711 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
713         PR target/91994
714         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
715         and wrap the unspec_volatile in a parallel.
716         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
717         the unspec_volatile.
718         * config/i386/predicates.md (vzeroupper_pattern): Expect the
719         unspec_volatile to be wrapped in a parallel.
720         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
721         (ix86_add_reg_usage_to_vzerouppers): New functions.
722         (rest_of_handle_insert_vzeroupper): Use them to add register
723         usage information to the vzeroupper instructions.
725 2019-10-07  Richard Biener  <rguenther@suse.de>
727         PR tree-optimization/91975
728         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
729         handle invariants.
731 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
733         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
734         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
736 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
738         * config/darwin.c (darwin_override_options): Adjust objective-c
739         ABI version error messages to avoid punctuation and contracted
740         negations.
742 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
744         * ipa-inline.c: Fix type; compute size rather than self_size
745         for size of caller function.
747 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
749         PR target/59888
750         * config/darwin.c (darwin_rodata_section): Add relocation flag,
751         choose const_data section for constants with relocations.
752         (machopic_select_section): Pass relocation flag to
753         darwin_rodata_section ().
755 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
757         PR tree-optimization/91734
758         * generic-match-head.c: Include fold-const-call.h.
759         * match.pd (sqrt(x) cmp c): Check the boundary value and
760         in case inexact computation of c*c affects comparison of the boundary,
761         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
762         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
763         for -frounding-math.  For c2, try the next smaller or larger floating
764         point constant depending on comparison code and if it has the same
765         sqrt as c2, use it instead of c2.
767 2019-10-04  Martin Sebor  <msebor@redhat.com>
769         PR middle-end/91977
770         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
771         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
772         uninitialized objects.
774 2019-10-04  Martin Sebor  <msebor@redhat.com>
776         * builtins.c (compute_objsize): Add an argument.
777         * tree-object-size.c (addr_object_size): Same.
778         (compute_builtin_object_size): Same.
779         * tree-object-size.h (compute_builtin_object): Same.
781 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
783         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
785 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
787         * match.pd (sinh (x) / cosh (x)): New simplification rule.
789 2019-10-04  Martin Jambor  <mjambor@suse.cz>
791         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
792         fntype when switching to calling memcpy instead of memset.
794 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
796         * hash-table.h (hash_table::empty_slow): Don't assign
797         size_t values to int variables.
799 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
801         * expr.c (convert_mode_scalar): Remove shadowing local var.
802         (emit_block_move): Rename local vars.
803         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
804         (emit_push_insn): Rename local vars.
805         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
806         shadowing local vars.
807         (store_constructor): Remove shadowing local vars.  Rename local var.
808         (store_field, expand_cond_expr_using_cmove,
809         expand_expr_real_2): Remove shadowing local vars.
810         (expand_expr_real_1,
811         do_store_flag): Remove shadowing local vars.  Rename local vars.
813 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
815         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
817 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
819         * genmatch.c (commutate): Rename local var.
820         (lower_cond): Reuse local var.
821         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
822         dt_operand::gen, dt_operand::gen_gimple_expr,
823         dt_simplify::gen): Add a param.  Rename generated vars.
824         (decision_tree::insert_operand,
825         (capture_info::walk_match, capture_info::walk_result,
826         capture_info::walk_c_expr): Rename local vars.
827         (expr::gen_transform): Rename generated vars.
828         Use snprintf.  Rename local vars.
829         (capture::gen_transform, dt_operand::get_name,
830         dt_operand::gen_opname): Rename generated vars.
831         (write_predicate): Adjust call to gen_kids.
832         (parser::get_internal_capture_id): Rename generated vars.
833         (parser::parse_expr): Rename local vars.
834         (parser::parse_if): Remove local var.
835         (parser::parse_pattern, add_operator): Rename local vars.
837 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
839         * builtins.def (DEF_C2X_BUILTIN): New macro.
840         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
841         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
842         (strndup): Use DEF_C2X_BUILTIN.
843         * coretypes.h (enum function_class): Add function_c2x_misc.
845 2019-10-04  Maya Rashish  <coypu@sdf.org>
847         * ira-color.c (update_costs_from_allocno): Call
848         ira_init_register_move_cost_if_necessary.
850 2019-10-04  Jeff Law  <law@redhat.com>
852         * config/h8300/h8300.md (cpymemsi): Disable.
853         (movmd, movmd_internal_<mode>, movstr, movsd):
854         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
855         (movmd splitter, movsd splitter): Likewise.
857         * range-op.cc (range_tests): Avoid two tests when ints and
858         shorts are the same size.
860 2019-10-04  Richard Biener  <rguenther@suse.de>
862         PR lto/91968
863         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
864         BLOCK_VARS.
866 2019-10-04  Richard Biener  <rguenther@suse.de>
868         PR tree-optimization/91982
869         * tree-vect-loop.c (vectorizable_live_operation): Also guard
870         against EXTRACT_LAST_REDUCTION.
871         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
873 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
875         * range-op.o (value_range_from_overflowed_bounds): Rename from
876         adjust_overflow_bound.
877         (value_range_with_overflow): Rename from
878         create_range_with_overflow.
879         (create_possibly_reversed_range): Adjusted for above renames.
880         (operator_*::wi_fold): Same.
881         (cross_product_operator::wi_cross_productor): Same.
883 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
885         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
886         -Wshadow=compatible-local): Fix description.
887         Add an example where -Wshadow=compatible-local does not
888         warn.
890 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
892         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
894         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
895         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
897 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
899         * expr.c (emit_block_move_hints): Slightly cleaner fix to
900         can_move_by_pieces issue.
902 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
904         PR target/87243
905         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
906         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
907         is available and the user has not set one on the command line.
909 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
911         PR target/91769
912         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
913         instead of REGNO equality check on addr.reg.
915 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
917         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
918         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
919         * doc/invoke.texi (inline-heuristics-hint-percent,
920         inline-heuristics-hint-percent-O2): Document.
921         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
922         hint attribute.
923         (can_inline_edge_by_limits_p): Use it.
925 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
927         * config/arm/arm.c (arm_print_value): Use real_to_decimal
928         to print CONST_DOUBLEs.
930 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
932         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
933         * ipa-prop.c (ipcp_free_transformation_sum): New function.
934         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
936 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
938         * Makefile.in (OBJS): Add range.o and range-op.o.
939         Remove wide-int-range.o.
940         * function-tests.c (test_ranges): New.
941         (function_tests_c_tests): Call test_ranges.
942         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
943         range_fold_unary_expr instead of extract_range_from_unary_expr.
944         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
945         * range-op.cc: New file.
946         * range-op.h: New file.
947         * range.cc: New file.
948         * range.h: New file.
949         * selftest.h (range_tests): New prototype.
950         * ssa.h: Include range.h.
951         * tree-vrp.c (value_range_base::value_range_base): New
952         constructors.
953         (value_range_base::singleton_p): Do not call
954         ranges_from_anti_range until sure we will need to.
955         (value_range_base::type): Rename gcc_assert to
956         gcc_checking_assert.
957         (vrp_val_is_max): New argument.
958         (vrp_val_is_min): Same.
959         (wide_int_range_set_zero_nonzero_bits): Move from
960         wide-int-range.cc.
961         (extract_range_into_wide_ints): Remove.
962         (extract_range_from_multiplicative_op): Remove.
963         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
964         from extract_range_from_binary_expr.
965         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
966         from extract_range_from_binary_expr.
967         (extract_range_from_binary_expr): Remove.
968         (normalize_for_range_ops): New.
969         (range_fold_binary_expr): New.
970         (range_fold_unary_expr): New.
971         (value_range_base::num_pairs): New.
972         (value_range_base::lower_bound): New.
973         (value_range_base::upper_bound): New.
974         (value_range_base::upper_bound): New.
975         (value_range_base::contains_p): New.
976         (value_range_base::invert): New.
977         (value_range_base::union_): New.
978         (value_range_base::intersect): New.
979         (range_compatible_p): New.
980         (value_range_base::operator==): New.
981         (determine_value_range_1): Call range_fold_*expr instead of
982         extract_range_from_*expr.
983         * tree-vrp.h (class value_range_base): Add new constructors.
984         Add methods for union_, intersect, operator==, contains_p,
985         num_pairs, lower_bound, upper_bound, invert.
986         (vrp_val_is_min): Add handle_pointers argument.
987         (vrp_val_is_max): Same.
988         (extract_range_from_unary_expr): Remove.
989         (extract_range_from_binary_expr): Remove.
990         (range_fold_unary_expr): New.
991         (range_fold_binary_expr): New.
992         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
993         range_fold_binary_expr instead of extract_range_from_binary_expr.
994         (vr_values::extract_range_basic): Same.
995         (vr_values::extract_range_from_unary_expr): Call
996         range_fold_unary_expr instead of extract_range_from_unary_expr.
997         * wide-int-range.cc: Remove.
998         * wide-int-range.h: Remove.
1000 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
1002         * config/rs6000/rs6000.c (mem_operand_gpr): Use
1003         SIGNED_16BIT_OFFSET_EXTRA_P macro.
1004         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1005         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1006         macro.
1008 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
1010         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1011         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1012         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1013         * glimits.h: Likewise.
1015 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
1017         PR rtl-optimization/91976
1018         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1019         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
1020         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
1022 2019-10-02  Martin Sebor  <msebor@redhat.com>
1024         PR tree-optimization/80936
1025         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1027 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
1029         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1030         instead of reg_class_contents[ALL_REGS].
1032 2019-09-30  Jason Merrill  <jason@redhat.com>
1034         Add some hash_map_safe_* functions like vec_safe_*.
1035         * hash-map.h (default_hash_map_size): New variable.
1036         (create_ggc): Use it as default argument.
1037         (hash_map_maybe_create, hash_map_safe_get)
1038         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1040 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
1042         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1043         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1044         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1045         (can_inline_edge_by_limits_p): Use it.
1046         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1047         (want_inline_small_function_p): Use O2 bounds.
1048         (edge_badness): LIkewise.
1049         * opts.c (default_options): Add OPT_finline_functions.
1050         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1051         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1052         New parameters.
1053         * doc/invoke.texi (-finline-functions): Update documentation.
1054         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1055         inline-min-speedup-O2): Document.
1056         (early-inlining-insns-O2): Simplify docs.
1058 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
1060         PR rtl-optimization/87047
1061         * ifcvt.c (average_cost): New static function.  Use it...
1062         (noce_process_if_block): ... here.
1064 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
1066         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1067         * config/rs6000/rs6000-string.c (expand_block_move): Add
1068         might_overlap parm.
1069         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1070         (cpymemsi): Add might_overlap parm to expand_block_move() call.
1072 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
1074         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1075         (expand_builtin_memcpy): Use might_overlap parm.
1076         (expand_builtin_mempcpy_args): Use might_overlap parm.
1077         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1078         (expand_builtin_memory_copy_args): Add might_overlap parm.
1079         * expr.c (emit_block_move_via_cpymem): Rename to
1080         emit_block_move_via_pattern, add might_overlap parm, use cpymem
1081         or movmem optab as appropriate.
1082         (emit_block_move_hints): Add might_overlap parm, do the right
1083         thing for might_overlap==true.
1084         * expr.h (emit_block_move_hints): Update prototype.
1086 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1088         * tree-eh.h (unsplit_eh_edges): Declare.
1089         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1090         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1091         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1092         (struct store_immediate_info): Add lp_nr field.
1093         (store_immediate_info::store_immediate_info): Add NR2 parameter and
1094         initialize lp_nr with it.
1095         (struct merged_store_group): Add lp_nr and only_constants fields.
1096         (merged_store_group::merged_store_group): Initialize them.
1097         (merged_store_group::can_be_merged_into): Deal with them.
1098         (pass_store_merging): Rename terminate_and_release_chain into
1099         terminate_and_process_chain.
1100         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1101         renaming and remove useless assertions.
1102         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1103         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1104         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1105         instead of always recomputing it and compare lp_nr.
1106         (imm_store_chain_info::output_merged_store): If the group is in an
1107         active EH region, register new stores if they can throw.  Moreover,
1108         if the insertion has created new basic blocks, adjust the PHI nodes
1109         of the post landing pad.
1110         (imm_store_chain_info::output_merged_stores): If the original stores
1111         are in an active EH region, deregister them.
1112         (lhs_valid_for_store_merging_p): Prettify.
1113         (adjust_bit_pos): New function extracted from...
1114         (mem_valid_for_store_merging): ...here.  Use it for the base address
1115         and also for the offset if it is the addition of a constant.
1116         (lp_nr_for_store): New function.
1117         (pass_store_merging::process_store): Change return type to bool.
1118         Call lp_nr_for_store to initialize the store info.  Propagate the
1119         return status of various called functions to the return value.
1120         (store_valid_for_store_merging_p): New predicate.
1121         (enum basic_block_status): New enumeration.
1122         (get_status_for_store_merging): New function.
1123         (pass_store_merging::execute): If the function can throw and catch
1124         non-call exceptions, unsplit the EH edges on entry and clean up the
1125         CFG on exit if something changed.  Call get_status_for_store_merging
1126         for every basic block and keep the chains open across basic blocks
1127         when possible.  Terminate and process open chains at the end, if any.
1129 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
1131         * reginfo.c (globalize_reg): Fix shadowed variable in
1132         function_abis walk.
1134 2019-10-02  Martin Jambor  <mjambor@suse.cz>
1136         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1137         do not compute some stuff when set.
1138         (cgraph_node::create_edge): Likewise.
1139         (cgraph_node::create_indirect_edge): Renamed last parameter to
1140         coning_p and flipped its meaning, don't even calculate
1141         inline_failed when set.
1142         * cgraph.h (cgraph_node::create_edge): Add new parameter.
1143         (symbol_table::::create_edge): Likewise.
1144         (cgraph_node::create_indirect_edge): Rename last parameter, flip
1145         the default value.
1146         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1147         call graph edge creating functions.
1149 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1151         PR c++/91222
1152         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1153         namespace types.
1155 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
1157         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1159 2019-10-02  Richard Biener  <rguenther@suse.de>
1161         * tree-vectorizer.h (vect_transform_reduction): Declare.
1162         * tree-vect-stmts.c (vect_transform_stmt): Use it.
1163         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1164         stmt transform to ...
1165         (vect_transform_reduction): ... this.
1167 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
1169         * omp-low.c (lower_omp_target): Dereference optional argument
1170         to work with the right pointer.
1172 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
1174         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1175         false.
1176         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1177         * langhooks.h (omp_is_optional_argument): New hook.
1178         * omp-general.c (omp_is_optional_argument): New.
1179         * omp-general.h (omp_is_optional_argument): New declaration.
1180         * omp-low.c (lower_omp_target): Create temporary for received value
1181         and take the address for new_var if the original variable was a
1182         DECL_BY_REFERENCE.  Use size of referenced object when a
1183         pass-by-reference optional argument used as argument to firstprivate.
1185 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
1187         PR tree-optimization/91940
1188         * tree-vect-patterns.c: Include tree-vector-builder.h and
1189         vec-perm-indices.h.
1190         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1191         unpromoting the argument back to uint16_t, or by converting into a
1192         rotate, or into shifts plus ior.
1194 2019-10-02  Richard Biener  <rguenther@suse.de>
1196         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1197         New.
1198         (vect_transform_cycle_phi): Declare.
1199         * tree-vect-stmts.c (vect_transform_stmt): Call
1200         vect_transform_cycle_phi.
1201         * tree-vect-loop.c (vectorizable_reduction): Split out
1202         PHI transformation stage to ...
1203         (vect_transform_cycle_phi): ... here.
1205 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
1207         PR middle-end/91957
1208         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1209         eliminable registers.
1210         (make_hard_regno_live): Likewise, and don't make them live.
1212 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
1214         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1215         Call pp_emit_prefix.
1216         (layout::print_source_line): Likewise.
1217         (layout::start_annotation_line): Likewise.
1218         (diagnostic_show_locus): Remove call to temporarily clear the
1219         prefix.
1220         (selftest::test_one_liner_fixit_remove): Add test coverage for the
1221         interaction of pp_set_prefix with rulers and fix-it hints.
1222         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1223         prefix when calling diagnostic_show_locus, rather than destroying
1224         it afterwards.
1225         (print_parseable_fixits): Temporarily clear prefix.
1226         * pretty-print.c (pp_format): Save and restore line_length, rather
1227         than assuming it is zero.
1228         (pp_output_formatted_text): Remove assertion that line_length is
1229         zero.
1231 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1233         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1234         Rename to ...
1235         (nonoverlapping_refs_since_match_p): ... this; handle also
1236         ARRAY_REFs.
1237         (alias_stats): Update stats.
1238         (dump_alias_stats): Likewise.
1239         (cheap_array_ref_low_bound): New function.
1240         (aliasing_matching_component_refs_p): Add partial_overlap
1241         argument;
1242         pass it to nonoverlapping_refs_since_match_p.
1243         (aliasing_component_refs_walk): Update call of
1244         aliasing_matching_component_refs_p
1245         (nonoverlapping_array_refs_p): New function.
1246         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1247         indirect_refs_may_alias_p): Update calls of
1248         nonoverlapping_refs_since_match_p.
1250 2019-10-01  Maya Rashish  <coypu@sdf.org>
1252         PR target/85401
1253         * ira-color.c (allocno_copy_cost_saving): Call
1254         ira_init_register_move_cost_if_necessary.
1256 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
1258         * Makefile.in (gnat_install_lib): New variable.
1259         * configure.ac: Substitute it.
1260         * configure: Regenerate.
1262 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1264         PR lto/91222
1265         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1266         is matched with non-C++ type
1268 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1270         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1271         after local CSE.
1273 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1275         * doc/invoke.texi (early-inlining-insns-O2): Document.
1276         (early-inlining-insns): Update.
1277         * params.def (early-inlining-insns-O2): New bound.
1278         (early-inlining-insns): Update docs.
1279         * ipa-inline.c (want_early_inline_function_p): Use new bound.
1281 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
1283         PR target/88562
1284         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1285         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1286         a memory access insn.
1288 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
1290         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1291         vpmsumd.
1293 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
1295         PR target/77918
1296         * config/s390/s390.c (s390_expand_vec_compare): Use
1297         gen_vec_cmpordered and gen_vec_cmpunordered.
1298         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1299         vec_unordered): Delete.
1300         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1301         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1302         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1303         (vec_cmp<code>): Generic dispatcher.
1305 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
1307         PR target/77918
1308         * config/s390/vector.md (V_HW): Add V1TI in order to make
1309         vcond$a$b generate vcondv1tiv1tf.
1311 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1313         PR rtl-optimization/91948
1314         * ira-build.c (ira_create_allocno): Initialize
1315         ALLOCNO_CROSSED_CALLS_ABIS.
1316         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1317         than regno to ira_need_caller_save_p.
1319 2019-10-01  Alexandre Oliva <oliva@adacore.com>
1321         * config/i386/i386-options.c
1322         (ix86_recompute_optlev_based_flags): New, moved out of...
1323         (ix86_option_override_internal): ... this.  Call it.
1324         (ix86_override_options_after_change): Call it here too.
1326         PR debug/91507
1327         * dwarf2out.c (override_type_for_decl_p): New.
1328         (gen_variable_die): Use it.
1330 2019-10-01  Richard Biener  <rguenther@suse.de>
1332         * tree-vect-loop.c (vectorizable_reduction): Move variables
1333         to where they are used.
1335 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1337         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1338         (build_def_use): Use PC instead of CC0 in a comment.
1340 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1342         * rtl.def (CLOBBER_HIGH): Delete.
1343         * doc/rtl.texi (clobber_high): Remove documentation.
1344         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1345         (reg_is_clobbered_by_clobber_high): Delete.
1346         (gen_hard_reg_clobber_high): Likewise.
1347         * alias.c (record_set): Remove CLOBBER_HIGH handling.
1348         * cfgexpand.c (expand_gimple_stmt): Likewise.
1349         * combine-stack-adj.c (single_set_for_csa): Likewise.
1350         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1351         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1352         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1353         * cse.c (invalidate_reg): Remove clobber_high parameter.
1354         (invalidate): Update call accordingly.
1355         (canonicalize_insn): Remove CLOBBER_HIGH handling.
1356         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1357         (count_reg_usage, insn_live_p): Likewise.
1358         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1359         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1360         (cselib_invalidate_rtx_note_stores): Update call accordingly.
1361         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1362         (cselib_invalidate_regno, cselib_process_insn): Likewise.
1363         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1364         (mark_nonreg_stores_2): Likewise.
1365         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1366         (df_get_call_refs): Likewise.
1367         * dwarf2out.c (mem_loc_descriptor): Likewise.
1368         * emit-rtl.c (verify_rtx_sharing): Likewise.
1369         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1370         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1371         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1372         * genemit.c (gen_exp, gen_insn): Likewise.
1373         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1374         * haifa-sched.c (haifa_classify_rtx): Likewise.
1375         * ira-build.c (create_insn_allocnos): Likewise.
1376         * ira-costs.c (scan_one_insn): Likewise.
1377         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1378         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1379         * jump.c (mark_jump_label_1): Likewise.
1380         * lra-int.h (lra_insn_reg::clobber_high): Delete.
1381         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1382         handling.
1383         (mark_not_eliminable): Likewise.
1384         * lra-lives.c (process_bb_lives): Likewise.
1385         * lra.c (new_insn_reg): Remove clobber_high parameter.
1386         (collect_non_operand_hard_regs): Likewise.  Update call to new
1387         insn_reg.  Remove CLOBBER_HIGH handling.
1388         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
1389         to collect_non_operand_hard_regs.
1390         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1391         Update call to new_insn_reg.
1392         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1393         * postreload.c (reload_cse_simplify, reload_combine_note_use)
1394         (move2add_note_store): Likewise.
1395         * print-rtl.c (print_pattern): Likewise.
1396         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1397         (if_test_bypass_p): Likewise.
1398         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1399         * reginfo.c (reg_scan_mark_refs): Likewise.
1400         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1401         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1402         (forget_old_reloads_1): Likewise.
1403         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1404         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1405         (dbr_schedule): Likewise.
1406         * resource.c (update_live_status, mark_referenced_resources)
1407         (mark_set_resources): Likewise.
1408         * rtl.c (copy_rtx): Likewise.
1409         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1410         (note_pattern_stores): Likewise.
1411         (reg_is_clobbered_by_clobber_high): Delete.
1412         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1413         CLOBBER_HIGH handling.
1415 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1417         PR target/91452
1418         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1419         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1420         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1421         Handle ARM_PCS_TLSDESC.
1422         (aarch64_tlsdesc_abi_id): New function.
1423         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1424         rtx instead of a list of clobbers and clobber_highs.
1425         (tlsdesc_small_<mode>): Update accordingly.
1427 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1429         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1430         extra callee_abi argument.
1431         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1432         Insert a CALLEE_ABI unspec into the call pattern as the second
1433         element in the PARALLEL.
1434         (aarch64_simd_call_p): Delete.
1435         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1436         the new CALLEE_ABI element of the PARALLEL.
1437         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1438         from the function type, if given.
1439         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1440         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
1441         when passed the function_arg_info end marker.
1442         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1443         final argument of gen_sibcall.
1444         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1445         (call): Make operand 2 a const_int_operand and pass it to expand_call.
1446         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1447         pattern.
1448         (call_value): Likewise operand 3.
1449         (sibcall): Likewise operand 2.  Place the unspec before rather than
1450         after the return.
1451         (sibcall_value): Likewise operand 3.
1452         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1453         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1454         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
1455         constraint strings.
1456         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1458 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1460         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1461         choose_hard_reg_mode.
1462         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1464 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1466         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1467         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1468         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1470 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
1472         * diagnostic-show-locus.c (line_label::line_label): Initialize
1473         m_has_vbar.
1474         (line_label::comparator): Reverse the sort order by m_state_idx,
1475         so that when the list is walked backwards the labels appear in
1476         order of insertion into the rich_location.
1477         (line_label::m_has_vbar): New field.
1478         (layout::print_any_labels): When dealing with multiple labels at
1479         the same line and column, only print vertical bars for the one
1480         with the highest label_line.
1481         (selftest::test_one_liner_labels): Update test for multiple labels
1482         to expect the labels to be in the order of insertion into the
1483         rich_location.  Add a test for many such labels, where the column
1484         numbers are out-of-order relative to the insertion order.
1486 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1488         * config/i386/i386.h (ix86_frame::expensive_p): New field.
1489         (ix86_frame::expensive_count): Likewise.
1490         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1491         of use_fast_prologue_epilogue robust against incidental changes
1492         in function size.
1494 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
1496         PR target/77918
1497         * config/s390/vector.md (vec_unordered<mode>): Call
1498         gen_vec_ordered<mode>.
1500 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
1502         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1503         New pattern for ASRD.
1504         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1505         * internal-fn.def (IFN_DIV_POW2): New internal function.
1506         * optabs.def (sdiv_pow2_optab): New optab.
1507         * tree-vect-patterns.c (vect_recog_divmod_pattern):
1508         Modify pattern to support new operation.
1509         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1510         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1511         Document new target selector.
1513 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1515         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1516         to test whether we're compiling a vector PCS function and to test
1517         whether the function needs to save a particular register.
1518         Remove the vector PCS handling of df_set_regs_ever_live.
1519         (aarch64_components_for_bb): Use crtl->abi to test whether
1520         the function needs to save a particular register.
1521         (aarch64_process_components): Use crtl->abi to test whether
1522         we're compiling a vector PCS function.
1523         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1524         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1526 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1528         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1529         Delete.
1530         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1531         whether the block calls a function that clobbers more registers
1532         than the current function is allowed to.
1533         (aarch64_use_simple_return_insn_p): Delete.
1534         * config/aarch64/aarch64.md (simple_return): Remove condition.
1536 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1538         * function-abi.h (function_abi_aggregator): New class.
1539         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1540         function.
1541         * ira.c (update_equiv_regs_prescan): New function.  Call
1542         set_paradoxical_subreg here rather than...
1543         (update_equiv_regs): ...here.
1544         (ira): Call update_equiv_regs_prescan.
1546 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1548         * hard-reg-set.h (regs_invalidated_by_call): Only define if
1549         IN_TARGET_CODE.
1550         (call_used_or_fixed_regs): Likewise.
1551         (call_used_or_fixed_reg_p): Likewise.
1552         * reginfo.c (regs_invalidated_by_call): New macro.
1554 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1556         * shrink-wrap.c: Include function-abi.h.
1557         (requires_stack_frame_p): Use crtl->abi to test whether the
1558         current function can use a register without saving it first.
1560 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1562         * sel-sched-ir.h (_def::crosses_call): Replace with...
1563         (_def::crossed_call_abis): ..this new field.
1564         (def_list_add): Take a mask of ABIs instead of a crosses_call
1565         boolean.
1566         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
1567         of _def accordingly.
1568         * sel-sched.c: Include function-abi.h.
1569         (hard_regs_data::regs_for_call_clobbered): Delete.
1570         (reg_rename::crosses_call): Replace with...
1571         (reg_rename::crossed_call_abis): ...this new field.
1572         (fur_static_params::crosses_call): Replace with...
1573         (fur_static_params::crossed_call_abis): ...this new field.
1574         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1575         (init_hard_regs_data): Use crtl->abi to test which registers the
1576         current function would need to save before it uses them.
1577         (mark_unavailable_hard_regs): Update handling of call-clobbered
1578         registers, using call_clobbers_in_region to find out which registers
1579         might be call-clobbered (but without taking -fipa-ra into account
1580         for now).  Remove separate handling of partially call-clobbered
1581         registers.
1582         (verify_target_availability): Use crossed_call_abis instead of
1583         crosses_call.
1584         (get_spec_check_type_for_insn, find_used_regs): Likewise.
1585         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1587 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1589         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1590         function to test whether a register is fully or partly clobbered.
1592 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1594         * rtlanal.c: Include function-abi.h.
1595         (reg_set_p): Use insn_callee_abi to get the ABI of the called
1596         function and clobbers_reg_p to test whether the register
1597         is call-clobbered.
1598         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1599         to get the ABI of the called function and full_reg_clobbers to
1600         get the set of fully call-clobbered registers.  Warn about the
1601         pitfalls of using this mode.
1603 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1605         * reload.c: Include function-abi.h.
1606         (find_equiv_reg): Use clobbers_reg_p to test whether either
1607         of the equivalent registers is clobbered by a call.
1608         * reload1.c: Include function-abi.h.
1609         (reg_reloaded_call_part_clobbered): Delete.
1610         (reload): Use crtl->abi to test which registers would need
1611         saving in the prologue before use.
1612         (find_reg): Likewise.
1613         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1614         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
1615         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1617 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1619         * regrename.h (du_head::call_clobber_mask): New field.
1620         (du_head::need_caller_save_reg): Replace with...
1621         (du_head::call_abis): ...this new field.
1622         * regrename.c: Include function-abi.h.
1623         (call_clobbered_in_chain_p): New function.
1624         (check_new_reg_p): Use crtl->abi when deciding whether a register
1625         is free for use after RA.  Use call_clobbered_in_chain_p to test
1626         whether a candidate register would be clobbered by a call.
1627         (find_rename_reg): Don't add call-clobber conflicts here.
1628         (rename_chains): Check call_abis instead of need_caller_save_reg.
1629         (merge_chains): Update for changes to du_head.
1630         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1631         target.  Record the ABI identifier in call_abis and the set of
1632         fully or partially clobbered registers in call_clobber_mask.
1633         Add fully-clobbered registers to hard_conflicts here rather
1634         than in find_rename_reg.
1635         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1636         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1637         * config/aarch64/falkor-tag-collision-avoidance.c: Include
1638         function-abi.h.
1639         * config/c6x/c6x.c: Likewise.
1641 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1643         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1644         mode of the register when deciding whether it is no longer
1645         available after a call.
1647 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1649         * recog.c: Include function-abi.h.
1650         (peep2_find_free_register): Use crtl->abi when deciding whether
1651         a register is free for use after RA.
1653 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1655         * postreload-gcse.c: Include regs.h and function-abi.h.
1656         (record_opr_changes): Use insn_callee_abi to get the ABI of the
1657         call insn target.  Conservatively assume that partially-clobbered
1658         registers are altered.
1660 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1662         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1663         when deciding whether a register is free for use after RA.
1664         (reload_combine): Remove unnecessary use of fixed_reg_set.
1665         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1666         call insn target.  Use reg_mode when testing whether a register
1667         is no longer available.
1669 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1671         * target.def (return_call_with_max_clobbers): Delete.
1672         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1673         * doc/tm.texi: Regenerate.
1674         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1675         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1676         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1677         (lra_reg::call_insn): Delete.
1678         * lra.c: Include function-abi.h.
1679         (initialize_lra_reg_info_element): Don't initialize the fields above.
1680         (lra): Use crtl->abi to test whether the current function needs to
1681         save a register in the prologue.  Remove special pre-inheritance
1682         lra_create_live_ranges pass for flag_ipa_ra.
1683         * lra-assigns.c: Include function-abi.h
1684         (find_hard_regno_for_1): Use crtl->abi to test whether the current
1685         function needs to save a register in the prologue.
1686         (lra_assign): Assert that registers aren't allocated to a
1687         conflicting register, rather than checking only for overlaps
1688         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
1689         and for registers that are not live across a call.
1690         * lra-constraints.c (last_call_for_abi): New variable.
1691         (full_and_partial_call_clobbers): Likewise.
1692         (setup_next_usage_insn): Remove the register from
1693         full_and_partial_call_clobbers.
1694         (need_for_call_save_p): Use call_clobbered_in_region_p to test
1695         whether the register needs a caller save.
1696         (need_for_split_p): Use full_and_partial_reg_clobbers instead
1697         of call_used_or_fixed_regs.
1698         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1699         full_and_partial_call_clobbers.
1700         * lra-lives.c (check_pseudos_live_through_calls): Replace
1701         last_call_used_reg_set and call_insn arguments with an abi argument.
1702         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
1703         as the set of conflicting registers.
1704         (calls_have_same_clobbers_p): Delete.
1705         (process_bb_lives): Track the ABI of the last call instead of an
1706         insn/HARD_REG_SET pair.  Update calls to
1707         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
1708         the set of registers that could be clobbered by an EH edge.
1709         Include partially-clobbered as well as fully-clobbered registers.
1710         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1711         * lra-remat.c: Include function-abi.h.
1712         (call_used_regs_arr_len, call_used_regs_arr): Delete.
1713         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1714         registers and bitmap_view to combine them into dead_regs.
1715         (call_used_input_regno_present_p): Take a function_abi argument
1716         and use it to test whether a register is call-clobbered.
1717         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1718         call insn target.  Update tje call to call_used_input_regno_present_p.
1719         (do_remat): Likewise.
1720         (lra_remat): Remove the initialization of call_used_regs_arr_len
1721         and call_used_regs_arr.
1723 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1725         * loop-iv.c: Include regs.h and function-abi.h.
1726         (simplify_using_initial_values): Use insn_callee_abi to get the
1727         ABI of the call insn target.  Conservatively assume that
1728         partially-clobbered registers are altered.
1730 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1732         * function-abi.h (call_clobbers_in_region): Declare.
1733         (call_clobbered_in_region_p): New function.
1734         * function-abi.cc (call_clobbers_in_region): Likewise.
1735         * ira-int.h: Include function-abi.h.
1736         (ira_allocno::crossed_calls_abis): New field.
1737         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1738         (ira_need_caller_save_regs): New function.
1739         (ira_need_caller_save_p): Likewise.
1740         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1741         of call_used_or_fixed_regs.
1742         (do_reload): Use crtl->abi to test whether the current function
1743         needs to save a register in the prologue.  Count registers that
1744         need to be saved rather than registers that don't.
1745         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1746         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1747         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1748         (propagate_some_info_from_allocno): Likewise.
1749         (copy_info_to_removed_store_destinations): Likewise.
1750         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1751         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1752         (ira_build): Use ira_need_caller_save_regs instead of
1753         call_used_or_fixed_regs.
1754         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1755         whether the current function would need to save a register
1756         before using it.
1757         (calculate_spill_cost): Likewise.
1758         (allocno_reload_assign): Use ira_need_caller_save_regs and
1759         ira_need_caller_save_p instead of call_used_or_fixed_regs.
1760         * ira-conflicts.c (ira_build_conflicts): Use
1761         ira_need_caller_save_regs rather than call_used_or_fixed_regs
1762         as the set of call-clobbered registers.  Remove the
1763         call_used_or_fixed_regs mask from the calculation of
1764         temp_hard_reg_set and mask its use instead.  Remove special
1765         handling of partially-clobbered registers.
1766         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1767         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1768         calculate the set of conflicting registers for calls that
1769         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1770         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1771         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1772         Use eh_edge_abi to calculate the set of registers that could
1773         be clobbered by an EH edge.  Include partially-clobbered as
1774         well as fully-clobbered registers.
1776 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1778         * haifa-sched.c: Include function-abi.h.
1779         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1780         the function would need to save a register before using it.
1782 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1784         * gcse.c: Include function-abi.h.
1785         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1786         the call insn target.  Invalidate partially call-clobbered
1787         registers as well as fully call-clobbered ones.
1789 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1791         * function.c (aggregate_value_p): Work out which ABI the
1792         function is using before testing which registers are at least
1793         partly preserved by a call.
1795 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1797         * early-remat.c: Include regs.h and function-abi.h.
1798         (early_remat::maybe_add_candidate): Don't check for call-clobbered
1799         registers here.
1800         (early_remat::restrict_remat_for_unavail_regs): New function.
1801         (early_remat::restrict_remat_for_call): Likewise.
1802         (early_remat::process_block): Before calling emit_remat_insns
1803         for a previous call in the block, invalidate any candidates
1804         that would clobber call-preserved registers.
1805         (early_remat::emit_remat_insns_for_block): Likewise for the
1806         final call in a block.  Do the same thing for live-in registers
1807         when calling emit_remat_insns at the head of a block.
1809 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1811         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1812         whether the current function needs to save at least part of a
1813         register before using it.
1814         (df_get_exit_block_use_set): Likewise for epilogue restores.
1816 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1818         * df-problems.c: Include regs.h and function-abi.h.
1819         (df_rd_problem_data): Rename sparse_invalidated_by_call to
1820         sparse_invalidated_by_eh and dense_invalidated_by_call to
1821         dense_invalidated_by_eh.
1822         (df_print_bb_index): Update accordingly.
1823         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1824         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1825         that are clobbered by an EH edge.  Clobber partially-clobbered
1826         registers as well as fully-clobbered ones.
1827         (df_md_confluence_n): Likewise.
1828         (df_rd_local_compute): Likewise.  Update for changes to
1829         df_rd_problem_data.
1830         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1831         of registers that are clobbered by an EH edge.  Includde partially-
1832         clobbered registers as well as fully-clobbered ones.
1834 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1836         * cselib.c (cselib_process_insn): If we know what mode a
1837         register was set in, check whether it is clobbered in that
1838         mode by a call.  Only fall back to reg_raw_mode if that fails.
1840 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1842         * cse.c: Include regs.h and function-abi.h.
1843         (invalidate_for_call): Take the call insn as an argument.
1844         Use insn_callee_abi to get the ABI of the call and invalidate
1845         partially clobbered registers as well as fully clobbered ones.
1846         (cse_insn): Update call accordingly.
1848 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1850         * combine.c: Include function-abi.h.
1851         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1852         of the target of call insns.  Invalidate partially-clobbered
1853         registers as well as fully-clobbered ones.
1855 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1857         * cfgloopanal.c: Include regs.h and function-abi.h.
1858         (init_set_costs): Use default_function_abi to test whether
1859         a general register is call-clobbered.
1861 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1863         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
1864         instead of the call-clobbered sets.
1866 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1868         * caller-save.c (setup_save_areas): Remove redundant |s of
1869         fixed_reg_set.
1870         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
1871         than call_used_or_fixed_regs to decide whether a REG_RETURNED
1872         value is useful.
1874 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1876         * rtl.h (predefined_function_abi): Declare.
1877         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1878         instead of a boolean call_save flag.
1879         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
1880         accordingly.
1881         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1882         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1883         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
1884         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1885         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1886         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
1887         * reginfo.c (init_reg_modes_target): Likewise.
1888         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1889         instead of a boolean call_save flag.
1890         * targhooks.c: Include function-abi.h.
1891         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
1892         using eh_edge_abi to choose the mode.
1894 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1896         * target.def (hard_regno_call_part_clobbered): Take an ABI
1897         identifier instead of an rtx_insn.
1898         * doc/tm.texi: Regenerate.
1899         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
1900         (hook_bool_uint_uint_mode_false): New function.
1901         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
1902         (hook_bool_uint_uint_mode_false): New function.
1903         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1904         Take an ABI identifier instead of an rtx_insn.
1905         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
1906         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
1907         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
1908         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
1909         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
1910         Likewise.
1911         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
1912         * cselib.c: Include function-abi.h.
1913         (cselib_process_insn): Update call to
1914         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1915         to get the appropriate ABI identifier.
1916         * function-abi.cc (predefined_function_abi::initialize): Update call
1917         to targetm.hard_regno_call_part_clobbered.
1918         * ira-conflicts.c (ira_build_conflicts): Likewise.
1919         * ira-costs.c (ira_tune_allocno_costs): Likewise.
1920         * lra-constraints.c: Include function-abi.h.
1921         (need_for_call_save_p): Update call to
1922         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1923         to get the appropriate ABI identifier.
1924         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1925         * regcprop.c (copyprop_hardreg_forward_1): Update call
1926         to targetm.hard_regno_call_part_clobbered.
1927         * reginfo.c (choose_hard_reg_mode): Likewise.
1928         * regrename.c (check_new_reg_p): Likewise.
1929         * reload.c (find_equiv_reg): Likewise.
1930         * reload1.c (emit_reload_insns): Likewise.
1931         * sched-deps.c: Include function-abi.h.
1932         (deps_analyze_insn): Update call to
1933         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1934         to get the appropriate ABI identifier.
1935         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
1936         call to targetm.hard_regno_call_part_clobbered.
1937         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
1939 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1941         * config/i386/i386.c: Include function-abi.h.
1942         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
1943         if they preserve some 256-bit or 512-bit SSE registers.
1945 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1947         * target.def (insn_callee_abi): New hook.
1948         (remove_extra_call_preserved_regs): Delete.
1949         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
1950         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1951         * doc/tm.texi: Regenerate.
1952         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
1953         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
1954         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
1955         insn argument.
1956         (aarch64_remove_extra_call_preserved_regs): Delete.
1957         (aarch64_insn_callee_abi): New function.
1958         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1959         (TARGET_INSN_CALLEE_ABI): New macro.
1960         * rtl.h (get_call_fndecl): Declare.
1961         (cgraph_rtl_info): Fix formatting.  Tweak comment for
1962         function_used_regs.  Remove function_used_regs_valid.
1963         * rtlanal.c (get_call_fndecl): Moved from final.c
1964         * function-abi.h (insn_callee_abi): Declare.
1965         (target_function_abi_info): Mention insn_callee_abi.
1966         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
1967         way to get_call_reg_set_usage did.
1968         (insn_callee_abi): New function.
1969         * regs.h (get_call_reg_set_usage): Delete.
1970         * final.c: Include function-abi.h.
1971         (collect_fn_hard_reg_usage): Add fixed and stack registers to
1972         function_used_regs before the main loop rather than afterwards.
1973         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
1974         if function_used_regs ends up not being useful.
1975         (get_call_fndecl): Move to rtlanal.c
1976         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
1977         * caller-save.c: Include function-abi.h.
1978         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
1979         instead of get_call_reg_set_usage.
1980         * cfgcleanup.c: Include function-abi.h.
1981         (old_insns_match_p): Use insn_callee_abi instead of
1982         get_call_reg_set_usage.
1983         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
1984         a tree.
1985         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
1986         function_used_regs.
1987         * df-scan.c: Include function-abi.h.
1988         (df_get_call_refs): Use insn_callee_abi instead of
1989         get_call_reg_set_usage.
1990         * ira-lives.c: Include function-abi.h.
1991         (process_bb_node_lives): Use insn_callee_abi instead of
1992         get_call_reg_set_usage.
1993         * lra-lives.c: Include function-abi.h.
1994         (process_bb_lives): Use insn_callee_abi instead of
1995         get_call_reg_set_usage.
1996         * postreload.c: Include function-abi.h.
1997         (reload_combine): Use insn_callee_abi instead of
1998         get_call_reg_set_usage.
1999         * regcprop.c: Include function-abi.h.
2000         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2001         get_call_reg_set_usage.
2002         * resource.c: Include function-abi.h.
2003         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2004         instead of get_call_reg_set_usage.
2005         * var-tracking.c: Include function-abi.h.
2006         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2007         get_call_reg_set_usage.
2009 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2011         * target.def (fntype_abi): New target hook.
2012         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2013         * doc/tm.texi: Regenerate.
2014         * target.h (predefined_function_abi): Declare.
2015         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2016         if defined.
2017         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2018         * config/aarch64/aarch64.c: Include function-abi.h.
2019         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2020         (TARGET_FNTYPE_ABI): Define.
2022 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2024         * Makefile.in (OBJS): Add function-abi.o.
2025         (GTFILES): Add function-abi.h.
2026         * function-abi.cc: New file.
2027         * function-abi.h: Likewise.
2028         * emit-rtl.h (rtl_data::abi): New field.
2029         * function.c: Include function-abi.h.
2030         (prepare_function_start): Initialize crtl->abi.
2031         * read-rtl-function.c: Include regs.h and function-abi.h.
2032         (read_rtl_function_body): Initialize crtl->abi.
2033         (read_rtl_function_body_from_file_range): Likewise.
2034         * reginfo.c: Include function-abi.h.
2035         (init_reg_sets_1): Initialize default_function_abi.
2036         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2037         when making a register global.
2038         * target-globals.h (this_target_function_abi_info): Declare.
2039         (target_globals::function_abi_info): New field.
2040         (restore_target_globals): Copy it.
2041         * target-globals.c: Include function-abi.h.
2042         (default_target_globals): Initialize the function_abi_info field.
2043         (target_globals): Allocate it.
2044         (save_target_globals): Free it.
2046 2019-09-30  Nick Clifton  <nickc@redhat.com>
2048         PR target/85978
2049         * config/frv/frv.c (frv_register_move_cost): Add break statements
2050         to avoid falling through to the wrong cases.  Tidy code.
2052 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2054         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2055         For multi-registers modes, test how big each register part is.
2057 2019-09-30  Nick Clifton  <nickc@redhat.com>
2059         PR target/59205
2060         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2061         (TARGET_ASM_SELECT_SECTION): Remove definition.
2062         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2064 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
2066         * emit-rtl.c (init_raw_REG): New function.
2067         (gen_raw_REG): Use init_raw_REG.
2068         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2069         macros.
2070         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2071         * rtl.h (rtx_init): New function.
2072         (rtx_alloca): New function.
2073         (init_raw_REG): New function.
2074         (alloca_raw_REG): New macro.
2076 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
2078         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2079         (pcrel_local_address): Replace pcrel_address predicate, use the
2080         new function address_to_insn_form.
2081         (pcrel_external_address): Replace with new implementation using
2082         address_to_insn_form..
2083         (prefixed_mem_operand): Delete predicate which is now unused.
2084         (pcrel_external_mem_operand): Delete predicate which is now
2085         unused.
2086         * config/rs6000/rs6000-protos.h (enum insn_form): New
2087         enumeration.
2088         (enum non_prefixed_form): New enumeration.
2089         (address_to_insn_form): New declaration.
2090         (prefixed_load_p): New declaration.
2091         (prefixed_store_p): New declaration.
2092         (prefixed_paddi_p): New declaration.
2093         (rs6000_asm_output_opcode): New declaration.
2094         (rs6000_final_prescan_insn): Move declaration and update calling
2095         signature.
2096         (address_is_prefixed): New helper inline function.
2097         * config/rs6000/rs6000.c(print_operand_address): Check for either
2098         PC-relative local symbols or PC-relative external symbols.
2099         (rs6000_emit_move): Support loading PC-relative addresses.
2100         (mode_supports_prefixed_address_p): Delete, no longer used.
2101         (rs6000_prefixed_address_mode_p): Delete, no longer used.
2102         (address_to_insn_form): New function to decode an address format.
2103         (reg_to_non_prefixed): New function to identify what the
2104         non-prefixed memory instruction format is for a register.
2105         (prefixed_load_p): New function to identify prefixed loads.
2106         (prefixed_store_p): New function to identify prefixed stores.
2107         (prefixed_paddi_p): New function to identify prefixed load
2108         immediates.
2109         (next_insn_prefixed_p): New static state variable.
2110         (rs6000_final_prescan_insn): New function to determine if an insn
2111         uses a prefixed instruction.
2112         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2113         prefixed instruction.
2114         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2115         (ASM_OUTPUT_OPCODE): New target hook.
2116         * config/rs6000/rs6000.md (prefixed): New insn attribute for
2117         prefixed instructions.
2118         (prefixed_length): New insn attribute for the size of prefixed
2119         instructions.
2120         (non_prefixed_length): New insn attribute for the size of
2121         non-prefixed instructions.
2122         (pcrel_local_addr): New insn to load up a local PC-relative
2123         address.
2124         (pcrel_extern_addr): New insn to load up an external PC-relative
2125         address.
2126         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2127         GPR and loading a 128-bit floating point type to a GPR.
2129 2019-09-30  Richard Biener  <rguenther@suse.de>
2131         * gimple.c (gimple_get_lhs): For PHIs return the result.
2132         * tree-vectorizer.h (vectorizable_live_operation): Also get the
2133         SLP instance as argument.
2134         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2135         double-reduction PHIs with vectorizable_lc_phi.
2136         (vect_analyze_loop_operations): Adjust.
2137         (vect_create_epilog_for_reduction): Remove all code not dealing
2138         with reduction LC PHI or epilogue generation.
2139         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2140         for live stmts of reductions.
2141         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2142         do not handle defs that are not vect_internal_def.
2143         (can_vectorize_live_stmts): Adjust.
2144         (vect_analyze_stmt): When the vectorized stmt defined a value
2145         used on backedges adjust the backedge uses of vectorized PHIs.
2147 2019-09-30  Martin Jambor  <mjambor@suse.cz>
2149         PR ipa/91853
2150         * tree-inline.c (force_value_to_type): New function.
2151         (setup_one_parameter): Use force_value_to_type to convert type.
2152         * tree-inline.c (force_value_to_type): Declare.
2153         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2154         with register type mismatches.
2156 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
2158         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2159         32-bit PowerPC.
2160         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2161         * config/rs6000/t-freebsd64: Make use of the above define and build
2162         the 32-bit libraries with secure-plt.
2164 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
2166         PR target/91931
2167         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2168         gen_int_mode instead of GEN_INT.
2170 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
2172         * config/darwin.c (gen_macho_low): Amend to include the mode
2173         argument.
2174         (machopic_indirect_data_reference): Amend gen_macho_low call
2175         to include mode argument
2176         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2177         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2178         the macho_high expander and two define_insn entries.
2180 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
2182         PR bootstrap/90543
2183         * optc-save-gen.awk: Fix up printing string option differences.
2185 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
2187         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2188         vec_perm cost to 1 for non-Power7 VSX architectures.
2190 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
2192         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2193         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2194         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2196 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
2198         * config/darwin.c (gen_macho_high): Amend to include the mode
2199         argument.
2200         (machopic_indirect_data_reference): Amend gen_macho_high call
2201         to include mode argument.
2202         (machopic_legitimize_pic_address): Likewise.
2203         * config/rs6000/rs6000.c (rs6000_legitimize_address):
2204         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2205         the macho_high expander and two define_insn entries.
2207 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
2209         PR target/86805
2210         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2212 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
2214         PR target/80672
2215         * config/sh/sh.c (parse_validate_atomic_model_option): Use
2216         std::string::compare instead of std::string::find.
2218 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
2220         * configure: Regenerate.
2222 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
2224         PR middle-end/91920
2225         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2226         variables as shared.
2228 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
2230         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2231         replaces the expander and two define_insn entries.
2232         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2233         call.
2234         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2236 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
2238         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2239         (fibonacci_heap::nodes): Likewise.
2240         (fibonacci_heap::min_key): Likewise.
2241         (fibonacci_heap::min): Likewise.
2243 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
2245         * cgraph.c (cgraph_node::get_fun): Make const.
2246         * cgraph.h (cgraph_node::get_fun): Likewise.
2248 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
2250         PR target/91919
2251         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2252         of SImode MULT.
2254 2019-09-27  Richard Biener  <rguenther@suse.de>
2256         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2257         (STMT_VINFO_REDUC_FN): Likewise.
2258         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2259         STMT_VINFO_REDUC_FN.
2260         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2261         for condition reductions.
2262         (vect_create_epilog_for_reduction): Compute all required state
2263         from the stmt to be vectorized.
2264         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2265         invocation and remove then dead code.  For single def-use chains
2266         record only a single vector stmt.
2268 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2270         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2271         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2272         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2273         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2274         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2275         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2276         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2277         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2278         (aarch64_general_builtin_rsqrt): Declare.
2279         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2280         New function.
2281         (aarch64_mangle_builtin_type): Rename to...
2282         (aarch64_general_mangle_builtin_type): ...this.
2283         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2284         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2285         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2286         aarch64_general_add_builtin instead of add_builtin_function.
2287         (aarch64_init_builtins): Rename to...
2288         (aarch64_general_init_builtins): ...this.  Use
2289         aarch64_general_add_builtin instead of add_builtin_function.
2290         (aarch64_builtin_decl): Rename to...
2291         (aarch64_general_builtin_decl): ...this and remove the unused
2292         arguments.
2293         (aarch64_expand_builtin): Rename to...
2294         (aarch64_general_expand_builtin): ...this and remove the unused
2295         arguments.
2296         (aarch64_builtin_rsqrt): Rename to...
2297         (aarch64_general_builtin_rsqrt): ...this.
2298         (aarch64_fold_builtin): Rename to...
2299         (aarch64_general_fold_builtin): ...this.  Take the function subcode
2300         and return type as arguments.  Remove the "ignored" argument.
2301         (aarch64_gimple_fold_builtin): Rename to...
2302         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
2303         subcode and gcall as arguments, and return the new function call.
2304         * config/aarch64/aarch64.c (aarch64_init_builtins)
2305         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2306         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2307         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2308         instead of aarch64_builtin_rsqrt.
2309         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2310         instead of aarch64_mangle_builtin_type.
2312 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2314         * target.def (check_builtin_call): New target hook.
2315         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2316         * doc/tm.texi: Regenerate.
2318 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2320         PR tree-optimization/91909
2321         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2322         reduc_index parameter.  When handling COND_REDUCTION, make sure
2323         that the reduction phi operand is in the correct arm of the
2324         VEC_COND_EXPR.
2325         (vectorizable_reduction): Pass reduc_index to the above.
2327 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
2329         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2330         New combine pattern.
2332 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
2334         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2335         loop instruction into new basic block before the loop when basic
2336         block that precedes the loop is empty.
2338 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
2340         * function.c (gimplify_parameters): Use build_clobber function.
2341         * tree-ssa.c (execute_update_addresses_taken): Likewise.
2342         * tree-inline.c (expand_call_inline): Likewise.
2343         * tree-sra.c (clobber_subtree): Likewise.
2344         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2345         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2346         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2347         lower_omp_target): Likewise.
2348         * omp-expand.c (expand_omp_for_generic): Likewise.
2349         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2351 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
2353         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2354         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2355         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2356         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2357         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2358         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2359         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2360         LD_ELEMREV_V16QI): Use the PURE attribute.
2362 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
2364         * config/rs6000/darwin.md: Replace the expanders for
2365         load_macho_picbase and reload_macho_picbase with use of '@'
2366         and <mode> in their respective define_insns.
2367         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2368         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2369         Pmode to gen_load_macho_picbase.
2370         * config/rs6000/rs6000.md: Likewise.
2372 2019-09-25  Richard Biener  <rguenther@suse.de>
2374         PR tree-optimization/91896
2375         * tree-vect-loop.c (vectorizable_reduction): The single
2376         def-use cycle optimization cannot apply when there's more
2377         than one pattern stmt involved.
2379 2019-09-26  Richard Biener  <rguenther@suse.de>
2381         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2382         loop-closed PHIs that are vect_internal_def.
2383         (vect_create_epilog_for_reduction): Exit early for nested cycles.
2384         Simplify.
2385         (vectorizable_lc_phi): New.
2386         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2387         (vect_transform_stmt): Likewise.
2388         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2389         (vectorizable_lc_phi): Declare.
2391 2019-09-26  Richard Biener  <rguenther@suse.de>
2393         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2394         vectorizable_reduction for vect_double_reduction_def.
2395         (vect_transform_loop): Likewise.
2396         (vect_create_epilog_for_reduction): Move double-reduction
2397         PHI creation and preheader argument setting of PHIs ...
2398         (vectorizable_reduction): ... here.  Also process
2399         vect_double_reduction_def PHIs, creating the vectorized
2400         PHI nodes, remembering the scalar adjustment computed for
2401         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2402         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2403         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2404         Initialize STMT_VINFO_REDUC_CODE.
2405         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2406         (_stmt_vec_info::reduc_code): Likewise.
2407         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2408         (STMT_VINFO_REDUC_CODE): Likewise.
2410 2019-09-26  Matt Turner  <mattst88@gmail.com>
2412         PR driver/69471
2413         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2414         (mtune=): Add Negative(mtune=).
2415         (mcpu=): Add Negative(mcpu=).
2416         * config/arm/arm.opt: Likewise.
2418 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2420         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2421         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2422         Define.
2423         * config/arm/arm_acle.h: Define builtins for the above.
2424         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2425         (simd32_op): Handle the above.
2426         * config/arm/unspecs.md: Define unspecs for the above.
2428 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2430         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2431         (arm_<sup>xtb16): Likewise.
2432         (arm_usada8): Likewise.
2433         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2434         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2435         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2436         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2437         __sxtb16, __uxtab16, __uxtb16): Define.
2438         * config/arm/arm_acle_builtins.def: Define builtins for the above.
2439         * config/arm/unspecs.md: Define unspecs for the above.
2440         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2441         (USXTB16): Likewise.
2442         (simd32_op): New int_attribute.
2443         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2444         * doc/sourcebuild.exp (arm_simd32_ok): Document.
2446 2019-09-26  Martin Jambor  <mjambor@suse.cz>
2448         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2449         internal_error.
2451 2019-09-26  Martin Jambor  <mjambor@suse.cz>
2453         * ipa-sra.c (process_scan_results): Fix continue condition.
2455 2019-09-26  Martin Liska  <mliska@suse.cz>
2457         PR tree-optimization/91885
2458         * tree-vectorizer.c (try_vectorize_loop_1): Add
2459         TODO_update_ssa_only_virtuals similarly to what slp pass does.
2461 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
2463         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2464         aarch64_plus_immediate rather than aarch64_uimm12_shift
2465         to test for valid PLUS immediates.
2467 2019-09-25  Martin Jambor  <mjambor@suse.cz>
2469         * tree-sra.c (no_accesses_p): Remove.
2470         (no_accesses_representant): Likewise.
2472 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2474         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2475         consistenly.
2476         (vaba_s16): Likewise.
2477         (vaba_s32): Likewise.
2478         (vaba_u8): Likewise.
2479         (vaba_u16): Likewise.
2480         (vaba_u32): Likewise.
2481         (vabal_high_s8): Likewise.
2482         (vabal_high_s16): Likewise.
2483         (vabal_high_s32): Likewise.
2484         (vabal_high_u8): Likewise.
2485         (vabal_high_u16): Likewise.
2486         (vabal_high_u32): Likewise.
2487         (vabal_s8): Likewise.
2488         (vabal_s16): Likewise.
2489         (vabal_s32): Likewise.
2490         (vabal_u8): Likewise.
2491         (vabal_u16): Likewise.
2492         (vabal_u32): Likewise.
2493         (vabaq_s8): Likewise.
2494         (vabaq_s16): Likewise.
2495         (vabaq_s32): Likewise.
2496         (vabaq_u8): Likewise.
2497         (vabaq_u16): Likewise.
2498         (vabaq_u32): Likewise.
2499         (vabd_s8): Likewise.
2500         (vabd_s16): Likewise.
2501         (vabd_s32): Likewise.
2502         (vabd_u8): Likewise.
2503         (vabd_u16): Likewise.
2504         (vabd_u32): Likewise.
2505         (vabdl_high_s8): Likewise.
2506         (vabdl_high_s16): Likewise.
2507         (vabdl_high_s32): Likewise.
2508         (vabdl_high_u8): Likewise.
2509         (vabdl_high_u16): Likewise.
2510         (vabdl_high_u32): Likewise.
2511         (vabdl_s8): Likewise.
2512         (vabdl_s16): Likewise.
2513         (vabdl_s32): Likewise.
2514         (vabdl_u8): Likewise.
2515         (vabdl_u16): Likewise.
2516         (vabdl_u32): Likewise.
2517         (vabdq_s8): Likewise.
2518         (vabdq_s16): Likewise.
2519         (vabdq_s32): Likewise.
2520         (vabdq_u8): Likewise.
2521         (vabdq_u16): Likewise.
2522         (vabdq_u32): Likewise.
2523         (vaddlv_s8): Likewise.
2524         (vaddlv_s16): Likewise.
2525         (vaddlv_u8): Likewise.
2526         (vaddlv_u16): Likewise.
2527         (vaddlvq_s8): Likewise.
2528         (vaddlvq_s16): Likewise.
2529         (vaddlvq_s32): Likewise.
2530         (vaddlvq_u8): Likewise.
2531         (vaddlvq_u16): Likewise.
2532         (vaddlvq_u32): Likewise.
2533         (vcvtx_f32_f64): Likewise.
2534         (vcvtx_high_f32_f64): Likewise.
2535         (vcvtxd_f32_f64): Likewise.
2536         (vmla_n_f32): Likewise.
2537         (vmla_n_s16): Likewise.
2538         (vmla_n_s32): Likewise.
2539         (vmla_n_u16): Likewise.
2540         (vmla_n_u32): Likewise.
2541         (vmla_s8): Likewise.
2542         (vmla_s16): Likewise.
2543         (vmla_s32): Likewise.
2544         (vmla_u8): Likewise.
2545         (vmla_u16): Likewise.
2546         (vmla_u32): Likewise.
2547         (vmlal_high_n_s16): Likewise.
2548         (vmlal_high_n_s32): Likewise.
2549         (vmlal_high_n_u16): Likewise.
2550         (vmlal_high_n_u32): Likewise.
2551         (vmlal_high_s8): Likewise.
2552         (vmlal_high_s16): Likewise.
2553         (vmlal_high_s32): Likewise.
2554         (vmlal_high_u8): Likewise.
2555         (vmlal_high_u16): Likewise.
2556         (vmlal_high_u32): Likewise.
2557         (vmlal_n_s16): Likewise.
2558         (vmlal_n_s32): Likewise.
2559         (vmlal_n_u16): Likewise.
2560         (vmlal_n_u32): Likewise.
2561         (vmlal_s8): Likewise.
2562         (vmlal_s16): Likewise.
2563         (vmlal_s32): Likewise.
2564         (vmlal_u8): Likewise.
2565         (vmlal_u16): Likewise.
2566         (vmlal_u32): Likewise.
2567         (vmlaq_n_f32): Likewise.
2568         (vmlaq_n_s16): Likewise.
2569         (vmlaq_n_s32): Likewise.
2570         (vmlaq_n_u16): Likewise.
2571         (vmlaq_n_u32): Likewise.
2572         (vmlaq_s8): Likewise.
2573         (vmlaq_s16): Likewise.
2574         (vmlaq_s32): Likewise.
2575         (vmlaq_u8): Likewise.
2576         (vmlaq_u16): Likewise.
2577         (vmlaq_u32): Likewise.
2578         (vmls_n_f32): Likewise.
2579         (vmls_n_s16): Likewise.
2580         (vmls_n_s32): Likewise.
2581         (vmls_n_u16): Likewise.
2582         (vmls_n_u32): Likewise.
2583         (vmls_s8): Likewise.
2584         (vmls_s16): Likewise.
2585         (vmls_s32): Likewise.
2586         (vmls_u8): Likewise.
2587         (vmls_u16): Likewise.
2588         (vmls_u32): Likewise.
2589         (vmlsl_high_n_s16): Likewise.
2590         (vmlsl_high_n_s32): Likewise.
2591         (vmlsl_high_n_u16): Likewise.
2592         (vmlsl_high_n_u32): Likewise.
2593         (vmlsl_high_s8): Likewise.
2594         (vmlsl_high_s16): Likewise.
2595         (vmlsl_high_s32): Likewise.
2596         (vmlsl_high_u8): Likewise.
2597         (vmlsl_high_u16): Likewise.
2598         (vmlsl_high_u32): Likewise.
2599         (vmlsl_n_s16): Likewise.
2600         (vmlsl_n_s32): Likewise.
2601         (vmlsl_n_u16): Likewise.
2602         (vmlsl_n_u32): Likewise.
2603         (vmlsl_s8): Likewise.
2604         (vmlsl_s16): Likewise.
2605         (vmlsl_s32): Likewise.
2606         (vmlsl_u8): Likewise.
2607         (vmlsl_u16): Likewise.
2608         (vmlsl_u32): Likewise.
2609         (vmlsq_n_f32): Likewise.
2610         (vmlsq_n_s16): Likewise.
2611         (vmlsq_n_s32): Likewise.
2612         (vmlsq_n_u16): Likewise.
2613         (vmlsq_n_u32): Likewise.
2614         (vmlsq_s8): Likewise.
2615         (vmlsq_s16): Likewise.
2616         (vmlsq_s32): Likewise.
2617         (vmlsq_u8): Likewise.
2618         (vmlsq_u16): Likewise.
2619         (vmlsq_u32): Likewise.
2620         (vmovl_high_s8): Likewise.
2621         (vmovl_high_s16): Likewise.
2622         (vmovl_high_s32): Likewise.
2623         (vmovl_high_u8): Likewise.
2624         (vmovl_high_u16): Likewise.
2625         (vmovl_high_u32): Likewise.
2626         (vmovl_s8): Likewise.
2627         (vmovl_s16): Likewise.
2628         (vmovl_s32): Likewise.
2629         (vmovl_u8): Likewise.
2630         (vmovl_u16): Likewise.
2631         (vmovl_u32): Likewise.
2632         (vmovn_high_s16): Likewise.
2633         (vmovn_high_s32): Likewise.
2634         (vmovn_high_s64): Likewise.
2635         (vmovn_high_u16): Likewise.
2636         (vmovn_high_u32): Likewise.
2637         (vmovn_high_u64): Likewise.
2638         (vmovn_s16): Likewise.
2639         (vmovn_s32): Likewise.
2640         (vmovn_s64): Likewise.
2641         (vmovn_u16): Likewise.
2642         (vmovn_u32): Likewise.
2643         (vmovn_u64): Likewise.
2644         (vmull_high_n_s16): Likewise.
2645         (vmull_high_n_s32): Likewise.
2646         (vmull_high_n_u16): Likewise.
2647         (vmull_high_n_u32): Likewise.
2648         (vmull_high_p8): Likewise.
2649         (vmull_high_s8): Likewise.
2650         (vmull_high_s16): Likewise.
2651         (vmull_high_s32): Likewise.
2652         (vmull_high_u8): Likewise.
2653         (vmull_high_u16): Likewise.
2654         (vmull_high_u32): Likewise.
2655         (vmull_n_s16): Likewise.
2656         (vmull_n_s32): Likewise.
2657         (vmull_n_u16): Likewise.
2658         (vmull_n_u32): Likewise.
2659         (vmull_p8): Likewise.
2660         (vmull_s8): Likewise.
2661         (vmull_s16): Likewise.
2662         (vmull_s32): Likewise.
2663         (vmull_u8): Likewise.
2664         (vmull_u16): Likewise.
2665         (vmull_u32): Likewise.
2666         (vpadal_s8): Likewise.
2667         (vpadal_s16): Likewise.
2668         (vpadal_s32): Likewise.
2669         (vpadal_u8): Likewise.
2670         (vpadal_u16): Likewise.
2671         (vpadal_u32): Likewise.
2672         (vpadalq_s8): Likewise.
2673         (vpadalq_s16): Likewise.
2674         (vpadalq_s32): Likewise.
2675         (vpadalq_u8): Likewise.
2676         (vpadalq_u16): Likewise.
2677         (vpadalq_u32): Likewise.
2678         (vpaddl_s8): Likewise.
2679         (vpaddl_s16): Likewise.
2680         (vpaddl_s32): Likewise.
2681         (vpaddl_u8): Likewise.
2682         (vpaddl_u16): Likewise.
2683         (vpaddl_u32): Likewise.
2684         (vpaddlq_s8): Likewise.
2685         (vpaddlq_s16): Likewise.
2686         (vpaddlq_s32): Likewise.
2687         (vpaddlq_u8): Likewise.
2688         (vpaddlq_u16): Likewise.
2689         (vpaddlq_u32): Likewise.
2690         (vpaddq_s8): Likewise.
2691         (vpaddq_s16): Likewise.
2692         (vpaddq_s32): Likewise.
2693         (vpaddq_s64): Likewise.
2694         (vpaddq_u8): Likewise.
2695         (vpaddq_u16): Likewise.
2696         (vpaddq_u32): Likewise.
2697         (vpaddq_u64): Likewise.
2698         (vqdmulh_n_s16): Likewise.
2699         (vqdmulh_n_s32): Likewise.
2700         (vqdmulhq_n_s16): Likewise.
2701         (vqdmulhq_n_s32): Likewise.
2702         (vqmovn_high_s16): Likewise.
2703         (vqmovn_high_s32): Likewise.
2704         (vqmovn_high_s64): Likewise.
2705         (vqmovn_high_u16): Likewise.
2706         (vqmovn_high_u32): Likewise.
2707         (vqmovn_high_u64): Likewise.
2708         (vqmovun_high_s16): Likewise.
2709         (vqmovun_high_s32): Likewise.
2710         (vqmovun_high_s64): Likewise.
2711         (vqrdmulh_n_s16): Likewise.
2712         (vqrdmulh_n_s32): Likewise.
2713         (vqrdmulhq_n_s16): Likewise.
2714         (vqrdmulhq_n_s32): Likewise.
2715         (vrsqrte_u32): Likewise.
2716         (vrsqrteq_u32): Likewise.
2717         (vtst_p8): Likewise.
2718         (vtst_p16): Likewise.
2719         (vtst_p64): Likewise.
2720         (vtstq_p8): Likewise.
2721         (vtstq_p16): Likewise.
2722         (vtstq_p64): Likewise.
2723         (vaddlv_s32): Likewise.
2724         (vaddlv_u32): Likewise.
2725         (vqtbl1_p8): Likewise.
2726         (vqtbl1_s8): Likewise.
2727         (vqtbl1_u8): Likewise.
2728         (vqtbl1q_p8): Likewise.
2729         (vqtbl1q_s8): Likewise.
2730         (vqtbl1q_u8): Likewise.
2731         (vqtbx1_s8): Likewise.
2732         (vqtbx1_u8): Likewise.
2733         (vqtbx1_p8): Likewise.
2734         (vqtbx1q_s8): Likewise.
2735         (vqtbx1q_u8): Likewise.
2736         (vqtbx1q_p8): Likewise.
2737         (vtbl1_s8): Likewise.
2738         (vtbl1_u8): Likewise.
2739         (vtbl1_p8): Likewise.
2740         (vtbl2_s8): Likewise.
2741         (vtbl2_u8): Likewise.
2742         (vtbl2_p8): Likewise.
2743         (vtbl3_s8): Likewise.
2744         (vtbl3_u8): Likewise.
2745         (vtbl3_p8): Likewise.
2746         (vtbl4_s8): Likewise.
2747         (vtbl4_u8): Likewise.
2748         (vtbl4_p8): Likewise.
2749         (vtbx2_s8): Likewise.
2750         (vtbx2_u8): Likewise.
2751         (vtbx2_p8): Likewise.
2752         (vld1_f32): Likewise.
2753         (vld1_f64): Likewise.
2754         (vld1_p8): Likewise.
2755         (vld1_p16): Likewise.
2756         (vld1_p64): Likewise.
2757         (vld1_s8): Likewise.
2758         (vld1_s16): Likewise.
2759         (vld1_s32): Likewise.
2760         (vld1_s64): Likewise.
2761         (vld1_u8): Likewise.
2762         (vld1_u16): Likewise.
2763         (vld1_u32): Likewise.
2764         (vld1_u64): Likewise.
2765         (vld1q_f32): Likewise.
2766         (vld1q_f64): Likewise.
2767         (vld1q_p8): Likewise.
2768         (vld1q_p16): Likewise.
2769         (vld1q_p64): Likewise.
2770         (vld1q_s8): Likewise.
2771         (vld1q_s16): Likewise.
2772         (vld1q_s32): Likewise.
2773         (vld1q_s64): Likewise.
2774         (vld1q_u8): Likewise.
2775         (vld1q_u16): Likewise.
2776         (vld1q_u32): Likewise.
2777         (vld1q_u64): Likewise.
2778         (vpmax_s8): Likewise.
2779         (vpmax_s16): Likewise.
2780         (vpmax_s32): Likewise.
2781         (vpmax_u8): Likewise.
2782         (vpmax_u16): Likewise.
2783         (vpmax_u32): Likewise.
2784         (vpmaxq_s8): Likewise.
2785         (vpmaxq_s16): Likewise.
2786         (vpmaxq_s32): Likewise.
2787         (vpmaxq_u8): Likewise.
2788         (vpmaxq_u16): Likewise.
2789         (vpmaxq_u32): Likewise.
2790         (vpmax_f32): Likewise.
2791         (vpmaxq_f32): Likewise.
2792         (vpmaxq_f64): Likewise.
2793         (vpmaxqd_f64): Likewise.
2794         (vpmaxs_f32): Likewise.
2795         (vpmaxnm_f32): Likewise.
2796         (vpmaxnmq_f32): Likewise.
2797         (vpmaxnmq_f64): Likewise.
2798         (vpmaxnmqd_f64): Likewise.
2799         (vpmaxnms_f32): Likewise.
2800         (vpmin_s8): Likewise.
2801         (vpmin_s16): Likewise.
2802         (vpmin_s32): Likewise.
2803         (vpmin_u8): Likewise.
2804         (vpmin_u16): Likewise.
2805         (vpmin_u32): Likewise.
2806         (vpminq_s8): Likewise.
2807         (vpminq_s16): Likewise.
2808         (vpminq_s32): Likewise.
2809         (vpminq_u8): Likewise.
2810         (vpminq_u16): Likewise.
2811         (vpminq_u32): Likewise.
2812         (vpmin_f32): Likewise.
2813         (vpminq_f32): Likewise.
2814         (vpminq_f64): Likewise.
2815         (vpminqd_f64): Likewise.
2816         (vpmins_f32): Likewise.
2817         (vpminnm_f32): Likewise.
2818         (vpminnmq_f32): Likewise.
2819         (vpminnmq_f64): Likewise.
2820         (vpminnmqd_f64): Likewise.
2821         (vpminnms_f32): Likewise.
2822         (vmla_f32): Likewise.
2823         (vmlaq_f32): Likewise.
2824         (vmlaq_f64): Likewise.
2825         (vmls_f32): Likewise.
2826         (vmlsq_f32): Likewise.
2827         (vmlsq_f64): Likewise.
2828         (vqtbl2_s8): Likewise.
2829         (vqtbl2_u8): Likewise.
2830         (vqtbl2_p8): Likewise.
2831         (vqtbl2q_s8): Likewise.
2832         (vqtbl2q_u8): Likewise.
2833         (vqtbl2q_p8): Likewise.
2834         (vqtbl3_s8): Likewise.
2835         (vqtbl3_u8): Likewise.
2836         (vqtbl3_p8): Likewise.
2837         (vqtbl3q_s8): Likewise.
2838         (vqtbl3q_u8): Likewise.
2839         (vqtbl3q_p8): Likewise.
2840         (vqtbl4_s8): Likewise.
2841         (vqtbl4_u8): Likewise.
2842         (vqtbl4_p8): Likewise.
2843         (vqtbl4q_s8): Likewise.
2844         (vqtbl4q_u8): Likewise.
2845         (vqtbl4q_p8): Likewise.
2846         (vqtbx2_s8): Likewise.
2847         (vqtbx2_u8): Likewise.
2848         (vqtbx2_p8): Likewise.
2849         (vqtbx2q_s8): Likewise.
2850         (vqtbx2q_u8): Likewise.
2851         (vqtbx2q_p8): Likewise.
2852         (vqtbx3_s8): Likewise.
2853         (vqtbx3_u8): Likewise.
2854         (vqtbx3_p8): Likewise.
2855         (vqtbx3q_s8): Likewise.
2856         (vqtbx3q_u8): Likewise.
2857         (vqtbx3q_p8): Likewise.
2858         (vqtbx4_s8): Likewise.
2859         (vqtbx4_u8): Likewise.
2860         (vqtbx4_p8): Likewise.
2861         (vqtbx4q_s8): Likewise.
2862         (vqtbx4q_u8): Likewise.
2863         (vqtbx4q_p8): Likewise.
2864         (vrev16_p8): Likewise.
2865         (vrev16_s8): Likewise.
2866         (vrev16_u8): Likewise.
2867         (vrev16q_p8): Likewise.
2868         (vrev16q_s8): Likewise.
2869         (vrev16q_u8): Likewise.
2870         (vrev32_p8): Likewise.
2871         (vrev32_p16): Likewise.
2872         (vrev32_s8): Likewise.
2873         (vrev32_s16): Likewise.
2874         (vrev32_u8): Likewise.
2875         (vrev32_u16): Likewise.
2876         (vrev32q_p8): Likewise.
2877         (vrev32q_p16): Likewise.
2878         (vrev32q_s8): Likewise.
2879         (vrev32q_s16): Likewise.
2880         (vrev32q_u8): Likewise.
2881         (vrev32q_u16): Likewise.
2882         (vrev64_f32): Likewise.
2883         (vrev64_p8): Likewise.
2884         (vrev64_p16): Likewise.
2885         (vrev64_s8): Likewise.
2886         (vrev64_s16): Likewise.
2887         (vrev64_s32): Likewise.
2888         (vrev64_u8): Likewise.
2889         (vrev64_u16): Likewise.
2890         (vrev64_u32): Likewise.
2891         (vrev64q_f32): Likewise.
2892         (vrev64q_p8): Likewise.
2893         (vrev64q_p16): Likewise.
2894         (vrev64q_s8): Likewise.
2895         (vrev64q_s16): Likewise.
2896         (vrev64q_s32): Likewise.
2897         (vrev64q_u8): Likewise.
2898         (vrev64q_u16): Likewise.
2899         (vrev64q_u32): Likewise.
2900         (vsha1cq_u32): Likewise.
2901         (vsha1mq_u32): Likewise.
2902         (vsha1pq_u32): Likewise.
2903         (vsha1h_u32): Likewise.
2904         (vsha1su0q_u32): Likewise.
2905         (vsha1su1q_u32): Likewise.
2906         (vsha256hq_u32): Likewise.
2907         (vsha256h2q_u32): Likewise.
2908         (vsha256su0q_u32): Likewise.
2909         (vsha256su1q_u32): Likewise.
2910         (vmull_p64): Likewise.
2911         (vmull_high_p64): Likewise.
2912         (vsqrt_f32): Likewise.
2913         (vsqrtq_f32): Likewise.
2914         (vsqrt_f64): Likewise.
2915         (vsqrtq_f64): Likewise.
2916         (vst1_f32): Likewise.
2917         (vst1_f64): Likewise.
2918         (vst1_p8): Likewise.
2919         (vst1_p16): Likewise.
2920         (vst1_p64): Likewise.
2921         (vst1_s8): Likewise.
2922         (vst1_s16): Likewise.
2923         (vst1_s32): Likewise.
2924         (vst1_s64): Likewise.
2925         (vst1_u8): Likewise.
2926         (vst1_u16): Likewise.
2927         (vst1_u32): Likewise.
2928         (vst1_u64): Likewise.
2929         (vst1q_f32): Likewise.
2930         (vst1q_f64): Likewise.
2931         (vst1q_p8): Likewise.
2932         (vst1q_p16): Likewise.
2933         (vst1q_p64): Likewise.
2934         (vst1q_s8): Likewise.
2935         (vst1q_s16): Likewise.
2936         (vst1q_s32): Likewise.
2937         (vst1q_s64): Likewise.
2938         (vst1q_u8): Likewise.
2939         (vst1q_u16): Likewise.
2940         (vst1q_u32): Likewise.
2941         (vst1q_u64): Likewise.
2942         (vst1_s64_x2): Likewise.
2943         (vst1_u64_x2): Likewise.
2944         (vst1_f64_x2): Likewise.
2945         (vst1_s8_x2): Likewise.
2946         (vst1_p8_x2): Likewise.
2947         (vst1_s16_x2): Likewise.
2948         (vst1_p16_x2): Likewise.
2949         (vst1_s32_x2): Likewise.
2950         (vst1_u8_x2): Likewise.
2951         (vst1_u16_x2): Likewise.
2952         (vst1_u32_x2): Likewise.
2953         (vst1_f16_x2): Likewise.
2954         (vst1_f32_x2): Likewise.
2955         (vst1_p64_x2): Likewise.
2956         (vst1q_s8_x2): Likewise.
2957         (vst1q_p8_x2): Likewise.
2958         (vst1q_s16_x2): Likewise.
2959         (vst1q_p16_x2): Likewise.
2960         (vst1q_s32_x2): Likewise.
2961         (vst1q_s64_x2): Likewise.
2962         (vst1q_u8_x2): Likewise.
2963         (vst1q_u16_x2): Likewise.
2964         (vst1q_u32_x2): Likewise.
2965         (vst1q_u64_x2): Likewise.
2966         (vst1q_f16_x2): Likewise.
2967         (vst1q_f32_x2): Likewise.
2968         (vst1q_f64_x2): Likewise.
2969         (vst1q_p64_x2): Likewise.
2970         (vst1_s64_x3): Likewise.
2971         (vst1_u64_x3): Likewise.
2972         (vst1_f64_x3): Likewise.
2973         (vst1_s8_x3): Likewise.
2974         (vst1_p8_x3): Likewise.
2975         (vst1_s16_x3): Likewise.
2976         (vst1_p16_x3): Likewise.
2977         (vst1_s32_x3): Likewise.
2978         (vst1_u8_x3): Likewise.
2979         (vst1_u16_x3): Likewise.
2980         (vst1_u32_x3): Likewise.
2981         (vst1_f16_x3): Likewise.
2982         (vst1_f32_x3): Likewise.
2983         (vst1_p64_x3): Likewise.
2984         (vst1q_s8_x3): Likewise.
2985         (vst1q_p8_x3): Likewise.
2986         (vst1q_s16_x3): Likewise.
2987         (vst1q_p16_x3): Likewise.
2988         (vst1q_s32_x3): Likewise.
2989         (vst1q_s64_x3): Likewise.
2990         (vst1q_u8_x3): Likewise.
2991         (vst1q_u16_x3): Likewise.
2992         (vst1q_u32_x3): Likewise.
2993         (vst1q_u64_x3): Likewise.
2994         (vst1q_f16_x3): Likewise.
2995         (vst1q_f32_x3): Likewise.
2996         (vst1q_f64_x3): Likewise.
2997         (vst1q_p64_x3): Likewise.
2998         (vst2_s64): Likewise.
2999         (vst2_u64): Likewise.
3000         (vst2_f64): Likewise.
3001         (vst2_s8): Likewise.
3002         (vst2_p8): Likewise.
3003         (vst2_s16): Likewise.
3004         (vst2_p16): Likewise.
3005         (vst2_s32): Likewise.
3006         (vst2_u8): Likewise.
3007         (vst2_u16): Likewise.
3008         (vst2_u32): Likewise.
3009         (vst2_f16): Likewise.
3010         (vst2_f32): Likewise.
3011         (vst2_p64): Likewise.
3012         (vst2q_s8): Likewise.
3013         (vst2q_p8): Likewise.
3014         (vst2q_s16): Likewise.
3015         (vst2q_p16): Likewise.
3016         (vst2q_s32): Likewise.
3017         (vst2q_s64): Likewise.
3018         (vst2q_u8): Likewise.
3019         (vst2q_u16): Likewise.
3020         (vst2q_u32): Likewise.
3021         (vst2q_u64): Likewise.
3022         (vst2q_f16): Likewise.
3023         (vst2q_f32): Likewise.
3024         (vst2q_f64): Likewise.
3025         (vst2q_p64): Likewise.
3026         (vst3_s64): Likewise.
3027         (vst3_u64): Likewise.
3028         (vst3_f64): Likewise.
3029         (vst3_s8): Likewise.
3030         (vst3_p8): Likewise.
3031         (vst3_s16): Likewise.
3032         (vst3_p16): Likewise.
3033         (vst3_s32): Likewise.
3034         (vst3_u8): Likewise.
3035         (vst3_u16): Likewise.
3036         (vst3_u32): Likewise.
3037         (vst3_f16): Likewise.
3038         (vst3_f32): Likewise.
3039         (vst3_p64): Likewise.
3040         (vst3q_s8): Likewise.
3041         (vst3q_p8): Likewise.
3042         (vst3q_s16): Likewise.
3043         (vst3q_p16): Likewise.
3044         (vst3q_s32): Likewise.
3045         (vst3q_s64): Likewise.
3046         (vst3q_u8): Likewise.
3047         (vst3q_u16): Likewise.
3048         (vst3q_u32): Likewise.
3049         (vst3q_u64): Likewise.
3050         (vst3q_f16): Likewise.
3051         (vst3q_f32): Likewise.
3052         (vst3q_f64): Likewise.
3053         (vst3q_p64): Likewise.
3054         (vst4_s64): Likewise.
3055         (vst4_u64): Likewise.
3056         (vst4_f64): Likewise.
3057         (vst4_s8): Likewise.
3058         (vst4_p8): Likewise.
3059         (vst4_s16): Likewise.
3060         (vst4_p16): Likewise.
3061         (vst4_s32): Likewise.
3062         (vst4_u8): Likewise.
3063         (vst4_u16): Likewise.
3064         (vst4_u32): Likewise.
3065         (vst4_f16): Likewise.
3066         (vst4_f32): Likewise.
3067         (vst4_p64): Likewise.
3068         (vst4q_s8): Likewise.
3069         (vst4q_p8): Likewise.
3070         (vst4q_s16): Likewise.
3071         (vst4q_p16): Likewise.
3072         (vst4q_s32): Likewise.
3073         (vst4q_s64): Likewise.
3074         (vst4q_u8): Likewise.
3075         (vst4q_u16): Likewise.
3076         (vst4q_u32): Likewise.
3077         (vst4q_u64): Likewise.
3078         (vst4q_f16): Likewise.
3079         (vst4q_f32): Likewise.
3080         (vst4q_f64): Likewise.
3081         (vst4q_p64): Likewise.
3082         (vtbx4_s8): Likewise.
3083         (vtbx4_u8): Likewise.
3084         (vtbx4_p8): Likewise.
3085         (vtrn_f32): Likewise.
3086         (vtrn_p8): Likewise.
3087         (vtrn_p16): Likewise.
3088         (vtrn_s8): Likewise.
3089         (vtrn_s16): Likewise.
3090         (vtrn_s32): Likewise.
3091         (vtrn_u8): Likewise.
3092         (vtrn_u16): Likewise.
3093         (vtrn_u32): Likewise.
3094         (vtrnq_f32): Likewise.
3095         (vtrnq_p8): Likewise.
3096         (vtrnq_p16): Likewise.
3097         (vtrnq_s8): Likewise.
3098         (vtrnq_s16): Likewise.
3099         (vtrnq_s32): Likewise.
3100         (vtrnq_u8): Likewise.
3101         (vtrnq_u16): Likewise.
3102         (vtrnq_u32): Likewise.
3103         (vrsqrte_f16): Likewise.
3104         (vrsqrteq_f16): Likewise.
3105         (vsqrt_f16): Likewise.
3106         (vsqrtq_f16): Likewise.
3107         (vabd_f16): Likewise.
3108         (vabdq_f16): Likewise.
3109         (vpadd_f16): Likewise.
3110         (vpaddq_f16): Likewise.
3111         (vpmax_f16): Likewise.
3112         (vpmaxq_f16): Likewise.
3113         (vpmaxnm_f16): Likewise.
3114         (vpmaxnmq_f16): Likewise.
3115         (vpmin_f16): Likewise.
3116         (vpminq_f16): Likewise.
3117         (vpminnm_f16): Likewise.
3118         (vpminnmq_f16): Likewise.
3119         (vrsqrts_f16): Likewise.
3120         (vrsqrtsq_f16): Likewise.
3122 2019-09-25  Richard Biener  <rguenther@suse.de>
3124         PR tree-optimization/91896
3125         * tree-vect-loop.c (vectorizable_reduction): The single
3126         def-use cycle optimization cannot apply when there's more
3127         than one pattern stmt involved.
3129 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
3131         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3132         the 'P' mode iterator, replacing the (removed) SI and DI variants.
3133         (reload_macho_picbase_<mode>): Likewise.
3135 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
3137         * config/rs6000/rs6000.md: Move darwin.md include until
3138         after the definition of the mode iterators.
3140 2019-09-23  Martin Sebor  <msebor@redhat.com>
3142         PR tree-optimization/91570
3143         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3144         non-constant minlen, maxlen and maxbound.
3146 2019-09-24  Richard Biener  <rguenther@suse.de>
3148         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3149         Rename to...
3150         (_stmt_vec_info::cond_reduc_code): ... this.
3151         (_stmt_vec_info::induc_cond_initial_val): Add.
3152         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3153         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3154         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3155         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3156         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3157         the reduction code.
3158         (vect_create_epilog_for_reduction): Drop special
3159         induction condition reduction params, pass in reduction code
3160         and simplify.
3161         (vectorizable_reduction): Perform condition reduction kind
3162         selection only at analysis time.  Adjust passing on state.
3164 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3166         * config/aarch64/aarch64.md (mov<mode>): Don't call
3167         aarch64_split_dimode_const_store on volatile MEM.
3169 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
3171         * config/aarch64/aarch64-option-extensions.def (fp16fml):
3172         Update hwcap string for fp16fml.
3174 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
3176         PR middle-end/91866
3177         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3178         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3180 2019-09-24  Martin Liska  <mliska@suse.cz>
3182         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3183         instead of if-elseif-elseif-...
3184         * gimple-expr.c (extract_ops_from_tree): Likewise.
3185         * gimple.c (get_gimple_rhs_num_ops): Likewise.
3186         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3188 2019-09-24  Martin Jambor  <mjambor@suse.cz>
3190         PR ipa/91831
3191         * ipa-param-manipulation.c (carry_over_param): Make a method of
3192         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
3193         in case of a context mismatch.
3194         (ipa_param_body_adjustments::common_initialization): Adjust call to
3195         carry_over_param.
3196         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3197         private method carry_over_param.
3199 2019-09-24  Martin Jambor  <mjambor@suse.cz>
3201         PR ipa/91832
3202         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3204 2019-09-24  Richard Biener  <rguenther@suse.de>
3206         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3207         base.
3209 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3211         * config/arm/t-arm (arm-builtins.o): Add dependency on
3212         arm_acle_builtins.def.
3214 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3216         PR target/91823
3217         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3218         canonical CONST_INTs.  Use gen_rtvec.
3220 2019-09-23  Richard Biener  <rguenther@suse.de>
3222         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3223         avoid adjusting by + 0 or * 1.
3224         (vect_create_epilog_for_reduction): Get reduction code only
3225         when necessary.  Deal with adjustment_def only when necessary.
3227 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3229         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3230         memmodel index.
3232 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3234         PR ipa/91835
3235         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3236         "ipa-sra".
3238 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
3240         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3241         code.  Merge code blocks with common conditionals. Use declared
3242         macro instead of a magic number for PIC level.
3244 2019-09-21  Martin Sebor  <msebor@redhat.com>
3246         PR middle-end/91830
3247         * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3248         Simplify computation of the offset of the referenced subobject.
3250 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
3252         * config/darwin.c (machopic_legitimize_pic_address): Check
3253         for lra not reload.
3255 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
3257         * ira-conflicts.c (can_use_same_reg_p): New function.
3258         (process_reg_shuffles): Take an insn parameter.  Ignore cases
3259         in which input operand op_num could seemingly never be allocated
3260         to the same register as the destination.
3261         (add_insn_allocno_copies): Update call to process_reg_shuffles.
3263 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
3265         * simplify-rtx.c (neg_const_int): Replace with...
3266         (neg_poly_int_rtx): ...this new function.
3267         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3268         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3269         (simplify_plus_minus): Likewise for constant terms here.
3271 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
3273         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3274         HOST_WIDE_PRINT_UNSIGNED.
3276 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
3278         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3279         character.
3281 2019-09-20  Maya Rashish  <coypu@sdf.org>
3283         PR target/86811
3284         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3285         Define to speculation_safe_value_not_needed.
3287 2019-09-20  Richard Biener  <rguenther@suse.de>
3288         Uros Bizjak  <ubizjak@gmail.com>
3290         PR target/91814
3291         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3292         previous change.
3293         (general_scalar_chain::convert_op): Force not suitable memory
3294         operands to a register.
3296 2019-09-20  Richard Biener  <rguenther@suse.de>
3298         PR tree-optimization/91821
3299         * tree-vect-loop.c (check_reduction_path): Check we can compute
3300         reduc_idx.
3301         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3302         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3303         operands in canonical order.
3304         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3305         STMT_VINFO_REDUC_IDX.
3306         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3307         (STMT_VINFO_REDUC_IDX): Likewise.
3309 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3311         PR target/91269
3312         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3314 2019-09-20  Richard Biener  <rguenther@suse.de>
3316         PR tree-optimization/91822
3317         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3318         parameter.
3319         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3320         for reduc_index in nested cycles, adjust vectorizable_condition
3321         calls.
3322         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3323         parameter.
3324         (vect_analyze_stmt): Adjust.
3325         (vect_transform_stmt): Likewise.
3327 2019-09-20  Richard Biener  <rguenther@suse.de>
3329         PR target/91767
3330         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3331         Ensure there's a sequence point between allocating the new register
3332         and passing a reference to a reg via regno_reg_rtx.
3334 2019-09-20  Martin Jambor  <mjambor@suse.cz>
3336         * coretypes.h (cgraph_edge): Declare.
3337         * ipa-param-manipulation.c: Rewrite.
3338         * ipa-param-manipulation.h: Likewise.
3339         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3340         (OBJS): Added ipa-sra.o.
3341         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3342         and ref_p, added fields param_adjustments and performed_splits.
3343         (struct cgraph_clone_info): Remove ags_to_skip and
3344         combined_args_to_skip, new field param_adjustments.
3345         (cgraph_node::create_clone): Changed parameters to use
3346         ipa_param_adjustments.
3347         (cgraph_node::create_virtual_clone): Likewise.
3348         (cgraph_node::create_virtual_clone_with_body): Likewise.
3349         (tree_function_versioning): Likewise.
3350         (cgraph_build_function_type_skip_args): Removed.
3351         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3352         using ipa_param_adjustments.
3353         (clone_of_p): Likewise.
3354         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3355         (build_function_decl_skip_args): Likewise.
3356         (duplicate_thunk_for_node): Adjust parameters using
3357         ipa_param_body_adjustments, copy param_adjustments instead of
3358         args_to_skip.
3359         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3360         (cgraph_node::create_virtual_clone): Likewise.
3361         (cgraph_node::create_version_clone_with_body): Likewise.
3362         (cgraph_materialize_clone): Likewise.
3363         (symbol_table::materialize_all_clones): Likewise.
3364         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3365         ipa_replace_map check.
3366         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3367         (initialize_node_lattices): Make aware that some parameters might have
3368         already been removed.
3369         (want_remove_some_param_p): New function.
3370         (create_specialized_node): Convert to using ipa_param_adjustments and
3371         deal with possibly pre-existing adjustments.
3372         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3373         (output_node_opt_summary): Do not stream removed fields.  Stream
3374         parameter adjustments instead of argumetns to skip.
3375         (input_node_opt_summary): Likewise.
3376         (input_node_opt_summary): Likewise.
3377         * lto-section-in.c (lto_section_name): Added ipa-sra section.
3378         * lto-streamer.h (lto_section_type): Likewise.
3379         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3380         param_body_adjs.
3381         (copy_decl_to_var): Declare.
3382         * tree-inline.c (update_clone_info): Do not remap old_tree.
3383         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3384         statements, walk all extra generated statements and remap their
3385         operands.
3386         (redirect_all_calls): Add killed SSA names to a hash set.
3387         (remap_ssa_name): Do not remap killed SSA names.
3388         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3389         half of functionality moved to ipa_param_body_adjustments.
3390         (copy_decl_to_var): Make exported.
3391         (copy_body): Destroy killed_new_ssa_names hash set.
3392         (expand_call_inline): Remap performed splits.
3393         (update_clone_info): Likewise.
3394         (tree_function_versioning): Simplify tree_map processing.  Updated to
3395         accept ipa_param_adjustments and use ipa_param_body_adjustments.
3396         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3397         for the new interface.
3398         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3399         (simd_clone_compute_base_data_type): Likewise.
3400         (simd_clone_init_simd_arrays): Adjust for the new interface.
3401         (simd_clone_adjust_argument_types): Likewise.
3402         (struct modify_stmt_info): Likewise.
3403         (ipa_simd_modify_stmt_ops): Likewise.
3404         (ipa_simd_modify_function_body): Likewise.
3405         (simd_clone_adjust): Likewise.
3406         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
3407         (type_internals_preclude_sra_p): Make public.
3408         * tree-sra.h: New file.
3409         * ipa-inline-transform.c (save_inline_function_body): Update to
3410         refelct new tree_function_versioning signature.
3411         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3412         ipa_param_adjustments to get current parameter indices.
3413         (ipcp_modif_dom_walker::before_dom_children): Likewise.
3414         (ipcp_update_bits): Likewise.
3415         (ipcp_update_vr): Likewise.
3416         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3417         * ipa-sra.c: New file.
3418         * multiple_target.c (create_target_clone): Update to reflet new type
3419         of create_version_clone_with_body.
3420         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3421         tree_function_versioning.
3422         (modify_function): Update to reflect new type of
3423         tree_function_versioning.
3424         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3425         * passes.def: Remove old IPA-SRA and add new one.
3426         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3427         (make_pass_ipa_sra): Declare.
3428         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
3429         ipa_sra_retvalues.
3430         * doc/invoke.texi (ipa-sra-max-replacements): New.
3432 2019-09-19  Martin Sebor  <msebor@redhat.com>
3434         PR middle-end/91631
3435         * builtins.c (component_size): Correct trailing array computation,
3436         rename to component_ref_size and move...
3437         (compute_objsize): Adjust.
3438         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3439         (builtin_access::strict): Do not consider memmove.
3440         (builtin_access::write_off): New function.
3441         (builtin_memref::builtin_memref): Initialize refsize.
3442         (builtin_memref::set_base_and_offset): Adjust refoff and compute
3443         refsize.
3444         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3445         Handle refsize.
3446         (builtin_access::builtin_access): Initialize dstoff to destination
3447         refeence offset here instead of in maybe_diag_overlap.  Adjust
3448         referencess even to unrelated objects.  Adjust sizrange of bounded
3449         string functions to reflect bound.  For strcat, adjust destination
3450         sizrange by that of source.
3451         (builtin_access::strcat_overlap):  Adjust offsets and sizes
3452         to reflect the increase in destination sizrange above.
3453         (builtin_access::overlap): Do not set dstoff here but instead
3454         in builtin_access::builtin_access.
3455         (check_bounds_or_overlap): Use builtin_access::write_off.
3456         (maybe_diag_access_bounds): Add argument.  Add informational notes.
3457         (dump_builtin_memref, dump_builtin_access): New functions.
3458         * tree.c (component_ref_size): ...to here.
3459         * tree.h (component_ref_size): Declare.
3460         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3461         nul in the size of the source string.
3463 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
3465         PR c/67224
3466         * doc/cpp.texi: Document support for extended characters in
3467         identifiers.
3468         * doc/cppopts.texi: Likewise.
3470 2019-09-19  Richard Biener  <rguenther@suse.de>
3472         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3473         (check_reduction_path): New overload having the path as result.
3474         (vect_is_simple_reduction): From the detected reduction
3475         path build a SLP reduction chain if possible.
3477 2019-09-19  Richard Biener  <rguenther@suse.de>
3479         PR target/91814
3480         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3481         Force operand to a register if it isn't nonimmediate_operand.
3483 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3485         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3486         * config/arm/iterators.md (optab): Add and, ior, xor entries.
3487         (logical_op): Remove code attribute.
3488         (logical_OP): Likewise.
3490 2019-09-19  Martin Liska  <mliska@suse.cz>
3492         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3493         Use proper casting.
3495 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
3497         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3498         registers with %R.
3500         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3501         for NE comparison of TImode values.
3502         (aarch64_emit_load_exclusive): Add support for TImode.
3503         (aarch64_emit_store_exclusive): Likewise.
3504         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3505         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3506         Change iterator from ALLI to ALLI_TI.
3507         (@atomic_compare_and_swap<JUST_TI>): New.
3508         (@atomic_compare_and_swap<JUST_TI>_lse): New.
3509         (aarch64_load_exclusive_pair): New.
3510         (aarch64_store_exclusive_pair): New.
3511         * config/aarch64/iterators.md (JUST_TI): New.
3513         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3514         strong_zero_p for aarch64_track_speculation; unify some code paths;
3515         use aarch64_gen_compare_reg instead of open-coding.
3517         * config/aarch64/aarch64.opt (-moutline-atomics): New.
3518         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3519         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3520         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3521         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3522         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3523         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3524         (atomic_<atomic_op><ALLI>): Likewise.
3525         (atomic_fetch_<atomic_op><ALLI>): Likewise.
3526         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3527         * doc/invoke.texi: Document -moutline-atomics.
3529 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
3531         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3532         trivial predicate for condition branch.
3533         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3534         for switch case.
3535         (compute_bb_predicates): Update predicate based on post-dominating
3536         relationship.
3537         (analyze_function_body): Calculate post-dominating information.
3539 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
3541         * tree-vectorizer.h (vectorizable_condition): Take an int
3542         reduction index instead of a boolean flag.
3543         * tree-vect-stmts.c (vectorizable_condition): Likewise.
3544         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3545         reductions if the reduction accumulator is the "then" rather
3546         than the "else" value.
3547         (vect_analyze_stmt): Update call accordingly.
3548         (vect_transform_stmt): Likewise.
3549         * tree-vect-loop.c (vectorizable_reduction): Likewise,
3550         asserting that the index is > 0.
3552 2019-09-19  Martin Liska  <mliska@suse.cz>
3554         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3555         (sort_congruence_classes_by_decl_uid): Likewise.
3556         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3557         easier sorting.
3558         (sem_item_optimizer::merge_classes): Likewise.
3560 2019-09-19  Richard Biener  <rguenther@suse.de>
3562         PR tree-optimization/91812
3563         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3564         volatile loads.
3566 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
3568         * defaults.h (TARGET_UNIT): New macro.
3569         (target_unit): New type.
3570         * rtl.h (native_encode_rtx, native_decode_rtx)
3571         (native_decode_vector_rtx, subreg_size_lsb): Declare.
3572         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3573         * rtlanal.c (subreg_lsb_1): Delete.
3574         (subreg_size_lsb): New function.
3575         * simplify-rtx.c: Include rtx-vector-builder.h
3576         (simplify_immed_subreg): Delete.
3577         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3578         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3579         functions.
3580         (simplify_subreg): Use them.
3581         (test_vector_subregs_modes, test_vector_subregs_repeating)
3582         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3583         (test_vector_subregs): New functions.
3584         (test_vector_ops): Call test_vector_subregs for integer vector
3585         modes with at least 2 elements.
3587 2019-09-19  Richard Biener  <rguenther@suse.de>
3589         * tree-parloops.c (parloops_is_slp_reduction): Do not set
3590         LOOP_VINFO_OPERANDS_SWAPPED.
3591         (parloops_is_simple_reduction): Likewise.
3592         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3593         initialize operands_swapped.
3594         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3595         (vect_is_slp_reduction): Do not swap operands.
3596         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3597         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3599 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
3601         PR target/87007
3602         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3603         Add avx_partial_xmm_update.
3605 2019-09-18  Jim Wilson  <jimw@sifive.com>
3607         PR target/91683
3608         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3609         (riscv_move_integer): Likewise.
3610         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3611         riscv_move_integer arg.
3612         (riscv_legitimize_move): Likewise.
3613         (riscv_force_temporary): New parameter in_splitter.  Don't call
3614         force_reg if true.
3615         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3616         arg.
3617         (riscv_add_offset): Likewise.
3618         (riscv_split_symbol): New parameter in_splitter.  Pass to
3619         riscv_force_temporary.
3620         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3621         arg.
3622         (riscv_move_integer): New parameter in_splitter.  New local
3623         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
3624         in_splitter TRUE.
3625         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3626         riscv_split_symbol, and riscv_force_temporary args.
3627         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3628         riscv_move_integer arg.
3629         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3631 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3633         PR target/90878
3634         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3635         hard register store cost to 6.
3637 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3639         PR target/91446
3640         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3641         pseudo register store cost from 3 to 6 to make it the same as
3642         QImode and HImode.
3644 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3646         PR target/91738
3647         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3648         (one_cmpldi2): Likewise.
3649         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3650         of the constant parts is simple.
3651         * config/arm/iterators.md (LOGICAL): Add new code iterator.
3652         (logical_op): Add new code attribute.
3653         (logical_OP): Likewise.
3654         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3655         (arm_iordi_operand): Add predicate.
3656         (arm_xordi_operand): Add predicate.
3658 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3660         * config/arm/arm.md (maddsidi4): Remove expander.
3661         (mulsidi3adddi): Remove pattern.
3662         (mulsidi3adddi_v6): Likewise.
3663         (mulsidi3_nov6): Likewise.
3664         (mulsidi3_v6): Likewise.
3665         (umulsidi3): Remove expander.
3666         (umulsidi3_nov6): Remove pattern.
3667         (umulsidi3_v6): Likewise.
3668         (umulsidi3adddi): Likewise.
3669         (umulsidi3adddi_v6): Likewise.
3670         (<Us>mulsidi3): Add combined expander.
3671         (<Us>maddsidi4): Likewise.
3672         (<US>mull): Add combined umull and smull pattern.
3673         (<US>mlal): Likewise.
3674         * config/arm/iterators.md (Us): Add new iterator.
3676 2019-09-18  Richard Biener  <rguenther@suse.de>
3678         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3679         swapping.
3680         (vectorize_fold_left_reduction): Remove assert.
3681         (vectorizable_reduction): Also expect COND_EXPR non-reduction
3682         operand in position 2.  Remove assert.
3684 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3686         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3687         (smulsi3_highpart_nov6): Remove pattern.
3688         (smulsi3_highpart_v6): Likewise.
3689         (umulsi3_highpart): Likewise.
3690         (umulsi3_highpart_nov6): Likewise.
3691         (umulsi3_highpart_v6): Likewise.
3692         (<US>mull_high): Add new combined multiply pattern.
3694 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3696         * config/arm/arm.md (arm_mulsi3): Remove pattern.
3697         (arm_mulsi3_v6): Likewise.
3698         (mulsi3addsi_v6): Likewise.
3699         (mulsi3subsi): Likewise.
3700         (mul): Add new multiply pattern.
3701         (mla): Likewise.
3702         (mls): Likewise.
3704 2019-09-18  Richard Biener  <rguenther@suse.de>
3706         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3707         (parloops_valid_reduction_input_p): Copy from
3708         valid_reduction_input_p.
3709         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3710         (parloops_needs_fold_left_reduction_p): Copy from
3711         needs_fold_left_reduction_p.
3712         (parloops_is_simple_reduction): Copy from
3713         vect_is_simple_reduction.
3714         (parloops_force_simple_reduction): Copy from
3715         vect_force_simple_reduction.
3716         (gather_scalar_reductions): Adjust.
3717         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3718         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3720 2019-09-18  Richard Biener  <rguenther@suse.de>
3722         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3723         * tree-vect-loop.c (get_initial_def_for_reduction): Make
3724         static.
3725         (vect_create_epilog_for_reduction): Remove dead code.
3727 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3729         * varasm.c (assemble_real): Generate canonical const_ints.
3731 2019-09-18  Richard Biener  <rguenther@suse.de>
3733         PR lto/91763
3734         * lto-streamer-in.c (input_eh_regions): Move EH init to
3735         lto_materialize_function.
3736         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3737         Likewise.
3739 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3741         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3742         are INTEGER_CSTs.
3744 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3746         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3747         of checking specifically for INTEGER_CST.
3749 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3751         * stor-layout.c (compute_record_mode): Operate on poly_uint64
3752         sizes instead of uhwi sizes.
3754 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3756         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3757         (add_const_value_attribute): Handle CONST_POLY_INT.
3759 2019-09-18  Martin Liska  <mliska@suse.cz>
3761         * dbgcnt.def (store_merging): New counter.
3762         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3763         Use it in store merging.
3765 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3767         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3768         function.
3769         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3770         * config/arm/arm.c (arm_sched_variable_issue): New function.
3771         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3773 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3775         * config/arm/types.md (no_reservation): New reservation.
3776         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3777         no_insn here.
3778         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3779         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3780         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3781         * config/arm/arm1020e.md (1020alu_op): Likewise.
3782         * config/arm/arm1026ejs.md (alu_op): Likewise.
3783         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3784         * config/arm/arm926ejs.md (9_alu_op): Likewise.
3785         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3786         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3787         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3788         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3789         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3790         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3791         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3792         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3793         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3794         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3795         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3796         * config/arm/fa526.md (526_alu_op): Likewise.
3797         * config/arm/fa606te.md (606te_alu_op): Likewise.
3798         * config/arm/fa626te.md (626te_alu_op): Likewise.
3799         * config/arm/fa726te.md (726te_alu_op): Likewise.
3800         * config/arm/xgene1.md (xgene1_nop): Likewise.
3802 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3804         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3805         "no_insn" to "branch".
3807 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3809         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3811 2019-09-17  Richard Biener  <rguenther@suse.de>
3813         PR debug/91772
3814         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3815         was missing generate locations only once.
3817 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
3819         PR ipa/91089
3820         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3821         option.
3822         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3823         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3824         for switch default case using range analysis information.
3826 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
3828         PR target/91749
3829         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3830         mode attributed is supported by FDPIC.
3832 2019-09-17  Richard Biener  <rguenther@suse.de>
3834         PR tree-optimization/91790
3835         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3836         use the correct DR for setting up realignment.
3838 2019-09-16  Uroš Bizjak  <ubizjak@gmail.com>
3840         PR target/91719
3841         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3842         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3843         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3844         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3846 2019-09-16  Jason Merrill  <jason@redhat.com>
3848         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3850 2019-09-16  Martin Liska  <mliska@suse.cz>
3852         * gimple-fold.c (or_comparisons_1): Remove rules moved
3853         to ...
3854         * match.pd: ... here.
3856 2019-09-16  Martin Liska  <mliska@suse.cz>
3858         * gimple-fold.c (or_comparisons_1): Remove rules
3859         moved to ...
3860         * match.pd: ... here.
3862 2019-09-16  Martin Liska  <mliska@suse.cz>
3864         * genmatch.c (dt_node::append_simplify): Do not print
3865         warning when we have duplicate patterns belonging
3866         to a same simplify rule.
3867         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
3868         (maybe_fold_comparisons_from_match_pd): Handle
3869         tcc_comparison as a results.
3870         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
3872 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
3873             Qi Feng  <ffengqi@linux.ibm.com>
3875         PR middle-end/88784
3876         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
3877         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
3878         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
3879         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
3880         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
3881         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
3882         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
3883         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
3884         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
3885         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
3886         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
3887         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
3889 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
3890             Martin Liska  <mliska@suse.cz>
3892         * gimple-fold.c (and_comparisons_1): Add type as first
3893         argument.
3894         (and_var_with_comparison): Likewise.
3895         (and_var_with_comparison_1): Likewise.
3896         (or_comparisons_1): Likewise.
3897         (or_var_with_comparison): Likewise.
3898         (or_var_with_comparison_1): Likewise.
3899         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
3900         (maybe_fold_or_comparisons): Likewise.
3901         (maybe_fold_comparisons_from_match_pd): New.
3902         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
3903         (maybe_fold_or_comparisons): Likewise.
3904         * gimple.c (gimple_size): Make it public and add num_ops argument.
3905         (gimple_init): New function.
3906         (gimple_alloc): Call gimple_init.
3907         * gimple.h (gimple_size): New.
3908         (gimple_init): Likewise.
3909         * tree-if-conv.c (fold_or_predicates): Pass type.
3910         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3911         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
3912         (optimize_vec_cond_expr): Likewise.
3913         (ovce_extract_ops): Return type of conditional expression.
3914         * tree-ssanames.c (init_ssa_name_imm_use): New.
3915         (make_ssa_name_fn): Use init_ssa_name_imm_use.
3916         * tree-ssanames.h (init_ssa_name_imm_use): New.
3918 2019-09-16  Richard Biener  <rguenther@suse.de>
3920         PR tree-optimization/91756
3921         PR tree-optimization/87132
3922         * tree-ssa-alias.h (enum translate_flags): New.
3923         (get_continuation_for_phi): Use it instead of simple bool flag.
3924         (walk_non_aliased_vuses): Likewise.
3925         * tree-ssa-alias.c (maybe_skip_until): Adjust.
3926         (get_continuation_for_phi): When looking across backedges only
3927         disallow valueization.
3928         (walk_non_aliased_vuses): Adjust.
3929         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
3930         if requested.
3932 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
3934         PR middle-end/80791
3935         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
3936         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3937         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3938         * target.def (have_count_reg_decr_p): New hook.
3939         (doloop_cost_for_generic): Likewise.
3940         (doloop_cost_for_address): Likewise.
3941         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
3942         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3943         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3944         * doc/tm.texi: Regenerate.
3945         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
3946         addend.
3947         (record_group): Init doloop_p.
3948         (add_candidate_1): Add optional argument doloop, change the handlings
3949         accordingly.
3950         (add_candidate): Likewise.
3951         (generic_predict_doloop_p): Update attribute.
3952         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
3953         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
3954         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
3955         MIN_EXPR.
3956         (get_computation_cost): Update for doloop IV cand extra cost.
3957         (determine_group_iv_cost_cond): Update for doloop IV cand.
3958         (determine_iv_cost): Likewise.
3959         (ivopts_estimate_reg_pressure): Likewise.
3960         (may_eliminate_iv): Update handlings for doloop IV cand.
3961         (add_iv_candidate_for_doloop): New function.
3962         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
3963         (iv_ca_set_no_cp): Update for doloop IV cand.
3964         (iv_ca_set_cp): Likewise.
3965         (iv_ca_dump): Dump register cost.
3966         (find_doloop_use): New function.
3967         (analyze_and_mark_doloop_use): Likewise.
3968         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
3970 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3972         PR middle-end/91708
3973         * cse.c (cse_insn): Do not replace anything with a
3974         MEM.
3976 2019-09-13  Ian Lance Taylor  <iant@golang.org>
3978         * doc/invoke.texi (Optimize Options): Fix typo.
3980 2019-09-12  Uroš Bizjak  <ubizjak@gmail.com>
3982         PR tree-optimization/89386
3983         * config/i386/sse.md (smulhrs<mode>3): New expander.
3984         (smulhrsv4hi3): Ditto.
3986 2019-09-12  Richard Biener  <rguenther@suse.de>
3988         PR tree-optimization/91750
3989         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
3990         in the type of the evolution.
3992 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
3994         PR tree-optimization/89386
3995         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
3996         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
3997         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
3998         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
3999         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4000         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4001         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4002         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4003         (su, r): Handle the unspecs above.
4004         (bt): New int attribute.
4005         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4006         * internal-fn.c (first_commutative_argument): Commutativity info for
4007         above.
4008         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4009         (umulhrs_optab): New optabs.
4010         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4011         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4012         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4013         function.
4014         (vect_vect_recog_func_ptrs): Add it.
4016 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
4018         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4019         code.
4021 2019-09-11  Nathan Sidwell  <nathan@acm.org>
4023         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4024         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4026 2019-09-11  Richard Biener  <rguenther@suse.de>
4028         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4029         * lto-wrapper.c (merge_and_complain): Pick up -g.
4030         (append_compiler_options): Likewise.
4031         (run_gcc): Re-instantiate handling -g0 at link-time.
4032         * doc/invoke.texi (flto): Document debug info generation.
4034 2019-09-11  Richard Biener  <rguenther@suse.de>
4036         PR tree-optimization/90387
4037         * vr-values.c (vr_values::extract_range_basic): After inlining
4038         simplify non-constant __builtin_constant_p to false.
4040 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
4042         PR rtl-optimization/89795
4043         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4044         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4046 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
4048         PR tree-optimization/91723
4049         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4050         instead of pointer equality when checking if argument vectypes are
4051         the same.
4053         PR middle-end/91725
4054         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4055         of get_nonzero_bits, only call it for integral types.
4057 2019-09-11  Richard Biener  <rguenther@suse.de>
4059         Revert
4060         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
4062         * match.pd: Add flag_unsafe_math_optimizations check
4063         before deciding on the widest type in a binary math operation.
4065 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4067         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4068         and CALL_REALLY_USED_REGISTERS must be defined, and that
4069         CALL_REALLY_USED_REGISTERS is preferred.
4070         * doc/tm.texi: Regenerate.
4071         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4072         (call_really_used_regs): Likewise.
4073         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4074         CALL_REALLY_USED_REGISTERS are defined.
4075         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4076         initial value if defined.
4077         (initial_call_really_used_regs): Delete.
4078         (saved_call_really_used_regs): Likewise.
4079         (CALL_REALLY_USED_REGNO_P): Likewise.
4080         (init_reg_sets): Remove handling of call_really_used_regs.
4081         (save_register_info, restore_register_info, globalize_reg): Likewise.
4082         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
4083         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
4084         outside operand_reg_set.
4085         (fix_register): Don't change call_used_regs if
4086         CALL_REALLY_USED_REGISTERS is defined.
4087         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4088         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4089         instead of call_really_used_regs.
4090         (csky_conditional_register_usage): Remove the old handling of
4091         call_used_regs and change the handling of call_really_used_regs
4092         to use call_used_regs instead.
4093         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4094         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4095         making a register fixed.
4096         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4097         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4098         instead of call_really_used_regs.
4099         (m32r_conditional_register_usage): Don't set call_used_regs when
4100         making a register fixed.
4101         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4102         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4103         instead of call_really_used_regs.
4104         (mips_interrupt_extra_call_saved_reg_p): Likewise.
4105         (mips_cfun_call_saved_reg_p): Likewise.
4106         (mips_swap_registers): Remove the old handling of call_used_regs
4107         and change the handling of call_really_used_regs to use call_used_regs
4108         instead.
4109         (mips_conditional_register_usage): Likewise.
4110         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4111         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4112         instead of call_really_used_regs.
4113         (mn10300_get_live_callee_saved_regs): Likewise.
4114         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4115         (mn10300_conditional_register_usage): Don't set call_used_regs when
4116         making a register fixed.
4117         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4118         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4119         Remove the old handling of call_used_regs and change the handling
4120         of call_really_used_regs to use call_used_regs instead.
4121         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4122         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4123         instead of call_really_used_regs.
4124         (s390_register_info_gprtofpr, s390_register_info): Likewise.
4125         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4126         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4127         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4128         (s390_conditional_register_usage): Remove the old handling of
4129         call_used_regs and change the handling of call_really_used_regs
4130         to use call_used_regs instead.
4131         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4132         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4133         (sh_fix_range, reg_unused_after): Likewise.
4134         (sh_conditional_register_usage): Remove the old handling of
4135         call_used_regs and change the handling of call_really_used_regs
4136         to use call_used_regs instead.
4137         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4138         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4139         call_used_regs when making a register fixed.
4140         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4141         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4142         call_used_regs when making a register fixed.
4143         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4144         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4145         set call_used_regs when making a register fixed.
4146         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4147         * config/visium/visium.c (visium_conditional_register_usage): Remove
4148         the old handling of call_used_regs and change the handling of
4149         call_really_used_regs to use call_used_regs instead.
4151 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4153         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4154         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4155         * reginfo.c (call_used_regs): New macro.
4157 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4159         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4160         fixed_regs test.
4161         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4162         (bpf_expand_epilogue): Likewise.
4163         * config/c6x/c6x.c (c6x_save_reg): Likewise.
4164         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4165         (ft32_expand_epilogue): Likewise.
4166         * config/i386/i386.c (ix86_save_reg): Likewise.
4167         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4168         (moxie_expand_epilogue): Likewise.
4169         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4170         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4171         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4173 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4175         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4176         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4177         instead of testing call_used_regs directly.
4178         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4179         (aarch64_components_for_bb): Likewise.
4180         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4181         * config/arc/arc.c (arc_must_save_register): Likewise.
4182         (arc_epilogue_uses): Likewise.
4183         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4184         (legitimize_pic_address, callee_saved_reg_p): Likewise.
4185         (arm_compute_save_reg0_reg12_mask): Likewise.
4186         (arm_compute_save_core_reg_mask): Likewise.
4187         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4188         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4189         (cmse_nonsecure_entry_clear_before_return): Likewise.
4190         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4191         (arm_expand_epilogue): Likewise.
4192         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4193         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4194         (_reg_unused_after): Likewise.
4195         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4196         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4197         (add_to_reg, hwloop_optimize): Likewise.
4198         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4199         (bpf_expand_epilogue): Likewise.
4200         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4201         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4202         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4203         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4204         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4205         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4206         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4207         * config/frv/frv.c (frv_stack_info): Likewise.
4208         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4209         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4210         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4211         (move_callee_saved_registers): Likewise.
4212         * config/h8300/h8300.c (byte_reg): Likewise.
4213         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4214         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4215         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4216         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4217         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4218         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4219         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4220         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4221         * config/m32c/m32c.c (need_to_save): Likewise.
4222         * config/m68k/m68k.c (m68k_save_reg): Likewise.
4223         * config/mcore/mcore.c (calc_live_regs): Likewise.
4224         * config/microblaze/microblaze.c (microblaze_must_save_register):
4225         Likewise.
4226         * config/mmix/mmix.c (mmix_local_regno): Likewise.
4227         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4228         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4229         (mmix_expand_epilogue): Likewise.
4230         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4231         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4232         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4233         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4234         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4235         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4236         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4237         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4238         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4239         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4240         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4241         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4242         * config/rl78/rl78.c (need_to_save): Likewise.
4243         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4244         (rs6000_stack_info, generate_set_vrsave): Likewise.
4245         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4246         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4247         * config/rx/rx.c (rx_get_stack_layout): Likewise.
4248         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4249         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4250         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4251         (save_local_or_in_reg_p): Likewise.
4252         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4253         (xstormy16_epilogue_uses): Likewise.
4254         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4255         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4256         * config/v850/v850.c (compute_register_save_size): Likewise.
4257         * config/vax/vax.c (vax_expand_prologue): Likewise.
4258         * config/visium/visium.c (visium_save_reg_p): Likewise.
4259         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4260         * cselib.c (cselib_process_insn): Likewise.
4261         * df-scan.c (df_get_entry_block_def_set): Likewise.
4262         * function.c (aggregate_value_p): Likewise.
4263         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4264         * ira-lives.c (process_bb_node_lives): Likewise.
4265         * ira.c (do_reload): Likewise.
4266         * lra-lives.c (process_bb_lives): Likewise.
4267         * lra-remat.c (lra_remat): Likewise.
4268         * lra.c (lra): Likewise.
4269         * postreload.c (reload_combine_recognize_pattern): Likewise.
4270         (reload_cse_move2add): Likewise.
4271         * recog.c (peep2_find_free_register): Likewise.
4272         * regrename.c (check_new_reg_p): Likewise.
4273         * reload.c (find_equiv_reg): Likewise.
4274         * reload1.c (reload, find_reg): Likewise.
4275         * sel-sched.c (init_hard_regs_data): Likewise.
4277 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4279         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4280         regs_invalidated_by_call & ~fixed_reg_set instead of
4281         call_used_or_fixed_regs & ~fixed_reg_set.
4282         * config/sh/sh.c (output_stack_adjust): Likewise.
4284 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4286         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4287         (call_used_reg_set): Delete.
4288         (call_used_or_fixed_regs): New macro.
4289         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4290         of call_used_reg_set.
4291         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4292         instead of call_used_regs.
4293         (save_call_clobbered_regs): Likewise.
4294         * cfgcleanup.c (old_insns_match_p): Likewise.
4295         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4296         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4297         Likewise.
4298         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4299         * config/sh/sh.c (output_stack_adjust): Likewise.
4300         * final.c (collect_fn_hard_reg_usage): Likewise.
4301         * ira-build.c (ira_build): Likewise.
4302         * ira-color.c (calculate_saved_nregs): Likewise.
4303         (allocno_reload_assign, calculate_spill_cost): Likewise.
4304         * ira-conflicts.c (ira_build_conflicts): Likewise.
4305         * ira-costs.c (ira_tune_allocno_costs): Likewise.
4306         * ira-lives.c (process_bb_node_lives): Likewise.
4307         * ira.c (setup_reg_renumber): Likewise.
4308         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4309         * lra-constraints.c (need_for_call_save_p): Likewise.
4310         (need_for_split_p, inherit_in_ebb): Likewise.
4311         * lra-lives.c (process_bb_lives): Likewise.
4312         * lra-remat.c (call_used_input_regno_present_p): Likewise.
4313         * postreload.c (reload_combine): Likewise.
4314         * regrename.c (find_rename_reg): Likewise.
4315         * reload1.c (reload_as_needed): Likewise.
4316         * rtlanal.c (find_all_hard_reg_sets): Likewise.
4317         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4318         * shrink-wrap.c (requires_stack_frame_p): Likewise.
4320 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4322         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4323         (no_caller_save_reg_set): Delete.
4324         * caller-save.c (init_caller_save): Don't initialize it.
4325         * ira-conflicts.c (ira_build_conflicts): Calculate
4326         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4328 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4330         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4331         (target_hard_regs::x_savable_regs): New field.
4332         (call_fixed_reg_set): Delete.
4333         (savable_regs): New macro,
4334         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4335         (init_reg_sets_1): Likewise.  Initialize savable_regs.
4336         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4337         for all registers.  Set savable_regs instead of call_fixed_reg_set.
4338         (setup_save_areas, save_call_clobbered_regs): Replace uses of
4339         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4340         * config/sh/sh.c (output_stack_adjust): Likewise.
4342 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4344         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4345         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4346         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4348 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4350         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4351         * rtlanal.c (get_call_rtx_from): Likewise.
4352         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4353         than the pattern to get_call_rtx_from.
4354         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4355         an rtx_insn * instead of an rtx.
4356         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4358 2019-09-10  Martin Liska  <mliska@suse.cz>
4360         * common.opt: Use newly added WarnRemoved.
4361         * config/aarch64/aarch64.opt: Likewise.
4362         * config/arm/arm.opt: Likewise.
4363         * config/i386/i386.opt: Likewise.
4364         * config/ia64/ia64.opt: Likewise.
4365         * config/rs6000/rs6000.opt: Likewise.
4366         * doc/options.texi: Document WarnRemoved properly.
4367         * dwarf2out.c (gen_producer_string): Handle renamed
4368         OPT_SPECIAL_warn_removed.
4369         * lto-opts.c (lto_write_options): Likewise.
4370         * lto-wrapper.c (merge_and_complain): Likewise.
4371         * opts-common.c (decode_cmdline_option): Likewise.
4372         (prune_options): Likewise.
4373         (read_cmdline_option): Likewise.
4374         (control_warning_option): Likewise.
4375         * opts.c (print_filtered_help): Likewise.
4376         * optc-gen.awk: Parse for WarnRemoved and make usage
4377         of Deprecated an error.
4378         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4380 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
4382         * doc/install.texi: Fix syntax for html generation.
4384 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
4386         PR middle-end/91680
4387         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4388         the shift type to type.
4390 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4392         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4393         FDPIC mode.
4394         (stack_protect_combined_test_insn): Likewise.
4396 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4397             Mickaël Guêné <mickael.guene@st.com>
4399         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4400         * config/arm/arm.md (FDPIC_REGNUM): New constant.
4401         (load_tp_soft_fdpic): New pattern.
4402         (load_tp_soft): Disable in FDPIC mode.
4404 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4405             Mickaël Guêné <mickael.guene@st.com>
4407         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4408         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4409         (arm_call_tls_get_addr): Add FDPIC support.
4410         (legitimize_tls_address): Likewise.
4411         (arm_emit_tls_decoration): Likewise.
4413 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4414             Mickaël Guêné <mickael.guene@st.com>
4416         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4417         support.
4418         (arm_trampoline_init): Likewise.
4419         (arm_trampoline_adjust_address): Likewise.
4420         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4422 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4423             Mickaël Guêné <mickael.guene@st.com>
4425         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4426         (legitimize_pic_address): Enforce binding rules on function
4427         pointers in FDPIC mode.
4428         (arm_assemble_integer): Likewise.
4430 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4431             Mickaël Guêné <mickael.guene@st.com>
4433         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4434         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4435         FDPIC.
4437 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4438             Mickaël Guêné <mickael.guene@st.com>
4440         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4441         field.
4443 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4444             Mickaël Guêné <mickael.guene@st.com>
4446         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4447         in FDPIC mode.
4448         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4449         new function.
4450         * config/arm/arm.c (arm_option_override): Define pic register to
4451         FDPIC_REGNUM.
4452         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4453         have no decl or go through PLT.
4454         (calculate_pic_address_constant): New function.
4455         (legitimize_pic_address): Call calculate_pic_address_constant.
4456         (arm_load_pic_register): Handle TARGET_FDPIC.
4457         (arm_is_segment_info_known): New function.
4458         (arm_pic_static_addr): Add support for FDPIC.
4459         (arm_load_function_descriptor): New function.
4460         (arm_emit_call_insn): Add support for FDPIC.
4461         (arm_assemble_integer): Add support for FDPIC.
4462         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4463         Define. (FDPIC_REGNUM): New define.
4464         * config/arm/arm.md (call): Add support for FDPIC.
4465         (call_value): Likewise.
4466         (restore_pic_register_after_call): New pattern.
4467         (untyped_call): Disable if FDPIC.
4468         (untyped_return): Likewise.
4469         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4471 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4472             Mickaël Guêné <mickael.guene@st.com>
4474         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4475         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4476         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4477         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4478         (CC1_SPEC): Use FDPIC_CC1_SPEC.
4479         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4480         * config/arm/uclinuxfdpiceabi.h: New file.
4482 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4484         * config.gcc: Handle *-*-uclinuxfdpiceabi.
4486 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4487             Mickaël Guêné  <mickael.guene@st.com>
4489         * config/arm/arm.opt: Add -mfdpic option.
4490         * doc/invoke.texi: Add documentation for -mfdpic.
4492 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4494         * expmed.c (extract_bit_field): Update function comment
4495         regarding alt_rtl.
4496         * expr.c (expand_expr_real): Update function comment
4497         regarding alt_rtl.
4498         (expand_misaligned_mem_ref): New helper function.
4499         (expand_expr_real_2): Use expand_misaligned_mem_ref.
4500         Remove duplicate assignment to "base" at case MEM_REF.
4501         Remove a shadowed variable "unsignedp" at case VCE. 
4503 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4505         * regset.h (regs_invalidated_by_call_regset): Delete.
4506         (fixed_reg_set_regset): Likewise.
4507         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4508         (fixed_reg_set_regset, persistent_obstack): Likewise.
4509         (init_reg_sets_1, globalize_reg): Update accordingly.
4510         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4511         instead of a bitmap.
4512         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4513         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4514         instead of regs_invalidated_by_call_regset.
4515         (df_lr_confluence_n, df_md_confluence_n): Likewise.
4516         * df-scan.c (df_scan_start_dump): Likewise.
4517         * dse.c (copy_fixed_regs): Likewise.
4518         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4520 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4522         * array-traits.h: New file.
4523         * coretypes.h (array_traits, bitmap_view): New types.
4524         * bitmap.h: Include "array-traits.h"
4525         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4526         (base_bitmap_view, bitmap_view): New classes.
4527         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4528         * hard-reg-set.h: Include array-traits.h.
4529         (array_traits<HARD_REG_SET>): New struct.
4530         * regset.h (IOR_REG_SET_HRS): New macro.
4531         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4532         rather than iterating over each hard register.
4533         * sched-deps.c (sched_analyze_insn): Likewise.
4534         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4536 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4538         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4539         instead of a HARD_REG_SET *.
4540         * ira-build.c (ior_hard_reg_conflicts): Likewise.
4541         (ira_build): Update call accordingly.
4542         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4544 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4546         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4547         (HARD_REG_SET::operator!=): Likewise.
4548         (hard_reg_set_equal_p): Delete.
4549         * cfgcleanup.c (old_insns_match_p): Use == instead of
4550         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4551         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4552         (add_allocno_hard_regs_to_forest): Likewise.
4553         (setup_allocno_available_regs_num): Likewise.
4554         * ira.c (setup_pressure_classes): Likewise.
4555         (setup_allocno_and_important_classes): Likewise.
4556         (setup_reg_class_relations): Likewise.
4557         * lra-lives.c (process_bb_lives): Likewise.
4558         * reg-stack.c (change_stack, convert_regs_1): Likewise.
4560 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4562         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4563         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4564         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4565         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4566         Likewise.
4567         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4568         * ira.c (setup_reg_renumber): Likewise.
4569         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4570         * regrename.c (regrename_find_superclass): Likewise.
4571         * reload1.c (find_reg): Likewise.
4573 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4575         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4576         * caller-save.c (setup_save_areas): Use "&~" instead of
4577         AND_COMPL_HARD_REG_SET.
4578         (save_call_clobbered_regs): Likewise.
4579         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4580         Likewise.
4581         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4582         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4583         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4584         * config/mips/mips.c (mips_class_max_nregs): Likewise.
4585         (mips_conditional_register_usage): Likewise.
4586         * config/sh/sh.c (output_stack_adjust): Likewise.
4587         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4588         (setup_profitable_hard_regs): Likewise.
4589         (get_conflict_and_start_profitable_regs): Likewise.
4590         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4591         (ira_build_conflicts): Likewise.
4592         * ira-costs.c (restrict_cost_classes): Likewise.
4593         (setup_regno_cost_classes_by_aclass): Likewise.
4594         * ira-lives.c (process_bb_node_lives): Likewise.
4595         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4596         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4597         (setup_allocno_and_important_classes, setup_class_translate_array)
4598         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4599         Likewise.
4600         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4601         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4602         (process_alt_operands, inherit_in_ebb): Likewise.
4603         * lra-eliminations.c (update_reg_eliminate): Likewise.
4604         * lra-lives.c (process_bb_lives): Likewise.
4605         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4606         * resource.c (find_dead_or_set_registers): Likewise.
4607         (mark_target_live_regs): Likewise.
4608         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4609         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4610         (implicit_clobber_conflict_p): Likewise.
4611         * shrink-wrap.c (requires_stack_frame_p): Likewise.
4612         (try_shrink_wrapping): Likewise.
4614 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4616         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4617         (HARD_REG_SET::operator|=): Likewise.
4618         (IOR_HARD_REG_SET): Delete.
4619         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4620         IOR_HARD_REG_SET.
4621         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4622         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4623         * final.c (collect_fn_hard_reg_usage): Likewise.
4624         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4625         * ira-build.c (merge_hard_reg_conflicts): Likewise.
4626         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4627         (propagate_some_info_from_allocno): Likewise.
4628         (copy_info_to_removed_store_destinations): Likewise.
4629         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4630         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4631         (fast_allocation): Likewise.
4632         * ira-conflicts.c (ira_build_conflicts): Likewise.
4633         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4634         (process_bb_node_lives): Likewise.
4635         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4636         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4637         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4638         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4639         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4640         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4641         (process_bb_lives): Likewise.
4642         * lra-spills.c (assign_spill_hard_regs): Likewise.
4643         * postreload.c (reload_combine): Likewise.
4644         * reginfo.c (init_reg_sets_1): Likewise.
4645         * regrename.c (merge_overlapping_regs, find_rename_reg)
4646         (merge_chains): Likewise.
4647         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4648         (find_reload_regs, finish_spills, choose_reload_regs_init)
4649         (emit_reload_insns): Likewise.
4650         * reorg.c (redundant_insn): Likewise.
4651         * resource.c (find_dead_or_set_registers, mark_set_resources)
4652         (mark_target_live_regs): Likewise.
4653         * rtlanal.c (find_all_hard_reg_sets): Likewise.
4654         * sched-deps.c (sched_analyze_insn): Likewise.
4655         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4656         (find_best_reg_for_expr): Likewise.
4657         * shrink-wrap.c (try_shrink_wrapping): Likewise.
4659 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4661         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4662         (HARD_REG_SET::operator&): Likewise.
4663         (AND_HARD_REG_SET): Delete.
4664         * caller-save.c (setup_save_areas): Use "&" instead of
4665         AND_HARD_REG_SET.
4666         (save_call_clobbered_regs): Likewise.
4667         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4668         * config/m32c/m32c.c (reduce_class): Likewise.
4669         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4670         * final.c (get_call_reg_set_usage): Likewise.
4671         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4672         (setup_left_conflict_sizes_p): Likewise.
4673         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4674         (ira_build_conflicts): Likewise.
4675         * ira-costs.c (restrict_cost_classes): Likewise.
4676         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4677         (setup_reg_class_relations): Likewise.
4678         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4679         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4680         * resource.c (find_dead_or_set_registers): Likewise.
4681         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4683 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4685         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4686         (COMPL_HARD_REG_SET): Delete.
4687         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4688         of COMPL_HARD_REG_SET.
4689         (try_rename_operands): Likewise.
4690         * config/sh/sh.c (push_regs): Likewise.
4691         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4692         * lra-constraints.c (contains_reg_p): Likewise.
4693         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4695 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4697         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4698         * caller-save.c (save_call_clobbered_regs): Use assignment instead
4699         of COPY_HARD_REG_SET.
4700         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4701         (epiphany_conditional_register_usage): Likewise.
4702         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4703         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4704         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4705         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4706         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4707         * config/mips/mips.c (mips_class_max_nregs): Likewise.
4708         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4709         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4710         * config/sh/sh.c (output_stack_adjust): Likewise.
4711         * final.c (collect_fn_hard_reg_usage): Likewise.
4712         (get_call_reg_set_usage): Likewise.
4713         * ira-build.c (ira_create_object, remove_low_level_allocnos)
4714         (ira_flattening): Likewise.
4715         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4716         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4717         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4718         (ira_reassign_pseudos): Likewise.
4719         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4720         (ira_build_conflicts): Likewise.
4721         * ira-costs.c (restrict_cost_classes): Likewise.
4722         (setup_regno_cost_classes_by_aclass): Likewise.
4723         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4724         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4725         (setup_stack_reg_pressure_class, setup_pressure_classes)
4726         (setup_allocno_and_important_classes, setup_class_translate_array)
4727         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4728         (ira_setup_eliminable_regset): Likewise.
4729         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4730         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4731         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4732         (process_alt_operands, inherit_in_ebb): Likewise.
4733         * lra-lives.c (process_bb_lives): Likewise.
4734         * lra-spills.c (assign_spill_hard_regs): Likewise.
4735         * lra.c (lra): Likewise.
4736         * mode-switching.c (new_seginfo): Likewise.
4737         * postreload.c (reload_combine): Likewise.
4738         * reg-stack.c (straighten_stack): Likewise.
4739         * reginfo.c (save_register_info, restore_register_info): Likewise.
4740         (init_reg_sets_1, record_subregs_of_mode): Likewise
4741         * regrename.c (create_new_chain, rename_chains): Likewise.
4742         * reload1.c (order_regs_for_reload, find_reg): Likewise.
4743         (find_reload_regs): Likewise.
4744         * resource.c (find_dead_or_set_registers): Likewise.
4745         (mark_target_live_regs): Likewise.
4746         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4748 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4750         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4751         (note_pattern_stores): Declare.
4752         (note_stores): Take an rtx_insn *.
4753         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4754         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4755         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4756         (note_stores): Take an rtx_insn * as argument and process
4757         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
4758         (note_pattern_stores): ...this.
4759         (find_first_parameter_load): Pass the insn rather than
4760         its pattern to note_stores.
4761         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4762         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4763         (insert_one_insn): Likewise.
4764         * combine.c (combine_instructions): Likewise.
4765         (likely_spilled_retval_p): Likewise.
4766         (try_combine): Use note_pattern_stores instead of note_stores.
4767         (record_dead_and_set_regs): Pass the insn rather than its pattern
4768         to note_stores.
4769         (reg_dead_at_p): Likewise.
4770         * config/bfin/bfin.c (workaround_speculation): Likewise.
4771         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
4772         rather than an rtx.
4773         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4774         instead of note_stores.
4775         (frv_optimize_membar_local): Pass the insn rather than its pattern
4776         to note_stores.
4777         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4778         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4779         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4780         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4781         (mips_reorg_process_insns): Likewise.
4782         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4783         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
4784         rather than rtxes.
4785         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4786         its pattern to note_stores.
4787         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4788         of note_stores.
4789         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4790         the insn to note_stores.
4791         (prescan_insns_for_dce): Update call accordingly.
4792         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4793         to note_stores.
4794         * df-problems.c (can_move_insns_across): Likewise.
4795         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4796         * function.c (assign_parm_setup_reg): Likewise.
4797         * gcse-common.c (record_last_mem_set_info_common): Likewise.
4798         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4799         (single_set_gcse): Likewise.
4800         * ira.c (validate_equiv_mem): Likewise.
4801         (update_equiv_regs): Use note_pattern_stores rather than note_stores
4802         for no_equiv.
4803         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4804         pattern to note_stores.
4805         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4806         * loop-iv.c (simplify_using_initial_values): Likewise.
4807         * mode-switching.c (optimize_mode_switching): Likewise.
4808         * optabs.c (emit_libcall_block_1): Likewise.
4809         (expand_atomic_compare_and_swap): Likewise.
4810         * postreload-gcse.c (load_killed_in_block_p): Likewise.
4811         (record_opr_changes): Likewise.  Remove explicit handling of
4812         CALL_INSN_FUNCTION_USAGE.
4813         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4814         * regcprop.c (kill_clobbered_values): Likewise.
4815         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4816         to note_stores.
4817         * regrename.c (build_def_use): Likewise.
4818         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
4819         for mark_not_eliminable.
4820         (reload_as_needed): Pass the insn rather than its pattern
4821         to note_stores.
4822         (emit_output_reload_insns): Likewise.
4823         * resource.c (mark_target_live_regs): Likewise.
4824         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4825         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4826         instead of note_stores.
4827         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4828         its pattern to note_stores.
4829         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4830         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4832 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4834         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4835         than a #define.  Use a structure rather than an array as the
4836         fallback definition.  Remove special cases for low array sizes.
4837         (const_hard_reg_set): New typedef.
4838         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4839         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4840         (hard_reg_set_empty_p): Likewise.
4841         (SET_HARD_REG_BIT): Use a function rather than a macro to
4842         handle the case in which HARD_REG_SET is a structure.
4843         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4844         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4845         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4846         (IOR_COMPL_HARD_REG_SET): Likewise.
4847         (hard_reg_set_iterator::pset): Constify the pointer target.
4848         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4849         of a "const HARD_REG_SET".  Update the handling of non-integer
4850         HARD_REG_SETs.
4851         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4852         * reload.h: Likewise.
4853         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4854         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4855         of a "const HARD_REG_SET".
4856         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4857         (range_in_hard_reg_set_p): Likewise.
4858         * ira-costs.c (restrict_cost_classes): Likewise.
4859         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
4860         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4861         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
4862         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
4863         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
4864         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
4865         take an unsigned int and open-code the HARD_REG_SET operations.
4867 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4869         * Makefile.in (OBJS): Remove bt-load.o.
4870         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
4871         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4872         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
4873         document that the option no longer does anything.
4874         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4875         * target.def (branch_target_register_class): Delete.
4876         (branch_target_register_callee_saved): Likewise.
4877         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4878         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4879         * doc/tm.texi: Regenerate.
4880         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
4881         (make_pass_branch_target_load_optimize2): Likewise.
4882         * passes.def (pass_branch_target_load_optimize1): Likewise.
4883         (pass_branch_target_load_optimize2): Likewise.
4884         * targhooks.h (default_branch_target_register_class): Likewise.
4885         * targhooks.c (default_branch_target_register_class): Likewise.
4886         * opt-suggestions.c (test_completion_valid_options): Remove
4887         -fbtr-bb-exclusive from the list of test options.
4888         * bt-load.c: Remove.
4890 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
4892         * match.pd: Add flag_unsafe_math_optimizations check
4893         before deciding on the widest type in a binary math operation.
4895 2019-09-09  Martin Liska  <mliska@suse.cz>
4897         * config/i386/i386.opt: Update comment of removed
4898         options that are preserved only for backward
4899         compatibility.
4901 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
4903         PR target/87853
4904         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
4905         instead of __v16qs.
4907         PR target/91704
4908         * config/i386/avxintrin.h (__v32qs): New typedef.
4909         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
4910         instead of __v32qi.
4912 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
4914         * doc/invoke.texi (Option Summary): Cover eBPF.
4915         (eBPF Options): New section.
4916         * doc/extend.texi (BPF Built-in Functions): Likewise.
4917         (BPF Kernel Helpers): Likewise.
4919 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
4921         * config.gcc: Support for bpf-*-* targets.
4922         * common/config/bpf/bpf-common.c: New file.
4923         * config/bpf/t-bpf: Likewise.
4924         * config/bpf/predicates.md: Likewise.
4925         * config/bpf/constraints.md: Likewise.
4926         * config/bpf/bpf.opt: Likewise.
4927         * config/bpf/bpf.md: Likewise.
4928         * config/bpf/bpf.h: Likewise.
4929         * config/bpf/bpf.c: Likewise.
4930         * config/bpf/bpf-protos.h: Likewise.
4931         * config/bpf/bpf-opts.h: Likewise.
4932         * config/bpf/bpf-helpers.h: Likewise.
4933         * config/bpf/bpf-helpers.def: Likewise.
4935 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
4937         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4938         indirect_calls.
4940 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
4942         * opt-functions.awk (integer_range_info): Make sure values are in
4943         numeric context before operating with them.
4945 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
4947         * genemit.c (gen_split): Print the filename and line number where the
4948         splitter (or peephole2) was defined, to the dump file.
4950 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
4952         PR tree-optimization/91665
4953         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
4954         incompatible with the type of PHI result.
4956 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4958         PR target/91684
4959         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
4960         gen_unaligned_storedi for 4-byte aligned addresses.
4962 2019-09-06  Jim Wilson  <jimw@sifive.com>
4964         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
4965         change.
4967 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
4969         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
4971 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
4973         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
4974         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
4976 2019-09-06  Uroš Bizjak  <ubizjak@gmail.com>
4978         PR target/91654
4979         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
4980         cost of SSE->integer and integer->SSE moves from 2 to 6.
4981         (core_cost): Ditto.
4983 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
4985         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
4986         before testing TYPE_TRANSPARENT_AGGR.
4987         * calls.c (initialize_argument_information, load_register_parameters):
4988         Likewise.
4990 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
4992         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
4993         high regs.
4994         (cmp_ior): Likewise.
4996 2019-09-06  Martin Liska  <mliska@suse.cz>
4998         * doc/match-and-simplify.texi: Separate tuples with ;.
5000 2019-09-06  Martin Liska  <mliska@suse.cz>
5002         PR c++/91125
5003         * Makefile.in: Remove tlink.o.
5004         * collect2.c (do_link): New function isolated
5005         from do_tlink.
5006         (main): Use.
5007         * collect2.h (do_tlink): Remove declaration of do_tlink.
5008         * doc/extend.texi: Remove documentation of -frepo.
5009         * doc/invoke.texi: Likewise.
5010         * doc/sourcebuild.texi: Remove cleanup-repo-files.
5011         * tlink.c: Remove.
5013 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
5014             Jim Wilson  <jimw@sifive.com>
5016         PR target/91635
5017         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5018         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5019         paradoxical_subreg_p (operands[0]).
5020         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5021         use as intermediate value.
5023 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
5025         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5026         (sync_compare_and_swap<mode>_insn): Likewise.
5028 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5030         PR middle-end/91615
5031         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5032         without movmisalign optab.
5034 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
5036         PR middle-end/91001
5037         PR middle-end/91105
5038         PR middle-end/91106
5039         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5040         types, use type of their first field instead of type of
5041         args[i].tree_value.
5043 2019-09-05  Richard Biener  <rguenther@suse.de>
5045         PR rtl-optimization/91656
5046         * postreload-gcse.c (record_last_mem_set_info): Revert addition
5047         of early out.
5049 2019-09-05  Richard Biener  <rguenther@suse.de>
5051         PR middle-end/90501
5052         * tree-inline.c (declare_return_variable): Mark the return
5053         slot as addressable after building an address of it.
5055 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
5057         * doc/install.texi: Update and clarify requirements to build GNAT.
5059 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
5061         PR middle-end/91577
5062         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5063         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5064         call to be in memory.
5065         (pass_expand::execute): Call discover_nonconstant_array_refs before
5066         setting currently_expanding_to_rtl.
5068 2019-09-04  Caroline Tice  <cmtice@google.com>
5070         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5071         specified together.
5073 2019-09-04  Marek Polacek  <polacek@redhat.com>
5075         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5077 2019-09-04  Uroš Bizjak  <ubizjak@gmail.com>
5079         PR target/32413
5080         * config/i386/i386.c (inline_secondary_memory_needed): Return true
5081         for QI and HImode moves between SSE and general registers.
5083 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5085         PR c/78736
5086         * doc/invoke.texi: Document -Wenum-conversion.
5088 2019-09-04  Richard Biener  <rguenther@suse.de>
5090         PR rtl-optimization/36262
5091         * postreload-gcse.c: Include intl.h and gcse.h.
5092         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5093         to avoid linear list walk.
5094         (record_last_mem_set_info): Gate off if not computing transparentness.
5095         (get_bb_avail_insn): If transparentness isn't computed give up
5096         early.
5097         (gcse_after_reload_main): Skip compute_transp and extended PRE
5098         if gcse_or_cprop_is_too_expensive says so.
5100 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5102         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5103         noinit section.
5104         (msp430_select_section): Handle decls with the "noinit" attribute with
5105         default_elf_select_section.
5106         Handle SECCAT_RODATA_MERGE_* section types with
5107         default_elf_select_section.
5108         Add comments about handling of unsupported section types.
5109         (msp430_section_type_flags): Remove handling of the noinit section.
5111 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5113         * config/msp430/msp430.c (msp430_attr): Remove warnings about
5114         conflicting msp430-specific attributes.
5115         (msp430_section_attr): Likewise.
5116         Add warnings about conflicts with generic "noinit" and "section"
5117         attributes.
5118         Fix grammar in -mlarge error message.
5119         (msp430_data_attr): Rename to msp430_persist_attr.
5120         Add warnings about conflicts with generic "noinit" and "section"
5121         attributes.
5122         Add warning for when variable is not initialized.
5123         Chain conditionals which prevent the attribute being added.
5124         (ATTR_EXCL): New helper.
5125         (attr_reent_exclusions): New exclusion table.
5126         (attr_naked_exclusions): Likewise.
5127         (attr_crit_exclusions): Likewise.
5128         (attr_lower_exclusions): Likewise.
5129         (attr_upper_exclusions): Likewise.
5130         (attr_either_exclusions): Likewise.
5131         (attr_persist_exclusions): Likewise.
5132         (msp430_attribute_table): Update with exclusion rules.
5133         (msp430_output_aligned_decl_common): Don't output common symbol if decl
5134         has a section.
5136 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5138         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5139         (msp430_handle_generic_attribute): New function.
5140         * doc/tm.texi: Regenerate.
5141         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5142         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5143         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5144         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5146 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
5148         PR tree-optimization/91504
5149         * match.pd: Add ((~a & b) ^a) --> (a | b).
5151 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
5153         PR target/91604
5154         * config/i386/i386-expand.c (split_double_mode): If there is more than
5155         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5156         already split matching MEM operand instead of calling adjust_address
5157         again.
5159 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
5161         * config.gcc: Obsolete spu target.  Remove references to spu.
5162         * configure.ac: Remove references to spu.
5163         * configure: Regenerate.
5164         * config/spu/: Remove directory.
5165         * common/config/spu/: Remove directory.
5167         * doc/extend.texi: Remove references to spu.
5168         * doc/invoke.texi: Likewise.
5169         * doc/md.texi: Likewise.
5170         * doc/sourcebuild.texi: Likewise.
5172 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5174         PR middle-end/91603
5175         PR middle-end/91612
5176         PR middle-end/91613
5177         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5178         and SSA_NAME referring to CONSTANT_P correctly.
5180 2019-09-03  Richard Biener  <rguenther@suse.de>
5182         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5183         (vn_nary_op_insert): Likewise.
5184         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5185         (vn_nary_op_lookup): Likewise.
5186         (vn_nary_op_insert): Likewise.
5188 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
5190         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5191         (*op0, 1) instead of XEXP (*op1, 0).
5193 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5195         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5196         (aarch64_fjcvtzs): New define_insn.
5197         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5198         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5199         Add AARCH64_JSCVT.
5200         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5201         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5202         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5203         __ARM_FEATURE_JCVT where appropriate.
5204         * config/aarch64/arm_acle.h (__jcvt): Define.
5206 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5208         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5209         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5210         (aarch64_<frintnzs_op><mode>): New define_insn.
5211         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5212         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5213         __ARM_FEATURE_FRINT when appropriate.
5214         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5215         frint32x, frint64z, frint64x.
5216         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5217         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5218         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5219         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5220         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5221         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5222         * config/aarch64/iterators.md (VSFDF): Define.
5223         (FRINTNZX): Likewise.
5224         (frintnzs_op): Likewise.
5226 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
5228         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5229         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5230         Cortex-A34.
5231         * config/aarch64/aarch64-tune.md: Regenerated.
5232         * doc/invoke.texi: Document the new processors.
5234 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5236         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5237         string.
5238         (ssbs): Likewise.
5239         (sve2): Likewise.
5240         (sve2-sm4): Likewise.
5241         (sveaes): Likewise.
5242         (svesha3): Likewise.
5243         (svebitperm): Likewise.
5245 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
5246             Richard Biener  <rguenther@suse.de>
5248         PR tree-optimization/91597
5249         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5250         BIT_AND_EXPR optimization for pointers, even if both operand
5251         ranges don't include NULL, the result can be NULL.
5253 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5255         PR middle-end/91605
5256         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5257         (non_mem_decl_p): ...this.
5258         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5259         (expand_assignment): Call mem_ref_referes_to_non_mem_p
5260         unconditionally as before.
5262 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
5264         PR target/91323
5265         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5266         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
5267         * tree.def (LTGT_EXPR): Likewise.
5268         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5270 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
5272         PR go/91617
5273         * fold-const.c (range_check_type): For enumeral and boolean
5274         type, pass 1 to type_for_size langhook instead of
5275         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
5276         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5277         (build_range_check): Don't call unsigned_type_for for pointer types.
5278         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5279         range_check_type result.
5281 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
5283         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5284         (replace_ref): Do not replace a chain of only two candidates which are
5285         valid memory references.
5287 2019-09-02  Martin Liska  <mliska@suse.cz>
5289         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5290         Bail out when we'll end up with the same number of clusters as
5291         at the beginning.
5292         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5293         (jump_table_cluster::can_be_handled): Remove the guard
5294         as it's already handled in ::is_enabled.  Allocate output
5295         after early bail out.
5297 2019-09-02  Martin Liska  <mliska@suse.cz>
5299         PR gcov-profile/91601
5300         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5301         (path_contains_zero_or_negative_cycle_arc): ... this and handle
5302         also negative edges.
5303         (circuit): Handle also negative edges as they can happen
5304         in some situations.
5306 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
5308         PR target/91472
5309         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5310         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5311         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5313 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
5315         PR middle-end/91623
5316         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5317         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5318         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5319         zero vector.
5321         PR lto/91572
5322         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5323         GIMPLE_ASM TREE_LIST operands.
5325 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5327         * doc/generic.texi (Unary and Binary Expressions): Mark up
5328         an instance of TYPE_MIN.
5330 2019-08-31  Stafford Horne  <shorne@gmail.com>
5332         * config/or1k/constraints.md (t): New constraint.
5333         * config/or1k/or1k.h (GOT_REGS): New register class.
5334         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5336 2019-08-30  Jim Wilson  <jimw@sifive.com>
5338         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5339         and -fpic and -mplt then disable -msave-restore and warn.
5341 2019-08-30  Martin Sebor  <msebor@redhat.com>
5343         PR middle-end/91599
5344         * tree-ssa-strlen.c (handle_store): Use a fallback location if
5345         the statement doesn't have one.
5346         * gimple-pretty-print.c (percent_G_format): Same.
5348         PR middle-end/91584
5349         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5350         before using them to validate MEM_REF offset.
5352 2019-08-30  Marek Polacek  <polacek@redhat.com>
5354         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5356 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5358         * config/arm/arm.md (unaligned_loaddi,
5359         unaligned_storedi): New unspec insn patterns.
5360         * config/arm/neon.md (unaligned_storev8qi): Likewise.
5361         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5362         and unaligned_storedi for 4-byte aligned memory.
5363         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5364         4-byte aligned memory.
5366 2019-08-30  Martin Jambor  <mjambor@suse.cz>
5368         tree-optimization/91579
5369         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5370         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5371         appropriate.
5372         (arg_needs_copy_p): Removed.
5373         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5374         arg_needs_copy_p.
5375         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
5377 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
5379         * config/i386/i386-features.c
5380         (general_scalar_chain::compute_convert_gain):
5381         Correct cost for double-word shifts.
5382         (general_scalar_to_vector_candidate_p): Reject count operands
5383         greater or equal to mode bitsize.
5385 2019-08-29  Uroš Bizjak  <ubizjak@gmail.com>
5387         * config/i386/i386.c (inline_secondary_memory_needed): Return true
5388         for moves between SSE and non-general registers and between
5389         mask and non-general registers.
5390         (ix86_register_move_cost): Remove stalled comment.
5392 2019-08-29  Richard Biener  <rguenther@suse.de>
5394         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5395         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5397 2019-08-29  Richard Biener  <rguenther@suse.de>
5399         PR bootstrap/91580
5400         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5401         Do not emit scalar copies for debug-insns, instead replace
5402         their uses with the reg copy used in the chain or reset them
5403         if there is a reaching definition outside of the chain as well.
5405 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
5407         PR target/91560
5408         * config/i386/i386-expand.c (expand_vec_perm_movs,
5409         expand_vec_perm_blend, expand_vec_perm_vpermil,
5410         expand_vec_perm_pshufb, expand_vec_perm_1,
5411         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5412         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5413         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5414         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5415         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5416         comments - replace ix86_expand_vec_perm_builtin_1 with
5417         ix86_expand_vec_perm_const_1.
5418         (expand_vec_perm2_vperm2f128_vblend): New function.
5419         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
5420         expand_vec_perm2_vperm2f128_vblend as last resort.
5421         (canonicalize_perm): Formatting fix.
5423         PR tree-optimization/91351
5424         * tree-cfg.c (generate_range_test): Use range_check_type instead of
5425         unsigned_type_for.
5426         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5427         range_check_type returns NULL.
5428         * tree-switch-conversion.c (switch_conversion::build_one_array):
5429         Use range_check_type instead of unsigned_type_for, don't perform
5430         linear opt if it returns NULL.
5431         (bit_test_cluster::find_bit_tests): Formatting fix.
5432         (bit_test_cluster::emit): Use range_check_type instead of
5433         unsigned_type_for.
5434         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5435         returns NULL.
5437 2019-08-29  Richard Biener  <rguenther@suse.de>
5439         PR tree-optimization/91568
5440         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5441         (vect_update_max_nunits): Add overload for poly_uint64.
5442         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5443         (vect_build_slp_tree): Record max_nunits into the subtree
5444         and merge it upwards.
5445         (vect_print_slp_tree): Print max_nunits.
5447 2019-08-28  Marek Polacek  <polacek@redhat.com>
5449         Implement P1152R4: Deprecating some uses of volatile.
5450         PR c++/91361
5451         * doc/invoke.texi: Document -Wvolatile.
5453 2019-08-28  Marek Polacek  <polacek@redhat.com>
5455         PR c++/91360 - Implement C++20 P1143R2: constinit.
5456         * doc/invoke.texi: Document -Wc++20-compat.
5458 2019-08-28  Martin Sebor  <msebor@redhat.com>
5460         PR tree-optimization/91457
5461         * builtins.c (component_size): New function.
5462         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5463         * builtins.h (compute_objsize): Add argument.
5464         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5465         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5466         (vrp_prop::check_mem_ref): Same.
5467         (vrp_prop::search_for_addr_array): Set no-warning bit.
5468         (check_array_bounds): Same.
5470 2019-08-28  Martin Sebor  <msebor@redhat.com>
5472         PR driver/80545
5473         * opts-common.c (option_enabled): Correct checking for language
5474         options.
5476 2019-08-28  Uroš Bizjak  <ubizjak@gmail.com>
5478         * config/i386/i386.c (ix86_register_move_cost): Do not
5479         limit the cost of moves to/from XMM register to minimum 8.
5481 2019-08-28  Martin Jambor  <mjambor@suse.cz>
5483         PR ipa/91468
5484         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5485         checking assert a normal assert to test it really is redundant.
5486         * ipa-prop.c (compute_complex_assign_jump_func): Removed
5487         redundant test.
5488         (update_jump_functions_after_inlining): Removed combining unary
5489         arithmetic operations with an ancestor jump function.
5490         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5491         instead of t.
5493 2019-08-28  Richard Biener  <rguenther@suse.de>
5495         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5496         add the MD problem.
5498 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5499             Richard Biener  <rguenther@suse.de>
5501         * expr.c (expand_assignment): Handle misaligned DECLs.
5502         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5503         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5504         too.
5505         (assign_parm_setup_stack): Allocate properly aligned stack slots.
5506         * varasm.c (build_constant_desc): Align constants of misaligned types.
5507         * config/arm/predicates.md (aligned_operand): New predicate.
5508         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5509         aligned_operand to check restrictions on memory addresses.
5510         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5511         * config/arm/vec-common.md (mov<VALL>): Likewise.
5513 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
5515         PR libgomp/91530
5516         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5517         V_128 iterator instead of VI_128.
5519 2019-08-28  Martin Liska  <mliska@suse.cz>
5521         PR tree-optimization/90970
5522         * builtins.c (check_access): Remove assignment to maxread
5523         as it hasn't been used since when it was introduced in r255755.
5525 2019-08-27  Martin Sebor  <msebor@redhat.com>
5527         PR tree-optimization/91567
5528         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5529         of unknown strings.
5530         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5531         to PTRDIFF_MAX - 2.
5533 2019-08-27  Jeff Law  <law@redhat.com>
5535         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5536         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5538 2019-08-27  Uroš Bizjak  <ubizjak@gmail.com>
5540         PR target/91528
5541         * config/i386/i386-features.c (convert_scalars_to_vector):
5542         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5543         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
5544         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
5545         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5547 2019-08-27  Richard Biener  <rguenther@suse.de>
5549         * config/i386/i386-features.h
5550         (general_scalar_chain::~general_scalar_chain): Add.
5551         (general_scalar_chain::insns_conv): New bitmap.
5552         (general_scalar_chain::n_sse_to_integer): New.
5553         (general_scalar_chain::n_integer_to_sse): Likewise.
5554         (general_scalar_chain::make_vector_copies): Adjust signature.
5555         * config/i386/i386-features.c
5556         (general_scalar_chain::general_scalar_chain): Outline,
5557         initialize new members.
5558         (general_scalar_chain::~general_scalar_chain): New.
5559         (general_scalar_chain::mark_dual_mode_def): Record insns
5560         we need to insert conversions at and count them.
5561         (general_scalar_chain::compute_convert_gain): Account
5562         for conversion instructions at chain boundary.
5563         (general_scalar_chain::make_vector_copies): Generate a single
5564         copy for a def by a specific insn.
5565         (general_scalar_chain::convert_registers): First populate
5566         defs_map, then make copies at out-of chain insns.
5568 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
5570         * config/arm/arm.md (stack_protect_set_insn): Add security-related
5571         comment.
5572         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5574 2019-08-27  Martin Liska  <mliska@suse.cz>
5576         * cgraph.c (cgraph_node::remove): Remove dead assignment before
5577         loop.
5578         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5579         Enclose in anonymous namespace.
5580         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5581         hard_register initialization in braces.
5582         * tree-vrp.h (value_range_base::supports_type_p): Return false
5583         for function with boolean return type.
5585 2019-08-26  Uroš Bizjak  <ubizjak@gmail.com>
5587         * config/i386/i386.c (emit_i387_cw_initialization)
5588         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5590 2019-08-26  Martin Sebor  <msebor@redhat.com>
5592         PR c++/83431
5593         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5594         (sprintf_dom_walker): Remove class.
5595         (get_int_range): Make argument const.
5596         (directive::fmtfunc, directive::set_precision): Same.
5597         (format_none): Same.
5598         (build_intmax_type_nodes): Same.
5599         (adjust_range_for_overflow): Same.
5600         (format_floating): Same.
5601         (format_character): Same.
5602         (format_string): Same.
5603         (format_plain): Same.
5604         (get_int_range): Cast away constness.
5605         (format_integer): Same.
5606         (get_string_length): Call get_range_strlen_dynamic.  Handle
5607         null lendata.maxbound.
5608         (should_warn_p): Adjust argument scope qualifier.
5609         (maybe_warn): Same.
5610         (format_directive): Same.
5611         (parse_directive): Same.
5612         (is_call_safe): Same.
5613         (try_substitute_return_value): Same.
5614         (sprintf_dom_walker::handle_printf_call): Rename...
5615         (handle_printf_call): ...to this.  Initialize target to host charmap
5616         here instead of in pass_sprintf_length::execute.
5617         (struct call_info): Make global.
5618         (sprintf_dom_walker::compute_format_length): Make global.
5619         (sprintf_dom_walker::handle_gimple_call): Same.
5620         * passes.def (pass_sprintf_length): Replace with pass_strlen.
5621         * print-rtl.c (print_pattern): Reduce the number of spaces to
5622         avoid -Wformat-truncation.
5623         * tree-pass.h (make_pass_warn_printf): New function.
5624         * tree-ssa-strlen.c (strlen_optimize): New variable.
5625         (get_string_length): Add comments.
5626         (get_range_strlen_dynamic): New function.
5627         (check_and_optimize_call): New function.
5628         (handle_integral_assign): New function.
5629         (strlen_check_and_optimize_stmt): Factor code out into
5630         strlen_check_and_optimize_call and handle_integral_assign.
5631         (strlen_dom_walker::evrp): New member.
5632         (strlen_dom_walker::before_dom_children): Use evrp member.
5633         (strlen_dom_walker::after_dom_children): Use evrp member.
5634         (printf_strlen_execute): New function.
5635         (pass_strlen::gate): Update to handle printf calls.
5636         (dump_strlen_info): New function.
5637         (pass_data_warn_printf): New variable.
5638         (pass_warn_printf): New class.
5639         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5640         (handle_printf_call): Same.
5641         * tree-vrp.c (value_range_base::type): Adjust assertion.
5642         * vr-values.c (vr_values::update_value_range): Use type of the first
5643         argument rather than the second.
5645 2019-08-26  Richard Biener  <rguenther@suse.de>
5647         * config/i386/i386-features.c (general_remove_non_convertible_regs):
5648         Remove.
5649         (convert_scalars_to_vector): Do not call it.
5651 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
5652             Uros Bizjak  <ubizjak@gmail.com>
5654         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5655         CASE_MATHFN_FLOATN for roundeven.
5656         * config/i386/i386.c (ix86_i387_mode_needed): Add case
5657         I387_ROUNDEVEN.
5658         (ix86_mode_needed): Likewise.
5659         (ix86_mode_after): Likewise.
5660         (ix86_mode_entry): Likewise.
5661         (ix86_mode_exit): Likewise.
5662         (ix86_emit_mode_set): Likewise.
5663         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5664         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5665         (ix86_entity): Add I387_ROUNDEVEN.
5666         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5667         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5668         (define_int_iterator): Likewise.
5669         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5670         (define_constant): Define ROUND_ROUNDEVEN mode.
5671         (define_attr): Add roundeven mode for i387_cw.
5672         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5673         * internal-fn.def (ROUNDEVEN): New builtin function.
5674         * optabs.def (roundeven_optab): New optab.
5676 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
5678         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5679         for ROUNDEVEN.
5680         * builtins.def: Added function definitions for roundeven function
5681         variants.
5682         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5683         function call.  Adjust condition for floor, ceil, trunc and round.
5684         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5685         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5686         (integer_valued_real_call_p): Added case for roundeven function.
5687         * real.c (is_even): New function. Returns true if real number is even,
5688         otherwise returns false.
5689         (is_halfway_below): New function. Returns true if real number is
5690         halfway between two integers, else return false.
5691         (real_roundeven): New function. Round real number to nearest integer,
5692         rounding halfway cases towards even.
5693         * real.h (real_value): Added descriptive comments.  Added function
5694         declaration for roundeven function.
5695         * doc/extend.texi (Other Builtins): List roundeven variants among
5696         functions which can be handled as builtins.
5698 2019-08-26  Richard Biener  <rguenther@suse.de>
5700         PR target/91522
5701         PR target/91527
5702         * config/i386/i386-features.h (general_scalar_chain::defs_map):
5703         New member.
5704         (general_scalar_chain::replace_with_subreg): Remove.
5705         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5706         (general_scalar_chain::convert_reg): Adjust signature.
5707         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5708         iterate over all defs of a reg.
5709         (general_scalar_chain::replace_with_subreg): Remove.
5710         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5711         (general_scalar_chain::make_vector_copies): Populate defs_map,
5712         place copy only after defs that are used as vectors in the chain.
5713         (general_scalar_chain::convert_reg): Emit a copy for a specific
5714         def in a specific instruction.
5715         (general_scalar_chain::convert_op): All reg uses are converted here.
5716         (general_scalar_chain::convert_insn): Emit copies for scalar
5717         uses of defs here.  Replace uses with the copies we created.
5718         Replace and convert the def.  Adjust REG_DEAD notes, remove
5719         REG_EQUIV/EQUAL notes.
5720         (general_scalar_chain::convert_registers): Only handle copies
5721         into the chain here.
5723 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
5725         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5727 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
5729         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5730         Add nop_convert case.
5731         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5732         Fold all statements if requested.
5733         * tree-ssa-propagate.h (class substitute_and_fold_engine):
5734         Allow to fold all statements.
5735         * tree-vrp.c (class vrp_folder):
5736         Let substitute_and_fold_engine fold all statements.
5738 2019-08-26  Richard Biener  <rguenther@suse.de>
5740         PR tree-optimization/91526
5741         * passes.def: Note that after late FRE we do TODO_update_address_taken.
5742         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5743         TODO_update_address_taken.
5745 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
5747         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5748         __STDC_HOSTED__.
5750 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
5752         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5753         machine mode for unspec_volatile operand.
5755 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
5757         * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5758         * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5759         * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5760         (prefer_neon_for_64bits): Remove.
5761         * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5762         (tune_params): Remove PREF_NEON_64_FALSE uses.
5763         (arm_option_override): Remove prefer_neon selection code.
5764         (arm_print_tune_info): Remove prefer_neon_for_64bits.
5765         * gcc/config/arm/arm-protos.h (tune_params): Remove
5766         prefer_neon_for_64bits.
5767         (prefer_neon_for_64bits): Remove.
5769 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
5771         PR pch/61250
5772         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5773         and issue any diagnostics needed before collecting the pre-PCH
5774         state.
5776 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
5778         PR middle-end/91283
5779         * common.opt (fexcess-precision=): Add Optimization flag.  Use
5780         flag_excess_precision variable instead of
5781         flag_excess_precision_cmdline.
5782         * flags.h (class target_flag_state): Remove x_flag_excess_precision
5783         member.
5784         (flag_excess_precision): Don't define.
5785         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5786         flag_excess_precision_cmdline.  Remove comment.
5787         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5788         and x_flag_excess_precision instead of
5789         frontend_set_flag_excess_precision_cmdline and
5790         x_flag_excess_precision_cmdline.
5791         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5792         x_flag_excess_precision_cmdline.
5793         * toplev.c (init_excess_precision): Remove.
5794         (lang_dependent_init_target): Don't call it.
5796 2019-08-23  Martin Liska  <mliska@suse.cz>
5798         * lto-wrapper.c (run_gcc): When setting jobserver
5799         set also parallel to 1.  This was done so before r273908.
5801 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
5803         * config/arm/arm-cpus.in (cortex-m35p): New entry.
5804         (cortex-a76ae): Likewise.
5805         (cortex-a77): Likewise
5806         * config/arm/arm-tables.opt: Regenerate.
5807         * config/arm/arm-tune.md: Likewise.
5808         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5809         cortex-a77 CPU options.
5811 2019-08-23  Martin Liska  <mliska@suse.cz>
5813         * profile.c (instrument_values): Do not set
5814         0 as last argument.
5815         * tree-profile.c (gimple_gen_interval_profiler): Remove
5816         last argument.
5817         (gimple_gen_pow2_profiler): Likewise.
5818         (gimple_gen_topn_values_profiler): Likewise.
5819         (gimple_gen_ic_profiler): Likewise.
5820         (gimple_gen_time_profiler): Likewise.
5821         (gimple_gen_average_profiler): Likewise.
5822         (gimple_gen_ior_profiler): Likewise.
5823         * value-prof.c (dump_histogram_value): Use default
5824         in switch statement instead of HIST_TYPE_MAX.
5825         (stream_in_histogram_value): Likewise.
5826         (gimple_duplicate_stmt_histograms): Do not
5827         use NULL for implicitly set arguments.
5828         (gimple_divmod_values_to_profile): Do not use
5829         reserve+quick_push.
5830         (gimple_indirect_call_to_profile): Likewise.
5831         (gimple_find_values_to_profile): Use implicit
5832         function call arguments.
5833         * value-prof.h (gimple_alloc_histogram_value):
5834         Set default values.
5835         (gimple_gen_interval_profiler): Remove last argument.
5836         (gimple_gen_pow2_profiler): Likewise.
5837         (gimple_gen_topn_values_profiler): Likewise.
5838         (gimple_gen_ic_profiler): Likewise.
5839         (gimple_gen_time_profiler): Likewise.
5840         (gimple_gen_average_profiler): Likewise.
5841         (gimple_gen_ior_profiler): Likewise.
5843 2019-08-22  Martin Sebor  <msebor@redhat.com>
5845         PR middle-end/91490
5846         * builtins.c (c_strlen): Rename argument and introduce new local.
5847         Set no-warning bit on original argument.
5848         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5849         Fold empty and zero constructors into empty strings.
5850         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5851         for missing initializers.
5852         * tree.c (build_string_literal): Handle optional argument.
5853         * tree.h (build_string_literal): Add defaulted argument.
5854         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5855         no-warning bit on original expression.
5857 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
5859         PR target/91481
5860         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5861         and UNSPEC_DARN_RAW.
5862         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
5863         UNSPECV_DARN_RAW.
5864         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
5865         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
5866         (darn): Use an unspec_volatile, and UNSPECV_DARN.
5868 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
5870         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5871         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
5872         * config/rs6000/rs6000.md (unspec): ... here.
5873         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
5874         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5875         cmpeqb, *cmpeqb_internal): Delete, move to...
5876         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
5877         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5878         cmpeqb, *cmpeqb_internal): ... here.
5880 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5882         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
5883         intrinsics if __ARM_FP.
5884         Use __ARM_FEATURE_CRC32 ifdef guard.
5886 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
5888         * config/arm/arm.md (neon_for_64bits): Remove.
5889         (avoid_neon_for_64bits): Remove.
5890         (arm_adddi3): Always split early.
5891         (arm_subdi3): Always split early.
5892         (negdi2): Remove Neon expansion.
5893         (split zero_extend): Split before reload.
5894         (split sign_extend): Split before reload.
5896 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
5898         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
5899         (qhs_extenddi_cstr): Likewise.
5900         * config/arm/arm.md (ashldi3): Always expand early.
5901         (ashlsi3): Likewise.
5902         (ashrsi3): Likewise.
5903         (zero_extend<mode>di2): Remove Neon variants.
5904         (extend<mode>di2): Likewise.
5905         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
5906         (signed_shift_di3_neon): Likewise.
5907         (unsigned_shift_di3_neon): Likewise.
5908         (ashrdi3_neon_imm_noclobber): Likewise.
5909         (lshrdi3_neon_imm_noclobber): Likewise.
5910         (<shift>di3_neon): Likewise.
5911         (split extend): Remove DI extend split patterns.
5913 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
5915         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
5916         (split not): Add DImode not splitter.
5917         (anddi3): Remove pattern.
5918         (anddi3_insn): Likewise.
5919         (anddi_zesidi_di): Likewise.
5920         (anddi_sesdi_di): Likewise.
5921         (anddi_notdi_di): Likewise.
5922         (anddi_notzesidi_di): Likewise.
5923         (anddi_notsesidi_di): Likewise.
5924         (iordi3): Likewise.
5925         (iordi3_insn): Likewise.
5926         (iordi_zesidi_di): Likewise.
5927         (iordi_sesidi_di): Likewise.
5928         (xordi3): Likewise.
5929         (xordi3_insn): Likewise.
5930         (xordi_sesidi_di): Likewise.
5931         (xordi_zesidi_di): Likewise.
5932         (one_cmpldi2): Likewise.
5933         (one_cmpldi2_insn): Likewise.
5934         * config/arm/constraints.md: Remove De, Df, Dg constraints.
5935         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
5936         alternative.
5937         (iwmmxt_xordi3): Likewise.
5938         (iwmmxt_anddi3): Likewise.
5939         * config/arm/neon.md (orndi3_neon): Remove pattern.
5940         (anddi_notdi_di): Likewise.
5941         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
5942         (arm_iordi_operand_neon): Likewise.
5943         (arm_xordi_operand_neon): Likewise.
5944         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
5945         (iordi_notzesidi_di): Likewise.
5946         (iordi_notdi_zesidi): Likewise.
5947         (iordi_notsesidi_di): Likewise.
5949 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
5951         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
5952         insn.
5953         (iorsi3_compare0_scratch): Likewise.
5955 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
5957         * config/aarch64/aarch64-simd-builtins.def:
5958         (ld1x4): New.
5959         (st1x4): Likewise.
5960         * config/aarch64/aarch64-simd.md:
5961         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
5962         (aarch64_st1x4<VALLDIF:mode>): Likewise.
5963         (aarch64_ld1_x4_<mode>): Likewise.
5964         (aarch64_st1_x4_<mode>): Likewise.
5965         * config/aarch64/arm_neon.h:
5966         (vld1_s8_x4): New function.
5967         (vld1q_s8_x4): Likewise.
5968         (vld1_s16_x4): Likewise.
5969         (vld1q_s16_x4): Likewise.
5970         (vld1_s32_x4): Likewise.
5971         (vld1q_s32_x4): Likewise.
5972         (vld1_u8_x4): Likewise.
5973         (vld1q_u8_x4): Likewise.
5974         (vld1_u16_x4): Likewise.
5975         (vld1q_u16_x4): Likewise.
5976         (vld1_u32_x4): Likewise.
5977         (vld1q_u32_x4): Likewise.
5978         (vld1_f16_x4): Likewise.
5979         (vld1q_f16_x4): Likewise.
5980         (vld1_f32_x4): Likewise.
5981         (vld1q_f32_x4): Likewise.
5982         (vld1_p8_x4): Likewise.
5983         (vld1q_p8_x4): Likewise.
5984         (vld1_p16_x4): Likewise.
5985         (vld1q_p16_x4): Likewise.
5986         (vld1_s64_x4): Likewise.
5987         (vld1_u64_x4): Likewise.
5988         (vld1_p64_x4): Likewise.
5989         (vld1q_s64_x4): Likewise.
5990         (vld1q_u64_x4): Likewise.
5991         (vld1q_p64_x4): Likewise.
5992         (vld1_f64_x4): Likewise.
5993         (vld1q_f64_x4): Likewise.
5994         (vst1_s8_x4): Likewise.
5995         (vst1q_s8_x4): Likewise.
5996         (vst1_s16_x4): Likewise.
5997         (vst1q_s16_x4): Likewise.
5998         (vst1_s32_x4): Likewise.
5999         (vst1q_s32_x4): Likewise.
6000         (vst1_u8_x4): Likewise.
6001         (vst1q_u8_x4): Likewise.
6002         (vst1_u16_x4): Likewise.
6003         (vst1q_u16_x4): Likewise.
6004         (vst1_u32_x4): Likewise.
6005         (vst1q_u32_x4): Likewise.
6006         (vst1_f16_x4): Likewise.
6007         (vst1q_f16_x4): Likewise.
6008         (vst1_f32_x4): Likewise.
6009         (vst1q_f32_x4): Likewise.
6010         (vst1_p8_x4): Likewise.
6011         (vst1q_p8_x4): Likewise.
6012         (vst1_p16_x4): Likewise.
6013         (vst1q_p16_x4): Likewise.
6014         (vst1_s64_x4): Likewise.
6015         (vst1_u64_x4): Likewise.
6016         (vst1_p64_x4): Likewise.
6017         (vst1q_s64_x4): Likewise.
6018         (vst1q_u64_x4): Likewise.
6019         (vst1q_p64_x4): Likewise.
6020         (vst1_f64_x4): Likewise.
6021         (vst1q_f64_x4): Likewise.
6023 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6025         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6027 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6028             Richard Sandiford  <richard.sandiford@arm.com>
6030         PR target/88839
6031         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6032         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6034 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6036         PR target/90724
6037         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6038         in reg if it fails aarch64_plus_operand predicate.
6040 2019-08-21  Richard Biener  <rguenther@suse.de>
6042         PR tree-optimization/91482
6043         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6044         BUILT_IN_ASSUME_ALIGNED calls.
6046 2019-08-21  Richard Biener  <rguenther@suse.de>
6048         PR target/91498
6049         PR target/91503
6050         * config/i386/i386-features.c
6051         (general_scalar_chain::make_vector_copies): Copy stack temporary
6052         rtx when using it multiple times.
6053         (general_scalar_chain::convert_reg): Likewise.
6055 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6057         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6059 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
6061         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6062         catch more redundant zero initialization cases.
6063         (dse_dom_walker::dse_optimize_stmt): Likewise.
6065 2019-08-20  Richard Biener  <rguenther@suse.de>
6067         PR lto/91307
6068         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6069         by collect2 when targetm.have_ctors_dtors which avoids dragging
6070         in temporary filenames from LTO input objects.
6072 2019-08-20  Richard Biener  <rguenther@suse.de>
6074         PR tree-optimization/37242
6075         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6076         to (T)a + (T)b if we know that a + b does not overflow.
6078 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
6080         PR rtl-optimization/91347
6081         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6082         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6084 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6086         * calls.h (function_arg_info): Add a pass_by_reference field,
6087         defaulting to false.
6088         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6089         when applying pass-by-reference semantics.
6090         (initialize_argument_information): Likewise.
6091         (emit_library_call_value_1): Likewise.
6092         * function.c (assign_parm_data_one): Remove passed_pointer field.
6093         (assign_parm_find_data_types): Don't set it.
6094         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6095         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6096         arg.pass_by_reference instead of passed_pointer.
6098 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6100         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6101         into a single function_arg_info, updating its fields when we
6102         apply pass-by-reference and promotion semantics.  Use the
6103         function_arg_info to track the mode rather than keeping it in
6104         a separate local variable.
6105         (initialize_argument_information): Likewise.  Base the final
6106         arg_to_skip on this new function_arg_info rather than creating
6107         a new one from scratch.
6109 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6111         * function.c (assign_parm_data_one): Replace passed_type,
6112         promoted_mode and named_arg with a function_arg_info field.
6113         (assign_parm_find_data_types): Remove local variables and
6114         assign directly to "data".  Make data->passed_mode shadow
6115         data->arg.mode until promotion, then assign the promoted
6116         mode to data->arg.mode.
6117         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6118         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6119         (assign_parm_remove_parallels, assign_parm_setup_block_p)
6120         (assign_parm_setup_block, assign_parm_setup_reg)
6121         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6122         arg.mode instead of promoted_mode, arg.type instead of passed_type
6123         and arg.named instead of named_arg.  Use data->arg for
6124         function_arg_info structures that had the field values passed_type,
6125         promoted_mode and named_arg.  Base other function_arg_infos on
6126         data->arg, changing the necessary properties.
6128 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6130         * calls.h (apply_pass_by_reference_rules): Declare.
6131         * calls.c (apply_pass_by_reference_rules): New function.
6132         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6133         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6134         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6135         * function.c (assign_parm_find_data_types): Likewise.
6136         * var-tracking.c (prepare_call_arguments): Likewise.
6138 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6140         * target.def (must_pass_in_stack): Take a function_arg_info instead
6141         of a mode and a type.
6142         * doc/tm.texi: Regenerate.
6143         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6144         instead of a mode and a type.
6145         (must_pass_in_stack_var_size_or_pad): Likewise.
6146         * calls.c (must_pass_in_stack_var_size): Likewise.
6147         (must_pass_in_stack_var_size_or_pad): Likewise.
6148         (initialize_argument_information): Update call to
6149         targetm.calls.must_pass_in_stack.
6150         (must_pass_va_arg_on_stack): Likewise.
6151         * function.c (assign_parm_find_entry_rtl): Likewise.
6152         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6153         * config/alpha/alpha.c (alpha_function_arg): Likewise.
6154         (alpha_function_arg_advance): Likewise.
6155         * config/cr16/cr16.c (cr16_function_arg): Likewise.
6156         (cr16_function_arg_advance): Likewise.
6157         * config/cris/cris.c (cris_pass_by_reference): Likewise.
6158         (cris_arg_partial_bytes): Likewise.
6159         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6160         * config/lm32/lm32.c (lm32_function_arg): Likewise.
6161         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6162         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6163         * config/mips/mips.c (mips_pass_by_reference): Likewise.
6164         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6165         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6166         * config/sh/sh.c (sh_pass_by_reference): Likewise.
6167         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6168         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6169         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6170         instead of a mode and a type.
6171         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6172         (fr30_num_arg_regs): Likewise.
6173         (fr30_setup_incoming_varargs): Update calls accordingly.
6174         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6175         (fr30_function_arg_advance): Likewise.
6176         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6177         instead of a mode and a type.
6178         * config/gcn/gcn.c (num_arg_regs): Likewise.
6179         (gcn_function_arg, gcn_function_arg_advance): Update calls to
6180         num_arg_regs and targetm.calls.must_pass_in_stack.
6181         (gcn_arg_partial_bytes): Likewise.
6182         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6183         function_arg_info instead of a mode and a type.
6184         (classify_argument): Update call accordingly.
6185         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6186         function_arg_info instead of a mode and a type.
6187         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6188         Likewise.
6189         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6190         (rs6000_parm_needs_stack): Update call accordingly.
6191         (setup_incoming_varargs): Likewise.
6193 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6195         * target.def (callee_copies): Take a function_arg_info instead
6196         of a mode, type and named flag.
6197         * doc/tm.texi: Regenerate.
6198         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6199         instead of a mode, type and named flag.
6200         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6201         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6202         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6203         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6204         instead of a mode, type and named flag.
6205         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6206         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6207         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6208         * calls.h (reference_callee_copied): Take a function_arg_info
6209         instead of a mode, type and named flag.
6210         * calls.c (reference_callee_copied): Likewise.
6211         (initialize_argument_information): Update call accordingly.
6212         (emit_library_call_value_1): Likewise.
6213         * function.c (gimplify_parameters): Likewise.
6214         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6215         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6216         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6217         * config/c6x/c6x.c (c6x_callee_copies): Delete.
6218         (TARGET_CALLEE_COPIES): Define to
6219         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6220         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6221         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6222         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6223         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6224         instead of a mode, type and named flag.
6225         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6226         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6227         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6228         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6229         * config/msp430/msp430.c (msp430_callee_copies): Delete.
6230         (TARGET_CALLEE_COPIES): Define to
6231         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6232         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6233         instead of a mode, type and named flag.
6234         * config/sh/sh.c (sh_callee_copies): Likewise.
6235         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6236         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6237         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6239 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6241         * target.def (function_arg_advance): Take a function_arg_info instead
6242         of a mode, type and named flag.
6243         * doc/tm.texi: Regenerate.
6244         * targhooks.h (default_function_arg_advance): Take a function_arg_info
6245         instead of a mode, type and named flag.
6246         * targhooks.c (default_function_arg_advance): Likewise.
6247         * calls.c (initialize_argument_information): Update call to
6248         targetm.calls.function_arg_advance.
6249         (emit_library_call_value_1): Likewise.
6250         * dse.c (get_call_args): Likewise.
6251         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6252         * function.c (assign_parms, gimplify_parameters): Likewise.
6253         * var-tracking.c (prepare_call_arguments): Likewise.
6254         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6255         function_arg_info instead of a mode, type and named flag.
6256         (aarch64_setup_incoming_varargs): Update call accordingly.
6257         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6258         function_arg_info instead of a mode, type and named flag.
6259         (alpha_setup_incoming_varargs): Update call accordingly.
6260         * config/arc/arc.c (arc_function_arg_advance): Take a
6261         function_arg_info instead of a mode, type and named flag.
6262         (arc_setup_incoming_varargs): Update call accordingly.
6263         * config/arm/arm.c (arm_function_arg_advance): Take a
6264         function_arg_info instead of a mode, type and named flag.
6265         (cmse_func_args_or_return_in_stack): Update call accordingly.
6266         (arm_function_ok_for_sibcall): Likewise.
6267         (cmse_nonsecure_call_clear_caller_saved): Likewise.
6268         * config/avr/avr.c (avr_function_arg_advance): Take a
6269         function_arg_info instead of a mode, type and named flag.
6270         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6271         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6272         (c6x_call_saved_register_used): Update call accordingly.
6273         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6274         function_arg_info instead of a mode, type and named flag.
6275         * config/cris/cris.c (cris_function_arg_advance): Likewise.
6276         * config/csky/csky.c (csky_function_arg_advance): Likewise.
6277         (csky_setup_incoming_varargs): Update call accordingly.
6278         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6279         function_arg_info instead of a mode, type and named flag.
6280         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6281         * config/frv/frv.c (frv_function_arg_advance): Likewise.
6282         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6283         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6284         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6285         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6286         (ix86_setup_incoming_varargs): Update call accordingly.
6287         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6288         function_arg_info instead of a mode, type and named flag.
6289         (ia64_setup_incoming_varargs): Update call accordingly.
6290         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6291         function_arg_info instead of a mode, type and named flag.
6292         (iq2000_expand_prologue): Update call accordingly.
6293         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6294         function_arg_info instead of a mode, type and named flag.
6295         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6296         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6297         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6298         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6299         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6300         Likewise.
6301         (microblaze_expand_prologue): Update call accordingly.
6302         * config/mips/mips.c (mips_function_arg_advance): Take a
6303         function_arg_info instead of a mode, type and named flag.
6304         (mips_setup_incoming_varargs): Update call accordingly.
6305         (mips_output_args_xfer): Likewise.
6306         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6307         function_arg_info instead of a mode, type and named flag.
6308         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6309         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6310         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6311         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6312         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6313         (nios2_setup_incoming_varargs): Update call accordingly.
6314         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6315         function_arg_info instead of a mode, type and named flag.
6316         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6317         * config/pa/pa.c (pa_function_arg_advance): Likewise.
6318         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6319         * config/pru/pru.c (pru_function_arg_advance): Likewise.
6320         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6321         (riscv_setup_incoming_varargs): Update call accordingly.
6322         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6323         function_arg_info instead of a mode, type and named flag.
6324         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6325         Likewise.
6326         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6327         (rs6000_parm_needs_stack): Update call accordingly.
6328         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6329         instead of a mode, type and named flag.
6330         * config/s390/s390.c (s390_function_arg_advance): Likewise.
6331         (s390_call_saved_register_used): Update call accordingly.
6332         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6333         instead of a mode, type and named flag.
6334         (sh_output_mi_thunk): Update call accordingly.
6335         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6336         function_arg_info instead of a mode, type and named flag.
6337         * config/spu/spu.c (spu_function_arg_advance): Likewise.
6338         (spu_setup_incoming_varargs): Update call accordingly.
6339         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6340         function_arg_info instead of a mode, type and named flag.
6341         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6342         (tilegx_setup_incoming_varargs): Update call accordingly.
6343         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6344         function_arg_info instead of a mode, type and named flag.
6345         (tilegx_setup_incoming_varargs): Update call accordingly.
6346         * config/v850/v850.c (v850_function_arg_advance): Take a
6347         function_arg_info instead of a mode, type and named flag.
6348         * config/vax/vax.c (vax_function_arg_advance): Likewise.
6349         * config/visium/visium.c (visium_function_arg_advance): Likewise.
6350         (visium_setup_incoming_varargs): Update call accordingly.
6351         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6352         function_arg_info instead of a mode, type and named flag.
6354 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6356         * target.def (function_arg, function_incoming_arg): Take a
6357         function_arg_info instead of a mode, tree and named flag.
6358         * doc/tm.texi: Regenerate.
6359         * targhooks.h (default_function_arg): Take a function_arg_info
6360         instead of a mode, tree and named flag.
6361         (default_function_incoming_arg): Likewise.
6362         * targhooks.c (default_function_arg): Likewise.
6363         (default_function_incoming_arg): Likewise.
6364         * calls.h (function_arg_info::end_marker_p): New function.
6365         (function_arg_info::end_marker): Likewise.
6366         * calls.c (prepare_call_address, initialize_argument_information)
6367         (expand_call, emit_library_call_value_1): Update calls to
6368         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6369         * dse.c: Include calls.h.
6370         (get_call_args): Update call to targetm.calls.function_arg.
6371         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6372         * var-tracking.c (prepare_call_arguments): Likewise.
6373         * function.c (assign_parm_find_entry_rtl): Update call to
6374         targetm.calls.function_incoming_arg.
6375         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6376         function_arg_info instead of a mode, tree and named flag.
6377         * config/alpha/alpha.c (alpha_function_arg): Likewise.
6378         * config/arc/arc.c (arc_function_arg): Likewise.
6379         * config/arm/arm.c (arm_function_arg): Likewise.
6380         (cmse_func_args_or_return_in_stack): Update call accordingly.
6381         (arm_function_ok_for_sibcall): Likewise.
6382         (cmse_nonsecure_call_clear_caller_saved): Likewise.
6383         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6384         instead of a mode, tree and named flag.
6385         * config/bfin/bfin.c (bfin_function_arg): Likewise.
6386         * config/c6x/c6x.c (c6x_function_arg): Likewise.
6387         (c6x_call_saved_register_used): Update call accordingly.
6388         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6389         instead of a mode, tree and named flag.
6390         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6391         (cris_function_arg_1): Likewise.
6392         * config/csky/csky.c (csky_function_arg): Likewise.
6393         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6394         * config/fr30/fr30.c (fr30_function_arg): Likewise.
6395         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6396         (frv_function_arg_1): Likewise.
6397         * config/ft32/ft32.c (ft32_function_arg): Likewise.
6398         * config/gcn/gcn.c (gcn_function_arg): Likewise.
6399         * config/h8300/h8300.c (h8300_function_arg): Likewise.
6400         * config/i386/i386.c (ix86_function_arg): Likewise.
6401         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6402         (ia64_function_arg_1): Likewise.
6403         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6404         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6405         accordingly.
6406         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6407         instead of a mode, tree and named flag.
6408         * config/m32c/m32c.c (m32c_function_arg): Likewise.
6409         * config/m32r/m32r.c (m32r_function_arg): Likewise.
6410         * config/m68k/m68k.c (m68k_function_arg): Likewise.
6411         * config/mcore/mcore.c (mcore_function_arg): Likewise.
6412         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6413         (microblaze_expand_prologue): Update call accordingly.
6414         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6415         instead of a mode, tree and named flag.
6416         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6417         (mmix_function_arg_1): Likewise.
6418         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6419         * config/moxie/moxie.c (moxie_function_arg): Likewise.
6420         * config/msp430/msp430.c (msp430_function_arg): Likewise.
6421         * config/nds32/nds32.c (nds32_function_arg): Likewise.
6422         * config/nios2/nios2.c (nios2_function_arg): Likewise.
6423         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6424         (nvptx_function_incoming_arg): Likewise.
6425         * config/or1k/or1k.c (or1k_function_arg): Likewise.
6426         * config/pa/pa.c (pa_function_arg): Likewise.
6427         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6428         * config/pru/pru.c (pru_function_arg): Likewise.
6429         * config/riscv/riscv.c (riscv_function_arg): Likewise.
6430         * config/rl78/rl78.c (rl78_function_arg): Likewise.
6431         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6432         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6433         (rs6000_parm_needs_stack): Update call accordingly.
6434         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6435         instead of a mode, tree and named flag.
6436         * config/s390/s390.c (s390_function_arg): Likewise.
6437         (s390_call_saved_register_used): Update call accordingly.
6438         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6439         instead of a mode, tree and named flag.
6440         (sh_output_mi_thunk): Update call accordingly.
6441         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6442         (sparc_function_incoming_arg): Take a function_arg_info instead of
6443         a mode, tree and named flag.
6444         * config/spu/spu.c (spu_function_arg): Likewise.
6445         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6446         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6447         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6448         * config/v850/v850.c (v850_function_arg): Likewise.
6449         * config/vax/vax.c (vax_function_arg): Likewise.
6450         * config/visium/visium.c (visium_function_arg): Likewise.
6451         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6452         (xtensa_function_incoming_arg): Likewise.
6454 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6456         * target.def (setup_incoming_varargs): Take a function_arg_info
6457         instead of a mode and tree.
6458         * doc/tm.texi: Regenerate.
6459         * targhooks.h (default_setup_incoming_varargs): Take a
6460         function_arg_info instead of a mode and tree.
6461         * targhooks.c (default_setup_incoming_varargs): Likewise.
6462         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6463         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6464         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6465         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6466         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6467         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6468         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6469         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6470         Likewise.
6471         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6472         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6473         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6474         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6475         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6476         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6477         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6478         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6479         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6480         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6481         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6482         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6483         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6484         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6485         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6486         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6487         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6488         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6489         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6490         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6491         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6492         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6493         * function.c (assign_parms_setup_varargs): Update call to
6494         targetm.calls.setup_incoming_varargs.
6496 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6498         * target.def (pass_by_reference): Take a function_arg_info instead
6499         of a mode, type and named flag.
6500         * doc/tm.texi: Regenerate.
6501         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6502         accordingly.
6503         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6504         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6505         function_arg_info instead of a mode, type and named flag.
6506         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6507         * calls.h (pass_by_reference): Take a function_arg_info instead of a
6508         mode, type and named flag.
6509         * calls.c (pass_by_reference): Likewise.
6510         (pass_va_arg_by_reference): Update call accordingly.
6511         (initialize_argument_information): Likewise.
6512         (emit_library_call_value_1): Likewise.
6513         * function.c (assign_parm_find_data_types): Likewise.
6514         * var-tracking.c (prepare_call_arguments): Likewise.
6515         * stor-layout.c: Include calls.h.
6516         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6517         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6518         function_arg_info instead of a mode, type and named flag.
6519         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6520         * config/arc/arc.c (arc_pass_by_reference): Likewise.
6521         * config/arm/arm.c (arm_pass_by_reference): Likewise.
6522         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6523         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6524         (c6x_call_saved_register_used): Update call to pass_by_reference.
6525         * config/cris/cris.c (cris_pass_by_reference): Take a
6526         function_arg_info instead of a mode, type and named flag.
6527         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6528         function_arg_info instead of a mode, type and named flag.
6529         (epiphany_arg_partial_bytes): Update call accordingly.
6530         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6531         function_arg_info instead of a mode, type and named flag.
6532         (ft32_arg_partial_bytes): Update call accordingly.
6533         * config/i386/i386.c (ix86_pass_by_reference): Take a
6534         function_arg_info instead of a mode, type and named flag.
6535         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6536         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6537         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6538         (m32r_return_in_memory): Update call accordingly.
6539         * config/mips/mips.c (mips_pass_by_reference): Take a
6540         function_arg_info instead of a mode, type and named flag.
6541         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6542         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6543         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6544         (moxie_arg_partial_bytes): Update call accordingly.
6545         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6546         function_arg_info instead of a mode, type and named flag.
6547         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6548         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6549         * config/pa/pa.c (pa_pass_by_reference): Likewise.
6550         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6551         (riscv_return_in_memory): Update call accordingly.
6552         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6553         function_arg_info instead of a mode, type and named flag.
6554         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6555         (rs6000_parm_needs_stack): Update call to pass_by_reference.
6556         * config/s390/s390.c (s390_pass_by_reference): Take a
6557         function_arg_info instead of a mode, type and named flag.
6558         (s390_call_saved_register_used): Update call accordingly.
6559         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6560         instead of a mode, type and named flag.
6561         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6562         * config/spu/spu.c (spu_pass_by_reference): Likewise.
6563         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6564         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6565         * config/v850/v850.c (v850_pass_by_reference): Likewise.
6566         * config/visium/visium.c (visium_pass_by_reference): Likewise.
6568 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6570         * target.def (arg_partial_bytes): Take a function_arg_info instead
6571         of a mode, type and named flag.
6572         * doc/tm.texi: Regenerate.
6573         * target.h (function_arg_info): Declare.
6574         * calls.h (function_arg_info): New class.
6575         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6576         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6577         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6578         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6579         * calls.c (initialize_argument_information): Update call to
6580         targetm.calls.partial_bytes.
6581         (emit_library_call_value_1): Likewise.
6582         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6583         * function.c (assign_parm_find_entry_rtl): Likewise.
6584         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6585         function_arg_info instead of a mode, type and named flag.
6586         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6587         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6588         (cmse_func_args_or_return_in_stack): Update accordingly.
6589         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6590         function_arg_info instead of a mode, type and named flag.
6591         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6592         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6593         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6594         * config/fr30/fr30.c: Include calls.h.
6595         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6596         type and named flag.
6597         * config/frv/frv.c: Include calls.h.
6598         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6599         type and named flag.
6600         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6601         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6602         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6603         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6604         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6605         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6606         * config/microblaze/microblaze.c (function_arg_partial_bytes):
6607         Likewise.
6608         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6609         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6610         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6611         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6612         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6613         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6614         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6615         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6616         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6617         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6618         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6619         (rs6000_parm_needs_stack): Update call accordingly.
6620         * config/sh/sh.c (sh_arg_partial_bytes): Take a
6621         function_arg_info instead of a mode, type and named flag.
6622         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6623         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6625 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6627         * calls.h (must_pass_va_arg_in_stack): Declare.
6628         * calls.c (must_pass_va_arg_in_stack): New function.
6629         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6630         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6631         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6632         Likewise.
6633         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6635 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6637         * calls.h (pass_va_arg_by_reference): Declare.
6638         * calls.c (pass_va_arg_by_reference): New function.
6639         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6640         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6641         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6642         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6643         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6644         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6645         (mips_gimplify_va_arg_expr): Likewise.
6646         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6647         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6648         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6649         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6650         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6651         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6652         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6653         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6654         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6655         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6656         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6658 2019-08-20  Richard Biener  <rguenther@suse.de>
6660         PR target/91498
6661         * config/i386/i386-features.c (general_scalar_chain::convert_op):
6662         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6663         (convert_scalars_to_vector): Add timode_p parameter and use it
6664         to guard TImode-only operation.
6665         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6666         (pass_stv::execute): Pass down timode_p.
6668 2019-08-20  Lili Cui  <lili.cui@intel.com>
6670         * common/config/i386/i386-common.c
6671         (processor_names): Add tigerlake and cooperlake.
6672         (processor_alias_table): Add tigerlake and cooperlake.
6673         * config.gcc: Add -march=tigerlake and cooperlake.
6674         * config/i386/driver-i386.c
6675         (host_detect_local_cpu): Detect tigerlake and cooperlake.
6676         Add "has_avx" to classify processor.
6677         * config/i386/i386-builtins.c (processor_model) :
6678         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6679         (arch_names_table): Add tigerlake and cooperlake.
6680         (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6681         and PROCESSOR_COOPERLAKE.
6682         * config/i386/i386-c.c
6683         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6684         * config/i386/i386-options.c
6685         (m_TIGERLAKE)  : Define.
6686         (m_COOPERLAKE) : Ditto.
6687         (m_CORE_AVX512): Ditto.
6688         (processor_cost_table): Add cascadelake.
6689         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6690         * config/i386/i386.h
6691         (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6692         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6693         (PTA_MOVDIRI): Ditto.
6694         (PTA_MOVDIR64B): Ditto.
6695         (PTA_COOPERLAKE) : Ditto.
6696         (PTA_TIGERLAKE)  : Ditto.
6697         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6698         * doc/extend.texi: Add tigerlake and cooperlake.
6699         * doc/invoke.texi: Add tigerlake and cooperlake.
6701 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
6703         * doc/install.texi (Specific, alpha): Remove note to use
6704         binutils 2.11.2 or later.
6706 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6708         PR middle-end/89544
6709         * function.c (assign_parm_find_stack_rtl): Use larger alignment
6710         when possible.
6712 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
6714         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6715         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6716         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6717         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6718         * config/aarch64/constraints.md (Dt): New constraint
6719         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6721 2019-08-19  Richard Biener  <rguenther@suse.de>
6723         PR tree-optimization/91403
6724         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6725         cases we can handle with tail-recursion...
6726         (follow_ssa_edge_expr): ... here.  Do so.
6728 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
6730         PR target/91441
6731         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6732         implemented for -fsanitize=kernel-address, and merge check logic
6733         with -fsanitize=address.
6735 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
6737         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6738         for cpu and machine.  Factor 64/32b builtins.
6740 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
6742         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6743         gone, point to sourceforge.net.
6745 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
6746         
6747         * doc/ux.texi (User Experience Guidelines): Update reference.
6749 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
6750         
6751         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6752         not LGPL".
6754 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
6756         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6757         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
6759 2019-08-16  Martin Sebor  <msebor@redhat.com>
6761         * tree.def (TYPE_SIZE): Clarify.
6762         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6764 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6766         PR tree-optimization/91109
6767         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6768         * lra.c (lra): Use lra_need_for_scratch_reg_p.
6769         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6771 2019-08-16  Uroš Bizjak  <ubizjak@gmail.com>
6773         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6774         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6775         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6776         (uavg<mode>3_ceil): New expander.
6777         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6778         mode iterator when creating CONST1_RTX.
6779         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6780         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6781         mode iterator for const1_operand predicate.
6783 2019-08-16  Richard Biener  <rguenther@suse.de>
6785         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6786         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6787         follow_ssa_edge.
6788         (follow_ssa_edge_in_condition_phi_branch): Likewise.
6789         (analyze_evolution_in_loop): Likewise.
6790         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6791         (follow_ssa_edge_expr): ... here.  Refactor code.
6793 2019-08-16  Richard Biener  <rguenther@suse.de>
6795         PR target/91469
6796         * config/i386/i386-features.c
6797         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6799 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6801         PR other/91255
6802         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6803         only if subst_name matches curr_attr string.
6805 2019-08-16  Richard Biener  <rguenther@suse.de>
6807         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6808         stmt at gsi_p, instead replace it with a NOP removed later.
6809         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6810         that became dead because of that.
6812 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
6814         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6815         for which we can't represent a range.
6816         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6817         set_varying.
6818         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6819         Set VR_UNDEFINED if type is not supported.
6820         * tree-ssanames.c (get_range_info): Pass type to set_varying.
6821         * tree-vrp.c (value_range_base::check): Assert that a varying has
6822         min/max set.
6823         (value_range_base::equal_p): Early bail for undefines.
6824         (value_range_base::set_varying): Accept a type.
6825         (value_range::set_varying): Same.
6826         (value_range_base::type): VARYING can have a type, while UNDEFINE
6827         is typeless.
6828         (value_range_base::dump): Print type for VARYING nodes.
6829         (value_range_base::set): Add type to VARYING.
6830         (extract_range_from_multiplicative_op): Pass type to set_varying.
6831         (extract_range_from_binary_expr): Same.
6832         (value_range_base::intersect_helper): Same.
6833         (value_range_base::union_helper): Same.
6834         (value_range_base::normalize_symbolics): Same.
6835         (determine_value_range_1): Same.
6836         * tree-vrp.h (class value_range_base): Add type to set_varying.
6837         Add prototype for dump(void).
6838         Add prototype for supports_type_p.
6839         (class value_range): Add type to set_varying.
6840         Add prototype for dump(void).
6841         * vr-values.c (set_value_range_to_truthvalue): Pass type to
6842         set_varying.
6843         (vr_values::get_lattice_entry): Set varying even if propagation
6844         finished.
6845         Pass type to set_varying.
6846         (vr_values::get_value_range): Remove vr_const_varying.
6847         Reallocate the lattice if needed.
6848         (vr_values::update_value_range): Pass type to set_varying.
6849         (vr_values::extract_range_for_var_from_comparison_expr): Same.
6850         (vr_values::extract_range_from_binary_expr): Same.
6851         (vr_values::extract_range_from_unary_expr): Same.
6852         (vr_values::extract_range_from_cond_expr): Same.
6853         (vr_values::check_for_binary_op_overflow): Same.
6854         (vr_values::extract_range_basic): Same.
6855         (vr_values::extract_range_from_assignment): Same.
6856         (vr_values::vr_values): Increase size of num_vr_values.
6857         (vr_values::extract_range_from_phi_node): Pass type to
6858         set_varying.
6860 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
6862         PR target/90878
6863         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
6864         for costs of hard register moves.
6865         (ix86_register_move_cost): Likewise.
6866         * config/i386/i386.h (processor_costs): Move costs of hard
6867         register moves to hard_register.  Add int_load, int_store,
6868         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6869         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
6870         for costs of RTL expressions.
6871         * config/i386/x86-tune-costs.h: Move costs of hard register
6872         moves to hard_register.  Duplicate int_load, int_store,
6873         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6874         sse_load, sse_store for costs of RTL expressions.
6876 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6878         * target.def (setup_incoming_vararg_bounds): Remove.
6879         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
6880         * doc/tm.texi: Regenerate.
6881         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
6882         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
6883         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6884         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6886 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6888         MSP430: Fix lines over 80 characters long in
6889         config/msp430/*.{c,h} files
6891         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
6892         specifier in string.
6893         (msp430_select_hwmult_lib): Split line more than 80 characters long.
6894         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
6895         redundant old comment.
6896         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
6897         Split line more than 80 characters long.
6898         * config/msp430/msp430.c (msp430_option_override): Likewise.
6899         (msp430_return_in_memory): Likewise.
6900         (msp430_gimplify_va_arg_expr): Likewise.
6901         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
6902         (msp430_legitimate_constant): Likewise.
6903         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
6904         (msp430_attr): Likewise.
6905         (msp430_data_attr): Likewise.
6906         (msp430_start_function): Likewise.
6907         (gen_prefix): Likewise.
6908         (msp430_init_sections): Likewise.
6909         (msp430_select_section): Likewise.
6910         (msp430_function_section): Likewise.
6911         (msp430_unique_section): Likewise.
6912         (msp430_output_aligned_decl_common): Likewise.
6913         (msp430_do_not_relax_short_jumps): Likewise.
6914         (msp430_init_builtins): Likewise.
6915         (msp430_expand_delay_cycles): Likewise.
6916         (msp430_expand_prologue): Likewise.
6917         (msp430_expand_epilogue): Likewise.
6918         (msp430_expand_helper): Likewise.
6919         (msp430_split_movsi): Likewise.
6920         (msp430_print_operand): Likewise.
6921         (msp430_return_addr_rtx): Likewise.
6922         (msp430x_extendhisi): Likewise.
6923         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
6924         (ASM_SPEC): Likewise.
6925         Remove very obvious comments.
6926         (LIB_SPEC): Split line more than 80 characters long.
6927         (EH_RETURN_HANDLER_RTX): Likewise.
6928         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6930 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6932         MSP430: Fix whitespace errors and incorrect indentation in
6933         config/msp430/*.{c,h} files
6935         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
6936         (msp430_select_hwmult_lib): Likewise.
6937         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
6938         (msp430_extract_mcu_data): Likewise.
6939         (struct t_msp430_mcu_data): Likewise.
6940         * config/msp430/msp430.c (struct machine_function): Remove whitespace
6941         before left square bracket.
6942         (msp430_option_override): Fix indentation.
6943         (msp430_hard_regno_nregs_with_padding): Likewise.
6944         (msp430_initial_elimination_offset): Likewise.
6945         (msp430_special_register_convention_p): Remove whitespace before left
6946         square bracket and after exclamation mark.
6947         (msp430_evaluate_arg): Likewise.
6948         (msp430_callee_copies): Fix indentation.
6949         (msp430_gimplify_va_arg_expr): Likewise.
6950         (msp430_function_arg_advance): Remove whitespace before left square
6951         bracket.
6952         (reg_ok_for_addr): Likewise.
6953         (msp430_preserve_reg_p): Likewise.
6954         (msp430_compute_frame_info): Likewise.
6955         (msp430_asm_output_addr_const_extra): Add space between function name
6956         and open parenthesis.
6957         (has_section_name): Fix indentation.
6958         (msp430_attr): Remove trailing whitespace.
6959         (msp430_section_attr): Likewise.
6960         (msp430_data_attr): Likewise.
6961         (struct msp430_attribute_table): Fix comment and whitespace.
6962         (msp430_start_function): Remove whitespace before left square bracket.
6963         Add space between function name and open parenthesis.
6964         (msp430_select_section): Remove trailing whitespace.
6965         (msp430_section_type_flags): Remove trailing whitespace.
6966         (msp430_unique_section): Remove space before closing parenthesis.
6967         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
6968         (msp430_builtins): Remove whitespace before left square bracket.
6969         (msp430_init_builtins): Fix indentation.
6970         (msp430_expand_prologue): Remove whitespace before left square bracket.
6971         Remove space before closing parenthesis.
6972         (msp430_expand_epilogue): Remove whitespace before left square bracket.
6973         (msp430_split_movsi): Remove space before closing parenthesis.
6974         (helper_function_name_mappings): Fix indentation.
6975         (msp430_use_f5_series_hwmult): Fix whitespace.
6976         (use_32bit_hwmult): Likewise.
6977         (msp430_no_hwmult): Likewise.
6978         (msp430_output_labelref): Remove whitespace before left square bracket.
6979         (msp430_print_operand_raw): Likewise.
6980         (msp430_print_operand_addr): Likewise.
6981         (msp430_print_operand): Add two spaces after '.' in comment.
6982         Fix trailing whitespace.
6983         (msp430x_extendhisi): Fix indentation.
6984         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
6985         tab.
6986         (PC_REGNUM): Likewise.
6987         (STACK_POINTER_REGNUM): Likewise.
6988         (CC_REGNUM): Likewise.
6990 2019-08-15  Richard Biener  <rguenther@suse.de>
6992         PR target/91454
6993         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
6994         helper.
6995         (general_scalar_chain::make_vector_copies): Use it.
6997 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6999         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7001 2019-08-15  Martin Liska  <mliska@suse.cz>
7003         * tree-ssa-dce.c (propagate_necessity): We can't reach now
7004         operators with no arguments.
7005         (eliminate_unnecessary_stmts): Likewise here.
7007 2019-08-15  Uroš Bizjak  <ubizjak@gmail.com>
7009         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7010         <case COMPARE>: Revert 2019-08-14 change.
7011         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
7012         for (TARGET_64BIT || mode != DImode).
7014 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
7016         * tree-vrp.c (value_range_base::set): Merge in code from
7017         value_range_base::set_and_canonicalize.
7018         Enforce canonicalization at set time.
7019         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7020         (value_range_base::set_undefined): Inline call to set().
7021         (value_range_base::set_varying): Same.
7022         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7023         (vrp_val_max): New argument handle_pointers.
7024         (vrp_val_min): Same.
7025         (ranges_from_anti_range): Same.
7026         (extract_range_into_wide_ints): Use tree argument instead of sign
7027         and precision.
7028         (extract_range_from_multiplicative_op): Take in tree type instead
7029         of precision and sign.  Adapt function for canonicalized ranges.
7030         (extract_range_from_binary_expr): Pass type to
7031         extract_range_from_multiplicative_op.
7032         Adapt for canonicalized ranges.
7033         (extract_range_from_unary_expr): Same.
7034         (value_range_base::intersect_helper): Adjust for canonicalized
7035         ranges.
7036         (value_range_base::union_helper): Same.
7037         (value_range_base::normalize_symbolics): New.
7038         * tree-vrp.h (class value_range_base): Remove
7039         set_and_canonicalize.
7040         New prototype for normalize_symbolics.
7041         (class value_range): Remove set_and_canonicalize.
7042         (vrp_val_min): Adjust prototype.
7043         (vrp_val_max): Same.
7044         * vr-values.c
7045         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
7046         instead of set_and_canonicalize.
7048 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7050         PR middle-end/91444
7051         * tree-vect-stmts.c (vectorizable_call): Check that the function
7052         is a BUILT_IN_MD function before passing it to
7053         targetm.vectorize.builtin_md_vectorized_function.
7055 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7057         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7058         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7059         (aarch64_select_early_remat_modes): Use it.
7061 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7063         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7064         16 for SVE predicates even if they are fixed-length.
7066 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7068         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7069         operand order match the MOV /Z alias.
7071 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7073         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7074         the vector pattern as an aarch64_svpattern argument.  Update the
7075         overloaded caller accordingly.
7076         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7077         (aarch64_output_sve_vector_inc_dec): Likewise.
7079 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7081         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7082         multiplication case, try to compute VG * (lowest set bit) directly
7083         rather than always basing the multiplication on VG.  Use
7084         expand_mult for the multiplication if we can.
7086 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7088         * config/aarch64/aarch64-protos.h
7089         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7090         (aarch64_sve_inc_dec_immediate_p): Rename to...
7091         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7092         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7093         (aarch64_output_sve_scalar_inc_dec): Declare.
7094         (aarch64_output_sve_inc_dec_immediate): Rename to...
7095         (aarch64_output_sve_vector_inc_dec): ...this.
7096         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7097         (aarch64_output_sve_scalar_inc_dec): New functions.
7098         (aarch64_output_sve_addvl_addpl): Remove the base and offset
7099         arguments.  Only handle true ADDVL and ADDPL instructions;
7100         don't emit an INC or DEC.
7101         (aarch64_sve_inc_dec_immediate_p): Rename to...
7102         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7103         (aarch64_output_sve_inc_dec_immediate): Rename to...
7104         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
7105         aarch64_sve_vector_inc_dec_immediate_p.
7106         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7107         (aarch64_sve_plus_immediate): New predicates.
7108         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7109         rather than aarch64_sve_addvl_addpl_immediate.
7110         (aarch64_sve_inc_dec_immediate): Rename to...
7111         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
7112         aarch64_sve_vector_inc_dec_immediate_p.
7113         (aarch64_sve_add_operand): Update accordingly.
7114         * config/aarch64/constraints.md (Uai): New constraint.
7115         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7116         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7117         operand into a register if it satisfies aarch64_sve_plus_immediate.
7118         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7119         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
7120         * config/aarch64/aarch64-sve.md (add<mode>3): Call
7121         aarch64_output_sve_vector_inc_dec instead of
7122         aarch64_output_sve_inc_dec_immediate.
7124 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7126         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7127         (UNSPEC_REVW): New constants.
7128         (elem_bits): New mode attribute.
7129         (SVE_INT_UNARY): New int iterator.
7130         (optab): Handle UNSPEC_REV[BHW].
7131         (sve_int_op): New int attribute.
7132         (min_elem_bits): Handle VNx16QI and the predicate modes.
7133         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7134         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7135         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7136         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7137         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7138         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7139         unspecs based on the total width of the reversed data.
7140         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
7141         reinterpret followed by a subreg on big-endian targets.
7143 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7144             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7146         * config/aarch64/aarch64-sve.md
7147         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7148         alternatives in which one of the inputs is in the same register
7149         as the output.
7151 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7153         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7154         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7156 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7158         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7159         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
7161 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7162             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7164         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7165         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7166         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7168 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7169             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7171         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7172         Add an alternative that uses reversed shifts.
7174 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7176         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7177         struct.
7179 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7181         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7182         a commutativity marker.
7184 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7185             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7187         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7188         (aarch64_prepare_sve_cond_int_fma): Declare.
7189         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7190         (aarch64_prepare_sve_int_fma): New functions.
7191         (aarch64_prepare_sve_cond_int_fma): Likewise.
7192         * config/aarch64/aarch64-sve.md
7193         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7194         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7195         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7196         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7197         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7198         (*madd<mode>): Rename to...
7199         (*fma<mode>4): ...this.
7200         (*msub<mode>): Rename to...
7201         (*fnma<mode>4): ...this.
7203 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7204             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7206         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7207         Print 2.0 naturally.
7208         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7209         * config/aarch64/predicates.md
7210         (aarch64_sve_float_negated_arith_immediate): New predicate,
7211         renamed from aarch64_sve_float_arith_with_sub_immediate.
7212         (aarch64_sve_float_arith_with_sub_immediate): Test for both
7213         positive and negative constants.
7214         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7215         or an aarch64_sve_float_arith_with_sub_immediate.
7216         * config/aarch64/constraints.md (vsN): Use
7217         aarch64_sve_float_negated_arith_immediate.
7218         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7219         iterator.
7220         (sve_pred_fp_rhs2_immediate): New int attribute.
7221         * config/aarch64/aarch64-sve.md
7222         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7223         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7224         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7225         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7226         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7227         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7229 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7230             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7232         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7233         (*aarch64_cond_abd<SVE_F:mode>_3)
7234         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7236 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7237             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7239         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7240         (*aarch64_cond_<su>abd<mode>_any): New patterns.
7242 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7243             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7245         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7246         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7247         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7248         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7249         optabs.
7250         * optabs.h (create_convert_operand_from): Expand comment.
7251         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7252         when mapping scalar rtxes to vector operands.
7253         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7254         ashiftrt and lshiftrt.
7255         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7256         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7257         (*cond_<optab><mode>_any_const): New patterns.
7259 2019-08-15  Martin Liska  <mliska@suse.cz>
7261         PR ipa/91438
7262         * cgraph.c (cgraph_node::remove): When setting
7263         n->origin = NULL for all nested functions, reset
7264         also next_nested.
7266 2019-08-15  Martin Liska  <mliska@suse.cz>
7268         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7269         and next_nested.
7271 2019-08-15  Martin Liska  <mliska@suse.cz>
7273         PR ipa/91404
7274         * passes.c (order): Remove.
7275         (uid_hash_t): Likewise).
7276         (remove_cgraph_node_from_order): Remove from set
7277         of pointers (cgraph_node *).
7278         (insert_cgraph_node_to_order): New.
7279         (duplicate_cgraph_node_to_order): New.
7280         (do_per_function_toporder): Register all 3 cgraph hooks.
7281         Skip removed_nodes now as we know about all of them.
7283 2019-08-14  Uroš Bizjak  <ubizjak@gmail.com>
7285         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7286         <case E_V8QImode>: Use vector_set path for
7287         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7288         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7289         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7291 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7293         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7295 2019-08-14  Martin Sebor  <msebor@redhat.com>
7297         PR tree-optimization/91294
7298         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7299         source length as exact.
7301 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
7303         * doc/extend.texi: Add "noinit" attribute documentation.
7304         * doc/sourcebuild.texi: Add noinit effective target documentation.
7305         * varasm.c (default_section_type_flags): Add support for "noinit"
7306         section.
7307         (default_elf_select_section): Add support for "noinit" attribute.
7308         * config/msp430/msp430.c (msp430_attribute_table): Remove
7309         "noinit" entry.
7311 2019-08-14  Richard Biener  <rguenther@suse.de>
7312             Uroš Bizjak  <ubizjak@gmail.com>
7314         PR target/91154
7315         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7316         mode arguments.
7317         (scalar_chain::smode): New member.
7318         (scalar_chain::vmode): Likewise.
7319         (dimode_scalar_chain): Rename to...
7320         (general_scalar_chain): ... this.
7321         (general_scalar_chain::general_scalar_chain): Take mode arguments.
7322         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7323         base with TImode and V1TImode.
7324         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7325         (general_scalar_chain::vector_const_cost): Adjust for SImode
7326         chains.
7327         (general_scalar_chain::compute_convert_gain): Likewise.  Add
7328         {S,U}{MIN,MAX} support.
7329         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7330         (general_scalar_chain::make_vector_copies): Likewise.  Handle
7331         non-DImode chains appropriately.
7332         (general_scalar_chain::convert_reg): Likewise.
7333         (general_scalar_chain::convert_op): Likewise.
7334         (general_scalar_chain::convert_insn): Likewise.  Add
7335         fatal_insn_not_found if the result is not recognized.
7336         (convertible_comparison_p): Pass in the scalar mode and use that.
7337         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
7338         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
7339         (scalar_to_vector_candidate_p): Remove by inlining into single
7340         caller.
7341         (general_remove_non_convertible_regs): Rename from
7342         dimode_remove_non_convertible_regs.
7343         (remove_non_convertible_regs): Remove by inlining into single caller.
7344         (convert_scalars_to_vector): Handle SImode and DImode chains
7345         in addition to TImode chains.
7346         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7347         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7348         (*<maxmin>di3_doubleword): Likewise.
7350 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7351             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7353         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7354         (*cond_bic<mode>_any): New patterns.
7356 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7358         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7359         take the equivalent mask, as well as a bit count.
7360         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7361         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7362         (aarch64_sve_pred_and_operand): New predicates.
7363         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7364         code attribute.
7365         * config/aarch64/aarch64-sve.md
7366         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7367         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7369 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7371         * config/aarch64/aarch64-sve.md
7372         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7373         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7374         New patterns.
7376 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7377             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7379         * config/aarch64/aarch64-sve.md
7380         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7381         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7383 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7384             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7386         * config/aarch64/aarch64-sve.md
7387         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7388         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7390 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7392         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7393         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7394         New pattern.
7396 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7397             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7399         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7401 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7402             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7404         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7405         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7406         (aarch64_print_operand): Add support for %I.
7407         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7408         Bitcast floating-point constants to the corresponding integer constant.
7409         (aarch64_float_const_representable_p): Handle vectors as well
7410         as scalars.
7411         (aarch64_expand_sve_vcond): Make sure that the operands are valid
7412         for the new vcond_mask_<mode><vpred> expander.
7413         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7414         test aarch64_float_const_representable_p.
7415         (aarch64_sve_reg_or_dup_imm): New predicate.
7416         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7417         gen_vcond_mask_<mode><vpred> instead of
7418         gen_aarch64_sve_dup<mode>_const.
7419         (vcond_mask_<mode><vpred>): Turn into a define_expand that
7420         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7421         for operands 1 and 2 respectively.  Force operand 2 into a
7422         register if operand 1 is a register.  Fold old define_insn...
7423         (aarch64_sve_dup<mode>_const): ...and this define_insn...
7424         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
7425         floating-point constants that can be moved as integers.  Add
7426         alternatives for MOV /M and FMOV /M.
7427         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7428         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7429         1 and 2 respectively.
7430         * config/aarch64/constraints.md (Ufc): Handle vectors as well
7431         as scalars.
7432         (vss): New constraint.
7434 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7436         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7437         (aarch64_sve_float_maxmin_operand): New predicates.
7438         * config/aarch64/constraints.md (vsB): New constraint.
7439         (vsM): Fix typo.
7440         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7441         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7442         UNSPEC_COND_FMINNM.
7443         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7444         Use aarch64_sve_float_maxmin_operand for operand 2.
7445         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7446         Add alternatives for the constant forms.
7448 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7450         * config/aarch64/constraints.md (vsb): New constraint.
7451         (vsm): Generalize description.
7452         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7453         iterator.
7454         (sve_imm_con): Handle smax, smin, umax and umin.
7455         (sve_imm_prefix): New code attribute.
7456         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7457         (aarch64_sve_vsb_operand): New predicates.
7458         (aarch64_sve_mul_immediate): Rename to...
7459         (aarch64_sve_vsm_immediate): ...this.
7460         (aarch64_sve_mul_operand): Rename to...
7461         (aarch64_sve_vsm_operand): ...this.
7462         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7463         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7464         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7465         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7466         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7467         add movprfx support for the immediate alternatives.
7468         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7469         of the above.
7470         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7471         for operand 3.
7473 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7475         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7476         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7477         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7479 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7481         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7482         (optab, sve_int_op): Handle them.
7483         * config/aarch64/aarch64-sve.md: Expand comment.
7485 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7487         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7488         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7489         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7491 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7493         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7494         (aarch64_expand_sve_const_pred_trn): New functions.
7495         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7496         use the above functions when the parameter is true.
7497         (aarch64_expand_sve_const_pred): Update call accordingly.
7498         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7499         Rename to...
7500         (@aarch64_sve_<perm_insn><mode>): ...this.
7502 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7504         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7505         Declare.
7506         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7507         (aarch64_sve_emit_int_cmp): New functions.
7508         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7509         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7510         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7511         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7512         (UNSPEC_PRED_Z): New unspec.
7513         (set_clobber_cc_nzc): Delete.
7514         * config/aarch64/aarch64-sve.md: Add a block comment about
7515         UNSPEC_PRED_Z.
7516         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7517         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7518         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
7519         UNSPEC_MERGE_PTRUE.
7520         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7521         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
7522         check for compatible predicates.
7523         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7524         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7525         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
7526         comparisons above.
7528 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7530         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7531         * config/aarch64/aarch64-sve.md: Add a section describing it.
7532         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7533         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7534         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7535         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7536         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7537         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7538         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7539         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7540         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7541         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7542         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7543         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7544         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7545         (aarch64_evpc_rev_local): Update accordingly.
7547 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7549         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7550         iterators.
7551         (SVE_BHSI, SVE_SDI): Tweak comment.
7552         (SVE_HSDI): Likewise.  Fix definition.
7553         (SVE_SDF): New mode iterator.
7554         (elem_bits): New mode attribute.
7555         (SVE_COND_FCVT): New int iterator.
7556         * config/aarch64/aarch64-sve.md
7557         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7558         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7559         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7560         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7561         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7562         ...these new patterns.
7563         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7564         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7565         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7566         Merge into...
7567         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7568         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7569         ...these new patterns.
7570         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7571         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7572         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7573         ...this new pattern.
7574         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7575         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7576         ...this new pattern.
7577         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7579 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7581         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7582         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7583         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7584         unspecs.
7585         (optab, su): Handle them.
7586         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7587         * config/aarch64/aarch64-sve.md
7588         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7589         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7590         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7591         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7592         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7593         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7594         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7595         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7596         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7597         FIXUORS.
7598         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7599         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7600         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7601         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7602         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7603         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7604         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7605         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7606         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7607         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7608         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7609         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7610         of UNSPEC_FLOAT_CONVERT.
7611         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7612         aarch64_sve_extend<mode><Vwide>2.
7614 2019-08-14  Richard Biener  <rguenther@suse.de>
7616         PR target/91154
7617         * config/i386/i386-features.c
7618         (dimode_scalar_chain::compute_convert_gain): Compute and dump
7619         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
7620         ix86_cost->sse_op for vector instruction costs.
7622 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7624         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7625         (cmp_op): Handle it.
7626         (SVE_COND_FP_CMP): Rename to...
7627         (SVE_COND_FP_CMP_I0): ...this.
7628         (SVE_FP_CMP): Remove.
7629         * config/aarch64/aarch64-sve.md
7630         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7631         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7632         using unspecs to represent the comparison.
7633         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7634         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7635         accordingly.
7636         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7637         (aarch64_unspec_cond_code): Move after integer code.  Handle
7638         UNORDERED.
7639         (aarch64_emit_sve_predicated_cond): Replace with...
7640         (aarch64_emit_sve_fp_cond): ...this new function.
7641         (aarch64_emit_sve_or_conds): Replace with...
7642         (aarch64_emit_sve_or_fp_conds): ...this new function.
7643         (aarch64_emit_sve_inverted_cond): Replace with...
7644         (aarch64_emit_sve_invert_fp_cond): ...this new function.
7645         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7647 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7649         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7650         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7651         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7652         SVE_HSD instead of SVE_SD.
7654 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7655             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7657         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7658         iterator.
7659         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7660         attributes.
7661         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7662         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7663         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7664         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7665         (*div<SVE_F:mode>3): Generalize to...
7666         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7668 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7669             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7671         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7672         constants.
7673         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7674         predicate.
7675         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7676         Declare.
7677         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7678         function.
7679         * config/aarch64/aarch64-sve.md: Add a block comment about the
7680         handling of predicated FP operations.
7681         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7682         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7683         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7684         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7685         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7686         operand.
7687         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7688         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7689         operand.
7690         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7691         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7692         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7693         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7694         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7695         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7696         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7697         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7698         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7699         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7700         strictness operands.  Use aarch64_sve_pred_dominates_p to check
7701         whether the predicate on the conditional operation is suitable
7702         for merging.  Split patterns into the canonical equal-predicate form.
7703         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7704         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7706 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7707             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7709         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7710         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7711         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7712         rtx codes.
7713         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7714         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7715         unspecs.
7717 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7718             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7720         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7721         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
7722         actually has, rather than relying on REG_EQUAL notes.
7723         Make the insn operand order match the SVE operand order.
7724         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7725         the SVE operand order.
7727 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7729         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7730         (aarch64_emit_set_immediate): Likewise.
7731         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7732         (aarch64_pfalse_reg): Likewise.
7733         (aarch64_convert_sve_data_to_pred): New function.
7734         (aarch64_sve_move_pred_via_while): Take an optional target register
7735         and the required register mode.
7736         (aarch64_expand_sve_const_pred_1): New function.
7737         (aarch64_expand_sve_const_pred): Likewise.
7738         (aarch64_expand_mov_immediate): Build an all-true predicate
7739         if the significant bits of the immediate are all true.  Use
7740         aarch64_expand_sve_const_pred for all compile-time predicate constants.
7741         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7742         before register allocation.
7743         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7744         a VNx16BI PTRUE when splitting the memory alternative.
7745         (vec_duplicate<mode>): Update accordingly.
7746         (*pred_cmp<cmp_op><mode>): Rename to...
7747         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7749 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7751         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7752         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7753         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7754         (UNSPEC_PTEST): New unspec.
7755         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7756         * config/aarch64/iterators.md (data_bytes): New mode attribute.
7757         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7758         * config/aarch64/aarch64-sve.md: Add a new section describing the
7759         handling of UNSPEC_PTEST.
7760         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7761         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7762         (ptest_ptrue<mode>): Replace with...
7763         (aarch64_ptest<mode>): ...this new pattern.
7764         (cbranch<mode>4): Update after above changes.
7765         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7766         UNSPEC_PTEST_PTRUE.
7767         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7768         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7769         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7771 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
7773         PR lto/91287
7774         * builtins.c (builtin_with_linkage_p): New function.
7775         * builtins.h (builtin_with_linkage_p): New function.
7776         * symtab.c (write_symbol): Remove redundant assert.
7777         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7778         Remove FIXME and use builtin_with_linkage_p.
7780 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7782         PR middle-end/91421
7783         * tree-core.h (function_decl::function_code): Change type to
7784         unsigned int.
7785         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7786         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7787         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7788         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
7789         is BUILT_IN_NORMAL.
7790         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7791         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7792         (fndecl_built_in_p): Change the type of the "name" argument to
7793         unsigned int.
7794         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7795         after check for DECL_BUILT_IN_CLASS.
7796         * cgraphclones.c (build_function_decl_skip_args): Use
7797         set_decl_built_in_function.
7798         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7799         * ipa-split.c (split_function): Likewise.
7800         * langhooks.c (add_builtin_function_common): Likewise.
7801         * omp-simd-clone.c (simd_clone_create): Likewise.
7802         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7803         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7804         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7805         DECL_FUNCTION_CODE.
7806         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7807         instead of DECL_FUNCTION_CODE.
7808         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7809         instead of DECL_FUNCTION_CODE.
7810         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7811         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7812         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
7813         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7814         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7815         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7816         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7817         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7818         (alpha_gimple_fold_builtin): Likewise.
7819         * config/arc/arc.c (arc_expand_builtin): Likewise.
7820         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7821         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7822         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7823         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7824         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7825         * config/frv/frv.c (frv_expand_builtin): Likewise.
7826         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7827         (gcn_expand_builtin): Likewise.
7828         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7829         (fold_builtin_cpu): Likewise.
7830         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7831         * config/i386/i386.c (ix86_fold_builtin): Likewise.
7832         (ix86_gimple_fold_builtin): Likewise.
7833         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7834         (ia64_expand_builtin): Likewise.
7835         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7836         * config/mips/mips.c (mips_expand_builtin): Likewise.
7837         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7838         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7839         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7840         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7841         * config/pa/pa.c (pa_expand_builtin): Likewise.
7842         * config/pru/pru.c (pru_expand_builtin): Likewise.
7843         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7844         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7845         Likewise.
7846         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7847         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7848         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7849         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7850         (rs6000_builtin_reciprocal): Likewise.
7851         * config/rx/rx.c (rx_expand_builtin): Likewise.
7852         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7853         * config/s390/s390.c (s390_expand_builtin): Likewise.
7854         * config/sh/sh.c (sh_expand_builtin): Likewise.
7855         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7856         (sparc_fold_builtin): Likewise.
7857         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7858         * config/spu/spu.c (spu_expand_builtin): Likewise.
7859         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
7860         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
7861         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
7862         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7863         (xtensa_expand_builtin): Likewise.
7865 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7867         PR middle-end/91421
7868         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
7869         before the DECL_FUNCTION_CODE.
7870         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
7871         to check for a BUILT_IN_ALLOCA call.
7872         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
7873         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
7874         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
7875         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7876         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
7877         for BUILT_IN_NORMAL functions.
7878         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
7879         test for BUILT_IN_TM_ABORT.
7880         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
7881         to check for a BUILT_IN_STACK_RESTORE call.
7882         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
7883         * tree-ssa-threadedge.c
7884         (record_temporary_equivalences_from_stmts_at_dest): Check for a
7885         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
7886         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
7887         test for a BUILT_IN_NORMAL call instead of a negative test for
7888         an internal function call.
7890 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7892         * tree.h (build_vector_a_then_b): Declare.
7893         * tree.c (build_vector_a_then_b): New function.
7894         * fold-const-call.c (fold_while_ult): Likewise.
7895         (fold_const_call): Use it to handle IFN_WHILE_ULT.
7896         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
7897         (aarch64_svpattern): New enum.
7898         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
7899         constants through aarch64_expand_mov_immediate.
7900         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
7901         than general_operand as the predicate for operand 1.
7902         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
7903         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
7904         insn_type.
7905         (simd_immediate_info::simd_immediate_info): New overload that
7906         takes a scalar_int_mode and an svpattern.
7907         (simd_immediate_info::u): Add a "pattern" field.
7908         (svpattern_token): New function.
7909         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
7910         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
7911         (aarch64_sve_move_pred_via_while): New functions.
7912         (aarch64_expand_mov_immediate): Try using
7913         aarch64_sve_move_pred_via_while for predicates that contain N ones
7914         followed by M zeros but that do not correspond to a VLnnn pattern.
7915         (aarch64_sve_pred_valid_immediate): New function.
7916         (aarch64_simd_valid_immediate): Use it instead of dealing directly
7917         with PTRUE and PFALSE.
7918         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
7919         forms.
7921 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
7923         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
7924         flag.
7925         (darwin_override_options): Likewise.
7926         * config/darwin.h: Likewise.
7927         * config/darwin.opt: Likewise.
7928         * config/i386/i386.c (output_pic_addr_const): Likewise.
7929         * config/rs6000/darwin.h: Likewise.
7930         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
7931         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
7932         ... this TARGET_MACHO_SYMBOL_STUBS.
7933         (FUNCTION_PROFILER):Likewise.
7934         * config/i386/i386.h: Likewise.
7936 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
7938         * config/i386/i386-expand.c (ix86_expand_vector_extract)
7939         <case E_V2SImode>: Use vec_extr path for
7940         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7941         <case E_V8QImode>: Ditto.
7942         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
7943         Use SWI48 mode iterator.  Use %k to output operand 0.
7944         (*mmx_pextrw): New insn pattern.
7945         (*mmx_pextrb): Ditto.
7946         (*mmx_pextrb_zext): Ditto.
7948 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
7950         * target.def (libc_has_function, libc_has_fast_function): Improve
7951         documentation strings.
7952         * doc/tm.texi: Regenerate.
7954 2019-08-13  Caroline Tice  <cmtice@google.com>
7956         PR other/91396
7957         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
7958         vtv_end.o or vtv_end_preinit.o files if !static.
7960 2019-08-13  Olivier Hainque  <hainque@adacore.com>
7962         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
7964 2019-08-13  Olivier Hainque  <hainque@adacore.com>
7966         * rtlanal.c (tablejump_casesi_pattern): New function, to
7967         determine if a tablejump insn is a casesi dispatcher. Extracted
7968         from patch_jump_insn.
7969         * rtl.h (tablejump_casesi_pattern): Declare.
7970         * cfgrtl.c (patch_jump_insn): Use it.
7971         * dwarf2cfi.c (create_trace_edges): Use it.
7973 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
7975         PR target/81800
7976         * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
7977         operand is larger than a long int.
7979 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7981         * machmode.h (opt_mode::else_mode): New function.
7982         (opt_mode::else_blk): Use it.
7983         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
7984         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
7985         (aarch64_gen_stepped_int_parallel): Likewise.
7986         (aarch64_stepped_int_parallel_p): Likewise.
7987         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7988         argument.
7989         * config/aarch64/aarch64.c
7990         (aarch64_expand_sve_widened_duplicate): Delete.
7991         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
7992         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
7993         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7994         argument.  Use early returns in the !CONST_INT_P handling.
7995         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
7996         than handling some inline.
7997         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
7998         from...
7999         (aarch64_simd_container_mode): ...here.
8000         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8001         (aarch64_sve_ld1rq_operand_p): New functions.
8002         * config/aarch64/predicates.md (descending_int_parallel)
8003         (aarch64_sve_ld1rq_operand): New predicates.
8004         * config/aarch64/constraints.md (UtQ): New constraint.
8005         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8006         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8007         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8008         (@aarch64_sve_reinterpret<mode>): New expander.
8009         (*aarch64_sve_reinterpret<mode>): New pattern.
8010         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8011         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8012         (*sve_ld1rq<Vesize>): Replace with...
8013         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8015 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
8017         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8018         16:12.
8020 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8022         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8023         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8024         (msp430_check_path_for_devices): New.
8025         (parse_devices_csv_1): New.
8026         (parse_devices_csv): New.
8027         (msp430_extract_mcu_data): Try to find devices.csv and search for the
8028         MCU data in devices.csv before using the hard-coded data.
8029         Warn if devices.csv isn't found and the MCU wasn't found in the
8030         hard-coded data either.
8031         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8032         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8033         Search for devices.csv on -I and -L paths.
8034         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8035         msp430_set_driver_var.
8036         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8037         -mdevices-csv-loc=.
8038         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8039         searched for devices.csv.
8040         (mwarn-devices-csv): Document option.
8042 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8044         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8045         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8046         Use a single Dn alternative instead of separate Dz and Dm
8047         alternatives.  Use aarch64_output_sve_move_immediate.
8048         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8049         function.
8050         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8051         for predicates too.
8052         (aarch64_output_sve_mov_immediate): Handle predicate modes.
8053         (aarch64_output_ptrue): Delete.
8055 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8057         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8058         INDEX.
8059         (simd_immediate_info::value, simd_immediate_info::step)
8060         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8061         with...
8062         (simd_immediate_info::u): ...this new union.
8063         (simd_immediate_info::simd_immediate_info): Update accordingly.
8064         (aarch64_output_simd_mov_immediate): Likewise.
8065         (aarch64_output_sve_mov_immediate): Likewise.
8067 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8069         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8070         extra_gcc_objs.
8071         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8072         (msp430_select_cpu): New spec function.
8073         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8074         MCU data.
8075         * config/msp430/msp430-devices.c: New file.
8076         * config/msp430/msp430-devices.h: New file.
8077         * config/msp430/msp430.c: Remove msp430_mcu_data.
8078         (msp430_option_override): Use msp430_extract_mcu_data to extract
8079         MCU data.
8080         (msp430_use_f5_series_hwmult): Likewise.
8081         (use_32bit_hwmult): Likewise.
8082         (msp430_no_hwmult): Likewise.
8083         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8084         assembler.
8085         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8086         and -mcpu option.
8087         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8088         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8089         Remove hard-coded MCU multilib data.
8091 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8093         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8094         based on the mode instead of testing properties of it.
8096 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8098         * doc/md.texi: Document the x and y constraints for AArch64.
8099         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8100         (FP_LO8_REGS): New reg_class.
8101         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8102         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8103         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8104         * config/aarch64/predicates.md (aarch64_simd_register): Use
8105         FP_REGNUM_P instead of checking the classes manually.
8106         * config/aarch64/constraints.md (y): New constraint.
8108 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8110         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8111         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8112         * config/aarch64/aarch64-simd.md
8113         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8114         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8115         from the asm template.
8116         * config/aarch64/aarch64-sve.md
8117         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8118         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8119         from the asm template.
8120         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8121         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8122         from the asm template.
8123         * config/aarch64/aarch64-simd-builtins.def: Update comment.
8125 2019-08-13  Martin Liska  <mliska@suse.cz>
8127         * value-prof.c (gimple_ic_transform): Add new line.
8128         Print details with MSG_NOTE.
8130 2019-08-13  Martin Liska  <mliska@suse.cz>
8132         * doc/invoke.texi: Document automatic detection of jobserver.
8133         * lto-wrapper.c (run_gcc): Detect jobserver always.
8135 2019-08-13  Uroš Bizjak  <ubizjak@gmail.com>
8137         * config/i386/i386-expand.c (ix86_expand_vector_set)
8138         <case E_V2SImode>: Use vec_merge path for
8139         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8140         <case E_V8QImode>: Ditto.
8141         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8142         (*mmx_pinsrb): Ditto.
8144 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
8146         PR target/83250
8147         PR target/91340
8148         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8149         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8150         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8151         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8152         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8154 2019-08-12  Richard Biener  <rguenther@suse.de>
8156         PR lto/91375
8157         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8158         flag_devirtualize.
8160 2019-08-12  Richard Biener  <rguenther@suse.de>
8162         PR driver/91130
8163         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8164         lang_mask option, always use CL_DRIVER.
8165         (get_options_from_collect_gcc_options): Adjust.
8166         (find_and_merge_options): Likewise.
8167         (run_gcc): Likewise.
8169 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8171         * ipa-predicate.c (add_condition): Restore inverted test.
8173 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
8175         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8176         (enum omp_clause_device_type_kind): New enum.
8177         (struct tree_omp_clause): Add subcode.device_type_kind.
8178         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8179         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8180         for device_type clause.
8181         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8182         * tree-pretty-print.c (dump_omp_clause): Likewise.
8184         PR target/91408
8185         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8186         vector_operand.
8188 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
8190         * reload1.c (finish_spills): Do not check ira_conflicts_p when
8191         handling spilled pseudos.
8193 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
8195         PR target/91386
8196         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8197         to preserve the contents of the original insns.
8199 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
8201         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8202         (addsi3_compare_op2): Likewise.
8204 2019-08-09  Martin Liska  <mliska@suse.cz>
8206         * alias.c (alias_ptr_types_compatible_p): Strengten
8207         type comparison in LTO mode.
8209 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
8211         PR middle-end/90313
8212         * tree-tailcall.c (find_tail_calls): Reject calls that might
8213         read from an escaped RESULT_DECL.
8215 2019-08-09  Martin Liska  <mliska@suse.cz>
8217         * doc/invoke.texi: Document the option value.
8218         * lto-wrapper.c (run_gcc): Set auto_parallel
8219         only with -flto=auto.
8221 2019-08-09  Martin Liska  <mliska@suse.cz>
8223         * opts.c (common_handle_option): Error for an invalid argument
8224         to -flto=.
8226 2019-08-09  Martin Liska  <mliska@suse.cz>
8228         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8229         use dump_printf to report optimization.
8230         (sem_variable::merge): Likwise.
8231         (sem_item_optimizer::merge_classes): Use dump_printf to report
8232         ICF hits.
8234 2019-08-09  Martin Liska  <mliska@suse.cz>
8236         * value-prof.c (gimple_divmod_fixed_value_transform):
8237         Use dump_printf_loc.
8238         (gimple_mod_pow2_value_transform): Likewise.
8239         (gimple_mod_subtract_transform): Likewise.
8240         (init_node_map): Likewise.
8241         (gimple_ic_transform): Likewise.
8242         (gimple_stringops_transform): Likewise.
8244 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8246         * doc/extend.texi: Add const qualifier to ld intrinsics.
8248 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8250         * config/rs6000/dfp.md (D64_D128): Rename to ...
8251         (DDTD): ... this, throughout.
8252         (dfp_suffix): Rename to ...
8253         (q): ... this, throughout.
8255 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8257         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8258         (dfp_suffix): Ditto.
8259         (adddd3, addtd3): Merge to ...
8260         (add<mode>3 for D64_D128): ... this.
8261         (subdd3, subtd3): Merge to ...
8262         (sub<mode>3 for D64_D128): ... this.
8263         (muldd3, multd3): Merge to ...
8264         (mul<mode>3 for D64_D128): ... this.
8265         (divdd3, divtd3): Merge to ...
8266         (div<mode>3 for D64_D128): ... this.
8267         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8268         (*cmp<mode>_internal1 for D64_D128): ... this.
8269         (ftruncdd2, ftrunctd2): Merge to ...
8270         (ftrunc<mode>2 for D64_D128): ... this.
8271         (fixdddi2, fixtddi2): Merge to ...
8272         (fix<mode>di2 for D64_D128): ... this.
8274 2019-08-08  Jim Wilson  <jimw@sifive.com>
8276         PR target/91229
8277         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8278         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
8279         Pass into recursive call.
8280         (riscv_flatten_aggregate_argument): New arg.  Pass to
8281         riscv_flatten_aggregate_field.
8282         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
8283         riscv_flatten_aggregate_argument twice, with false and true as last
8284         arg.  Process result twice.  Compare results and warn if different.
8285         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8287 2019-08-08  Martin Liska  <mliska@suse.cz>
8289         PR bootstrap/91352
8290         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8291         * lto-wrapper.c (jobserver_active_p): Likewise.
8293 2019-08-08  Martin Liska  <mliska@suse.cz>
8295         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8296         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8297         (create_version_clone_with_body): Likewise.
8299 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8301         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8302         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8303         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8304         GOVD_EXPLICIT flags.
8305         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8306         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8307         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8308         call install_var_field with mask 11 instead of 3.
8309         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8310         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8312 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8314         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8315         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8317 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8319         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8320         MOVPRFX alternatives.  Make the GPR alternatives more expensive
8321         than the FPR ones.
8323 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8325         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8326         Disparage the GPR alternative relative to the FPR one.
8327         Fix handling of 8-bit and 16-bit FPR values.
8329 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8331         * config/aarch64/iterators.md (BITWISEV): Delete.
8332         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8333         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8334         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8335         UNSPEC_FMINNMV, UNSPEC_FMINV.
8336         (bit_reduc_op): Delete.
8337         (sve_int_op): New int attribute.
8338         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8339         UNSPEC_FMINNMV, UNSPEC_FMINV.
8340         * config/aarch64/aarch64-sve.md
8341         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8342         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8343         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8344         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8345         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8346         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8347         new patterns.
8348         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8349         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8350         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8351         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8352         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8353         new patterns.
8355 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8357         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8358         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8359         (fms<mode>4, *fms<mode>4): Replace with...
8360         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8361         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8362         Use unspecs instead of rtx codes.
8363         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8364         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8366 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8368         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8369         int iterator.
8370         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8371         * config/aarch64/aarch64-sve.md
8372         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8373         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8374         use a single unspec for the rhs.
8375         (*<su><maxmin><mode>3): Delete.
8376         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8378 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8380         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8381         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8382         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8383         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8384         (optab, sve_fp_op): Handle them.
8385         (SVE_FP_UNARY): Delete.
8386         (optab): Remove sqrt entry.
8387         (sve_fp_op): Remove neg, abs and sqrt entries.
8388         (SVE_COND_FP_UNARY): New int iterator.
8389         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8390         (*<frint_pattern><mode>2): Delete.
8391         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8392         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8393         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8394         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8396 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8398         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8400 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8402         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8403         (UNSPEC_COND_FADD): ...this.
8404         (UNSPEC_COND_SUB): Rename to...
8405         (UNSPEC_COND_FSUB): ...this.
8406         (UNSPEC_COND_MUL): Rename to...
8407         (UNSPEC_COND_FMUL): ...this.
8408         (UNSPEC_COND_DIV): Rename to...
8409         (UNSPEC_COND_FDIV): ...this.
8410         (UNSPEC_COND_MAX): Rename to...
8411         (UNSPEC_COND_FMAXNM): ...this.
8412         (UNSPEC_COND_MIN): Rename to...
8413         (UNSPEC_COND_FMINNM): ...this.
8414         (UNSPEC_COND_LT): Rename to...
8415         (UNSPEC_COND_FCMLT): ...this.
8416         (UNSPEC_COND_LE): Rename to...
8417         (UNSPEC_COND_FCMLE): ...this.
8418         (UNSPEC_COND_EQ): Rename to...
8419         (UNSPEC_COND_FCMEQ): ...this.
8420         (UNSPEC_COND_NE): Rename to...
8421         (UNSPEC_COND_FCMNE): ...this.
8422         (UNSPEC_COND_GE): Rename to...
8423         (UNSPEC_COND_FCMGE): ...this.
8424         (UNSPEC_COND_GT): Rename to...
8425         (UNSPEC_COND_FCMGT): ...this.
8426         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8427         (sve_fp_op_rev): Update accordingly.
8428         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8430 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8432         * config/aarch64/aarch64-sve.md: Reorganize contents and add
8433         banner comments.
8434         * config/aarch64/check-sve-md.awk: New file.
8435         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8436         (insn-conditions.md): Depend on it.
8438 2019-08-07  Uroš Bizjak  <ubizjak@gmail.com>
8440         PR target/91385
8441         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8442         (*negsi2_cmpz_zext): Ditto.
8444 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8446         * config/aarch64/iterators.md (commutative): Remove.
8448 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
8450         PR driver/91130
8451         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8452         processing COLLECT_GCC_OPTIONS.
8453         (run_gcc): Likewise.
8455 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8457         PR tree-optimization/91109
8458         * lra-remat.c (update_scratch_ops): Remove assignment of the
8459         hard register.
8461 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8463         * data-streamer.h (streamer_write_poly_uint64): Declare.
8464         (streamer_read_poly_uint64): Likewise.
8465         * data-streamer-in.c (streamer_read_poly_uint64): New function.
8466         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8467         * ipa-predicate.h (condition::size): Turn into a poly_int64.
8468         (add_condition): Take a poly_int64 size.
8469         * ipa-predicate.c (add_condition): Likewise.
8470         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8471         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8472         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8473         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8474         condition::size as a poly_int64.
8475         (unmodified_parm_1): Take a poly_int64 size pointer.
8476         (unmodified_parm): Likewise.
8477         (unmodified_parm_or_parm_agg_item): Likewise.
8478         (set_cond_stmt_execution_predicate): Update accordingly.
8479         (set_switch_stmt_execution_predicate): Likewise.
8480         (will_be_nonconstant_expr_predicate): Likewise.
8481         (will_be_nonconstant_predicate): Likewise.
8482         (inline_read_section): Stream condition::size as a poly_int.
8483         (ipa_fn_summary_write): Likewise.
8485 2019-08-07  Martin Liska  <mliska@suse.cz>
8487         * fold-const.c (twoval_comparison_p): Replace int
8488         with bool as a return type.
8489         (simple_operand_p): Likewise.
8490         (operand_equal_p): Replace int with bool as a return type.
8491         * fold-const.h (operand_equal_p): Likewise.
8493 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8495         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8496         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8497         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8498         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8499         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8500         * tree-pretty-print.c (dump_omp_clause): Likewise.
8501         * tree-nested.c (convert_nonlocal_omp_clauses,
8502         convert_local_omp_clauses): Likewise.
8503         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8504         Likewise.
8505         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8506         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8507         clause with array or reference to array types, no matter what type
8508         except for reference it has.
8510 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
8512         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8514 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
8516         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8517         (arch_canonicalize): Support rv32g and rv64g and fix error
8518         handling.
8520 2019-08-06  Martin Liska  <mliska@suse.cz>
8522         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8523         and DECL_IS_OPERATOR_DELETE_P.
8525 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8527         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8528         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
8529         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8530         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8531         (gimplify_omp_for): Don't do C++ random access iterator clause
8532         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
8533         don't predetermine the artificial iterator in case of C++ random
8534         access iterators as lastprivate, but private.  For OMP_LOOP, force
8535         bind expr around simd body and force for_pre_body before the
8536         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8537         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8538         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8539         diff var of C++ random access iterators.  Handle
8540         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8541         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8542         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8543         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8544         * omp-low.c (lower_rec_input_clauses): For
8545         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8546         variables instead of default constructing them.
8547         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8548         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8549         is_taskloop_ctx check from the assert to the guarding condition.
8551 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
8553         * config/riscv/multilib-generator: (canonical_order): New.
8554         (arch_canonicalize): Dito.
8555         Apply arch_canonicalize for alts.
8557 2019-08-05  Martin Sebor  <msebor@redhat.com>
8559         * doc/extend.texi (Common Variable Attributes): Document alias
8560         attribute.
8562 2019-08-05  Marek Polacek  <polacek@redhat.com>
8564         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8565         * doc/invoke.texi: Document -Wcomma-subscript.
8567 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8569         * tree-core.h (tree_function_decl): Make function_code an
8570         independent field.  Group the remaining bitfields into bytes
8571         and move decl_type so that it contines to be at a byte boundary.
8572         Leave 12 bits for future expansion.
8574 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8576         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8577         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8578         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8579         IFN_MASK_STORE.
8581 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8583         * gimple.h (gimple_move_vops): Declare.
8584         * gimple.c (gimple_move_vops): New function
8585         * gimple-fold.c (replace_call_with_call_and_fold)
8586         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8587         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8588         (gimple_fold_call): Use it.
8589         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8590         * tree-call-cdce.c (use_internal_fn): Likewise.
8591         * tree-if-conv.c (predicate_load_or_store): Likewise.
8592         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8593         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8594         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8595         (update_call_from_tree): Likewise.
8596         * tree-vect-stmts.c (vectorizable_load): Likewise.
8597         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8599 2019-08-05  Martin Liska  <mliska@suse.cz>
8601         PR c++/91334
8602         * tree-ssa-dce.c (propagate_necessity): Handle new operators
8603         with not arguments.
8604         (eliminate_unnecessary_stmts): Likewise.
8606 2019-08-05  Richard Biener  <rguenther@suse.de>
8608         PR middle-end/91169
8609         * fold-const.c (get_array_ctor_element_at_index): Create
8610         offset_ints according to the sign of the index type and treat
8611         that as signed if it is obviously so.
8613 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
8615         PR target/91341
8616         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8617         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8618         _mm256_storeu2_m128i): New function.
8620 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
8622         * config/riscv/riscv.c (riscv_promote_function_mode): New.
8623         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8625 2019-08-05  Alan Modra  <amodra@gmail.com>
8627         PR target/91349
8628         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8629         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8631 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
8633         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8634         bug that was fixed in Tcl 8.6.1.
8636 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
8638         * config/rs6000/future.md: New file.
8639         * config/rs6000/rs6000.md: Include future.md.
8640         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8642 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8644         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8645         check to use targetm.slow_unaligned_access instead.
8647         * function.c (assign_param_data_one): Remove unused data members.
8649 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
8651         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8652         build_distinct_type_copy.
8653         (simd_clone_adjust_argument_types): Ditto.
8654         (simd_clone_adjust): Call build_distinct_type_copy here.
8655         (expand_simd_clones): Ditto.
8657 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
8659         PR target/91201
8660         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8662 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
8664         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8665         from 'const void *'.
8666         (sort_locs_in_loop_postorder_cmp): Likewise.
8668 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
8670         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8671         (hot-bb-count-ws-permille): Likewise.
8672         (hot-bb-frequency-fraction): Likewise.
8673         (unlikely-bb-count-fraction): Likewise.
8674         * params.def (hot-bb-count-fraction): Rework description.
8675         (hot-bb-count-ws-permille): Likewise.
8676         (hot-bb-frequency-fraction): Likewise.
8677         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
8678         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8680 2019-08-02  Uroš Bizjak  <ubizjak@gmail.com>
8682         PR target/91323
8683         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8684         Return false.
8686 2019-08-02  Richard Biener  <rguenther@suse.de>
8688         * vec.h (vec::sort): Add gcc_qsort_r support.
8689         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8690         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8691         to gcc_qsort_r style callback.
8692         (sort_locs_in_loop_postorder_cmp): Likewise.
8693         (analyze_memory_references): Use gcc_sort_r interfaces.
8694         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8696 2019-08-02  Martin Liska  <mliska@suse.cz>
8698         PR lto/91313
8699         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8700         to detect working job server.
8701         (driver::detect_jobserver): Test whether jobserver
8702         is active from GCC driver. That will prevent situation where
8703         GCC is invoked from a LD plugin and the linker already uses
8704         file descriptors suggested by make.  That leads to a wrong
8705         detection.
8706         * gcc.h (driver): Add detect_jobserver.
8707         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8708         not scanning for --jobserver-auth prefix.
8710 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
8712         PR tree-optimization/91201
8713         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8714         V16QImode extraction without sse4.1 try to use V4SImode lowpart
8715         extraction.
8717 2019-08-01  Martin Sebor  <msebor@redhat.com>
8719         PR c++/90947
8720         * tree.c (type_initializer_zero_p): Define.
8721         * tree.h (type_initializer_zero_p): New function.
8723 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
8725         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8727 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
8729         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8730         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
8731         * predict.c (maybe_hot_count_p): Likewise.
8732         (maybe_hot_bb_p): Tweak comment.
8733         (maybe_hot_edge_p): Likewise.
8734         (probably_never_executed): Likewise.  Minor tweak.
8735         (probably_never_executed_bb_p): Likewise.
8736         (unlikely_executed_edge_p): Likewise.
8737         (probably_never_executed_edge_p): Likewise.
8738         (optimize_function_for_size_p): Likewise.
8739         (optimize_function_for_speed_p): Likewise.
8740         (function_optimization_type): Likewise.
8741         (optimize_bb_for_size_p): Likewise.
8742         (optimize_bb_for_speed_p): Likewise.
8743         (bb_optimization_type): Likewise.
8744         (optimize_edge_for_size_p): Likewise.
8745         (optimize_edge_for_speed_p): Likewise.
8746         (optimize_insn_for_size_p): Likewise.
8747         (optimize_insn_for_speed_p): Likewise.
8748         (optimize_loop_for_size_p): Likewise.
8749         (optimize_loop_for_speed_p): Likewise.
8750         (optimize_loop_nest_for_speed_p): Likewise.
8751         (optimize_loop_nest_for_size_p): Likewise.
8752         (predictable_edge_p): Likewise.
8753         (handle_missing_profiles): Minor tweak.
8755 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
8757         * config/rs6000/predicates.md (pcrel_external_address): Update
8758         comment.
8760 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
8762         PR target/85693
8763         * config/i386/mmx.md (usadv8qi): New expander.
8765 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
8767         PR c++/90590
8768         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8769         with reserved names that are in a system header.
8771 2019-08-01  Uroš Bizjak  <ubizjak@gmail.com>
8773         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8774         (*vec_extractv2si_0_zext_sse4): New insn pattern.
8775         (*vec_extractv2si_0_zext): Ditto.
8776         (*vec_extractv2si_1): Add (rm,x) alternative.
8777         (*vec_extractv2si_1_zext): New insn pattern.
8778         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8779         insn constraint.
8781 2019-08-01  Richard Biener  <rguenther@suse.de>
8783         * domwalk.c (bb_postorder): Remove static variable.
8784         (cmp_bb_postorder): Adjust.
8785         (sort_bbs_postorder): Adjust and use gcc_sort_r.
8786         (dom_walker::walk): Adjust.
8788 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
8790         * sort.cc (sort_r_ctx): New struct.
8791         (reorder23): Make templated on context type.
8792         (reorder45): Ditto.
8793         (cmp1): Ditto.  Adjust signature.
8794         (netsort): Ditto.
8795         (mergesort): Ditto.
8796         [CHECKING_P] (cmp2to3): New static function.  Use it...
8797         (gcc_qsort) [CHECKING_P]: ...here.
8798         (gcc_sort_r): New function.
8799         * system.h (sort_r_cmp_fn): New function typedef.
8800         (qsort_chk): Adjust signature.
8801         (gcc_sort_r): Declare.
8802         * vec.c (qsort_chk_error): Adjust.
8803         (qsort_chk): Adjust.
8805 2019-08-01  Richard Biener  <rguenther@suse.de>
8807         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8808         (compute_antic): Localize it here.
8810 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
8812         * common/config/riscv/riscv-common.c: Check -march string ends
8813         with null.
8815 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
8817         * ipa-devirt.c (type_warning_cmp): Make static.
8818         (decl_warning_cmp): Ditto.
8820 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
8822         PR target/91050
8823         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8824         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8825         use of deleted rs6000_dejagnu_cpu_index variable.
8826         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8827         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8828         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8829         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8830         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8831         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8833 2019-07-31  Richard Biener  <rguenther@suse.de>
8835         PR tree-optimization/91280
8836         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8837         Decompose MEM_REF manually for offset handling.
8839 2019-07-31  Richard Biener  <rguenther@suse.de>
8841         PR tree-optimization/91293
8842         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8843         of reduction stmts.
8845 2019-07-31  Matt Thomas  <matt@3am-software.com>
8846             Nick Hudson  <nick@nthcliff.demon.co.uk>
8847             Matthew Green  <mrg@eterna.com.au>
8848             Maya Rashish  <coypu@sdf.org>
8850         * config.gcc (hppa*-*-netbsd*): New target.
8851         * config/pa/pa-netbsd.h: New file.
8852         * config/pa/pa32-netbsd.h: New file.
8854 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8856         PR tree-optimization/91201
8857         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
8859 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
8861         * config/gcn/gcn-valu.md
8862         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
8863         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
8864         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8865         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
8866         struct ilist. Add nops for delayeduse insns.
8867         * config/gcn/gcn.md (delayeduse): New attribute.
8868         (*movbi): Remove s_waitcnt from stores.
8869         (*mov<mode>_insn): Likewise.
8870         (*movti_insn): Likewise. Add delayeduse attribute.
8871         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
8872         (atomic_store<mode>): Remove or adjust s_waitcnt.
8874 2019-07-31  Richard Biener  <rguenther@suse.de>
8876         * vr-values.h (vr_values::swap_vr_value): New.
8877         (vr_values::free_value_range): likewise.
8878         * vr-values.c (vr_values::swap_vr_value): Implement.
8879         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
8880         Do not return a range or take a var.
8881         (evrp_range_analyzer::stack): Change back to recording a non-const
8882         value_range *.
8883         * gimple-ssa-evrp-analyze.c
8884         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
8885         value-range.
8886         (evrp_range_analyzer::pop_to_marker): Adjust.
8887         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
8888         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
8889         no longer needed value-range.
8891 2019-07-31  Martin Liska  <mliska@suse.cz>
8893         * tree-ssa-dce.c (propagate_necessity): Delete operator can
8894         have size and (or) alignment as 2nd and later arguments.
8895         Mark all of them as necessary.
8897 2019-07-31  Richard Biener  <rguenther@suse.de>
8899         PR tree-optimization/91178
8900         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8901         Use tail-recursion.
8903 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8905         PR tree-optimization/91201
8906         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
8907         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
8908         TARGET_AVX512F.
8909         (reduc_plus_scal_<mode>): Improve formatting by introducing
8910         a temporary.
8912 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
8914         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
8915         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
8916         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
8917         (aarch64_init_tme_builtins): New.
8918         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
8919         (aarch64_expand_builtin_tme): New.
8920         (aarch64_expand_builtin): Handle TME builtins.
8921         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8922         __ARM_FEATURE_TME when enabled.
8923         * config/aarch64/aarch64-option-extensions.def: Add "tme".
8924         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
8925         (TARGET_TME): New.
8926         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
8927         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
8928         UNSPECV_TCANCEL.
8929         (tstart, ttest, tcommit, tcancel): New instructions.
8930         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
8931         (__tcancel, __ttest): New.
8932         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
8933         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
8934         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
8935         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
8936         * config/arm/types.md: Add new tme type attr.
8937         * doc/invoke.texi: Document "tme".
8939 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
8941         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
8942         warn_unused_result attribute.
8943         (cmse_check_address_range): Add warn_unused_result attribute.
8945 2019-07-31  Richard Biener  <rguenther@suse.de>
8947         PR tree-optimization/91257
8948         * tree-vrp.c (union_ranges): Unify equality and less tests
8949         by using compare_values.  Re-order cheap tests first.
8951 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
8953         PR middle-end/91301
8954         * gimplify.c (gimplify_omp_for): If for class iterator on
8955         distribute parallel for there is no data sharing clause
8956         on inner_for_stmt, look for private clause on combined
8957         parallel too and if found, move it to inner_for_stmt.
8959 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
8961         * lra-int.h (lra_operand_data): Remove early_clobber field.
8962         (lra_insn_reg): Likewise.
8963         * lra.c (debug_operand_data): Update accordingly.
8964         (setup_operand_alternative): Likewise.
8965         (new_insn_reg): Likewise.  Remove early_clobber parameter.
8966         (collect_non_operand_hard_regs): Update call accordingly.
8967         Don't assign to lra_insn_reg::early_clobber.
8968         (add_regs_to_insn_regno_info): Remove early_clobber parameter
8969         and update calls to new_insn_reg.
8970         (lra_update_insn_regno_info): Update calls accordingly.
8971         * lra-constraints.c (update_and_check_small_class_inputs): Take the
8972         alternative number as a parameter and test whether the operand
8973         is earlyclobbered in that particular alternative.
8974         (process_alt_operands): Update call accordingly.  Use per-alternative
8975         checks for earyclobber here too.
8976         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
8977         against zero for IRA_UNKNOWN_ALT.
8979 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
8981         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
8983 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
8985         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
8986         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8988 2019-07-30  Martin Liska  <mliska@suse.cz>
8990         PR ipa/89330
8991         * cgraph.c (cgraph_edge::make_direct): Use
8992         edge->indirect_unknown_callee as edge->resolve_speculation can
8993         deallocate edge which is this pointer.
8995 2019-07-30  Richard Biener  <rguenther@suse.de>
8997         PR tree-optimization/91257
8998         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9000 2019-07-30  Martin Liska  <mliska@suse.cz>
9002         * doc/invoke.texi: Document new behavior.
9003         * lto-wrapper.c (cpuset_popcount): New function
9004         is a copy of libgomp/config/linux/proc.c.
9005         (init_num_threads): Likewise.
9006         (run_gcc): Automatically detect core count for -flto.
9007         (jobserver_active_p): New function.
9009 2019-07-30  Richard Biener  <rguenther@suse.de>
9011         PR tree-optimization/91257
9012         * bitmap.h (bitmap_ior_into_and_free): Declare.
9013         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9014         whether to add the unliked element to the freelist.
9015         (bitmap_list_insert_element_after): Add defaulted param for
9016         an already allocated element.
9017         (bitmap_ior_into_and_free): New function.
9018         * tree-ssa-structalias.c (condense_visit): Reduce the
9019         ponts-to and edge bitmaps of the SCC members in a
9020         logarithmic fashion rather than all to one.
9022 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
9024         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9025         parameter.  When nonnull, make sure that the addition or subtraction
9026         has the same condition.
9027         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9028         for CFN_COND_MUL too.
9030 2019-07-30  Richard Biener  <rguenther@suse.de>
9032         PR tree-optimization/91291
9033         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9034         constant values.
9036 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
9038         PR middle-end/91216
9039         * omp-low.c (global_nonaddressable_vars): New variable.
9040         (use_pointer_for_field): For global decls, if they are non-addressable,
9041         remember it in the global_nonaddressable_vars bitmap, if they are
9042         addressable and in the global_nonaddressable_vars bitmap, ignore their
9043         TREE_ADDRESSABLE bit.
9044         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9045         vars in global_nonaddressable_vars bitmap.
9046         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9048         PR target/91150
9049         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9050         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
9051         comparison to unsigned HOST_WIDE_INT before shifting it left.
9053 2019-07-30  Uroš Bizjak  <ubizjak@gmail.com>
9055         * config/i386/i386.md (movstrict<mode>): Use register_operand
9056         predicate for operand 0.  Add expander condition.  Assert that
9057         operand 0 is a SUBREG RTX.
9058         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9059         Update operand constraints and insn condition.
9060         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9061         (zero_extendqihi2_and): Do not call gen_movstrictqi.
9062         (*setcc_qi_slp): Use register_operand predicate for operand 0.
9063         Update operand 0 constraints.
9064         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9066 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9068         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9069         when -m{code,data}-region are used without -mlarge.
9070         * config/msp430/msp430.c (msp430_option_override): Error when a
9071         non-default code or data region is used without -mlarge.
9072         (msp430_section_attr): Emit a warning and do not add upper/lower/either
9073         attributes when they are used without -mlarge.
9075 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9077         PR target/70320
9078         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9080 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9082         PR middle-end/91242
9083         * wide-int.h (generic_wide_int::sext_elt): New function.
9084         * inchash.h (hash::add_wide_int): Use it instead of elt.
9086 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9088         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9089         CODE_FOR_arm_##.
9090         * config/arm/arm.md (<crc_variant>): Rename to...
9091         (arm_<crc_variant>): ... This.
9092         (<cdp>): Rename to...
9093         (arm_<cdp>): ... This.
9094         (<ldc>): Rename to...
9095         (arm_<ldc>): ... This.
9096         (<stc>): Rename to...
9097         (arm_<stc>): ... This.
9098         (<mcr>): Rename to...
9099         (arm_<mcr>): ... This.
9100         (<mrc>): Rename to...
9101         (arm_<mrc>): ... This.
9102         (<mcrr>): Rename to...
9103         (arm_<mcrr>): ... This.
9104         (<mrrc>): Rename to...
9105         (arm_<mrrc>): ... This.
9107 2019-07-29  Richard Biener  <rguenther@suse.de>
9109         PR tree-optimization/91257
9110         * tree-ssa-sccvn.h (struct vn_avail): New.
9111         (struct vn_ssa_aux): Add avail member.
9112         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9113         member, add m_avail_freelist one.
9114         (rpo_elim::~rpo_elim): Remove.
9115         (rpo_elim::eliminate_avail): Adjust to new avail tracking
9116         data structure.
9117         (rpo_elim::eliminate_push_avail): Likewise.
9118         (do_unwind): Likewise.
9119         (do_rpo_vn): Likewise.
9121 2019-07-29  Richard Biener  <rguenther@suse.de>
9123         PR tree-optimization/91257
9124         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9125         most cases, instead call compare_values which handles the
9126         symbolic ranges we handle specially.
9127         (compare_values_warnv): Do not call operand_less_p but open-code
9128         the effective fold calls.  Avoid converting so much.
9130 2019-07-29  Martin Liska  <mliska@suse.cz>
9132         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9133         remove LHS of operator new call.  It's handled latter.
9135 2019-07-29  Richard Biener  <rguenther@suse.de>
9137         PR tree-optimization/91267
9138         * vr-values.c (vr_values::update_value_range): Add early return
9139         for effectively VARYING lattice entry.
9141 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9143         PR debug/86638
9144         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9145         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9146         necessary if keep_all_vdefs_p is true.
9147         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9148         that keep_all_vdefs_p is false.
9149         (mark_all_reaching_defs_necessary): Likewise.
9150         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9152 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9154         * common.opt (Og): Change the initial value of flag_dse to 0.
9155         * opts.c (default_options_table): Move OPT_ftree_dse from
9156         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
9157         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
9158         entry before the OPT_ftree_sra entry.
9159         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9160         of flags disabled by Og.
9162 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9164         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9165         variables for -Og.
9167 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9169         * doc/sourcebuild.texi (check-function-bodies): Document.
9171 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9173         * simplify-rtx.c (simplify_const_unary_operation): Fold a
9174         VEC_DUPLICATE of a fixed-length vector even if the result
9175         is variable-length.  Likewise fold a duplicate of a
9176         variable-length vector if the variable-length vector is
9177         itself a duplicate of a fixed-length sequence.
9178         (test_vector_ops_duplicate): Test more cases.
9180 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9182         * vector-builder.h (vector_builder): Add a shape template parameter.
9183         (vector_builder::new_unary_operation): New function, generalizing
9184         the old tree_vector_builder function.
9185         (vector_builder::new_binary_operation): Likewise.
9186         (vector_builder::binary_encoded_nelts): Likewise.
9187         * int-vector-builder.h (int_vector_builder): Update template
9188         parameters to vector_builder.
9189         (int_vector_builder::shape_nelts): New function.
9190         * rtx-vector-builder.h (rtx_vector_builder): Update template
9191         parameters to vector_builder.
9192         (rtx_vector_builder::shape_nelts): New function.
9193         (rtx_vector_builder::nelts_of): Likewise.
9194         (rtx_vector_builder::npatterns_of): Likewise.
9195         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9196         * tree-vector-builder.h (tree_vector_builder): Update template
9197         parameters to vector_builder.
9198         (tree_vector_builder::shape_nelts): New function.
9199         (tree_vector_builder::nelts_of): Likewise.
9200         (tree_vector_builder::npatterns_of): Likewise.
9201         (tree_vector_builder::nelts_per_pattern_of): Likewise.
9202         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9203         (tree_vector_builder::new_binary_operation): Delete.
9204         (tree_vector_builder::binary_encoded_nelts): Likewise.
9205         * simplify-rtx.c: Include rtx-vector-builder.h.
9206         (distributes_over_addition_p): New function.
9207         (simplify_const_unary_operation)
9208         (simplify_const_binary_operation): Generalize handling of vector
9209         constants to include variable-length vectors.
9210         (test_vector_ops_series): Add more tests.
9212 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
9214         PR lto/91222
9215         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9216         than INDENTIFIER_POINTER.
9218 2019-07-28  Martin Liska  <mliska@suse.cz>
9220         PR ipa/89330
9221         * cgraph.c (symbol_table::create_edge): Always allocate
9222         a cgraph_edge.
9223         (symbol_table::free_edge): Store summary_id to
9224         edge_released_summary_ids if != -1;
9225         * cgraph.h (NEXT_FREE_NODE): Remove.
9226         (SET_NEXT_FREE_NODE): Likewise.
9227         (NEXT_FREE_EDGE): Likewise.
9228         (symbol_table::release_symbol): Store summary_id to
9229         cgraph_released_summary_ids if != -1;
9230         (symbol_table::allocate_cgraph_symbol): Always allocate
9231         a cgraph_node.
9233 2019-07-28  Alan Modra  <amodra@gmail.com>
9235         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9236         gen_sibcall.
9238 2019-07-28  Alan Modra  <amodra@gmail.com>
9240         PR target/91135
9241         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9242         define.
9243         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9244         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9245         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9247 2019-07-28  Alan Modra  <amodra@gmail.com>
9249         PR target/91050
9250         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9251         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9252         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9253         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9254         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9255         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9256         in asm_default spec.
9257         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9258         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9260 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
9262         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9264 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
9266         PR target/89517
9267         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9268         * config/aarch64/aarch64-option-extensions.def: Add new comments
9269         and restore easier to read options.
9271 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
9273         * convert.c (convert_to_real_1): Move part of conversion code...
9274         * match.pd: ...To here.
9276 2019-07-26  Martin Jambor  <mjambor@suse.cz>
9278         PR ipa/89330
9279         * ipa-inline-transform.c (check_speculations_1): New function.
9280         (push_all_edges_in_set_to_vec): Likewise.
9281         (check_speculations): Use check_speculations_1, new parameter
9282         new_edges.
9283         (inline_call): Pass new_edges to check_speculations.
9284         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9285         NULL.
9286         (speculation_useful_p): Early return true if edge is inlined, remove
9287         later checks for inline_failed.
9289 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
9291         PR rtl-optimization/91223
9292         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9293         matching with INOUT operand.
9295 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9297         * stmt.c (expand_case): Try to narrow the index type if it's larger
9298         than a word.  Tidy up.
9300 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9302         * cif-code.def (NEVER_CALL): New code.
9303         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9304         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9306 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
9308         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9309         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9311 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9313         * ipa-devirt.c (add_type_duplicate): Fix return value.
9315 2019-07-25  Richard Biener  <rguenther@suse.de>
9317         * tree-vrp.c (extract_range_from_multiplicative_op): Add
9318         type parameter and use it instead of guessing expression
9319         type from the first operand.
9320         (extract_range_from_binary_expr): Pass expr_type down.
9322 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9324         * config/arm/arm.md (SATrev): Change to code attribute.
9325         (*satsi_<SAT:code>): Adjust for the above.
9326         (*satsi_<SAT:code>_shift): Likewise.
9328 2019-07-25  Richard Biener  <rguenther@suse.de>
9330         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9331         Make value_range * temporary const.
9332         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9333         Likewise.
9334         (evrp_range_analyzer::record_ranges_from_): Likewise.
9335         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9336         deal with having recorded a const one.
9337         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9338         Return a const value_range *.
9339         (evrp_range_analyzer::pop_value_range): Likewise.
9340         (evrp_range_analyzer::stack): Record const value_range *s.
9341         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9342         Adjust.
9343         * gimple-ssa-sprintf.c (get_int_range): Likewise.
9344         (format_integer): Likewise.
9345         (sprintf_dom_walker::handle_gimple_call): Likewise.
9346         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9347         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9348         (vrp_prop::get_value_range): Adjust.
9349         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9350         modifying the lattice in-place.
9351         (vrp_prop::visit_stmt): Likewise.
9352         * vr-values.c (vr_values::get_lattice_entry): New private method.
9353         (vr_values::get_value_range): Wrap it and return a const
9354         value_range *.
9355         (vr_values::set_def_to_varying): New.
9356         (vr_values::set_defs_to_varying): Use it.
9357         (vr_values::update_value_range): Likewise.
9358         (vr_values::vrp_stmt_computes_nonzero): Adjust.
9359         (values::op_with_constant_singleton_va): Likewise.
9360         (vr_values::extract_range_for_var_from_co): Likewise.
9361         (vr_values::extract_range_from_ssa_name): Likewise.
9362         (vr_values::extract_range_from_cond_expr): Likewise.
9363         (vr_values::extract_range_basic): Likewise.
9364         (compare_ranges): Take const value_range *, adjust.
9365         (compare_range_with_value): Likewise.
9366         (vrp_valueize): Adjust.
9367         (vrp_valueize_1): Likewise.
9368         (vr_values::get_vr_for_comparison): Return a const value_range *.
9369         (vr_values::compare_name_with_value): Adjust.
9370         (vr_values::compare_names): Likewise.
9371         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9372         Likewise.
9373         (vr_values::vrp_evaluate_conditional): Likewise.
9374         (find_case_label_ranges): Take a const value_range *.
9375         (vr_values::vrp_visit_switch_stmt): Adjust.
9376         (vr_values::extract_range_from_phi_node): Likewise.
9377         (vr_values::simplify_div_or_mod_using_ran): Likewise.
9378         (vr_values::simplify_abs_using_ranges): Likewise.
9379         (test_for_singularity): Take a const value_range *.
9380         (range_fits_type_p): Likewise.
9381         (vr_values::simplify_cond_using_ranges_1): Adjust.
9382         (vr_values::simplify_cond_using_ranges_2): Likewise.
9383         (vr_values::simplify_switch_using_ranges): Likewise.
9384         (vr_values::simplify_float_conversion_usi): Likewise.
9385         (vr_values::two_valued_val_range_p): Likewise.
9386         * vr-values.h (vr_values::get_value_range): Return a const
9387         value_range *.
9388         (vr_values::set_def_to_varying): New.
9389         (vr_values::get_lattice_entry): New private method.
9390         (vr_values::get_vr_for_comparison): Return a const value_range *.
9392 2019-07-25  Martin Liska  <mliska@suse.cz>
9393             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
9395         PR c++/23383
9396         * common.opt: Add -fallocation-dce
9397         * gimple.c (gimple_call_operator_delete_p): New.
9398         * gimple.h (gimple_call_operator_delete_p): Likewise.
9399         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9400         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9401         DECL_IS_OPERATOR_DELETE_P.
9402         (mark_all_reaching_defs_necessary_1): Likewise.
9403         (propagate_necessity): Likewise.
9404         (eliminate_unnecessary_stmts): Handle
9405         gimple_call_operator_delete_p.
9406         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9407         Add packing of OPERATOR_DELETE.
9408         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9409         Similarly here.
9410         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9411         (DECL_SET_IS_OPERATOR_DELETE): New.
9412         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9414 2019-07-25  Martin Liska  <mliska@suse.cz>
9416         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9417         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9418         * coverage.c (coverage_begin_function): Likewise.
9419         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9420         * gimple.c (gimple_call_nonnull_result_p): Likewise.
9421         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9422         (sem_item::hash_referenced_symbol_properties): Likewise.
9423         * lto-streamer-out.c (hash_tree): Likewise.
9424         * predict.c (expr_expected_value_1): Likewise.
9425         * tree-inline.c (expand_call_inline): Likewise.
9426         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9427         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9428         * tree-core.h (enum function_decl_type): New enum.
9429         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9430         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9431         (set_function_decl_type): Likewise.
9432         (DECL_IS_OPERATOR_NEW_P): New.
9433         (DECL_SET_IS_OPERATOR_NEW): Likewise.
9434         (DECL_LAMBDA_FUNCTION): Likewise.
9435         (DECL_LAMBDA_FUNCTION_P): Likewise.
9436         (DECL_IS_OPERATOR_NEW): Remove.
9437         (DECL_SET_LAMBDA_FUNCTION): Likewise.
9439 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
9441         * ipa-profile.c (get_most_common_single_value): Use
9442         get_nth_most_common_value.
9443         * profile.c (sort_hist_value): New function.
9444         (compute_value_histograms): Call sort_hist_value to sort the
9445         values after loading from disk.
9446         * value-prof.c (get_most_common_single_value): Rename to ...
9447         get_nth_most_common_value.  Add input params n, return
9448         the n_th value and count.
9449         (gimple_divmod_fixed_value_transform): Use
9450         get_nth_most_common_value.
9451         (gimple_ic_transform): Likewise.
9452         (gimple_stringops_transform): Likewise.
9453         * value-prof.h (get_most_common_single_value): Add input params
9454         n, default to 0.
9456 2019-07-25  Richard Biener  <rguenther@suse.de>
9458         PR tree-optimization/91236
9459         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9460         size of CONSTRUCTOR write.  Fix buffer size we pass to
9461         native_encode_expr.
9463 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9465         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9466         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9467         r273773.
9469 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9471         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9472         explicitly disabled with --disable-initfini-array.
9474 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9476         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9477         if-exists.
9479 2019-07-24  Martin Sebor  <msebor@redhat.com>
9481         PR tree-optimization/91183
9482         PR tree-optimization/86688
9483         * builtins.c (compute_objsize): Handle MEM_REF.
9484         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9485         (get_min_string_length): Remove.
9486         (count_nonzero_bytes): New function.
9487         (handle_char_store): Rename...
9488         (handle_store): to this.  Handle multibyte stores via integer types.
9489         (strlen_check_and_optimize_stmt): Adjust conditional and the called
9490         function name.
9492 2019-07-24  Martin Sebor  <msebor@redhat.com>
9494         PR driver/80545
9495         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9496         (diagnostic_report_diagnostic): Same.
9497         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9498         (diagnostic_context::lang_mask): New data member.
9499         * ipa-pure-const.c (suggest_attribute): Use
9500         lang_hooks.option_lang_mask ().
9501         * opts-common.c (option_enabled): Handle new argument.
9502         (get_option_state): Pass an additional argument.
9503         * opts.c (print_filtered_help): Print supported languages for
9504         unsupported options.  Adjust printing of current state.
9505         * opts.h (option_enabled): Add argument.
9506         * toplev.c (print_switch_values): Use lang_mask.
9507         (general_init): Set global_dc->lang_mask.
9509 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
9511         PR bootstrap/87030
9512         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9514 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
9516         * cgraphunit.c (symbol_table::compile): Start and stop
9517         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9518         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9520 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
9522         * gimplify.c (flag_instrument_functions_exclude_p): Include
9523         namespace/class information in the printable name.
9524         * opts.c (add_comma_separated_to_vector): Add NUL terminator
9525         to tokens entered into the vector.
9527 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
9529         * tree-nested.c (build_simple_mem_ref_notrap): New function.
9530         (get_static_chain): Call it instead of build_simple_mem_ref.
9531         (get_frame_field): Likewise.
9532         (get_nonlocal_debug_decl): Likewise.
9533         (convert_nonlocal_reference_op): Likewise.
9535 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
9537         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9538         declaration.
9539         (arc_compute_frame_size): Millicode is disabled when compiling
9540         ISR.
9541         (arc_return_address_register): Likewise.
9542         (arc_compute_function_type): Likewise.
9543         (arc_compute_frame_size): Likewise.
9544         (secondary_reload_info): Likewise.
9545         (arc_get_unalign): Likewise.
9546         (arc_can_use_return_insn): Declare.
9547         * config/arc/arc.c (AUX_LP_START): Define
9548         (AUX_LP_END): Likewise.
9549         (arc_frame_info): Update gmask member to 64-bit datum.
9550         (GMASK_LEN): Update.
9551         (arc_compute_function_type): Make it static, move it forward.
9552         (arc_must_save_register): Update, consider the extra regs.
9553         (arc_compute_millicode_save_restore_regs): Update to use the 64
9554         bit gmask.
9555         (arc_compute_frame_size): Likewise.
9556         (arc_enter_leave_p): Likewise.
9557         (arc_save_callee_saves): Likewise.
9558         (arc_restore_callee_saves): Likewise.
9559         (arc_save_callee_enter): Likewise.
9560         (arc_restore_callee_leave): Likewise.
9561         (arc_save_callee_milli): Likewise.
9562         (arc_restore_callee_milli): Likewise.
9563         (arc_expand_prologue): Add new interrupt handling.
9564         (arc_return_address_register): Make it static, move it forward.
9565         (arc_expand_epilogue): Add new interrupt handling.
9566         (arc_get_unalign): Delete.
9567         (arc_epilogue_uses): Make sure we do not remove the extra
9568         saved/restored registers when interrupt.
9569         (arc_can_use_return_insn): New function.
9570         (push_reg): Likewise.
9571         (pop_reg): Likewise.
9572         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9573         procedures.
9574         (arc_restore_callee_saves): Likewise, but restoring.
9575         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9576         (R33_REG): Likewise.
9577         (R34_REG): Likewise.
9578         (R35_REG): Likewise.
9579         (R36_REG): Likewise.
9580         (R37_REG): Likewise.
9581         (R38_REG): Likewise.
9582         (R39_REG): Likewise.
9583         (R45_REG): Likewise.
9584         (R46_REG): Likewise.
9585         (R47_REG): Likewise.
9586         (R48_REG): Likewise.
9587         (R49_REG): Likewise.
9588         (R50_REG): Likewise.
9589         (R51_REG): Likewise.
9590         (R52_REG): Likewise.
9591         (R53_REG): Likewise.
9592         (R54_REG): Likewise.
9593         (R55_REG): Likewise.
9594         (R56_REG): Likewise.
9595         (R58_REG): Likewise.
9596         (type): Add rtie attribute.
9597         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9598         (movsi_insn): Accept moves to lp_count.
9599         (rtie): Update pattern.
9600         (simple_return): Simplify it, don't use this pattern as a return
9601         from an interrupt.
9602         (arc600_rtie): New pattern.
9603         (p_return_i): Clean up.
9604         (return): Likewise.
9605         * config/arc/builtins.def (rtie): Only available for non ARC6xx
9606         family CPUs.
9607         * config/arc/predicates.md (move_src_operand): Consider lp_count
9608         as a register.
9610 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
9612         * config/s390/predicates.md (addv_const_operand): New predicate.
9613         * config/s390/s390-modes.def (CCO): New condition code mode.
9614         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9615         (s390_branch_condition_mask): Likewise.
9616         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9617         ("mulv<mode>4"): New expanders.
9618         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9619         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9620         pattern definitions.
9622 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9624         PR middle-end/91166
9625         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9626         (define_predicates): Add entry for uniform_vector_p.
9627         (vec_same_elem_p): New match pattern.
9629 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
9631         PR bootstrap/87030
9632         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9633         * config/i386/darwin32-biarch.h .. to here.
9634         * config/i386/darwin64-biarch.h: Adjust comments.
9635         * config/rs6000/darwin32-biarch.h: Likewise.
9636         * config/rs6000/darwin64-biarch.h: Likewise.
9637         * config.gcc: Missed commit from r273746
9638         (*-*-darwin*): Don't include CPU t-darwin here.
9639         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9640         an error message if i686-darwin configuration is attempted for
9641         Darwin >= 18.
9643 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
9645         PR bootstrap/87030
9646         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9647         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9648         an error message if i686-darwin configuration is attempted for
9649         Darwin >= 18.
9650         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9651         (powerpc-*-darwin*): Use biarch files where needed.
9652         (powerpc64-*-darwin*): Likewise.
9653         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9654         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9655         arch case.
9656         * config/i386/darwin32-biarch.h: New.
9657         * config/i386/darwin64.h: Rename.
9658         * config/i386/darwin64-biarch.h: To this.
9659         * config/i386/t-darwin: Rename.
9660         * config/i386/t-darwin32-biarch: To this.
9661         * config/i386/t-darwin64: Rename.
9662         * config/i386/t-darwin64-biarch: To this.
9663         * config/rs6000/darwin32-biarch.h: New.
9664         * config/rs6000/darwin64.h: Rename.
9665         * config/rs6000/darwin64-biarch.h: To this.
9666         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9667         arch case.
9668         * config/rs6000/t-darwin8: Rename.
9669         * config/rs6000/t-darwin32-biarch: To this.
9670         * config/rs6000/t-darwin64 Rename.
9671         * config/rs6000/t-darwin64-biarch: To this.
9673 2019-07-23  Martin Sebor  <msebor@redhat.com>
9675         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9677 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
9679         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9680         (rh): New alias for it.
9682 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
9684         * gdbhooks.py: Pass replace=True to
9685         gdb.printing.register_pretty_printer.
9687 2019-07-23  Richard Biener  <rguenther@suse.de>
9689         PR debug/91231
9690         * lto-streamer-in.c (input_function): Drop inline-entry markers
9691         that ended up with an unknown location block.
9693 2019-07-23  Richard Biener  <rguenther@suse.de>
9695         PR tree-optimization/83518
9696         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9697         init from a constant even when partial defs are already recorded.
9699 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9701         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9702         * config/i386/znver1.md: Enable patterns for znver2 and add store
9703         variants which use extra AGU unit.
9705 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9707         * config/i386/i386-options.c (ix86_option_override_internal): Default
9708         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9709         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9710         for ZNVER2.
9712 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9714         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9715         (znver2_costs): Update 256 bit SSE costs and multiplication.
9717 2019-07-23  Jan Beulich  <jbeulich@suse.com>
9719         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9720         Require only AVX512F.
9721         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
9722         alternative expanding to vpternlog.
9724 2019-07-23  Martin Liska  <mliska@suse.cz>
9726         * dwarf2out.c (gen_producer_string): Canonize -flto=N
9727         to -flto in dwarf producer string.
9729 2019-07-23  Richard Biener  <rguenther@suse.de>
9731         * tree-cfg.c (label_for_bb): Remove global var.
9732         (main_block_label): Take label_for_bb as argument.
9733         (cleanup_dead_labels_eh): Likewise, adjust.
9734         (cleanup_dead_labels): Adjust.
9736 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
9738         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9739         Configurations): Add documentation for __builtin_mtfsf.
9741 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
9743         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9744         * config/riscv/riscv.c (riscv_constant_alignment): Use
9745         riscv_align_data_type.
9746         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9747         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9748         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9749         * config/riscv/riscv.opt (malign-data): New.
9750         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9752 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
9754         * cgraph.c (dump_graphviz): New function.
9755         * cgraph.h (dump_graphviz): New function.
9756         * symtab.c (dump_graphviz): New function.
9758 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
9760         * config/aarch64/aarch64-simd.md
9761         (*aarch64_simd_sra<mode>): New.
9762         * config/aarch64/iterators.md
9763         (SHIFTRT): New iterator.
9764         (sra_op): New attribute.
9766 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9768         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9769         callee-saved regs R4->R10 in an interrupt function that calls another
9770         function.
9772 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
9774         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9775         (_mm_blendv_epi8): New.
9777 2019-07-22  Richard Biener  <rguenther@suse.de>
9779         PR tree-optimization/91221
9780         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9781         restrict partial-def handling of empty constructors and
9782         memset to refs with known offset.
9784 2019-07-22  Jan Beulich  <jbeulich@suse.com>
9786         * config/i386/sse.md (ternlogsuffix): New.
9787         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9788         AVX512F is in use.
9789         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9791 2019-07-22  Martin Liska  <mliska@suse.cz>
9793         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9794         comment.
9795         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9797 2019-07-22  Martin Liska  <mliska@suse.cz>
9799         * lto-section-in.c (lto_get_section_data):
9800         Use new function get_compression.
9801         * lto-streamer-out.c (produce_lto_section): Use
9802         set_compression to encode compression algorithm.
9803         * lto-streamer.h (struct lto_section): Do not
9804         use bitfields in the format.
9806 2019-07-22  Martin Liska  <mliska@suse.cz>
9808         PR driver/91172
9809         * opts-common.c (decode_cmdline_option): Decode
9810         argument of -Werror and check it for a wrong language.
9811         * opts-global.c (complain_wrong_lang): Remove such case.
9813 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
9815         * config/arc/arc.c (prepare_move_operands): Always use an
9816         intermediate register when storing a TLS symbols.
9818 2019-07-22  Stafford Horne  <shorne@gmail.com>
9820         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9821         force_reg.
9823 2019-07-22  Stafford Horne  <shorne@gmail.com>
9825         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9826         and munordered-float validations.
9827         * config/or1k/constraints.md (d): New register constraint.
9828         * config/or1k/predicates.md (fp_comparison_operator): New.
9829         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9830         operands.
9831         (or1k_expand_compare): Normalize unordered comparisons.
9832         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9833         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9834         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9835         * config/or1k/or1k.md (type): Add fpu.
9836         (fpu): New instruction reservation.
9837         (F, f, fr, fi, FI, FOP, fop): New.
9838         (<fop><F:mode>3): New ALU instruction definition.
9839         (float<fi><F:mode>2): New conversion instruction definition.
9840         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9841         (fpcmpcc): New code iterator.
9842         (*sf_fp_insn): New instruction definition.
9843         (cstore<F:mode>4): New expand definition.
9844         (cbranch<F:mode>4): New expand definition.
9845         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9846         munordered-float): New options.
9847         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9848         munordered-float.
9850 2019-07-22  Stafford Horne  <shorne@gmail.com>
9852         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9853         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9854         documenation to be more clear.
9855         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9856         more clear.
9857         * config/or1k/or1k.opt (mrori): New option.
9858         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
9859         msfimm, mshftimm): Rewrite documentation to be more clear.
9860         * config/or1k/or1k.md (insn_support): Add ror and rori.
9861         (enabled): Add conditions for ror and rori.
9862         (rotrsi3): Replace condition for shftimm with ror and rori.
9864 2019-07-22  Stafford Horne  <shorne@gmail.com>
9866         PR target/90363
9867         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
9868         (extend<mode>si2): Update predicate.
9869         * config/or1k/predicates.md (volatile_mem_operand): New.
9870         (reg_or_mem_operand): New.
9872 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
9874         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
9875         * config/rs6000/rs6000-call.c: ... to here.
9877 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9879         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
9880         memory.
9882 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9884         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
9886 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9888         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
9890 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9892         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
9893         (any_memory_operand): New predicate.
9894         (reg_or_mem_operand): Use it.
9896 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9898         PR target/91204
9899         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
9901 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
9903         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
9904         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
9906 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
9908         * tree.def (OMP_LOOP): New tree code.
9909         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
9910         (enum omp_clause_bind_kind): New enum.
9911         (struct tree_omp_clause): Add subcode.bind_kind.
9912         * tree.h (OMP_LOOP_CHECK): Rename to ...
9913         (OMP_LOOPING_CHECK): ... this.
9914         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9915         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
9916         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
9917         (OMP_CLAUSE_BIND_KIND): Define.
9918         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9919         bind clause entries.
9920         (walk_tree_1): Handle OMP_CLAUSE_BIND.
9921         * tree-pretty-print.c (dump_omp_clause): Likewise.
9922         (dump_generic_node): Handle OMP_LOOP.
9923         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
9924         (in_omp_construct): New variable.
9925         (is_gimple_stmt): Handle OMP_LOOP.
9926         (gimplify_scan_omp_clauses): For lastprivate don't set
9927         check_non_private if code == OMP_LOOP.  For reduction clause
9928         on OMP_LOOP combined with parallel or teams propagate as shared
9929         on the combined construct.  Handle OMP_CLAUSE_BIND.
9930         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
9931         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
9932         for constructs from a loop construct to gimplify_scan_omp_clauses.
9933         Don't predetermine iterator linear on OMP_SIMD from loop construct.
9934         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
9935         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
9936         to match the implicit ORT_TARGET construct around whole body.
9937         Temporarily clear in_omp_construct when processing body.
9938         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
9939         etc. temporarily set in_omp_construct when processing body.
9940         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
9941         * omp-low.c (struct omp_context): Add loop_p.
9942         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
9943         in that the original var might be private.
9944         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
9945         (check_omp_nesting_restrictions): Adjust nesting restrictions for
9946         addition of loop construct.
9947         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
9949         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
9950         lastprivate non-addressable iterator of a collapse(1) simd.
9952 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
9954         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
9955         as in rs6000.c.
9957 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
9959         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
9960         refer to default conditions.  Warn for the 'y' spec which is ignored
9961         by current linkers.
9963 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
9965         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
9966         cpu_supports_info, builtin_hash_struct, builtin_hasher,
9967         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9968         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9969         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9970         init_cumulative_args, rs6000_promote_function_mode,
9971         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9972         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9973         rs6000_function_arg_boundary, rs6000_parm_offset,
9974         rs6000_parm_start, rs6000_arg_size,
9975         rs6000_darwin64_record_arg_advance_flush,
9976         rs6000_darwin64_record_arg_advance_recurse,
9977         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9978         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9979         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9980         rs6000_mixed_function_arg, rs6000_psave_function_arg,
9981         rs6000_finish_function_arg, rs6000_function_arg,
9982         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9983         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9984         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9985         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9986         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9987         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9988         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
9989         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
9990         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
9991         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
9992         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
9993         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
9994         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
9995         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
9996         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
9997         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
9998         get_element_number, altivec_expand_vec_set_builtin,
9999         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10000         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10001         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10002         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10003         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10004         rs6000_expand_builtin, rs6000_vector_type,
10005         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10006         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10007         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10008         to rs6000-call.c.
10009         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10010         cpu_supports_info, builtin_hash_struct, builtin_hasher,
10011         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10012         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10013         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10014         init_cumulative_args, rs6000_promote_function_mode,
10015         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10016         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10017         rs6000_function_arg_boundary, rs6000_parm_offset,
10018         rs6000_parm_start, rs6000_arg_size,
10019         rs6000_darwin64_record_arg_advance_flush,
10020         rs6000_darwin64_record_arg_advance_recurse,
10021         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10022         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10023         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10024         rs6000_mixed_function_arg, rs6000_psave_function_arg,
10025         rs6000_finish_function_arg, rs6000_function_arg,
10026         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10027         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10028         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10029         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10030         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10031         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10032         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10033         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10034         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10035         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10036         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10037         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10038         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10039         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10040         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10041         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10042         get_element_number, altivec_expand_vec_set_builtin,
10043         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10044         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10045         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10046         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10047         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10048         rs6000_expand_builtin, rs6000_vector_type,
10049         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10050         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10051         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10052         to here from rs6000.c.
10053         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10054         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10055         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10056         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10057         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10058         rs6000_return_in_memory, rs6000_return_in_msb,
10059         rs6000_pass_by_reference, setup_incoming_varargs,
10060         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10061         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10062         rs6000_function_arg_padding, rs6000_function_arg,
10063         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10064         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10065         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10066         rs6000_passes_long_double, rs6000_passes_vector,
10067         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10068         altivec_builtin_mask_for_load) Add declarations.
10069         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10070         * config/config.gcc: Add new source file rs6000-call.c to garbage
10071         collector and extra_objs.
10073 2019-07-19  Jeff Law  <law@redhat.com>
10075         PR tree-optimization/86061
10076         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10077         strncpy.  Drop some trivial dead code.
10078         (maybe_trim_memstar_call): Handle strncpy.
10080 2019-07-19  Richard Biener  <rguenther@suse.de>
10082         PR tree-optimization/91211
10083         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10084         memset encoding size.
10086 2019-07-19  Uroš Bizjak  <ubizjak@gmail.com>
10088         PR target/91204
10089         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10091 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
10093         PR ipa/91194
10094         * ipa-inline.c (recursive_inlining): Fix limits check.
10096 2019-07-19  Richard Biener  <rguenther@suse.de>
10098         PR tree-optimization/91200
10099         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10100         no PHI nodes in middle-bb.
10102 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
10104         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10105         to +sve-bitperm.
10106         * config/aarch64/aarch64-option-extensions.def: Likewise.
10108 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
10110         PR middle-end/91190
10111         * function.c (insert_temp_slot_address): Store into the hash table
10112         a copy of address to avoid RTL sharing issues.
10114 2019-07-19  Richard Biener  <rguenther@suse.de>
10116         PR tree-optimization/91207
10117         Revert
10118         2019-07-17  Richard Biener  <rguenther@suse.de>
10120         PR tree-optimization/91178
10121         * tree-vect-stmts.c (get_group_load_store_type): For SLP
10122         loads with a gap larger than the vector size always use
10123         VMAT_STRIDED_SLP.
10124         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10125         avoid loading vectors that are only contained in the gap
10126         and thus are not needed.
10128 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
10130         * config/i386/i386.md (*addqi_2_slp): Remove.
10131         (*<code>qi_2_slp): Ditto.
10133 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
10135         * config/rs6000/predicates.md (prefixed_mem_operand): Call
10136         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10137         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10138         Rename function from rs6000_prefixed_address.
10139         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10140         TARGET_HAS_TOC.
10141         (TARGET_TOC): Likewise.
10142         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10143         rs6000.h.
10144         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10145         TARGET_HAS_TOC.
10146         (TARGET_TOC): Likewise.
10147         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10148         rs6000.h.
10149         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10150         TARGET_HAS_TOC.
10151         (TARGET_TOC): Likewise.
10152         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10153         check to require -mcmodel=medium for pc-relative addressing.
10154         (create_TOC_reference): Add assertion for TARGET_TOC.
10155         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10156         TARGET_NO_TOC.
10157         (rs6000_emit_move): Likewise.
10158         (TOC_alias_set): Rename TOC alias set static variable from 'set'
10159         to 'TOC_alias_set'.
10160         (get_TOC_alias_set): Likewise.
10161         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10162         TARGET_NO_TOC.
10163         (rs6000_can_eliminate): Likewise.
10164         (rs6000_prefixed_address_mode_p): Rename function from
10165         rs6000_prefixed_address.
10166         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10167         TARGET_HAS_TOC and not pc-relative.
10168         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10169         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10170         TARGET_HAS_TOC.
10171         (TARGET_TOC): Likewise.
10172         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10173         rs6000.h.
10175 2019-07-18  Uroš Bizjak  <ubizjak@gmail.com>
10177         PR target/91188
10178         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10179         for operand 0.  Do not use (match_dup) to match operand 1 with
10180         operand 0.  Add check in insn constraint that either input operand
10181         matches operand 0.  Use SWI12 mode iterator to also handle
10182         HImode operands.
10183         (*and<mode>_1_slp): Ditto.
10184         (*<code>qi_1_slp): Ditto.
10185         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10186         Do not use (match_dup) to match operand 1 with operand 0.  Add
10187         check in insn constraint that operand 1 matches operand 0.
10188         Use SWI12 mode iterator to also handle HImode operands.
10189         (*ashl<mode>3_1_slp): Ditto.
10190         (*<shift_insn><mode>3_1_slp): Ditto.
10191         (*<rotate_insn><mode>3_1_slp): Ditto.
10193 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
10195         * config/arm/arm-builtins.c
10196         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10197         (arm_expand_unop_builtin): Likewise.
10198         * config/arm/crypto.md
10199         (crypto_sha1h): Convert from define_insn to define_expand.
10200         (crypto_<crypto_pattern>): Likewise.
10201         (crypto_sha1h_lb): New define_insn.
10202         (crypto_<crypto_pattern>_lb): Likewise.
10204 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
10206         PR target/90317
10207         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10208         (vsha1cq_u32): Likewise.
10209         (vsha1pq_u32): Likewise.
10210         (vsha1mq_u32): Likewise.
10211         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10212         vec select.
10213         (crypto_sha1c): Correct vec select.
10214         (crypto_sha1m): Likewise.
10215         (crypto_sha1p): Likewise.
10217 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
10219         * config/arm/predicates.md (arm_borrow_operation): New predicate.
10220         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10221         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10222         (subdi_zesidi_zesidi): Likewise.
10223         (negdi2_compare, negdi2_insn): Likewise.
10224         (negdi_extensidi): Likewise.
10225         (negdi_zero_extendsidi): Likewise.
10226         (arm_cmpdi_insn): Likewise.
10227         (subsi3_carryin): Use arm_borrow_operation.
10228         (subsi3_carryin_const): Likewise.
10229         (subsi3_carryin_const0): Likewise.
10230         (subsi3_carryin_compare): Likewise.
10231         (subsi3_carryin_compare_const): Likewise.
10232         (subsi3_carryin_compare_const0): Likewise.
10233         (subsi3_carryin_shift): Likewise.
10234         (rsbsi3_carryin_shift): Likewise.
10235         (negsi2_carryin_compare): Likewise.
10237 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
10239         PR tree-optimization/91137
10240         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10241         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10242         Init, use and fini the above new field.
10243         (determine_base_object_1): New function.
10244         (determine_base_object): Reimplement using walk_tree.
10246 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
10248         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10249         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10250         CLEANUP_FORCE_FAST_DCE is set.
10251         * ifcvt.c (rest_of_handle_if_conversion): Pass
10252         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10253         if-conversion succeeded.
10255 2019-07-18  Richard Biener  <rguenther@suse.de>
10257         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10258         branches to make code less indented.
10260 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
10262         PR middle-end/81824
10263         * attribs.c (decls_mismatched_attributes): Simplify the logic
10264         that avoids duplicates and false positives.
10266 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
10268         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10269         data into data section when generating PIC code.
10270         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10271         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10272         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
10273         return 2 for SOM and 0 for other targets.
10275 2019-07-17  Jeff Law  <law@redhat.com>
10277         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10278         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
10279         avoid unexpected switch statement fallthru.
10281 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
10283         * config/i386/i386.md (*add<dwi>3_doubleword):
10284         Remove redundant constraints.
10285         (*add<mode>_1): Ditto.
10286         (*addhi_1): Ditto.
10287         (*addqi_1): Ditto.
10288         (*addqi_1_slp): Ditto.
10289         (*add<mode>_2): Ditto.
10290         (*addv<mode>4): Ditto.
10291         (*sub<dwi>3_doubleword): Ditto.
10292         (*sub<mode>_1): Ditto.
10293         (*subqi_1_slp): Ditto.
10294         (*sub<mode>_2): Ditto.
10295         (*subv<mode>4): Ditto.
10296         (*sub<mode>_3): Ditto.
10297         (@add<mode>3_carry): Ditto.
10298         (@sub<mode>3_carry): Ditto.
10299         (*add<mode>3_cc_overflow_1): Ditto.
10300         (*add<mode>3_zext_cc_overflow_2): Ditto.
10301         (*anddi_1): Ditto.
10302         (*and<mode>_1): Ditto.
10303         (*andqi_1): Ditto.
10304         (*andqi_1_slp): Ditto.
10305         (*anddi_2): Ditto.
10306         (*andqi_2_maybe_si): Ditto.
10307         (*and<mode>_2): Ditto.
10308         (*andqi_2_slp): Ditto.
10309         (*<code><mode>_1): Ditto.
10310         (*<code>qi_1): Ditto.
10311         (*<code>qi_1_slp): Ditto.
10312         (*<code><mode>_2): Ditto.
10313         (*<code>qi_2_slp): Ditto.
10315 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
10317         * alias.c (record_component_aliases): Do not simplify pointed-to
10318         types of ODR types.
10320 2019-07-17  Uroš Bizjak  <ubizjak@gmail.com>
10322         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10323         partial reg stall on alternative 2.
10325 2019-07-17  Richard Biener  <rguenther@suse.de>
10327         PR tree-optimization/91178
10328         * tree-ssa.c (release_defs_bitset): Iterate from higher to
10329         lower SSA names to avoid quadratic behavior in the common case.
10330         * tree-data-ref.c (split_constant_offset): Add limit argument
10331         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10332         (split_constant_offset_1): Add limit argument and use it to
10333         limit SSA def walking.  Optimize the common plus/minus case.
10335 2019-07-17  Richard Biener  <rguenther@suse.de>
10337         PR tree-optimization/91178
10338         * tree-vect-stmts.c (get_group_load_store_type): For SLP
10339         loads with a gap larger than the vector size always use
10340         VMAT_STRIDED_SLP.
10341         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10342         avoid loading vectors that are only contained in the gap
10343         and thus are not needed.
10345 2019-07-17  Richard Biener  <rguenther@suse.de>
10347         PR tree-optimization/91180
10348         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10349         computation for memset partial defs.
10351 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
10353         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10354         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10355         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10356         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10357         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10358         * omp-grid.c (grid_process_grid_body,
10359         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10360         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10361         == GF_OMP_FOR_KIND_SIMD.
10362         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10363         check_omp_nesting_restrictions, scan_omp_1_stmt,
10364         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10365         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10366         omp_find_scan): Likewise.
10367         * omp-expand.c (expand_omp_for): Likewise.
10368         * omp-general.c (omp_extract_for_data): Likewise.
10370         PR tree-optimization/91157
10371         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10372         a vector boolean with scalar mode.
10373         (expand_vector_condition): Handle first operand being a vector boolean
10374         with scalar mode.
10375         (expand_vector_operations_1): For comparisons, don't bail out early
10376         if the return type is vector boolean with scalar mode, but comparison
10377         operand type is not.
10379 2019-07-17  Richard Biener  <rguenther@suse.de>
10381         PR tree-optimization/91181
10382         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10383         IFN_LOADs as calls.
10385 2019-07-16  Uroš Bizjak  <ubizjak@gmail.com>
10387         * config/i386/i386.md (*testdi_1): Match CCZmode for
10388         constants that might have the SImode sign bit set.
10389         (*testqi_1_maybe_si): Remove "!" constraint modifier.
10390         Use correct constraints for pentium pairing.
10391         (*test<mode>_1): Ditto.
10393 2019-07-16  Jeff Law  <law@redhat.com>
10395         PR rtl-optimization/91173
10396         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10397         SSA_NAME with a constant value, fold its value into the offset
10398         and clear the base before calling gen_addr_rtx.
10400 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
10402         PR rtl-optimization/91164
10403         * dse.c (rest_of_handle_dse): If dead edges have been purged,
10404         invalidate dominance info.
10406 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10408         * read-md.h (md_reader::record_potential_iterator_use): Add a
10409         file_location parameter.
10410         * read-rtl.c (attribute_use::loc): New field.
10411         (map_attr_string): Take a file_location parameter.  Report cases
10412         in which attributes map to multiple distinct values.
10413         (apply_attribute_uses): Update call accordingly.
10414         (md_reader::handle_overloaded_name): Likewise.
10415         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
10416         nonnull strings.
10417         (record_attribute_use): Take a file_location parameter.
10418         Initialize attribute_use::loc.
10419         (md_reader::record_potential_iterator_use): Take a file_location
10420         parameter.  Update call to record_attribute_use.
10421         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10422         (rtx_reader::read_rtx_code): Likewise.
10423         (rtx_reader::read_rtx_operand): Likewise.  Record a location
10424         for implicitly-expanded empty strings.
10426 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10428         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10429         Use file_location instead of separate fields.
10430         (md_reader::set_md_ptr_loc): Take a file_location instead of a
10431         separate filename and line number.
10432         * read-md.c (ptr_loc): As above.
10433         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10434         (md_reader::fprint_md_ptr_loc): Likewise.
10435         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
10436         instead of a separate filename and line number.
10437         (md_reader::read_string): Update call accordingly.
10439 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10441         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10442         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10443         leaving the choice between SFDF and P implicit.
10444         (*mov<mode>_update2): Likewise.
10445         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10446         rather than leaving the choice betweem IBM128 and GPR implicit.
10447         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10448         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10449         QHSI implicit.
10450         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10451         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10452         * config/rs6000/vsx.md
10453         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10454         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10455         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10456         and VSX_EXTRACT_I implicit.
10458 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10460         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10461         Explicitly use <MOVEP1:MODE> for the mode attribute.
10463 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
10465         PR bootstrap/91176
10466         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10468 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
10470         PR target/91050
10471         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10472         .machine directive.
10474 2019-07-15  Uroš Bizjak  <ubizjak@gmail.com>
10476         * config/i386/i386.md (@test<mode>_ccno_1):
10477         Rename from test<mode>_ccno_1.
10478         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
10479         (*testqi_1_maybe_si): Remove modrm attribute.
10480         (*test<mode>_1): Ditto.
10481         * config/i386/i386-expand.c (ix86_split_idivmod): Use
10482         gen_test_ccno_1 and gen_extend_insn.
10484 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
10486         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10487         to 0.
10489 2019-07-15  Richard Biener  <rguenther@suse.de>
10491         PR middle-end/91162
10492         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10493         node make sure to replace all uses with something valid.
10495 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
10497         PR tree-optimization/88497
10498         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10499         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10500         function undistribute_bitref_for_vector.
10501         (undistribute_bitref_for_vector): New function.
10502         (cleanup_vinfo_map): Likewise.
10503         (sort_by_mach_mode): Likewise.
10505 2019-07-14  Uroš Bizjak  <ubizjak@gmail.com>
10507         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10508         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10509         and testdi_ccno_1 using SWI48 mode attribute.
10510         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10511         x86_64_szext_general_operand.
10512         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10513         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10514         instead of genera_operand mode attribute.
10516 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
10518         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10519         fopen and fclose to their respective types.
10520         (DotFn.invoke): Ditto.
10522 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
10524         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10525         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10526         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10527         (array_index_predicate): Remove.
10528         (analyze_function_body): Account cost for variable ofsetted array
10529         indexing.
10530         (estimate_node_size_and_time): Do not compute array index hint.
10531         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10532         (inline_read_section): Do not read array index hint.
10533         (ipa_fn_summary_write): Do not write array index hint.
10534         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10535         * ipa-cp.c (hint_time_bonus): Remove.
10536         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10537         (ipa_fnsummary): Remove array_index.
10538         * ipa-inline.c (want_inline_small_function_p): Do not use
10539         array_index.
10540         (edge_badness): Likewise.
10541         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10543 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
10545         PR target/91148
10546         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10547         superfluous "builtin function" phrasing.
10549 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
10551         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10552         Break out from ...
10553         (aliasing_component_refs_walk): Break out from ...
10554         (aliasing_component_refs_p): ... here.
10556 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
10558         PR target/91148
10559         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10560         "builtin function" phrasing.
10562 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10564         PR target/90723
10565         * recog.h (temporary_volatile_ok): New class.
10566         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10567         volatile_ok temporarily to true using temporary_volatile_ok.
10568         * expr.c (emit_block_move_via_cpymem): Likewise.
10569         * optabs.c (maybe_legitimize_operand): Likewise.
10571 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
10573         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10574         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10575         uses inside of order(concurrent) constructs.
10576         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10577         OMP_CLAUSE_ORDER is seen.
10578         * omp-low.c (struct omp_context): Add order_concurrent member.
10579         (scan_sharing_clauses): Set ctx->order_concurrent if
10580         OMP_CLAUSE_ORDER is seen.
10581         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10582         of simd order(concurrent).  Diagnose constructs not allowed inside of
10583         for order(concurrent).
10584         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10585         complaining about static double setjmp (double); or class static
10586         methods or non-global namespace setjmps.
10587         (omp_runtime_api_call): New function.
10588         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10589         order(concurrent) loops.
10591 2019-07-12  Martin Sebor  <msebor@redhat.com>
10593         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10594         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10595         * tree-vrp.c (vrp_prop::check_mem_ref): Use
10596         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10598 2019-07-12  Jan Hubicka  <jh@suse.cz>
10600         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10601         (indirect_refs_may_alias_p): ... here.
10602         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10603         mem refs in the access paths.
10605 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
10607         PR tree-optimization/89430
10608         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10609         store elimination for local variable without address escape.
10611 2019-07-12  Jeff Law  <law@redhat.com>
10613         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10614         for the ".far" section.
10616 2019-07-12  Richard Biener  <rguenther@suse.de>
10618         PR tree-optimization/91145
10619         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10620         chain check.
10622 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
10624         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10625         rather than this_state as the lowering context for the ELSE
10626         seq in a GIMPLE_EH_ELSE.
10628 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
10630         * vector-builder.h (vector_builder::elt): Allow already-supplied
10631         elements to be read back before building is complete.
10633 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10635         PR rtl-optimization/91136
10636         * df-core.c (ACCESSING REFS): Fix typos in comment.
10637         * resource.c (mark_target_live_reg): Add artificial defs that occur at
10638         the beginning of the block to the initial set of live registers.
10640 2019-07-12  Richard Biener  <rguenther@suse.de>
10642         * fold-const.h (get_array_ctor_element_at_index): Adjust.
10643         * fold-const.c (get_array_ctor_element_at_index): Add
10644         ctor_idx output parameter informing the caller where in
10645         the constructor the element was (not) found.  Add early exit
10646         for when the ctor is sorted.
10647         * gimple-fold.c (fold_array_ctor_reference): Support constant
10648         folding across multiple array elements.
10650 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10652         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10653         doesn't have location, set the current location to the function's end.
10655 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
10657         * config/aarch64/aarch64.md (*compare_condjump<mode>)
10658         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10659         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10660         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10661         * config/aarch64/aarch64-simd.md
10662         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10663         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10664         * config/aarch64/aarch64-sve.md
10665         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10666         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10668 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
10670         * doc/md.texi: Document that @ patterns can have different
10671         numbers of operands.
10672         * genemit.c (handle_overloaded_gen): Handle this case.
10673         * genopinit.c (handle_overloaded_gen): Likewise.
10674         * gensupport.c (replace_operands_with_dups): Iterate over
10675         the new rtx's format rather than the old one's.
10677 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
10679         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10680         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10681         order clause entries.
10682         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10683         * tree-pretty-print.c (dump_omp_clause): Likewise.
10684         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10685         Likewise.
10686         * omp-low.c (scan_sharing_clauses): Likewise.
10687         * tree-nested.c (convert_nonlocal_omp_clauses,
10688         convert_local_omp_clauses): Likewise.
10690 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
10692         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10693         fallthrough target of current basic block isn't the placed
10694         right next.
10696 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
10698         PR target/90980
10699         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10700         (_mm512_storeu_epi64): Likewise.
10701         (_mm512_loadu_epi32): Likewise.
10702         (_mm512_storeu_epi32): Likewise.
10703         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10704         (_mm_storeu_epi64): Likewise.
10705         (_mm256_storeu_epi32): Likewise.
10706         (_mm_storeu_epi32): Likewise.
10708 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
10710         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10712 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
10714         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10715         Handle Modula-2.
10717 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
10719         PR target/91124
10720         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10721         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
10722         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10723         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10724         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
10725         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10726         define_insns.
10727         (ufix_truncv2dfv2si2<mask_name>): Change into ...
10728         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
10729         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10730         define_insns.
10731         (sse2_cvttpd2dq<mask_name>): Change into ...
10732         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
10733         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10734         (*sse2_cvtpd2dq<mask_name>): Change into ...
10735         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
10736         Add "C" constraint to const0_operand.
10737         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10738         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10739         changes.
10741         PR target/91124
10742         * config/i386/i386-builtin-types.def
10743         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10744         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10745         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10746         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10747         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10748         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10749         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10750         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10751         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10752         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10753         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10754         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10755         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10756         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10757         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10758         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10759         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10760         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10761         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10762         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10763         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10764         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10765         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10766         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10767         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10768         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10769         __builtin_ia32_vpdpbusd_v4si_maskz,
10770         __builtin_ia32_vpdpbusds_v16si_mask,
10771         __builtin_ia32_vpdpbusds_v16si_maskz,
10772         __builtin_ia32_vpdpbusds_v8si_mask,
10773         __builtin_ia32_vpdpbusds_v8si_maskz,
10774         __builtin_ia32_vpdpbusds_v4si_mask,
10775         __builtin_ia32_vpdpbusds_v4si_maskz,
10776         __builtin_ia32_vpdpwssd_v16si_mask,
10777         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10778         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10779         __builtin_ia32_vpdpwssd_v4si_maskz,
10780         __builtin_ia32_vpdpwssds_v16si_mask,
10781         __builtin_ia32_vpdpwssds_v16si_maskz,
10782         __builtin_ia32_vpdpwssds_v8si_mask,
10783         __builtin_ia32_vpdpwssds_v8si_maskz,
10784         __builtin_ia32_vpdpwssds_v4si_mask,
10785         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10786         suffixed types rather than *_INT.
10787         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10788         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10789         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10790         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10791         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10792         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10794 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
10796         * tree-vrp.c (intersect_ranges): If we know the intersection is
10797         empty, there is no need to conservatively add anything else to
10798         the set.
10800 2019-07-11  Richard Biener  <rguenther@suse.de>
10802         PR middle-end/91131
10803         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10804         when the object is volatile and we have not cleared it even though
10805         there are no nonzero elements.
10807 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
10809         * config/rs6000/predicates.md (cint34_operand): Update
10810         SIGNED_34BIT_OFFSET_P call.
10811         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10812         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10813         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10814         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10815         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10816         argument.
10817         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10818         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10819         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10820         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10821         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10823 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
10825         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10826         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10827         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10828         (DEF_MIN_OSX_VERSION): New.
10830 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
10832         * fold-const.c (fold_relational_const): Fix folding of
10833         vector-to-scalar NE_EXPRs.
10834         (test_vector_folding): Add more tests.
10836 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
10838         PR target/91060
10839         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10840         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10841         (vec_setv2di_internal): Reexpress as...
10842         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10843         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10844         rather than gen_neon_vset_lane<mode>.
10846 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
10848         PR target/91102
10849         * lra-constraints.c (process_alt_operands): Don't match user
10850         defined regs only if they are early clobbers.
10852 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
10854         * wide-int.h (wi::lshift): Reject negative values for the fast path.
10856 2019-07-10  Richard Biener  <rguenther@suse.de>
10858         PR tree-optimization/91126
10859         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
10860         native encoding offset for BYTES_BIG_ENDIAN.
10861         (vn_reference_lookup_3): Likewise.
10863 2019-07-10  Richard Biener  <rguenther@suse.de>
10865         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
10866         LHS whenever possible.
10868 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
10870         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
10871         from ...; work also on duplicated types.
10872         (nonoverlapping_component_refs_since_match): ... here
10873         (ncr_type_uid): Break out from ...
10874         (ncr_compar): ... here; look for TYPE_UID of canonical type if
10875         available.
10876         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
10877         the types and nonoverlapping_component_refs_p_1 to disambiguate.
10879 2019-07-09  Martin Sebor  <msebor@redhat.com>
10881         PR tree-optimization/90989
10882         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
10883         optimization to just single character stores.
10885 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
10887         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
10888         Swap operands only once.
10890 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
10892         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
10893         for both call instructions.
10895 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
10897         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
10898         rather than GET_MODE_BITSIZE to better handle partial integer modes.
10900 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
10902         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
10903         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
10904         function from rs6000-logue.c back to rs6000.c.
10905         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
10907 2019-07-09  Martin Sebor  <msebor@redhat.com>
10909         PR c++/61339
10910         * auto-profile.c: Change class-key of PODs to struct and others
10911         to class.
10912         * basic-block.h: Same.
10913         * bitmap.c (bitmap_alloc): Same.
10914         * bitmap.h: Same.
10915         * builtins.c (expand_builtin_prefetch): Same.
10916         (expand_builtin_interclass_mathfn): Same.
10917         (expand_builtin_strlen): Same.
10918         (expand_builtin_mempcpy_args): Same.
10919         (expand_cmpstr): Same.
10920         (expand_builtin___clear_cache): Same.
10921         (expand_ifn_atomic_bit_test_and): Same.
10922         (expand_builtin_thread_pointer): Same.
10923         (expand_builtin_set_thread_pointer): Same.
10924         * caller-save.c (setup_save_areas): Same.
10925         (replace_reg_with_saved_mem): Same.
10926         (insert_restore): Same.
10927         (insert_save): Same.
10928         (add_used_regs): Same.
10929         * cfg.c (get_bb_copy): Same.
10930         (set_loop_copy): Same.
10931         * cfg.h: Same.
10932         * cfganal.h: Same.
10933         * cfgexpand.c (alloc_stack_frame_space): Same.
10934         (add_stack_var): Same.
10935         (add_stack_var_conflict): Same.
10936         (add_scope_conflicts_1): Same.
10937         (update_alias_info_with_stack_vars): Same.
10938         (expand_used_vars): Same.
10939         * cfghooks.c (redirect_edge_and_branch_force): Same.
10940         (delete_basic_block): Same.
10941         (split_edge): Same.
10942         (make_forwarder_block): Same.
10943         (force_nonfallthru): Same.
10944         (duplicate_block): Same.
10945         (lv_flush_pending_stmts): Same.
10946         * cfghooks.h: Same.
10947         * cfgloop.c (flow_loops_cfg_dump): Same.
10948         (flow_loop_nested_p): Same.
10949         (superloop_at_depth): Same.
10950         (get_loop_latch_edges): Same.
10951         (flow_loop_dump): Same.
10952         (flow_loops_dump): Same.
10953         (flow_loops_free): Same.
10954         (flow_loop_nodes_find): Same.
10955         (establish_preds): Same.
10956         (flow_loop_tree_node_add): Same.
10957         (flow_loop_tree_node_remove): Same.
10958         (flow_loops_find): Same.
10959         (find_subloop_latch_edge_by_profile): Same.
10960         (find_subloop_latch_edge_by_ivs): Same.
10961         (mfb_redirect_edges_in_set): Same.
10962         (form_subloop): Same.
10963         (merge_latch_edges): Same.
10964         (disambiguate_multiple_latches): Same.
10965         (disambiguate_loops_with_multiple_latches): Same.
10966         (flow_bb_inside_loop_p): Same.
10967         (glb_enum_p): Same.
10968         (get_loop_body_with_size): Same.
10969         (get_loop_body): Same.
10970         (fill_sons_in_loop): Same.
10971         (get_loop_body_in_dom_order): Same.
10972         (get_loop_body_in_custom_order): Same.
10973         (release_recorded_exits): Same.
10974         (get_loop_exit_edges): Same.
10975         (num_loop_branches): Same.
10976         (remove_bb_from_loops): Same.
10977         (find_common_loop): Same.
10978         (delete_loop): Same.
10979         (cancel_loop): Same.
10980         (verify_loop_structure): Same.
10981         (loop_preheader_edge): Same.
10982         (loop_exit_edge_p): Same.
10983         (single_exit): Same.
10984         (loop_exits_to_bb_p): Same.
10985         (loop_exits_from_bb_p): Same.
10986         (get_loop_location): Same.
10987         (record_niter_bound): Same.
10988         (get_estimated_loop_iterations_int): Same.
10989         (max_stmt_executions_int): Same.
10990         (likely_max_stmt_executions_int): Same.
10991         (get_estimated_loop_iterations): Same.
10992         (get_max_loop_iterations): Same.
10993         (get_max_loop_iterations_int): Same.
10994         (get_likely_max_loop_iterations): Same.
10995         * cfgloop.h (simple_loop_desc): Same.
10996         (get_loop): Same.
10997         (loop_depth): Same.
10998         (loop_outer): Same.
10999         (loop_iterator::next): Same.
11000         (loop_outermost): Same.
11001         * cfgloopanal.c (mark_irreducible_loops): Same.
11002         (num_loop_insns): Same.
11003         (average_num_loop_insns): Same.
11004         (expected_loop_iterations_unbounded): Same.
11005         (expected_loop_iterations): Same.
11006         (mark_loop_exit_edges): Same.
11007         (single_likely_exit): Same.
11008         * cfgloopmanip.c (fix_bb_placement): Same.
11009         (fix_bb_placements): Same.
11010         (remove_path): Same.
11011         (place_new_loop): Same.
11012         (add_loop): Same.
11013         (scale_loop_frequencies): Same.
11014         (scale_loop_profile): Same.
11015         (create_empty_if_region_on_edge): Same.
11016         (create_empty_loop_on_edge): Same.
11017         (loopify): Same.
11018         (unloop): Same.
11019         (fix_loop_placements): Same.
11020         (copy_loop_info): Same.
11021         (duplicate_loop): Same.
11022         (duplicate_subloops): Same.
11023         (loop_redirect_edge): Same.
11024         (can_duplicate_loop_p): Same.
11025         (duplicate_loop_to_header_edge): Same.
11026         (mfb_keep_just): Same.
11027         (has_preds_from_loop): Same.
11028         (create_preheader): Same.
11029         (create_preheaders): Same.
11030         (lv_adjust_loop_entry_edge): Same.
11031         (loop_version): Same.
11032         * cfgloopmanip.h: Same.
11033         * cgraph.h: Same.
11034         * cgraphbuild.c: Same.
11035         * combine.c (make_extraction): Same.
11036         * config/i386/i386-features.c: Same.
11037         * config/i386/i386-features.h: Same.
11038         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11039         (ix86_emit_outlined_ms2sysv_restore): Same.
11040         (ix86_noce_conversion_profitable_p): Same.
11041         (ix86_init_cost): Same.
11042         (ix86_simd_clone_usable): Same.
11043         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11044         Wstruct-not-pod.
11045         * coretypes.h: Same.
11046         * data-streamer-in.c (string_for_index): Change class-key of PODs
11047         to struct and others to class.
11048         (streamer_read_indexed_string): Same.
11049         (streamer_read_string): Same.
11050         (bp_unpack_indexed_string): Same.
11051         (bp_unpack_string): Same.
11052         (streamer_read_uhwi): Same.
11053         (streamer_read_hwi): Same.
11054         (streamer_read_gcov_count): Same.
11055         (streamer_read_wide_int): Same.
11056         * data-streamer.h (streamer_write_bitpack): Same.
11057         (bp_unpack_value): Same.
11058         (streamer_write_char_stream): Same.
11059         (streamer_write_hwi_in_range): Same.
11060         (streamer_write_record_start): Same.
11061         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11062         (add_cross_iteration_register_deps): Same.
11063         (build_intra_loop_deps): Same.
11064         * df-core.c (df_analyze): Same.
11065         (loop_post_order_compute): Same.
11066         (loop_inverted_post_order_compute): Same.
11067         * df-problems.c (df_rd_alloc): Same.
11068         (df_rd_simulate_one_insn): Same.
11069         (df_rd_local_compute): Same.
11070         (df_rd_init_solution): Same.
11071         (df_rd_confluence_n): Same.
11072         (df_rd_transfer_function): Same.
11073         (df_rd_free): Same.
11074         (df_rd_dump_defs_set): Same.
11075         (df_rd_top_dump): Same.
11076         (df_lr_alloc): Same.
11077         (df_lr_reset): Same.
11078         (df_lr_local_compute): Same.
11079         (df_lr_init): Same.
11080         (df_lr_confluence_n): Same.
11081         (df_lr_free): Same.
11082         (df_lr_top_dump): Same.
11083         (df_lr_verify_transfer_functions): Same.
11084         (df_live_alloc): Same.
11085         (df_live_reset): Same.
11086         (df_live_init): Same.
11087         (df_live_confluence_n): Same.
11088         (df_live_finalize): Same.
11089         (df_live_free): Same.
11090         (df_live_top_dump): Same.
11091         (df_live_verify_transfer_functions): Same.
11092         (df_mir_alloc): Same.
11093         (df_mir_reset): Same.
11094         (df_mir_init): Same.
11095         (df_mir_confluence_n): Same.
11096         (df_mir_free): Same.
11097         (df_mir_top_dump): Same.
11098         (df_word_lr_alloc): Same.
11099         (df_word_lr_reset): Same.
11100         (df_word_lr_init): Same.
11101         (df_word_lr_confluence_n): Same.
11102         (df_word_lr_free): Same.
11103         (df_word_lr_top_dump): Same.
11104         (df_md_alloc): Same.
11105         (df_md_simulate_one_insn): Same.
11106         (df_md_reset): Same.
11107         (df_md_init): Same.
11108         (df_md_free): Same.
11109         (df_md_top_dump): Same.
11110         * df-scan.c (df_insn_delete): Same.
11111         (df_insn_rescan): Same.
11112         (df_notes_rescan): Same.
11113         (df_sort_and_compress_mws): Same.
11114         (df_install_mws): Same.
11115         (df_refs_add_to_chains): Same.
11116         (df_ref_create_structure): Same.
11117         (df_ref_record): Same.
11118         (df_def_record_1): Same.
11119         (df_find_hard_reg_defs): Same.
11120         (df_uses_record): Same.
11121         (df_get_conditional_uses): Same.
11122         (df_get_call_refs): Same.
11123         (df_recompute_luids): Same.
11124         (df_get_entry_block_def_set): Same.
11125         (df_entry_block_defs_collect): Same.
11126         (df_get_exit_block_use_set): Same.
11127         (df_exit_block_uses_collect): Same.
11128         (df_mws_verify): Same.
11129         (df_bb_verify): Same.
11130         * df.h (df_scan_get_bb_info): Same.
11131         * doc/tm.texi: Same.
11132         * dse.c (record_store): Same.
11133         * dumpfile.h: Same.
11134         * emit-rtl.c (const_fixed_hasher::equal): Same.
11135         (set_mem_attributes_minus_bitpos): Same.
11136         (change_address): Same.
11137         (adjust_address_1): Same.
11138         (offset_address): Same.
11139         * emit-rtl.h: Same.
11140         * except.c (dw2_build_landing_pads): Same.
11141         (sjlj_emit_dispatch_table): Same.
11142         * explow.c (allocate_dynamic_stack_space): Same.
11143         (emit_stack_probe): Same.
11144         (probe_stack_range): Same.
11145         * expmed.c (store_bit_field_using_insv): Same.
11146         (store_bit_field_1): Same.
11147         (store_integral_bit_field): Same.
11148         (extract_bit_field_using_extv): Same.
11149         (extract_bit_field_1): Same.
11150         (emit_cstore): Same.
11151         * expr.c (emit_block_move_via_cpymem): Same.
11152         (expand_cmpstrn_or_cmpmem): Same.
11153         (set_storage_via_setmem): Same.
11154         (emit_single_push_insn_1): Same.
11155         (expand_assignment): Same.
11156         (store_constructor): Same.
11157         (expand_expr_real_2): Same.
11158         (expand_expr_real_1): Same.
11159         (try_casesi): Same.
11160         * flags.h: Same.
11161         * function.c (try_fit_stack_local): Same.
11162         (assign_stack_local_1): Same.
11163         (assign_stack_local): Same.
11164         (cut_slot_from_list): Same.
11165         (insert_slot_to_list): Same.
11166         (max_slot_level): Same.
11167         (move_slot_to_level): Same.
11168         (temp_address_hasher::equal): Same.
11169         (remove_unused_temp_slot_addresses): Same.
11170         (assign_temp): Same.
11171         (combine_temp_slots): Same.
11172         (update_temp_slot_address): Same.
11173         (preserve_temp_slots): Same.
11174         * function.h: Same.
11175         * fwprop.c: Same.
11176         * gcc-rich-location.h: Same.
11177         * gcov.c: Same.
11178         * genattrtab.c (check_attr_test): Same.
11179         (check_attr_value): Same.
11180         (convert_set_attr_alternative): Same.
11181         (convert_set_attr): Same.
11182         (check_defs): Same.
11183         (copy_boolean): Same.
11184         (get_attr_value): Same.
11185         (expand_delays): Same.
11186         (make_length_attrs): Same.
11187         (min_fn): Same.
11188         (make_alternative_compare): Same.
11189         (simplify_test_exp): Same.
11190         (tests_attr_p): Same.
11191         (get_attr_order): Same.
11192         (clear_struct_flag): Same.
11193         (gen_attr): Same.
11194         (compares_alternatives_p): Same.
11195         (gen_insn): Same.
11196         (gen_delay): Same.
11197         (find_attrs_to_cache): Same.
11198         (write_test_expr): Same.
11199         (walk_attr_value): Same.
11200         (write_attr_get): Same.
11201         (eliminate_known_true): Same.
11202         (write_insn_cases): Same.
11203         (write_attr_case): Same.
11204         (write_attr_valueq): Same.
11205         (write_attr_value): Same.
11206         (write_dummy_eligible_delay): Same.
11207         (next_comma_elt): Same.
11208         (find_attr): Same.
11209         (make_internal_attr): Same.
11210         (copy_rtx_unchanging): Same.
11211         (gen_insn_reserv): Same.
11212         (check_tune_attr): Same.
11213         (make_automaton_attrs): Same.
11214         (handle_arg): Same.
11215         * genextract.c (gen_insn): Same.
11216         (VEC_char_to_string): Same.
11217         * genmatch.c (print_operand): Same.
11218         (lower): Same.
11219         (parser::parse_operation): Same.
11220         (parser::parse_capture): Same.
11221         (parser::parse_c_expr): Same.
11222         (parser::parse_simplify): Same.
11223         (main): Same.
11224         * genoutput.c (output_operand_data): Same.
11225         (output_get_insn_name): Same.
11226         (compare_operands): Same.
11227         (place_operands): Same.
11228         (process_template): Same.
11229         (validate_insn_alternatives): Same.
11230         (validate_insn_operands): Same.
11231         (gen_expand): Same.
11232         (note_constraint): Same.
11233         * genpreds.c (write_one_predicate_function): Same.
11234         (add_constraint): Same.
11235         (process_define_register_constraint): Same.
11236         (write_lookup_constraint_1): Same.
11237         (write_lookup_constraint_array): Same.
11238         (write_insn_constraint_len): Same.
11239         (write_reg_class_for_constraint_1): Same.
11240         (write_constraint_satisfied_p_array): Same.
11241         * genrecog.c (optimize_subroutine_group): Same.
11242         * gensupport.c (process_define_predicate): Same.
11243         (queue_pattern): Same.
11244         (remove_from_queue): Same.
11245         (process_rtx): Same.
11246         (is_predicable): Same.
11247         (change_subst_attribute): Same.
11248         (subst_pattern_match): Same.
11249         (alter_constraints): Same.
11250         (alter_attrs_for_insn): Same.
11251         (shift_output_template): Same.
11252         (alter_output_for_subst_insn): Same.
11253         (process_one_cond_exec): Same.
11254         (subst_dup): Same.
11255         (process_define_cond_exec): Same.
11256         (mnemonic_htab_callback): Same.
11257         (gen_mnemonic_attr): Same.
11258         (read_md_rtx): Same.
11259         * ggc-page.c: Same.
11260         * gimple-loop-interchange.cc (dump_reduction): Same.
11261         (dump_induction): Same.
11262         (loop_cand::~loop_cand): Same.
11263         (free_data_refs_with_aux): Same.
11264         (tree_loop_interchange::interchange_loops): Same.
11265         (tree_loop_interchange::map_inductions_to_loop): Same.
11266         (tree_loop_interchange::move_code_to_inner_loop): Same.
11267         (compute_access_stride): Same.
11268         (compute_access_strides): Same.
11269         (proper_loop_form_for_interchange): Same.
11270         (tree_loop_interchange_compute_ddrs): Same.
11271         (prune_datarefs_not_in_loop): Same.
11272         (prepare_data_references): Same.
11273         (pass_linterchange::execute): Same.
11274         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11275         (unroll_jam_possible_p): Same.
11276         (fuse_loops): Same.
11277         (adjust_unroll_factor): Same.
11278         (tree_loop_unroll_and_jam): Same.
11279         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11280         (loop_versioning::expensive_stmt_p): Same.
11281         (loop_versioning::version_for_unity): Same.
11282         (loop_versioning::dump_inner_likelihood): Same.
11283         (loop_versioning::find_per_loop_multiplication): Same.
11284         (loop_versioning::analyze_term_using_scevs): Same.
11285         (loop_versioning::record_address_fragment): Same.
11286         (loop_versioning::analyze_expr): Same.
11287         (loop_versioning::analyze_blocks): Same.
11288         (loop_versioning::prune_conditions): Same.
11289         (loop_versioning::merge_loop_info): Same.
11290         (loop_versioning::add_loop_to_queue): Same.
11291         (loop_versioning::decide_whether_loop_is_versionable): Same.
11292         (loop_versioning::make_versioning_decisions): Same.
11293         (loop_versioning::implement_versioning_decisions): Same.
11294         * gimple-ssa-evrp-analyze.c
11295         (evrp_range_analyzer::record_ranges_from_phis): Same.
11296         * gimple-ssa-store-merging.c (split_store::split_store): Same.
11297         (count_multiple_uses): Same.
11298         (split_group): Same.
11299         (imm_store_chain_info::output_merged_store): Same.
11300         (pass_store_merging::process_store): Same.
11301         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11302         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11303         (is_max): Same.
11304         (alloca_call_type): Same.
11305         (pass_walloca::execute): Same.
11306         * gimple-streamer-in.c (input_phi): Same.
11307         (input_gimple_stmt): Same.
11308         * gimple-streamer.h: Same.
11309         * godump.c (go_force_record_alignment): Same.
11310         (go_format_type): Same.
11311         (go_output_type): Same.
11312         (go_output_fndecl): Same.
11313         (go_output_typedef): Same.
11314         (keyword_hash_init): Same.
11315         (find_dummy_types): Same.
11316         * graph.c (draw_cfg_nodes_no_loops): Same.
11317         (draw_cfg_nodes_for_loop): Same.
11318         * hard-reg-set.h (hard_reg_set_iter_next): Same.
11319         * hsa-brig.c: Same.
11320         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11321         * hsa-dump.c (dump_hsa_cfun): Same.
11322         * hsa-gen.c (gen_function_def_parameters): Same.
11323         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11324         * input.c (dump_line_table_statistics): Same.
11325         (test_lexer): Same.
11326         * input.h: Same.
11327         * internal-fn.c (get_multi_vector_move): Same.
11328         (expand_load_lanes_optab_fn): Same.
11329         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11330         (expand_GOMP_SIMT_EXIT): Same.
11331         (expand_GOMP_SIMT_LAST_LANE): Same.
11332         (expand_GOMP_SIMT_ORDERED_PRED): Same.
11333         (expand_GOMP_SIMT_VOTE_ANY): Same.
11334         (expand_GOMP_SIMT_XCHG_BFLY): Same.
11335         (expand_GOMP_SIMT_XCHG_IDX): Same.
11336         (expand_addsub_overflow): Same.
11337         (expand_neg_overflow): Same.
11338         (expand_mul_overflow): Same.
11339         (expand_call_mem_ref): Same.
11340         (expand_mask_load_optab_fn): Same.
11341         (expand_scatter_store_optab_fn): Same.
11342         (expand_gather_load_optab_fn): Same.
11343         * ipa-cp.c (ipa_get_parm_lattices): Same.
11344         (print_all_lattices): Same.
11345         (ignore_edge_p): Same.
11346         (build_toporder_info): Same.
11347         (free_toporder_info): Same.
11348         (push_node_to_stack): Same.
11349         (ipcp_lattice<valtype>::set_contains_variable): Same.
11350         (set_agg_lats_to_bottom): Same.
11351         (ipcp_bits_lattice::meet_with): Same.
11352         (set_single_call_flag): Same.
11353         (initialize_node_lattices): Same.
11354         (ipa_get_jf_ancestor_result): Same.
11355         (ipcp_verify_propagated_values): Same.
11356         (propagate_scalar_across_jump_function): Same.
11357         (propagate_context_across_jump_function): Same.
11358         (propagate_bits_across_jump_function): Same.
11359         (ipa_vr_operation_and_type_effects): Same.
11360         (propagate_vr_across_jump_function): Same.
11361         (set_check_aggs_by_ref): Same.
11362         (set_chain_of_aglats_contains_variable): Same.
11363         (merge_aggregate_lattices): Same.
11364         (agg_pass_through_permissible_p): Same.
11365         (propagate_aggs_across_jump_function): Same.
11366         (call_passes_through_thunk_p): Same.
11367         (propagate_constants_across_call): Same.
11368         (devirtualization_time_bonus): Same.
11369         (good_cloning_opportunity_p): Same.
11370         (context_independent_aggregate_values): Same.
11371         (gather_context_independent_values): Same.
11372         (perform_estimation_of_a_value): Same.
11373         (estimate_local_effects): Same.
11374         (value_topo_info<valtype>::add_val): Same.
11375         (add_all_node_vals_to_toposort): Same.
11376         (value_topo_info<valtype>::propagate_effects): Same.
11377         (ipcp_propagate_stage): Same.
11378         (ipcp_discover_new_direct_edges): Same.
11379         (same_node_or_its_all_contexts_clone_p): Same.
11380         (cgraph_edge_brings_value_p): Same.
11381         (gather_edges_for_value): Same.
11382         (create_specialized_node): Same.
11383         (find_more_scalar_values_for_callers_subset): Same.
11384         (find_more_contexts_for_caller_subset): Same.
11385         (copy_plats_to_inter): Same.
11386         (intersect_aggregates_with_edge): Same.
11387         (find_aggregate_values_for_callers_subset): Same.
11388         (cgraph_edge_brings_all_agg_vals_for_node): Same.
11389         (decide_about_value): Same.
11390         (decide_whether_version_node): Same.
11391         (spread_undeadness): Same.
11392         (identify_dead_nodes): Same.
11393         (ipcp_store_vr_results): Same.
11394         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11395         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11396         (redirect_to_unreachable): Same.
11397         (edge_set_predicate): Same.
11398         (evaluate_conditions_for_known_args): Same.
11399         (evaluate_properties_for_edge): Same.
11400         (ipa_fn_summary_t::duplicate): Same.
11401         (ipa_call_summary_t::duplicate): Same.
11402         (dump_ipa_call_summary): Same.
11403         (ipa_dump_fn_summary): Same.
11404         (eliminated_by_inlining_prob): Same.
11405         (set_cond_stmt_execution_predicate): Same.
11406         (set_switch_stmt_execution_predicate): Same.
11407         (compute_bb_predicates): Same.
11408         (will_be_nonconstant_expr_predicate): Same.
11409         (phi_result_unknown_predicate): Same.
11410         (analyze_function_body): Same.
11411         (compute_fn_summary): Same.
11412         (estimate_edge_devirt_benefit): Same.
11413         (estimate_edge_size_and_time): Same.
11414         (estimate_calls_size_and_time): Same.
11415         (estimate_node_size_and_time): Same.
11416         (remap_edge_change_prob): Same.
11417         (remap_edge_summaries): Same.
11418         (ipa_merge_fn_summary_after_inlining): Same.
11419         (ipa_fn_summary_generate): Same.
11420         (inline_read_section): Same.
11421         (ipa_fn_summary_read): Same.
11422         (ipa_fn_summary_write): Same.
11423         * ipa-fnsummary.h: Same.
11424         * ipa-hsa.c (ipa_hsa_read_section): Same.
11425         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11426         * ipa-icf.c (sem_function::param_used_p): Same.
11427         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11428         * ipa-inline.c (edge_badness): Same.
11429         (inline_small_functions): Same.
11430         * ipa-polymorphic-call.c
11431         (ipa_polymorphic_call_context::stream_out): Same.
11432         * ipa-predicate.c (predicate::remap_after_duplication): Same.
11433         (predicate::remap_after_inlining): Same.
11434         (predicate::stream_out): Same.
11435         * ipa-predicate.h: Same.
11436         * ipa-profile.c (ipa_profile_read_summary): Same.
11437         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11438         (count_formal_params): Same.
11439         (ipa_dump_param): Same.
11440         (ipa_alloc_node_params): Same.
11441         (ipa_print_node_jump_functions_for_edge): Same.
11442         (ipa_print_node_jump_functions): Same.
11443         (ipa_load_from_parm_agg): Same.
11444         (get_ancestor_addr_info): Same.
11445         (ipa_compute_jump_functions_for_edge): Same.
11446         (ipa_analyze_virtual_call_uses): Same.
11447         (ipa_analyze_stmt_uses): Same.
11448         (ipa_analyze_params_uses_in_bb): Same.
11449         (update_jump_functions_after_inlining): Same.
11450         (try_decrement_rdesc_refcount): Same.
11451         (ipa_impossible_devirt_target): Same.
11452         (update_indirect_edges_after_inlining): Same.
11453         (combine_controlled_uses_counters): Same.
11454         (ipa_edge_args_sum_t::duplicate): Same.
11455         (ipa_write_jump_function): Same.
11456         (ipa_write_indirect_edge_info): Same.
11457         (ipa_write_node_info): Same.
11458         (ipa_read_edge_info): Same.
11459         (ipa_prop_read_section): Same.
11460         (read_replacements_section): Same.
11461         * ipa-prop.h (ipa_get_param_count): Same.
11462         (ipa_get_param): Same.
11463         (ipa_get_type): Same.
11464         (ipa_get_param_move_cost): Same.
11465         (ipa_set_param_used): Same.
11466         (ipa_get_controlled_uses): Same.
11467         (ipa_set_controlled_uses): Same.
11468         (ipa_get_cs_argument_count): Same.
11469         * ipa-pure-const.c (analyze_function): Same.
11470         (pure_const_read_summary): Same.
11471         * ipa-ref.h: Same.
11472         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11473         * ipa-split.c (test_nonssa_use): Same.
11474         (dump_split_point): Same.
11475         (dominated_by_forbidden): Same.
11476         (split_part_set_ssa_name_p): Same.
11477         (find_split_points): Same.
11478         * ira-build.c (finish_loop_tree_nodes): Same.
11479         (low_pressure_loop_node_p): Same.
11480         * ira-color.c (ira_reuse_stack_slot): Same.
11481         * ira-int.h: Same.
11482         * ira.c (setup_reg_equiv): Same.
11483         (print_insn_chain): Same.
11484         (ira): Same.
11485         * loop-doloop.c (doloop_condition_get): Same.
11486         (add_test): Same.
11487         (record_reg_sets): Same.
11488         (doloop_optimize): Same.
11489         * loop-init.c (loop_optimizer_init): Same.
11490         (fix_loop_structure): Same.
11491         * loop-invariant.c (merge_identical_invariants): Same.
11492         (compute_always_reached): Same.
11493         (find_exits): Same.
11494         (may_assign_reg_p): Same.
11495         (find_invariants_bb): Same.
11496         (find_invariants_body): Same.
11497         (replace_uses): Same.
11498         (can_move_invariant_reg): Same.
11499         (free_inv_motion_data): Same.
11500         (move_single_loop_invariants): Same.
11501         (change_pressure): Same.
11502         (mark_ref_regs): Same.
11503         (calculate_loop_reg_pressure): Same.
11504         * loop-iv.c (biv_entry_hasher::equal): Same.
11505         (iv_extend_to_rtx_code): Same.
11506         (check_iv_ref_table_size): Same.
11507         (clear_iv_info): Same.
11508         (latch_dominating_def): Same.
11509         (iv_get_reaching_def): Same.
11510         (iv_constant): Same.
11511         (iv_subreg): Same.
11512         (iv_extend): Same.
11513         (iv_neg): Same.
11514         (iv_add): Same.
11515         (iv_mult): Same.
11516         (get_biv_step): Same.
11517         (record_iv): Same.
11518         (analyzed_for_bivness_p): Same.
11519         (record_biv): Same.
11520         (iv_analyze_biv): Same.
11521         (iv_analyze_expr): Same.
11522         (iv_analyze_def): Same.
11523         (iv_analyze_op): Same.
11524         (iv_analyze): Same.
11525         (iv_analyze_result): Same.
11526         (biv_p): Same.
11527         (eliminate_implied_conditions): Same.
11528         (simplify_using_initial_values): Same.
11529         (shorten_into_mode): Same.
11530         (canonicalize_iv_subregs): Same.
11531         (determine_max_iter): Same.
11532         (check_simple_exit): Same.
11533         (find_simple_exit): Same.
11534         (get_simple_loop_desc): Same.
11535         * loop-unroll.c (report_unroll): Same.
11536         (decide_unrolling): Same.
11537         (unroll_loops): Same.
11538         (loop_exit_at_end_p): Same.
11539         (decide_unroll_constant_iterations): Same.
11540         (unroll_loop_constant_iterations): Same.
11541         (compare_and_jump_seq): Same.
11542         (unroll_loop_runtime_iterations): Same.
11543         (decide_unroll_stupid): Same.
11544         (unroll_loop_stupid): Same.
11545         (referenced_in_one_insn_in_loop_p): Same.
11546         (reset_debug_uses_in_loop): Same.
11547         (analyze_iv_to_split_insn): Same.
11548         * lra-eliminations.c (lra_debug_elim_table): Same.
11549         (setup_can_eliminate): Same.
11550         (form_sum): Same.
11551         (lra_get_elimination_hard_regno): Same.
11552         (lra_eliminate_regs_1): Same.
11553         (eliminate_regs_in_insn): Same.
11554         (update_reg_eliminate): Same.
11555         (init_elimination): Same.
11556         (lra_eliminate): Same.
11557         * lra-int.h: Same.
11558         * lra-lives.c (initiate_live_solver): Same.
11559         * lra-remat.c (create_remat_bb_data): Same.
11560         * lra-spills.c (lra_spill): Same.
11561         * lra.c (lra_set_insn_recog_data): Same.
11562         (lra_set_used_insn_alternative_by_uid): Same.
11563         (init_reg_info): Same.
11564         (expand_reg_info): Same.
11565         * lto-cgraph.c (output_symtab): Same.
11566         (read_identifier): Same.
11567         (get_alias_symbol): Same.
11568         (input_node): Same.
11569         (input_varpool_node): Same.
11570         (input_ref): Same.
11571         (input_edge): Same.
11572         (input_cgraph_1): Same.
11573         (input_refs): Same.
11574         (input_symtab): Same.
11575         (input_offload_tables): Same.
11576         (output_cgraph_opt_summary): Same.
11577         (input_edge_opt_summary): Same.
11578         (input_cgraph_opt_section): Same.
11579         * lto-section-in.c (lto_free_raw_section_data): Same.
11580         (lto_create_simple_input_block): Same.
11581         (lto_free_function_in_decl_state_for_node): Same.
11582         * lto-streamer-in.c (lto_tag_check_set): Same.
11583         (lto_location_cache::revert_location_cache): Same.
11584         (lto_location_cache::input_location): Same.
11585         (lto_input_location): Same.
11586         (stream_input_location_now): Same.
11587         (lto_input_tree_ref): Same.
11588         (lto_input_eh_catch_list): Same.
11589         (input_eh_region): Same.
11590         (lto_init_eh): Same.
11591         (make_new_block): Same.
11592         (input_cfg): Same.
11593         (fixup_call_stmt_edges): Same.
11594         (input_struct_function_base): Same.
11595         (input_function): Same.
11596         (lto_read_body_or_constructor): Same.
11597         (lto_read_tree_1): Same.
11598         (lto_read_tree): Same.
11599         (lto_input_scc): Same.
11600         (lto_input_tree_1): Same.
11601         (lto_input_toplevel_asms): Same.
11602         (lto_input_mode_table): Same.
11603         (lto_reader_init): Same.
11604         (lto_data_in_create): Same.
11605         * lto-streamer-out.c (output_cfg): Same.
11606         * lto-streamer.h: Same.
11607         * modulo-sched.c (duplicate_insns_of_cycles): Same.
11608         (generate_prolog_epilog): Same.
11609         (mark_loop_unsched): Same.
11610         (dump_insn_location): Same.
11611         (loop_canon_p): Same.
11612         (sms_schedule): Same.
11613         * omp-expand.c (expand_omp_for_ordered_loops): Same.
11614         (expand_omp_for_generic): Same.
11615         (expand_omp_for_static_nochunk): Same.
11616         (expand_omp_for_static_chunk): Same.
11617         (expand_omp_simd): Same.
11618         (expand_omp_taskloop_for_inner): Same.
11619         (expand_oacc_for): Same.
11620         (expand_omp_atomic_pipeline): Same.
11621         (mark_loops_in_oacc_kernels_region): Same.
11622         * omp-offload.c (oacc_xform_loop): Same.
11623         * omp-simd-clone.c (simd_clone_adjust): Same.
11624         * optabs-query.c (get_traditional_extraction_insn): Same.
11625         * optabs.c (expand_vector_broadcast): Same.
11626         (expand_binop_directly): Same.
11627         (expand_twoval_unop): Same.
11628         (expand_twoval_binop): Same.
11629         (expand_unop_direct): Same.
11630         (emit_indirect_jump): Same.
11631         (emit_conditional_move): Same.
11632         (emit_conditional_neg_or_complement): Same.
11633         (emit_conditional_add): Same.
11634         (vector_compare_rtx): Same.
11635         (expand_vec_perm_1): Same.
11636         (expand_vec_perm_const): Same.
11637         (expand_vec_cond_expr): Same.
11638         (expand_vec_series_expr): Same.
11639         (maybe_emit_atomic_exchange): Same.
11640         (maybe_emit_sync_lock_test_and_set): Same.
11641         (expand_atomic_compare_and_swap): Same.
11642         (expand_atomic_load): Same.
11643         (expand_atomic_store): Same.
11644         (maybe_emit_op): Same.
11645         (valid_multiword_target_p): Same.
11646         (create_integer_operand): Same.
11647         (maybe_legitimize_operand_same_code): Same.
11648         (maybe_legitimize_operand): Same.
11649         (create_convert_operand_from_type): Same.
11650         (can_reuse_operands_p): Same.
11651         (maybe_legitimize_operands): Same.
11652         (maybe_gen_insn): Same.
11653         (maybe_expand_insn): Same.
11654         (maybe_expand_jump_insn): Same.
11655         (expand_insn): Same.
11656         * optabs.h (create_expand_operand): Same.
11657         (create_fixed_operand): Same.
11658         (create_output_operand): Same.
11659         (create_input_operand): Same.
11660         (create_convert_operand_to): Same.
11661         (create_convert_operand_from): Same.
11662         * optinfo.h: Same.
11663         * poly-int.h: Same.
11664         * predict.c (optimize_insn_for_speed_p): Same.
11665         (optimize_loop_for_size_p): Same.
11666         (optimize_loop_for_speed_p): Same.
11667         (optimize_loop_nest_for_speed_p): Same.
11668         (get_base_value): Same.
11669         (predicted_by_loop_heuristics_p): Same.
11670         (predict_extra_loop_exits): Same.
11671         (predict_loops): Same.
11672         (predict_paths_for_bb): Same.
11673         (predict_paths_leading_to): Same.
11674         (propagate_freq): Same.
11675         (pass_profile::execute): Same.
11676         * predict.h: Same.
11677         * profile-count.c (profile_count::differs_from_p): Same.
11678         (profile_probability::differs_lot_from_p): Same.
11679         * profile-count.h: Same.
11680         * profile.c (branch_prob): Same.
11681         * regrename.c (free_chain_data): Same.
11682         (mark_conflict): Same.
11683         (create_new_chain): Same.
11684         (merge_overlapping_regs): Same.
11685         (init_rename_info): Same.
11686         (merge_chains): Same.
11687         (regrename_analyze): Same.
11688         (regrename_do_replace): Same.
11689         (scan_rtx_reg): Same.
11690         (record_out_operands): Same.
11691         (build_def_use): Same.
11692         * regrename.h: Same.
11693         * reload.h: Same.
11694         * reload1.c (init_reload): Same.
11695         (maybe_fix_stack_asms): Same.
11696         (copy_reloads): Same.
11697         (count_pseudo): Same.
11698         (count_spilled_pseudo): Same.
11699         (find_reg): Same.
11700         (find_reload_regs): Same.
11701         (select_reload_regs): Same.
11702         (spill_hard_reg): Same.
11703         (fixup_eh_region_note): Same.
11704         (set_reload_reg): Same.
11705         (allocate_reload_reg): Same.
11706         (compute_reload_subreg_offset): Same.
11707         (reload_adjust_reg_for_icode): Same.
11708         (emit_input_reload_insns): Same.
11709         (emit_output_reload_insns): Same.
11710         (do_input_reload): Same.
11711         (inherit_piecemeal_p): Same.
11712         * rtl.h: Same.
11713         * sanopt.c (maybe_get_dominating_check): Same.
11714         (maybe_optimize_ubsan_ptr_ifn): Same.
11715         (can_remove_asan_check): Same.
11716         (maybe_optimize_asan_check_ifn): Same.
11717         (sanopt_optimize_walker): Same.
11718         * sched-deps.c (add_dependence_list): Same.
11719         (chain_to_prev_insn): Same.
11720         (add_insn_mem_dependence): Same.
11721         (create_insn_reg_set): Same.
11722         (maybe_extend_reg_info_p): Same.
11723         (sched_analyze_reg): Same.
11724         (sched_analyze_1): Same.
11725         (get_implicit_reg_pending_clobbers): Same.
11726         (chain_to_prev_insn_p): Same.
11727         (deps_analyze_insn): Same.
11728         (deps_start_bb): Same.
11729         (sched_free_deps): Same.
11730         (init_deps): Same.
11731         (init_deps_reg_last): Same.
11732         (free_deps): Same.
11733         * sched-ebb.c: Same.
11734         * sched-int.h: Same.
11735         * sched-rgn.c (add_branch_dependences): Same.
11736         (concat_insn_mem_list): Same.
11737         (deps_join): Same.
11738         (sched_rgn_compute_dependencies): Same.
11739         * sel-sched-ir.c (reset_target_context): Same.
11740         (copy_deps_context): Same.
11741         (init_id_from_df): Same.
11742         (has_dependence_p): Same.
11743         (change_loops_latches): Same.
11744         (bb_top_order_comparator): Same.
11745         (make_region_from_loop_preheader): Same.
11746         (sel_init_pipelining): Same.
11747         (get_loop_nest_for_rgn): Same.
11748         (make_regions_from_the_rest): Same.
11749         (sel_is_loop_preheader_p): Same.
11750         * sel-sched-ir.h (inner_loop_header_p): Same.
11751         (get_all_loop_exits): Same.
11752         * selftest.h: Same.
11753         * sese.c (sese_build_liveouts): Same.
11754         (sese_insert_phis_for_liveouts): Same.
11755         * sese.h (defined_in_sese_p): Same.
11756         * sreal.c (sreal::stream_out): Same.
11757         * sreal.h: Same.
11758         * streamer-hooks.h: Same.
11759         * target-globals.c (save_target_globals): Same.
11760         * target-globals.h: Same.
11761         * target.def: Same.
11762         * target.h: Same.
11763         * targhooks.c (default_has_ifunc_p): Same.
11764         (default_empty_mask_is_expensive): Same.
11765         (default_init_cost): Same.
11766         * targhooks.h: Same.
11767         * toplev.c: Same.
11768         * tree-affine.c (aff_combination_mult): Same.
11769         (aff_combination_expand): Same.
11770         (aff_combination_constant_multiple_p): Same.
11771         * tree-affine.h: Same.
11772         * tree-cfg.c (build_gimple_cfg): Same.
11773         (replace_loop_annotate_in_block): Same.
11774         (replace_uses_by): Same.
11775         (remove_bb): Same.
11776         (dump_cfg_stats): Same.
11777         (gimple_duplicate_sese_region): Same.
11778         (gimple_duplicate_sese_tail): Same.
11779         (move_block_to_fn): Same.
11780         (replace_block_vars_by_duplicates): Same.
11781         (move_sese_region_to_fn): Same.
11782         (print_loops_bb): Same.
11783         (print_loop): Same.
11784         (print_loops): Same.
11785         (debug): Same.
11786         (debug_loops): Same.
11787         * tree-cfg.h: Same.
11788         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11789         (chrec_fold_multiply_poly_poly): Same.
11790         (chrec_evaluate): Same.
11791         (chrec_component_in_loop_num): Same.
11792         (reset_evolution_in_loop): Same.
11793         (is_multivariate_chrec): Same.
11794         (chrec_contains_symbols): Same.
11795         (nb_vars_in_chrec): Same.
11796         (chrec_convert_1): Same.
11797         (chrec_convert_aggressive): Same.
11798         * tree-chrec.h: Same.
11799         * tree-core.h: Same.
11800         * tree-data-ref.c (dump_data_dependence_relation): Same.
11801         (canonicalize_base_object_address): Same.
11802         (data_ref_compare_tree): Same.
11803         (prune_runtime_alias_test_list): Same.
11804         (get_segment_min_max): Same.
11805         (create_intersect_range_checks): Same.
11806         (conflict_fn_no_dependence): Same.
11807         (object_address_invariant_in_loop_p): Same.
11808         (analyze_ziv_subscript): Same.
11809         (analyze_siv_subscript_cst_affine): Same.
11810         (analyze_miv_subscript): Same.
11811         (analyze_overlapping_iterations): Same.
11812         (build_classic_dist_vector_1): Same.
11813         (add_other_self_distances): Same.
11814         (same_access_functions): Same.
11815         (build_classic_dir_vector): Same.
11816         (subscript_dependence_tester_1): Same.
11817         (subscript_dependence_tester): Same.
11818         (access_functions_are_affine_or_constant_p): Same.
11819         (get_references_in_stmt): Same.
11820         (loop_nest_has_data_refs): Same.
11821         (graphite_find_data_references_in_stmt): Same.
11822         (find_data_references_in_bb): Same.
11823         (get_base_for_alignment): Same.
11824         (find_loop_nest_1): Same.
11825         (find_loop_nest): Same.
11826         * tree-data-ref.h (dr_alignment): Same.
11827         (ddr_dependence_level): Same.
11828         * tree-if-conv.c (fold_build_cond_expr): Same.
11829         (add_to_predicate_list): Same.
11830         (add_to_dst_predicate_list): Same.
11831         (phi_convertible_by_degenerating_args): Same.
11832         (idx_within_array_bound): Same.
11833         (all_preds_critical_p): Same.
11834         (pred_blocks_visited_p): Same.
11835         (predicate_bbs): Same.
11836         (build_region): Same.
11837         (if_convertible_loop_p_1): Same.
11838         (is_cond_scalar_reduction): Same.
11839         (predicate_scalar_phi): Same.
11840         (remove_conditions_and_labels): Same.
11841         (combine_blocks): Same.
11842         (version_loop_for_if_conversion): Same.
11843         (versionable_outer_loop_p): Same.
11844         (ifcvt_local_dce): Same.
11845         (tree_if_conversion): Same.
11846         (pass_if_conversion::gate): Same.
11847         * tree-if-conv.h: Same.
11848         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11849         * tree-loop-distribution.c (bb_top_order_cmp): Same.
11850         (free_rdg): Same.
11851         (stmt_has_scalar_dependences_outside_loop): Same.
11852         (copy_loop_before): Same.
11853         (create_bb_after_loop): Same.
11854         (const_with_all_bytes_same): Same.
11855         (generate_memset_builtin): Same.
11856         (generate_memcpy_builtin): Same.
11857         (destroy_loop): Same.
11858         (build_rdg_partition_for_vertex): Same.
11859         (compute_access_range): Same.
11860         (data_ref_segment_size): Same.
11861         (latch_dominated_by_data_ref): Same.
11862         (compute_alias_check_pairs): Same.
11863         (fuse_memset_builtins): Same.
11864         (finalize_partitions): Same.
11865         (find_seed_stmts_for_distribution): Same.
11866         (prepare_perfect_loop_nest): Same.
11867         * tree-parloops.c (lambda_transform_legal_p): Same.
11868         (loop_parallel_p): Same.
11869         (reduc_stmt_res): Same.
11870         (add_field_for_name): Same.
11871         (create_call_for_reduction_1): Same.
11872         (replace_uses_in_bb_by): Same.
11873         (transform_to_exit_first_loop_alt): Same.
11874         (try_transform_to_exit_first_loop_alt): Same.
11875         (transform_to_exit_first_loop): Same.
11876         (num_phis): Same.
11877         (gen_parallel_loop): Same.
11878         (gather_scalar_reductions): Same.
11879         (get_omp_data_i_param): Same.
11880         (try_create_reduction_list): Same.
11881         (oacc_entry_exit_single_gang): Same.
11882         (parallelize_loops): Same.
11883         * tree-pass.h: Same.
11884         * tree-predcom.c (determine_offset): Same.
11885         (last_always_executed_block): Same.
11886         (split_data_refs_to_components): Same.
11887         (suitable_component_p): Same.
11888         (valid_initializer_p): Same.
11889         (find_looparound_phi): Same.
11890         (insert_looparound_copy): Same.
11891         (add_looparound_copies): Same.
11892         (determine_roots_comp): Same.
11893         (predcom_tmp_var): Same.
11894         (initialize_root_vars): Same.
11895         (initialize_root_vars_store_elim_1): Same.
11896         (initialize_root_vars_store_elim_2): Same.
11897         (finalize_eliminated_stores): Same.
11898         (initialize_root_vars_lm): Same.
11899         (remove_stmt): Same.
11900         (determine_unroll_factor): Same.
11901         (execute_pred_commoning_cbck): Same.
11902         (base_names_in_chain_on): Same.
11903         (combine_chains): Same.
11904         (pcom_stmt_dominates_stmt_p): Same.
11905         (try_combine_chains): Same.
11906         (prepare_initializers_chain_store_elim): Same.
11907         (prepare_initializers_chain): Same.
11908         (prepare_initializers): Same.
11909         (prepare_finalizers_chain): Same.
11910         (prepare_finalizers): Same.
11911         (insert_init_seqs): Same.
11912         * tree-scalar-evolution.c (loop_phi_node_p): Same.
11913         (compute_overall_effect_of_inner_loop): Same.
11914         (add_to_evolution_1): Same.
11915         (add_to_evolution): Same.
11916         (follow_ssa_edge_binary): Same.
11917         (follow_ssa_edge_expr): Same.
11918         (backedge_phi_arg_p): Same.
11919         (follow_ssa_edge_in_condition_phi_branch): Same.
11920         (follow_ssa_edge_in_condition_phi): Same.
11921         (follow_ssa_edge_inner_loop_phi): Same.
11922         (follow_ssa_edge): Same.
11923         (analyze_evolution_in_loop): Same.
11924         (analyze_initial_condition): Same.
11925         (interpret_loop_phi): Same.
11926         (interpret_condition_phi): Same.
11927         (interpret_rhs_expr): Same.
11928         (interpret_expr): Same.
11929         (interpret_gimple_assign): Same.
11930         (analyze_scalar_evolution_1): Same.
11931         (analyze_scalar_evolution): Same.
11932         (analyze_scalar_evolution_for_address_of): Same.
11933         (get_instantiated_value_entry): Same.
11934         (loop_closed_phi_def): Same.
11935         (instantiate_scev_name): Same.
11936         (instantiate_scev_poly): Same.
11937         (instantiate_scev_binary): Same.
11938         (instantiate_scev_convert): Same.
11939         (instantiate_scev_not): Same.
11940         (instantiate_scev_r): Same.
11941         (instantiate_scev): Same.
11942         (resolve_mixers): Same.
11943         (initialize_scalar_evolutions_analyzer): Same.
11944         (scev_reset_htab): Same.
11945         (scev_reset): Same.
11946         (derive_simple_iv_with_niters): Same.
11947         (simple_iv_with_niters): Same.
11948         (expression_expensive_p): Same.
11949         (final_value_replacement_loop): Same.
11950         * tree-scalar-evolution.h (block_before_loop): Same.
11951         * tree-ssa-address.h: Same.
11952         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
11953         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
11954         (record_edge_info): Same.
11955         * tree-ssa-live.c (var_map_base_fini): Same.
11956         (remove_unused_locals): Same.
11957         * tree-ssa-live.h: Same.
11958         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
11959         (pass_ch_vect::execute): Same.
11960         (pass_ch::process_loop_p): Same.
11961         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
11962         (movement_possibility): Same.
11963         (outermost_invariant_loop): Same.
11964         (stmt_cost): Same.
11965         (determine_max_movement): Same.
11966         (invariantness_dom_walker::before_dom_children): Same.
11967         (move_computations): Same.
11968         (may_move_till): Same.
11969         (force_move_till_op): Same.
11970         (force_move_till): Same.
11971         (memref_free): Same.
11972         (record_mem_ref_loc): Same.
11973         (set_ref_stored_in_loop): Same.
11974         (mark_ref_stored): Same.
11975         (sort_bbs_in_loop_postorder_cmp): Same.
11976         (sort_locs_in_loop_postorder_cmp): Same.
11977         (analyze_memory_references): Same.
11978         (mem_refs_may_alias_p): Same.
11979         (find_ref_loc_in_loop_cmp): Same.
11980         (rewrite_mem_ref_loc::operator): Same.
11981         (first_mem_ref_loc_1::operator): Same.
11982         (sm_set_flag_if_changed::operator): Same.
11983         (execute_sm_if_changed_flag_set): Same.
11984         (execute_sm): Same.
11985         (hoist_memory_references): Same.
11986         (ref_always_accessed::operator): Same.
11987         (refs_independent_p): Same.
11988         (record_dep_loop): Same.
11989         (ref_indep_loop_p_1): Same.
11990         (ref_indep_loop_p): Same.
11991         (can_sm_ref_p): Same.
11992         (find_refs_for_sm): Same.
11993         (loop_suitable_for_sm): Same.
11994         (store_motion_loop): Same.
11995         (store_motion): Same.
11996         (fill_always_executed_in): Same.
11997         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
11998         (estimated_unrolled_size): Same.
11999         (loop_edge_to_cancel): Same.
12000         (remove_exits_and_undefined_stmts): Same.
12001         (remove_redundant_iv_tests): Same.
12002         (unloop_loops): Same.
12003         (estimated_peeled_sequence_size): Same.
12004         (try_peel_loop): Same.
12005         (canonicalize_loop_induction_variables): Same.
12006         (canonicalize_induction_variables): Same.
12007         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12008         (name_info): Same.
12009         (stmt_after_inc_pos): Same.
12010         (contains_abnormal_ssa_name_p): Same.
12011         (niter_for_exit): Same.
12012         (find_bivs): Same.
12013         (mark_bivs): Same.
12014         (find_givs_in_bb): Same.
12015         (find_induction_variables): Same.
12016         (find_interesting_uses_cond): Same.
12017         (outermost_invariant_loop_for_expr): Same.
12018         (idx_find_step): Same.
12019         (add_candidate_1): Same.
12020         (add_iv_candidate_derived_from_uses): Same.
12021         (alloc_use_cost_map): Same.
12022         (prepare_decl_rtl): Same.
12023         (generic_predict_doloop_p): Same.
12024         (computation_cost): Same.
12025         (determine_common_wider_type): Same.
12026         (get_computation_aff_1): Same.
12027         (get_use_type): Same.
12028         (determine_group_iv_cost_address): Same.
12029         (iv_period): Same.
12030         (difference_cannot_overflow_p): Same.
12031         (may_eliminate_iv): Same.
12032         (determine_set_costs): Same.
12033         (cheaper_cost_pair): Same.
12034         (compare_cost_pair): Same.
12035         (iv_ca_cand_for_group): Same.
12036         (iv_ca_recount_cost): Same.
12037         (iv_ca_set_remove_invs): Same.
12038         (iv_ca_set_no_cp): Same.
12039         (iv_ca_set_add_invs): Same.
12040         (iv_ca_set_cp): Same.
12041         (iv_ca_add_group): Same.
12042         (iv_ca_cost): Same.
12043         (iv_ca_compare_deps): Same.
12044         (iv_ca_delta_reverse): Same.
12045         (iv_ca_delta_commit): Same.
12046         (iv_ca_cand_used_p): Same.
12047         (iv_ca_delta_free): Same.
12048         (iv_ca_new): Same.
12049         (iv_ca_free): Same.
12050         (iv_ca_dump): Same.
12051         (iv_ca_extend): Same.
12052         (iv_ca_narrow): Same.
12053         (iv_ca_prune): Same.
12054         (cheaper_cost_with_cand): Same.
12055         (iv_ca_replace): Same.
12056         (try_add_cand_for): Same.
12057         (get_initial_solution): Same.
12058         (try_improve_iv_set): Same.
12059         (find_optimal_iv_set_1): Same.
12060         (create_new_iv): Same.
12061         (rewrite_use_compare): Same.
12062         (remove_unused_ivs): Same.
12063         (determine_scaling_factor): Same.
12064         * tree-ssa-loop-ivopts.h: Same.
12065         * tree-ssa-loop-manip.c (create_iv): Same.
12066         (compute_live_loop_exits): Same.
12067         (add_exit_phi): Same.
12068         (add_exit_phis): Same.
12069         (find_uses_to_rename_use): Same.
12070         (find_uses_to_rename_def): Same.
12071         (find_uses_to_rename_in_loop): Same.
12072         (rewrite_into_loop_closed_ssa): Same.
12073         (check_loop_closed_ssa_bb): Same.
12074         (split_loop_exit_edge): Same.
12075         (ip_end_pos): Same.
12076         (ip_normal_pos): Same.
12077         (copy_phi_node_args): Same.
12078         (gimple_duplicate_loop_to_header_edge): Same.
12079         (can_unroll_loop_p): Same.
12080         (determine_exit_conditions): Same.
12081         (scale_dominated_blocks_in_loop): Same.
12082         (niter_for_unrolled_loop): Same.
12083         (tree_transform_and_unroll_loop): Same.
12084         (rewrite_all_phi_nodes_with_iv): Same.
12085         * tree-ssa-loop-manip.h: Same.
12086         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12087         (number_of_iterations_ne): Same.
12088         (assert_no_overflow_lt): Same.
12089         (assert_loop_rolls_lt): Same.
12090         (number_of_iterations_lt): Same.
12091         (adjust_cond_for_loop_until_wrap): Same.
12092         (tree_simplify_using_condition): Same.
12093         (simplify_using_initial_conditions): Same.
12094         (simplify_using_outer_evolutions): Same.
12095         (loop_only_exit_p): Same.
12096         (ssa_defined_by_minus_one_stmt_p): Same.
12097         (number_of_iterations_popcount): Same.
12098         (number_of_iterations_exit): Same.
12099         (find_loop_niter): Same.
12100         (finite_loop_p): Same.
12101         (chain_of_csts_start): Same.
12102         (get_val_for): Same.
12103         (loop_niter_by_eval): Same.
12104         (derive_constant_upper_bound_ops): Same.
12105         (do_warn_aggressive_loop_optimizations): Same.
12106         (record_estimate): Same.
12107         (get_cst_init_from_scev): Same.
12108         (record_nonwrapping_iv): Same.
12109         (idx_infer_loop_bounds): Same.
12110         (infer_loop_bounds_from_ref): Same.
12111         (infer_loop_bounds_from_array): Same.
12112         (infer_loop_bounds_from_pointer_arith): Same.
12113         (infer_loop_bounds_from_signedness): Same.
12114         (bound_index): Same.
12115         (discover_iteration_bound_by_body_walk): Same.
12116         (maybe_lower_iteration_bound): Same.
12117         (estimate_numbers_of_iterations): Same.
12118         (estimated_loop_iterations): Same.
12119         (estimated_loop_iterations_int): Same.
12120         (max_loop_iterations): Same.
12121         (max_loop_iterations_int): Same.
12122         (likely_max_loop_iterations): Same.
12123         (likely_max_loop_iterations_int): Same.
12124         (estimated_stmt_executions_int): Same.
12125         (max_stmt_executions): Same.
12126         (likely_max_stmt_executions): Same.
12127         (estimated_stmt_executions): Same.
12128         (stmt_dominates_stmt_p): Same.
12129         (nowrap_type_p): Same.
12130         (loop_exits_before_overflow): Same.
12131         (scev_var_range_cant_overflow): Same.
12132         (scev_probably_wraps_p): Same.
12133         (free_numbers_of_iterations_estimates): Same.
12134         * tree-ssa-loop-niter.h: Same.
12135         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12136         (idx_analyze_ref): Same.
12137         (analyze_ref): Same.
12138         (gather_memory_references_ref): Same.
12139         (mark_nontemporal_store): Same.
12140         (emit_mfence_after_loop): Same.
12141         (may_use_storent_in_loop_p): Same.
12142         (mark_nontemporal_stores): Same.
12143         (should_unroll_loop_p): Same.
12144         (volume_of_dist_vector): Same.
12145         (add_subscript_strides): Same.
12146         (self_reuse_distance): Same.
12147         (insn_to_prefetch_ratio_too_small_p): Same.
12148         * tree-ssa-loop-split.c (split_at_bb_p): Same.
12149         (patch_loop_exit): Same.
12150         (find_or_create_guard_phi): Same.
12151         (easy_exit_values): Same.
12152         (connect_loop_phis): Same.
12153         (connect_loops): Same.
12154         (compute_new_first_bound): Same.
12155         (split_loop): Same.
12156         (tree_ssa_split_loops): Same.
12157         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12158         (is_maybe_undefined): Same.
12159         (tree_may_unswitch_on): Same.
12160         (simplify_using_entry_checks): Same.
12161         (tree_unswitch_single_loop): Same.
12162         (tree_unswitch_loop): Same.
12163         (tree_unswitch_outer_loop): Same.
12164         (empty_bb_without_guard_p): Same.
12165         (used_outside_loop_p): Same.
12166         (get_vop_from_header): Same.
12167         (hoist_guard): Same.
12168         * tree-ssa-loop.c (gate_oacc_kernels): Same.
12169         (get_lsm_tmp_name): Same.
12170         * tree-ssa-loop.h: Same.
12171         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12172         (build_and_add_sum): Same.
12173         (no_side_effect_bb): Same.
12174         (get_ops): Same.
12175         (linearize_expr): Same.
12176         (should_break_up_subtract): Same.
12177         (linearize_expr_tree): Same.
12178         * tree-ssa-scopedtables.c: Same.
12179         * tree-ssa-scopedtables.h: Same.
12180         * tree-ssa-structalias.c (condense_visit): Same.
12181         (label_visit): Same.
12182         (dump_pred_graph): Same.
12183         (perform_var_substitution): Same.
12184         (move_complex_constraints): Same.
12185         (remove_preds_and_fake_succs): Same.
12186         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12187         (determine_bb_domination_status): Same.
12188         (duplicate_thread_path): Same.
12189         (thread_through_all_blocks): Same.
12190         * tree-ssa-threadupdate.h: Same.
12191         * tree-streamer-in.c (streamer_read_string_cst): Same.
12192         (input_identifier): Same.
12193         (unpack_ts_type_common_value_fields): Same.
12194         (unpack_ts_block_value_fields): Same.
12195         (unpack_ts_translation_unit_decl_value_fields): Same.
12196         (unpack_ts_omp_clause_value_fields): Same.
12197         (streamer_read_tree_bitfields): Same.
12198         (streamer_alloc_tree): Same.
12199         (lto_input_ts_common_tree_pointers): Same.
12200         (lto_input_ts_vector_tree_pointers): Same.
12201         (lto_input_ts_poly_tree_pointers): Same.
12202         (lto_input_ts_complex_tree_pointers): Same.
12203         (lto_input_ts_decl_minimal_tree_pointers): Same.
12204         (lto_input_ts_decl_common_tree_pointers): Same.
12205         (lto_input_ts_decl_non_common_tree_pointers): Same.
12206         (lto_input_ts_decl_with_vis_tree_pointers): Same.
12207         (lto_input_ts_field_decl_tree_pointers): Same.
12208         (lto_input_ts_function_decl_tree_pointers): Same.
12209         (lto_input_ts_type_common_tree_pointers): Same.
12210         (lto_input_ts_type_non_common_tree_pointers): Same.
12211         (lto_input_ts_list_tree_pointers): Same.
12212         (lto_input_ts_vec_tree_pointers): Same.
12213         (lto_input_ts_exp_tree_pointers): Same.
12214         (lto_input_ts_block_tree_pointers): Same.
12215         (lto_input_ts_binfo_tree_pointers): Same.
12216         (lto_input_ts_constructor_tree_pointers): Same.
12217         (lto_input_ts_omp_clause_tree_pointers): Same.
12218         (streamer_read_tree_body): Same.
12219         * tree-streamer.h: Same.
12220         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12221         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12222         (vect_analyze_possibly_independent_ddr): Same.
12223         (vect_analyze_data_ref_dependence): Same.
12224         (vect_compute_data_ref_alignment): Same.
12225         (vect_enhance_data_refs_alignment): Same.
12226         (vect_analyze_data_ref_access): Same.
12227         (vect_check_gather_scatter): Same.
12228         (vect_find_stmt_data_reference): Same.
12229         (vect_create_addr_base_for_vector_ref): Same.
12230         (vect_setup_realignment): Same.
12231         (vect_supportable_dr_alignment): Same.
12232         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12233         (adjust_phi_and_debug_stmts): Same.
12234         (vect_set_loop_mask): Same.
12235         (add_preheader_seq): Same.
12236         (vect_maybe_permute_loop_masks): Same.
12237         (vect_set_loop_masks_directly): Same.
12238         (vect_set_loop_condition_masked): Same.
12239         (vect_set_loop_condition_unmasked): Same.
12240         (slpeel_duplicate_current_defs_from_edges): Same.
12241         (slpeel_add_loop_guard): Same.
12242         (slpeel_can_duplicate_loop_p): Same.
12243         (create_lcssa_for_virtual_phi): Same.
12244         (iv_phi_p): Same.
12245         (vect_update_ivs_after_vectorizer): Same.
12246         (vect_gen_vector_loop_niters_mult_vf): Same.
12247         (slpeel_update_phi_nodes_for_loops): Same.
12248         (slpeel_update_phi_nodes_for_guard1): Same.
12249         (find_guard_arg): Same.
12250         (slpeel_update_phi_nodes_for_guard2): Same.
12251         (slpeel_update_phi_nodes_for_lcssa): Same.
12252         (vect_do_peeling): Same.
12253         (vect_create_cond_for_alias_checks): Same.
12254         (vect_loop_versioning): Same.
12255         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12256         (vect_inner_phi_in_double_reduction_p): Same.
12257         (vect_analyze_scalar_cycles_1): Same.
12258         (vect_fixup_scalar_cycles_with_patterns): Same.
12259         (vect_get_loop_niters): Same.
12260         (bb_in_loop_p): Same.
12261         (vect_get_max_nscalars_per_iter): Same.
12262         (vect_verify_full_masking): Same.
12263         (vect_compute_single_scalar_iteration_cost): Same.
12264         (vect_analyze_loop_form_1): Same.
12265         (vect_analyze_loop_form): Same.
12266         (vect_active_double_reduction_p): Same.
12267         (vect_analyze_loop_operations): Same.
12268         (neutral_op_for_slp_reduction): Same.
12269         (vect_is_simple_reduction): Same.
12270         (vect_model_reduction_cost): Same.
12271         (get_initial_def_for_reduction): Same.
12272         (get_initial_defs_for_reduction): Same.
12273         (vect_create_epilog_for_reduction): Same.
12274         (vectorize_fold_left_reduction): Same.
12275         (vectorizable_reduction): Same.
12276         (vectorizable_induction): Same.
12277         (vectorizable_live_operation): Same.
12278         (loop_niters_no_overflow): Same.
12279         (vect_get_loop_mask): Same.
12280         (vect_transform_loop_stmt): Same.
12281         (vect_transform_loop): Same.
12282         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12283         (vect_determine_precisions): Same.
12284         (vect_pattern_recog_1): Same.
12285         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12286         * tree-vect-stmts.c (stmt_vectype): Same.
12287         (process_use): Same.
12288         (vect_init_vector_1): Same.
12289         (vect_truncate_gather_scatter_offset): Same.
12290         (get_group_load_store_type): Same.
12291         (vect_build_gather_load_calls): Same.
12292         (vect_get_strided_load_store_ops): Same.
12293         (vectorizable_simd_clone_call): Same.
12294         (vectorizable_store): Same.
12295         (permute_vec_elements): Same.
12296         (vectorizable_load): Same.
12297         (vect_transform_stmt): Same.
12298         (supportable_widening_operation): Same.
12299         * tree-vectorizer.c (vec_info::replace_stmt): Same.
12300         (vec_info::free_stmt_vec_info): Same.
12301         (vect_free_loop_info_assumptions): Same.
12302         (vect_loop_vectorized_call): Same.
12303         (set_uid_loop_bbs): Same.
12304         (vectorize_loops): Same.
12305         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12306         * tree.c (add_tree_to_fld_list): Same.
12307         (fld_type_variant_equal_p): Same.
12308         (fld_decl_context): Same.
12309         (fld_incomplete_type_of): Same.
12310         (free_lang_data_in_binfo): Same.
12311         (need_assembler_name_p): Same.
12312         (find_decls_types_r): Same.
12313         (get_eh_types_for_runtime): Same.
12314         (find_decls_types_in_eh_region): Same.
12315         (find_decls_types_in_node): Same.
12316         (assign_assembler_name_if_needed): Same.
12317         * value-prof.c (stream_out_histogram_value): Same.
12318         * value-prof.h: Same.
12319         * var-tracking.c (use_narrower_mode): Same.
12320         (prepare_call_arguments): Same.
12321         (vt_expand_loc_callback): Same.
12322         (resolve_expansions_pending_recursion): Same.
12323         (vt_expand_loc): Same.
12324         * varasm.c (const_hash_1): Same.
12325         (compare_constant): Same.
12326         (tree_output_constant_def): Same.
12327         (simplify_subtraction): Same.
12328         (get_pool_constant): Same.
12329         (output_constant_pool_2): Same.
12330         (output_constant_pool_1): Same.
12331         (mark_constants_in_pattern): Same.
12332         (mark_constant_pool): Same.
12333         (get_section_anchor): Same.
12334         * vr-values.c (compare_range_with_value): Same.
12335         (vr_values::extract_range_from_phi_node): Same.
12336         * vr-values.h: Same.
12337         * web.c (unionfind_union): Same.
12338         * wide-int.h: Same.
12340 2019-07-09  Martin Sebor  <msebor@redhat.com>
12342         PR c++/61339
12343         * align.h: Change class-key from class to struct and vice versa
12344         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12345         * alloc-pool.h: Same.
12346         * asan.c (shadow_mem_size): Same.
12347         * auto-profile.c: Same.
12348         * basic-block.h: Same.
12349         * bitmap.h: Same.
12350         * cfgexpand.c (set_rtl): Same.
12351         (expand_one_stack_var_at): Same.
12352         * cfghooks.h: Same.
12353         * cfgloop.h: Same.
12354         * cgraph.h: Same.
12355         * config/i386/i386.h: Same.
12356         * df-problems.c (df_print_bb_index): Same.
12357         * df-scan.c: Same.
12358         * df.h (df_single_use): Same.
12359         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12360         (layout::annotation_line_showed_range_p): Same.
12361         (get_printed_columns): Same.
12362         (correction::ensure_terminated): Same.
12363         (line_corrections::~line_corrections): Same.
12364         * dojump.h: Same.
12365         * dse.c: Same.
12366         * dump-context.h: Same.
12367         * dumpfile.h: Same.
12368         * dwarf2out.c: Same.
12369         * edit-context.c: Same.
12370         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12371         * flags.h: Same.
12372         * function.c (assign_stack_local): Same.
12373         * function.h: Same.
12374         * gcc.c: Same.
12375         * gcov.c (block_info::block_info): Same.
12376         * genattrtab.c: Same.
12377         * genextract.c: Same.
12378         * genmatch.c (comparison_code_p): Same.
12379         (id_base::id_base): Same.
12380         (decision_tree::print): Same.
12381         * genoutput.c: Same.
12382         * genpreds.c (write_one_predicate_function): Same.
12383         * genrecog.c (validate_pattern): Same.
12384         (find_operand_positions): Same.
12385         (optimize_subroutine_group): Same.
12386         (merge_pattern_transition::merge_pattern_transition): Same.
12387         (merge_pattern_info::merge_pattern_info): Same.
12388         (merge_state_result::merge_state_result): Same.
12389         (merge_into_state): Same.
12390         * gensupport.c: Same.
12391         * gensupport.h: Same.
12392         * ggc-common.c (init_ggc_heuristics): Same.
12393         * ggc-tests.c (test_union): Same.
12394         * gimple-loop-interchange.cc (dump_induction): Same.
12395         * gimple-loop-versioning.cc: Same.
12396         * gimple-match.h (gimple_match_cond::any_else): Same.
12397         * gimple-ssa-backprop.c: Same.
12398         * gimple-ssa-sprintf.c: Same.
12399         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12400         Same.
12401         (store_immediate_info::store_immediate_info): Same.
12402         (merged_store_group::apply_stores): Same.
12403         (get_location_for_stmts): Same.
12404         * gimple-ssa-strength-reduction.c: Same.
12405         * gimple-ssa-warn-alloca.c: Same.
12406         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12407         * godump.c (go_type_decl): Same.
12408         * hash-map-tests.c (test_map_of_strings_to_int): Same.
12409         * hash-map.h: Same.
12410         * hash-set-tests.c (test_set_of_strings): Same.
12411         * hsa-brig.c: Same.
12412         * hsa-common.h: Same.
12413         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12414         * input.c (assert_loceq): Same.
12415         * input.h: Same.
12416         * ipa-cp.c: Same.
12417         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12418         * ipa-fnsummary.h: Same.
12419         * ipa-inline.h: Same.
12420         * ipa-prop.h: Same.
12421         * ipa-split.c (visit_bb): Same.
12422         * ira-int.h (minmax_set_iter_next): Same.
12423         * loop-invariant.c: Same.
12424         * loop-iv.c: Same.
12425         * lra-eliminations.c: Same.
12426         * lra-int.h: Same.
12427         * lra-lives.c (mark_regno_dead): Same.
12428         * lra-remat.c: Same.
12429         * lra-spills.c: Same.
12430         * lto-streamer.h: Same.
12431         * mem-stats.h: Same.
12432         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12433         * omp-low.c (omp_clause_aligned_alignment): Same.
12434         * optabs-query.h (get_vcond_eq_icode): Same.
12435         * optabs.h: Same.
12436         * opts.c (wrap_help): Same.
12437         * poly-int.h: Same.
12438         * predict.c (predict_paths_leading_to_edge): Same.
12439         * pretty-print.h: Same.
12440         * profile-count.h: Same.
12441         * read-md.h: Same.
12442         * read-rtl-function.c: Same.
12443         * ree.c: Same.
12444         * reginfo.c: Same.
12445         * regrename.c: Same.
12446         * regrename.h: Same.
12447         * reload.h: Same.
12448         * rtl-iter.h: Same.
12449         * rtl.h (costs_add_n_insns): Same.
12450         * sanopt.c: Same.
12451         * sched-int.h: Same.
12452         * sel-sched-ir.h: Same.
12453         * selftest.h: Same.
12454         * sese.h (vec_find): Same.
12455         * stmt.c: Same.
12456         * target-globals.h: Same.
12457         * tree-affine.c (aff_combination_find_elt): Same.
12458         * tree-affine.h: Same.
12459         * tree-data-ref.h: Same.
12460         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12461         * tree-predcom.c: Same.
12462         * tree-scalar-evolution.c (find_var_scev_info): Same.
12463         * tree-ssa-alias.h: Same.
12464         * tree-ssa-ccp.c: Same.
12465         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12466         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12467         (rewrite_mem_refs): Same.
12468         (execute_sm_if_changed): Same.
12469         (hoist_memory_references): Same.
12470         * tree-ssa-loop-ivopts.c (operator<=): Same.
12471         * tree-ssa-loop.h: Same.
12472         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12473         * tree-ssa-structalias.c: Same.
12474         * tree-switch-conversion.h (cluster::cluster): Same.
12475         (simple_cluster::simple_cluster): Same.
12476         * tree-vect-patterns.c (type_conversion_p): Same.
12477         * tree-vectorizer.c (dump_stmt_cost): Same.
12478         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12479         * tree.c (protected_set_expr_location): Same.
12480         * tree.h (desired_pro_or_demotion_p): Same.
12481         (fndecl_built_in_p): Same.
12482         * unique-ptr-tests.cc: Same.
12483         * var-tracking.c (delete_variable_part): Same.
12484         * varasm.c (assemble_real): Same.
12485         (tree_output_constant_def): Same.
12486         * vec.c: Same.
12487         * wide-int-bitmask.h: Same.
12488         * wide-int.h (decompose): Same.
12490 2019-07-09  Richard Biener  <rguenther@suse.de>
12492         PR tree-optimization/91114
12493         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12494         find a vector type isn't fatal.
12496 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
12498         * config/aarch64/aarch64-simd.md
12499         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12500         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12501         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12502         (*aarch64_crypto_aese_fused,
12503         *aarch64_crypto_aesd_fused): Update to new definition.
12504         * config/aarch64/aarch64.c
12505         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12507 2019-07-09  Richard Biener  <rguenther@suse.de>
12509         * gimple-match.h (gimple_match_op::resimplify): New.
12510         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12511         gimple_resimplify4, gimple_resimplify5): Remove.
12512         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12513         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12514         Make static.
12515         (gimple_match_op::resimplify): New.
12516         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12517         according to availability.  Use gimple_match_op::resimplify.
12519 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
12521         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12523 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
12525         * config/arm/crypto.md:
12526         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12527         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12528         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12529         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12530         * config/arm/arm.c
12531         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12532         * config/arm/aarch-common-protos.h
12533         (aarch_crypto_can_dual_issue): Remove.
12534         * config/arm/aarch-common.c
12535         (aarch_crypto_can_dual_issue): Likewise.
12536         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12537         * config/arm/cortex-a53.md: Likewise.
12538         * config/arm/cortex-a57.md: Likewise.
12539         * config/arm/iterators.md:
12540         (CRYPTO_BINARY): Redefine.
12541         (CRYPTO_UNARY): Removed.
12542         (CRYPTO_AES, CRYPTO_AESMC): New.
12544 2019-07-09  Richard Biener  <rguenther@suse.de>
12546         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12547         (vn_reference_lookup_3): If the main ref has no access path recorded
12548         but orig_ref has use it to do access-path based disambiguation.
12549         (vn_reference_lookup_pieces): Adjust.
12550         (vn_reference_lookup): Pass down original ref if we valueized.
12552 2019-07-09  Martin Liska  <mliska@suse.cz>
12554         * doc/extend.texi: Document influence on loop
12555         optimizers.
12557 2019-07-09  Martin Liska  <mliska@suse.cz>
12559         * lto-compress.c (lto_normalized_zstd_level): Do not use
12560         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12561         of libzstd.  One can use 0 as a default compression level.
12563 2019-07-09  Martin Liska  <mliska@suse.cz>
12565         * doc/invoke.texi: Add link from -fprofile-dir option.
12566         Use better wording for 'gcno filename'.
12568 2019-07-08  Martin Sebor  <msebor@redhat.com>
12570         PR middle-end/71924
12571         PR middle-end/90549
12572         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
12573         comment.
12574         (args_loc_t): New type.
12575         (args_loc_t, locmap_t): same.
12576         (diag_returned_locals): New function.
12577         (is_addr_local): Same.
12578         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12579         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12580         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12582 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
12584         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12585         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
12586         and casts in offset when different, both through gimple stmts
12587         and through trees.  Rewritten using loops to minimize code duplication
12588         for each operand.
12590 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12592         * emit-rtl.c (set_insn_locations): New function moved from...
12593         * function.c (set_insn_locations): ...here.
12594         * ira-emit.c (emit_moves): Propagate location of the first instruction
12595         to the inserted move instructions.
12596         * reg-stack.c (compensate_edge): Set the location if the sequence is
12597         inserted on the edge.
12598         * rtl.h (set_insn_locations): Declare.
12600 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
12602         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12603         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12604         .machine string.
12606 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
12608         PR rtl-optimization/88233
12609         * common.opt (fsplit-wide-types-early): New option.
12610         * common/config/rs6000/rs6000-common.c
12611         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12612         OPT_LEVELS_ALL.
12613         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12614         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12615         flag_split_wide_types_early.
12616         (pass_data_lower_subreg3): New.
12617         (pass_lower_subreg3): New.
12618         (make_pass_lower_subreg3): New.
12619         * passes.def (pass_lower_subreg2): Move after the loop passes.
12620         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12621         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12622         the pass pipeline; its previous place is taken by ...
12623         (make_pass_lower_subreg3): ... this.
12625 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
12627         * config/s390/s390.c (s390_shift_truncation_mask): Define.
12628         (TARGET_SHIFT_TRUNCATION_MASK): Define.
12630 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
12632         * config/s390/constraints.md: Add new jsc constraint.
12633         * config/s390/predicates.md: New predicates.
12634         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12635         * config/s390/s390.c (s390_valid_shift_count): New function.
12636         (print_shift_count_operand): Use s390_valid_shift_count.
12637         (print_operand): Likewise.
12638         * config/s390/s390.md: Use new predicate.
12639         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12640         * config/s390/vector.md: Use new predicate.
12642 2019-07-08  Andrew Waterman  <andrew@sifive.com>
12643             Jim Wilson  <jimw@sifive.com>
12645         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12646         bitsize instead of BITS_PER_WORD.
12648 2019-07-08  Martin Liska  <mliska@suse.cz>
12650         * collect2.c (defined): Revert to before r254460.
12651         (scan_prog_file): Revert to before r254460.
12653 2019-07-08  Richard Biener  <rguenther@suse.de>
12655         PR tree-optimization/83518
12656         * tree-ssa-sccvn.c: Include splay-tree.h.
12657         (struct pd_range, struct pd_data): New.
12658         (struct vn_walk_cb_data): Add data to track partial definitions.
12659         (vn_walk_cb_data::~vn_walk_cb_data): New.
12660         (vn_walk_cb_data::push_partial_def): New.
12661         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12662         (vn_reference_lookup_2): When partial defs are registered give up.
12663         (vn_reference_lookup_3): Track partial defs for memset and
12664         constructor zeroing and for defs from constants.
12666 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
12668         * doc/install.texi (bootstrap-Og): Document.
12670 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
12672         * config/riscv/pic.md (*local_pic_load_s<mode>)
12673         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12674         referenced by <mode>, giving...
12675         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12676         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12677         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12678         use <X:MODE> for the mode attribute.
12680 2019-07-07  Jeff Law  <law@redhat.com>
12682         PR tree-optimization/91090
12683         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12684         in handling of ranges to simplify switch statements.
12686 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
12688         * config/darwin.c (darwin_override_options): Make a final check on PIC
12689         options.
12691 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
12693         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12694         on for kernel code.
12696 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
12698         PR target/91068
12699         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12700         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12701         instead of matching them to "l" output operands.
12703 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
12705         * config/mips/mips.c (mips_split_move): Zero-initialize addr
12706         and check whether addr.reg is nonnull before using it.
12708 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
12710         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12711         ctx->for_simd_scan_phase simd copy the outer var to the privatized
12712         variable(s).  For conditional lastprivate look through outer
12713         GIMPLE_OMP_SCAN context.
12714         (lower_omp_1): For conditional lastprivate look through outer
12715         GIMPLE_OMP_SCAN context.
12717         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12718         member to combined_into_simd_safelen1.
12719         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12720         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
12721         clauses if ctx->combined_into_simd_safelen1 put statements after the
12722         predicate conditionalized block rather than into it.
12724 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12726         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12727         operand 1.
12728         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12729         Make the choice of <mode> explicit, giving...
12730         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12732 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12734         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12735         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12736         of .md attributes.
12737         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12738         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12739         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12740         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12741         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12742         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12743         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12744         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12745         (*avx512f_scatterdi<mode>): Likewise.
12746         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12748 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12750         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12751         specify the mode iterator referenced by <mode>, giving...
12752         (*push1_h8300hs_<QHI:mode>): ...this.
12754 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12756         * config/gcn/gcn-valu.md
12757         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12758         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12759         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
12760         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12761         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12762         but using the _exec comparison patterns.
12763         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12764         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12765         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
12766         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12767         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12768         but using the _exec comparison patterns.
12770 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12772         * config/arm/sync.md
12773         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12774         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12775         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12776         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
12777         <SIDI:cas_cmp_str>.
12779 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
12781         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12782         (maybe_lookup_ctx): Add forward declaration.
12783         (omp_find_scan): Likewise.  Walk into body of simd if composited
12784         with worksharing loop.
12785         (scan_omp_simd_scan): New function.
12786         (scan_omp_1_stmt): Call it.
12787         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12788         ctx->for_simd_scan_phase.
12789         (lower_rec_input_clauses): Do much less work for inscan reductions
12790         in ctx->for_simd_scan_phase is_simd regions.
12791         (lower_omp_scan): Set is_simd also on simd constructs composited
12792         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
12793         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
12794         emit their body after in simd constructs composited with worksharing
12795         loop.
12796         (lower_omp_for_scan): Handle worksharing loop composited with simd.
12798         * omp-low.c (omp_find_scan): Make static.
12799         (lower_omp_for_scan): Fix order of merge arguments in input phase of
12800         the second loop, var2 represents the first partial sum and so needs
12801         to go before rprivb[ivar].
12803 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
12805         * config/rs6000/rs6000-logue.c: Remove unused code.
12807 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
12809         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12811 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
12813         PR target/90712
12814         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12815         check with a frame laid out check.
12817 2019-07-05  Richard Biener  <rguenther@suse.de>
12819         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12820         when comparing against a store with possibly the same value.
12822 2019-07-05  Richard Biener  <rguenther@suse.de>
12824         PR tree-optimization/91091
12825         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12826         (walk_non_aliased_vuses): Likewise.
12827         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12828         (get_continuation_for_phi): New tbaa_p parameter and pass
12829         it down.
12830         (walk_non_aliased_vuses): Likewise.
12831         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12832         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12833         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12834         Likewise.
12835         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12836         (adjust_offsets_for_equal_base_address): New function.
12837         (vn_reference_lookup_3): Use it to catch more base equivalences.
12838         Handle and pass down tbaa_p flag.
12839         (vn_reference_lookup_pieces): Adjust.
12840         (vn_reference_lookup): Remove alias-set altering, instead pass
12841         down false as tbaa_p.
12843 2019-07-05  Richard Biener  <rguenther@suse.de>
12845         PR tree-optimization/91091
12846         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12847         accesses can happen with -fno-strict-aliasing.
12849 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
12851         * tree-ssa-alias.c (alias_stats): Add
12852         nonoverlapping_component_refs_since_match_p_must_overlap.
12853         (dump_alias_stats): Print it.
12854         (nonoverlapping_component_refs_since_match_p): Add early exit.
12855         (nonoverlapping_component_refs_p): Do not account early exit.
12857 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
12859         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
12860         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
12861         (emit_eh_dispatch): Delete.
12862         (lower_catch): Emit the eh_dispatch manually and set the location of
12863         the first catch statement onto it.
12864         (lower_eh_filter): Emit the eh_dispatch manually and set location.
12865         (lower_eh_dispatch): Propagate location.
12866         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
12867         (eliminate_build): Likewise.
12869 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
12871         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
12872         phi nodes if possible.
12873         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
12874         location info on the newly created statement.
12875         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
12876         newly created increment if needed.
12878 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
12880         PR middle-end/78884
12881         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
12882         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
12883         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
12884         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
12885         ctx->add_safelen1 is set.
12887         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
12888         GOMP_loop_start at the start of second worksharing loop in a scan.
12889         For nowait, don't emit GOMP_loop_end_nowait at the end of first
12890         worksharing loop in a scan even if there are conditional lastprivates,
12891         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
12893 2019-07-04  Jan Hubicka  <jh@suse.cz>
12895         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
12896         Fix check for match in the ref walk.
12898 2019-07-04  Martin Liska  <mliska@suse.cz>
12900         * tree-ssa-loop-niter.c
12901         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
12902         (estimate_numbers_of_iterations):
12903         Support __builtin_expect_with_probability for analysis
12904         of # of loop iterations.
12906 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
12908         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
12909         * except.c: Likewise.
12910         * expr.c (expand_expr_real_1): Reject it.
12911         * gimplify.c (gimplify_expr): Gimplify it, within
12912         TRY_FINALLY_EXPR.
12913         * tree-dump.c (dequeue_and_dump): Dump it.
12914         * tree-pretty-print.c (dump_generic_node): Likewise.
12915         * tree.c (block_may_fallthru): Handle it.
12916         * tree.def (EH_ELSE_EXPR): Introduce it.
12917         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
12918         with GIMPLE_EH_ELSE as try/finally/else.
12920 2019-07-04  Richard Biener  <rguenther@suse.de>
12922         PR ipa/91062
12923         * tree-pass.h (execute_all_ipa_transforms): Add a flag
12924         parameter whether to disable GC collection.
12925         * passes.c (execute_one_ipa_transform_pass): Likewise, and
12926         honor it.
12927         (execute_all_ipa_transforms): Likewise and pass it down.
12928         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
12929         collection from applying IPA transforms.
12930         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
12931         from applying IPA transforms.
12933 2019-07-04  Richard Biener  <rguenther@suse.de>
12935         PR tree-optimization/90911
12936         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
12937         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
12938         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12939         scalar_loop_scaling.
12940         (vect_transform_loop): Scale scalar loop profile if needed.
12941         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
12942         the loop copy from if-conversion adjust edge probabilities
12943         and scale the vectorized loop body profile, queue the scalar
12944         profile for updating after peeling.
12946 2019-07-04  Jan Hubicka  <jh@suse.cz>
12948         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
12949         parameters; return early for must-alias.
12950         (indirect_ref_may_alias_decl_p): Likewise; when establishing
12951         outer types match, try nonoverlapping_component_refs
12952         if must-alias is not obvious.
12953         (indirect_refs_may_alias_p): Likewise.
12954         (refs_may_alias_p_2): Likewise.
12956 2019-07-04  Richard Biener  <rguenther@suse.de>
12958         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
12959         argument.
12960         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
12961         globals into...
12962         (struct vn_walk_cb_data): New callback data struct.
12963         (vn_reference_lookup_2): Adjust.
12964         (vn_reference_lookup_3): Likewise.
12965         (vn_reference_lookup_pieces): Likewise.
12966         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
12967         (visit_reference_op_load): Adjust.
12969 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
12971         PR tree-optimization/91063
12972         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
12973         stmt from stmts sequence before calling vect_init_vector_1.
12974         Formatting fix.
12976 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12978         PR target/88833
12979         * fwprop.c (reg_single_def_p): New function.
12980         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
12981         (forward_propagate_into): New parameter reg_prop_only
12982         with default value false.
12983         Propagate def's src into loop only if SET_SRC and SET_DEST
12984         of def_set have single definitions.
12985         Likewise if reg_prop_only is set to true.
12986         (fwprop): New param fwprop_addr_p.
12987         Integrate fwprop_addr into fwprop.
12988         (fwprop_addr): Remove.
12989         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
12990         to true.
12991         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
12992         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
12993         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
12995 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
12997         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
12998         in worksharing loop scans.
13000         PR tree-optimization/91074
13001         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13002         temporary.
13004         PR rtl-optimization/90756
13005         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13006         for VECTOR_TYPE_P.
13008 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
13010         * config/aarch64/aarch64.md: Remove redundant constraints from
13011         define_expand but keep some patterns untouched if they are
13012         specially selected by TARGET_SECONDARY_RELOAD hook.
13013         * config/aarch64/aarch64-sve.md: Likewise.
13014         * config/aarch64/atomics.md: Remove redundant constraints from
13015         define_expand.
13016         * config/aarch64/aarch64-simd.md: Likewise.
13018 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
13020         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13021         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13022         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13023         clauses.
13024         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13025         DARWIN_NOPIE_SPEC.
13027 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
13029         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13030         (STARTFILE_SPEC): Split crt3 into a separate spec.
13031         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13032         (DARWIN_CRT2_SPEC): New.
13033         (DARWIN_CRT3_SPEC): New.
13034         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13035         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13036         (DARWIN_CRT3_SPEC): New.
13038 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
13040         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13041         Change the RTL attribute "length" from "4" to "*" to allow the
13042         length attribute to be adjusted automatically for prefixed load,
13043         store, and add immediate instructions.
13044         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13045         Likewise.
13046         (extendsi<mode>2, EXTSI iterator): Likewise.
13047         (movsi_internal1): Likewise.
13048         (movsi_from_sf): Likewise.
13049         (movdi_from_sf_zero_ext): Likewise.
13050         (mov<mode>_internal): Likewise.
13051         (movcc_internal1, QHI iterator): Likewise.
13052         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13053         (movsf_from_si): Likewise.
13054         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13055         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13056         (mov<mode>, FMOVE128 iterator): Likewise.
13057         (movdi_internal64): Likewise.
13058         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13059         Likewise.
13060         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13061         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13062         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13063         (vsx_splat_v4sf): Likewise.
13065 2019-07-03  Mark Wielaard  <mark@klomp.org>
13067         PR debug/90981
13068         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13069         DW_AT_addr_base if there is actually a .debug_addr section with
13070         addresses.
13071         (output_addr_table): Add DWARF5 table header generation here after
13072         checking there are actually any addresses from...
13073         (dwarf2out_finish): ...here.
13075 2019-07-03  Richard Biener  <rguenther@suse.de>
13077         PR middle-end/91069
13078         * match.pd (vec_perm -> bit_insert): Fix element read from
13079         first vector.
13081 2019-07-03  Martin Liska  <mliska@suse.cz>
13083         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13084         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13085         condition.
13086         * generic-match-head.c: Include dbgcnt.h.
13087         * gimple-match-head.c: Likewise.
13089 2019-07-03  Martin Liska  <mliska@suse.cz>
13091         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13092         (GCOV_COUNTER_V_TOPN): New.
13093         (GCOV_COUNTER_V_INDIR): Use _topn.
13094         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13095         (GCOV_TOPN_VALUES): New.
13096         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13097         (GCOV_TOPN_VALUES_COUNTERS): New.
13098         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13099         * tree-profile.c:
13100         (gimple_init_gcov_profiler): Rename variables from one_value
13101         to topn_values.
13102         (gimple_gen_one_value_profiler): Remove.
13103         (gimple_gen_topn_values_profiler): New function.
13104         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13105         names instead of SINGLE_VALUE.
13106         (stream_out_histogram_value): Likewise.
13107         (stream_in_histogram_value): Likewise.
13108         (get_most_common_single_value): Likewise.
13109         (gimple_divmod_fixed_value_transform): Likewise.
13110         (gimple_stringops_transform): Likewise.
13111         (gimple_divmod_values_to_profile): Likewise.
13112         (gimple_stringops_values_to_profile): Likewise.
13113         (gimple_find_values_to_profile): Likewise.
13114         * value-prof.h (enum hist_type): Rename to TOPN.
13115         (gimple_gen_one_value_profiler): Remove.
13116         (gimple_gen_topn_values_profiler): New.
13118 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
13120         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13121         if it has the DW_AT_data_member_location attribute.
13123 2019-07-03  Richard Biener  <rguenther@suse.de>
13125         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13126         dumping.
13128 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
13130         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13131         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13132         (tlsdesc_small_sve_<mode>): Likewise.
13134 2019-07-03  Martin Liska  <mliska@suse.cz>
13136         * Makefile.in: Define ZSTD_LIB.
13137         * common.opt: Adjust compression level
13138         to support also zstd levels.
13139         * config.in: Regenerate.
13140         * configure: Likewise.
13141         * configure.ac: Add --with-zstd and --with-zstd-include options
13142         and detect ZSTD.
13143         * doc/install.texi: Mention zstd dependency.
13144         * gcc.c: Print supported LTO compression algorithms.
13145         * lto-compress.c (lto_normalized_zstd_level): Likewise.
13146         (lto_compression_zstd): Likewise.
13147         (lto_uncompression_zstd): Likewise.
13148         (lto_end_compression): Dispatch in between zlib and zstd.
13149         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13150         (lto_uncompression_zlib): Make it static.
13151         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13152         * lto-section-in.c (lto_get_section_data): Pass info
13153         about used compression.
13154         * lto-streamer-out.c: By default use zstd when possible.
13155         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13156         (TV_IPA_LTO_COMPRESS): Likewise for compression.
13158 2019-07-03  Martin Liska  <mliska@suse.cz>
13160         * lto-section-in.c (lto_get_section_data): Add "lto" section.
13161         * lto-section-out.c (lto_destroy_simple_output_block): Never
13162         compress LTO_section_lto section.
13163         * lto-streamer-out.c (produce_asm): Do not set major_version
13164         and minor_version.
13165         (lto_output_toplevel_asms): Likewise.
13166         (produce_lto_section): New function.
13167         (lto_output): Call produce_lto_section.
13168         (lto_write_mode_table): Do not set major_version and
13169         minor_version.
13170         (produce_asm_for_decls): Likewise.
13171         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13172         type.
13173         (struct lto_header): Remove.
13174         (struct lto_section): New struct.
13175         (struct lto_simple_header): Do not inherit from lto_header.
13176         (struct lto_file_decl_data): Add lto_section_header field.
13178 2019-07-03  Martin Liska  <mliska@suse.cz>
13180         * lra-eliminations.c (eliminate_regs_in_insn): Remove
13181         dead assignemts.
13182         * reg-stack.c (check_asm_stack_operands): Likewise.
13183         * tree-ssa-structalias.c (create_function_info_for): Likewise.
13184         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13185         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13186         force_expand_binop.
13188 2019-07-03  Martin Liska  <mliska@suse.cz>
13190         PR tree-optimization/90892
13191         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13192         in string constants.
13194 2019-07-03  Martin Liska  <mliska@suse.cz>
13196         PR middle-end/90899
13197         * multiple_target.c (create_dispatcher_calls): Add to comdat
13198         group only if set for ifunc.
13200 2019-07-03  Martin Liska  <mliska@suse.cz>
13202         PR target/88056
13203         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13204         Define local_object_name in outer scope in order to handle
13205         use-after-scope issue.
13207 2019-07-03  Martin Liska  <mliska@suse.cz>
13209         * common.opt: Add fprofile-note.
13210         * coverage.c (coverage_init): Append the option
13211         to bbg_file_name.
13212         * doc/invoke.texi: Document -fprofile-note.
13214 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
13216         PR tree-optimization/91033
13217         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13218         vect_analyze_data_refs): Add bool * arguments.
13219         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13220         if failure is due to scatter/gather, set *fatal to false if non-NULL.
13221         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13222         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13223         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13224         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13225         vect_analyze_data_refs caller.
13227         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13228         clause.
13229         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13230         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13231         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13232         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13233         OMP_CLAUSE__SCANTEMP_ entry.
13234         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13235         * tree-pretty-print.c (dump_omp_clause): Likewise.
13236         * tree-nested.c (convert_nonlocal_omp_clauses,
13237         convert_local_omp_clauses): Likewise.
13238         * omp-general.h (struct omp_for_data): Add have_scantemp and
13239         have_nonctrl_scantemp members.
13240         * omp-general.c (omp_extract_for_data): Initialize them.
13241         * omp-low.c (struct omp_context): Add scan_exclusive member.
13242         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13243         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
13244         ctx->scan_exclusive.
13245         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13246         of !ctx->scan_inclusive.
13247         (lower_rec_input_clauses): Simplify gimplification of dtors using
13248         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13249         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13250         loops.  Don't add barrier for reduction_omp_orig_ref if
13251         ctx->scan_??xclusive.
13252         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13253         (lower_omp_scan): Use ctx->scan_exclusive instead
13254         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
13255         reductions.  Use new_vard != new_var instead of repeated
13256         omp_is_reference calls.
13257         (omp_find_scan, lower_omp_for_scan): New functions.
13258         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13259         inscan reductions.
13260         * omp-expand.c (expand_omp_scantemp_alloc): New function.
13261         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13262         and fd->have_scantemp.
13264         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13265         on worksharing loop propagate it as shared clause to containing
13266         combined parallel.
13268         * omp-expand.c (expand_omp_for_static_nochunk,
13269         expand_omp_for_static_chunk): For nowait worksharing loop with
13270         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13271         at the end.
13273 2019-07-02  qing zhao  <qing.zhao@oracle.com>
13275         PR preprocessor/90581
13276         * doc/cppopts.texi: Add document for -fmax-include-depth.
13277         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13279 2019-07-02  Uroš Bizjak  <ubizjak@gmail.com>
13281         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13282         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13283         (mmx_packssdw): Ditto.
13284         (mmx_punpckhbw): Ditto.
13285         (mmx_punpcklbw): Ditto.
13286         (mmx_punpckhwd): Ditto.
13287         (mmx_punpcklwd): Ditto.
13288         (mmx_punpckhdq): Ditto.
13289         (mmx_punpckldq): Ditto.
13290         (*vec_dupv4hi): Ditto.
13291         (*vec_dupv2si): Ditto.
13292         (mmx_pmovmskb): Ditto.
13293         * config/i386/sse.md (sse_cvtpi2ps): Use
13294         TARGET_SSE2 && SSE_REG_P in split condition.
13295         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13296         TARGET_SSSE3 && SSE_REGNO_P in split condition.
13297         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13298         (ssse3_pshufbv8qi3): Ditto.
13299         (ssse3_palignrdi): Ditto.
13301 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
13303         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13304         with inlined save and restore.
13306 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
13308         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13309         to be inserted on single successor edge of the entry block.  Then call
13310         commit_edge_insertions instead of inserting the instructions manually.
13311         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13312         RTL expansion and rebuild jump labels chain.
13314 2019-07-02  Richard Biener  <rguenther@suse.de>
13316         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13317         TI_CHREC_KNOWN.
13318         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13319         Define here.
13320         * tree.c (build_common_tree_nodes): Initialize them.
13321         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13322         Make declarations comments.
13323         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13324         chrec_known): Remove definitions.
13325         (initialize_scalar_evolutions_analyzer): Remove.
13326         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13327         * tree-streamer.c (preload_common_nodes): Do not preload
13328         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13330 2019-07-02  Jan Hubicka  <jh@suse.cz>
13332         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13333         sanity check.
13335 2019-07-02  Jan Hubicka  <jh@suse.cz>
13337         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13338         to ..
13339         (nonoverlapping_component_refs_since_match_p): ... this one;
13340         handle also non-decl bases; return -1 if search gave up.
13341         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13342         nonoverlapping_component_refs_of_decl_p_no_alias to
13343         nonoverlapping_component_refs_since_match_p_may_alias,
13344         nonoverlapping_component_refs_since_match_p_no_alias.
13345         (dump_alias_stats): Update dumping.
13346         (aliasing_matching_component_refs_p): Break out from ...;
13347         dispatch to nonoverlapping_component_refs_for_decl_p
13348         and nonoverlapping_component_refs_since_match_p.
13349         (aliasing_component_refs_p): ... here; call
13350         nonoverlapping_component_refs_p in scenarios where we can not
13351         precisely determine base match.
13352         (decl_refs_may_alias_p): Use
13353         nonoverlapping_component_refs_since_match_p.
13354         (indirect_ref_may_alias_decl_p): Do not call
13355         nonoverlapping_component_refs_p.
13356         (indirect_refs_may_alias_p): Likewise.
13358 2019-07-02  Jan Hubicka  <jh@suse.cz>
13360         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13361         to clobber of return value.
13363 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13365         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13366         for is_neon_type instructions that have not already been categorized.
13368 2019-07-02  Richard Biener  <rguenther@suse.de>
13370         PR tree-optimization/58483
13371         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13372         for MEM_REF base hashing.
13373         (equal_mem_array_ref_p): Likewise for base comparison.
13375 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13377         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13378         parameterized name.
13379         (signbit<mode>2): Use that name.  Simplify.
13381 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
13383         PR middle-end/66726
13384         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13385         Tune heuristic from PR71016 to allow MIN / MAX.
13387 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13389         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13390         parameterized name.
13391         (abs<mode>2): Use that name.  Simplify.
13393 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13395         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13396         parameterized name.
13397         (neg<mode>2): Use that name.  Simplify.
13399 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13401         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13402         name.
13403         (abs<mode>2): Use that name.  Simplify.
13405 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13407         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13408         name.
13409         (neg<mode>2): Use that name.  Simplify.
13411 2019-07-01  Uroš Bizjak  <ubizjak@gmail.com>
13413         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13414         ("enabled" attribute): Handle sse_noavx isa attribute.
13415         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13416         Use TARGET_SSE && SSE_REGNO_P in split condition.
13417         (*vec_dupv2sf): Ditto.
13419 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13421         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13422         name.
13423         (floatsi<mode>2): Use that name.  Simplify.
13425 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13427         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13428         parameterized name.
13429         (extenddf<mode>2_vsx): Make this a parameterized name.
13430         (extenddf<mode>2): Use those names.  Simplify.
13432 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13434         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13435         name.
13436         (eh_return): Use that name.  Simplify.
13438 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13440         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13441         (doloop_end): Use that name.  Simplify.
13443 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13445         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13446         parameterized name.
13447         (indirect_jump): Use that name.  Simplify.
13449 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13451         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13452         parameterized name.
13453         (abs<mode>2): Use that name.  Simplify.
13455 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13457         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13458         parameterized name.
13459         (fix_trunc<mode>si2): Use that name.  Simplify.
13461 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13463         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13464         (allocate_stack): Use that name.  Simplify.
13466 2019-07-01  Martin Sebor  <msebor@redhat.com>
13468         PR middle-end/90923
13469         * hash-map.h (hash_map::put): On insertion invoke element ctor.
13470         (hash_map::get_or_insert): Same.  Reformat comment.
13471         * hash-set.h (hash_set::add): On insertion invoke element ctor.
13472         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13473         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13474         * hash-table.h (hash_table::operator=): Prevent copy assignment.
13475          (hash_table::hash_table (const hash_table&)): Use copy ctor
13476          instead of assignment to copy elements.
13478 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
13479             John David Anglin  <danglin@gcc.gnu.org>
13481         PR target/90963
13482         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13483         using saved frame pointer.
13485 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
13487         PR middle-end/64242
13488         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13489         Add frame clobber and schedule blockage.
13491 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
13493         * doc/invoke.texi (Link Options): Further editorial changes to
13494         -flinker-output docs.
13496 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13498         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13499         Load both operands of a PLUS into registers separately.
13501 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
13503         * config/s390/vector.md: Fix shift count operand printing.
13505 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13507         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13509 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13511         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13512         Use recog_data to test for an output operand.
13514 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13516         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13517         exclude any others that are disparaged or that are bound to need
13518         a reload or spill.
13519         (ira_get_dup_out_num): Expand comment.
13521 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13523         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13524         constraint string for each operand/alternative combo.  Only handle
13525         '%' at the start of constraint strings, and look for it outside
13526         the main loop.
13528 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13530         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13531         alternative_mask instead of HARD_REG_SET to represent a
13532         bitmask of alternatives.
13533         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13534         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13536 2019-07-01  Martin Liska  <mliska@suse.cz>
13538         * edit-context.c (test_applying_fixits_unreadable_file): Do not
13539         use () for a constructor call.
13540         (test_applying_fixits_line_out_of_range): Likewise.
13541         * ggc-page.c (alloc_page): Use (void *) for %p printf format
13542         argument.
13543         (free_page): Likewise.
13545 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
13547         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13548         parameter names to match usage (no functional change).
13549         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13551 2019-07-01  Richard Biener  <rguenther@suse.de>
13553         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13554         pass parameter.
13555         (pass_fre::execute): Honor it.
13556         * passes.def: Adjust pass_fre invocations to allow iterating,
13557         add non-iterating pass_fre before late threading/dom.
13559 2019-07-01  Richard Biener  <rguenther@suse.de>
13561         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13562         TARGET_MEM_REF handling to also handle address-taken ones.
13564 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
13566         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13567         hardware attributes): Document avx512vp2intersect.
13569 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
13571         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13572         (abs<mode>2): New expander.
13573         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13574         Use CODE_FOR_ssse3_absv8qi2.
13575         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13576         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13578 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
13580         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13581         to sse, sse_noavx and avx.  Update all uses.
13583 2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>
13585         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13586         (*mmx_<plusminus_insn><mode>3): Ditto.
13587         (*mmx_mulv4hi3"): Ditto.
13588         (*mmx_smulv4hi3_highpart): Ditto.
13589         (*mmx_umulv4hi3_highpart): Ditto.
13590         (*mmx_pmaddwd): Ditto.
13591         (*sse2_umulv1siv1di3): Ditto.
13592         (*mmx_<code>v4hi3): Ditto.
13593         (*mmx_<code>v8qi3): Ditto.
13594         (mmx_ashr<mode>3): Ditto.
13595         ("mmx_<shift_insn><mode>3): Ditto.
13596         (*mmx_eq<mode>3): Ditto.
13597         (mmx_gt<mode>3): Ditto.
13598         (mmx_andnot<mode>3): Ditto.
13599         (*mmx_<code><mode>3): Ditto.
13600         (*mmx_pinsrw): Ditto.
13601         (*mmx_pextrw): Ditto.
13602         (mmx_pshufw_1): Ditto.
13603         (*mmx_uavgv8qi3): Ditto.
13604         (*mmx_uavgv4hi3): Ditto.
13605         ("mmx_psadbw): Ditto.
13606         * config/i386/sse.md (sse_cvtps2pi): Ditto.
13607         (sse_cvttps2pi): Ditto.
13608         (ssse3_pmaddubsw): Ditto.
13609         (*ssse3_pmulhrswv4hi3): Ditto.
13610         (ssse3_psign<mode>3): Ditto.
13612 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13614         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13615         adjustment for bit-fields to all aggregate types.
13617 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
13619         * config/rs6000/predicates.md (pcrel_address): Use
13620         SYMBOL_REF_LOCAL_P to determine if a label is local.
13621         (pcrel_external_address): New predicate.
13622         (non_prefixed_mem_operand): Delete, predicate not used.
13623         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13624         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13625         addressing.
13626         (SYMBOL_REF_PCREL_P): Likewise.
13628         PR target/91009
13629         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13630         alternative.
13631         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13632         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13633         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13635 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
13637         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13638         override on extra_headers.
13640 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
13642         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13643         * config/darwin-driver.c (darwin_default_min_version): Remove newline
13644         from warning.
13645         (darwin_driver_init): Likewise.
13647 2019-06-28  Jan Beulich  <jbeulich@suse.com>
13649         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13650         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13651         Eliminate redundant alternative.
13653 2019-06-28  Jan Beulich  <jbeulich@suse.com>
13655         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13656         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13657         Use vector_operand.
13659 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
13661         * config/arc/arc.c (arc_rtx_costs): All short instructions are
13662         having a lower cost regardless of the speed option.
13664 2019-06-28  Jan Beulich  <jbeulich@suse.com>
13666         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13667         vector_operand plus, on both alternatives, "Bm" constraint.
13669 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
13671         * config/arm/arm.md: Remove redundant constraints from
13672         define_expand but leave reload_inm and reload_outm patterns
13673         untouched since they need special constraints to work.
13674         * config/arm/arm-fixed.md: Remove redundant constraints from
13675         define_expand.
13676         * config/arm/iwmmxt.md: Likewise.
13677         * config/arm/neon.md: Likewise.
13678         * config/arm/sync.md: Likewise.
13679         * config/arm/thumb1.md: Likewise.
13680         * config/arm/vec-common.md: Likewise.
13682 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
13684         * doc/install.texi: Document --disable-tm-clone-registry.
13686 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
13688         PR c++/91024
13689         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13690         statements.
13692         PR tree-optimization/91010
13693         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13694         return true.  Otherwise, don't call operand_equal_p if offset1 or
13695         offset2 is NULL and just return false.
13697 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
13699         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13700         user-specified float mode choice for kernel mode code.
13702 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
13704         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13705         spec.
13707 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
13709         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13710         use longcall for 64b code.
13712 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
13714         * builtins.c (get_memory_rtx): Fix comment.
13715         * optabs.def (movmem_optab): Change to cpymem_optab.
13716         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13717         (emit_block_move_hints): Change movmem to cpymem.
13718         * defaults.h: Change movmem to cpymem.
13719         * targhooks.c (get_move_ratio): Change movmem to cpymem.
13720         (default_use_by_pieces_infrastructure_p): Ditto.
13721         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13722         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13723         to cpymem.
13724         * config/aarch64/aarch64.h: Change movmem to cpymem.
13725         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13726         * config/alpha/alpha.h: Change movmem to cpymem in comment.
13727         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13728         movmem to cpymem.
13729         * config/arc/arc-protos.h: Change movmem to cpymem.
13730         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13731         * config/arc/arc.h: Change movmem to cpymem in comment.
13732         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13733         * config/arm/arm-protos.h: Change movmem to cpymem in names.
13734         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13735         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13736         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13737         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13738         * config/avr/avr-protos.h: Change movmem to cpymem.
13739         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13740         avr_out_movmem): Change movmem to cpymem.
13741         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13742         Change movmem to cpymem.
13743         * config/bfin/bfin-protos.h: Change movmem to cpymem.
13744         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13745         Change movmem to cpymem.
13746         * config/bfin/bfin.h: Change movmem to cpymem in comment.
13747         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13748         * config/c6x/c6x-protos.h: Change movmem to cpymem.
13749         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13750         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13751         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13752         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13753         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13754         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13755         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13756         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13757         expand_small_cpymem_or_setmem,
13758         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13759         expand_set_or_cpymem_constant_prologue,
13760         ix86_expand_set_or_cpymem): Change movmem to cpymem.
13761         * config/i386/i386-protos.h: Change movmem to cpymem.
13762         * config/i386/i386.h: Change movmem to cpymem in comment.
13763         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13764         (setmem<mode>): Change expansion function name.
13765         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13766         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13767         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13768         * config/m32c/m32c-protos.h: Change movmem to cpymem.
13769         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13770         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13771         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13772         to cpymem.
13773         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13774         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13775         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13776         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13777         Change movmem to cpymem.
13778         * config/mips/mips.h: Change movmem to cpymem.
13779         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13780         * config/nds32/nds32-memory-manipulation.c
13781         (nds32_expand_movmemsi_loop_unknown_size,
13782         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13783         nds32_expand_movmemsi_unroll,
13784         nds32_expand_movmemsi): Change movmem to cpymem.
13785         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13786         * config/nds32/nds32-protos.h: Change movmem to cpymem.
13787         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13788         (pa_adjust_insn_length): Change call to compute_movmem_length.
13789         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13790         movmemdi, movmemdi_prereload,
13791         movmemdi_postreload): Change movmem to cpymem.
13792         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13793         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13794         * config/riscv/riscv.c: Change movmem to cpymem in comment.
13795         * config/riscv/riscv.h: Change movmem to cpymem.
13796         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13797         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13798         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13799         movmem to cpymem.
13800         * config/s390/s390-protos.h: Change movmem to cpymem.
13801         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13802         s390_expand_insv): Change movmem to cpymem.
13803         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13804         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13805         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13806         * config/sparc/sparc.h: Change movmem to cpymem in comment.
13807         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13808         for nonexistent function.
13809         * config/vax/vax.h: Change movmem to cpymem in comment.
13810         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13811         * config/visium/visium.h: Change movmem to cpymem in comment.
13812         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13813         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13814         * doc/md.texi: Change movmem to cpymem and update description to match.
13815         * doc/rtl.texi: Change movmem to cpymem.
13816         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13817         * doc/tm.texi: Regenerate.
13819 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
13821         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13822         -fvariable-expansion-in-unroller by default.
13823         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13824         default for Power.
13826 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
13828         Revert
13829         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
13830         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13832         * config.gcc(rs6000-*-*): Define target_gtfiles.
13834 2019-06-27  Jan Hubicka  <jh@suse.cz>
13836         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13837         (add_type_duplicate): When odr hash is not allocated, to nothing.
13838         (odr_based_tbaa_p): New function.
13839         (set_type_canonical_for_odr_type): New function.
13840         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13841         set_type_canonical_for_odr_type): New.
13842         * tree.c (gimple_canonical_types_compatible_p): ODR types with
13843         ODR based TBAA are not equivalent to non-ODR types.
13845 2019-06-27  Martin Liska  <mliska@suse.cz>
13847         PR tree-optimization/90974
13848         PR rtl-optimization/90975
13849         PR rtl-optimization/90976
13850         PR target/91016
13851         PR tree-optimization/91017
13852         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13853         unused tmp.
13854         * lra.c (lra_set_insn_recog_data): Remove a leftover from
13855         initial commit of IRA.
13856         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13857         of op0 and op1.
13858         * tree-vect-loop.c (vect_create_epilog_for_reduction):
13859         Remove unused mode1.
13860         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
13861         to new_stmt_info.
13863 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
13865         PR target/90991
13866         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
13867         instead of register_operand for operands[1], add m to its constraints
13868         if operands[2] uses "C" constraint.  Ensure in condition that if
13869         operands[2] is not 0, then operands[1] is not a MEM.  For last two
13870         alternatives, use unaligned loads instead of aligned if operands[1] is
13871         misaligned_operand.
13873 2019-06-27  Martin Liska  <mliska@suse.cz>
13875         * asan.c (asan_emit_allocas_unpoison): Remove obviously
13876         dead assignments.
13877         * bt-load.c (move_btr_def): Likewise.
13878         * builtins.c (expand_builtin_apply_args_1): Likewise.
13879         (expand_builtin_apply): Likewise.
13880         * cfgexpand.c (expand_asm_stmt): Likewise.
13881         (construct_init_block): Likewise.
13882         * cfghooks.c (verify_flow_info): Likewise.
13883         * cfgloopmanip.c (remove_path): Likewise.
13884         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
13885         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
13886         * combine.c (simplify_if_then_else): Likewise.
13887         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13888         (choose_basereg): Likewise.
13889         (ix86_expand_prologue): Likewise.
13890         (ix86_preferred_output_reload_class): Likewise.
13891         * cselib.c (cselib_record_sets): Likewise.
13892         * df-scan.c (df_scan_alloc): Likewise.
13893         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
13894         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
13895         * emit-rtl.c (try_split): Likewise.
13896         * graphite-scop-detection.c (assign_parameter_index_in_region):
13897         Likewise.
13898         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
13899         * ira-color.c (setup_profitable_hard_regs): Likewise.
13900         * ira.c (rtx_moveable_p): Likewise.
13901         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
13902         * read-rtl.c (read_subst_mapping): Likewise.
13903         * regrename.c (scan_rtx): Likewise.
13904         * reorg.c (fill_slots_from_thread): Likewise.
13905         * tree-inline.c (tree_function_versioning): Likewise.
13906         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13907         * tree-ssa-sink.c (statement_sink_location): Likewise.
13908         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
13909         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
13910         (vect_create_epilog_for_reduction): Likewise.
13911         * tree.c (build_nonstandard_integer_type): Likewise.
13913 2019-06-27  Richard Biener  <rguenther@suse.de>
13915         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
13917 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
13919         PR tree-optimization/89772
13920         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
13921         out-of-bound accesses checking.
13923 2019-06-27  Martin Liska  <mliska@suse.cz>
13925         PR tree-optimization/91014
13926         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
13927         when LHS is NULL_TREE.
13929 2019-06-27  Martin Liska  <mliska@suse.cz>
13931         * symbol-summary.h (traverse): Pass
13932         argument a to the call of callback.
13933         (gt_ggc_mx): Mark arguments as unused.
13934         (gt_pch_nx): Likewise.
13936 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
13938         PR target/62147
13939         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
13940         finiteness.
13942 2019-06-26  Jeff Law  <law@redhat.com>
13944         PR tree-optimization/90883
13945         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
13946         (delete_dead_or_redundant_assignment): Likewise.
13948         PR tree-optimization/90883
13949         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
13950         * tree-ssa-dse.c: Update various comments to distinguish between
13951         dead and redundant stores.
13952         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
13953         (dse_optimize_redundant_stores): New function.
13954         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
13955         Distinguish between dead and redundant calls in dump output.  All
13956         callers updated.
13957         (delete_dead_or_redundant_assignment): Similarly for assignments.
13958         (dse_optimize_stmt): Handle _CHK variants.  For statements which
13959         store 0 into multiple memory locations, try to prove a subsequent
13960         store is redundant.
13962 2019-06-26  Uroš Bizjak  <ubizjak@gmail.com>
13964         PR target/89021
13965         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
13966         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
13968 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
13970         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
13971         (branch_islands): New extern.
13972         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
13973         * config/rs6000/rs6000.c: .. here.
13975 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
13977         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
13978         (powerpc*-*-*) ... to here.
13980 2019-06-26  Jeff Law  <law@redhat.com>
13982         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
13983         memcpy, memmove and memset builtins.
13984         (maybe_trim_memstar_call): Likewise.
13986 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
13988         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
13990 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
13992         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13994 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
13996         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
13997         declaration.
13998         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
13999         "static".
14000         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14001         declaration.
14003 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
14005         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14007 2019-06-26  Richard Biener  <rguenther@suse.de>
14009         PR ipa/90982
14010         * tree-inline.c (remap_ssa_name): Copy SSA range info.
14012 2019-06-26  Richard Biener  <rguenther@suse.de>
14014         * lto-streamer.h (lto_bitmap_alloc): Remove.
14015         (lto_bitmap_free): Likewise.
14016         * lto-streamer.c (lto_bitmap_alloc): Remove.
14017         (lto_bitmap_free): Likewise.
14018         (lto_obstack): Likewise.
14019         (lto_obstack_initialized): Likewise.
14020         * lto-streamer-out.c (lto_output): Use own obstack for local
14021         bitmap, free it consistently.
14023 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
14025         PR target/90991
14026         * config/i386/sse.md
14027         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14028         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14029         insns if operands[2] is misaligned_operand.
14031 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
14033         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14034         TARGET_POWERPC64.
14035         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14036         to GPR.
14038 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
14040         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14042 2019-06-26  Martin Liska  <mliska@suse.cz>
14044         PR tree-optimization/90973
14045         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14046         epilogue_cost_vec instead of prologue_cost_vec for
14047         a epilogue cost.
14049 2019-06-26  Martin Liska  <mliska@suse.cz>
14051         * bb-reorder.c (connect_better_edge_p): Add missing else
14052         statement in the middle of if-else statements.
14054 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
14055             H.J. Lu  <hongjiu.lu@intel.com>
14056             Olga Makhotina  <olga.makhotina@intel.com>
14058         * common/config/i386/i386-common.c
14059         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14060         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14061         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14062         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14063         (ix86_handle_option): Handle -mavx512vp2intersect.
14064         * config/i386/avx512vp2intersectintrin.h: New.
14065         * config/i386/avx512vp2intersectvlintrin.h: New.
14066         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14067         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14068         AVX512VP2INTERSECT.
14069         * config/i386/i386-builtin-types.def: Add new types.
14070         * config/i386/i386-builtin.def: Add new builtins.
14071         * config/i386/i386-builtins.c: (enum processor_features): Add
14072         F_AVX512VP2INTERSECT.
14073         (static const _isa_names_table isa_names_table): Ditto.
14074         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14075         __AVX512VP2INTERSECT__.
14076         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14077         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14078         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14079         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14080         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14081         * config/i386/i386-options.c (ix86_target_string): Add
14082         -mavx512vp2intersect.
14083         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14084         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14085         P2HImode and P2QImode.
14086         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14087         number for P2QImode and P2HImode.
14088         (ix86_regmode_natural_size): New function.
14089         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14090         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14091         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14092         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14093         * config/i386/i386.opt: Add -mavx512vp2intersect.
14094         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14095         avx512vp2intersectvlintrin.h.
14096         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14097         (define_mode_iterator VI48_AVX512VP2VL): New.
14098         (avx512vp2intersect_2intersect<mode>,
14099         avx512vp2intersect_2intersectv16si): New define_insn patterns.
14100         * config.gcc: Add avx512vp2intersectvlintrin.h and
14101         avx512vp2intersectintrin.h to extra_headers.
14102         * doc/invoke.texi: Document -mavx512vp2intersect.
14104 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
14106         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14108 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
14110         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14111         savres_routine_syms, savres_routine_name, morestack_ref,
14112         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14113         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14114         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14115         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14116         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14117         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14118         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14119         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14120         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14121         get_stack_clash_protection_probe_interval,
14122         get_stack_clash_protection_guard_size,
14123         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14124         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14125         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14126         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14127         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14128         gen_frame_mem_offset, rs6000_savres_routine_name,
14129         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14130         ptr_regno_for_savres, rs6000_emit_savres_rtx,
14131         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14132         rs6000_global_entry_point_prologue_needed_p,
14133         rs6000_get_separate_components, rs6000_components_for_bb,
14134         rs6000_disqualify_components, rs6000_emit_prologue_components,
14135         rs6000_emit_epilogue_components, rs6000_set_handled_components,
14136         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14137         rs6000_output_savres_externs, rs6000_output_function_prologue,
14138         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14139         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14140         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14141         rs6000_output_function_epilogue, gen_add3_const,
14142         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14143         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14144         to rs6000-logue.c.
14145         (machine_function): Moved to rs6000.h.
14146         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14147         rs6000-internal.h.
14148         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14149         savres_routine_syms, savres_routine_name, morestack_ref,
14150         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14151         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14152         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14153         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14154         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14155         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14156         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14157         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14158         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14159         get_stack_clash_protection_probe_interval,
14160         get_stack_clash_protection_guard_size,
14161         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14162         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14163         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14164         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14165         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14166         gen_frame_mem_offset, rs6000_savres_routine_name,
14167         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14168         ptr_regno_for_savres, rs6000_emit_savres_rtx,
14169         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14170         rs6000_global_entry_point_prologue_needed_p,
14171         rs6000_get_separate_components, rs6000_components_for_bb,
14172         rs6000_disqualify_components, rs6000_emit_prologue_components,
14173         rs6000_emit_epilogue_components, rs6000_set_handled_components,
14174         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14175         rs6000_output_savres_externs, rs6000_output_function_prologue,
14176         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14177         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14178         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14179         rs6000_output_function_epilogue, gen_add3_const,
14180         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14181         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14182         to here from rs6000.c.
14183         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14184         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14185         quad_address_offset_p) Moved to here from rs6000.c.
14186         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14187         * config/config.gcc: Add new source file rs6000-logue.c to garbage
14188         collector.
14190 2019-06-25  Martin Liska  <mliska@suse.cz>
14192         * hash-table.c (hashtab_chk_error): Move here from ...
14193         * hash-table.h (hashtab_chk_error): ... here.
14195 2019-06-25  Martin Liska  <mliska@suse.cz>
14197         PR tree-optimization/90978
14198         * df-scan.c (df_update_entry_block_defs): Remove dead else
14199         branch.
14200         (df_update_exit_block_uses): Likewise.
14202 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
14203             Andrew Stubbs  <ams@codesourcery.com>
14205         * config.gcc (thread_file): Set to gcn for AMD GCN.
14206         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14207         (TARGET_EMUTLS_VAR_INIT): New hook.
14209 2019-06-25  Martin Jambor  <mjambor@suse.cz>
14211         PR ipa/90939
14212         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14214 2019-06-25  Richard Biener  <rguenther@suse.de>
14216         PR tree-optimization/90930
14217         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14218         into parallel form in the last pass instance.
14220 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
14222         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14223         (arc_legitimize_pic_address): Simplify and cleanup the function.
14224         (SYMBOLIC_CONST): Remove.
14225         (prepare_pic_move): Likewise.
14226         (prepare_move_operands): Handle complex mov cases here.
14227         (arc_legitimize_address_0): Remove call to
14228         arc_legitimize_pic_address.
14229         (arc_legitimize_address): Remove call to
14230         arc_legitimize_tls_address.
14231         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14232         (movhi_insn): Likewise.
14234 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14236         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14237         PTRDIFF_TYPE.
14238         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14239         format of "__intN" types for UINTMAX_TYPE.
14240         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14241         format of "__intN" types for SIZETYPE.
14242         * tree.c (build_common_tree_nodes): Accept "__intN__"
14243         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14244         * doc/invoke.texi: Document that __intN__ disables pedantic
14245         warnings.
14247 2019-06-25  Jan Hubicka  <jh@suse.cz>
14249         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14250         base2_alias_set is non-zero before doing TBAA based disambiguation.
14252 2019-06-25  Martin Liska  <mliska@suse.cz>
14254         PR tree-optimization/90973
14255         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14256         of prologue and epilogue.
14258 2019-06-24  Jan Hubicka  <jh@suse.cz>
14260         * ipa-utils.h (type_with_linkage_p): Verify that type is
14261         CXX_ODR_P.
14262         (odr_type_p): Remove extra return.
14263         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14264         hash STRING_FLAG only for arrays and integers.
14265         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14266         Update analogously.
14267         * tree-streamer-out.c (pack_ts_type_common_value_fields):
14268         Likewise.
14269         * print-tree.c (print_node): Print cxx-odr-p
14270         and string-flag.
14271         * tree.c (need_assembler_name_p): Also check that type
14272         is CXX_ODR_TYPE_P
14273         (verify_type_variant): Update verification of SRING_FLAG;
14274         also check CXX_ODR_P.
14275         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14276         (TYPE_STRING_FLAG): Use it.
14277         (TYPE_CXX_ODR_P): New macro.
14278         * dwarf2out.c (gen_array_type_die): First check that type
14279         is an array and then test string flag.
14281 2019-06-24  Richard Biener  <rguenther@suse.de>
14283         PR tree-optimization/90972
14284         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14285         in common code, dealing with STRING_CST properly.
14287 2019-06-24  Richard Biener  <rguenther@suse.de>
14289         PR tree-optimization/90930
14290         PR tree-optimization/90316
14291         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14292         decrement of limit.
14294 2019-06-24  Martin Sebor  <msebor@redhat.com>
14296         * tree-pretty-print.h: Remove unnecessary punctuation characters
14297         from a diagnostic.
14298         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14300 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
14302         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14303         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14304         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14306 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
14308         * config/rs6000/darwin.h: Handle GCC target pragma.
14310 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
14312         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14314 2019-06-22  Jeff Law  <law@redhat.com>
14316         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14318 2019-06-22  Jan Hubicka  <jh@suse.cz>
14320         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14321         give up on bitfields; continue searching for different refs
14322         appearing later.
14324 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
14326         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14327         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14328         containing the offset as possible simd lane access.  Look through
14329         widening conversion.  Move the
14330         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14332 2019-06-21  Richard Biener  <rguenther@suse.de>
14334         PR tree-optimization/90930
14335         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14336         flag on new stmts to avoid re-processing them.
14338 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
14340         PR c++/90875 - added -Wswitch-outside-range option
14341         * doc/invoke.texi (Wswitch-outside-range): Document.
14343 2019-06-21  Jeff Law  <law@redhat.com>
14345         PR tree-optimization/90949
14346         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14347         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14349 2019-06-21  Richard Biener  <rguenther@suse.de>
14351         PR debug/90914
14352         * dwarf2out.c (prune_unused_types_walk): Always consider
14353         function-local extern declarations as used.
14355 2019-06-21  Richard Biener  <rguenther@suse.de>
14357         PR tree-optimization/90913
14358         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14359         the scalar variant of if-conversion versioning.
14361 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
14363         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14364         create another "omp scan inscan exclusive" array if
14365         !ctx->scan_inclusive.
14366         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14367         (lower_omp_scan): Likewise.
14368         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14369         2-bit bitfield for simd_lane_access_p member.
14370         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14371         aux == (void *)-4 as simd lane access.
14372         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
14373         comment with permutations to show the canonical permutation order.
14374         (vectorizable_scan_store): Handle exclusive scan.
14375         (vectorizable_store): Call vectorizable_scan_store even for
14376         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14378         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14379         "omp simd array" arrays with one byte elements.
14381 2019-06-20  Uroš Bizjak  <ubizjak@gmail.com>
14383         * config/alpha/alpha.md (@unaligned_store<mode>):
14384         Rename from unaligned_store<mode>.
14385         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14386         * config/alpha/sync.md (@load_locked_<mode>): Rename
14387         from load_locked_<mode>.
14388         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14389         (@atomic_compare_and_swap<mode>_1): Rename
14390         from atomic_compare_and_swap<mode>_1.
14391         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14392         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14393         Use gen_reload_in_aligned and gen_unaligned_store.
14394         (emit_load_locked): Remove.
14395         (emit_store_conditional): Ditto.
14396         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14397         (alpha_split_compare_and_swap): Ditto.
14398         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14399         (alpha_split_compare_and_swap_12): Use gen_load_locked
14400         and gen_store_conditional.
14401         (alpha_split_atomic_exchange): Ditto.
14402         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14403         (alpha_split_atomic_exchange_12): Use gen_load_locked
14404         and gen_store_conditional.
14406 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
14408         * config/aarch64/aarch64-errata.h: New file.
14409         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14410         (CA53_ERR_843419_SPEC): Delete.
14411         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14412         * config/aarch64/aarch64-linux.h: Likewise.
14413         * config/aarch64/aarch64-netbsd.h: Likewise.
14414         * config/aarch64/aarch64-freebsd.h: Likewise.
14416 2019-06-20  Marek Polacek  <polacek@redhat.com>
14418         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14420 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
14422         * config/rs6000/rs6000.md (isa attribute): Add support for
14423         for a future processor.
14425 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
14427         PR target/54855
14428         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14429         standard scalar operation pattern for V2DF.
14430         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14431         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14432         (*ieee_<ieee_maxmin><mode>3): Likewise.
14433         (vec_setv2df_0): Likewise.
14435 2019-06-20  Jan Hubicka  <jh@suse.cz>
14437         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14438         parameter; it has no use in gimple memory model.
14439         (indirect_ref_may_alias_decl_p): Update.
14441 2019-06-20  Martin Liska  <mliska@suse.cz>
14443         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14444         to 10.
14446 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
14448         * tree-vect-stmts.c (enum scan_store_kind): New type.
14449         (scan_store_can_perm_p): Change last argument from int * to
14450         vec<enum scan_store_kind> *, record precisely which permutations
14451         need whole vector left shift or that plus VEC_COND_EXPR.
14452         (vectorizable_scan_store): Adjust caller, use whole vector left shift
14453         and additional VEC_COND_EXPR only for those iterations that need it.
14455 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
14457         * config.gcc: Fix ARM --with-fpu checking and error message.
14459 2019-06-19  Marek Polacek  <polacek@redhat.com>
14461         PR c++/60364 - noreturn after first decl not diagnosed.
14462         * attribs.c (get_attribute_namespace): No longer static.
14463         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
14464         attributes.
14465         (attr_noreturn_exclusions): Make it extern.
14466         * attribs.h (get_attribute_namespace): Declare.
14467         * tree-inline.c (function_attribute_inlinable_p): Use
14468         get_attribute_name.
14470 2019-06-19  Martin Sebor  <msebor@redhat.com>
14472         PR tree-optimization/90626
14473         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14475         PR tree-optimization/90626
14476         * tree-ssa-strlen.c (strxcmp_unequal): New function.
14477         (handle_builtin_string_cmp): Call it.
14479 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
14481         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14482         and DARWIN_NOPIE_SPEC.
14483         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14484         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14485         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14486         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14487         (DARWIN_EXPORT_DYNAMIC): Delete.
14488         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14489         and pie options processing to  darwin.h.
14490         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14492 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
14494         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14495         in computing the number of options to be moved.
14497 2019-06-19  Maya Rashish  <coypu@sdf.org>
14499         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14500         (CLEAR_INSN_CACHE) Use it.
14502 2019-06-19  Uroš Bizjak  <ubizjak@gmail.com>
14504         * config/i386/i386.md (cmpstrnsi): Remove dead code.
14506 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
14508         PR middle-end/84521
14509         * builtins.c (expand_builtin_setjmp_setup): Save
14510         hard_frame_pointer_rtx.
14511         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14512         restore fp.
14513         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14514         non-local goto.
14515         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14516         elimination code.
14517         (remove_reg_equal_offset_note): Remove unused function.
14518         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14519         code.
14520         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14521         (arc_builtin_setjmp_frame_value): Remove function.
14522         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14523         (avr_builtin_setjmp_frame_value): Remove function.
14524         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14525         (ix86_builtin_setjmp_frame_value): Remove function.
14526         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14527         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14528         (sparc_builtin_setjmp_frame_value): Remove function.
14529         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14530         (vax_builtin_setjmp_frame_value): Remove function.
14531         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14532         pointer if has_nonlocal_label.
14534 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
14536         * doc/md.texi: Document vec_shl_<mode> pattern.
14537         * optabs.def (vec_shl_optab): New optab.
14538         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14539         argument, if == vec_shl_optab, check for left whole vector shift
14540         pattern rather than right shift.
14541         (expand_vec_perm_const): Add vec_shl_optab support.
14542         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14543         in the comment.
14544         * tree-vect-generic.c (lower_vec_perm): Support permutations which
14545         can be handled by vec_shl_optab.
14546         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14547         (check_scan_store): Use it.
14548         (vectorizable_scan_store): If target can't do normal permutations,
14549         try to use whole vector left shifts and if needed a VEC_COND_EXPR
14550         after it.
14551         * config/i386/sse.md (vec_shl_<mode>): New expander.
14553         * omp-low.c (lower_rec_input_clauses): Handle references properly
14554         in inscan clauses.
14555         (lower_omp_scan): Likewise.
14557 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
14559         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14560         mem_mode is BLKmode.
14562 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
14564         PR target/90922
14565         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14566         pointer adjustment for the case of no callee-saved registers and
14567         stack frame bigger than 128 bytes.
14569 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
14571         PR middle-end/90862
14572         * omp-low.c (check_omp_nesting_restrictions): Handle
14573         GF_OMP_TARGET_KIND_OACC_DECLARE.
14575 2019-06-18  Uroš Bizjak  <ubizjak@gmail.com>
14577         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14578         (@add<mode>3_carry): Rename from add<mode>3_carry.
14579         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14580         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14581         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14582         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14583         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14584         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14585         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14586         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14587         (cmpstrnsi): Use gen_cmp_1.
14588         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14589         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14590         (@umonitor_<mode>): Rename from umonitor_<mode>.
14591         * config/i386/i386-expand.c (ix86_expand_copysign):
14592         Use gen_copysign3_const and gen_copysign3_var.
14593         (ix86_expand_xorsign): Use gen_xorsign3_1.
14594         (ix86_expand_branch): Use gen_sub3_carry_ccc,
14595         gen_sub3_carry_ccgz and gen_cmp1.
14596         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14597         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14598         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14599         (ix86_split_lshr): Ditto.
14600         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14602 2019-06-18  Jason Merrill  <jason@redhat.com>
14604         * tree.c (build_constructor): Add MEM_STAT_DECL.
14606 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14608         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14609         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14610         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14611         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14612         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14613         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14614         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14615         Use CC_NZC instead of CC.
14616         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14617         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14618         (aarch64_print_operand): Handle E_CC_NZCmode.
14619         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14620         of gen_set_clobber_cc.
14622 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14624         * config/aarch64/aarch64-sve.md: Tabify file.
14626 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14628         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14629         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14630         * config/aarch64/aarch64-sve.md: Use it.
14632 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14634         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14635         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14636         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14637         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14638         (aarch64_expand_sve_vec_cmp_int): Use it.
14639         (aarch64_expand_sve_vec_cmp_float): Likewise.
14640         * config/aarch64/aarch64-sve.md: Likewise throughout.
14642 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14643             Kugan Vivekanandarajah  <kuganv@linaro.org>
14645         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14646         (*cond_<optab><mode>_z): Fold into...
14647         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
14648         operand 4 can be tied to operand 0 (either inherently or via RA).
14650 2019-06-18  Richard Biener  <rguenther@suse.de>
14652         PR debug/90900
14653         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14654         as if optimized away.
14656 2019-06-18  Tom de Vries  <tdevries@suse.de>
14658         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14659         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14660         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14661         Rename to ...
14662         (define_insn "@set_softstack_<mode>"): ... this.
14663         (define_insn "omp_simt_enter_<mode>"): Rename to ...
14664         (define_insn "@omp_simt_enter_<mode>"): ... this.
14665         (define_insn "omp_simt_exit_<mode>"): Rename to ...
14666         (define_insn "@omp_simt_exit_<mode>"): ... this.
14668 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14670         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14671         vf parameter.  Restore the previous iv step of nscalars_step,
14672         but give it iv_type rather than compare_type.  Tweak code order
14673         to match the comments.
14674         (vect_set_loop_condition_masked): Update accordingly.
14675         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14676         for iv_precision.  Tweak comment formatting.
14678 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
14680         * config/darwin.c: Strip trailing whitespace.
14682 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
14684         * config/darwin.c (darwin_emit_unwind_label): New default to false.
14685         (darwin_override_options): Set darwin_emit_unwind_label as needed.
14687 2019-06-18  Martin Jambor  <mjambor@suse.cz>
14689         PR ipa/90889
14690         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14691         caller does not have flag_ipa_cp set.
14693 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
14695         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14696         from "*fold_left_plus_<mode>", updated operands order.
14697         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14698         * internal-fn.c (mask_fold_left_direct): New define.
14699         (expand_mask_fold_left_optab_fn): Likewise.
14700         (direct_mask_fold_left_optab_supported_p): Likewise.
14701         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14702         * optabs.def (mask_fold_left_plus_optab): New optab.
14703         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14704         masked internal_fn for a reduction ifn.
14705         (vectorize_fold_left_reduction): Add support for masking reductions.
14707 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
14709         PR middle-end/80791
14710         * target.def (predict_doloop_p): New hook.
14711         * targhooks.h (default_predict_doloop_p): New declaration.
14712         * targhooks.c (default_predict_doloop_p): New function.
14713         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14714         * doc/tm.texi: Regenerate.
14715         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14716         (TARGET_PREDICT_DOLOOP_P): New macro.
14717         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14719 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
14721         * omp-low.c (struct omp_context): Add scan_inclusive field.
14722         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14723         if inclusive scan.
14724         (struct omplow_simd_context): Add lastlane member.
14725         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14726         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14727         1 or 2 argument.
14728         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14729         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14730         (lower_omp_scan): New function.
14731         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14732         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14733         check 3rd argument if present rather than 2nd.
14734         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14735         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14736         2-bit bitfield.
14737         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14738         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14739         than 2nd.
14740         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14741         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14742         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14743         init.
14744         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14745         IFN_GOMP_SIMD_LANE argument.
14746         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14747         encoded ->aux value.
14748         * tree-vect-stmts.c: Include attribs.h.
14749         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14750         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14751         functions.
14752         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14753         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14755 2019-06-17  Uroš Bizjak  <ubizjak@gmail.com>
14757         PR target/62055
14758         * config/i386/i386.md (*nabstf2_1): New insn pattern.
14759         (*nabs<mode>2_1): Ditto.
14760         (nabs sse-reg splitter): New splitter.
14761         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14763 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
14765         PR bootstrap/90873.
14766         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14767         TMR index check.
14769 2019-06-17  Tom de Vries  <tdevries@suse.de>
14771         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14772         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14773         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14774         ...
14775         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
14776         match_operand 0.
14777         (define_insn "omp_simt_enter_insn"): Rename to ...
14778         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
14779         match_operand 0, 1 and 2, as well as the unspec_volatile result.
14780         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14781         gen_omp_simt_enter_si.
14782         (define_expand "omp_simt_exit"): New.
14783         (define_insn "omp_simt_exit"): Rename to ...
14784         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
14785         match_operand 0.
14787 2019-06-17  Matthew Green  <mrg@eterna.com.au>
14788             Maya Rashish  <coypu@sdf.org>
14790         * config.gcc (aarch64*-*-netbsd*): New target.
14791         * config/aarch64/aarch64-netbsd.h: New file.
14792         * config/aarch64/t-aarch64-netbsd: Likewise.
14794 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
14796         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14797         the access path from base to first VIEW_CONVERT_EXPR or
14798         BIT_FIELD_REF.
14800 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
14802         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14803         access path on BIT_FIELD_REFs.
14805 2019-06-17  Martin Liska  <mliska@suse.cz>
14807         PR ipa/90874
14808         * ipa-utils.h (odr_type_p): Remove dead code.
14810 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14812         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14813         alternative Solaris 11.4 format.
14814         * configure: Regenerate.
14816 2019-06-17  Tom de Vries  <tdevries@suse.de>
14818         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14819         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
14820         match_operand 0.
14821         (define_insn "call_value_insn"): Rename to ...
14822         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
14823         match_operand 0.
14824         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14825         DI.
14827 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
14829         PR middle-end/64242
14830         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
14831         frame clobbers and schedule block.
14832         (builtin_longjmp): Likewise.
14834 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14836         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14837         describe how to perform MSPABI compliant 64-bit shift.
14838         * config/msp430/msp430.md (ashldi3): New define_expand.
14839         (ashrdi3): New define_expand.
14840         (lshrdi3): New define_expand.
14842 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14844         * doc/sourcebuild.texi: Document new effective target keyword
14845         longlong64.
14847 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
14849         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14850         indirect_refs_may_alias_p): Revert accidental commits.
14852         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14853         at the end of structures.
14855 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
14857         * config/darwin.c (machopic_indirect_call_target): Use renamed
14858         darwin_picsymbol_stubs to decide on output.
14859         (darwin_override_options): Handle darwin_picsymbol_stubs.
14860         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
14861         (LD64_VERSION): Revise default.
14862         * config/darwin.opt: (mpic-symbol-stubs): New option.
14863         (darwin_picsymbol_stubs): New variable.
14864         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
14865         rename to TARGET_MACHO_PICSYM_STUBS.
14866         * config/i386/i386.c (output_pic_addr_const): Likewise.
14867         * config/i386/i386.h Likewise.
14868         * config/rs6000/darwin.h: Likewise.
14869         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
14870         darwin_picsymbol_stubs.
14872 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
14874         * config/darwin.opt (prebind, noprebind, seglinkedit,
14875         noseglinkedit): Add RejectNegative.
14877 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
14879         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
14880         in my previous patch.
14882 2019-06-16  Tom de Vries  <tdevries@suse.de>
14884         PR tree-optimization/89376
14885         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
14887 2019-06-15  Maya Rashish  <coypu@sdf.org>
14889         * doc/invoke.texi (Spec Files): Update location of the
14890         Fortran spec file.
14892 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
14894         * doc/extend.texi (Common Function Attributes): Clarify
14895         no_sanitize.  Fix grammar.
14897 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
14899         * tree-ssa-alias.c (alias_stats): Add
14900         nonoverlapping_component_refs_p_may_alias,
14901         nonoverlapping_component_refs_p_no_alias,
14902         nonoverlapping_component_refs_of_decl_p_may_alias,
14903         nonoverlapping_component_refs_of_decl_p_no_alias.
14904         (dump_alias_stats): Dump them.
14905         (nonoverlapping_component_refs_of_decl_p): Add stats.
14906         (nonoverlapping_component_refs_p): Add stats; do not stop on first
14907         ARRAY_REF.
14909 2019-06-15  Uroš Bizjak  <ubizjak@gmail.com>
14911         * config/i386/i386.md (and<mode>3): Generate zero-extends for
14912         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
14913         only.
14914         (*anddi3_doubleword): Split before reload. Merge with
14915         anddi->zext pre-reload splitter.
14916         (*andndi3_doubleword): Split before reload.
14917         (*<code>di3_doubleword): Ditto.
14918         (*one_cmpldi2_doubleword): Ditto.
14920 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
14922         PR middle-end/90779
14923         * gimplify.c: Include omp-offload.h and context.h.
14924         (gimplify_bind_expr): Add "omp declare target" attributes
14925         to static block scope variables inside of target region or target
14926         functions.
14928 2019-06-15  Tom de Vries  <tdevries@suse.de>
14930         PR tree-optimization/90009
14931         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
14932         Return NULL if bb contains IFN_UNIQUE.
14934 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
14936         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
14937         (un): New define_mode_attr.
14938         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
14939         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
14940         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
14941         merge into ...
14942         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
14944 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
14946         * config/darwin.opt: Add RejectNegative where needed, reorder
14947         and add minimal functional descriptions.
14949 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14951         PR rtl-optimization/90765
14952         * calls.c (update_stack_alignment_for_call): New function.
14953         (expand_call): Call update_stack_alignment_for_call when
14954         outgoing parameter is passed in the stack.
14955         (emit_library_call_value_1): Likewise.
14956         * function.c (locate_and_pad_parm): Don't update
14957         stack_alignment_needed and preferred_stack_boundary.
14959 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14961         PR target/90877
14962         * config/i386/i386-features.c
14963         (dimode_scalar_chain::compute_convert_gain): Replace
14964         mmxsse_to_integer with sse_to_integer.
14965         * config/i386/i386.c (ix86_register_move_cost): Verify that
14966         moves between MMX and non-MMX units require secondary memory.
14967         Correct costs of moves between SSE and integer units.
14968         * config/i386/i386.h (processor_costs): Rename cost of moving
14969         SSE register to integer to sse_to_integer.  Rename cost of
14971 2019-06-14  Matt Thomas  <matt@3am-software.com>
14972             Matthew Green  <mrg@eterna.com.au>
14973             Nick Hudson  <skrll@netbsd.org>
14974             Maya Rashish  <coypu@sdf.org>
14975             Richard Earnshaw  <rearnsha@arm.com>
14977         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
14978         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
14979         * config/arm/netbsd-eabi.h: New file.
14980         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
14981         redefining.
14982         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
14983         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
14984         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
14985         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
14987 2019-06-14  Richard Biener  <rguenther@suse.de>
14989         * tree-loop-distribution.c (classify_partition): Return
14990         whether a reduction appeared in all partitions and do not
14991         stop builtin detection because of this.
14992         (distribute_loop): Sort a non-builtin partition last if
14993         there's a reduction in all partitions and make sure the
14994         partition prevailing as last is not a builtin.
14996 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
14998         PR ipa/90401
14999         * ipa-prop.c (add_to_agg_contents_list): New function.
15000         (clobber_by_agg_contents_list_p): Likewise.
15001         (extract_mem_content): Likewise.
15002         (get_place_in_agg_contents_list): Delete.
15003         (determine_known_aggregate_parts): Renamed from
15004         determine_locally_known_aggregate_parts.  New parameter
15005         aa_walk_budget_p.
15007 2019-06-13  Martin Sebor  <msebor@redhat.com>
15009         PR tree-optimization/90662
15010         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15011         to the same type.
15013 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
15015         PR bootstrap/90873
15016         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15017         dbase is not TARGET_MEM_REF.
15019 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
15021         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15022         Update all uses.
15023         (and<mode>3): Use gen_extend_insn instead of indirect functions.
15024         Do not generate DImode extends for 32bit targets.
15025         (and->zext post-reload splitter): Use gen_extend_insn
15026         instead of indirect functions.
15027         (anddi->zext pre-reload splitter): New.
15028         (*zext<mode>_doubleword_and): Remove.
15029         (*zext<mode>_doubleword): Ditto.
15030         (*zextsi_doubleword): Dittto.
15032 2019-06-13  Uroš Bizjak  <ubizjak@gmail.com>
15034         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15035         Use gen_sub3_insn instead of indirect function.
15036         (ix86_expand_ashl_const): Use gen_add2_insn instead of
15037         indirect function.
15038         (ix86_adjust_counter): Ditto.
15040 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
15041             Lijia He  <helijia@linux.ibm.com>
15043         PR tree-optimization/77820
15044         * tree-ssa-threadedge.c
15045         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15046         function.
15047         (thread_across_edge): Add call to
15048         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15050 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
15052         * config/darwin-driver.c (validate_macosx_version_min): New.
15053         (darwin_default_min_version): Cleanup and validate supplied version.
15054         (darwin_driver_init): Likewise and push cleaned version into opts.
15056 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
15058         PR tree-optimization/90869
15059         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15060         converts in MEM_REF referencing decl rather than view converts
15061         from decl type to MEM_REF type.
15063 2019-06-13  Richard Biener  <rguenther@suse.de>
15065         PR tree-optimization/90856
15066         * tree-sra.c (build_ref_for_model): Only use
15067         build_reconstructed_reference when address-spaces are the same.
15069 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
15071         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15072         wrap ei variable name in the declaration in ()s.
15073         (nvptx_single): Actually use mode_label variable.  Formatting fix.
15075 2019-06-13  Richard Biener  <rguenther@suse.de>
15077         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15078         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15079         also return the condition stmt.
15080         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15081         loop we can version and version that, reusing the loop version
15082         created by if-conversion instead of versioning again.
15084 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
15086         * gimple-loop-versioning.cc (prune_loop_conditions): Use
15087         may_contain_p.
15088         * tree-vrp (value_range_base::may_contain_p): Call into
15089         value_inside_range.
15090         (value_inside_range): Make private inside value_range_base class.
15091         Take min/max from *this.
15092         (range_includes_p): Remove.
15093         * tree-vrp.h (value_range_base): Add value_inside_range.
15094         (range_includes_p): Remove.
15095         (range_includes_zero_p): Call may_contain_p.
15096         * vr-values.c (compare_range_with_value): Same.
15098 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
15100         * doc/extend.texi (ARC Function Attributes): Update info.
15102 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
15104         PR tree-optimization/89713
15105         * doc/invoke.texi (-ffinite-loops): Document new option.
15106         * common.opt (-ffinite-loops): New option.
15107         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15108         IFN_GOACC_LOOP calls as necessary.
15109         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15110         is finite.
15111         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15112         IFN_GOACC_LOOP call is not used.
15113         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15115 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15117         PR target/88838
15118         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15119         compare_type is not with Pmode size, we will create an IV with
15120         Pmode size with truncated use (i.e. converted to the correct type).
15121         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15122         (vect_iv_limit_for_full_masking): New. Factored out of
15123         vect_set_loop_condition_masked.
15124         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15125         (vect_iv_limit_for_full_masking): Declare.
15127 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15129         PR target/88834
15130         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15131         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15132         (get_alias_ptr_type_for_ptr_address): Likewise.
15133         (add_iv_candidate_for_use): Add scaled index candidate if useful.
15134         * tree-ssa-address.c (preferred_mem_scale_factor): New.
15135         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15136         allow_reg_index_p.
15138 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15140         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15142 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
15144         * common/config/pru/pru-common.c: New file.
15145         * config.gcc: Add PRU target.
15146         * config/pru/alu-zext.md: New file.
15147         * config/pru/constraints.md: New file.
15148         * config/pru/predicates.md: New file.
15149         * config/pru/pru-opts.h: New file.
15150         * config/pru/pru-passes.c: New file.
15151         * config/pru/pru-pragma.c: New file.
15152         * config/pru/pru-protos.h: New file.
15153         * config/pru/pru.c: New file.
15154         * config/pru/pru.h: New file.
15155         * config/pru/pru.md: New file.
15156         * config/pru/pru.opt: New file.
15157         * config/pru/t-pru: New file.
15158         * doc/extend.texi: Document PRU pragmas.
15159         * doc/invoke.texi: Document PRU-specific options.
15160         * doc/md.texi: Document PRU asm constraints.
15162 2019-06-12  Martin Sebor  <msebor@redhat.com>
15164         PR middle-end/90676
15165         * tree-pretty-print.c (dump_mem_ref): New function.  Include
15166         MEM_REF type in output when different size than operand.
15167         (dump_generic_node): Move code to dump_mem_ref and call it.
15169 2019-06-12  Martin Sebor  <msebor@redhat.com>
15171         PR tree-optimization/90662
15172         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15173         to arrays.
15175 2019-06-12  Tom de Vries  <tdevries@suse.de>
15177         PR tree-optimization/90009
15178         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15180 2019-06-12  Martin Liska  <mliska@suse.cz>
15182         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15183         the created map.
15184         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15185         * mem-stats.h (mem_alloc_description::mem_alloc_description):
15186         Do not sanitize created maps.
15188 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
15190         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15191         value_range::singleton_p.
15192         * tree-vrp.c (value_range_constant_singleton): Remove.
15193         * tree-vrp.h (value_range_constant_singleton): Remove.
15194         * vr-values.c (vr_values::singleton): Use
15195         value_range::singleton_p.
15197 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
15199         PR target/90811
15200         * cfgexpand.c (align_local_variable): Add really_expand argument,
15201         don't SET_DECL_ALIGN if it is false.
15202         (add_stack_var): Add really_expand argument, pass it through to
15203         align_local_variable.
15204         (expand_one_stack_var_1): Pass true as really_expand to
15205         align_local_variable.
15206         (expand_one_ssa_partition): Pass true as really_expand to
15207         add_stack_var.
15208         (expand_one_var): Pass really_expand through to add_stack_var.
15210 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
15212         * config/arm/iterators.md (VABAL): New int iterator.
15213         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15214         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15215         UNSPEC_VABAL_U values.
15217 2019-06-12  Martin Liska  <mliska@suse.cz>
15219         * value-prof.c (stream_out_histogram_value): Only first value
15220         can't be negative.
15222 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
15224         PR c/90760
15225         * symtab.c (symtab_node::set_section): Allow being called on aliases
15226         as long as they aren't analyzed yet.
15228 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
15230         * config/mips/mips.c (mips_final_postscan_insn): Modify call
15231         to `mips_set_text_contents_type' to indicate whether a
15232         non-debug insn follows.
15234 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
15236         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15237         enabling -mpcrel by default.
15238         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15239         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15240         that the test against -mcpu=future is done first.  Then test if
15241         -mprefixed-addr is on for -mpcrel.
15242         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15244 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
15246         PR target/90811
15247         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15248         instead of and.u%d.
15250 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
15252         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15254 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
15256         PR c++/90449 - add -Winaccessible-base option.
15257         * doc/invoke.texi (Winaccessible-base): Document.
15259 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
15261         PR tree-optimization/62041
15262         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15264 2019-06-11  Jason Merrill  <jason@redhat.com>
15266         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15267         * tree.c (get_tree_code_name): Likewise.
15268         * print-tree.c (print_node): Only briefly print a node with an
15269         invalid code.
15271 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
15273         PR bootstrap/90819
15274         * trans-mem.c (tm_memopt_compute_available): Add assertion
15275         that blocks is not empty.  Formatting fix.
15277 2019-06-11  Martin Liska  <mliska@suse.cz>
15279         PR c++/87847
15280         * hash-table.h: Extend create_gcc, add one parameter
15281         that is passed into hash_table::hash_table.
15283 2019-06-10  Uroš Bizjak  <ubizjak@gmail.com>
15285         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15286         New prototype.
15287         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15288         Emit clobber also for non-sse operations.
15289         (ix86_split_fp_absneg_operator): New function.
15290         * config/i386/i386.md (SSEMODEF): New mode iterator.
15291         (ssevecmodef): New mode attribute.
15292         (<code>tf2): Use absneg code iterator.
15293         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15294         Add three-operand AVX alternatives.
15295         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15296         Use absneg code iterator and X87MODEF mode iterator.
15297         (absneg fp_reg non-sse splitter): Call absneg code iterator
15298         and X87MODEF mode iterator.
15299         (absneg general_reg non-sse splitter): Use absneg code iterator
15300         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
15301         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
15302         code iterator.  Add three-operand AVX alternative.
15303         (absneg sse_reg splitter): Use absneg code iterator
15304         and SSEMODEF mode iterator.  Handle AVX operands.
15305         (absneg fp_reg splitter): Use absneg code iterator
15306         and MODEF mode iterator.
15307         (absneg general_reg splitter): Merge splitters using MODEF mode
15308         iterator.  Use absneg code iterator.  Call
15309         ix86_split_fp_absneg_operator.
15310         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15311         Do not enable for non-sse modes before reload.
15312         (CSGNMODE): Remove.
15313         (CSGNVMODE): Ditto.
15314         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15315         ssevecmodef mode attribute instaed of CSGNVMODE.
15316         (copysign<mode>3_const): Ditto.
15317         (copysign<mode>3_var): Ditto.
15318         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15319         Use absneg code iterator.  Simplify code using std::swap.
15320         * config/i386/predicates.md (absneg_operator): Remove.
15322 2019-06-10  Martin Sebor  <msebor@redhat.com>
15324         * gimple-fold.c (get_range_strlen): Update comment that didn't
15325         make it into r267503 or related commits.
15327 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
15329         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15330         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15332 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
15334         * tree.def (OMP_SCAN): New tree code.
15335         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15336         OMP_CLAUSE_EXCLUSIVE.
15337         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15338         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15339         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15340         OMP_CLAUSE_{IN,EX}CLUSIVE.
15341         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15342         * tree-nested.c (convert_nonlocal_reference_stmt,
15343         convert_local_reference_stmt, convert_gimple_call): Handle
15344         GIMPLE_OMP_SCAN.
15345         * tree-pretty-print.c (dump_omp_clause): Handle
15346         OMP_CLAUSE_{IN,EX}CLUSIVE.
15347         (dump_generic_node): Handle OMP_SCAN.
15348         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15349         * gimple.h (gomp_scan): New type.
15350         (is_a_helper <gomp_scan *>::test,
15351         is_a_helper <const gomp_scan *>::test): New templates.
15352         (gimple_build_omp_scan): Declare.
15353         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15354         gimple_omp_scan_set_clauses): New inline functions.
15355         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15356         * gimple.c (gimple_build_omp_scan): New function.
15357         (gimple_copy): Handle GIMPLE_OMP_SCAN.
15358         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15359         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15360         GIMPLE_OMP_TASKGROUP.
15361         (dump_gimple_omp_scan): New function.
15362         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15363         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15364         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15365         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15366         (is_gimple_stmt): Handle OMP_SCAN.
15367         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15368         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15369         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15370         mentioned in nested #pragma omp scan.  Handle
15371         OMP_CLAUSE_{IN,EX}CLUSIVE.
15372         (gimplify_expr): Handle OMP_SCAN.
15373         * omp-low.c (check_omp_nesting_restrictions): For parent context,
15374         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
15375         simd constructs.
15376         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15377         GIMPLE_OMP_SCAN.
15379 2019-06-10  Martin Liska  <mliska@suse.cz>
15381         * ipa-cp.c (ignore_edge_p): New function.
15382         (build_toporder_info): Use it.
15383         * ipa-inline.c (ignore_edge_p): New function.
15384         (inline_small_functions): Use it.
15385         * ipa-pure-const.c (ignore_edge_for_nothrow):
15386         Verify opt_for_fn for caller and callee.
15387         (ignore_edge_for_pure_const): Likewise.
15388         * ipa-reference.c (ignore_edge_p): Extend to check
15389         for opt_for_fn.
15390         * ipa-utils.c (searchc): Refactor.
15391         * ipa-utils.h: Fix coding style.
15393 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
15395         * config/arc/arc.c (arc_rtx_costs): Update costs.
15397 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
15399         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15400         (arc_split_ior): Likewise.
15401         (arc_check_mov_const): Likewise.
15402         (arc_split_mov_const): Likewise.
15403         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15404         (arc_rtx_costs): Replace check Crr with Cax constraint.
15405         (prepare_move_operands): Cleanup, remove unused code.
15406         (arc_split_ior): New function.
15407         (arc_check_ior_const): Likewise.
15408         (arc_split_mov_const): Likewise.
15409         (arc_check_mov_const): Likewise.
15410         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15411         in define_insn_and_split pattern.
15412         (iorsi3): Likewise.
15413         (mulsi3_v2): Add new matching variant.
15414         (andsi3_i): Cleanup pattern.
15415         (rotrsi3_cnt1): Update pattern.
15416         (rotrsi3_cnt8): New pattern.
15417         (ashlsi2_cnt8): Likewise.
15418         (ashlsi2_cnt16): Likewise.
15419         * config/arc/constraints.md (C0p): Update constraint.
15420         (Crr): Remove it.
15421         (C0x): New pattern.
15422         (Cax): New pattern.
15424 2019-06-10  Martin Liska  <mliska@suse.cz>
15426         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15427         Update coding style.
15428         (sem_item_optimizer::dump_cong_classes):
15429         Print how many items are in a non-singular class.  Improve
15430         coding style.
15432 2019-06-10  Martin Liska  <mliska@suse.cz>
15434         * value-prof.c (dump_histogram_value): Change dump format.
15435         (gimple_mod_subtract_transform): Remove legacy comment.
15437 2019-06-10  Martin Liska  <mliska@suse.cz>
15439         * value-prof.c (dump_histogram_value): Print histogram values
15440         only if present.
15442 2019-06-10  Martin Liska  <mliska@suse.cz>
15444         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15445         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15446         * ipa-profile.c (ipa_profile_generate_summary):
15447         Use get_most_common_single_value.
15448         * tree-profile.c (gimple_init_gcov_profiler):
15449         Instrument with __gcov_one_value_profiler_v2
15450         and __gcov_indirect_call_profiler_v4.
15451         * value-prof.c (dump_histogram_value):
15452         Print all values for HIST_TYPE_SINGLE_VALUE.
15453         (stream_out_histogram_value): Update assert for
15454         N values.
15455         (stream_in_histogram_value): Set number of
15456         counters for HIST_TYPE_SINGLE_VALUE.
15457         (get_most_common_single_value): New.
15458         (gimple_divmod_fixed_value_transform):
15459         Use get_most_common_single_value.
15460         (gimple_ic_transform): Likewise.
15461         (gimple_stringops_transform): Likewise.
15462         (gimple_find_values_to_profile): Set number
15463         of counters for HIST_TYPE_SINGLE_VALUE.
15464         * value-prof.h (get_most_common_single_value): New.
15466 2019-06-10  Martin Liska  <mliska@suse.cz>
15468         * hash-map.h: Pass default value to hash_table ctor.
15469         * hash-table.h: Add default value to call of a ctor.
15471 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
15473         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15474         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15476 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
15478         PR target/90751
15479         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15480         Call pa_output_function_label.
15481         (TARGET_ASM_FUNCTION_PROLOGUE): define.
15482         * config/pa/pa-protos.h (pa_output_function_label): Declare.
15483         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15484         to declaration.
15485         (pa_linux_output_function_prologue): Declare.
15486         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15487         (pa_output_function_label): New.
15488         (pa_output_function_prologue): Revise to use pa_output_function_label.
15489         (pa_linux_output_function_prologue): New.
15490         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15492 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
15494         * tree-vrp.h (value_range_base::intersect): New.
15495         (value_range::intersect_helper): Move from here...
15496         (value_range_base::intersect_helper): ...to here.
15497         * tree-vrp.c (value_range::intersect_helper): Rename to...
15498         (value_range_base::intersect_helper): ...this, and rewrite to
15499         return a value instead of modifying THIS in place.
15500         Also, move equivalence handling...
15501         (value_range::intersect): ...here, while calling intersect_helper.
15502         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15503         calling intersect.
15504         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15505         Same.
15506         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15508 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
15510         * Makefile.in (genprogerr): Add condmd.
15511         (genprog): Remove it here.
15513 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
15515         * doc/invoke.texi (AMD GCN Options): Add gfx906.
15517 2019-06-07  Richard Biener  <rguenther@suse.de>
15519         PR debug/90574
15520         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15521         that appear after user labels.
15523 2019-06-07  Martin Liska  <mliska@suse.cz>
15525         * cselib.c (cselib_init): Disable hash table
15526         sanitization.
15527         * hash-set.h: Pass new default argument to m_table.
15528         * hash-table.c: Add global variable with hash table
15529         sanitization limit.
15530         * hash-table.h (Allocator>::hash_table): Add new argument
15531         to ctor.
15532         (hashtab_chk_error): New.
15533         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15534         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15535         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15537 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
15539         * common.opt (flto-odr-type-merging): Ignore.
15540         * invoke.texi (-flto-odr-type-merging): Remove.
15541         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15542         (can_be_vtable_hashed_p): Remove.
15543         (hash_odr_vtable): Remove.
15544         (odr_vtable_hasher::hash): Remove.
15545         (types_same_for_odr): Remove.
15546         (types_odr_comparable): Remove.
15547         (odr_vtable_hasher::equal): Remove.
15548         (odr_vtable_hash_type, odr_vtable_hash): Remove.
15549         (add_type_duplicate): Do not synchronize vtable and name hashtables.
15550         (get_odr_type): Do not use vtable hash.
15551         (dump_odr_type): Remove commented out code.
15552         (build_type_inheritance_graph): Do not allocate vtable hash.
15553         (rebuild_type_inheritance_graph): Do not delete vtable hash.
15554         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15555         (odr_type_p): Likewise.
15556         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15557         test.
15559 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
15561         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15562         immediately after same_types_for_tbaa_p returns -1 and continue
15563         looking for possible exact match; if matching types are arrays
15564         watch for partial overlaps.
15565         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15566         (indirect_refs_may_alias_p): Do type based disambiguation first;
15567         update comment.
15569 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
15571         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15573 2019-06-07  Martin Liska  <mliska@suse.cz>
15575         * doc/invoke.texi: Remove param.
15576         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15577         Remove.
15578         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15579         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15580         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15581         * profile.c (instrument_values): Remove
15582         HIST_TYPE_INDIR_CALL_TOPN.
15583         * tree-profile.c (init_ic_make_global_vars):
15584         Always build __gcov_indirect_call only.
15585         (gimple_init_gcov_profiler): Remove usage
15586         of PARAM_INDIR_CALL_TOPN_PROFILE.
15587         (gimple_gen_ic_profiler): Likewise.
15588         * value-prof.c (dump_histogram_value): Likewise.
15589         (stream_in_histogram_value): Likewise.
15590         (gimple_indirect_call_to_profile): Likewise.
15591         (gimple_find_values_to_profile): Likewise.
15592         * value-prof.h (enum hist_type): Likewise.
15594 2019-06-07  Martin Liska  <mliska@suse.cz>
15596         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15597         function.
15599 2019-06-07  Martin Liska  <mliska@suse.cz>
15601         PR tree-optimization/78902
15602         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15603         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15604         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15605         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15606         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15607         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15608         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15609         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15610         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15611         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15612         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15613         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15614         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15615         New.
15616         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15617         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15618         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15619         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15620         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15621         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15622         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15623         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15624         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15625         warn_unused_result attribute.
15626         (BUILT_IN_STRDUP): Likewise.
15627         (BUILT_IN_STRNDUP): Likewise.
15628         (BUILT_IN_ALLOCA): Likewise.
15629         (BUILT_IN_CALLOC): Likewise.
15630         (BUILT_IN_MALLOC): Likewise.
15631         (BUILT_IN_REALLOC): Likewise.
15633 2019-06-06  Jim Wilson  <jimw@sifive.com>
15635         PR target/89955
15636         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15637         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15638         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15640 2019-06-06  Martin Sebor  <msebor@redhat.com>
15642         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15643         (handle_builtin_malloc): Remove trailing spaces.
15644         (handle_builtin_memset): Same.
15645         (handle_builtin_memcmp): Same.
15646         (compute_string_length): Same.
15647         (determine_min_objsize): Same.
15648         (handle_builtin_string_cmp): Same.
15649         (handle_char_store): Same.  Break up excessively long line.
15651 2019-06-06  Martin Jambor  <mjambor@suse.cz>
15653         * tree-sra.c (build_reconstructed_reference): Drop the alignment
15654         check.
15656 2019-06-06  Martin Jambor  <mjambor@suse.cz>
15658         * tree-sra.c (struct access): New field grp_same_access_path.
15659         (dump_access): Dump it.
15660         (build_reconstructed_reference): New function.
15661         (build_ref_for_model): Use it if possible.
15662         (path_comparable_for_same_access): New function.
15663         (same_access_path_p): Likewise.
15664         (sort_and_splice_var_accesses): Set the new flag.
15665         (analyze_access_subtree): Likewise.
15666         (propagate_subaccesses_across_link): Propagate zero value of the new
15667         flag down the access tree.
15669 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
15671         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15672         * config/gcn/gcn.opt (gpu_type): Add gfx906.
15673         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15674         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15675         Add gfx906.
15677 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15679         PR tree-optimization/90332
15680         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15681         Handle VALS containing two vectors.
15682         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15683         to...
15684         (@aarch64_combinez<mode>): ... This.
15685         (*aarch64_combinez_be<mode>): Rename to...
15686         (@aarch64_combinez_be<mode>): ... This.
15687         (vec_init<mode><Vhalf>): New define_expand.
15688         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15690 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15692         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15693         library functions only when not optimizing for size.
15694         (ashlsi3): Likewise.
15695         (ashrhi3): Likewise.
15696         (ashrsi3): Likewise.
15697         (lshrhi3): Likewise.
15698         (lshrsi3): Likewise.
15700 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
15702         PR rtl-optimization/88751
15703         * ira.c (ira): Use the number of the actually referenced registers
15704         when calculating the threshold.
15706 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
15708         * configure: Regenerate.
15710 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15712         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15713         register if it is in memory, so the shift can be emulated with a rotate
15714         instruction.
15715         (ashrhi3): Likewise.
15716         (lshrhi3): Likewise.
15718 2019-06-06  Martin Liska  <mliska@suse.cz>
15720         PR tree-optimization/87954
15721         * match.pd: Simplify mult where both arguments are 0 or 1.
15723 2019-06-06  Richard Biener  <rguenther@suse.de>
15725         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15726         put equivalences on UNDEFINED ranges.
15727         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15728         Make sure to drop defs of stmts added during simplification
15729         to VARYING.
15731 2019-06-06  Richard Biener  <rguenther@suse.de>
15733         * tree-ssa-structalias.c: Include tree-cfg.h.
15734         (make_heapvar): Do not make heap vars artificial.
15735         (find_func_aliases_for_builtin_call): Handle stack allocation
15736         functions.
15737         (find_func_aliases): Delay processing of simple enough returns
15738         in non-IPA mode.
15739         (set_uids_in_ptset): Adjust.
15740         (find_what_var_points_to): Likewise.
15741         (solve_constraints): Do not dump points-to sets here.
15742         (compute_points_to_sets): Post-process return statements,
15743         amending the escaped solution.  Dump points-to sets afterwards.
15744         (ipa_pta_execute): Dump points-to sets.
15746 2019-06-06  Martin Liska  <mliska@suse.cz>
15748         PR web/87933
15749         * doc/install.texi: Fix HTML headers and
15750         titles for 'Installing GCC' pages.
15752 2019-06-06  Martin Liska  <mliska@suse.cz>
15754         * ipa-icf-gimple.h (dump_message_1): Remove.
15755         (dump_message): Likewise.
15756         (return_false_with_message_1): Print also file.
15757         (return_false_with_msg): Likewise.
15758         (return_with_result): Likewise.
15759         (return_with_debug): Likewise.
15760         * ipa-icf.c (sem_function::equals_private): Remove call
15761         to dump_message.
15763 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
15765         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15766         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15767         memory operand for it.
15768         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15770 2019-06-05  Martin Sebor  <msebor@redhat.com>
15772         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15773         Adjust quoting and hyphenation.
15774         * convert.c (convert_to_real_1): Same.
15775         * gcc.c (driver_wrong_lang_callback): Same.
15776         (driver::handle_unrecognized_options): Same.
15777         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15778         * opts-common.c (cmdline_handle_error): Same.
15779         (read_cmdline_option): Same.
15780         * opts-global.c (complain_wrong_lang): Same.
15781         (print_ignored_options): Same.
15782         (handle_common_deferred_options): Same.
15783         * pretty-print.h: Same.
15784         * print-rtl.c (debug_bb_n_slim): Same.
15785         * sched-rgn.c (make_pass_sched_fusion): Same.
15786         * tree-cfg.c (verify_gimple_assign_unary): Same.
15787         (verify_gimple_label): Same.
15788         * tree-ssa-operands.c (verify_ssa_operands): Same.
15789         * varasm.c (do_assemble_alias): Same.
15790         (assemble_alias): Same.
15792 2019-06-05  Richard Henderson  <rth@twiddle.net>
15794         * config/alpha/alpha.c (direct_return): Move down after
15795         struct machine_function definition; use saved frame_size;
15796         return bool.
15797         (struct machine_function): Add sa_mask, sa_size, frame_size.
15798         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15799         (alpha_compute_frame_layout): ... new function.
15800         (TARGET_COMPUTE_FRAME_LAYOUT): New.
15801         (alpha_initial_elimination_offset): Use saved sa_size.
15802         (alpha_vms_initial_elimination_offset): Likewise.
15803         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15804         (alpha_expand_prologue): Use saved frame data.  Merge integer
15805         and fp register save loops.
15806         (alpha_expand_epilogue): Likewise.
15807         (alpha_start_function): Use saved frame data.
15808         * config/alpha/alpha-protos.h (direct_return): Update.
15809         (alpha_sa_size): Remove.
15811 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15813         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15814         multiplication by a power-of-two value.
15815         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15816         and turn the modulo operation into a masking operation.
15818 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
15820         PR debug/90733
15821         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15822         with VOIDmode inner operands.
15824 2019-06-05  Richard Biener  <rguenther@suse.de>
15826         PR middle-end/90726
15827         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15828         turn an expression graph into a tree.
15830 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
15832         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15833         member.
15834         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15835         treat it like explicit monotonic schedule modifier.
15836         (expand_omp_for): Initialize has_lastprivate_conditional.
15837         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15838         schedule modifier.
15840         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15841         references, lookup in in hash map MEM_REF operand instead of the
15842         MEM_REF itself.
15843         (lower_omp_1): When looking for lastprivate conditional assignments,
15844         handle MEM_REFs with REFERENCE_TYPE operands.
15846         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15847         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15848         and references a VLA.  Handle references to non-VLAs if is_simd
15849         all privatization clauses like reductions.
15850         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15851         If omp_is_reference, use always omp simd arrays and set
15852         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15853         fails, emit reference initialization.
15855 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
15857         PR target/89803
15858         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
15859         _mm_mask_fpclass_sd_mask): New intrinsics.
15860         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
15861         * config/i386/i386-builtin.def
15862         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
15863         New builtins.
15864         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
15865         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
15866         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
15867         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
15868         case QI_FTYPE_V2SF_INT): Ditto.
15869         * config/i386/sse.md
15870         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
15871         Extended to insnstructions with mask operands.
15873 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15875         * config/rs6000/constraints.md (define_register_constraint "wp"):
15876         Delete.
15877         (define_register_constraint "wq"): Delete.
15878         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15879         (rs6000_init_hard_regno_mode_ok): Adjust.
15880         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15881         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
15882         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
15883         (define_mode_attr VSa): Delete.
15884         (define_mode_attr VSisa): New.
15885         (rest of file): Adjust.
15886         * doc/md.texi (Machine Constraints): Adjust.
15888 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15890         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
15891         (define_attr "enabled"): Handle those new isa values.
15893 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15895         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
15896         (define_mode_attr VSr5): Delete.
15897         (define_mode_attr VStype_sqrt): Delete.
15898         (define_mode_iterator VSX_SPDP): Delete.
15899         (define_mode_attr VS_spdp_res): Delete.
15900         (define_mode_attr VS_spdp_insn): Delete.
15901         (define_mode_attr VS_spdp_type): Delete.
15902         (*vsx_sqrt<mode>2): Adjust.
15903         (vsx_<VS_spdp_insn>): Delete, split to...
15904         (vsx_xscvdpsp): ... this.  New.  And...
15905         (vsx_xvcvspdp): ... this.  New.  And...
15906         (vsx_xvcvdpsp): ... this.  New.
15908 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15910         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
15911         and V2DF.
15912         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
15913         (rest of file): Adjust.
15915 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15917         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
15918         (vsx_extract_<mode>_var): Ditto.
15920 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15922         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
15923         with just "wa".
15925 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15927         * config/rs6000/constraints.md (define_register_constraint "ww"):
15928         Delete.
15929         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15930         (rs6000_init_hard_regno_mode_ok): Adjust.
15931         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15932         RS6000_CONSTRAINT_ww.
15933         * config/rs6000/rs6000.md: Adjust.
15934         * config/rs6000/vsx.md: Adjust.
15935         * doc/md.texi (Machine Constraints): Adjust.
15937 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15939         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
15940         (define_mode_attr sd): New.
15941         (define_mode_attr s): New.
15942         (define_mode_attr Ftrad): Delete.
15943         (define_mode_attr Fvsx): Delete.
15944         (define_mode_attr Fs): Delete.
15945         (rest of file): Use the new mode attributes.
15946         * config.rs6000/vsx.md: Use the new mode attributes.
15948 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15950         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
15951         with just "wa".
15953 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15955         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
15956         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
15957         used with VSX_B, VSX_D, or VSX_F, with just "wa".
15959 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
15961         PR target/78263
15962         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
15963         C++ with strict ANSI requirements.
15965 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
15967         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
15968         computations when step is 1.
15970 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15972         * config/rs6000/constraints.md (define_register_constraint "wf"):
15973         Delete.
15974         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15975         (rs6000_init_hard_regno_mode_ok): Adjust.
15976         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15977         RS6000_CONSTRAINT_wf.
15978         * config/rs6000/rs6000.md: Adjust.
15979         * config/rs6000/vsx.md: Adjust.
15980         * doc/md.texi (Machine Constraints): Adjust.
15982 2019-06-04  Andrew Pinski  <apinski@marvell.com>
15984         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
15985         Fix ILP32 value.
15987 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15989         * config/rs6000/constraints.md (define_register_constraint "wd"):
15990         Delete.
15991         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15992         (rs6000_init_hard_regno_mode_ok): Adjust.
15993         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15994         RS6000_CONSTRAINT_wd.
15995         * config/rs6000/rs6000.md: Adjust.
15996         * config/rs6000/vsx.md: Adjust.
15997         * doc/md.texi (Machine Constraints): Adjust.
15999 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16001         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16002         (rest of file): Adjust.
16004 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16006         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16007         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16008         (vsx_splat_<mode>_reg): Adjust.
16010 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16012         * config/rs6000/constraints.md (define_register_constraint "ws"):
16013         Delete.
16014         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16015         (rs6000_init_hard_regno_mode_ok): Adjust.
16016         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16017         RS6000_CONSTRAINT_ws.
16018         * config/rs6000/rs6000.md: Adjust.
16019         * config/rs6000/vsx.md: Adjust.
16020         * doc/md.texi (Machine Constraints): Adjust.
16022 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16024         * config/rs6000/constraints.md (define_register_constraint "wv"):
16025         Delete.
16026         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16027         (rs6000_init_hard_regno_mode_ok): Adjust.
16028         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16029         RS6000_CONSTRAINT_wv.
16030         * config/rs6000/rs6000.md: Adjust.
16031         * config/rs6000/vsx.md: Adjust.
16032         * doc/md.texi (Machine Constraints): Adjust.
16034 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16036         * config/rs6000/constraints.md (define_register_constraint "wi"):
16037         Delete.
16038         (define_register_constraint "wt"): Delete.
16039         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16040         (rs6000_init_hard_regno_mode_ok): Adjust.
16041         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16042         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16043         * config/rs6000/rs6000.md: Adjust.
16044         * config/rs6000/vsx.md: Adjust.
16045         * doc/md.texi (Machine Constraints): Adjust.
16047 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16049         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16050         const.
16051         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16052         default_elf_asm_output_external.
16054 2019-06-04  Martin Liska  <mliska@suse.cz>
16056         * ipa-icf.c (INCLUDE_LIST): Remove.
16057         (sem_item_optimizer::execute): Remove call to init_wpa.
16058         * ipa-icf.h (init_wpa): Remove.
16060 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
16062         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16063         conditional on combined for simd.
16064         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16065         member.
16066         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16067         constructs, don't remove lastprivate_conditional_map, but instead set
16068         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16069         to parent construct temporaries.
16070         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16071         like !ctx->lastprivate_conditional_map.
16072         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16073         use up->outer context instead of up.
16074         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16075         gimple_omp_for_combined_p.
16076         (expand_omp_for_static_nochunk): Likewise.
16077         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16078         probably moved over into expand_omp_for_generic rather than being copied
16079         there.
16081 2019-06-04  Martin Liska  <mliska@suse.cz>
16083         * value-prof.c (dump_histogram_value): Fix typo.
16084         (gimple_mod_subtract_transform): Likewise.
16086 2019-06-04  Richard Biener  <rguenther@suse.de>
16088         PR middle-end/90726
16089         * tree-chrec.c (chrec_contains_symbols): Add to visited.
16090         (tree_contains_chrecs): Likewise.
16091         (chrec_contains_symbols_defined_in_loop): Move here and avoid
16092         exponential behaivor from ...
16093         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16094         ... here.
16095         (expression_expensive_p): Avoid exponential behavior and compute
16096         expanded size, rejecting any expansion.
16097         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16098         (idx_contains_abnormal_ssa_name_p): Likewise.
16099         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16100         (contains_abnormal_ssa_name_p): Simplify and use
16101         walk_tree_without_duplicates.
16103 2019-06-04  Richard Biener  <rguenther@suse.de>
16105         PR tree-optimization/90738
16106         Revert
16107         2019-06-03  Richard Biener  <rguenther@suse.de>
16109         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16110         full reference tree and record in ref->ref.
16111         (vn_reference_lookup_3): Pass in original ref to
16112         ao_ref_init_from_vn_reference.
16113         (vn_reference_lookup): Likewise.
16114         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16115         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16116         Handle non-decl bases in the original reference.
16118 2019-06-04  Martin Liska  <mliska@suse.cz>
16120         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16121         number of references.
16122         (sem_item_optimizer::do_congruence_step):
16123         (sem_item_optimizer::worklist_push): Dump how references
16124         a class has.
16125         (sem_item_optimizer::worklist_pop): Use heap.
16126         (sem_item_optimizer::process_cong_reduction): Likewise.
16127         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16129 2019-06-04  Martin Liska  <mliska@suse.cz>
16131         * ipa-icf.h (struct sem_usage_pair_hash): New.
16132         (sem_usage_pair_hash::hash): Likewise.
16133         (sem_usage_pair_hash::equal): Likewise.
16134         (struct sem_usage_hash): Likewise.
16135         * ipa-icf.c (sem_item::sem_item): Initialize
16136         referenced_by_count.
16137         (sem_item::add_reference): Register a reference
16138         in ref_map and not in target->usages.
16139         (sem_item::setup): Remove initialization of
16140         dead vectors.
16141         (sem_item::~sem_item): Remove usage of dead vectors.
16142         (sem_item::dump): Remove dump of references.
16143         (sem_item_optimizer::sem_item_optimizer): Initialize
16144         m_references.
16145         (sem_item_optimizer::read_section): Remove useless
16146         dump.
16147         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16148         (sem_item_optimizer::build_graph): Pass m_references
16149         to ::add_reference.
16150         (sem_item_optimizer::verify_classes): Remove usage of dead
16151         vectors.
16152         (sem_item_optimizer::traverse_congruence_split): Return true
16153         when a class is split.
16154         (sem_item_optimizer::do_congruence_step_for_index): Use
16155         hash_map for look up of (sem_item *, index). That brings
16156         significant speed up.
16157         (sem_item_optimizer::do_congruence_step): Return true
16158         when a split is done.
16159         (congruence_class::is_class_used): Use referenced_by_count.
16161 2019-06-04  Alan Modra  <amodra@gmail.com>
16163         PR target/90689
16164         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16165         error.
16167 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
16169         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16170         * config/rs6000/rs6000.c (direct_move_p): Adjust.
16171         (rs6000_secondary_reload_simple_move): Adjust.
16172         (rs6000_opt_masks): Neuter the "mfpgpr" option.
16173         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16174         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16175         comment.
16176         (power6x): Adjust.
16177         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16178         (floatunssi<mode>2_lfiwzx): Adjust.
16179         (fix_trunc<mode>si2_stfiwx): Adjust.
16180         (fixuns_trunc<mode>si2_stfiwx): Adjust.
16181         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16182         (mfpgpr): Mark as deprecated.
16183         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16184         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16185         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16187 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
16189         * config/rs6000/constraints.md (define_register_constraint "wg"):
16190         Delete.
16191         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16192         RS6000_CONSTRAINT_wg.
16193         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16194         (rs6000_init_hard_regno_mode_ok): Adjust.
16195         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16196         Delete "wg" alternatives.
16197         * doc/md.texi (Machine Constraints): Adjust.
16199 2019-06-03  Alan Modra  <amodra@gmail.com>
16201         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16202         (get_uncond_jump_length): Assert length less than INT_MAX and
16203         non-negative.
16205 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16207         PR middle-end/64242
16208         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16209         block.
16210         (expand_builtin_nonlocal_goto): Likewise.
16212 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16214         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16215         (aarch64_asm_output_external): Declare.
16216         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16217         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16218         (aarch64_asm_output_alias): New.
16219         (aarch64_asm_output_external): New.
16220         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16221         (ASM_OUTPUT_EXTERNAL): Define.
16223 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
16224         * tree-vrp.h (value_range_base::nonzero_p): New.
16225         (value_range_base::set_nonnull): Rename to...
16226         (value_range_base::set_nonzero): ...this.
16227         (value_range_base::set_null): Rename to...
16228         (value_range_base::set_zero): ...this.
16229         (value_range::set_nonnull): Remove.
16230         (value_range::set_null): Remove.
16231         * tree-vrp.c (range_is_null): Remove.
16232         (range_is_nonnull): Remove.
16233         (extract_range_from_binary_expr): Use value_range_base::*zero_p
16234         instead of range_is_*null.
16235         (extract_range_from_unary_expr): Same.
16236         (value_range_base::set_nonnull): Rename to...
16237         (value_range_base::set_nonzero): ...this.
16238         (value_range::set_nonnull): Remove.
16239         (value_range_base::set_null): Rename to...
16240         (value_range_base::set_zero): ...this.
16241         (value_range::set_null): Remove.
16242         (extract_range_from_binary_expr): Rename set_*null uses to
16243         set_*zero.
16244         (extract_range_from_unary_expr): Same.
16245         (union_helper): Same.
16246         * vr-values.c (get_value_range): Use set_*zero instead of
16247         set_*null.
16248         (vr_values::extract_range_from_binary_expr): Same.
16249         (vr_values::extract_range_basic): Same.
16251 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16253         PR driver/90684
16254         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16256 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16258         * config/aarch64/iterators.md (MAX_OPP): New code attr.
16259         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16260         Rename to...
16261         (aarch64_<su>abd<mode>_3): ... This.
16262         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16264 2019-06-03  Richard Biener  <rguenther@suse.de>
16266         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16267         full reference tree and record in ref->ref.
16268         (vn_reference_lookup_3): Pass in original ref to
16269         ao_ref_init_from_vn_reference.
16270         (vn_reference_lookup): Likewise.
16271         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16272         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16273         Handle non-decl bases in the original reference.
16275 2019-06-03  Martin Liska  <mliska@suse.cz>
16277         * doc/generic.texi: Remove Java Trees.
16279 2019-06-03  Martin Liska  <mliska@suse.cz>
16281         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16282         returns 0 when operands are equal.
16284 2019-06-03  Richard Biener  <rguenther@suse.de>
16286         PR tree-optimization/90716
16287         * tree-loop-distribution.c (destroy_loop): Process blocks in
16288         correct order.
16290 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16292         PR target/88837
16293         * vector-builder.h (vector_builder::count_dups): New method.
16294         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16295         Declare prototype.
16296         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16297         (vec_init<mode><Vel>): New pattern.
16298         * config/aarch64/aarch64.c (emit_insr): New function.
16299         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16300         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16301         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16302         (aarch64_sve_expand_vector_init): Define two overloaded functions.
16304 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
16306         PR tree-optimization/90681
16307         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16308         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16309         special case for SLP, but fail on non-groupped loads.
16311 2019-06-03  Martin Liska  <mliska@suse.cz>
16313         * cfg.c (debug): Use TDF_DETAILS for debug and
16314         print edge info only once.
16316 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
16318         PR fortran/90539
16319         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16321 2019-06-01  Martin Sebor  <msebor@redhat.com>
16323         PR middle-end/90694
16324         * tree-pretty-print.c (dump_generic_node): Add parentheses.
16326 2019-05-31  Jan Hubicka  <jh@suse.cz>
16328         * alias.c: Include ipa-utils.h.
16329         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16330         * ipa-devirt.c (prevailing_odr_type): New.
16331         * ipa-utils.h (previaling_odr_type): Declare.
16333 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16334             Hongtao Liu  <hongtao.liu@intel.com>
16336         PR target/89355
16337         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16338         NOTE_INSN_DELETED_LABEL check.
16340 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
16341             Robert Suchanek  <robert.suchanek@mips.com>
16343         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16344         and 3rd operands of the fmadd/fmsub/maddv builtin.
16346 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
16348         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16349         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16350         on OMP_SIMD if not nested inside of worksharing loop that also has
16351         lastprivate conditional clause for the same decl.
16352         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16353         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16354         on simd.
16355         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
16356         on simd construct.
16357         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16358         on simd construct.
16359         (lower_lastprivate_clauses): Likewise.
16360         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16361         calling lower_rec_input_clauses.
16362         (lower_omp_for): Likewise.
16363         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16364         clause on simd construct.
16365         * omp-expand.c (expand_omp_simd): Initialize cond_var if
16366         OMP_CLAUSE__CONDTEMP_ clause is present.
16368         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16369         ivar and lvar.
16371 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
16373         PR c/43673
16374         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16375         TEX_D32, TEX_D64 or TEX_D128.
16377 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
16379         * match.pd (~(vec?cst1:cst2)): New transformation.
16381 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
16383         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16384         ((size_t)(A /[ex] B) CMP C): New transformation.
16386 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
16388         * doc/md.texi: Document define_insn_and_rewrite.
16389         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16390         * gensupport.c (queue_elem): Update comment.
16391         (replace_operands_with_dups): New function.
16392         (gen_rewrite_sequence): Likewise.
16393         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16394         * read-rtl.c (apply_subst_iterator): Likewise.
16395         (add_condition_to_rtx, named_rtx_p): Likewise.
16396         (rtx_reader::read_rtx_operand): Likewise.
16397         * config/aarch64/aarch64-sve.md
16398         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16399         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16400         define_insn_and_rewrite.
16401         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16402         Remove separate define_split.
16404 2019-05-31  Jan Hubicka  <jh@suse.cz>
16406         * tree-ssa-alias.c (type_has_components_p): New function.
16407         (aliasing_component_refs_p): Use it.
16409 2019-05-31  Martin Liska  <mliska@suse.cz>
16411         * gdbhooks.py: Add const_tree to TreePrinter.
16413 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
16415         PR debug/86964
16416         * common.opt (feliminate-unused-debug-symbols): Enable by default.
16417         * doc/invoke.texi (Debugging Options): Document new default of
16418         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16420 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
16422         PR tree-optimization/90671
16423         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16424         template_block used to be empty on the first call, don't use
16425         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16426         seq with bb_seq and set it with set_bb_seq.
16428 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
16430         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16432 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
16433             Michael Meissner  <meissner@linux.ibm.com>
16435         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16436         (prefixed_mem_operand): Likewise.
16437         (non_prefixed_mem_operand): Likewise.
16438         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16439         prototype.
16440         * config/rs6000/rs6000.c (print_operand_address): Handle
16441         PC-relative addresses.
16442         (mode_supports_prefixed_address_p): New function.
16443         (rs6000_prefixed_address): New function.
16444         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16445         (SYMBOL_REF_PCREL_P): Likewise.
16447 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
16449         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16450         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16451         (gimplify_omp_for): If worksharing loop with lastprivate conditional
16452         is nested inside of parallel region, add _condtemp_ clause to both.
16453         * tree-nested.c (convert_nonlocal_omp_clauses,
16454         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16455         assertion failure.
16456         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16457         member.
16458         * omp-general.c (omp_extract_for_data): Compute it.
16459         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16460         (lower_rec_input_clauses): Likewise.
16461         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16462         clause is already present, just add one further one after it.
16463         (lower_lastprivate_clauses): Handle cond_ptr with array type.
16464         (lower_send_shared_vars): Clear _condtemp_ vars.
16465         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16466         or section or taskgroup.
16467         * omp-expand.c (determine_parallel_type): Disallow combining only if
16468         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
16469         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16470         (expand_omp_for_generic, expand_omp_for_static_nochunk,
16471         expand_omp_for_static_chunk, expand_omp_for): Use
16472         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16473         determine if a special set of API routines are needed and if condtemp
16474         needs to be initialized, while always initialize cond_var if
16475         fd->lastprivate_conditional is non-zero.
16477 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
16478             Michael Meissner  <meissner@linux.ibm.com>
16480         * config/rs6000/constraints.md (eI): New constraint.
16481         * config/rs6000/predicates.md (cint34_operand): New predicate.
16482         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16483         (SIGNED_34BIT_OFFSET_P): Likewise.
16484         * doc/md.texi (eI): Document constraint.
16486 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
16488         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16490 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
16491             Michael Meissner  <meissner@linux.ibm.com>
16493         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16494         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16495         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16496         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16497         (OTHER_FUTURE_MASKS): Likewise.
16498         (POWERPC_MASKS): Likewise.
16499         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16500         specified without -mprefixed-addr or -mcpu=future.  Error if
16501         -mprefixed-addr is specified without -mcpu=future.
16502         (rs6000_opt_masks): Add entry for prefixed-addr.
16503         * rs6000.opt (mprefixed-addr): New option.
16505 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
16507         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16508         cfun->is_thunk check.
16510 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
16512         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16513         to length.
16515 2019-05-30  Martin Liska  <mliska@suse.cz>
16517         * gdbinit.in: Fix 'ptc' command.  Add trt
16518         that prints TREE_TYPE($).
16520 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
16521             Alan Modra  <amodra@gmail.com>
16523         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16524         calls here...
16525         (rs6000_indirect_call_template_1): ...and here.
16526         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
16527         plt16_ha, plt16_lo, mtctr indirect calls.  Use
16528         rs6000_pltseq_enum.
16529         (rs6000_decl_ok_for_sibcall): New function.
16530         (rs6000_function_ok_for_sibcall): Refactor.
16531         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16532         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16533         when pcrel.  Reorganize.
16534         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16535         * rs6000.h (rs6000_pltseq_enum): New enum.
16536         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16537         (*pltseq_tocsave): Use rs6000_pltseq_enum.
16538         (*pltseq_plt16_ha): Likewise.
16539         (*pltseq_plt16_lo): Likewise.
16540         (*pltseq_mtctr): Likewise.
16541         (*pltseq_plt_pcrel): New insn.
16542         (*call_local_aix): Handle @notoc calls.
16543         (*call_value_local_aix): Likewise.
16544         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16545         (*call_value_nonlocal_aix): Likewise.
16546         (*call_indirect_pcrel): New insn.
16547         (*call_value_indirect_pcrel): Likewise.
16549 2019-05-29  Uroš Bizjak  <ubizjak@gmail.com>
16551         * config/i386/sse.md (*save_multiple<mode>): Rename from
16552         save_multiple<mode>.
16553         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16554         (*restore_multiple_and_return<mode>): Rename from
16555         restore_multiple_and_return<mode>.
16556         (*restore_multiple_leave_return<mode>): Rename from
16557         restore_multiple_leave_return<mode>.
16559 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
16561         * config.gcc (rx-*-linux*): New target.
16562         * config/rx/elf.opt: New file.
16563         * config/rx/linux.h: Likewise.
16564         * config/rx/t-linux: Likewise.
16565         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16566         make it zero.
16567         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16568         (ASM_APP_OFF): Likewise.
16569         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16570         moved elsewhere.
16572 2019-05-29  Jan Hubicka  <jh@suse.cz>
16574         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16575         variants are pointer equivalent.
16577 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
16579         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16580         * config/aarch64/aarch64-sve2.md: New file.
16581         (<u>avg<mode>3_floor): New pattern.
16582         (<u>avg<mode>3_ceil): Likewise.
16583         (*<sur>h<addsub><mode>): Likewise.
16584         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16585         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16587 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
16589         PR bootstrap/90543
16590         * optc-save-gen.awk: In cl_optimization_print, use correct condition
16591         for var_opt_string printing.  In cl_optimization_print_diff, print
16592         (null) instead of invoking undefined behavior if one of the
16593         var_opt_string pointers is NULL and use && instead of first || in the
16594         guarding condition.  For var_target_other options, handle const char *
16595         target variables similarly to const char * optimize node variables.
16597 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
16599         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16600         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16601         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16602         Add autib1716 and pacib1716 initialisation.
16603         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16604         for autib1716 and pacib1716.
16605         * config/aarch64/aarch64-protos.h (aarch64_key_type,
16606         aarch64_post_cfi_startproc): Define.
16607         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16608         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16609         aarch64_handle_pac_ret_protection): Set default sign key to A.
16610         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16611         aarch64_expand_prologue): Add check for b-key.
16612         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16613         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16614         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16615         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16616         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16617         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16618         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16619         * config/aarch64/aarch64.md (do_return): Add check for b-key.
16620         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16621         pauth_hint_num_a with pauth_hint_num.
16622         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16623         pauth_hint_num_a with pauth_hint_num.
16624         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16625         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16626         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16627         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16628         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16629         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16630         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16631         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16632         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16633         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16634         UNSPEC_AUTIA1716 respectively.
16635         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16636         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16637         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16638         * doc/invoke.texi (-mbranch-protection): Add b-key type.
16639         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16640         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16642 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
16644         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16645         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16646         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16647         explicit clause on combined parallel into implicit shared clause.
16648         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16649         and firstprivate if the decl has one too from combined parallel to
16650         the worksharing construct.
16652 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
16653             Michael Meissner  <meissner@linux.ibm.com>
16655         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16657 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
16659         * rtl.h (LABEL_REF_P): New #define.
16661 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
16663         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16665 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
16667         * internal-fn.c: Marked mask_load_direct as vectorizable.
16668         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16669         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16670         combined even if masks different with allow_slp_p param.
16671         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16672         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16673         dissolve SLP-only vectorizable groups when SLP has been discarded.
16674         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16675         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16676         masks.
16677         (vect_build_slp_tree_1): Fixed comment typo.
16678         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16679         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16680         loads for SLP only.
16681         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16682         vectorizable.
16683         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16685 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16687         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16688         Remove obsolete use_thunk reference.
16689         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16690         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16691         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16692         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16693         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16694         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16695         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16696         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16697         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16699 2019-05-28  Nathan Sidwell  <nathan@acm.org>
16701         * tree.h (IDENTIFIER_ANON_P): New.
16702         (anon_aggrname_format, anon_aggname_p): Don't declare.
16703         (make_anon_name): Declare.
16704         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16705         (hash_tree): Likewise.
16706         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16707         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16708         (anon_cnt, make_anon_name): New.
16710 2019-05-28  Martin Liska  <mliska@suse.cz>
16712         PR other/90315
16713         * opts-global.c (decode_options): Print help for all
16714         help_option_arguments.
16715         * opts.c (print_help): Add new argument.
16716         (common_handle_option): Remember all values into
16717         help_option_arguments.
16718         * opts.h (print_help): Add new argument.
16720 2019-05-28  Martin Liska  <mliska@suse.cz>
16722         PR ipa/90555
16723         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16724         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16725         (func_checker::compare_bb): Call compare_loops.
16727 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
16729         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16730         on sections construct.
16731         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16732         construct.
16733         (lower_omp_sections): Handle lastprivate conditional.
16734         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16735         lastprivate_conditional_map.
16736         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16738         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16739         critical, taskgroup and section regions when looking for a region
16740         with non-NULL lastprivate_conditional_map.
16742 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
16744         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16745         (*ix86_gen_sub3): Ditto.
16746         (*ix86_gen_sub3_carry): Ditto.
16747         (*ix86_gen_one_cmpl2): Ditto.
16748         (*ix86_gen_andsp): Ditto.
16749         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16750         (gen_and2_insn): New static function.
16751         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16752         Use gen_add3_insn instead of ix86_gen_add3.
16753         (ix86_expand_split_stack_prologue): Use gen_add2_insn
16754         instead of ix86_gen_add3.
16755         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16756         Use gen_sub3_insn instead of ix86_gen_sub3.
16757         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16758         instead of ix86_gen_add3.
16759         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16760         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
16761         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16762         * config/i386/i386-options.c (ix86_option_override_internal):
16763         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16764         ix86_gen_one_cmpl2 and ix86_gen_andsp.
16766 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16768         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16769         and DW_OP_GNU_const_index opcodes.
16771 2019-05-27  Uroš Bizjak  <ubizjak@gmail.com>
16773         * config/i386/i386.h (STACK_SIZE_MODE): Define.
16775 2019-05-27  Richard Biener  <rguenther@suse.de>
16777         PR tree-optimization/90637
16778         * tree-ssa-sink.c (statement_sink_location): Honor the
16779         computed sink location for single-uses.
16781 2019-05-27  Richard Biener  <rguenther@suse.de>
16783         PR middle-end/90610
16784         * match.pd (vec_perm): Avoid clobbering op0 when not generating
16785         a bit-insert.
16787 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
16789         * config/i386/i386.md (@sub<mode>3_carry): Rename
16790         from sub<mode>3_carry.
16791         (@leave_<mode>): New expander.
16792         (*leave): Rename from leave.
16793         (*leave_rex64): Rename from leave_rex64.
16794         (@monitorx_<mode>): Rename from monitorx_<mode>.
16795         (@clzero_<mode>): Rename from clzero_<mode>.
16796         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16797         from sse3_monitor_<mode>.
16798         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16799         (*ix86_gen_leave): Ditto.
16800         (*ix86_gen_monitor): Ditto.
16801         (*ix86_gen_monitorx): Ditto.
16802         (*ix86_gen_clzero): Ditto.
16803         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16804         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16805         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16806         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16807         Use gen_sse3_monitor instead of ix86_gen_monitor.
16808         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16809         instead of ix86_gen_monitorx.
16810         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16811         instead of ix86_gen_clzero.
16812         * config/i386/i386-options.c (ix86_option_override_internal):
16813         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16814         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16816 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
16818         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16819         Rename from tls_global_dynamic_64_<mode>.
16820         (@tls_local_dynamic_base_64_<mode>): Rename from
16821         tls_local_dynamic_base_64_<mode>.
16822         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16823         Remove indirect function.
16824         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16825         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16826         instead of ix86_gen_tls_global_dynamic_64.
16827         Use gen_tls_local_dynamic_base_64 instead of
16828         ix86_gen_tls_local_dynamic_base_64.
16829         * config/i386/i386-options.c (ix86_option_override_internal):
16830         Do not initialize ix86_gen_tls_global_dynamic_64 and
16831         ix86_gen_tls_local_dynamic_base_64.
16833 2019-05-26  Uroš Bizjak  <ubizjak@gmail.com>
16835         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16836         Rename from pro_epilogue_adjust_stack_<mode>_add.
16837         (@pro_epilogue_adjust_stack_sub_<mode>)
16838         Rename from pro_epilogue_adjust_stack_<mode>_sub.
16839         (@allocate_stack_worker_probe_<mode>):
16840         Rename from allocate_stack_worker_probe_<mode>.
16841         (allocate_stack): Use gen_allocate_stack_worker_probe.
16842         (probe_stack): Use gen_probe_stack_1.
16843         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16844         (@adjust_stack_and_probe_<mode>): Rename from
16845         adjust_stack_and_probe<mode>.
16846         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16847         (stack_protect_set): Use gen_stack_protect_set_1.
16848         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16849         (stack_protect_test): Use gen_stack_protect_test_1.
16850         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16851         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16852         Remove indirect function.
16853         (*ix86_gen_adjust_stack_and_probe): Ditto.
16854         (*ix86_gen_probe_stack_range): Ditto.
16855         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16856         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16857         (ix86_adjust_stack_and_probe_stack_clash): Use
16858         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
16859         (ix86_adjust_stack_and_probe): Ditto.
16860         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
16861         of ix86_gen_probe_stack_range.
16862         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
16863         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
16864         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
16865         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
16866         CODE_FOR_stack_protect_test_{si,di}.
16867         * config/i386/i386-options.c (ix86_option_override_internal):
16868         Do not initialize ix86_gen_allocate_stack_worker,
16869         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16871 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
16873         * doc/invoke.texi (Link Options): Many editorial changes around
16874         -flinker-output.
16876 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16878         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
16879         pre-Solaris 11 referene and most Studio compiler details.
16881 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
16883         PR target/90530
16884         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
16885         DImode to SImode in floating-point registers on 64-bit target.
16886         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
16887         register_operand in xmpyu patterns.
16889 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
16891         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
16892         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
16893         OMP_CLAUSE__REDUCTEMP_.
16894         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16895         OMP_CLAUSE__CONDTEMP_.
16896         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
16897         * tree-pretty-print.c (dump_omp_clause): Likewise.
16898         * tree-nested.c (convert_nonlocal_omp_clauses,
16899         convert_local_omp_clauses): Likewise.
16900         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
16901         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
16902         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
16903         on OMP_FOR.
16904         (gimplify_omp_for): Warn and disable conditional modifier from
16905         lastprivate on loop iterators.
16906         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
16907         member.
16908         * omp-general.c (omp_extract_for_data): Initialize it.
16909         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
16910         member.
16911         (delete_omp_context): Delete it.
16912         (lower_lastprivate_conditional_clauses): New function.
16913         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
16914         handle lastprivate conditional clauses.
16915         (lower_reduction_clauses): Add CLIST argument, emit it into
16916         the critical section if any.
16917         (lower_omp_sections): Adjust lower_lastprivate_clauses and
16918         lower_reduction_clauses callers.
16919         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
16920         to lower_lastprivate_clauses.
16921         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
16922         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
16923         clist into a critical section if not emitted there already by
16924         lower_reduction_clauses.
16925         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
16926         callers.
16927         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
16928         conditional variables.
16929         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
16930         clause is present.
16931         (expand_omp_for_generic, expand_omp_for_static_nochunk,
16932         expand_omp_for_static_chunk): Handle lastprivate conditional.
16933         (expand_omp_for): Handle fd.lastprivate_conditional like
16934         fd.have_reductemp.
16936 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
16938         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
16939         kernel does not exit cleanly.
16940         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
16942 2019-05-24  Jason Merrill  <jason@redhat.com>
16944         Revert:
16945         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16947 2019-05-24  Richard Biener  <rguenther@suse.de>
16949         PR testsuite/90607
16950         * tree-loop-distribution.c (struct partition): Add location
16951         member.
16952         (partition_alloc): Initialize all fields.
16953         (generate_memset_builtin): Use the location recorded in the
16954         partition for the generated call.
16955         (generate_memcpy_builtin): Likewise.
16956         (classify_partition): Record the location of a single store
16957         as location for the partition.
16959 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
16961         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
16962         for lo-part.
16964 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
16966         PR target/90588
16967         * common/config/aarch64/aarch64-common.c
16968         (aarch64_rewrite_selected_cpu): Change local temporary variable
16969         type from unsigned long to uint64_t.
16970         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
16971         aarch64_get_extension_string_for_isa_flags): Change declaration to
16972         match new definition by replacing unsigned long with uint64_t.
16974 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
16976         PR target/90568
16977         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
16978         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
16979         Handle stack_protect_test_<mode> codegen similarly to corresponding
16980         sub instruction.
16982 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
16984         * config/i386/darwin.h: Reject -mfentry*.
16985         * doc/sourcebuild.texi: Document mfentry target support.
16987 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
16989         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
16990         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
16991         false for PC-relative functions.
16992         (rs6000_output_function_prologue): Change called function name to
16993         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
16994         name,1" for PC-relative functions.
16995         (rs6000_elf_declare_function_name): Change called function name to
16996         rs6000_global_entry_point_prologue_needed_p.
16998 2019-05-23  Uroš Bizjak  <ubizjak@gmail.com>
17000         PR target/90552
17001         * config/i386/i386.c (gen_rtx_cost):
17002         Use ix86_tune_cost instead of ix86_cost.
17004 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
17005             Michael Meissner  <meissner@linux.ibm.com>
17006             Segher Boessenkool  <segher@kernel.crashing.org>
17008         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17009         OPTION_MASK_PCREL.
17010         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17011         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17012         (rs6000_fndecl_pcrel_p): Likewise.
17013         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17014         error if -mpcrel is requested without -mcpu=future.
17015         (rs6000_opt_masks): Add entry for pcrel.
17016         (rs6000_fndecl_pcrel_p): New function.
17017         (rs6000_pcrel_p): Likewise.
17018         * config/rs6000/rs6000.opt (mpcrel): New option.
17019         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17021 2019-05-23  Jan Hubicka  <jh@suse.cz>
17022             Martin Liska  <mliska@suse.cz>
17024         PR tree-optimization/90576
17025         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17026         poly_int_tree_p.
17027         (aliasing_component_refs_p): Fix three way size compare conditional;
17028         give up earlier in case we can not decide on equivalence.
17030 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
17031             Michael Meissner  <meissner@linux.ibm.com>
17032             Segher Boessenkool  <segher@kernel.crashing.org>
17034         * config.gcc: Add future cpu.
17035         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17036         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17037         #define.
17038         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17039         (RS6000_CPU): New instantiation for future cpu.
17040         * config/rs6000/rs6000-opts.h (enum processor_type): Add
17041         PROCESSOR_FUTURE.
17042         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17043         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17044         * config/rs6000/rs6000-tables.opt: Regenerate.
17045         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17046         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17047         (rs6000_machine_from_flags): Handle future cpu.
17048         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17049         PROCESSOR_POWER9 for now.
17050         (rs6000_adjust_cost): Likewise.
17051         (rs6000_issue_rate): Likewise.
17052         (rs6000_register_move_cost): Likewise.
17053         (rs6000_opt_masks): Add entry for future.
17054         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17055         (MASK_FUTURE): New #define.
17056         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17057         * config/rs6000/rs6000.opt (mfuture): New target option.
17058         * doc/invoke.texi (mcpu): Add future cpu.
17060 2019-05-23  Martin Liska  <mliska@suse.cz>
17062         PR c++/90587
17063         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17064         operation points to a temporary (pointed via tree_to_wide_ref)
17065         that is out of scope after the &.
17067 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
17069         PR c++/90592
17070         * doc/extend.texi (Function Names): Add missing word.
17072 2019-05-23  Richard Biener  <rguenther@suse.de>
17074         PR tree-optimization/88440
17075         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17076         at -O[2s]+.
17077         * tree-loop-distribution.c (generate_memset_builtin): Fold the
17078         generated call.
17079         (generate_memcpy_builtin): Likewise.
17080         (distribute_loop): Pass in whether to only distribute patterns.
17081         (prepare_perfect_loop_nest): Also allow size optimization.
17082         (pass_loop_distribution::execute): When optimizing a loop
17083         nest for size allow pattern replacement.
17085 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
17087         PR target/90568
17088         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17089         of xor.
17091 2019-05-23  Martin Liska  <mliska@suse.cz>
17093         PR sanitizer/90570
17094         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17095         expression similarly to gimplify_decl_expr.
17097 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17099         * cse.c (cse_dump_path): s/dump_file/f.
17101 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
17103         PR c++/90462
17104         * diagnostic-format-json.cc: Include "selftest.h".
17105         (json_from_expanded_location): Only add "file" key for non-NULL
17106         file strings.
17107         (json_from_location_range): Don't add "start" and "finish"
17108         children if they are UNKNOWN_LOCATION.
17109         (selftest::test_unknown_location): New selftest.
17110         (selftest::test_bad_endpoints): New selftest.
17111         (selftest::diagnostic_format_json_cc_tests): New function.
17112         * json.cc (json::object::get): New function.
17113         (selftest::test_object_get): New selftest.
17114         (selftest::json_cc_tests): Call it.
17115         * json.h (json::object::get): New decl.
17116         * selftest-run-tests.c (selftest::run_tests): Call
17117         selftest::diagnostic_format_json_cc_tests.
17118         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17119         decl.
17121 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
17122             Andrew Stubbs  <amd@codesourcery.com>
17124         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17125         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17126         (kernel): Rename to...
17127         (main_kernel): ... this.
17128         (load_image): Load _init_array and _fini_array kernels.
17129         (run): Add argument for kernel to run.
17130         (main): Run init_array_kernel before main_kernel, and
17131         fini_array_kernel after.
17132         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17133         amdgpu_hsa_kernel attribute on functions.
17134         (gcn_disable_constructors): Delete.
17135         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17136         * config/gcn/crt0.c (size_t): Define.
17137         (_init_array, _fini_array): New.
17138         (__preinit_array_start, __preinit_array_end,
17139         __init_array_start, __init_array_end,
17140         __fini_array_start, __fini_array_end): Declare weak references.
17142 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
17144         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17146 2019-05-22  Jason Merrill  <jason@redhat.com>
17148         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17150 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17152         PR target/88483
17153         * config/i386/i386-options.c (ix86_init_machine_status): Set
17154         stack_frame_required to true.
17155         * config/i386/i386.c (ix86_get_frame_size): New function.
17156         (ix86_frame_pointer_required): Replace get_frame_size with
17157         ix86_get_frame_size.
17158         (ix86_compute_frame_layout): Likewise.
17159         (ix86_find_max_used_stack_alignment): Changed to void.  Set
17160         stack_frame_required.
17161         (ix86_finalize_stack_frame_flags): Always call
17162         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
17163         ix86_get_frame_size.
17164         * config/i386/i386.h (machine_function): Add stack_frame_required.
17166 2019-05-22  Uroš Bizjak  <ubizjak@gmail.com>
17168         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17170 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
17172         * common/config/aarch64/aarch64-common.c
17173         (struct aarch64_option_extension, struct processor_name_to_arch,
17174         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17175         aarch64_contains_opt,
17176         aarch64_get_extension_string_for_isa_flags): Change type of
17177         variables storing flags to uint64_t.
17178         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17179         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17180         * config/aarch64/aarch64.c (struct processor,
17181         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17182         aarch64_validate_march, aarch64_override_options,
17183         aarch64_option_print, aarch64_handle_attr_isa_flags,
17184         aarch64_declare_function_name, aarch64_start_file): Make flag
17185         variables uint64_t.
17186         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17187         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17188         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17189         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17190         * config/aarch64/driver-aarch64.c
17191         (struct aarch64_arch_extension, struct aarch64_core_data,
17192         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17193         flag variables uint64_t.
17194         * doc/invoke.texi: Add documentation for new arguments.
17196 2019-05-22  Richard Biener  <rguenther@suse.de>
17198         * alias.c (ao_ref_from_mem): Move stack-slot sharing
17199         rewrite ...
17200         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17202 2019-05-22  Martin Liska  <mliska@suse.cz>
17204         PR lto/90500
17205         * doc/extend.texi: Document the change.
17207 2019-05-22  Richard Biener  <rguenther@suse.de>
17209         PR tree-optimization/90450
17210         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17211         (mem_ref_hasher::equal): Check it.
17212         (mem_ref_alloc): Initialize it.
17213         (gather_mem_refs_stmt): Set it.
17215 2019-05-22  Richard Biener  <rguenther@suse.de>
17217         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17218         Add ABS_EXPR.
17219         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17220         as ABSU_EXPR.
17222 2019-05-22  Alan Modra  <amodra@gmail.com>
17224         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17225         (ASM_CPU_SPEC): Conditionally add -many.
17226         * config/rs6000/rs6000.c (rs6000_machine): New static var.
17227         (rs6000_machine_from_flags, emit_asm_machine): New functions..
17228         (rs6000_file_start): ..extracted from here, and modified to
17229         test all ISA bits.
17230         (rs6000_output_function_prologue): Emit .machine as necessary.
17232 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
17234         PR middle-end/90553
17235         * ira-lives.c (process_bb_node_lives): Consider defs
17236         for a call insn to be die before the call, not after.
17238         * function.c (assign_parm_setup_block): Raise alignment of
17239         stacked parameter only for STRICT_ALIGNMENT targets.
17241 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17243         * config/rs6000/constraints.md (define_register_constraint "wz"):
17244         Delete.
17245         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17246         RS6000_CONSTRAINT_wz.
17247         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17248         (rs6000_init_hard_regno_mode_ok): Adjust.
17249         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17250         * doc/md.texi (Machine Constraints): Adjust.
17252 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17254         * config/rs6000/constraints.md (define_register_constraint "wl"):
17255         Delete.
17256         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17257         RS6000_CONSTRAINT_wl.
17258         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17259         (rs6000_init_hard_regno_mode_ok): Adjust.
17260         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17261         * doc/md.texi (Machine Constraints): Adjust.
17263 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17265         * config/rs6000/constraints.md (define_register_constraint "wm"):
17266         Delete.
17267         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17268         RS6000_CONSTRAINT_wm.
17269         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17270         (rs6000_init_hard_regno_mode_ok): Adjust.
17271         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17272         * doc/md.texi (Machine Constraints): Adjust.
17274 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17276         * config/rs6000/constraints.md (define_register_constraint "wk"):
17277         Delete.
17278         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17279         RS6000_CONSTRAINT_wk.
17280         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17281         (rs6000_init_hard_regno_mode_ok): Adjust.
17282         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17283         * doc/md.texi (Machine Constraints): Adjust.
17285 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17287         * config/rs6000/constraints.md (define_register_constraint "wj"):
17288         Delete.
17289         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17290         RS6000_CONSTRAINT_wj.
17291         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17292         (rs6000_init_hard_regno_mode_ok): Adjust.
17293         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17294         (VS_64dm): Delete.
17295         * config/rs6000/vsx.md: Ditto.
17296         * doc/md.texi (Machine Constraints): Adjust.
17298 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17300         * config/rs6000/constraints.md (define_register_constraint "wh"):
17301         Delete.
17302         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17303         RS6000_CONSTRAINT_wh.
17304         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17305         (rs6000_init_hard_regno_mode_ok): Adjust.
17306         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17307         * doc/md.texi (Machine Constraints): Adjust.
17309 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
17311         PR target/90547
17312         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17313         Avoid calling gen_lowpart with CONST operand.
17315 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
17317         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17318         field template_last_to_copy.
17319         (ssa_create_duplicates): Set it, and use it.  Attempt to
17320         preserve more debug stmts.
17322 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
17324         * config/i386/sse.md (VF1_AVX2): New mode iterator.
17325         (signbit<mode>2): New expander
17327 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
17329         PR bootstrap/87338
17330         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17331         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17333 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
17335         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17336         %ebx and %ecx bafore calling cpuid with leaf 1 or
17337         non-constant leaf argument.
17339 2019-05-21  Alan Modra  <amodra@gmail.com>
17341         PR target/90545
17342         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17343         power9 direct move cost.
17345 2019-05-21  Richard Biener  <rguenther@suse.de>
17347         PR middle-end/90510
17348         * fold-const.c (fold_read_from_vector): New function.
17349         * fold-const.h (fold_read_from_vector): Declare.
17350         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17351         single-element insert permutations.  Canonicalize selector
17352         further and fix issue with last commit.
17354 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
17356         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17357         parameter with default value false to declaration.
17358         (split_edges_for_insertion): New inline function.  Wrapper for
17359         split_critical_edges with for_edge_insertion_p = true.
17360         * tree-cfg.c (split_critical_edges): Don't split non-critical
17361         edges if for_edge_insertion_p is false.  Fix whitespace.
17362         * tree-ssa-pre.c (pass_pre::execute): Call
17363         split_edges_for_insertion instead of split_critical_edges.
17364         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17365         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17366         (pass_data_sink_code): Update function name in the comment.
17368 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
17370         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17371         around is_value_included_in that knows how to handle BIT_AND_EXPR.
17372         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
17373         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17374         positives.
17376 2019-05-21  Martin Liska  <mliska@suse.cz>
17378         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17379         an extra newline.
17380         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17381         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17382         vec_lvsr.
17383         * config/rs6000/rs6000.c (rs6000_option_override_internal):
17384         Quote a C type.
17385         (rs6000_function_arg): Likewise.
17386         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17387         (rs6000_expand_ternop_builtin): Use interval syntax.
17388         (get_element_number): Likewise.
17389         (altivec_expand_builtin): Likewise.
17390         (rs6000_get_function_versions_dispatcher): Quote target_clones.
17392 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
17394         PR c++/59813
17395         PR target/90418
17396         * function.h (struct function): Add calls_eh_return member.
17397         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17398         gimplifying __builtin_eh_return call.
17399         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17400         to cfun.
17401         (expand_call_inline): Or in src_cfun->calls_eh_return into
17402         dst_cfun->calls_eh_return.
17403         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17404         cfun->calls_eh_return.
17405         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17406         * lto-streamer-out.c (output_struct_function_base): Write
17407         calls_eh_return.
17409 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
17411         PR rtl-optimization/43147
17412         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17413         IX86_BUILTIN_SHUFPD.
17415 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
17417         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17418         (refs_may_alias_p_1): ... here; update stats.
17419         (refs_may_alias_p): Do not update stats here.
17421 2019-05-20  Richard Biener  <rguenther@suse.de>
17423         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17424         doesn't produce pointers.
17425         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17426         the first operand points to.
17428 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
17430         * tree-ssa-alias.c (compare_sizes): New function.
17431         (sompare_type_sizes): New function
17432         (aliasing_component_refs_p): Use it.
17433         (indirect_ref_may_alias_decl_p): Likewise.
17435 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17437         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17439 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17441         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17442         (LIBLSAN_EARLY_SPEC): Likewise.
17443         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17445 2019-05-20  Martin Liska  <mliska@suse.cz>
17447         * config/i386/i386.c (ix86_libc_has_fast_function):
17448         Add ATTRIBUTE_UNUSED for the argument.
17450 2019-05-20  Richard Biener  <rguenther@suse.de>
17452         * gimple-match-head.c: Include vec-perm-indices.h.
17453         * generic-match-head.c: Likewise.
17454         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17455         is included.
17456         * fold-const.c (fold_vec_perm): Export.
17457         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17458         (match.pd): ...here.
17460 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
17462         * cfgloop.h (struct loop): Add simdlen member.
17463         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17464         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17465         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17466         as new argument to autovectorize_vector_sizes target hook.  If
17467         loop->simdlen, pick up vector size where the vectorization factor
17468         is equal to loop->simd, and if there is none, fall back to the first
17469         successful one.
17470         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17471         caller.
17472         * omp-low.c (omp_clause_aligned_alignment): Likewise.
17473         * omp-general.c (omp_max_vf): Likewise.
17474         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17475         * tree-vect-slp.c (vect_slp_bb): Likewise.
17476         * target.def (autovectorize_vector_sizes): Add ALL argument and
17477         document it.
17478         * doc/tm.texi: Adjust documentation.
17479         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17480         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17481         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17482         bool argument.
17483         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17484         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17485         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17486         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
17487         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17488         preferred vector size is not 512-bit or 256-bit, just put those
17489         unpreferred ones last.
17491 2019-05-20  Martin Liska  <mliska@suse.cz>
17493         * targhooks.c (default_libc_has_fast_function): New function.
17494         * targhooks.h (default_libc_has_fast_function): Likewise.
17496 2019-05-20  Martin Liska  <mliska@suse.cz>
17498         PR middle-end/90263
17499         * builtins.c (expand_builtin_memory_copy_args): When having a
17500         target with fast mempcpy implementation do now use memcpy.
17501         * config/i386/i386.c (ix86_libc_has_fast_function): New.
17502         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17503         * doc/tm.texi: Likewise.
17504         * doc/tm.texi.in: Likewise.
17505         * target.def:
17506         * expr.c (emit_block_move_hints): Add 2 new arguments.
17507         * expr.h (emit_block_move_hints): Bail out when libcall
17508         to memcpy would be used.
17510 2019-05-20  Martin Liska  <mliska@suse.cz>
17512         * profile-count.c: Add vertical spacing in order
17513         to separate functions.
17514         * profile-count.h: Likewise.
17516 2019-05-20  Martin Liska  <mliska@suse.cz>
17518         * profile-count.h: Do not use full qualified
17519         names if possible.
17520         * profile-count.c (profile_count::to_frequency): Likewise.
17522 2019-05-20  Martin Liska  <mliska@suse.cz>
17524         * profile-count.h (enum profile_quality): Use capital letters
17525         for enum value names.  Use the adjusted names.
17526         * profile-count.c: Use the adjusted names.
17528 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17530         * config/rs6000/constraints.md (define_register_constraint "wH"):
17531         Delete.
17532         (define_register_constraint "wI"): Delete.
17533         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17534         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17535         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17536         (rs6000_init_hard_regno_mode_ok): Adjust.
17537         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17538         resp. "d", or with "wa" as appropriate, all with "p8v".
17539         * config/rs6000/vsx.md: Ditto.
17540         * doc/md.texi (Machine Constraints): Adjust.
17542 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17544         * config/rs6000/constraints.md (define_register_constraint "wy"):
17545         Delete.
17546         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17547         RS6000_CONSTRAINT_wy.
17548         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17549         (rs6000_init_hard_regno_mode_ok): Adjust.
17550         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17551         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17552         (define_mode_attr Fisa): New.
17553         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17554         * doc/md.texi (Machine Constraints): Adjust.
17556 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17558         * config/rs6000/constraints.md (define_register_constraint "wu"):
17559         Delete.
17560         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17561         RS6000_CONSTRAINT_wu.
17562         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17563         (rs6000_init_hard_regno_mode_ok): Adjust.
17564         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17565         both with "p8v".
17566         (define_mode_attr Fa): Delete.
17567         * config/rs6000/vsx.md: Ditto.
17568         * doc/md.texi (Machine Constraints): Adjust.
17570 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17572         * config/rs6000/constraints.md (define_register_constraint "wJ"):
17573         Delete.
17574         (define_register_constraint "wK"): Delete.
17575         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17576         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17577         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17578         (rs6000_init_hard_regno_mode_ok): Adjust.
17579         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17580         Replace "wK" constraint by "wH" with "p9v".
17581         * config/rs6000/vsx.md: Ditto.
17582         * doc/md.texi (Machine Constraints): Adjust.
17584 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17586         * config/rs6000/constraints.md (define_register_constraint "wb"):
17587         Delete.
17588         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17589         RS6000_CONSTRAINT_wb.
17590         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17591         (rs6000_init_hard_regno_mode_ok): Adjust.
17592         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17593         * config/rs6000/vsx.md: Ditto.
17594         * doc/md.texi (Machine Constraints): Adjust.
17596 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17598         * config/rs6000/constraints.md (define_register_constraint "wo"):
17599         Delete.
17600         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17601         RS6000_CONSTRAINT_wo.
17602         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17603         (rs6000_init_hard_regno_mode_ok): Adjust.
17604         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17605         * config/rs6000/altivec.md: Ditto.
17606         * doc/md.texi (Machine Constraints): Adjust.
17608 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
17610         * config/darwin-c.c (darwin_register_objc_includes): Do not
17611         prepend the sysroot when building gnu-runtime header search
17612         paths.
17614 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
17616         * config/darwin.c (darwin_file_end): Use switch_to_section ()
17617         instead of direct output of the asm.
17619 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
17621         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17622         argument to be type bool (was int before).
17623         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
17624         at first use.  Use type bool for some variables.  Fix a theoretical
17625         eh_return bug for svr4.
17627 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
17629         * config/rs6000/rs6000.md (isa): New attribute.
17630         (enabled): New attribute.
17632 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
17634         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17635         assemble_start_function and assemble_end_function.
17637 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
17639         PR middle-end/89433
17640         * omp-general.c (oacc_verify_routine_clauses): Change formal
17641         parameters.  Add checking if already marked with an OpenACC
17642         'routine' directive.  Adjust all users.
17644         PR middle-end/89433
17645         * omp-general.c (oacc_build_routine_dims): Move some of its
17646         processing into...
17647         (oacc_verify_routine_clauses): ... this new function.
17648         * omp-general.h (oacc_verify_routine_clauses): New prototype.
17650 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
17652         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17653         formating of picbase labels to match other ports.
17655 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
17657         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17658         in the generated code.
17660 2019-05-16  Martin Sebor  <msebor@redhat.com>
17662         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17663         identifiers, keywords, operators, and types in diagnostics.  Correct
17664         quoting, spelling, and sentence capitalization issues.
17665         (expand_builtin_atomic_is_lock_free): Same.
17666         (fold_builtin_next_arg): Same.
17667         * cfgexpand.c (expand_one_var): Same.
17668         (tree_conflicts_with_clobbers_p): Same.
17669         (expand_asm_stmt): Same.
17670         (verify_loop_structure): Same.
17671         * cgraphunit.c (process_function_and_variable_attributes): Same.
17672         * collect-utils.c (collect_execute): Same.
17673         * collect2.c (maybe_run_lto_and_relink): Same.
17674         (is_lto_object_file): Same.
17675         (scan_prog_file): Same.
17676         * convert.c (convert_to_real_1): Same.
17677         * dwarf2out.c (dwarf2out_begin_prologue): Same.
17678         * except.c (verify_eh_tree): Same.
17679         * gcc.c (execute): Same.
17680         (eval_spec_function): Same.
17681         (run_attempt): Same.
17682         (driver::set_up_specs): Same.
17683         (compare_debug_auxbase_opt_spec_function): Same.
17684         * gcov-tool.c (unlink_gcda_file): Same.
17685         (do_merge): Same.
17686         (do_rewrite): Same.
17687         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17688         * gimplify.c (gimplify_asm_expr): Same.
17689         (gimplify_adjust_omp_clauses): Same.
17690         * hsa-gen.c (gen_hsa_addr_insns): Same.
17691         (gen_hsa_insns_for_load): Same.
17692         (gen_hsa_cmp_insn_from_gimple): Same.
17693         (gen_hsa_insns_for_operation_assignment): Same.
17694         (gen_get_level): Same.
17695         (gen_hsa_alloca): Same.
17696         (omp_simple_builtin::generate): Same.
17697         (gen_hsa_atomic_for_builtin): Same.
17698         (gen_hsa_insns_for_call): Same.
17699         * input.c (dump_location_info): Same.
17700         * ipa-devirt.c (compare_virtual_tables): Same.
17701         * ira.c (ira_setup_eliminable_regset): Same.
17702         * lra-assigns.c (lra_assign): Same.
17703         * lra-constraints.c (lra_constraints): Same.
17704         * lto-streamer-in.c (lto_input_mode_table): Same.
17705         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17706         (merge_and_complain): Same.
17707         (compile_offload_image): Same.
17708         (compile_images_for_offload_targets): Same.
17709         (debug_objcopy): Same.
17710         (run_gcc): Same.
17711         (main): Same.
17712         * opts.c (print_specific_help): Same.
17713         (parse_no_sanitize_attribute): Same.
17714         (print_help): Same.
17715         (handle_param): Same.
17716         * plugin.c (add_new_plugin): Same.
17717         (parse_plugin_arg_opt): Same.
17718         (try_init_one_plugin): Same.
17719         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17720         operators, and types in diagnostics.  Correct quoting and spelling
17721         issues.
17722         * read-rtl-function.c (parse_edge_flag_token): Same.
17723         (function_reader::parse_enum_value): Same.
17724         * reg-stack.c (check_asm_stack_operands): Same.
17725         * regcprop.c (validate_value_data): Same.
17726         * sched-rgn.c (make_pass_sched_fusion): Same.
17727         * stmt.c (check_unique_operand_names): Same.
17728         * targhooks.c (default_target_option_pragma_parse): Same.
17729         * tlink.c (recompile_files): Same.
17730         * toplev.c (process_options): Same.
17731         (do_compile): Same.
17732         * trans-mem.c (diagnose_tm_1): Same.
17733         (ipa_tm_scan_irr_block): Same.
17734         (ipa_tm_diagnose_transaction): Same.
17735         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
17736         format a tree code name in a diagnostic.
17737         (verify_types_in_gimple_min_lval): Same.
17738         (verify_types_in_gimple_reference): Same.
17739         (verify_gimple_call): Same.
17740         (verify_gimple_assign_unary): Same.
17741         (verify_gimple_assign_binary): Same.
17742         (verify_gimple_assign_ternary): Same.
17743         (verify_gimple_assign_single): Same.
17744         (verify_gimple_switch): Same.
17745         (verify_gimple_label): Same.
17746         (verify_gimple_phi): Same.
17747         (verify_gimple_in_seq): Same.
17748         (verify_eh_throw_stmt_node): Same.
17749         (collect_subblocks): Same.
17750         (gimple_verify_flow_info): Same.
17751         (do_warn_unused_result): Same.
17752         * tree-inline.c (expand_call_inline): Same.
17753         * tree-into-ssa.c (update_ssa): Same.
17754         * tree.c (tree_int_cst_elt_check_failed): Same.
17755         (tree_vec_elt_check_failed): Same.
17756         (omp_clause_operand_check_failed): Same.
17757         (verify_type_variant): Same.
17758         (verify_type): Same.
17759         * value-prof.c (verify_histograms): Same.
17760         * varasm.c (assemble_start_function): Same.
17762 2019-05-16  Martin Sebor  <msebor@redhat.com>
17764         * config/i386/i386-expand.c (get_element_number): Quote keywords
17765         and other internal names in diagnostics.  Adjust other diagnostic
17766         formatting issues noted by -Wformat-diag.
17767         * config/i386/i386-features.c
17768         (ix86_mangle_function_version_assembler_name): Same.
17769         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17770         * config/i386/i386.c (ix86_function_type_abi): Same.
17771         (ix86_function_ms_hook_prologue): Same.
17772         (classify_argument): Same.
17773         (ix86_expand_prologue): Same.
17774         (ix86_md_asm_adjust): Same.
17775         (ix86_memmodel_check): Same.
17777 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
17779         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17780         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17781         and fpxx modes.
17783 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17785         PR target/90497
17786         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17787         intrinsics without SSE/SSE2/SSSE3.
17788         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17789         check.
17790         (*mmx_uavgv8qi3): Likewise.
17792 2019-05-17  Richard Biener  <rguenther@suse.de>
17794         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17795         VEC_PERM_EXPR as __VEC_PERM with -gimple.
17797 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
17799         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17800         vec_sldw insn pattern.
17802 2019-05-17  Richard Biener  <rguenther@suse.de>
17804         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17806 2019-05-17  Martin Liska  <mliska@suse.cz>
17808         PR driver/90496
17809         * toplev.c (output_stack_usage): With LTO and sanitizer it
17810         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17811         has no file location.
17813 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
17815         PR c++/90484
17816         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17817         sz0 is equal to sz1, instead return false in that case.
17819         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17820         has non-constant expression, force sctx.lane and use two
17821         argument IFN_GOMP_SIMD_LANE instead of single argument.
17822         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17823         two argument IFN_GOMP_SIMD_LANE without lhs.
17824         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17825         member.
17826         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17827         Define.
17828         (LOOP_REQUIRES_VERSIONING): Or in
17829         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17830         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17831         simd_if_cond.
17832         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17833         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17834         from simd if clause if needed.
17836 2019-05-16  Richard Biener  <rguenther@suse.de>
17838         * tree-affine.c (expr_to_aff_combination): New function split
17839         out from...
17840         (tree_to_aff_combination): ... here.
17841         (aff_combination_expand): Avoid building a GENERIC tree.
17843 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
17845         * cgraphunit.c (cgraph_node::expand_thunk): Remove
17846         assemble_start_function and assemble_end_function calls.
17847         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17848         assemble_start_function and assemble_end_function.
17849         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17850         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17851         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17852         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17853         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17854         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17855         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17856         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17857         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17858         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17859         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17860         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
17861         Likewise.
17862         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17863         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
17864         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
17865         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
17866         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17867         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17868         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
17869         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
17870         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17871         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17872         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17873         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17874         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
17875         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
17876         Likewise.
17877         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17878         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17879         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
17881 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
17883         * tree-ssa-alias.c (alias_stats): Add
17884         aliasing_component_refs_p_may_alias and
17885         aliasing_component_refs_p_no_alias.
17886         (dump_alias_stats): Print aliasing_component_refs_p stats.
17887         (aliasing_component_refs_p): Update stats.
17889 2019-05-16  Martin Liska  <mliska@suse.cz>
17891         PR lto/90500
17892         * multiple_target.c (expand_target_clones): Do not allow
17893         target_clones being used with a symbol that is an alias.
17895 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
17897         PR tree-optimization/90394
17898         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
17899         positives rather than ICE for cases where (code2 == NE_EXPR
17900         && code1 == BIT_AND_EXPR).
17902 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
17904         PR fortran/90329
17905         * tree-core.h (struct tree_decl_common): Document
17906         decl_nonshareable_flag for PARM_DECLs.
17907         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
17908         * calls.c (expand_call): Don't try tail call if caller
17909         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
17910         passed on the stack and callee needs to pass any arguments on the
17911         stack.
17912         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17913         else if instead of series of mutually exclusive ifs.  Handle
17914         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
17915         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17917         * lto-streamer.h (LTO_major_version): Bump to 9.
17919 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
17921         PR tree-optimization/90106
17922         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
17923         new parameter as new internal function call, also move it to new
17924         basic block.
17925         (use_internal_fn): Pass internal function call to
17926         shrink_wrap_one_built_in_call_with_conds.
17928 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
17930         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
17931         max_vf to 1.
17932         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
17933         safelen_int and set loop->dont_vectorize.
17935 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17937         PR target/89021
17938         * config/i386/i386-builtin.def: Enable MMX intrinsics with
17939         SSE/SSE2/SSSE3.
17940         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
17941         Likewise.
17942         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
17943         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
17944         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
17945         is defined.
17947 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17949         PR target/89021
17950         * config/i386/mmx.md (*vec_dupv2sf): Changed to
17951         define_insn_and_split to support SSE emulation.
17952         (*vec_extractv2sf_0): Likewise.
17953         (*vec_extractv2sf_1): Likewise.
17954         (*vec_extractv2si_0): Likewise.
17955         (*vec_extractv2si_1): Likewise.
17956         (*vec_extractv2si_zext_mem): Likewise.
17957         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
17958         (vec_extractv2sf_1 splitter): Likewise.
17959         (vec_extractv2sfsf): Likewise.
17960         (vec_setv2si): Likewise.
17961         (vec_extractv2si_1 splitter): Likewise.
17962         (vec_extractv2sisi): Likewise.
17963         (vec_setv4hi): Likewise.
17964         (vec_extractv4hihi): Likewise.
17965         (vec_setv8qi): Likewise.
17966         (vec_extractv8qiqi): Likewise.
17967         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
17968         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
17969         (vec_extractv2sisi): Likewise.
17970         (vec_extractv4hihi): Likewise.
17971         (vec_extractv8qiqi): Likewise.
17972         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
17973         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
17974         (vec_initv2sisi): Likewise.
17975         (vec_initv4hihi): Likewise.
17976         (vec_initv8qiqi): Likewise.
17977         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
17978         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
17979         (vec_setv4hi): Likewise.
17980         (vec_setv8qi): Likewise.
17982 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17984         PR target/89021
17985         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
17986         TARGET_MMX_WITH_SSE.
17987         (MMXMODE:*mov<mode>_internal): Likewise.
17988         (MMXMODE:movmisalign<mode>): Likewise.
17990 2019-05-15  Uroš Bizjak  <ubizjak@gmail.com>
17992         PR target/89021
17993         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
17994         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
17995         (sse2_cvtpd2pi): Ditto.
17996         (sse2_cvttpd2pi): Ditto.
17997         (*vec_concatv2sf_sse4_1): Ditto.
17998         (*vec_concatv2sf_sse): Ditto.
17999         (*vec_concatv2si_sse4_1): Ditto.
18000         (*vec_concatv2si): Ditto.
18001         (*vec_concatv4si_0): Ditto.
18002         (*vec_concatv2di_0): Ditto.
18004 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18006         PR target/89021
18007         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18009 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18011         PR target/89021
18012         * config/i386/sse.md (ssse3_palignrdi): Changed to
18013         define_insn_and_split to support SSE emulation.
18015 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18017         PR target/89021
18018         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18020 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18022         PR target/89021
18023         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18024         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
18025         SSE emulation.
18027 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18029         PR target/89021
18030         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18031         or TARGET_MMX_WITH_SSE.
18032         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18034 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18036         PR target/89021
18037         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18039 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18041         PR target/89021
18042         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18043         Changed to define_insn_and_split to support SSE emulation.
18045 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18047         PR target/89021
18048         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18049         Changed to define_insn_and_split to support SSE emulation.
18051 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18053         PR target/89021
18054         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18055         (*mmx_<emms>): This.
18056         (mmx_<emms>): New expander.
18058 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18060         PR target/89021
18061         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18062         support.
18063         (*sse2_umulv1siv1di3): Add SSE2 emulation.
18065 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18067         PR target/89021
18068         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18070 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18072         PR target/89021
18073         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18075 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18077         PR target/89021
18078         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18079         TARGET_MMX_WITH_SSE.
18080         (*mmx_uavgv4hi3): Add SSE emulation.
18082 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18084         PR target/89021
18085         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18086         and TARGET_MMX_WITH_SSE.
18087         (*mmx_uavgv8qi3): Add SSE emulation.
18089 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18091         PR target/89021
18092         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18093         maskmovdqu for __MMX_WITH_SSE__.
18095 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18097         PR target/89021
18098         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18099         TARGET_MMX and TARGET_MMX_WITH_SSE.
18100         (*mmx_umulv4hi3_highpart): Add SSE emulation.
18102 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18104         PR target/89021
18105         * config/i386/mmx.md (mmx_pmovmskb): Changed to
18106         define_insn_and_split to support SSE emulation.
18108 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18110         PR target/89021
18111         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18112         and TARGET_MMX_WITH_SSE.
18113         (mmx_<code>v8qi3): Likewise.
18114         (smaxmin:<code>v4hi3): New.
18115         (umaxmin:<code>v8qi3): Likewise.
18116         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18117         (umaxmin:*mmx_<code>v8qi3): Likewise.
18119 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18121         PR target/89021
18122         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18123         TARGET_MMX_WITH_SSE.
18124         (*mmx_pinsrw): Add SSE emulation.
18126 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18128         PR target/89021
18129         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18131 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18133         PR target/89021
18134         * config/i386/sse.md (sse_cvtpi2ps): Changed to
18135         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
18136         SSE emulation.
18138 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18140         PR target/89021
18141         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18142         (sse_cvttps2pi): Likewise.
18144 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18146         PR target/89021
18147         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18148         TARGET_MMX_WITH_SSE.
18149         (mmx_pshufw_1): Add SSE emulation.
18150         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18151         TARGET_MMX_WITH_SSE to support SSE emulation.
18153 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18155         PR target/89021
18156         * config/i386/constraints.md (Yw): New constraint.
18157         * config/i386/mmx.md (*vec_dupv2si): Changed to
18158         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18159         support SSE emulation.
18161 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18163         PR target/89021
18164         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18165         TARGET_MMX_WITH_SSE.
18166         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
18167         support.
18168         (mmx_gt<mode>3): Likewise.
18170 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18172         PR target/89021
18173         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18174         TARGET_MMX_WITH_SSE.  Add SSE support.
18176 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18178         PR target/89021
18179         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18180         TARGET_MMX_WITH_SSE.
18181         (any_logic:<code><mode>3): New.
18182         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18183         Add SSE support.
18185 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18187         PR target/89021
18188         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18189         TARGET_MMX_WITH_SSE.  Add SSE emulation.
18190         (mmx_<shift_insn><mode>3): Likewise.
18191         (ashr<mode>3): New.
18192         (<shift_insn><mode>3): Likewise.
18194 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18196         PR target/89021
18197         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18198         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
18200 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18202         PR target/89021
18203         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18204         TARGET_MMX_WITH_SSE.
18205         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18206         SSE support.
18208 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18210         PR target/89021
18211         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18212         TARGET_MMX_WITH_SSE.
18213         (mulv4hi3): New.
18214         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
18215         support.
18217 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18219         PR target/89021
18220         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18221         (plusminus:mmx_<plusminus_insn><mode>3): Check
18222         TARGET_MMX_WITH_SSE.
18223         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18224         (<plusminus_insn><mode>3): New.
18225         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18226         (*mmx_<plusminus_insn><mode>3): Likewise.
18228 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18230         PR target/89021
18231         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18232         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18233         prototype.
18234         * config/i386/mmx.m (mmx_punpckhbw): Changed to
18235         define_insn_and_split to support SSE emulation.
18236         (mmx_punpcklbw): Likewise.
18237         (mmx_punpckhwd): Likewise.
18238         (mmx_punpcklwd): Likewise.
18239         (mmx_punpckhdq): Likewise.
18240         (mmx_punpckldq): Likewise.
18242 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18243             Uros Bizjak  <ubizjak@gmail.com>
18245         PR target/89021
18246         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18247         New function.
18248         (ix86_split_mmx_pack): Likewise.
18249         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18250         New prototype.
18251         (ix86_split_mmx_pack): Likewise.
18252         * config/i386/i386.md (mmx_isa): New.
18253         (enabled): Also check mmx_isa.
18254         * config/i386/mmx.md (any_s_truncate): New code iterator.
18255         (s_trunsuffix): New code attr.
18256         (mmx_packsswb): Removed.
18257         (mmx_packssdw): Likewise.
18258         (mmx_packuswb): Likewise.
18259         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18260         MMX packsswb/packuswb with SSE2.
18261         (mmx_packssdw): Likewise.
18262         * config/i386/predicates.md (register_mmxmem_operand): New.
18264 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18266         PR target/89021
18267         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18268         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18269         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18270         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18271         (ix86_vector_mode_supported_p): Likewise.
18272         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18274 2019-05-15  Martin Liska  <mliska@suse.cz>
18276         PR middle-end/90478
18277         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18278         Check for overflow.
18280 2019-05-15  Richard Biener  <rguenther@suse.de>
18282         * tree-into-ssa.c (pass_build_ssa::execute): Run
18283         update_address_taken before going into SSA.
18285 2019-05-15  Richard Biener  <rguenther@suse.de>
18287         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18288         as __BIT_FIELD_REF with type with -gimple.
18290 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
18292         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18293         semantically equivalent branches (left over after prior refactorings).
18295 2019-05-15  Richard Biener  <rguenther@suse.de>
18297         PR tree-optimization/88828
18298         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18299         bogus check.
18301 2019-05-14  Richard Biener  <rguenther@suse.de>
18303         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18304         as __VIEW_CONVERT with -gimple.
18306 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
18308         PR target/82920
18309         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18310         Darwin.
18312 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
18314         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18315         define_split to become a define_insn_and_split.
18317 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
18319         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18320         arguments.
18321         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18322         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18323         (sibcall_epilogue): Adjust.
18324         (epilogue): Adjust.
18326 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18328         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18329         to unsupported ones.
18330         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18331         * config.host: Likewise.
18332         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18333         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18334         __svr4__]: Remove "brand" fallback.
18335         [!KSTAT_DATA_STRING]: Remove.
18336         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18337         to *-*-solaris2*.
18338         (comdat_group): Likewise.
18339         (set_have_as_tls): Likewise.
18340         (gcc_cv_target_dl_iterate_phdr): Likewise.
18341         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18342         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18343         * configure: Regenerate.
18344         * doc/install.texi: Simplify Solaris target triplets.
18345         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18346         (Specific, *-*-solaris2*): Document Solaris 10 removal.
18347         Remove Solaris 10 references.
18348         Remove obsolete Solaris bug reference.
18349         (Specific, sparc-sun-solaris2.10): Remove.
18351 2019-05-14  Uroš Bizjak  <ubizjak@gmail.com>
18353         * config/i386/i386.md (any_div): New code iterator.
18354         (paired_mod): New code attribute.
18355         (sgnprefix): Handle DIV and UDIV RTXes.
18356         (u): Ditto.
18357         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18358         and udivmod<mode>4 patterns using any_div code iterator.
18359         (divmod splitters): Macroize splitters using any_div code iterator.
18360         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18361         (*udivmodsi4_pow2_zext_2): Ditto.
18362         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18363         and *udivmod<mode>4_noext patterns using any_div code iterator.
18364         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18365         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18366         patterns using any_div code iterator.
18367         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18368         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18369         patterns using any_div code iterator.
18370         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18371         udivmodhiqi3 patterns using any_extend code iterator.
18373 2019-05-14  Richard Biener  <rguenther@suse.de>
18374             H.J. Lu  <hongjiu.lu@intel.com>
18376         PR tree-optimization/88828
18377         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18378         permuting in a single non-constant element not extracted
18379         from a vector.
18381 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
18383         * internal-fn.def (SIGNBIT): New.
18384         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18385         defined.
18386         (signbitv4sf2): Likewise.
18388 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
18390         PR target/90357
18391         * config/mips/mips.c (mips_split_move): Skip forward SRC into
18392         next insn when the SRC reg is dead.
18394 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
18396         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18397         (alloc_cand_and_find_basis): Ditto.
18398         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18399         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18400         (create_add_imm_cand, slsr_process_cast): Ditto.
18401         (slsr_process_copy, replace_mult_candidate): Ditto.
18402         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18403         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18404         (pass_strength_reduction::execute): Init the first NULL element.
18406 2019-05-13  Nathan Sidwell  <nathan@acm.org>
18408         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
18409         (run_attempt): Reformat line break.
18411 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
18413         PR target/90418
18414         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18415         data registers in sibcall epilogues.
18416         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18418 2019-05-13  Uroš Bizjak  <ubizjak@gmail.com>
18420         PR target/89221
18421         * configure.ac (--enable-frame-pointer):
18422         Disable by default for cygwin and mingw.
18423         * configure: Regenerate.
18425 2019-05-13  Nathan Sidwell  <nathan@acm.org>
18427         * dwarf2out.c (breakout_comdat_types): Move comment to correct
18428         piece of code.
18429         (const_ok_for_output_1): Balance parens around #if/#else/#endif
18430         (gen_member_die): Move abstract origin check earlier.  Only VARs
18431         can be static_inline_p.  Simplify splicing control flow.
18433 2019-05-13  Richard Biener  <rguenther@suse.de>
18435         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18436         VIEW_CONVERT_EXPR.
18437         (vect_build_slp_tree_1): Likewise.
18439 2019-05-13  Richard Biener  <rguenther@suse.de>
18441         PR tree-optimization/90402
18442         * tree-if-conv.c (tree_if_conversion): Value number only
18443         the loop body by making the latch an exit of the region
18444         as well.
18445         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18446         processing PHIs.
18447         (do_rpo_vn): Deal with multiple edges into the entry block
18448         that are not backedges inside the region by skipping PHIs
18449         of the entry block.
18451 2019-05-13  Richard Biener  <rguenther@suse.de>
18453         PR tree-optimization/90316
18454         * tree-ssa-pre.c (insert_aux): Fold into ...
18455         (insert): ... this function.  Use a RPO walk to reduce the
18456         number of required iterations.
18458 2019-05-13  Martin Liska  <mliska@suse.cz>
18460         PR tree-optimization/90416
18461         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18462         string instead of passing the second part as va_arg argument.
18464 2019-05-13  Martin Liska  <mliska@suse.cz>
18466         PR gcov-profile/90380
18467         * gcov.c (handle_cycle): Do not support zero cycle count,
18468         it should not be possible.
18469         (path_contains_zero_cycle_arc): New function.
18470         (circuit): Ignore zero cycle arc counts.
18472 2019-05-13  Martin Liska  <mliska@suse.cz>
18474         PR gcov-profile/90380
18475         * gcov.c (enum loop_type): Remove the enum and
18476         the operator.
18477         (handle_cycle): Assert that we should not reach
18478         a negative count.
18479         (circuit): Use loop_found instead of a tri-state loop_type.
18480         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18481         happen.
18483 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
18485         PR target/82920
18486         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18487         (ix86_output_indirect_branch_via_reg): Use output mechanism
18488         accounting for __USER_LABEL_PREFIX__.
18489         (ix86_output_indirect_branch_via_push): Likewise.
18490         (ix86_output_function_return): Likewise.
18491         (ix86_output_indirect_function_return): Likewise.
18493 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
18495         * doc/md.texi: Document use of code attributes in rtx patterns.
18496         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18497         * read-rtl.c (find_code): Split out search loops into...
18498         (maybe_find_code): ...this new function.
18499         (check_code_iterator): Make the error message more informative.
18500         (check_code_attribute): New function.
18501         (rtx_reader::rtx_alloc_for_name): Likewise.
18502         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18503         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18504         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18505         <max_opp> directly as an rtx code instead of via a match_operator.
18506         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18507         (<su>abd<mode>_3): Update accordingly.
18509 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
18511         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18512         is given, print the state of the EH "save world" computation for
18513         Darwin.
18515 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
18517         PR c++/59813
18518         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18519         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18521 2019-05-11  Uroš Bizjak  <ubizjak@gmail.com>
18523         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18524         Use pinsrd for TARGET_SSE4_1.
18525         * config/i386/sse.md (movdi_to_sse): Ditto.
18527 2019-05-10  Richard Biener  <rguenther@suse.de>
18529         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18530         (do_rpo_vn): Initialize next_value_id.
18532 2019-05-10  Martin Liska  <mliska@suse.cz>
18534         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18535         Fix plural form.
18537 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
18539         PR tree-optimization/90385
18540         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18541         arguments of the exit phis.
18543         PR c++/90383
18544         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18545         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18546         id->do_not_fold.
18547         (copy_tree_body_r): Likewise.
18548         (copy_fn): Set id.do_not_fold to true.
18550 2019-05-10  Martin Liska  <mliska@suse.cz>
18552         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18553         Reapply changes from r269790.
18555 2019-05-10  Martin Liska  <mliska@suse.cz>
18557         PR middle-end/90340
18558         * doc/invoke.texi: New params.
18559         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18560         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18561         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18562         Use it.
18563         * tree-switch-conversion.h (struct jump_table_cluster):
18564         Likewise.
18566 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
18568         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18570 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
18572         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18574 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
18576         PR rtl-optimization/88879
18577         * sel-sched.c (sel_target_adjust_priority): Remove assert.
18579 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
18581         PR target/90405
18582         * config/arm/arm.c (callee_saved_reg_p): Move before
18583         thumb_find_work_register.
18584         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18585         thumb_find_work_register.  Only call df_get_live_out once.
18586         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18587         (thumb_find_work_register): Use
18588         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18589         algorithms to locate a spare call clobbered reg.
18591 2019-05-09  Martin Liska  <mliska@suse.cz>
18593         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18594         and MAX_EXPR in GIMPLE FE format.
18596 2019-05-09  Martin Liska  <mliska@suse.cz>
18598         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18599         * gimple-pretty-print.c (dump_gimple_bb_header):
18600         Dump BB count.
18601         (pp_cfg_jump): Dump edge probability.
18602         * profile-count.c (profile_quality_as_string): Simplify
18603         with a static array.
18604         (parse_profile_quality): New function.
18605         (profile_count::dump): Simplify with a static array.
18606         (profile_count::from_gcov_type): Add new argument.
18607         * profile-count.h (parse_profile_quality): Likewise.
18608         * predict.h (set_hot_bb_threshold): New.
18609         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18610         New param.
18611         * predict.c (get_hot_bb_threshold): Set from the new param.
18612         (set_hot_bb_threshold): New.
18614 2019-05-09  Richard Biener  <rguenther@suse.de>
18616         PR tree-optimization/90395
18617         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18618         rewrite vector stores that throw internally.
18620 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
18622         * cif-code.def (CHKP): Remove.
18624         PR target/89221
18625         * configure.ac (--enable-frame-pointer): Disable by default for
18626         GNU systems.
18627         * configure: Regenerate.
18629 2019-05-09  Alan Modra  <amodra@gmail.com>
18631         PR target/89271
18632         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18633         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18634         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18635         cost for general <-> vsx when direct moves are available.
18636         Cost union classes at minimal cost for any reg in the class.
18637         Correct calculation for moves between vsx, float, and altivec.
18638         Don't return a low cost for moves between special regs.  Don't
18639         use hard coded register numbers.
18640         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18641         (rs6000_ira_change_pseudo_allocno_class): New function.
18642         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18643         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18644         alternatives.
18645         (movsi_internal1): Don't disparage vector alternatives.
18646         (mov<mode>_internal): Likewise, excepting alternative that
18647         will be split.
18648         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18649         we <- b alternative.
18651 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
18653         PR c++/59813
18654         PR tree-optimization/89060
18655         * tree-ssa-live.h (live_vars_map): New typedef.
18656         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18657         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18658         (struct compute_live_vars_data): New type.
18659         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18660         live_vars_at_stmt, destroy_live_vars): New functions.
18661         * tree-tailcall.c: Include tree-ssa-live.h.
18662         (live_vars, live_vars_vec): New global variables.
18663         (find_tail_calls): Perform variable life analysis before punting.
18664         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18665         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18666         member.
18667         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18668         Perform variable life analysis to select variables that really need
18669         clobbers added.
18670         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18671         instead set id->eh_landing_pad_dest and assert it is the same.
18672         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18674 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
18675             Richard Earnshaw  <rearnsha@arm.com>
18677         PR target/88167
18678         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18679         function.
18680         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18681         (thumb1_compute_save_core_reg_mask): Don't force a spare work
18682         register if both the epilogue and prologue can use call-clobbered
18683         regs.
18684         (thumb1_unexpanded_epilogue): Use
18685         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
18686         picking temporaries for restoring high regs to match that of the
18687         prologue where possible.
18688         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18689         the list of work registers.  Detect if the return address is still live
18690         at the end of the prologue and avoid using it for a work register if so.
18691         If the return address is not live, add LR to the list of pushable regs
18692         after the first pass.
18694 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
18696         PR tree-optimization/90078
18697         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18698         (INFTY): Increase the value for infinite cost.
18699         (struct comp_cost): Promote type of members to int64_t.
18700         (infinite_cost): Don't set complexity in initialization.
18701         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18702         overflows to infinite_cost.
18703         (adjust_setup_cost): Promote type of parameter and cost computation
18704         to int64_t.
18705         (struct ainc_cost_data, struct iv_ca): Promote type of member to
18706         int64_t.
18707         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18708         cost computation to int64_t.
18709         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18710         int64_t's format specifier in dump.
18712 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
18714         PR tree-optimization/90240
18715         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18716         with respect to scaling factor pre-computed for each basic block.
18717         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18718         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18719         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18720         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
18721         live range for array of loop's basic blocks.  Cleanup aux field of
18722         loop's basic blocks.
18724 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
18726         PR tree-optimization/90356
18727         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18729 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
18731         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18732         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18733         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18734         (ix86_handle_option): Handle -mavx512bf16.
18735         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18736         to extra_headers.
18737         * config/i386/avx512bf16vlintrin.h: New.
18738         * config/i386/avx512bf16intrin.h: New.
18739         * config/i386/cpuid.h (bit_AVX512BF16): New.
18740         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18741         * config/i386/i386-builtin-types.def: Add new types.
18742         * config/i386/i386-builtin.def: Add new builtins.
18743         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18744         __AVX512BF16__.
18745         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18746         (ix86_option_override_internal): Handle BF16.
18747         (ix86_valid_target_attribute_inner_p): Ditto.
18748         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18749         * config/i386/i386-builtin.c (enum processor_features): Add
18750         F_AVX512BF16.
18751         (static const _isa_names_table isa_names_table): Ditto.
18752         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18753         (PTA_AVX512BF16): Ditto.
18754         * config/i386/i386.opt: Add -mavx512bf16.
18755         * config/i386/immintrin.h: Include avx512bf16intrin.h
18756         and avx512bf16vlintrin.h.
18757         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18758         avx512f_cvtneps2bf16_<mode><mask_name>,
18759         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18760         * config/i386/subst.md (mask_half): Add new subst.
18761         * doc/invoke.texi: Document -mavx512bf16.
18763 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
18765         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18766         Delete declaration.
18767         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18768         (rs6000_debug_legitimize_reload_address): Delete.
18769         (rs6000_legitimize_reload_address_ptr): Delete.
18770         (rs6000_option_override_internal): Adjust.
18771         (mem_operand_gpr): Adjust comment.
18772         (legitimate_lo_sum_address_p): Ditto.
18773         (rs6000_legitimize_reload_address): Delete.
18774         (rs6000_debug_legitimize_reload_address): Delete.
18775         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18777 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18779         PR target/89765
18780         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18781         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18782         to compute vector element selector for both constant and variable
18783         operands.
18785 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
18787         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18788         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18789         ashrdi3_cvt using SWI48 mode iterator.
18791 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
18793         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18794         (aarch64_<su>abd<mode>_3): Likewise.
18795         (*aarch64_<su>abd<mode>_3): New define_insn.
18796         (<sur>sad<vsi2qi>): New define_expand.
18797         * config/aarch64/iterators.md: Added MAX_OPP attribute.
18798         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18799         (build_vect_cond_expr): Likewise.
18801 2019-05-07  Uroš Bizjak  <ubizjak@gmail.com>
18803         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18804         clobbers outside of accessible_reg_set.
18805         * config/i386/i386.c (ix86_conditional_register_usage):
18806         Disable register sets by clearing corresponding bits in
18807         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
18808         call_used_regs and don't clear corresponding reg_names array members.
18810 2019-05-07  Richard Biener  <rguenther@suse.de>
18812         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18813         not specified still compute a comp_vectype for invariant
18814         compares.
18816 2019-05-07  Richard Biener  <rguenther@suse.de>
18818         PR tree-optimization/90316
18819         * tree-ssa-pre.c (translate_vuse_through_block): When
18820         same_valid is NULL do not bother to search for a virtual
18821         PHI continuation.
18822         (phi_translate_1): When operands changed we cannot keep
18823         the same value-number so do not bother to ask whether
18824         that's possible from translate_vuse_through_block.
18826 2019-05-07  Martin Liska  <mliska@suse.cz>
18828         * bitmap.c (bitmap_register): Come up with
18829         alloc_descriptor_max_uid and assign it for
18830         a new bitmap.
18831         (register_overhead): Use get_descriptor as
18832         a descriptor.
18833         (release_overhead): New.
18834         (bitmap_elem_to_freelist): Call it.
18835         (bitmap_elt_clear_from): Likewise.
18836         (bitmap_obstack_free): Likewise.
18837         (bitmap_move): Sensitively release memory.
18838         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18839         (bitmap_initialize): Initialize alloc_descriptor to zero.
18840         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18842 2019-05-07  Richard Biener  <rguenther@suse.de>
18844         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18845         we build a SLP node.  Remove max_size and limiting.
18846         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18848 2019-05-07  Richard Biener  <rguenther@suse.de>
18850         PR tree-optimization/90316
18851         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18852         limit by reference.
18853         (walk_non_aliased_vuses): Take walking limit argument.
18854         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18855         walking if it is reached instead of just counting.
18856         (get_continuation_for_phi): Likewise.
18857         (walk_non_aliased_vuses): Likewise, instead of leaving counter
18858         limiting to the callback.
18859         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
18860         (vn_reference_lookup_3): Likewise.
18861         (vn_reference_lookup_pieces): Likewise.
18862         (vn_reference_lookup): Likewise.
18863         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
18864         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
18865         (avail_exprs_stack::lookup_avail_expr): Likewise.
18867 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
18869         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
18870         for comparaible types in the second direction even if first one
18871         hits incomparable type.
18873 2019-05-07  Richard Biener  <rguenther@suse.de>
18875         PR lto/90369
18876         * lto-wrapper.c (debug_objcopy): Use the original filename
18877         including archive offset for the filename used for -save-temps.
18879 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
18881         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
18882         detection.
18884 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18885             Hongtao Liu  <hongtao.liu@intel.com>
18887         PR target/89750
18888         PR target/86444
18889         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
18890         Modified, original implementation isn't correct.
18892 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
18894         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
18895         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
18896         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
18897         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
18898         (FRAME_POINTER_REGNUM): Change numbering.
18899         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
18900         (alt_reg_names): Adjust.
18901         (rs6000_conditional_register_usage): Don't mark hard register 64 as
18902         fixed.
18903         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18904         (DWARF_FRAME_REGISTERS): Delete.
18905         (DWARF2_FRAME_REG_OUT): Fix whitespace.
18906         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18907         Adjust.
18908         (REG_ALLOC_ORDER): Adjust.
18909         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
18910         (REG_CLASS_CONTENTS): Adjust.
18911         (RETURN_ADDR_RTX): Change comment.
18912         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
18913         instead of 67.
18914         (REGISTER_NAMES): Adjust.
18915         (ADDITIONAL_REGISTER_NAMES): Adjust.
18916         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18918 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
18920         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
18921         Delete.
18922         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18923         (DWARF_FRAME_REGISTERS): Adjust.
18924         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18925         Adjust.
18926         (REG_ALLOC_ORDER): Adjust.
18927         (enum reg_class): Delete SPR_REGS.
18928         (REG_CLASS_NAMES): Delete SPR_REGS.
18929         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
18930         (REGISTER_NAMES): Adjust.
18931         (ADDITIONAL_REGISTER_NAMES): Adjust.
18932         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18933         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
18934         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
18935         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
18936         (htm_spr_regno): Delete.
18937         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
18938         argument.
18939         (rs6000_dbx_register_number): Adjust.
18941 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
18943         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
18945 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
18947         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
18948         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
18950 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
18952         PR tree-optimization/88709
18953         PR tree-optimization/90271
18954         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
18955         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
18956         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
18957         variable.
18958         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
18959         of the store merging group is larger than
18960         PARAM_STORE_MERGING_MAX_SIZE parameter.
18961         (split_group): Add bzero_first argument.  If set, always emit first
18962         the first store which must be = {} of the whole area and then for the
18963         rest of the stores consider all zero bytes as paddings.
18964         (imm_store_chain_info::output_merged_store): Check if first store
18965         is = {} of the whole area and if yes, determine which setting of
18966         bzero_first for split_group gives smaller number of stores.  Adjust
18967         split_group callers.
18968         (lhs_valid_for_store_merging_p): Allow decls.
18969         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
18970         no elts.
18971         (pass_store_merging::process_store): Likewise.
18973 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18975         PR target/89424
18976         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18977         handling of V1TImode.
18979 2019-05-06  Uroš Bizjak  <ubizjak@gmail.com>
18981         PR target/89221
18982         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
18983         and enable_frame_pointer ...
18984         * configure.ac: ... here.  Update help strings for
18985         --enable-frame-pointer.
18986         * configure: Regenerate.
18987         * config/i386/i386-options.c (ix86_option_override_internal): Remove
18988         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
18989         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
18990         (USE_X86_64_FRAME_POINTER): Ditto.
18992 2019-05-06  Martin Liska  <mliska@suse.cz>
18994         * config.gcc: Append to target_gtfiles and fix indentation.
18996 2019-05-06  Richard Biener  <rguenther@suse.de>
18998         PR tree-optimization/90358
18999         * tree-vect-stmts.c (get_group_load_store_type): Properly
19000         detect unused upper half of load.
19001         (vectorizable_load): Likewise.
19003 2019-05-06  Richard Biener  <rguenther@suse.de>
19005         PR tree-optimization/88828
19006         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19007         (simplify_vector_constructor): ...here.  Handle constants in
19008         the constructor.
19010 2019-05-06  Richard Biener  <rguenther@suse.de>
19012         PR tree-optimization/90328
19013         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19014         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19015         is valid in the loop nest before using it.
19016         (initialize_data_dependence_relation): Adjust.
19017         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19018         loop as loop-nest to dr_may_alias_p.
19020 2019-05-06  Richard Biener  <rguenther@suse.de>
19022         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19024 2019-05-06  Richard Biener  <rguenther@suse.de>
19026         PR tree-optimization/90316
19027         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19028         compute target on demand.
19029         (get_continuation_for_phi): Remove code walking stmts to
19030         get to a target virtual operand which could end up being
19031         quadratic.
19033 2019-05-06  Martin Liska  <mliska@suse.cz>
19035         PR sanitizer/90312
19036         * config/i386/i386-options.c (ix86_option_override_internal): Error only
19037         when -mabi is selected to a non-default version.
19039 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
19040             Martin Liska  <mliska@suse.cz>
19042         * Makefile.in: Add lto-dump.texi.
19043         * cgraph.h: Add new functions get_visibility_string and
19044         get_symtab_type_string.
19045         * doc/gcc.texi: Include lto-dump section.
19046         * doc/lto-dump.texi: New file.
19047         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19048         (parse_dump_option): Factor out this function.
19049         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19050         (parse_dump_option): Export the function.
19051         * symtab.c (symtab_node::get_visibility_string): New function.
19052         (symtab_node::get_symtab_type_string): Likewise.
19054 2019-05-06  Martin Liska  <mliska@suse.cz>
19056         * config/i386/i386-builtins.c: New file.
19057         * config/i386/i386-builtins.h: New file.
19058         * config/i386/i386-expand.c: New file.
19059         * config/i386/i386-expand.h: New file.
19060         * config/i386/i386-features.c: New file.
19061         * config/i386/i386-features.h: New file.
19062         * config/i386/i386-options.c: New file.
19063         * config/i386/i386-options.h: New file.
19064         * config.gcc: Add new files into extra_objs and
19065         target_gtfiles.
19066         * config/i386/i386.c: Split content of the file
19067         into newly introduced files.
19068         * config/i386/i386.h: Declare common variables
19069         and macros.
19070         * config/i386/t-i386: Define dependencies for new files.
19072 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
19074         PR target/89400
19075         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19076         Restrict 'all' variant to 32-bit configurations.
19077         (unaligned_loadhiu): Likewise.
19078         (unaligned_storehi): Likewise.
19079         (unaligned_storesi): Likewise.
19080         (unaligned_loadhis): Disable when compiling for thumb1.
19082 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
19084         PR tree-optimization/90269
19085         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19086         Ignore clobbers.
19088 2019-05-03  Martin Liska  <mliska@suse.cz>
19090         * hash-map.h: Add is_empty function.
19091         * hash-set.h: Likewise.
19092         * hash-table.h: Likewise.
19093         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19094         elements () == 0 (and similar usages).
19095         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19096         * gimplify.c (gimplify_bind_expr): Likewise.
19097         (gimplify_switch_expr): Likewise.
19098         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19099         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19100         * postreload-gcse.c (dump_hash_table): Likewise.
19101         (gcse_after_reload_main): Likewise.
19102         * predict.c (combine_predictions_for_bb): Likewise.
19103         * tree-parloops.c (reduction_phi): Likewise.
19104         (separate_decls_in_region): Likewise.
19105         (transform_to_exit_first_loop): Likewise.
19106         (gen_parallel_loop): Likewise.
19107         (gather_scalar_reductions): Likewise.
19108         (try_create_reduction_list): Likewise.
19109         * var-tracking.c (dump_vars): Likewise.
19110         (emit_notes_for_changes): Likewise.
19111         (vt_emit_notes): Likewise.
19113 2019-05-03  Richard Biener  <rguenther@suse.de>
19115         PR tree-optimization/90316
19116         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19117         before running VN.
19119 2019-05-03  Richard Biener  <rguenther@suse.de>
19121         * tree-vect-stmts.c (get_group_load_store_type): Avoid
19122         peeling for gaps by loading only lower halves of vectors
19123         if possible.
19124         (vectorizable_load): Likewise.
19126 2019-05-03  Richard Biener  <rguenther@suse.de>
19128         PR middle-end/89518
19129         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19131 2019-05-03  Richard Biener  <rguenther@suse.de>
19133         PR middle-end/87314
19134         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19135         Handle STRING_CST vs DECL or STRING_CST.
19137 2019-05-03  Richard Biener  <rguenther@suse.de>
19139         PR tree-optimization/88963
19140         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19141         vector loads feeding only BIT_FIELD_REFs to component
19142         loads.  Rewrite stores fed by CONSTRUCTORs to component
19143         stores.
19145 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
19147         * opts.h (finish_options): Remove lang_mask argument.
19148         (print_help, help_option_argument): Declare.
19149         * opts.c (print_help): Remove forward declaration, no longer static.
19150         (finish_options): Remove lang_mask argument, don't call print_help
19151         here.
19152         * opts-global.c (decode_options): Adjust finish_option caller, call
19153         print_help here.
19155         PR tree-optimization/90303
19156         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19157         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19159 2019-05-03  Richard Biener  <rguenther@suse.de>
19161         PR tree-optimization/89698
19162         * gimple-fold.c (canonicalize_constructor_val): Early out
19163         for constants, handle unfolded INTEGER_CSTs as they appear in
19164         C++ virtual table ctors.
19166 2019-05-03  Richard Biener  <rguenther@suse.de>
19168         * passes.c (execute_function_todo): Remove dead code.
19170 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
19172         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19173         the internal register number, for any "real" register.
19175 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
19177         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19178         correct numbers for TFHAR, TFIAR, TEXASR.
19180 2019-05-02  Richard Biener  <rguenther@suse.de>
19182         PR tree-optimization/89653
19183         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19184         update-address-taken before the pass.
19185         * passes.def (pass_tree_loop_init): Put comment before it.
19187 2019-05-02  Richard Biener  <rguenther@suse.de>
19189         PR tree-optimization/89509
19190         * tree-ssa-structalias.c (compute_dependence_clique): Look
19191         at the first subvar when determining whether it is restrict.
19193 2019-05-02  Richard Biener  <rguenther@suse.de>
19195         PR tree-optimization/90273
19196         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19197         useless debug stmts.
19199 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
19201         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19202         ACLE branch.
19203         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19204         SVE ACLE branch.
19205         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19206         VEC_COND_EXPR be inserted to emulate a conditional internal function.
19207         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19208         (vectorizable_reduction): Use the functions above to vectorize in a
19209         fully masked loop codes that don't have a conditional internal
19210         function.
19212 2019-05-02  Martin Liska  <mliska@suse.cz>
19214         * cgraphclones.c: Call valid_attribute_p with 1 for
19215         target_clone.
19216         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19217         it's for target attribute.
19218         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19219         Add new boolean argument.
19220         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19221         Likewise.
19222         (ix86_valid_target_attribute_tree): Pass target_clone_attr
19223         to ix86_valid_target_attribute_inner_p.
19224         (ix86_valid_target_attribute_p): Pass flags argument to
19225         ix86_valid_target_attribute_inner_p.
19226         (get_builtin_code_for_version): Use 0 as it's target attribute.
19228 2019-05-02  Martin Liska  <mliska@suse.cz>
19230         * gcc.c (process_command): Add dummy file only
19231         if n_infiles == 0.
19232         * opts-global.c (decode_options): Pass lang_mask.
19233         * opts.c (print_help): New function.
19234         (finish_options): Print --help if help_option_argument
19235         is set.
19236         (common_handle_option): Factor out content of OPT__help_
19237         into print_help.
19238         * opts.h (finish_options): Add new argument.
19240 2019-05-02  Martin Liska  <mliska@suse.cz>
19242         PR target/88809
19243         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19244         With -minline-all-stringops use inline expansion using 4B loop.
19245         * doc/invoke.texi: Document the change of
19246         -minline-all-stringops.
19248 2019-05-01  Jeff Law  <law@redhat.com>
19250         PR tree-optimization/88797
19251         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19252         PHI feeds a conditional on the RHS of an assignment.
19254 2019-04-30  Andrew Waterman  <andrew@sifive.com>
19255             Jim Wilson  <jimw@sifive.com>
19257         * config/riscv/constraints.md (L): New.
19258         * config/riscv/predicates.md (lui_operand): New.
19259         (sfb_alu_operand): New.
19260         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19261         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19262         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19263         * config/riscv/risc.md (type): Add sfb_alu.
19264         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
19265         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
19266         (branch_zero<mode>): Delete.
19267         (mov<mode>cc): New.
19268         (mov<GPR:mode><X:mode>cc): Likewise.
19269         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
19271 2019-04-30  Nathan Sidwell  <nathan@acm.org>
19273         * tree.h (MARK_TS_EXP): New.
19275 2019-04-30  Martin Liska  <mliska@suse.cz>
19277         * opts.c (enable_warning_as_error): Provide hints
19278         for unknown options.
19280 2019-04-30  Martin Liska  <mliska@suse.cz>
19282         PR debug/90288
19283         * doc/invoke.texi: Add missing dash for gas-locview-support
19284         and gno-as-locview-support.
19286 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
19288         PR target/89093
19289         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19290         whitespace at the start of target attribute string.
19292 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19294         PR target/86538
19295         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19296         Define __ARM_FEATURE_ATOMICS.
19298 2019-04-30  Martin Liska  <mliska@suse.cz>
19300         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19301         into built_in_function enum. Remove code for endp == 2 and
19302         use BUILT_IN_* constants.
19303         (gimple_fold_builtin): Call the function with fcode.
19305 2019-04-30  Martin Liska  <mliska@suse.cz>
19307         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19308         DECL_FUNCTION_CODE into ix86_builtins enum before
19309         the switch statement.
19311 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
19313         PR tree-optimization/89475
19314         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19315         calls.
19317 2019-04-30  Martin Liska  <mliska@suse.cz>
19319         PR translation/90274
19320         * opts.c (print_filtered_help): Wrap string in _(...).
19322 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
19324         PR tree-optimization/90240
19325         Revert:
19326         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
19328         PR tree-optimization/90078
19329         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19330         checks for infinite_cost overflow.
19332 2019-04-29  Jeff Law  <law@redhat.com>
19334         * passes.def: Move -Wrestrict pass after copy propagation.
19336 2019-04-29  Maya Rashish  <coypu@sdf.org>
19338         * config.gcc (default_gnu_indirect_function): Default to yes
19339         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19340         sparc*-*-netbsd*, x86_64-*-netbsd*.
19342 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
19344         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19345         where cond2 is NE_EXPR.
19346         (is_value_included_in): Update comment.
19348 2019-04-29  Richard Biener  <rguenther@suse.de>
19350         PR tree-optimization/90278
19351         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19352         EH on comparison simplification.
19354 2019-04-29  Jason Merrill  <jason@redhat.com>
19356         PR c++/82081 - tail call optimization breaks noexcept
19357         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19358         nothrow function to a might-throw function into a tail call.
19360 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
19362         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19363         (DDR_INNER_LOOP): Likewise.
19364         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19365         (initialize_data_dependence_relation): Likewise.
19366         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19368 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
19370         PR rtl-optimization/90257
19371         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19372         return value.
19374         Revert the revert:
19375         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
19377         PR target/90178
19378         Revert:
19379         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
19381         Revert the revert:
19382         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
19384         Revert:
19385         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
19387         * lra-spills.c (lra_final_code_change): Remove useless move insns.
19389 2019-04-29  Richard Biener  <rguenther@suse.de>
19391         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19392         rhs issue a reset.
19394 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
19396         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
19397         varasm.h, and netbsd-protos.h.
19399 2019-04-27  Uroš Bizjak  <ubizjak@gmail.com>
19401         PR target/89261
19402         * config/i386/i386-protos.h (ix86_data_alignment): Change
19403         the second argument type to unsigned int.
19404         * config/i386/i386.c (ix86_data_alignment): Change "align"
19405         argument type to unsigned int.
19407 2019-04-27  Martin Liska  <mliska@suse.cz>
19409         PR middle-end/90258
19410         * opt-suggestions.c (option_proposer::build_option_suggestions):
19411         When get_valid_option_values returns empty values, add the
19412         misspelling candidate.
19414 2019-04-26  Jim Wilson  <jimw@sifive.com>
19416         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19417         parameter.
19418         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19419         Pass orig_mode to riscv_build_integer.
19420         (riscv_split_integer): Pass mode to riscv_move_integer.
19421         (riscv_legitimize_const_move): Likewise.
19422         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19423         promoted_mode.  Replace force_reg call with code to load constant into
19424         promoted reg and then subreg it for the store.
19425         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19426         riscv_move_integer.
19428 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
19430         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19431         corrupt codes.
19433 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
19435         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19436         commentary about the encoding of precision.
19438 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
19440         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19441         * config/i386/t-freebsd64: New file.
19442         * config.gcc: Add the t-freebsd64 for multilib support.
19444 2019-04-25  Uroš Bizjak  <ubizjak@gmail.com>
19446         * doc/extend.texi (vector_size): Add missing comma after @xref.
19448 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
19450         * BASE-VER: Set to 10.0.0.
19452 2019-04-25  Richard Biener  <rguenther@suse.de>
19454         PR middle-end/89765
19455         * gimplify.c (gimplify_expr): Avoid turning a lvalue
19456         VIEW_CONVERT_EXPR into one operating on an rvalue.
19458 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
19460         PR target/89929
19461         * config/i386/i386.c (feature_priority): Moved to file scope.
19462         (processor_features): Likewise.
19463         (processor_model): Likewise.
19464         (_arch_names_table): Likewise.
19465         (arch_names_table): Likewise.
19466         (_feature_list): Removed.
19467         (feature_list): Likewise.
19468         (_isa_names_table): Moved to file scope.  Add priority.
19469         (isa_names_table): Likewise.
19470         (get_builtin_code_for_version): Replace feature_list with
19471         isa_names_table.  Update error message for P_ZERO priority.
19473 2019-04-25  Richard Biener  <rguenther@suse.de>
19475         * tree-pass.h (make_pass_phi_only_cprop): Remove.
19476         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19478 2019-04-24  Jeff Law  <law@redhat.com>
19480         PR tree-optimization/90037
19481         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19482         * passes.def: Replace all instance of phi-only cprop with the
19483         lattice propagator.  Move propagation pass from after erroneous
19484         path isolation to before erroneous path isolation.
19485         * tree-ssa-phionlycprop.c: Remove.
19487 2019-04-24  Richard Biener  <rguenther@suse.de>
19489         PR middle-end/90213
19490         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19491         by size and BITS_PER_UNIT on poly-wide-ints.
19493 2019-04-25  Richard Biener  <rguenther@suse.de>
19495         PR middle-end/90194
19496         * match.pd: Add pattern to simplify view-conversion of an
19497         empty constructor.
19499 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
19501         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19502         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19503         for Go on 32 bit AIX.
19504         * config/rs6000/aix72.h: Likewise.
19506 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
19508         PR target/90193
19509         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19510         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19512 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
19514         PR target/89952
19515         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19516         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
19517         for restored hard frame pointer.
19518         (s390_sched_dependencies_evaluation): Implement new target hook.
19519         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19521 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
19523         * config/arc/arc-options.def: Fix typos and spelling mistakes.
19524         * config/arc/arc.c (arc_init): Cleanup warning message.
19525         (arc_override_options): Likewise.
19527 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
19529         PR target/90187
19530         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19531         a register if both if_true and if_false are MEMs.
19533         PR tree-optimization/90208
19534         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19535         after labels of new_bb, not before them.
19537         PR tree-optimization/90211
19538         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19539         which are not SSA_NAMEs.
19541 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
19543         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19544         AArch64.
19545         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19547 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
19549         PR rtl-optimization/87979
19550         * modulo-sched.c (sms_schedule): Start ii value "mii" should
19551         not equal zero.
19553 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
19555         PR rtl-optimization/84032
19556         * modulo-sched.c (ps_insn_find_column): Change condition so that
19557         branch will always be the last insn in a row inside partial
19558         schedule.
19560 2019-04-23  Richard Biener  <rguenther@suse.de>
19562         PR debug/90131
19563         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19564         dest_single_pred_p argument.
19565         (remove_forwarder_block): Adjust.
19566         (remove_forwarder_block_with_phi): Likewise.
19568 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19569             Bernd Edlinger  <bernd.edlinger@hotmail.de>
19570             Jakub Jelinek  <jakub@redhat.com>
19572         PR target/89093
19573         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19574         if used with general-regs-only.
19575         (arm_conditional_register_usage): Don't add non-general regs if
19576         general-regs-only.
19577         (arm_valid_target_attribute_rec): Handle general-regs-only.
19578         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19579         general-regs-only.
19580         (TARGET_HARD_FLOAT_SUB): Define.
19581         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19582         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19583         (TARGET_REALLY_IWMMXT2): Likewise.
19584         * config/arm/arm.opt: Add -mgeneral-regs-only.
19585         * doc/extend.texi: Document ARM general-regs-only target.
19586         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19588 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
19590         PR tree-optimization/90078
19591         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19592         checks for infinite_cost overflow.
19594 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
19596         PR tree-optimization/90021
19597         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19598         and check univariate against it.
19599         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19600         * tree-data-ref.c (add_other_self_distances): Pass new argument.
19602 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
19604         PR target/90178
19605         Revert:
19606         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
19608         Revert the revert:
19609         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
19611         Revert:
19612         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
19614         * lra-spills.c (lra_final_code_change): Remove useless move insns.
19616 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
19618         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19619         names using operand format, rather than hard-wired.
19620         (speculation_barrier): Likewise.
19622 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
19624         PR tree-optimization/88055
19625         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19626         (gen_one_condition): Use it if !HONOR_NANS.
19628 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
19630         PR middle-end/90139
19631         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19632         assign_temp instead of gen_reg_rtx.
19634 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
19636         PR translation/90118
19637         * config/aarch64/aarch64.c (aarch64_override_options_internal):
19638         Add missing space before %<.
19640 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
19642         PR rtl-optimization/87871
19643         * ira-lives.c (make_object_dead): Don't add conflicts to
19644         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19646 2019-04-18  Martin Sebor  <msebor@redhat.com>
19648         PR middle-end/89797
19649         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19650         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19651         assuming type size fits in SHWI.
19653 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
19655         PR ipa/85051
19656         * ipa-inline.c (flatten_function): New parameter UPDATE.
19657         (ipa_inline, early_inliner): Use it.
19659 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
19661         * fold-const.c (int_const_binop): Return early on failure.
19663 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
19665         PR middle-end/85164
19666         * combine.c (force_int_to_mode): Cast the argument rather than
19667         the result of known_alignment.
19668         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19670 2019-04-18  Richard Biener  <rguenther@suse.de>
19672         PR debug/90131
19673         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19674         out from ...
19675         (remove_forwarder_block): ... here.
19676         (remove_forwarder_block_with_phi): Also move debug stmts here.
19678 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
19680         PR translation/79183
19681         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19682         inform where appropriate.
19684 2019-04-18  Richard Biener  <rguenther@suse.de>
19686         * tree.c (get_qualified_type): Put found type variants at the
19687         head of the variant list.
19689 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
19691         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19693 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
19695         PR target/90125
19696         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19697         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19698         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19699         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19700         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19702 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
19704         * ira-conflicts.c (print_allocno_conflicts): Always print something,
19705         even for allocno's with no conflicts.
19706         (print_conflicts): Print an extra newline.
19708 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
19710         * auto-inc-dec.c (attempt_change): Set the alignment of the
19711         temporary memory to that of the original.
19713 2019-04-17  Joao Moreira  <jmoreira@suse.de>
19715         * targhooks.c (default_print_patchable_function_entry): Emit
19716         __patchable_function_entries section with writable flags to allow
19717         relocation resolution.
19719 2019-04-17  Jonny Grant  <jg@jguk.org>
19721         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19723 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
19725         PR middle-end/90095
19726         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19727         on lowpart SUBREGs.
19729 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
19731         * config/arc/arc.c (arc_init): Format diagnostic string.
19732         (arc_override_options): Likewise.
19733         (check_if_valid_regno_const): Likewise.
19734         (arc_reorg): Likewise.
19736 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
19738         PR target/17108
19739         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19740         name.
19741         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
19742         name.
19743         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19744         (*movdi_update1): Use Pmode.
19745         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19746         (movdi_<mode>_update_stack): Rename to ...
19747         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
19748         use Pmode.
19749         (*movsi_update1): Use Pmode.
19750         (*movsi_update2): Use Pmode.
19751         (movsi_update): Rename to ...
19752         (movsi_<mode>_update): ... this.  Use Pmode.
19753         (movsi_update_stack): Fix condition.
19754         (*movhi_update1): Use Pmode.  Fix argument to
19755         avoiding_indexed_address_p.
19756         (*movhi_update2): Ditto.
19757         (*movhi_update3): Ditto.
19758         (*movhi_update4): Ditto.
19759         (*movqi_update1): Ditto.
19760         (*movqi_update2): Ditto.
19761         (*movqi_update3): Ditto.
19762         (*movsf_update1, *movdf_update1): Merge, rename to...
19763         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
19764         avoiding_indexed_address_p.  Add "size" attribute.
19765         (*movsf_update2, *movdf_update2): Merge, rename to...
19766         (*mov<mode>_update2): This.  Ditto.
19767         (*movsf_update3): Use Pmode.  Fix argument to
19768         avoiding_indexed_address_p.
19769         (*movsf_update4): Ditto.
19770         (allocate_stack): Simplify condition.  Adjust pattern names.
19772 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
19774         PR target/89093
19775         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19776         whitespace at the start of target attribute string.
19778 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
19780         PR target/84369
19781         * config/rs6000/power9.md: Add store forwarding bypass.
19783 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
19785         PR debug/89528
19786         * valtrack.c (dead_debug_insert_temp): Reset debug references
19787         to the return value of a call being removed.
19789 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
19791         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19792         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19793         implement target hook.
19794         (arc_memory_move_cost): New function.
19795         (TARGET_REGISTER_MOVE_COST): Define.
19796         (TARGET_MEMORY_MOVE_COST): Likewise.
19797         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19798         (MEMORY_MOVE_COST): Likewise.
19800 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
19802         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19803         (sibcall_value_insn): Likewise.
19804         * config/arc/constraints.md (Rs5): Remove.
19806 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
19808         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19809         for last two fake registers.
19810         (arc_conditional_register_usage): Make sure fake frame and arg
19811         pointer regs are in general regs class.
19812         (FRAME_POINTER_MASK): Remove.
19813         (RETURN_ADDR_MASK): Remove.
19814         (arc_must_save_register): Use hard frame regnum.
19815         (frame_restore_reg): Use hard_frame_pointer_rtx.
19816         (arc_save_callee_saves): Likewise.
19817         (arc_restore_callee_saves): Likewise.
19818         (arc_save_callee_enter): Likewise.
19819         (arc_restore_callee_leave): Likewise.
19820         (arc_save_callee_milli): Likewise.
19821         (arc_eh_return_address_location): Likewise.
19822         (arc_check_multi): Use hard frame regnum.
19823         (arc_can_eliminate): Likewise.
19824         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19825         for register allocator.
19826         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19827         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19828         (FRAME_POINTER_REGNUM): Change it to a fake register.
19829         (HARD_FRAME_POINTER_REGNUM): Defined.
19830         (ARG_POINTER_REGNUM): Change it to a new fake register.
19831         (ELIMINABLE_REGS): Update.
19832         (REGISTER_NAMES): Update names.
19833         * config/arc/arc.md (LP_START): Remove.
19834         (LP_END): Likewise.
19835         (shift_si3_loop): Update pattern.
19837 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
19839         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19840         to avoid delay slot scheduling.
19841         (arc_must_save_register): Don't save SP.
19842         * config/arc/arc.md (stack_tie): Remove.
19843         (UNSPEC_ARC_STKTIE): Likewise.
19845 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
19846             Shiva Chen  <shiva0217@gmail.com>
19848         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19849         code gen with large shift amount.
19851 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
19853         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19854         subreg.
19856 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
19858         PR target/90096
19859         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
19860         print -m64/-mx32/-m32 if it is true.
19861         (ix86_debug_options, ix86_function_specific_print): Pass true as
19862         ADD_ABI_P to ix86_target_string.
19863         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
19864         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
19865         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
19867         PR rtl-optimization/90082
19868         * dce.c (can_delete_call): New function.
19869         (deletable_insn_p, mark_insn): Use it.
19871         PR tree-optimization/90090
19872         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
19873         throw internally.
19874         (is_division_by_square): Likewise.  Formatting fix.
19876 2019-04-16  Richard Biener  <rguenther@suse.de>
19878         PR tree-optimization/56049
19879         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
19880         equality check if alias-set zero will prevail.
19882 2019-04-15  Jeff Law  <law@redhat.com>
19884         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
19885         size and alignment as unsigned.
19887 2019-04-15  Richard Biener  <rguenther@suse.de>
19889         PR debug/90074
19890         * tree-loop-distribution.c (destroy_loop): Preserve correct
19891         debug info.
19893 2019-04-15  Richard Biener  <rguenther@suse.de>
19895         PR tree-optimization/90071
19896         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
19897         abnormal operands from def stmts.
19899 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
19901         PR rtl-optimization/89794
19902         * combine.c (count_auto_inc): New function.
19903         (try_combine): Count how many auto_inc expressions there were in the
19904         original instructions.  Ensure we have the same number in the new
19905         instructions.  Remove the code that tried to ensure auto_inc side
19906         effects on i1 and i0 are not lost.
19908 2019-04-15  Richard Biener  <rguenther@suse.de>
19910         PR ipa/88936
19911         * tree.h (auto_var_p): Declare.
19912         * tree.c (auto_var_p): New function, split out from ...
19913         (auto_var_in_fn_p): ... here.
19914         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
19915         member.
19916         (new_var_info): Initialize it.
19917         (set_uids_in_ptset): Also set the shadow variable uid if required.
19918         (ipa_pta_execute): Postprocess points-to solutions assigning
19919         shadow variable uids for locals that may reach their containing
19920         function recursively.
19921         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
19922         assert but instead check whether the points-to solution is
19923         a singleton.
19925 2019-04-15  Martin Jambor  <mjambor@suse.cz>
19927         PR ipa/pr89693
19928         * cgraph.c (clone_of_p): Loop over clone chain for each step in
19929         the thunk chain.
19931 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
19933         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
19935 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
19936             Kito Cheng  <kito.cheng@gmail.com>
19937             Shiva Chen  <shiva0217@gmail.com>
19939         * config/nds32/nds32-md-auxiliary.c
19940         (nds32_legitimize_pic_address): Use new PIC pattern.
19941         (nds32_legitimize_tls_address): Use new TLS pattern.
19942         (nds32_output_symrel): New.
19943         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
19944         (nds32_alloc_relax_group_id): Ditto.
19945         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
19946         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
19947         relax_group_id.
19948         (nds32_group_tls_insn): Ditto.
19949         (nds32_group_float_insns): Ditto.
19950         * config/nds32/nds32.md (tls_le): New.
19951         (sym_got): Ditto.
19953 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
19955         * configure: Add nds32 target for dwarf2 debug_line checking.
19956         * configure.ac: Regenerated.
19958 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
19960         PR lto/89358
19961         * ipa-devirt.c (skip_in_fields_list_p): New.
19962         (odr_types_equivalent_p): Use it.
19964 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
19966         PR target/89093
19967         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
19968         instead of strncmp when checking for thumb and arm.  Formatting fixes.
19970 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
19972         * doc/install.texi: Document --with-target-system-zlib.
19974 2019-04-12  Martin Sebor  <msebor@redhat.com>
19976         PR c/88383
19977         PR c/89288
19978         PR c/89798
19979         PR c/89797
19980         * targhooks.c (default_vector_alignment): Avoid assuming
19981         argument fits in SHWI.
19982         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
19983         a shift expression.
19984         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
19986 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
19988         PR rtl-optimization/89965
19989         * dce.c: Include rtl-iter.h.
19990         (struct check_argument_load_data): New type.
19991         (check_argument_load): New function.
19992         (find_call_stack_args): Check for loads from stack slots still tracked
19993         in sp_bytes and punt if any is found.
19995         * config/mips/loongson-mmiintrin.h: Fix up #error message.
19997 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
19999         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20000         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20002 2019-04-12  Martin Liska  <mliska@suse.cz>
20004         PR middle-end/89970
20005         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20006         in error message.
20007         (separate_attrs): Handle multiple 'default's.
20008         (expand_target_clones): Rework error handling code.
20010 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20012         PR target/87532
20013         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20014         mode of vector rather than mode of destination for move instruction.
20015         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20016         Use QI inner mode with V16QI vector mode.
20018 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
20020         PR target/52726
20021         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20022         "invalid %%t operand" in output_operand_lossage message.
20024 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
20026         * config/s390/predicates.md (permute_pattern_operand): New
20027         predicate.
20028         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20029         operand for the permute pattern.
20030         ("*vec_perm<mode>"): New insn definition.
20031         ("bswap<mode>"): Generate the permute pattern operand in the
20032         expander and perform the operand reloads for pre arch13 level
20033         already.
20034         ("*bswap<mode>_emu"): Rename to ...
20035         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20036         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20037         Add the USE operand for the permute pattern.
20038         ("*vec_set_bswap_vec<mode>"): Likewise.
20040 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
20042         PR c/89946
20043         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20044         and gcc_unreachable if it fails, just call tree_to_uhwi which
20045         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
20046         Start warning message with a lower-case letter.  Formatting fixes.
20048         PR rtl-optimization/90026
20049         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20050         successors, look for BARRIERs inside of the whole BB_FOOTER chain
20051         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
20052         in cfglayout mode, use emit_barrier_after_bb.
20054 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
20056         PR rtl-optimization/87763
20057         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20058         New Instruction.
20060 2019-04-11  Tom de Vries  <tdevries@suse.de>
20062         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20063         max macro using statement expression.
20065 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
20067         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20068         * xcoffout.c (xcoff_private_rodata_section_name): Define.
20069         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20070         read_only_private_data_section using xcoff_private_rodata_section_name.
20071         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20073 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
20075         PR target/90016
20076         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20078 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
20080         PR rtl-optimization/89965
20081         * dce.c (sp_based_mem_offset): New function.
20082         (find_call_stack_args): Use sp_based_mem_offset.
20084 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
20086         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20088 2019-04-11  Richard Biener  <rguenther@suse.de>
20090         PR tree-optimization/90020
20091         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20092         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20093         * tree-ssa-pre.c (compute_avail): Use it to not put
20094         possibly trapping references after a call that might not
20095         return into EXP_GEN.
20096         * gcse.c (compute_hash_table_work): Do not elide
20097         marking a block containing a call if the call might not
20098         return.
20100 2019-04-11  Richard Biener  <rguenther@suse.de>
20102         PR tree-optimization/90018
20103         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20104         Test both SLP and interleaving variants.
20106 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
20108         * config/s390/8561.md: New file.
20109         * config/s390/driver-native.c (s390_host_detect_local_cpu):
20110         Add arch13 cpu model.
20111         * config/s390/s390-opts.h (enum processor_type): Likewise.
20112         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20113         (s390_get_unit_mask): Likewise.
20114         (s390_is_fpd): Likewise.
20115         (s390_is_fxd): Likewise.
20116         * config/s390/s390.h (s390_tune_attr): Likewise.
20117         * config/s390/s390.md: Include arch13 pipeline description.
20118         * config/s390/s390.opt: Add arch13.
20120 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
20122         PR rtl-optimization/87763
20123         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20124         New prototype.
20125         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20126         New function.
20127         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20128         New instruction.
20129         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20130         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20131         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20132         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20134 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
20136         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20137         "Although" in -fipa-icf documentation.
20139         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20140         of using multiple -g options.
20142 2019-04-10  Martin Liska  <mliska@suse.cz>
20144         PR gcov-profile/89959
20145         * doc/gcov.texi: Make documentation of -x option
20146         more precise.
20148 2019-04-10  Richard Biener  <rguenther@suse.de>
20150         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20151         member.
20152         (DR_GROUP_SAME_DR_STMT): Remove.
20153         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20154         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20155         replace with assert.
20156         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20157         (vect_record_grouped_load_vectors): Remove unreachable code.
20159 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
20161         PR target/90016
20162         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20163         obsolete reference to N.
20165 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
20167         PR middle-end/90025
20168         * expr.c (store_expr): Set properly size on the MEM passed to
20169         clear_storage.
20171         PR c++/90010
20172         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20173         with strlen in between hostsz-3 and hostsz-1 inclusive when no
20174         translation is needed, and when translation is needed, only append
20175         ... if the string length is hostsz or more bytes long.  Avoid using
20176         strncpy or strcat.
20178 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
20180         PR target/90024
20181         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20182         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20183         into three.
20184         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20185         differences directly.
20186         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20188 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
20190         PR translation/90011
20191         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20192         from diagnostics.
20193         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20194         diagnostics.
20195         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20196         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20197         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20198         trailing space from -gsplit-dwarf diagnostics.
20200         PR tree-optimization/89998
20201         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20202         instead of integer_type_node if possible, don't add ranges if return
20203         type is not compatible with int.
20204         * gimple-fold.c (gimple_fold_builtin_sprintf,
20205         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20206         integer_type_node.
20208 2019-04-09  Martin Liska  <mliska@suse.cz>
20210         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20211         * doc/install.texi: Document the new config.
20213 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
20215         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20216         use gimple_expr_type for load and store calls.  Skip over the
20217         condition argument in a conditional internal function.
20218         Protect use of TREE_INT_CST_LOW.
20220 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
20222         PR target/90015
20223         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20224         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
20225         trailing period from it too.
20227 2019-04-08  wu yuan  <wuyuan5@huawei.com>
20229         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20230         * config/aarch64/aarch64.md : Add "tsv110.md"
20231         * config/aarch64/tsv110.md: New file.
20233 2019-04-08  Richard Biener  <rguenther@suse.de>
20235         PR tree-optimization/90006
20236         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20237         calls like lrint.
20239 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
20241         PR target/83033
20242         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20243         construction.
20244         (fma_root_node): Likewise.
20245         (func_fma_steering): Likewise.
20247 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
20249         PR rtl-optimization/89865
20250         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20252         PR rtl-optimization/89865
20253         * config/i386/i386.md
20254         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20255         numbers not to clash with the additional operands[4].
20256         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20257         with extra register copy in the middle.
20259 2019-04-08  Martin Liska  <mliska@suse.cz>
20261         PR gcov-profile/89961
20262         * doc/gcov.texi: Document data_file.
20263         * gcov.c (generate_results): Add data_info into JSON output.
20265 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
20267         PR tree-optimization/89725
20268         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
20269         loop's chrec as invariant symbol.
20270         * tree-chrec.h (chrec_contains_symbols): New parameter.
20271         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20272         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20273         function of loops not in DDR's loop_nest.
20274         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20276 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
20278         PR target/89623
20279         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20280         Mask.
20282 2019-04-07  Uroš Bizjak  <ubizjak@gmail.com>
20284         PR target/89945
20285         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20286         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20288 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20290         * sched-deps.c (sched_macro_fuse_insns): Check return value of
20291         targetm.fixed_condition_code_regs.
20293 2019-04-05  Richard Biener  <rguenther@suse.de>
20295         PR debug/89892
20296         PR debug/89905
20297         * tree-cfgcleanup.c (remove_forwarder_block): Always move
20298         debug bind stmts but reset them if they are not valid at the
20299         destination.
20301 2019-04-05  Martin Liska  <mliska@suse.cz>
20303         PR translation/89936
20304         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20305         order to wrap keywords or arguments.
20306         * collect2.c (main): Likewise.
20307         (scan_prog_file): Likewise.
20308         (scan_libraries): Likewise.
20309         * common/config/riscv/riscv-common.c
20310         (riscv_subset_list::parsing_subset_version): Likewise.
20311         (riscv_subset_list::parse_std_ext): Likewise.
20312         * config/aarch64/aarch64.c (aarch64_override_options_internal):
20313         Likewise.
20314         * config/arm/arm.c (arm_option_override): Likewise.
20315         * config/cris/cris.c (cris_print_operand): Likewise.
20316         * config/darwin-c.c (darwin_pragma_options): Likewise.
20317         (darwin_pragma_unused): Likewise.
20318         (darwin_pragma_ms_struct): Likewise.
20319         * config/ft32/ft32.c (ft32_print_operand): Likewise.
20320         * config/i386/i386.c (print_reg): Likewise.
20321         (ix86_print_operand): Likewise.
20322         * config/i386/xm-djgpp.h: Likewise.
20323         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20324         * config/m32c/m32c.c (m32c_option_override): Likewise.
20325         * config/msp430/msp430.c (msp430_option_override): Likewise.
20326         * config/nds32/nds32.c (nds32_option_override): Likewise.
20327         * config/nvptx/mkoffload.c (main): Likewise.
20328         * config/rx/rx.c (rx_print_operand): Likewise.
20329         (valid_psw_flag): Likewise.
20330         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20331         (vms_pragma_nomember_alignment): Likewise.
20332         (vms_pragma_extern_model): Likewise.
20333         * lto-wrapper.c (compile_offload_image): Likewise.
20334         * omp-offload.c (oacc_parse_default_dims): Likewise.
20335         * symtab.c (symtab_node::verify_base): Likewise.
20336         * tlink.c (recompile_files): Likewise.
20337         (start_tweaking): Likewise.
20338         * tree-profile.c (parse_profile_filter): Likewise.
20340 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
20342         PR tree-optimization/89956
20343         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20344         multiple negates of the same value.
20346 2019-04-04  Martin Sebor  <msebor@redhat.com>
20348         PR middle-end/89957
20349         PR middle-end/89911
20350         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20351         have the same precision since the function crashes otherwise.
20352         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20353         has non-zero arguments.
20355 2019-04-04  Martin Sebor  <msebor@redhat.com>
20357         PR middle-end/89934
20358         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20359         out if the number of arguments is less than expected.
20361 2019-04-04  Jeff Law  <law@redhat.com>
20363         PR rtl-optimization/89399
20364         * ree.c (combine_set_extension): Use single_set rather than
20365         digging into PATTERN for items on the candidate list.
20366         (combine_reaching_defs): Likewise.
20368 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
20370         PR rtl-optimization/46590
20371         * loop-invariant.c (find_defs): Move df_remove_problem and
20372         df_process_deferred_rescans to move_invariants.
20373         Move df_live_add_problem and df_live_set_all_dirty calls
20374         to move_invariants.
20375         (move_invariants): Likewise.
20376         (move_loop_invariants): Likewise, making the df_live calls
20377         conditional on -O.  Remove the problem again if we added it
20378         locally.
20380 2019-04-03  qing zhao  <qing.zhao@oracle.com>
20382         PR tree-optimization/89730
20383         * ipa-inline.c (can_inline_edge_p): Delete the checking for
20384         -flive-patching=inline-only-static.
20385         (can_inline_edge_by_limits_p): Add the checking for
20386         -flive-patching=inline-only-static and grant always_inline
20387         even when -flive-patching=inline-only-static is specified.
20389 2019-04-03  Jeff Law  <law@redhat.com>
20391         PR rtl-optimization/81025
20392         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20394 2019-04-03  Richard Biener  <rguenther@suse.de>
20396         PR tree-optimization/84101
20397         * tree-vect-stmts.c: Include explow.h for hard_function_value,
20398         regs.h for hard_regno_nregs.
20399         (cfun_returns): New helper.
20400         (vect_model_store_cost): When vectorizing a store to a decl
20401         we return and the function ABI returns in a multi-reg location
20402         account for the possible spilling that will happen.
20404 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
20406         * config/s390/s390.c (s390_legitimate_address_p): Reject long
20407         displacement addresses for vector mode operands.
20409 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
20411         * config/arc/arc.c (GMASK_LEN): Define.
20412         (arc_restore_callee_saves): Restore first blink when
20413         !optimize_size.
20415 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
20417         * doc/extend.texi: Add deprecated comment on sign-return-address
20418         function attribute and add mbranch-protection.
20419         * doc/invoke.texi: Add bti to the options for mbranch-protection.
20421 2019-04-03  Richard Biener  <rguenther@suse.de>
20423         PR lto/89896
20424         * lto-wrapper.c (run_gcc): Avoid implicit rules making
20425         the all target phony.
20427 2019-04-02  Uroš Bizjak  <ubizjak@gmail.com>
20429         PR target/89902
20430         PR target/89903
20431         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20432         Return false for variable DImode shifts.
20433         (dimode_scalar_chain::compute_convert_gain): Do not handle
20434         register count operand in variable DImode shifts.
20435         (dimode_scalar_chain::make_vector_copies): Remove support to copy
20436         count argument of a variable shift instruction to a vector register.
20437         (dimode_scalar_chain::convert_reg): Remove support to convert
20438         count argument of a variable shift instruction.
20440 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
20442         PR rtl-optimization/84206
20443         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20444         iterating over loop headers.
20446 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
20448         PR rtl-optimization/85876
20449         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20450         beyond the original fence.
20452 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
20454         * config.gcc: Mark spu* targets as deprecated/obsolete.
20456 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20458         * config/s390/s390-builtin-types.def: New builtin function type
20459         definitions. Remove unused types.
20460         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20461         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20462         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20463         overloaded builtins.
20464         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20465         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20466         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20467         (vec_double, vec_signed, vec_unsigned): Define to use the new
20468         overloaded builtins.
20469         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20470         Remove expanders.
20472 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20474         * config/s390/s390-builtin-types.def: New builtin function type
20475         definitions.
20476         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20477         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20478         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20479         (s390_vstrszh, s390_vstrszf): New low-level builtins.
20480         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20481         constant definitions.
20482         * config/s390/vecintrin.h (vec_search_string_cc)
20483         (vec_search_string_until_zero_cc): New builtin name definitions.
20484         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20485         expanders.
20486         ("vec_vstrs<mode>"): New insn definition.
20488 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20490         * config/s390/s390-builtin-types.def: Add new builtin function
20491         types.
20492         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20493         New overloaded builtins.
20494         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
20495         s390_vsrd.
20496         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20497         (UNSPEC_VEC_SLDBYTE): ... this.
20498         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20499         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20500         definitions.
20501         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20502         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20503         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20505 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20507         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20508         New insn definition.
20509         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20510         * config/s390/vector.md (V_HW_HSD): ... here.
20512 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20514         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20515         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20516         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20517         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20518         New insn definitions.
20520 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20522         * config/s390/s390-builtin-types.def: Add new builtin function type.
20523         * config/s390/s390-builtins.def: Add overloaded builtin
20524         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20525         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20526         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20527         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20528         ("eltswap<mode>"): New expander.
20529         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20530         insn definitions.
20532 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20534         * config/s390/s390-builtin-types.def: Add new builtin function types.
20535         * config/s390/s390-builtins.def: Add overloaded builtin
20536         s390_vec_revb. Add low-level builtins for vlbr and vstbr
20537         instructions.
20538         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20539         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20540         ("bswap<mode>"): New expander.
20541         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20543 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20545         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20546         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20547         vector builtin version number in __VEC__.
20549 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20551         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20552         iterators.
20553         (SFSI): New mode attribute.
20554         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20555         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20556         rename to ...
20557         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20558         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20559         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20560         ("floatsi<mode>2"): Add wcefb instruction.
20562 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20564         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20565         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20566         mode iterators.
20567         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20568         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20569         support 32 bit fp-int conversions. Rename to ...
20570         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20571         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20572         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20573         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20574         ... to these.
20576 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20578         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20579         if-then-else constructs if we can use the select instruction.
20580         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20582 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20584         * config/s390/s390.md ("*popcountdi_arch13_cc")
20585         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20586         definition.
20587         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20588         Append _z196 to make it ...
20589         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20590         ("popcounthi2_z196"): ... this.
20591         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20592         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20594 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20596         * config/s390/s390.c (s390_canonicalize_comparison): Convert
20597         certain compares for arch13 in order to make use of the condition
20598         code result produced by the new instructions.
20599         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20600         nxrk, and nxgrk instruction patterns.
20601         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20602         (inv_no): Add new code iterator together with some attributes.
20603         ("*andc_split_<mode>"): Disable splitter for arch13.
20604         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20605         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20606         ("*<ANDOR:bitops_name>c<GPR:mode>")
20607         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20608         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20609         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20610         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20612 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20614         * common/config/s390/s390-common.c (processor_flags_table): New
20615         entry for arch13.
20616         * config.gcc: Support arch13 with the --with-arch= configure flag.
20617         * config/s390/driver-native.c (s390_host_detect_local_cpu):
20618         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20619         * config/s390/s390.c (s390_get_sched_attrmask)
20620         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20621         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20622         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20623         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20624         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20625         definitions.
20626         * config/s390/s390.opt: Support arch13 as processor type in
20627         command line options.
20629 2019-04-02  Martin Liska  <mliska@suse.cz>
20631         PR translation/89912
20632         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20633         Fix param description of graphite-max-arrays-per-scop.
20635 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
20637         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20638         (ASAN_CC1_SPEC): Use it in 64-bit mode.
20639         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20641 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
20643         PR rtl-optimization/85412
20644         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20645         sel_sched_region_1, not after.
20647 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
20649         PR rtl-optimization/86928
20650         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20651         compute_live if necessary.
20652         (sel_redirect_edge_and_branch): Likewise.
20654 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
20656         PR rtl-optimization/89865
20657         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20658         register if it is a part of small class.
20660 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
20662         PR rtl-optimization/87273
20663         * sel-sched-ir.c (merge_fences): Remove assert.
20665 2019-04-01  Richard Biener  <rguenther@suse.de>
20667         PR tree-optimization/46590
20668         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20669         (dom_walker::m_reachability): Add in place of...
20670         (dom_walker::m_skip_unreachable_blocks): ...this.
20671         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20672         Move complex initialization ...
20673         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
20674         lazily and initialize edge flags on each invocation.
20675         (dom_walker::bb_reachable): Use m_reachability.
20677 2019-04-01  Martin Liska  <mliska@suse.cz>
20679         PR driver/89861
20680         * opt-suggestions.c (option_proposer::build_option_suggestions):
20681         Add variant without any argument in order to provide better
20682         hints.
20684 2019-04-01  Richard Biener  <rguenther@suse.de>
20686         PR c/71598
20687         * gimple.c: Include langhooks.h.
20688         (gimple_get_alias_set): Treat enumeral types as the underlying
20689         integer type.
20691 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
20692             Eric Botcazou  <ebotcazou@adacore.com>
20694         PR rtl-optimization/89862
20695         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20696         that operates on the full registers for WORD_REGISTER_OPERATIONS
20697         architectures.
20699 2019-03-29  Jim Wilson  <jimw@sifive.com>
20701         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20702         Clear MASK_RVC and then set if C subset supported.
20704 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
20706         PR c/89872
20707         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20708         non-addressable complit into its initializer if it is volatile.
20710 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
20712         * opts-common.c (integral_argument): Set errno properly in one case.
20714 2019-03-29  Martin Liska  <mliska@suse.cz>
20716         * doc/invoke.texi: Remove -Wchkp from documentation.
20718 2019-03-29  Martin Liska  <mliska@suse.cz>
20720         * dbgcnt.c (print_limit_reach): New function.
20721         (dbg_cnt): Use it.
20723 2019-03-29  Martin Liska  <mliska@suse.cz>
20725         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20726         (dbg_cnt_process_opt): Parse first tokens aas
20727         dbg_cnt_process_single_pair is also using strtok.
20729 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
20731         PR rtl-optimization/87485
20732         * function.c (expand_function_end): Move stack_protect_epilogue
20733         before loading of return value into hard register(s).
20735 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
20737         PR middle-end/89621
20738         * tree-inline.h (struct copy_body_data): Add
20739         dont_remap_vla_if_no_change flag.
20740         * tree-inline.c (remap_type_3, remap_type_2): New functions.
20741         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20742         and remap_type_2 returns false.
20743         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20744         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20745         only from where it is copied to nested contexts.
20747 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
20749         PR target/89865
20750         * config/i386/i386.md (RMW operation with LEA peephole):
20751         Use LEAMODE mode attribute instead of SWI mode iterator for
20752         LEA pattern.
20754 2019-03-28  Uroš Bizjak  <ubizjak@gmail.com>
20756         PR target/89848
20757         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20758         Also process XEXP (src, 0) of a shift insn.
20760 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
20762         PR middle-end/89725
20763         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20764         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20766 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
20768         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20769         test.
20770         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20771         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
20772         immediately after first one with df_analyze in between, but rather
20773         process all bbs, queueing ones that need second pass in a worklist,
20774         df_analyze, process queued debug insn changes and if second pass is
20775         needed, process bbs from worklist, df_analyze, process queued debug
20776         insns again.
20778         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20779         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20780         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20782 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
20784         PR c/79022
20785         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20786         definition.
20788 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
20790         PR target/85667
20791         * config/i386/i386.c (ix86_function_value_1): Call the newly added
20792         function for 32-bit MS_ABI.
20793         (function_value_ms_32): New function.
20795 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
20797         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20798         (movdi): Call gen_movdi_symbol_save_scc.
20799         (gen_movdi_symbol_save_scc): New insn and split.
20801 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
20803         PR rtl-optimization/89313
20804         * function.c (matching_constraint_num): New static function.
20805         (match_asm_constraints_1): Use it.  Fixup white space and comment.
20806         Don't replace inputs with non-matching constraints which conflict
20807         with early clobber outputs.
20809 2019-03-27  Jeff Law  <law@redhat.com>
20811         PR rtl-optimization/87761
20812         PR rtl-optimization/89826
20813         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20814         slightly later.
20815         (pass_cprop_hardreg::execute): Call df_analyze after adding the
20816         note problem to get REG_DEAD/REG_UNUSED notes updated.
20818 2019-03-27  Richard Biener  <rguenther@suse.de>
20820         PR tree-optimization/89463
20821         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20822         queue edges to remove.
20823         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20824         dead stmts.  Delay edge removal until PHIs are removed to
20825         make debug-stmt creation not confused by seemingly degenerate
20826         PHIs.
20828 2019-03-27  Alan Modra  <amodra@gmail.com>
20830         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20831         throughout file.
20832         * config/rs6000/darwin.h: Likewise.
20833         * config/rs6000/rs6000.c: Likewise.
20835 2019-03-27  Alan Modra  <amodra@gmail.com>
20837         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20838         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
20840 2019-03-26  Andrew Waterman  <andrew@sifive.com>
20841             Jim Wilson  <jimw@sifive.com>
20843         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20844         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20845         (generic_idivdi, generic_fmul_single, generic_fmul_double)
20846         (generic_fdiv, generic_fsqrt): Add check for generic tune.
20847         (generic_alu): Add auipc to type list.
20848         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20849         (riscv_microarchitecture): Declare.
20850         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20851         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20852         field.
20853         (riscv_microarchitecture): New.
20854         (sifive_7_tune_info): New.
20855         (riscv_cpu_info_table): Add microarchitecture value for rocket and
20856         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
20857         entries.
20858         (riscv_store_data_bypass_p): New.
20859         (riscv_option_override): Set riscv_microarchitecture from
20860         cpu->microarchitecture.
20861         * config/riscv/riscv.md: Include sifive-7.md.
20862         (type): Add auipc.
20863         (tune): New.
20864         (auipc<mode>): Change type to auipc.
20865         (restore_stack_nonlocal): New.
20866         * config/riscv/sifive-7.md: New.
20867         * doc/invoke.texi (RISC-V Options): Update mtune docs.
20869 2019-03-26  Uroš Bizjak  <ubizjak@gmail.com>
20871         PR target/89827
20872         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
20873         Also process XEXP (src, 0) of a shift insn.
20875 2019-03-26  Richard Biener  <rguenther@suse.de>
20877         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
20878         (copy_debug_stmt): Likewise.
20879         (expand_call_inline): Likewise.
20880         (copy_bb): Avoid redundant lookup & set of gimple_block.
20881         * gimple-low.c (lower_gimple_return): Likewise.
20882         (lower_builtin_setjmp): Likewise.
20884 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
20886         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
20887         is constant 0, turn into static const data member initialized to false.
20888         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
20889         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
20891 2019-03-26  Jason Merrill  <jason@redhat.com>
20892             Jakub Jelinek  <jakub@redhat.com>
20894         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
20895         method.
20896         (mem_alloc_description::release_object_overhead): Fix comment typos.
20897         * hash-table.h (hash_table::~hash_table): Call
20898         release_instance_overhead only if m_entries is non-NULL, otherwise
20899         call unregister_descriptor.
20901 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
20903         PR tree-optimization/81740
20904         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20905         In case of outer loop vectorization, check for backward dependence
20906         at the inner loop if outer loop dependence is reversed.
20908 2019-03-26  Alan Modra  <amodra@gmail.com>
20910         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
20911         rs6000_vector_mem init.  Correct wI and wJ comment.
20913 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
20915         PR rtl-optimization/88347
20916         PR rtl-optimization/88423
20917         * sched-deps.c (sched_analyze_insn): Take into account that for
20918         tablejumps the barrier appears after a label and a jump_table_data.
20920 2019-03-25  Martin Sebor  <msebor@redhat.com>
20922         PR c/89812
20923         * c-common.c (check_user_alignment): Rename local.  Correct maximum
20924         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
20925         convert it to UHWI when it fits.
20927 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
20929         PR debug/86964
20930         * dwarf2out.c (premark_used_variables): New function.
20931         (prune_unused_types_walk): Do not mark not premarked external
20932         variables.
20933         (prune_unused_types): Call premark_used_variables.
20935 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
20937         PR rtl-optimization/89676
20938         * lra-constraints.c (curr_insn_transform): Do match reload for
20939         early clobbers when the match was successful only for different
20940         registers.
20942 2019-03-25  Martin Sebor  <msebor@redhat.com>
20944         * doc/extend.texi (Common Type Attributes): Document vector_size.
20945         (Common Variable Attributes): Mention size constraint.  Correct
20946         quoting and typos.
20947         (Vector Extensions): Use @dfn when defining bas type.  Clarify
20948         base type and size constraints.
20950 2019-03-25  Richard Biener  <rguenther@suse.de>
20952         PR tree-optimization/89789
20953         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
20954         changes from non-undefined back to undefined.
20956 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
20958         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
20959         heap string and a gc string, but since this variable is unknown to
20960         ggc the gc string might get reused and corrupted. Fixed by always
20961         using a heap string.
20963 2019-03-25  Richard Biener  <rguenther@suse.de>
20965         PR tree-optimization/89779
20966         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
20967         to remove IV defs, delay actual removal.
20968         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
20969         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
20970         very end, properly also reset loop control IV information.
20972 2019-03-25  Richard Biener  <rguenther@suse.de>
20974         PR tree-optimization/89802
20975         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
20976         move EH data to folded stmt.
20978 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
20980         * config/s390/s390-builtin-types.def: Remove few unused types and
20981         fix sort order for others.
20983 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
20985         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
20986         expected and found types with -mdebug during builtin matching.
20988 2019-03-25  Richard Biener  <rguenther@suse.de>
20990         PR middle-end/89790
20991         * fold-const.c (operand_equal_p): Revert last change with
20992         updated comment.
20994 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
20996         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
20997         notes for the result of the __tls_get_addr calls.
20998         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21000 2019-03-24  Jeff Law  <law@redhat.com>
21002         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21004         PR rtl-optimization/87761
21005         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21006         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
21007         as needed.
21008         (pass_cprop_hardreg::execute): Add df note problem and defer insn
21009         rescans.  Reprocess blocks as needed, calling df_analyze before
21010         reprocessing.  Always call df_analyze before fixing up debug bind
21011         insns.
21013 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
21015         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21016         big endian.
21018 2019-03-22  Andrew Pinski  <apinski@marvell.com>
21020         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21021         attrribute for uxtw.
21023 2019-03-26  Jeff Law  <law@redhat.com>
21025         PR rtl-optimization/87761
21026         * config/mips/mips-protos.h (mips_split_move): Add new argument.
21027         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21028         (mips_split_move): Accept new INSN argument.  Try to forward SRC
21029         into the next instruction.
21030         (mips_split_move_insn): Pass INSN through to mips_split_move.
21032 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
21034         PR rtl-optimization/89676
21035         * lra-constraints.c (curr_insn_transform): Do match reload for
21036         early clobbers even if the match was successful.
21038 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
21040         PR c++/87481
21041         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21043 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
21045         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21047 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
21049         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21050         <avx512>_fmsub_<mode>_mask3<round_name>,
21051         <avx512>_fnmadd_<mode>_mask3<round_name>,
21052         <avx512>_fnmsub_<mode>_mask3<round_name>,
21053         avx512f_vmfmadd_<mode>_mask3<round_name>,
21054         avx512f_vmfmsub_<mode>_mask3<round_name>,
21055         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21056         instead of register_operand and %v instead of v for match_operand 1.
21057         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21058         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
21059         <round_nimm_predicate> instead of register_operand and %v instead of v
21060         for match_operand 1.
21062         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21063         <avx512>_fmadd_<mode>_mask3<round_name>,
21064         <avx512>_fmsub_<mode>_mask<round_name>,
21065         <avx512>_fmsub_<mode>_mask3<round_name>,
21066         <avx512>_fnmadd_<mode>_mask<round_name>,
21067         <avx512>_fnmadd_<mode>_mask3<round_name>,
21068         <avx512>_fnmsub_<mode>_mask<round_name>,
21069         <avx512>_fnmsub_<mode>_mask3<round_name>,
21070         <avx512>_fmaddsub_<mode>_mask<round_name>,
21071         <avx512>_fmaddsub_<mode>_mask3<round_name>,
21072         <avx512>_fmsubadd_<mode>_mask<round_name>,
21073         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21074         <round_nimm_predicate> instead of nonimmediate_operand.
21075         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21076         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21077         Use register_operand instead of <round_nimm_predicate> for the
21078         operand that needs to match output.
21079         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21080         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21081         Likewise.  Formatting fixes.
21083         PR target/89784
21084         * config/i386/i386.c (enum ix86_builtins): Remove
21085         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21086         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21087         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21088         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21089         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21090         __builtin_ia32_vfmsubss3_mask3): New builtins.
21091         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21092         avx512f_vmfmadd_<mode>_mask3<round_name>,
21093         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21094         *avx512f_vmfmsub_<mode>_mask<round_name>,
21095         avx512f_vmfmsub_<mode>_mask3<round_name>,
21096         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21097         *avx512f_vmfnmadd_<mode>_mask<round_name>,
21098         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21099         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21100         *avx512f_vmfnmsub_<mode>_mask<round_name>,
21101         avx512f_vmfnmsub_<mode>_mask3<round_name>,
21102         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21103         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21104         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21105         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21106         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21107         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21108         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21109         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21110         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21111         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21112         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21113         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21114         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21115         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21116         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21117         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21118         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21119         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21120         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21121         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21122         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21123         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21125 2019-03-21  Martin Sebor  <msebor@redhat.com>
21127         PR tree-optimization/89350
21128         * builtins.c (compute_objsize): Also ignore offsets whose upper
21129         bound is negative.
21130         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21131         (builtin_memref::builtin_memref): Initialize new member.
21132         Allow EXPR to be null.
21133         (builtin_memref::extend_offset_range): Replace local with a member.
21134         Avoid assuming pointer offsets are unsigned.
21135         (builtin_memref::set_base_and_offset): Determine base object
21136         before computing offset range.
21137         (builtin_access::builtin_access): Handle memset.
21138         (builtin_access::generic_overlap): Replace local with a member.
21139         (builtin_access::strcat_overlap): Same.
21140         (builtin_access::overlap): Same.
21141         (maybe_diag_overlap): Same.
21142         (maybe_diag_access_bounds): Same.
21143         (wrestrict_dom_walker::check_call): Handle memset.
21144         (check_bounds_or_overlap): Same.
21146 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
21147             Jakub Jelinek  <jakub@redhat.com>
21149         PR lto/89692
21150         * tree.c (fld_type_variant, fld_incomplete_type_of,
21151         fld_process_array_type): Call fld->pset.add and don't call
21152         add_tree_to_fld_list if it returns true.
21153         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
21154         non-marked types from TYPE_NEXT_VARIANT list.
21155         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21157 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
21159         * hash-table.h (hash_table): Add Lazy template parameter defaulted
21160         to false, if true, don't alloc_entries during construction, but defer
21161         it to the first method that needs m_entries allocated.
21162         (hash_table::hash_table, hash_table::~hash_table,
21163         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21164         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21165         hash_table::clear_slot, hash_table::traverse_noresize,
21166         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21167         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21168         false.
21169         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21170         NO_INSERT instead of find_with_hash.
21171         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21172         hash_set::m_table): Add Lazy to template params of hash_table.
21173         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21174         * attribs.c (test_attribute_exclusions): Likewise.
21175         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21176         hash_set.  Add tests for hash_set with Lazy = true.
21178 2019-03-21  Richard Biener  <rguenther@suse.de>
21180         PR tree-optimization/89779
21181         * tree.c (tree_nop_conversion): Consolidate and fix defensive
21182         checks with respect to released SSA names now having error_mark_node
21183         type.
21184         * fold-const.c (operand_equal_p): Likewise.
21186 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
21188         PR target/89775
21189         * config/s390/s390.c (global_not_special_regno_p): Move to make it
21190         available to ...
21191         (s390_optimize_register_info): Use global_not_special_regno_p to
21192         check for global regs.
21194 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
21196         PR target/89752
21197         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21198         update this_alternative nor this_alternative_set.
21200 2019-03-19  Jim Wilson  <jimw@sifive.com>
21202         PR target/89411
21203         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
21204         align, size, offset.  Use them to handle a BLKmode reference.  Update
21205         comment.
21206         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21208 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21210         PR rtl-optimization/89768
21211         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21212         instead of GEN_INT.
21213         (unroll_loop_runtime_iterations): Likewise.
21215 2019-03-19  Martin Sebor  <msebor@redhat.com>
21217         PR tree-optimization/89644
21218         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21219         rather than endptr as an indicator of nul-termination.
21221         PR tree-optimization/89644
21222         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21223         arrays in determining sequence sizes in strncpy and stpncpy.
21225 2019-03-19  Martin Liska  <mliska@suse.cz>
21227         PR middle-end/89737
21228         * predict.c (combine_predictions_for_bb): Empty likely_edges and
21229         unlikely_edges if there's an edge that belongs to both these sets.
21231 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
21233         PR target/89746
21234         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21235         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21236         go via a stack temporary.
21238 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21240         PR target/89378
21241         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21242         instead of gen_rtx_SUBREG.
21243         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21245 2019-03-19  Richard Biener  <rguenther@suse.de>
21247         PR debug/88389
21248         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21250 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
21252         PR lto/87809
21253         PR lto/89335
21254         * tree.c (free_lang_data_in_decl): Do not free context of C++
21255         destrutors.
21257 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21259         PR target/89506
21260         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21261         subs for the first alternative except when operands[3] is 1.
21263         PR target/89752
21264         * gimplify.c (gimplify_asm_expr): For output argument with
21265         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21266         diagnose error.
21268 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
21270         PR rtl-optimization/89753
21271         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21272         explicit unrolling factor even more robust.
21274 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21276         PR target/89726
21277         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21278         compensation use x2 += 1 instead of x2 -= -1 and when honoring
21279         signed zeros, do another copysign after the compensation.
21281 2019-03-18  Martin Sebor  <msebor@redhat.com>
21283         PR tree-optimization/89720
21284         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21285         more conservatively, the same as anti-range.
21287 2019-03-18  Richard Biener  <rguenther@suse.de>
21289         PR middle-end/88945
21290         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21291         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21292         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
21293         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21295 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
21297         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21298         Extend queue to 1024 entries.
21299         Add "consumed" field.
21300         (gomp_print_output): Remove print_index parameter.
21301         Add final parameter.
21302         Change limit to unsigned.
21303         Use consumed field to implement circular buffer.
21304         Detect interrupted print in final pass.
21305         Flush output at the end.
21306         (run): Update gomp_print_output usage.
21307         (main): Initialize kernargs->output_data.consumed.
21309 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
21311         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21312         calculation of the minimum number of scalar iterations for
21313         fully-predicated loops.
21315 2019-03-18  Martin Jambor  <mjambor@suse.cz>
21317         PR tree-optimization/89546
21318         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21319         any propagation to its children took place.
21321 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
21323         PR target/89627
21324         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21325         parameter, and make use of it.
21326         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21328 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21330         * config/arc/arc.opt (mcode-density-frame): Get the inital value
21331         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21332         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21333         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21334         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21335         match what the ops is doing.
21336         (push_multi_fp_blink): Likewise.
21337         * config/arc/arc.c (arc_override_options): Enable enter/leave when
21338         compiling for size and elf target.
21339         (arc_save_callee_enter): Adjust note to match what enter/leave
21340         operation does.
21342 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21344         * config/arc/arc.md (tst_movb): Fix constraint.
21346 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21348         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21350 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21352         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21353         * config/arc/arc.c (arc_conditional_register_usage): Remove all
21354         reg_alloc_order references.
21355         (size_alloc_order): Define.
21356         (arc_adjust_reg_alloc_order): New function.
21357         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21358         order.
21359         (ADJUST_REG_ALLOC_ORDER): Define.
21360         (HONOR_REG_ALLOC_ORDER): Likewise.
21362 2019-03-18  Richard Biener  <rguenther@suse.de>
21364         PR target/87561
21365         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21366         loads and stores a bit more.
21368 2019-03-18  Richard Biener  <rguenther@suse.de>
21370         PR target/87561
21371         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21372         load pessimization to stores as well.
21374 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
21376         PR middle-end/86979
21377         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21378         successor, use NULL as its av set.
21380 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
21382         PR rtl-optimization/89721
21383         * lra-constraints (invariant_p): Return false if side_effects_p holds.
21385 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
21387         PR target/87532
21388         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21389         When handling vec_extract, use modular arithmetic to allow
21390         constant selectors greater than vector length.
21391         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21392         V1TImode vectors to have constant selector values greater than 0.
21393         Use modular arithmetic to compute vector index.
21394         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21395         index for in-memory vectors.  Correct code generation for
21396         in-register vectors.
21397         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21398         compute index.
21400 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
21402         PR c++/88534
21403         PR c++/88537
21404         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21405         VAR_DECL args.
21407 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
21409         PR c++/89709
21410         * tree.c (inchash::add_expr): Strip any location wrappers.
21411         * fold-const.c (operand_equal_p): Move stripping of location wrapper
21412         after hash verification.
21414         PR debug/89704
21415         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21416         SIGN_EXTEND and ZERO_EXTEND.
21418 2019-03-14  Jason Merrill  <jason@redhat.com>
21419             Jakub Jelinek  <jakub@redhat.com>
21421         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21422         than if is_empty (*slot).
21423         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21424         existing elt and for elt removal.
21425         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21426         of already removed elt.
21428 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
21430         PR target/89650
21431         * config/i386/i386.c (remove_partial_avx_dependency): Handle
21432         REG_EH_REGION note.
21434 2019-03-14  Martin Liska  <mliska@suse.cz>
21436         PR other/89712
21437         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21439 2019-03-14  Richard Biener  <rguenther@suse.de>
21441         PR target/89711
21442         * config/i386/i386.c (make_resolver_func): Properly set
21443         DECL_CONTEXT on the RESULT_DECL.
21444         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21446 2019-03-14  Richard Biener  <rguenther@suse.de>
21448         * gimple-pretty-print.c: Include cfgloop.h.
21449         (dump_gimple_phi): Adjust.
21450         (dump_gimple_bb_header): Dump loop header for GIMPLE.
21451         (pp_cfg_jump): Adjust.
21452         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21453         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21454         (lower_phi_internal_fn): Remove.
21455         (verify_gimple_call): Remove IFN_PHI special-casing.
21456         (dump_function_to_file): Dump IL state.
21457         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21458         done to deal with PHI nodes being present in non-SSA state.
21460 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
21462         PR ipa/89684
21463         * multiple_target.c (create_dispatcher_calls): Change
21464         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21465         In the node->iterate_referring loop, push *ref rather than ref, call
21466         ref->remove_reference () and always pass 0 to iterate_referring.
21468         PR rtl-optimization/89679
21469         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21470         would contain a paradoxical SUBREG.
21472 2019-03-14  Richard Biener  <rguenther@suse.de>
21474         PR tree-optimization/89710
21475         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21476         safe_dyn_cast.
21478 2019-03-14  Martin Liska  <mliska@suse.cz>
21480         * coverage.c (coverage_begin_function): Stream also
21481         end_column.
21482         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
21483         documentation about function declaration location.
21484         * gcov-dump.c (tag_function): Print whole range
21485         of function declaration.
21486         * gcov.c (struct function_info): Add end_column field.
21487         (function_info::function_info): Initialize it.
21488         (output_json_intermediate_file): Output {start,end}_column
21489         fields.
21490         (read_graph_file): Read end_column.
21492 2019-03-14  Richard Biener  <rguenther@suse.de>
21494         PR middle-end/89698
21495         * fold-const.c (operand_equal_p): For INDIRECT_REF check
21496         that the access types are similar.
21498 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
21500         PR tree-optimization/89703
21501         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21502         aren't compatible also with builtin_decl_explicit.  Check pure
21503         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21504         and BUILT_IN_STPNCPY{,_CHK}.
21506 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
21508         PR target/89523
21509         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21510         addr32 prefix to VSIB address for X32.
21511         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21512         "%M2" to opcode.
21513         (*avx512pf_gatherpf<mode>df_mask): Likewise.
21514         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21515         (*avx512pf_scatterpf<mode>df_mask): Likewise.
21516         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21517         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21518         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21519         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21520         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21521         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21522         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21523         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21524         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21525         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21526         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21527         (*avx512f_scatterdi<mode>): Likewise.
21529 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
21531         PR target/85860
21532         * lra-constraints.c (inherit_in_ebb): Update
21533         potential_reload_hard_regs along with live_hard_regs.
21535 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
21537         PR debug/89498
21538         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21539         DWARF_OFFSET_SIZE.
21540         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21542 2019-03-13  Martin Sebor  <msebor@redhat.com>
21544         PR tree-optimization/89662
21545         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21546         has a size.
21548 2019-03-13  Richard Biener  <rguenther@suse.de>
21550         PR middle-end/89677
21551         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21552         throw FP expressions at tree-affine.
21554 2019-03-14  Richard Biener  <rguenther@suse.de>
21556         * tree-pretty-print.c (dump_generic_node): For -gimple properly
21557         dump negative integer constants using _Literal (type) -num.
21559 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
21561         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21562         nonlocal_value member.
21564         PR middle-end/88588
21565         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21566         (ipa_simd_modify_function_body): Handle PHIs.
21568 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
21570         * config/s390/s390.c (s390_option_override_internal): Use more
21571         aggressive inlining parameters.
21573 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
21575         * config/s390/3906.md: New file.
21576         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21577         (LONGRUNNING_THRESHOLD): Remove.
21578         (MAX_SCHED_MIX_SCORE): Decrease.
21579         (MAX_SCHED_MIX_DISTANCE): Decrease.
21580         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21581         (struct s390_sched_state): New struct to hold scheduling state.
21582         (S390_SCHED_STATE_NORMAL): Remove.
21583         (S390_SCHED_STATE_CRACKED): Remove.
21584         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21585         (s390_get_sched_attrmask): Use new attribute.
21586         (s390_get_unit_mask): Use new units.
21587         (s390_is_fpd): New function.
21588         (s390_is_fxd): New function.
21589         (s390_is_longrunning): New function.
21590         (s390_sched_score): Use new functions.
21591         (s390_sched_reorder): Likewise.
21592         (s390_sched_variable_issue): Rework and use new functions.
21593         (s390_sched_init): Use new functions.
21594         * config/s390/s390.h (s390_tune_attr): Add z14.
21595         * config/s390/s390.md: Add z14.
21597 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
21599         * config/s390/2964.md: Update pipeline description.
21600         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21601         (LONGRUNNING_THRESHOLD): Remove.
21602         (LATENCY_FACTOR): Remove.
21603         (s390_get_unit_mask): Add unit.
21604         (s390_sched_score): Use fxd/fpd.
21605         (s390_sched_variable_issue): Use fxd/fpd.
21607 2019-03-12  Martin Liska  <mliska@suse.cz>
21609         * config/i386/i386.c: Reword an error message.
21611 2019-03-12  Martin Jambor  <mjambor@suse.cz>
21613         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21614         terminate with newline.
21616 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
21618         PR target/52726
21619         * config/s390/s390.md (tabort): Use %wd instead of
21620         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21621         letters and periods.
21622         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21623         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21624         's with %< and %>.
21626         PR middle-end/89663
21627         * builtins.c (expand_builtin_int_roundingfn,
21628         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21629         gcc_unreachable if validate_arglist fails.
21631 2019-03-12  Richard Biener  <rguenther@suse.de>
21633         PR tree-optimization/89664
21634         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21635         free the occurance tree after the early out.
21637 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
21639         PR middle-end/89655
21640         PR bootstrap/89656
21641         * vr-values.c (vr_values::update_value_range): If
21642         old_vr->varying_p (), don't update it, make new_vr also VARYING
21643         and return false.
21645 2019-03-11  Martin Liska  <mliska@suse.cz>
21647         * config/aarch64/aarch64.c (aarch64_override_options_internal):
21648         Fix double string quoting.
21650 2019-03-11  Martin Liska  <mliska@suse.cz>
21652         * collect-utils.c (collect_wait): Wrap apostrophes
21653         in gcc internal format with %'.
21654         * collect2.c (main): Likewise.
21655         (scan_prog_file): Likewise.
21656         (scan_libraries): Likewise.
21657         * config/i386/i386.c (ix86_expand_call): Likewise.
21658         (ix86_handle_interrupt_attribute): Likewise.
21659         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21660         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21661         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21662         * lto-wrapper.c (find_crtoffloadtable): Likewise.
21663         * symtab.c (symtab_node::verify_base): Likewise.
21664         * tree-cfg.c (verify_gimple_label): Likewise.
21665         * tree.c (verify_type_variant): Likewise.
21667 2019-03-11  Martin Liska  <mliska@suse.cz>
21669         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21670         in a string format message and fix GNU coding style.
21671         (expand_builtin_set_thread_pointer): Likewise.
21672         * common/config/aarch64/aarch64-common.c
21673         (aarch64_rewrite_selected_cpu): Likewise.
21674         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21675         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21676         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21677         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21678         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21679         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21680         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21681         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21682         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21683         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21684         Likewise.
21685         * common/config/riscv/riscv-common.c
21686         (riscv_subset_list::parsing_subset_version): Likewise.
21687         (riscv_subset_list::parse_std_ext): Likewise.
21688         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21689         (riscv_subset_list::parse): Likewise.
21690         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21691         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21692         (aarch64_override_options_internal): Likewise.
21693         (aarch64_validate_mcpu): Likewise.
21694         (aarch64_validate_march): Likewise.
21695         (aarch64_validate_mtune): Likewise.
21696         (aarch64_override_options): Likewise.
21697         * config/alpha/alpha.c (alpha_option_override): Likewise.
21698         * config/arc/arc.c (arc_init): Likewise.
21699         (parse_mrgf_banked_regs_option): Likewise.
21700         (arc_override_options): Likewise.
21701         (arc_expand_builtin_aligned): Likewise.
21702         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21703         (arm_expand_builtin): Likewise.
21704         * config/arm/arm.c (arm_option_check_internal): Likewise.
21705         (arm_configure_build_target): Likewise.
21706         (arm_option_override): Likewise.
21707         (arm_options_perform_arch_sanity_checks): Likewise.
21708         (arm_handle_cmse_nonsecure_entry): Likewise.
21709         (arm_handle_cmse_nonsecure_call): Likewise.
21710         (arm_tls_referenced_p): Likewise.
21711         (thumb1_expand_prologue): Likewise.
21712         * config/avr/avr.c (avr_option_override): Likewise.
21713         * config/bfin/bfin.c (bfin_option_override): Likewise.
21714         * config/c6x/c6x.c (c6x_option_override): Likewise.
21715         * config/cr16/cr16.c (cr16_override_options): Likewise.
21716         * config/cris/cris.c (cris_option_override): Likewise.
21717         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21718         * config/darwin-c.c (macosx_version_as_macro): Likewise.
21719         * config/darwin.c (darwin_override_options): Likewise.
21720         * config/frv/frv.c (frv_expand_builtin): Likewise.
21721         * config/h8300/h8300.c (h8300_option_override): Likewise.
21722         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21723         (ix86_option_override_internal): Likewise.
21724         (warn_once_call_ms2sysv_xlogues): Likewise.
21725         (ix86_expand_prologue): Likewise.
21726         (split_stack_prologue_scratch_regno): Likewise.
21727         (ix86_warn_parameter_passing_abi): Likewise.
21728         * config/ia64/ia64.c (fix_range): Likewise.
21729         * config/m68k/m68k.c (m68k_option_override): Likewise.
21730         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21731         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21732         (mips_set_compression_mode): Likewise.
21733         * config/mmix/mmix.c (mmix_option_override): Likewise.
21734         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21735         * config/msp430/msp430.c (msp430_option_override): Likewise.
21736         * config/nds32/nds32.c (nds32_option_override): Likewise.
21737         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21738         (nios2_option_override): Likewise.
21739         (nios2_expand_custom_builtin): Likewise.
21740         * config/nvptx/mkoffload.c (main): Likewise.
21741         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21742         * config/pa/pa.c (fix_range): Likewise.
21743         (pa_option_override): Likewise.
21744         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21745         (riscv_option_override): Likewise.
21746         * config/rl78/rl78.c (rl78_option_override): Likewise.
21747         * config/rs6000/aix61.h: Likewise.
21748         * config/rs6000/aix71.h: Likewise.
21749         * config/rs6000/aix72.h: Likewise.
21750         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21751         * config/rs6000/freebsd64.h: Likewise.
21752         * config/rs6000/linux64.h: Likewise.
21753         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21754         (rs6000_expand_zeroop_builtin): Likewise.
21755         (rs6000_expand_mtfsb_builtin): Likewise.
21756         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21757         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21758         (rs6000_invalid_builtin): Likewise.
21759         (rs6000_expand_split_stack_prologue): Likewise.
21760         * config/rs6000/rtems.h: Likewise.
21761         * config/rx/rx.c (valid_psw_flag): Likewise.
21762         (rx_expand_builtin): Likewise.
21763         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21764         * config/s390/s390.c (s390_expand_builtin): Likewise.
21765         (s390_function_profiler): Likewise.
21766         (s390_option_override_internal): Likewise.
21767         (s390_option_override): Likewise.
21768         * config/sh/sh.c (sh_option_override): Likewise.
21769         (sh_builtin_saveregs): Likewise.
21770         (sh_fix_range): Likewise.
21771         * config/sh/vxworks.h: Likewise.
21772         * config/sparc/sparc.c (sparc_option_override): Likewise.
21773         * config/spu/spu.c (spu_option_override): Likewise.
21774         (fix_range): Likewise.
21775         * config/visium/visium.c (visium_option_override): Likewise.
21776         (visium_handle_interrupt_attr): Likewise.
21777         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21778         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21779         (dbg_cnt_process_opt): Likewise.
21780         * dwarf2out.c (output_dwarf_version): Likewise.
21781         * except.c (expand_eh_return): Likewise.
21782         * gcc.c (defined): Likewise.
21783         (driver_handle_option): Likewise.
21784         (process_command): Likewise.
21785         (compare_files): Likewise.
21786         (driver::prepare_infiles): Likewise.
21787         (driver::do_spec_on_infiles): Likewise.
21788         (driver::maybe_run_linker): Likewise.
21789         * omp-offload.c (oacc_parse_default_dims): Likewise.
21790         * opts-global.c (handle_common_deferred_options): Likewise.
21791         * opts.c (parse_sanitizer_options): Likewise.
21792         (common_handle_option): Likewise.
21793         (enable_warning_as_error): Likewise.
21794         * passes.c (enable_disable_pass): Likewise.
21795         * plugin.c (parse_plugin_arg_opt): Likewise.
21796         (default_plugin_dir_name): Likewise.
21797         * targhooks.c (default_expand_builtin_saveregs): Likewise.
21798         (default_pch_valid_p): Likewise.
21799         * toplev.c (init_asm_output): Likewise.
21800         (process_options): Likewise.
21801         (toplev::run_self_tests): Likewise.
21802         * tree-cfg.c (verify_gimple_call): Likewise.
21803         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21804         (tree_inlinable_function_p): Likewise.
21805         * var-tracking.c (vt_find_locations): Likewise.
21807 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
21809         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21810         only on the else branch.
21812 2019-03-11  Martin Liska  <mliska@suse.cz>
21814         * gcov.c (output_intermediate_json_line): Print function
21815         name of each line.
21816         (output_json_intermediate_file): Add new argument.
21817         * doc/gcov.texi: Document the change.
21819 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
21821         PR rtl-optimization/89588
21822         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21823         explicit unrolling factor more robust.
21825 2019-03-11  Richard Biener  <rguenther@suse.de>
21827         PR tree-optimization/89649
21828         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21829         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21830         on the prolog and epilog loops.
21831         (vect_loop_versioning): Return copy of loop.
21832         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21833         on the non-vectorized version of the loop.
21835 2019-03-10  Uroš Bizjak  <ubizjak@gmail.com>
21837         PR target/68924
21838         * config/i386/sse.md (*vec_extractv2di_0_sse):
21839         Add (=r,x) alternative and corresponding splitter.
21841 2019-03-10  Martin Jambor  <mjambor@suse.cz>
21843         PR tree-optimization/85762
21844         PR tree-optimization/87008
21845         PR tree-optimization/85459
21846         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21847         it points to if there is a type changing MEM_REF.  Adjust all callers.
21848         (build_accesses_from_assign): Disable total scalarization if
21849         contains_vce_or_bfcref_p returns true through the new parameter, for
21850         both rhs and lhs.
21852 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
21854         PR c/88568
21855         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21856         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21858         PR target/79645
21859         * common.opt (fdiagnostics-show-labels,
21860         fdiagnostics-show-line-numbers, fdiagnostics-format=,
21861         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
21862         gas-locview-support, ginline-points, ginternal-reset-location-views):
21863         Terminate description text with a dot.
21864         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
21865         * config/mcore/mcore.opt (m210, m340): Likewise.
21866         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
21867         mnops=): Start description text with a capital letter.
21868         * config/arc/arc.opt (msize-level=): Likewise.
21869         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
21870         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
21871         mnewlib): Likewise.
21872         * config/ft32/ft32.opt (msim): Likewise.
21873         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
21874         (mnodiv, mnopm): Terminate description text with a dot.
21875         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
21876         a colon.
21877         * config/i386/i386.opt (prefer_vector_width, instrument_return):
21878         Likewise.
21879         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
21880         text.
21882         PR rtl-optimization/89634
21883         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
21884         are modified in BB_END (e->src) instruction.
21886 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
21888         PR target/79926
21889         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
21890         messages more amenable to translation, and improve wording.
21892 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
21894         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
21895         ud- and du-chains between phases.
21897 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
21899         PR debug/89631
21900         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
21901         instead of POLY_INT_CST.
21903 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21905         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
21906         requirement.
21908 2019-03-08  Uroš Bizjak  <ubizjak@gmail.com>
21910         PR target/68924
21911         PR target/78782
21912         PR target/87558
21913         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
21914         (_mm_storeu_si64): Ditto.
21916 2019-03-08  Martin Liska  <mliska@suse.cz>
21918         PR target/86952
21919         * config/i386/i386.c (ix86_option_override_internal): Disable
21920         jump tables when retpolines are used.
21922 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
21924         PR go/63560
21925         * ipa-split.c (execute_split_functions): Do not split
21926         'noinline' or 'section' function.
21928 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
21930         PR target/79846
21931         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
21932         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
21933         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
21935         PR ipa/80000
21936         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21937         from diagnostics.  Formatting fixes.
21939         PR target/85665
21940         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
21941         warn_odr diagnostics.
21943         PR other/80058
21944         * lra-constraints.c (process_alt_operands): Avoid one space before
21945         " at the end of line and another after " on another line in a string
21946         literal.
21947         * attribs.c (handle_dll_attribute): Likewise.
21948         * config/avr/avr-devices.c (avr_texinfo): Likewise.
21950         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
21951         warning_at or inform messages in G_() if there is no ?:.
21953         PR tree-optimization/89550
21954         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
21955         returned true.  Formatting fixes.
21956         (expand_builtin_strnlen): Formatting fixes.
21957         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
21958         if warning_at returned true.
21959         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
21961 2019-03-08  Richard Biener  <rguenther@suse.de>
21963         PR middle-end/89578
21964         * cfgloop.h (struct loop): Add owned_clique field.
21965         * cfgloopmanip.c (copy_loop_info): Copy it.
21966         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
21967         cliques.
21968         * tree-inline.c (copy_loops): Remap owned_clique.
21969         * lto-streamer-in.c (input_cfg): Stream owned_clique.
21970         * lto-streamer-out.c (output_cfg): Likewise.
21972 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
21974         PR target/80190
21975         * config/darwin.c: Include intl.h.
21976         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
21977         composing the message out of two separate parts.
21979 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
21981         PR target/80003
21982         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
21983         doesn't start with a capital letter and doesn't end with a dot.
21984         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
21985         with a capital letter.
21986         (ix86_mangle_function_version_assembler_name): Likewise.
21987         (ix86_generate_version_dispatcher_body): Likewise.
21988         (fold_builtin_cpu): Likewise.
21989         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
21990         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
21991         translators, wrap full type name in %qs.
21993         PR translation/79999
21994         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
21995         depend clause with source (or sink) modifier.
21996         * omp-expand.c (expand_omp_ordered_sink): Likewise.
21998         PR target/89602
21999         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22000         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22001         (avx512f_load<mode>_mask): New define_expand.
22002         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22003         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22004         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22005         __builtin_ia32_movess_mask): New builtins.
22006         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22007         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22008         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22009         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22011 2019-03-07  Martin Jambor  <mjambor@suse.cz>
22013         PR lto/87525
22014         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22015         for extern inline functions.
22017 2019-03-07  Martin Jambor  <mjambor@suse.cz>
22019         PR ipa/88235
22020         * cgraph.h (cgraph_node): New inline method former_thunk_p.
22021         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22022         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22023         have multiple callees.  At the end check if declarations match as
22024         opposed to cgraph_nodes.
22026 2019-03-07  Martin Liska  <mliska@suse.cz>
22028         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22029         which is equivalent to searching for this in clones chain.
22030         * symtab.c (symtab_node::verify_base): Similarly compare ASM
22031         names with a neighbour and special case first node in a chain.
22033 2019-01-25  Jason Merrill  <jason@redhat.com>
22035         PR c++/80916 - spurious "static but not defined" warning.
22036         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22037         for an internal symbol with DECL_EXTERNAL.
22039 2019-04-07  Richard Biener  <rguenther@suse.de>
22041         PR middle-end/89618
22042         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22043         * tree-inline.c (copy_loops): Simplify.
22045 2019-03-07  Martin Liska  <mliska@suse.cz>
22047         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22049 2019-03-07  Richard Biener  <rguenther@suse.de>
22051         PR tree-optimization/89595
22052         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22053         stmt iterator as reference, take boolean output parameter to
22054         indicate whether the stmt was removed and thus the iterator
22055         already advanced.
22056         (dom_opt_dom_walker::before_dom_children): Re-iterate over
22057         stmts created by folding.
22059 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
22061         PR c++/89585
22062         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22063         at toplevel.
22065 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
22067         PR rtl-optimization/88845
22068         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22069         LRA.
22070         * lra.c (remove_scratches_1): New function.
22071         (remove_scratches): Use it.
22072         (lra_emit_move): Likewise.
22074 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
22076         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22077         unaligned_access variable.
22078         * config/arc/arc.c (arc_override_options): Set unaligned access
22079         default on for HS CPUs.
22080         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22082 2019-03-06  Martin Liska  <mliska@suse.cz>
22084         PR gcov-profile/89577
22085         * doc/gcov.texi: Prefer to use --coverage.
22086         * doc/sourcebuild.texi: Likewise.
22088 2019-03-02  Jason Merrill  <jason@redhat.com>
22090         PR c++/86485 - -Wmaybe-unused with empty class ?:
22091         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22093 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
22095         PR target/89587
22096         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22097         if_multiarch.
22099         PR middle-end/89590
22100         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22101         exactly one argument.
22103 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
22104             Richard Sandiford  <richard.sandiford@arm.com>
22106         PR tree-optimization/89570
22107         * match.pd (vec_cond into cond_op simplification): Don't use
22108         get_conditional_internal_fn, use as_internal_fn (cond_op).
22110 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
22112         PR target/89222
22113         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22114         to decide when to split off a non-zero offset from a symbol.
22115         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22116         in function symbols.
22118 2019-03-05  Richard Biener  <rguenther@suse.de>
22120         PR tree-optimization/89594
22121         * tree-if-conv.c (pass_if_conversion::execute): Handle
22122         case where .LOOP_VECTORIZED_FUNCTION was removed.
22124 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
22126         PR bootstrap/89560
22127         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22128         instead alloca it only when needed with the needed size.
22130         PR tree-optimization/89570
22131         * match.pd (vec_cond into cond_op simplification): Guard with
22132         vectorized_internal_fn_supported_p test and #if GIMPLE.
22134         PR tree-optimization/89566
22135         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22136         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22137         Punt if get_user_idx_format succeeds, but idx_format argument is
22138         not provided or doesn't have pointer type, or if idx_args is above
22139         number of provided arguments.
22141 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
22143         PR tree-optimization/89437
22144         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22146 2019-03-04  Richard Biener  <rguenther@suse.de>
22148         PR middle-end/89572
22149         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22150         safe_dyn_cast.
22152 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
22154         PR tree-optimization/89487
22155         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22156         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22157         (distribute_loop): Don't do runtime alias check if there is non-
22158         addressable data reference.
22159         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22160         is a register variable.
22162 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
22164         PR target/89506
22165         * config/arm/arm.md (cmpsi2_addneg): Use
22166         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22167         If operands[2] is 0 or INT_MIN, force use of subs.
22168         (*compare_scc splitter): Use gen_int_mode.
22169         (*negscc): Likewise.
22170         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22172 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
22173             Monk Chiang  <sh.chiang04@gmail.com>
22175         * common/config/riscv/riscv-common.c: Include sstream.
22176         (riscv_subset_list::to_string): New.
22177         (riscv_arch_str): Likewise.
22178         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22179         * config.in: Regen.
22180         * config/riscv/riscv-protos.h (riscv_arch_str): New.
22181         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22182         (riscv_emit_attribute): New.
22183         (riscv_file_start): Emit attribute if needed.
22184         (riscv_option_override): Init riscv_emit_attribute_p.
22185         * config/riscv/riscv.opt (mriscv-attribute): New option.
22186         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22187         * configure: Regen.
22188         * doc/install.texi: Document --with-riscv-attribute.
22189         * doc/invoke.texi: Document -mriscv-attribute.
22191         * common/config/riscv/riscv-common.c:
22192         Include config/riscv/riscv-protos.h.
22193         (INCLUDE_STRING): Defined.
22194         (RISCV_DONT_CARE_VERSION): Defined.
22195         (riscv_subset_t): Declare.
22196         (riscv_subset_t::riscv_subset_t): New.
22197         (riscv_subset_list): Declare.
22198         (riscv_subset_list::riscv_subset_list): New.
22199         (riscv_subset_list::~riscv_subset_list): Likewise.
22200         (riscv_subset_list::parsing_subset_version): Likewise.
22201         (riscv_subset_list::parse_std_ext): Likewise.
22202         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22203         (riscv_subset_list::add): Likewise.
22204         (riscv_subset_list::lookup): Likewise.
22205         (riscv_subset_list::xlen): Likewise.
22206         (riscv_subset_list::parse): Likewise.
22207         (riscv_supported_std_ext): Likewise.
22208         (current_subset_list): Likewise.
22209         (riscv_parse_arch_string): Using riscv_subset_list::parse to
22210         parse.
22212 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
22214         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22215         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22216         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22218 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
22220         PR rtl-optimization/85899
22221         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22222         fallthru edges leading to the exit block.
22224 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
22226         PR target/89517
22227         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22228         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22230 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
22232         PR tree-optimization/89535
22233         * tree-vect-stmts.c (vectorizable_call): Record the vector types
22234         for each operand.  Calculate the fallback choice for mask operands
22235         and pass it to vect_get_vec_def_for_operand.
22237 2019-03-01  Richard Biener  <rguenther@suse.de>
22239         PR middle-end/89541
22240         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22241         get virtual operands.
22242         (get_expr_operands): Handle CONST_DECL like other decls.
22244 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
22246         PR middle-end/89503
22247         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22248         on DECL_P and EXPR_P.
22250 2019-03-01  Richard Biener  <rguenther@suse.de>
22252         PR middle-end/89497
22253         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22254         argument, defaulted to zero.
22255         * passes.c (execute_function_todo): Pass down SSA update flags
22256         to cleanup_tree_cfg.
22257         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22258         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22259         form if requested.
22260         (cleanup_tree_cfg): Get and pass down SSA update flags.
22262 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
22264         PR bootstrap/89539
22265         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22266         early_lto_debug argument.
22268 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
22270         PR tree-optimization/89536
22271         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22272         only whether bit #0 of the value is 0 instead of the entire value.
22274 2019-02-28  Marek Polacek  <polacek@redhat.com>
22276         PR c++/87068 - missing diagnostic with fallthrough statement.
22277         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22278         at the end of a seq, save its location to walk_stmt_info.
22279         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22280         a switch.
22282 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
22284         PR lto/88585
22285         * tree.c (find_atomic_core_type): Move ahead in file.
22286         (check_base_type): Correctly compare alignments of atomic types.
22288 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
22290         PR target/89455
22291         * config/i386/i386.c (get_builtin_code_for_version): Identify
22292         Westmere from PCLMUL, instead of AES.
22294 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
22296         PR target/89434
22297         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22298         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22299         -UINTVAL (...).
22301 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
22303         PR target/88530
22304         * config/aarch64/aarch64-option-extensions.def: Document it.
22305         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22306         if empty hwcaps.
22308 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
22310         PR c/89520
22311         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22312         builtins if they don't have a single scalar floating point argument.
22313         Formatting fixes.
22315 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22317         PR rtl-optimization/89490
22318         * varasm.c (get_block_for_section): Bail out for mergeable sections.
22319         (default_use_anchors_for_symbol_p, output_object_block): Assert the
22320         block section is not mergeable.
22322 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
22324         PR target/70341
22325         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
22326         old define_insn to ...
22327         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
22328         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22329         Rename old define_insn to ...
22330         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
22331         (thumb2_casesi_internal_pic): New define_expand.  Rename old
22332         define_insn to ...
22333         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
22334         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22335         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22337 2019-02-27  Richard Biener  <rguenther@suse.de>
22339         PR debug/88878
22340         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22342 2019-02-27  Richard Biener  <rguenther@suse.de>
22344         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22345         building.
22347 2019-02-27  Richard Biener  <rguenther@suse.de>
22349         PR debug/88878
22350         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22351         parameter, prefix section name with .gnu.debuglto_ if true.
22352         (dwarf2out_finish): Pass false to output_comdat_type_unit.
22353         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22355 2019-02-27  Richard Biener  <rguenther@suse.de>
22357         PR debug/89514
22358         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22359         rather than on use_debug_types, doing what output_die does.
22360         (value_format): Likewise.
22362 2019-02-27  Martin Jambor  <mjambor@suse.cz>
22363             Martin Sebor  <msebor@redhat.com>
22365         * doc/invoke.texi (Warning Options): Reword description of
22366         -Wno-absolute-value.
22368 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
22370         PR tree-optimization/89280
22371         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22372         builtin_setjmp_setup_bb): New functions.
22373         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22374         When visiting __builtin_setjmp_setup block, queue in special
22375         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22376         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
22377         from visited after the loop if they don't have any visited successor
22378         blocks.
22380 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
22382         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22383         New function.
22384         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22386 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
22388         PR c++/89507
22389         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22390         with types other than sizetype/ssizetype.
22392 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
22394         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22395         (enum sparc_processor_type): ...this.
22396         (enum sparc_code_model_type): New enumeration type.
22397         (enum sparc_memory_model_type): Tweak comments.
22398         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22399         (mtune): Likewise.
22400         (mcmodel): Use sparc_code_model enumeration and variable.
22401         (sparc_code_model): New enumeration.
22402         (mdebug): Add Undocumented marker.
22403         * config/sparc/sparc.h (enum cmodel): Delete.
22404         (sparc_cmodel): Likewise.
22405         (TARGET_CM_MEDLOW): Adjust to above renaming.
22406         (TARGET_CM_MEDMID): Likewise.
22407         (TARGET_CM_MEDANY): Likewise.
22408         (TARGET_CM_EMBMEDANY): Likewise.
22409         * config/sparc/sparc.c (sparc_cmodel): Delete.
22410         (sparc_option_override): Remove string/value mapping support for the
22411         code model.  Move code and memory model support to after the handling
22412         of target flags.  Do private machine setup last.
22413         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22414         (sparc_legitimize_reload_address): Likewise.
22415         (sparc_output_mi_thunk): Likewise.
22416         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22418 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
22420         PR tree-optimization/89500
22421         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22422         (handle_builtin_strlen): Remove noncst_bound variable.  Always
22423         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
22424         cst if the first cst bytes starting at x are known to be non-zero,
22425         even if the string is not zero terminated.  Don't try to modify
22426         *si for strnlen.  Update strlen_to_stridx only for strlen or if
22427         we can prove strnlen returns the same value as strlen would.
22429 2019-02-26  Martin Liska  <mliska@suse.cz>
22431         * alloc-pool.h (struct pool_usage): Remove extra
22432         print_dash_line.
22433         * bitmap.h (struct bitmap_usage): Likewise.
22434         * ggc-common.c (struct ggc_usage): Likewise.
22435         * mem-stats.h (struct mem_usage): Likewise.
22436         (mem_alloc_description::dump): Print dash lines
22437         here and repeat header at the end of a table report.
22438         It's then more readable.
22439         * tree-phinodes.c (phinodes_print_statistics): Make
22440         horizontal alignment.
22441         * tree-ssanames.c (ssanames_print_statistics): Likewise.
22442         * vec.c (struct vec_usage): Remove extra print_dash_line.
22443         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22445 2019-02-26  Uroš Bizjak  <ubizjak@gmail.com>
22447         * doc/extend.texi (__builtin_object_size):
22448         Use @pxref instead of @xref inside parenthesis.
22449         (__builtin_has_attribute): Add missing comma after @xref.
22450         (__builtin_object_size): Ditto.
22451         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22453 2019-02-26  Jeff Law  <law@redhat.com>
22455         PR rtl-optimization/87761
22456         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22457         detect obviously dead insns and delete them.
22459 2019-02-26  Richard Biener  <rguenther@suse.de>
22461         PR tree-optimization/89505
22462         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22463         to handle restrict pointed-to vars with multiple subvars
22464         correctly.
22466 2019-02-26  Richard Biener  <rguenther@suse.de>
22468         PR tree-optimization/89489
22469         * tree-parloops.c (create_loop_fn): Copy over last_clique.
22471 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
22473         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22474         and move around comment.
22475         <BIT_AND_EXPR>: Likewise.
22476         <BIT_NOT_EXPR>: Add specific handling for boolean types.
22478 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
22480         PR target/89474
22481         * config/i386/i386.c (remove_partial_avx_dependency): Call
22482         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22483         after changing possibly many instructions to use that pseudo.  Fix up
22484         insertion of v4sf_const0 setter at the start of bb.
22486 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
22488         PR c/80409
22489         * doc/extend.texi (Variadic Pointer Args): New section.
22491 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
22492             Martin Sebor  <msebor@gmail.com>
22494         * common.opt (Wattribute-alias): Likewise.
22495         * doc/invoke.texi (Option Summary): List general form of
22496         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
22497         (-Wmissing-attributes): Invert entry, rewrite and correct default.
22498         Add cross-references.
22499         (-Wattribute-alias): Rewrite and correct default.  Mention
22500         considered attributes (same as for -Wmissing-attributes).
22502 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
22504         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22505         (_mm_cvtpd_ps): Likewise.
22506         (_mm_cvttpd_epi32): Likewise.
22508         PR target/89338
22509         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22510         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22512         PR target/89339
22513         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22515 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
22517         PR target/88530
22518         * common/config/aarch64/aarch64-common.c
22519         (struct aarch64_option_extension): Add is_synthetic.
22520         (all_extensions): Use it.
22521         (TARGET_OPTION_INIT_STRUCT): Define hook.
22522         (struct gcc_targetm_common): Moved to end.
22523         (all_extensions_by_on): New.
22524         (opt_ext_cmp, typedef opt_ext): New.
22525         (aarch64_option_init_struct): New.
22526         (aarch64_contains_opt): New.
22527         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22528         * config/aarch64/aarch64-option-extensions.def
22529         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22530         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22531         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22532         Set is_synthetic to false.
22533         (crypto): Set is_synthetic to true.
22534         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22535         SYNTHETIC.
22537 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
22539         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22540         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22541         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22542         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22543         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22544         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22545         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22546         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22547         Rename ...
22548         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22549         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22550         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22551         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22552         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22553         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22554         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22555         vfmlsl_laneq_high_f16): ... To this.
22556         * config/arm/neon.md: Update comments.
22558 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
22560         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22561         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22562         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22563         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22564         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22565         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22566         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22567         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22568         Rename ...
22569         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22570         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22571         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22572         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22573         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22574         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22575         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22576         vfmlslq_laneq_high_f16): ... To this.
22578 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
22580         PR rtl-optimization/86096
22581         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22582         comparing mw_order values.
22584 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
22586         PR target/89434
22587         * config/arm/arm.md (*subsi3_carryin_const): Use
22588         arm_neg_immediate_operand predicate instead of
22589         arm_not_immediate_operand, "L" constraint instead of "K" and
22590         print it using %n2 instead of %B2.
22591         (*subsi3_carryin_const0): New define_insn.
22592         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22593         instead of arm_not_operand and "I" constraint instead of "K" and
22594         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
22595         another match_operand and in the condition check that it is negation
22596         of operands[2].
22597         (*subsi3_carryin_compare_const0): New define_ins.
22598         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22599         *subsi3_carryin_const.
22600         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22601         split into *subsi3_carryin_compare_const0 if the highpart is zero.
22603         PR target/89438
22604         * config/arm.vfp.md (*negdf2_vfp): Use
22605         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22606         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22608 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
22610         PR rtl-optimization/89445
22611         * simplify-rtx.c (simplify_ternary_operation): Don't use
22612         simplify_merge_mask on operands that may trap.
22613         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22614         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
22615         second operand is CONST_VECTOR, check if any element could be zero.
22616         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22617         their operands can trap.
22619 2019-02-23  Martin Sebor  <msebor@redhat.com>
22621         * gimple-ssa-sprintf.c (target_strtol): Rename...
22622         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
22623         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
22624         check for range error.
22626 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
22628         PR driver/69471
22629         * opts-common.c (prune_options): Also prune joined switches
22630         with Negative and RejectNegative.
22631         * config/i386/i386.opt (march=): Add Negative(march=).
22632         (mtune=): Add Negative(mtune=).
22633         * doc/options.texi: Document Negative used together with Joined
22634         and RejectNegative.
22636 2019-02-22  Martin Sebor  <msebor@redhat.com>
22638         * doc/extend.texi (Other Builtins): Add
22639         __builtin_is_constant_evaluated.
22641 2019-02-22  Richard Biener  <rguenther@suse.de>
22643         PR tree-optimization/87609
22644         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22646 2019-02-22  Jeff Law  <law@redhat.com>
22648         PR rtl-optimization/87761
22649         * config/mips/mips.md: Add new combiner pattern to recognize
22650         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22652 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
22654         PR target/89324
22655         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22656         destination register in peepholes generating patterns for ADDS/SUBS.
22657         (add<mode>3_compare0,
22658         *addsi3_compare0_uxtw, add<mode>3_compareC,
22659         add<mode>3_compareV_imm, add<mode>3_compareV,
22660         *adds_<optab><ALLX:mode>_<GPI:mode>,
22661         *subs_<optab><ALLX:mode>_<GPI:mode>,
22662         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22663         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22664         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22665         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22666         sub<mode>3_compare1): Allow stack pointer for source register.
22667         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22669 2019-02-22  Martin Sebor  <msebor@redhat.com>
22671         PR tree-optimization/88993
22672         PR tree-optimization/88853
22673         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22674         New helper.
22675         (sprintf_dom_walker::call_info::is_string_func): New helper.
22676         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22677         for formatted string functions.
22678         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22680 2019-02-22  Martin Sebor  <msebor@redhat.com>
22682         PR c/89425
22683         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22684         unreachable subexpressions.
22686 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
22687             Hongtao Liu  <hongtao.liu@intel.com>
22688             Sunil K Pandey  <sunil.k.pandey@intel.com>
22690         PR target/87007
22691         * config/i386/i386-passes.def: Add
22692         pass_remove_partial_avx_dependency.
22693         * config/i386/i386-protos.h
22694         (make_pass_remove_partial_avx_dependency): New.
22695         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22696         New function.
22697         (pass_data_remove_partial_avx_dependency): New.
22698         (pass_remove_partial_avx_dependency): Likewise.
22699         (make_pass_remove_partial_avx_dependency): Likewise.
22700         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22701         (*extendsfdf2): Add avx_partial_xmm_update.
22702         (truncdfsf2): Likewise.
22703         (*float<SWI48:mode><MODEF:mode>2): Likewise.
22704         (SF/DF conversion splitters): Disabled for TARGET_AVX.
22706 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
22708         PR middle-end/85598
22709         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22710         analysis for pass.
22712 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
22714         PR target/89444
22715         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22716         (PTA_SKYLAKE): Add PTA_AES.
22717         (PTA_GOLDMONT): Likewise.
22719 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
22721         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22722         instruction if enabled.
22723         (aarch64_override_options): Remove reference to return address key.
22725 2019-02-22  Richard Biener  <rguenther@suse.de>
22727         PR tree-optimization/89440
22728         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22729         not necessary assert.
22731 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
22733         PR fortran/72741
22734         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22735         (oacc_replace_fn_attrib_attr): ... this new function.
22736         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22737         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22739 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22741         * config/arm/arm-cpus.in (ares): Rename to...
22742         (neoverse-n1): ... This.  Add ares as alias.
22743         * config/arm/arm-tables.opt: Regenerate.
22744         * config/arm/arm-tune.md: Likewise.
22745         * doc/invoke.txt (ARM Options): Document neoverse-n1.
22747 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22749         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22750         * config/aarch64/aarch64-tune.md: Regenerate.
22751         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22753 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22755         * config/aarch64/aarch64.c (ares_tunings): Rename to...
22756         (neoversen1_tunings): ... This.
22757         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22758         (neoverse-n1): New CPU.
22759         * config/aarch64/aarch64-tune.md: Regenerate.
22760         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22762 2019-02-22  Richard Biener  <rguenther@suse.de>
22764         PR middle-end/87609
22765         * cfghooks.h (dependence_hash): New typedef.
22766         (struct copy_bb_data): New type.
22767         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22768         (duplicate_block): Likewise.
22769         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22770         (copy_bbs): Create and pass down copy_bb_data.
22771         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22772         (rtl_duplicate_bb): Likewise.
22773         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22774         remap dependence info.
22776 2019-02-22  Richard Biener  <rguenther@suse.de>
22778         PR tree-optimization/87609
22779         * tree-core.h (tree_base): Document special clique values.
22780         * tree-inline.c (remap_dependence_clique): Do not use the
22781         special clique value of one.
22782         (maybe_set_dependence_info): Use clique one.
22783         (clear_dependence_clique): New callback.
22784         (compute_dependence_clique): Clear clique one from all refs
22785         before assigning it (again).
22787 2019-02-21  Martin Sebor  <msebor@redhat.com>
22789         * doc/extend.texi (__clear_cache): Correct signature.
22791 2019-02-21  Ian Lance Taylor  <iant@golang.org>
22793         PR go/89170
22794         * varasm.c (decode_addr_const): Call lookup_constant_def rather
22795         than output_constant_def.
22796         (add_constant_to_table): New static function.
22797         (output_constant_def): Call add_constant_to_table.
22798         (tree_output_constant_def): Likewise.
22800 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
22802         PR c++/89285
22803         * builtins.c (fold_builtin_arith_overflow): If first two args are
22804         INTEGER_CSTs, set intres and ovfres to constants rather than calls
22805         to ifn.
22807 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
22809         PR target/87412
22810         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22811         error for -mindirect-branch/-mfunction-return with incompatible
22812         -fcf-protection.
22814 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
22816         PR bootstrap/88714
22817         * constraints.md (q): Remove.
22818         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22819         instead of q.
22821 2019-02-21  Martin Jambor  <mjambor@suse.cz>
22823         PR hsa/89302
22824         * omp-general.c (omp_extract_for_data): Removed a duplicate call
22825         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22826         (omp_adjust_for_condition): ...here.  Added necessary parameters.
22827         * omp-general.h (omp_adjust_for_condition): Updated declaration.
22828         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22829         proper values to new parameters of omp_adjust_for_condition.
22831 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
22833         PR middle-end/89412
22834         * expr.c (expand_assignment): If result is a MEM, use change_address
22835         instead of simplify_gen_subreg.
22837 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
22838             David Malcolm  <dmalcolm@redhat.com>
22840         PR middle-end/89091
22841         * fold-const.c (decode_field_reference): Return NULL_TREE if
22842         lang_hooks.types.type_for_size returns NULL.  Check it before
22843         overwriting *exp_.  Use return NULL_TREE instead of return 0.
22845 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
22847         PR middle-end/88074
22848         PR middle-end/89415
22849         * toplev.c (do_compile): Double the emin/emax exponents to workaround
22850         buggy mpc_norm.
22852 2019-02-20  Uroš Bizjak  <ubizjak@gmail.com>
22854         PR target/89397
22855         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22856         TARGET_SSE in addition to TARGET_SSE_MATH.
22858         (ix86_excess_precision): Ditto.
22859         (ix86_float_exceptions_rounding_supported_p): Ditto.
22860         (use_rsqrt_p): Ditto.
22861         * config/i386/sse.md (rsqrt<mode>2): Ditto.
22863 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
22865         PR c/89410
22866         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
22867         linenum_arith_t when determining if two adjacent line spans are
22868         close enough to merge.
22869         (diagnostic_show_locus): Use linenum_arith_t when iterating over
22870         lines within each line_span.
22872 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22874         PR target/86487
22875         * lra-constraints.c(uses_hard_regs_p): Fix handling of
22876         paradoxical SUBREGS.
22878 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
22880         PR target/88100
22881         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
22882         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
22883         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
22884         range checking it.
22886 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
22888         * config/gcn/gcn.c (print_operand): Fix typo.
22890 2019-02-19  Richard Biener  <rguenther@suse.de>
22892         PR middle-end/88074
22893         * toplev.c (do_compile): Initialize mpfr's exponent range
22894         based on available float modes.
22896 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
22898         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
22899         as long as the epilogue isn't completed.
22901 2019-02-18  Martin Sebor  <msebor@redhat.com>
22903         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
22904         __has_cpp_attribute, and __has_include.
22906 2019-02-18  Martin Sebor  <msebor@redhat.com>
22908         * doc/invoke.texi (-Wreturn-type): Correct and expand.
22910 2019-02-18  Martin Sebor  <msebor@redhat.com>
22912         PR middle-end/89294
22913         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
22914         expression.
22915         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
22917 2019-02-18  Richard Biener  <rguenther@suse.de>
22919         PR tree-optimization/89296
22920         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
22921         of no-warning flag to cases that might emit the bogus warning.
22923 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
22925         PR bootstrap/88714
22926         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
22927         "q" constraint.
22928         * config/arm/vfp.md (*movdi_vfp): Likewise.
22929         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
22930         "q" constraint for operands[0].
22932         PR target/89369
22933         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
22934         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
22935         pattern in a temporary buffer.
22936         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
22937         than 64-operands[2].
22939         PR target/89361
22940         * config/s390/s390.c (s390_indirect_branch_attrvalue,
22941         s390_indirect_branch_settings): Define unconditionally.
22942         (s390_set_current_function): Likewise, but guard the whole body except
22943         the s390_indirect_branch_settings call with
22944         #if S390_USE_TARGET_ATTRIBUTE.
22945         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
22947         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
22948         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
22949         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
22950         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
22951         HOST_WIDE_INT_1U instead of 1ULL.
22952         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
22953         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
22954         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
22955         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
22956         instead of 1UL.
22957         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
22958         instead of 1ul.
22960 2019-02-18  Martin Jambor  <mjambor@suse.cz>
22962         PR tree-optimization/89209
22963         * tree-sra.c (create_access_replacement): New optional parameter
22964         reg_tree.  Use it as a type if non-NULL and access type is not of
22965         a register type.
22966         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
22967         to create_access_replacement.
22968         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
22969         Check lacc is non-NULL before attempting to re-create it on the RHS.
22971 2019-02-18  Martin Liska  <mliska@suse.cz>
22973         PR ipa/89306
22974         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
22975         by default.
22976         (symbol_table::free_edge): Recycle m_summary_id.
22977         * cgraph.h (get_summary_id): New.
22978         (symbol_table::release_symbol): Set m_summary_id to -1
22979         by default.
22980         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
22981         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
22982         function_summary to fast_function_summary.
22983         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
22984         * ipa-pure-const.c (class funct_state_summary_t):
22985         Switch from function_summary to fast_function_summary.
22986         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
22987         (class ipa_ref_opt_summary_t): Switch from function_summary
22988         to fast_function_summary.
22989         * symbol-summary.h (class function_summary_base): New class
22990         that is created from base of former function_summary.
22991         (function_summary_base::unregister_hooks): New.
22992         (class function_summary): Inherit from function_summary_base.
22993         (class call_summary_base): New class
22994         that is created from base of former call_summary.
22995         (class call_summary): Inherit from call_summary_base.
22996         (struct is_same): New.
22997         (class fast_function_summary): New summary class.
22998         (class fast_call_summary): New summary class.
22999         * vec.h (vec_safe_grow_cleared): New function.
23001 2019-02-18  Martin Liska  <mliska@suse.cz>
23003         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23004         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23005         * doc/tm.texi: Document new target hook.
23006         * doc/tm.texi.in: Likewise.
23007         * target.def: Add new target macro.
23008         * gcc.c (find_fortran_preinclude_file): Do not search multilib
23009         suffixes.
23011 2019-02-17  Alan Modra  <amodra@gmail.com>
23013         PR target/89271
23014         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23015         output reg on add insn.
23016         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
23018 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
23020         PR target/89372
23021         * config/i386/sse.md (ssedoublemode): Remove V4HI.
23022         (PMULHRSW): Likewise.
23023         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23024         TARGET_AVX2.
23025         (ssse3_pmulhrswv4hi3): New expander.
23027 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
23029         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23030         MMX.  Add isa attribute.
23032 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
23034         PR rtl-optimization/66152
23035         * builtins.h (c_readstr): Declare.
23036         * builtins.c (c_readstr): Remove forward declaration.  Add
23037         null_terminated_p argument, if false, read all bytes from the
23038         string instead of stopping after '\0'.
23039         * expr.c (string_cst_read_str): New function.
23040         (store_expr): Use string_cst_read_str instead of
23041         builtin_strncpy_read_str.  Try to store by pieces the whole
23042         exp_len first, and only if that fails, split it up into
23043         store by pieces followed by clear_storage.  Formatting fix.
23045         * config/i386/i386.md (*movqi_internal): Remove static from
23046         buf variable.  Use output_asm_insn (buf, operands); return "";
23047         instead of return buf;.
23048         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23049         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23050         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23052 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23054         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23055         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23056         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23057         (CC1_SPEC): Likewise.
23058         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23060 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23062         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23063         the base address on 64-bit strict-alignment platforms.
23065 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
23067         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23069 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
23071         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23073 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
23075         PR rtl-optimization/88308
23076         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23077         on copied instruction.
23079 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23081         * final.c (insn_current_reference_address): Replace test on JUMP_P
23082         with test on jump_to_label_p.
23083         * config/visium/visium-passes.def: New file.
23084         * config/visium/t-visium (PASSES_EXTRA): Define.
23085         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23086         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23087         (TRAMPOLINE_ALIGNMENT): Define.
23088         * config/visium/visium.c (visium_option_override): Do not register
23089         the machine-specific reorg pass here.
23090         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23091         for the GR6.
23092         (output_branch): Adjust threshold for long branch instruction.
23093         * config/visium/visium.md (cpu): Move around.
23094         (length): Adjust for the GR6.
23096 2019-02-15  Richard Biener  <rguenther@suse.de>
23097             Jakub Jelinek  <jakub@redhat.com>
23099         PR tree-optimization/89278
23100         * tree-loop-distribution.c: Include tree-eh.h.
23101         (generate_memset_builtin, generate_memcpy_builtin): Call
23102         rewrite_to_non_trapping_overflow on builtin->size before passing it
23103         to force_gimple_operand_gsi.
23105 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
23107         PR other/89342
23108         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23109         optimize_debug.
23110         * opth-gen.awk: Likewise.
23112 2019-02-15  Uroš Bizjak  <ubizjak@gmail.com>
23114         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23115         Enable MMX, SSE and SSE2 by default.
23116         * config/i386/i386.c (ix86_option_override_internal): Do not
23117         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23119 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
23121         PR rtl-optimization/89354
23122         * combine.c (make_extraction): Punt if extraction_mode is narrower
23123         than len bits.
23125 2019-02-14  Maya Rashish  <coypu@sdf.org>
23127         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23128         * config/netbsd-d.c: New file.
23129         * config/t-netbsd: Add netbsd-d.o
23131 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
23133         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23134         affects_type_identity to true for aarch64_vector_pcs.
23135         (aarch64_comp_type_attributes): New function.
23136         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23138 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
23140         PR target/88850
23141         * config/arm/iterators.md (ANY64): Add V4HF.
23143 2019-02-14  Martin Liska  <mliska@suse.cz>
23145         PR rtl-optimization/89242
23146         * dce.c (delete_unmarked_insns): Call free_dominance_info we
23147         process a transformation.
23149 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
23151         PR tree-optimization/89314
23152         * fold-const.c (fold_binary_loc): Cast strlen argument to
23153         const char * before dereferencing it.  Formatting fixes.
23155         PR middle-end/89284
23156         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23158 2019-02-13  Ian Lance Taylor  <iant@golang.org>
23160         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23161         and set current index for other optimizations.
23163 2019-02-13  Uroš Bizjak  <ubizjak@gmail.com>
23165         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23166         nonimmediate_operand as operand 2 predicate.
23167         (vec_set<VF2_512_256:mode>_0): Ditto.
23168         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23169         (*vec_concatv2si): Remove alternative 2.
23170         (*vec_concatv4si_0): Use vm constraint for alternative 0.
23171         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23172         (vec_concatv2di): Split alternatives 4,5,6 to ...
23173         (*vec_concatv2di_0) ... new pattern.
23175 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
23177         PR target/89190
23178         * config/arm/arm.c (ldm_stm_operation_p) Set
23179         addr_reg_in_reglist correctly for first register.
23180         (load_multiple_sequence): Remove dead base check.
23181         (gen_ldm_seq): Correctly set write_back for Thumb-1.
23183 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
23185         PR target/88847
23186         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23187         Expose as @aarch64_pred_mov.
23188         * config/aarch64/aarch64.c (aarch64_classify_address):
23189         Use expand_insn which legitimizes operands.
23191 2019-02-13  Martin Liska  <mliska@suse.cz>
23193         * builtins.h (expand_builtin_with_bounds): Remove declaration.
23194         * calls.c (struct arg_data): Remove special_slot, pointer_arg
23195         and pointer_offset fields.
23196         (initialize_argument_information): Remove usage of dead
23197         fields.
23198         * cgraph.h (struct cgraph_thunk_info): Remove
23199         add_pointer_bounds_args.
23200         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23201         fields.
23202         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23203         fields.
23204         * config/i386/i386.c (ix86_function_arg_advance): Remove
23205         unrelated comment.
23206         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23207         (def_builtin): Remove usage of dead fields.
23208         (ix86_add_new_builtins): Likewise.
23209         * ipa-fnsummary.c (compute_fn_summary): Likewise.
23210         * ipa-icf.c (sem_function::equals_wpa): Likewise.
23211         (sem_function::init): Likewise.
23212         (sem_variable::merge): Likewise.
23213         * ipa-visibility.c (function_and_variable_visibility): Likewise.
23214         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23215         * lto-cgraph.c (lto_output_node): Likewise.
23216         (lto_output_varpool_node): Likewise.
23217         (input_node): Likewise.
23218         (input_varpool_node): Likewise.
23219         * lto-streamer-out.c (lto_output): Likewise.
23220         * tree-inline.c (expand_call_inline): Remove usage of
23221         assign_stmts.
23222         * tree-inline.h (struct copy_body_data): Likewise.
23223         * varpool.c (varpool_node::dump): Likewise.
23225 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
23227         PR middle-end/89303
23228         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23229         into pt->vars_contains_escaped_heap instead of setting
23230         pt->vars_contains_escaped_heap to it.
23232         PR middle-end/89281
23233         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23234         INTVAL (size), compare it to GET_MODE_MASK instead of
23235         1 << GET_MODE_BITSIZE.
23237         PR target/89290
23238         * config/i386/predicates.md (x86_64_immediate_operand): Allow
23239         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23240         -mcmodel=large.
23242 2019-02-13  Martin Liska  <mliska@suse.cz>
23244         PR lto/88858
23245         * cfgrtl.c (remove_barriers_from_footer): New function.
23246         (try_redirect_by_replacing_jump): Use it.
23247         (cfg_layout_redirect_edge_and_branch): Likewise.
23249 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
23251         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23252         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23253         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23254         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23255         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23256         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23257         New BU_CRYPTO_2.
23258         * config/rs6000/rs6000.c (builtin_function_type)
23259         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23260         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23261         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23262         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23263         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23265 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
23267         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23268         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23270 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
23272         PR target/89229
23273         * config/i386/i386.md (*movoi_internal_avx): Revert revision
23274         268678 and revision 268657.
23275         (*movti_internal): Likewise.
23277 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
23279         PR target/89233
23280         * config/s390/s390.c (s390_decompose_address): Update comment.
23281         (s390_check_qrst_address): Reject invalid address forms after
23282         LRA.
23284 2019-02-12  Martin Liska  <mliska@suse.cz>
23286         PR lto/88876
23287         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23288         we need default values of funct_state for a function that
23289         is not optimized.
23291 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23293         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23294         the object to pick the size of stores on strict-alignment platforms.
23296         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23297         (*movdi_insn_sp32): Likewise.
23298         (*movdi_insn_sp64): Likewise.
23300 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
23302         PR lto/88677
23303         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23304         types that needs constructiong.
23305         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23307 2019-02-12  Richard Biener  <rguenther@suse.de>
23309         PR tree-optimization/89253
23310         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23311         duplicate the loop.
23313 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
23315         PR lto/88147
23316         * input.c (selftest::test_line_offset_overflow): New selftest.
23317         (selftest::input_c_tests): Call it.
23319 2019-02-11  Martin Sebor  <msebor@redhat.com>
23321         PR tree-optimization/88771
23322         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23323         when -Wstringop-overflow is set.
23324         (builtin_memref::builtin_memref): Adjust excessive upper bound
23325         only when lower bound is not excessive.
23326         (maybe_diag_overlap): Detect and diagnose excessive bounds via
23327         -Wstringop-ovefflow.
23328         (maybe_diag_offset_bounds): Rename...
23329         (maybe_diag_access_bounds): ...to this.
23330         (check_bounds_or_overlap): Adjust for name change above.
23332 2019-02-11  Martin Sebor  <msebor@redhat.com>
23334         PR c++/87996
23335         * builtins.c (max_object_size): Move from here...
23336         * builtins.h (max_object_size): ...and here...
23337         * tree.c (max_object_size): ...to here...
23338         * tree.h (max_object_size): ...and here.
23340 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
23342         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23343         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23344         for correct semantics.
23346 2019-02-11  Alan Modra  <amodra@gmail.com>
23348         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23349         -mlongcall and -mpltseq.
23350         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23351         (RS/6000 and PowerPC Options <-mpltseq>): Document.
23352         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23353         * config/rs6000/sysv4.opt (mpltseq): New option.
23354         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23355         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23356         support is lacking.  Don't allow -mpltseq with -mbss-plt.
23357         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23358         -mpltseq given for ELFv1.
23359         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23360         Only use UNSPEC_PLTSEQ for inline PLT calls.
23361         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
23362         use UNSPEC_PLTSEQ for inline PLT calls.
23363         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23364         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23365         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23366         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23367         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23368         (pltseq_mtctr_<mode>): Likewise.
23370 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23372         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23373         Solaris ld.
23374         * configure: Regenerate.
23376 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
23378         PR bootstrap/88714
23379         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23380         instead of r.
23382 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
23384         * function.c (assign_parm_setup_block): Use the stored
23385         size, not the passed size, when allocating stack-space,
23386         also for a parameter with alignment larger than
23387         MAX_SUPPORTED_STACK_ALIGNMENT.
23389 2019-02-11  Martin Liska  <mliska@suse.cz>
23391         PR ipa/89009
23392         * ipa-cp.c (build_toporder_info): Remove usage of a param.
23393         * ipa-inline.c (inline_small_functions): Likewise.
23394         * ipa-pure-const.c (propagate_pure_const): Likewise.
23395         (propagate_nothrow): Likewise.
23396         * ipa-reference.c (propagate): Likewise.
23397         * ipa-utils.c (struct searchc_env): Remove unused field.
23398         (searchc): Always search across AVAIL_INTERPOSABLE.
23399         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23400         the only called IPA pure const can properly not propagate
23401         across interposable boundary.
23402         * ipa-utils.h (ipa_reduced_postorder): Remove param.
23404 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
23406         * config/nds32/nds32.md (call_internal, call_value_internal,
23407         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23409 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
23411         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23412         typo.
23414 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
23416         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23417         in comments
23419 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
23421         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23423 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
23425         PR tree-optimization/89268
23426         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23427         if preds is non-NULL.
23429 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23431         PR lto/89272
23432         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23433         polymorphic types.
23435 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
23437         * config/nds32/nds32.md (trap): New pattern.
23439 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
23441         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23442         dwarf span.
23444 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
23446         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23447         to split POST_INC.
23449 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23451         * ipa-visibility.c (localize_node): Also do not localize
23452         LDPR_PREVAILING_DEF_IRONLY_EXP.
23454 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23456         PR lto/87957
23457         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23458         instead of type_with_linkage.
23460 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23462         PR ipa/88755
23463         * params.def (uninlined-function-insns, uninlined-function-time,
23464         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23465         bound so we don't get overflows.
23467 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
23469         * config/rs6000/rs6000-string.c (expand_compare_loop,
23470         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23471         memcmp/strncmp.
23473 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
23475         PR middle-end/89246
23476         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23477         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23478         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23480 2019-02-09  Alan Modra  <amodra@gmail.com>
23482         PR target/88343
23483         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23484         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
23485         setup.
23487 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
23489         PR middle-end/88560
23490         * lra-constraints.c (process_alt_operands): Don't increase reject
23491         for memory when offset memory is required.
23493 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
23495         * config/s390/vector.md: Implement vector copysign.
23497 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
23499         * expr.c (expand_constructor): Correct indentations.
23501 2019-02-08  Richard Biener  <rguenther@suse.de>
23503         PR tree-optimization/89247
23504         * tree-if-conv.c: Include tree-cfgcleanup.h.
23505         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23506         (tree_if_conversion): Pass through predicate vector.
23507         (pass_if_conversion::execute): Do CFG cleanup and SSA update
23508         inline, see if any if-converted loops we refrece in
23509         LOOP_VECTORIZED calls vanished and fixup.
23510         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23512 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
23514         * config/s390/constraints.md (jdd): New constraint.
23516 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
23518         PR target/89229
23519         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23520         upper 16 vector registers without TARGET_AVX512VL.
23521         (*movti_internal): Likewise.
23523 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
23525         PR rtl-optimization/89234
23526         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23527         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23528         (copy_reg_eh_region_note_backward): Likewise.
23530 2019-02-08  Richard Biener  <rguenther@suse.de>
23532         PR middle-end/89223
23533         * tree-data-ref.c (initialize_matrix_A): Fail if constant
23534         doesn't fit in HWI.
23535         (analyze_subscript_affine_affine): Handle failure from
23536         initialize_matrix_A.
23538 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
23540         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23541         cfun everywhere.
23543 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
23545         PR tree-optimization/86637
23546         PR tree-optimization/89235
23547         * tree-vect-loop.c (optimize_mask_stores): Add an
23548         auto_purge_vect_location sentinel to ensure that vect_location is
23549         purged on exit.
23550         * tree-vectorizer.c
23551         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23552         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23553         to ensure that vect_location is purged on exit.
23554         (pass_slp_vectorize::execute): Likewise, replacing the manual
23555         reset.
23556         * tree-vectorizer.h (class auto_purge_vect_location): New class.
23558 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23560         * config/aarch64/iterators.md (max_opp): New code_attr.
23561         (USMAX): New code iterator.
23562         * config/aarch64/predicates.md (aarch64_smin): New predicate.
23563         (aarch64_smax): Likewise.
23564         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23565         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23566         MINUS (MAX MIN).
23568 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
23570         PR target/89229
23571         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23572         for TARGET_AVX512VL.
23573         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23575 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
23577         * config/s390/s390-builtin-types.def: Add new types.
23578         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23579         (s390_vec_xlw4): Make the memory operand into a const pointer.
23580         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23581         float.
23582         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23583         a new vector type with the alignment of the scalar memory operand.
23585 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
23586             Jakub Jelinek  <jakub@redhat.com>
23588         PR bootstrap/88714
23589         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23590         arm_count_ldrdstrd_insns): New declarations.
23591         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23592         MINUS.
23593         (valid_operands_ldrd_strd): New function.
23594         (arm_count_ldrdstrd_insns): New function.
23595         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23596         sets instead of single DImode set and define new insns to match this.
23598 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
23600         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23601         Make it a C initializer.
23603 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
23605         PR/target 88850
23606         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23608 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23610         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23611         Use neon_dot<q> for type.
23612         (neon_<sup>dot_lane<vsi2qi>): Likewise.
23614 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23616         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23617         Use neon_dot<q> for type.
23618         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23619         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23621 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
23623         PR rtl-optimization/89225
23624         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23625         sizes check.
23627 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
23629         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23630         after restoring registers saved to allocate the frame on Windows.
23632 2019-02-06  Richard Biener  <rguenther@suse.de>
23634         PR tree-optimization/89182
23635         * graphite.h (cached_scalar_evolution_in_region): Declare.
23636         * graphite.c (struct seir_cache_key): New.
23637         (struct sese_scev_hash): Likewise.
23638         (seir_cache): New global.
23639         (cached_scalar_evolution_in_region): New function.
23640         (graphite_transform_loops): Allocate and release seir_cache.
23641         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23642         cached_scalar_evolution_in_region.
23643         * graphite-scop-detection.c (scop_detection::can_represent_loop):
23644         Simplify.
23645         (scop_detection::graphite_can_represent_expr: Use
23646         cached_scalar_evolution_in_region.
23647         (scop_detection::stmt_simple_for_scop_p): Likewise.
23648         (find_params_in_bb): Likewise.
23649         (gather_bbs::before_dom_children): Likewise.
23650         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23651         (add_loop_constraints): Likewise.
23653 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
23655         PR middle-end/89210
23656         * fold-const-call.c (fold_const_vec_convert): Pass true as last
23657         operand to new_unary_operation only if both element types are integral
23658         and it isn't a widening conversion.  Return NULL_TREE if
23659         new_unary_operation failed.
23661 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
23663         PR target/88856
23664         * config/s390/s390.md: Remove load and test FP splitter.
23666 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
23668         PR target/89112
23669         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23670         expand_compare_loop, expand_block_compare_gpr,
23671         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23672         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23673         #include "profile-count.h" and "predict.h" for types and functions
23674         needed to work with REG_BR_PROB notes.
23676 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
23678         PR target/89112
23679         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23680         for the long branch case.
23682 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
23684         PR target/89188
23685         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23686         can throw, non-call exceptions are enabled and we can't delete
23687         dead exceptions or alter cfg.  Set must_clean if
23688         delete_insn_and_edges returns true, don't set it blindly for calls.
23689         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23691         PR rtl-optimization/89195
23692         * combine.c (make_extraction): For MEMs, don't extract bytes outside
23693         of the original MEM.
23695 2019-02-05  Martin Liska  <mliska@suse.cz>
23697         PR gcov-profile/89000
23698         * gcov.c (function_summary): Remove argument.
23699         (file_summary): New function.
23700         (print_usage): Replace tabs with spaces.
23701         (generate_results): Use new function file_summary.
23703 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
23705         PR target/89186
23706         * optabs.c (prepare_cmp_insn): Pass x and y to
23707         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23709 2019-02-05  Richard Biener  <rguenther@suse.de>
23711         PR middle-end/89150
23712         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23713         (struct bitmap_element): Drop chain_prev so we properly recurse on
23714         the prev member, supporting tree views.
23715         (struct bitmap_head): GTY skip the obstack member.
23717 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
23719         PR c/88698
23720         * doc/extend.texi (Vector Extensions): Add an example of using vector
23721         types together with x86 intrinsics.
23723 2019-02-04  Alan Modra  <amodra@gmail.com>
23725         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23726         str[] size to 160, and comment.
23728 2019-02-04  Alan Modra  <amodra@gmail.com>
23730         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23731         (rs6000_pltseq_template): Guard output of TLS markers with
23732         TARGET_TLS_MARKERS.
23733         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23734         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23735         to use inline PLT sequences.
23736         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23737         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23738         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23740 2019-02-04  Martin Liska  <mliska@suse.cz>
23742         PR ipa/88985
23743         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23744         out when ipa_fn_summaries does not contain entry for callee.
23746 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23748         * config/sparc/sparc.h: Remove superfluous blank lines.
23749         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23750         (got_register_rtx): ...this.
23751         (sparc_got): Adjust to above renaming.
23752         (sparc_tls_got): Likewise.
23753         (sparc_delegitimize_address): Likewise.
23754         (sparc_output_mi_thunk): Likewise.
23755         (sparc_init_pic_reg): Likewise.
23756         (save_local_or_in_reg_p): Fix test on the GOT register.
23757         (USE_HIDDEN_LINKONCE): Move around.
23758         (get_pc_thunk_name): Likewise.
23759         (gen_load_pcrel_sym): Likewise.
23760         (load_got_register): Likewise.
23762 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
23764         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23765         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23767 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
23769         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23770         into consideration.
23772 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
23774         * config.gcc (with_nds32_lib, glibc):
23775         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23776         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23777         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23779 2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>
23781         PR target/89071
23782         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23783         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23784         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23785         (*rcpsf2_sse): Ditto.
23786         (*rsqrtsf2_sse): Ditto.
23787         (sse4_1_round<mode<2): Ditto.
23789 2019-02-03  Richard Biener  <rguenther@suse.de>
23791         PR debug/87295
23792         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23793         orig.
23795 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
23797         PR middle-end/87887
23798         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23799         Punt with warning on aggregate return or argument types.  Ignore
23800         type/mode checking for uniform arguments.
23802 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
23804         * combine.c (try_combine): Do not print "Can't combine" messages unless
23805         printing failed combination attempts.
23807 2019-02-01  Martin Jambor  <mjambor@suse.cz>
23809         PR hsa/87863
23810         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23811         segment and global segment variables before making them static.
23813 2019-02-01  Martin Jambor  <mjambor@suse.cz>
23815         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23816         missed optimization dump with dump_enabled_p.
23818 2019-02-01  Richard Biener  <rguenther@suse.de>
23820         PR middle-end/88597
23821         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23822         the instantiate cache.
23823         (instantiate_scev_binary): Elide second operand procesing
23824         if equal to the first.
23825         * tree-chrec.c (chrec_contains_symbols): Add visited set.
23826         (chrec_contains_undetermined): Likewise.
23827         (tree_contains_chrecs): Likewise.
23829 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
23831         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23833 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
23835         PR tree-optimization/89143
23836         * wide-int-range.h (wide_int_range_absu): Declare.
23837         * wide-int-range.cc (wide_int_range_absu): New function.
23838         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23840         PR tree-optimization/88107
23841         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23842         instead of assertion that eh_region_outermost is non-NULL, if it
23843         is NULL, set *ALL to true and return NULL.
23844         (move_sese_region_to_fn): Adjust caller, if all is set, call
23845         duplicate_eh_regions with NULL region.
23847 2019-02-01  Richard Biener  <rguenth@suse.de>
23849         PR rtl-optimization/88593
23850         * mode-switching.c (optimize_mode_switching): Free dominators before
23851         calling cleanup_cfg.
23853 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
23855         PR tree-optimization/88932
23856         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23858 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
23860         PR middle-end/89137
23861         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
23862         bogus clang warning.
23864 2019-01-31  Uroš Bizjak  <ubizjak@gmail.com>
23866         PR target/89071
23867         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
23868         alternative to avoid partial SSE register stall for TARGET_AVX.
23869         (truncdfsf2): Ditto.
23870         (sse4_1_round<mode>2): Ditto.
23872 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
23874         PR tree-optimization/89008
23875         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
23876         process anything of the form X * 0.
23878 2019-01-31  Richard Biener  <rguenther@suse.de>
23880         PR tree-optimization/89135
23881         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
23882         with abnormal preds.
23884 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
23886         PR sanitizer/89124
23887         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
23888         always_inline callees into no_sanitize_address callers.
23890 2019-01-31  Richard Biener  <rguenther@suse.de>
23892         PR rtl-optimization/89115
23893         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
23895 2019-01-30  Martin Sebor  <msebor@redhat.com>
23897         PR other/89106
23898         * doc/extend.texi (cast to a union): Correct and expand.
23900 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
23902         PR rtl-optimization/87246
23903         * lra-constraints.c (simplify_operand_subreg): Reload memory
23904         in subreg if the address became invalid.
23906 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
23908         PR target/87064
23909         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
23910         Disable for little-endian.
23912 2019-01-30  Richard Biener  <rguenther@suse.de>
23914         PR rtl-optimization/89115
23915         * opts.c (default_options_optimization): Reduce
23916         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
23917         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
23918         to the default.
23920 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
23922         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
23923         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
23924         type of vector element when vec_extract is implemented by direct
23925         move.
23927 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
23929         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
23931 2019-01-30  Richard Biener  <rguenther@suse.de>
23933         PR tree-optimization/89111
23934         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
23935         canonicalization to appropriately sized access types.
23937 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
23939         PR c++/89105
23940         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
23941         for arguments to functions that are TU-local and shouldn't be
23942         referenced by assembly.
23944 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
23946         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
23947         after '='.
23949 2019-01-29  Martin Sebor  <msebor@redhat.com>
23951         PR c/88956
23952         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
23954 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
23956         PR c++/66676
23957         PR ipa/89104
23958         * omp-simd-clone.c (simd_clone_clauses_extract)
23959         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
23960         OMP_CLAUSE_ALIGNED_ALIGNMENT.
23962 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
23964         * config.gcc: Force .init_array for ARC.
23966 2019-01-29  Richard Biener  <rguenther@suse.de>
23968         PR debug/87295
23969         * dwarf2out.c (collect_skeleton_dies): New helper.
23970         (copy_decls_for_unworthy_types): Call it.
23971         (build_abbrev_table): Assert we do not try to replace
23972         DW_AT_signature refs with local refs.
23974 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
23976         PR middle-end/89002
23977         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
23978         for lastprivate/linear IV, push gimplify context around gimplify_assign
23979         and, if it needed any temporaries, pop it into a gimple bind around the
23980         sequence.
23982 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23984         * common.opt (-Wattribute-alias): Remove "no-" from name.
23985         Make -Wattribute-alias command line option and
23986         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
23988 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
23990         PR target/89073
23991         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
23992         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
23993         x86 ISA options.
23994         (bmi2): Add missing @opindex.
23995         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
23996         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
23997         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
23998         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
23999         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24000         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24001         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24002         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24003         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24004         xsavec, xsaveopt and xsaves options.
24006 2019-01-28  Richard Biener  <rguenther@suse.de>
24008         PR debug/89076
24009         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24010         support removal.
24012 2019-01-28  Richard Biener  <rguenther@suse.de>
24014         PR tree-optimization/88739
24015         * tree-cfg.c (verify_types_in_gimple_reference): Verify
24016         BIT_FIELD_REFs only are applied to mode-precision operands
24017         when they are integral.
24018         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24019         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24020         BIT_FIELD_REFs of non-mode-precision integral operands.
24022 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
24024         PR target/87214
24025         * config/i386/sse.md
24026         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24027         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24028         first constants in pairs are multiples of 2.  Formatting fixes.
24029         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24030         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24031         first constants in each quadruple are multiples of 4.  Formatting fixes.
24033 2019-01-26  Martin Jambor  <mjambor@suse.cz>
24035         PR ipa/88933
24036         * tree-inline.c: Include tree-cfgcleanup.h.
24037         (delete_unreachable_blocks_update_callgraph): Move...
24038         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24039         ...here, make externally visible, make second argument bool, adjust
24040         all callers.
24041         * tree-cfgcleanup.c: Include cgraph.h.
24042         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24043         Declare.
24044         * ipa-prop.c: Include tree-cfgcleanup.h.
24045         (ipcp_transform_function): Call
24046         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24048 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
24050         PR rtl-optimization/88846
24051         * ira.c (process_set_for_memref_referenced_p): New.
24052         (memref_referenced_p): Add new param.  Use
24053         process_set_for_memref_referenced_p.  Add new switch cases.
24054         (memref_used_between_p): Pass new arg to memref_referenced_p.
24056 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
24058         PR target/88469
24059         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24060         argument ABI_BREAK.  Set to true if the calculated alignment has
24061         changed in gcc-9.  Check bit-fields for their base type alignment.
24062         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24063         (aarch64_function_arg_boundary): Likewise.
24064         (aarch64_gimplify_va_arg_expr): Likewise.
24066 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
24068         PR middle-end/89037
24069         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24070         instead of accessing TREE_INT_CST_ELT directly.
24072 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
24074         * doc/sourcebuild.texi (Environment attributes): Add fenv and
24075         fenv_exceptions description.
24077 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
24079         PR rtl-optimization/87763
24080         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24081         Allow SUBREG when matching CC_NZmode compare.
24083 2019-01-25  Richard Biener  <rguenther@suse.de>
24085         PR tree-optimization/89049
24086         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24087         Look at the pattern stmt to determine if the stmt is vectorized.
24089 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
24091         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24092         (pred_mov<mode>): Handle all-register forms using both a new
24093         alternative and a split.
24095 2019-01-25  Richard Biener  <rguenther@suse.de>
24097         PR tree-optimization/86865
24098         * graphite-scop-detection.c (scop_detection::can_represent_loop):
24099         Reject non-do-while loops.
24101 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
24103         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24104         * config/rs6000/constraints.md (Q constraint): Use REG_P.
24105         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24106         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24107         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24108         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24109         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24110         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24111         vlogical_operand, gpc_reg_operand, int_reg_operand,
24112         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24113         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24114         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24115         (save_world_operation, restore_world_operation, lmw_operation,
24116         stmw_operation): Use MEM_P and REG_P.
24117         (tie_operand): Use MEM_P.
24118         (vrsave_operation, crsave_operation): Use REG_P.
24119         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24120         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24121         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24122         (call_operand): Use HARD_REGISTER_P.
24123         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24124         Use CONST_INT_P.
24125         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24126         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24127         quad_aligned_load_p, replace_swapped_aligned_store,
24128         recombine_lvx_pattern, replace_swapped_aligned_load,
24129         recombine_stvx_pattern): Use MEM_P.
24130         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24131         Use MEM_P and SYMBOL_REF_P.
24132         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24133         (insn_is_swappable_p): Use REG_P and MEM_P.
24134         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24135         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24136         Use CONST_INT_P.
24137         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24138         Use CONST_DOUBLE_P.
24139         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24140         CONST_WIDE_INT_P.
24141         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24142         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24143         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24144         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24145         reg_or_subregno:
24146         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24147         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24148         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24149         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24150         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24151         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24152         rs6000_split_logical_di): Use CONST_INT_P.
24153         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24154         REG_P and SYMBOL_REF_P.
24155         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24156         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24157         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24158         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24159         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24160         (small_data_operand, print_operand_address): Use CONST_INT_P and
24161         SYMBOL_REF_P.
24162         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24163         (rs6000_init_hard_regno_mode_ok, direct_move_p):
24164         Use HARD_REGISTER_NUM_P.
24165         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24166         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24167         SUBREG_P and SYMBOL_REF_P.
24168         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24169         and HARD_REGISTER_NUM_P.
24170         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24171         reg_or_subregno.
24172         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24173         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24174         MEM_P and REG_P.
24175         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24176         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24177         find_addr_reg): Use REG_P.
24178         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24179         (rs6000_emit_le_vsx_move): Use SUBREG_P.
24180         (offsettable_ok_by_alignment, constant_pool_expr_p,
24181         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24182         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24183         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24184         rs6000_assemble_integer, create_TOC_reference,
24185         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24186         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24187         (rs6000_split_vec_extract_var): Use reg_or_subregno.
24188         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24189         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24190         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24191         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24192         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24193         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24194         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24195         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24196         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24197         and cbranch<mode>4): Use CONST_INT_P.
24198         (multiple define_splits): Use REG_P and SUBREG_P.
24199         (define_expands call, call_value): Use MEM_P.
24200         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
24201         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24202         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24203         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24204         and HARD_REGISTER_NUM_P.
24205         (multiple define_splits): Use HARD_REGISTER_NUM_P.
24207 2019-01-24  Uroš Bizjak  <ubizjak@gmail.com>
24209         PR rtl-optimization/88948
24210         * rtl.h (prepare_copy_insn): New prototype.
24211         * gcse.c (prepare_copy_insn): New function, split out from
24212         process_insert_insn.
24213         (process_insert_insn): Use prepare_copy_insn.
24214         * store-motion.c (replace_store_insn): Use prepare_copy_insn
24215         instead of gen_move_insn.
24217 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
24219         PR debug/89006
24220         * config/i386/i386.c (ix86_pic_register_p): Return true for
24221         UNSPEC_SET_GOT too.
24223         PR tree-optimization/88964
24224         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24225         punt if HONOR_SNANS (chrec).
24227         PR middle-end/89015
24228         * tree-nested.c (convert_nonlocal_reference_stmt,
24229         convert_local_reference_stmt, convert_tramp_reference_stmt,
24230         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24231         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24232         or GIMPLE_OMP_TASK.
24234         PR tree-optimization/89027
24235         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24236         for "omp simd array" variables.
24238 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
24240         PR target/88469
24241         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24242         force the alignment of m_val.
24244 2019-01-24  Richard Biener  <rguenther@suse.de>
24246         PR lto/87187
24247         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24248         When in "legacy" debug mode make sure to reset self-origins.
24250 2019-01-24  Martin Liska  <mliska@suse.cz>
24252         PR gcov-profile/88994
24253         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24254         result will be always smaller or equal to the original.
24255         * gcov.c (mangle_name): Fix else branch where we should
24256         also copy to PTR and shift the pointer.
24258 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
24260         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24261         * vr-values.c (find_case_label_ranges): Fix a comment typo.
24263 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
24265         * common/config/i386/i386-common.c
24266         (OPTION_MASK_ISA_ENQCMD_SET,
24267         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24268         (ix86_handle_option): Handle -menqcmd.
24269         * config.gcc (enqcmdintrin.h): New header file.
24270         * config/i386/cpuid.h (bit_ENQCMD): New bit.
24271         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24272         -menqcmd.
24273         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24274         function type.
24275         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24276         __builtin_ia32_enqcmds): New builtins.
24277         * config/i386/i386-c.c (__ENQCMD__): New macro.
24278         * config/i386/i386-option.c (ix86_target_string): Add
24279         -menqcmd.
24280         (ix86_valid_target_attribute_inner_p): Likewise.
24281         * config/i386/i386-expand.c
24282         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24283         IX86_BUILTIN_ENQCMDS.
24284         * config/i386/i386.h (TARGET_ENQCMD): New.
24285         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24286         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24287         (movdir64b_<mode>): Parameterize to enable share expansion code
24288         with ENQCMD in function ix86_expand_builtin.
24289         * config/i386/i386.opt: Add -menqcmd.
24290         * config/i386/immintrin.h: Include enqcmdintrin.h.
24291         * config/i386/enqcmdintrin.h: New intrinsic file.
24292         * doc/invoke.texi: Add -menqcmd.
24294 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
24295             Steve Ellcey  <sellcey@marvell.com>
24297         PR target/85711
24298         * recog.c (address_operand): Return false on wrong mode for address.
24299         (constrain_operands): Check for mode with 'p' constraint.
24301 2019-01-23  Uroš Bizjak  <ubizjak@gmail.com>
24303         PR target/88998
24304         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24305         Disparage MMX alternative.
24306         (sse2_cvtpd2pi): Ditto.
24307         (sse2_cvttpd2pi): Ditto.
24309 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
24311         PR driver/89014
24312         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24313         use-after-free of the result of
24314         aarch64_get_extension_string_for_isa_flags.
24316 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
24318         PR c/44715
24319         * doc/extend.texi: Document break and continue behavior in
24320         statement expressions.
24322 2019-01-23  Richard Biener  <rguenther@suse.de>
24324         PR tree-optimization/89008
24325         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24326         not leave another stray operand.
24328 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
24330         * BASE-VER: Bump to 9.0.1.
24332 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
24334         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24335         thunk that returns by reference, use the type of the return object
24336         of the thunk instead of that of the alias to build the dereference.
24338 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
24340         * config/arc/atomic.md: Add operand to DMB instruction.
24342 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
24344         PR tree-optimization/88964
24345         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24346         build_zero_cst instead of build_int_cst.  Return false for loop
24347         invariants which honor signed zeros.
24349 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
24351         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24353 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
24355         PR target/88965
24356         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24357         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24358         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24360         PR middle-end/88968
24361         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24362         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24364         PR target/87064
24365         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24366         Disable for little endian.
24368 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
24370         PR target/88469
24371         * config/arm/arm.c (arm_needs_double_word_align): Check
24372         DECL_BIT_FIELD_TYPE.
24374 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
24375             H.J. Lu  <hongjiu.lu@intel.com>
24377         PR target/88909
24378         * config/i386/i386-builtin.def: Add mask2 to all builtin
24379         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24380         SPECIAL_ARGS.
24381         * config/i386/i386.c (BDESC): Add mask2 to the definition.
24382         (BDESC_FIRST): Likewise.
24383         (define_builtin): Add an argument for mask2.  Updated to handle
24384         both ix86_isa_flags and ix86_isa_flags2.
24385         (define_builtin_const): Likewise.
24386         (define_builtin_pure): Likewise.
24387         (define_builtin2): Deleted.
24388         (define_builtin_const2): Likewise.
24389         (builtin_description): Add a member, mask2.
24390         (bdesc_*): Add mask2 to builtin initializations.
24391         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24392         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
24393         support.
24394         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24396 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
24398         PR target/88954
24399         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24400         noplt attribute.
24402 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
24404         PR target/88469
24405         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24406         alignment is dominated by a bitfield with 64-bit aligned base type.
24407         (arm_function_arg): Emit a warning if the alignment has changed since
24408         earlier GCC releases.
24409         (arm_function_arg_boundary): Likewise.
24410         (arm_setup_incoming_varargs): Likewise.
24412 2019-01-22  Richard Biener  <rguenther@suse.de>
24414         PR tree-optimization/88862
24415         * graphite-scop-detection.c
24416         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24418 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
24420         * doc/extend.tex (AMD GCN Function Attributes): New section.
24421         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24422         * doc/invoke.texi (AMD GCN Options): New section.
24423         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24425 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24427         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24428         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24430 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
24432         PR tree-optimization/88044
24433         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24434         is false in the first iteration, but !every_iteration, return false
24435         instead of true with niter->niter zero.
24437         PR rtl-optimization/88904
24438         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24439         any nonequal registers before processing BB_END (b).
24441         PR target/88905
24442         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24443         GET_MODE (op0).
24444         (expand_binop_directly, expand_doubleword_clz,
24445         expand_doubleword_popcount, expand_ctz, expand_ffs,
24446         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24448         PR rtl-optimization/49429
24449         PR target/49454
24450         PR rtl-optimization/86334
24451         PR target/88906
24452         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24453         addressable from here...
24454         (emit_block_op_via_libcall): ... to here.
24456 2019-01-22  Richard Biener  <rguenther@suse.de>
24458         * tree-vect-loop.c (vect_analyze_loop_operations): Use
24459         auto_vec for cost vector to fix memleak.
24460         (vectorize_fold_left_reduction): Properly gather SLP defs.
24461         (vectorizable_comparison): Do not swap operands to properly
24462         gather SLP defs.
24464 2019-01-22  Alan Modra  <amodra@gmail.com>
24466         PR target/88614
24467         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24468         stays a reg.  Allow a const_int.
24469         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24470         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24471         (IS_NOMARK_TLSGETADDR): Define.
24472         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24473         (rs6000_output_tlsargs): New function.
24474         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24475         __tls_get_addr call takes an arg.
24476         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24477         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24478         delete split..
24479         (call_value_nonlocal_sysv): ..or here, delete split.
24480         (tls_gdld_nomark): Delete.
24481         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24482         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
24483         (call_value_nonlocal_sysv): Likewise.
24484         (call_value_nonlocal_sysv_secure): Likewise.
24485         (call_value_nonlocal_aix): Likewise.
24486         (call_value_indirect_aix): Likewise.
24487         (call_value_indirect_elfv2): Likewise.
24488         (call_value_local32, call_value_local64): Disable for no-mark tls.
24489         (call_value_local_aix): Likewise.
24491 2019-01-21  Uroš Bizjak  <ubizjak@gmail.com>
24493         PR target/88938
24494         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24495         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24497 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
24499         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24500         string contents as hash_map keys.
24502 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24504         PR c/88928
24505         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24506         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
24507         instead of TYPE_ALIGN.
24508         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24509         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
24510         pointer from TYPE_STUB_DECL.
24512 2019-01-21  Richard Biener  <rguenther@suse.de>
24514         PR tree-optimization/88934
24515         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24516         at the possibly non-constant operand.
24517         (vect_get_constant_vectors): Adjust.
24519 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
24521         PR target/71659
24522         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24523         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24524         instead of _X86INTRIN_H_INCLUDED.
24525         * onfig/i386/clwbintrin.h: Likewise.
24526         * config/i386/pkuintrin.h: Likewise.
24527         * config/i386/prfchwintrin.h: Likewise.
24528         * config/i386/rdseedintrin.h: Likewise.
24529         * config/i386/wbnoinvdintrin.h: Likewise.
24530         * config/i386/xsavecintrin.h: Likewise.
24531         * config/i386/xsavesintrin.h: Likewise.
24532         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24533         * config/i386/xsaveintrin.h: Likewise.
24534         * config/i386/xsaveoptintrin.h: Likewise.
24535         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24536         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24537         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24538         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24539         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24540         * config/i386/immintrin.h: Here.
24542 2019-01-20  Martin Jambor  <mjambor@suse.cz>
24544         PR ipa/87615
24545         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24546         with aa_walk_budget.
24547         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24548         aa_walk_budget_p parameter.
24549         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
24550         walk.  Updated all callers.
24551         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24552         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24553         unmodified_parm.
24554         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24555         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
24556         and to unmodified_parm.
24557         (phi_result_unknown_predicate): New parameter fbi, removed parameter
24558         info, updated call to will_be_nonconstant_expr_predicate.
24559         (param_change_prob): New parameter fbi, limit AA walking.
24560         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
24561         calls to various above functions.
24562         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24563         parameter.  Use it to limit AA walking.
24564         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24565         fbi, limit AA walk.
24566         (detect_type_change): New parameter fbi, pass it on to
24567         detect_type_change_from_memory_writes.
24568         (detect_type_change_ssa): Likewise.
24569         (aa_overwalked): Removed.
24570         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24571         accordingly, adjust to the neew AA limiting scheme.
24572         (parm_ref_data_preserved_p): Likewise.
24573         (ipa_compute_jump_functions_for_edge): Adjust call to
24574         get_dynamic_type.
24575         (ipa_analyze_call_uses): Likewise.
24576         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24577         (ipa_analyze_node): Initialize aa_walk_budget.
24578         (ipcp_transform_function): Likewise.
24579         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24580         to get_dynamic_type.
24582 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
24584         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24585         outside of #if CHECKING_P code.
24587 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
24589         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24590         New function, split out from...
24591         (loop_versioning::analyze_stride): ...here.
24592         (loop_versioning::find_per_loop_multiplication): Use gassign.
24593         (loop_versioning::analyze_term_using_scevs): Return a success code.
24594         (loop_versioning::analyze_arbitrary_term): New function.
24595         (loop_versioning::analyze_address_fragment): Use
24596         analyze_arbitrary_term if all else fails.
24598 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
24600         PR target/88892
24601         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24602         operands.
24604 2019-01-18  Richard Biener  <rguenther@suse.de>
24606         PR tree-optimization/88903
24607         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24608         scalar stmts a SLP shift amount is composed of when detecting
24609         shifts by scalars.
24611 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
24613         PR target/88799
24614         * config/arm/arm-cpus.in (mp): New feature.
24615         (sec): New feature.
24616         (fgroup ARMv7ve): Add mp and sec features.
24617         (arch armv7-a): Add options to allow mp and sec extensions.
24618         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24619         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24620         extenstions to the base architecture.
24621         (cpu cortex-a8): Add sec extension to the base architecture.
24622         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24623         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24624         variants down to the base v7-a varaint.
24625         * config/arm/t-multilib (v7_a_arch_variants): New variable.
24626         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24627         of permitted extensions for -march=armv7-a and for
24628         -mcpu=generic-armv7-a.
24630 2019-01-18  Martin Liska  <mliska@suse.cz>
24632         * params.def: Fix comment.
24633         * tree-profile.c (gimple_init_gcov_profiler): Bump function
24634         name.
24635         (gimple_gen_ic_func_profiler): Likewise.
24637 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24639         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24640         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24641         and put in error checks for stack protector guard options.
24642         (aarch64_stack_protect_guard): New.
24643         (TARGET_STACK_PROTECT_GUARD): Define.
24644         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24645         (reg_stack_protect_address<mode>): New.
24646         (stack_protect_set): Adjust for SSP_GLOBAL.
24647         (stack_protect_test): Likewise.
24648         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24649         (-mstack-protector-guard): Likewise.
24650         (-mstack-protector-guard-offset): Likewise.
24652 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
24654         PR tree-optimization/86214
24655         * tree-inline.h (struct copy_body_data): Add
24656         add_clobbers_to_eh_landing_pads member.
24657         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24658         (copy_edges_for_bb): Call it if EH edge destination is <
24659         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
24660         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24661         if flag_stack_reuse != SR_NONE and clear it afterwards.
24663 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
24665         PR target/85596
24666         * doc/install.texi (with-multilib-list): Document for aarch64.
24668 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
24670         PR target/88734
24671         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24672         (("..."))) with ("...").
24674 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24676         * doc/extend.texi (Built-in Functions for Memory Model Aware
24677         Atomic Operations): Document atomic fetch and nand.
24679 2019-01-18  Martin Liska  <mliska@suse.cz>
24680             Richard Biener  <rguenther@suse.de>
24682         PR middle-end/88587
24683         * cgraph.h (create_version_clone_with_body): Add new argument
24684         with attributes.
24685         * cgraphclones.c (cgraph_node::create_version_clone): Add
24686         DECL_ATTRIBUTES to a newly created decl.  And call
24687         valid_attribute_p so that proper cl_target_optimization_node
24688         is set for the newly created declaration.
24689         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24690         for declaration.
24691         (expand_target_clones): Do not call valid_attribute_p, it must
24692         be already done.
24693         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24694         vector types.
24696 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
24698         PR target/88734
24699         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24700         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
24701         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24703 2019-01-17  Martin Sebor  <msebor@redhat.com>
24705         PR middle-end/88273
24706         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24707         Handle anti-ranges the same as no range at all.
24709 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
24711         * config/aarch64/aarch64.c (cgraph.h): New include.
24712         (intl.h): New include.
24713         (supported_simd_type): New function.
24714         (currently_supported_simd_type): Ditto.
24715         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24716         (aarch64_simd_clone_adjust): Ditto.
24717         (aarch64_simd_clone_usable): Ditto.
24718         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24719         (TARGET_SIMD_CLONE_ADJUST): Ditto.
24720         (TARGET_SIMD_CLONE_USABLE): Ditto.
24721         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24722         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24723         call.
24725 2019-01-17  Martin Sebor  <msebor@redhat.com>
24727         PR tree-optimization/88800
24728         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24729         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
24730         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24731         redundant argument.  Add new argument and issue diagnostics under
24732         its control.  Detect out-of-bounds access even with warnings
24733         disabled.
24734         (check_bounds_or_overlap): Change return type.  Add argument.
24735         (wrestrict_dom_walker::check_call): Adjust.
24736         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24737         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24738         check_bounds_or_overlap's return value.
24739         (handle_builtin_stxncpy): Same.
24740         (handle_builtin_strcat): Same.
24742 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24743             Kwok Cheung Yeung  <kcy@codesourcery.com>
24744             Julian Brown  <julian@codesourcery.com>
24745             Tom de Vries  <tom@codesourcery.com>
24747         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24749 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24751         * doc/sourcebuild.texi: Document dg-require-effective-target
24752         llvm_binutils and offload_gcn.
24754 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24755             Kwok Cheung Yeung  <kcy@codesourcery.com>
24756             Julian Brown  <julian@codesourcery.com>
24757             Tom de Vries  <tom@codesourcery.com>
24759         * doc/sourcebuild.texi: Document dg-required-effective-target
24760         exceptions.
24762 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24763             Kwok Cheung Yeung  <kcy@codesourcery.com>
24764             Julian Brown  <julian@codesourcery.com>
24765             Tom de Vries  <tom@codesourcery.com>
24766             Jan Hubicka  <hubicka@ucw.cz>
24767             Martin Jambor  <mjambor@suse.cz>
24769         * config.gcc: Add amdgcn*-*-amdhsa configuration.
24770         * configure.ac: Check for dlopen.
24771         * configure: Regenerate.
24773 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24774             Kwok Cheung Yeung  <kcy@codesourcery.com>
24775             Julian Brown  <julian@codesourcery.com>
24776             Tom de Vries  <tom@codesourcery.com>
24777             Jan Hubicka  <hubicka@ucw.cz>
24778             Martin Jambor  <mjambor@suse.cz>
24780         * common/config/gcn/gcn-common.c: New file.
24781         * config/gcn/driver-gcn.c: New file.
24782         * config/gcn/gcn-builtins.def: New file.
24783         * config/gcn/gcn-hsa.h: New file.
24784         * config/gcn/gcn-modes.def: New file.
24785         * config/gcn/gcn-opts.h: New file.
24786         * config/gcn/gcn-passes.def: New file.
24787         * config/gcn/gcn-protos.h: New file.
24788         * config/gcn/gcn-run.c: New file.
24789         * config/gcn/gcn-tree.c: New file.
24790         * config/gcn/gcn.c: New file.
24791         * config/gcn/gcn.h: New file.
24792         * config/gcn/gcn.opt: New file.
24793         * config/gcn/t-gcn-hsa: New file.
24795 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24796             Kwok Cheung Yeung  <kcy@codesourcery.com>
24797             Julian Brown  <julian@codesourcery.com>
24798             Tom de Vries  <tom@codesourcery.com>
24799             Jan Hubicka  <hubicka@ucw.cz>
24800             Martin Jambor  <mjambor@suse.cz>
24802         * config/gcn/constraints.md: New file.
24803         * config/gcn/gcn-valu.md: New file.
24804         * config/gcn/gcn.md: New file.
24805         * config/gcn/predicates.md: New file.
24807 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24809         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24810         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24811         (stmt_uses_0_or_null_in_undefined_way): Likewise.
24812         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24814 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
24816         PR target/88851
24817         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24818         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24819         it and document registers.
24821 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24823         * config/aarch64/aarch64.c (ares_tunings): Define.
24824         * config/aarch64/aarch64-cores.def (ares): Use the above.
24826 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
24828         PR target/88794
24829         Revert:
24830         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
24832         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24833         (_mm512_fixupimm_round_pd): Update parameters and builtin.
24834         (_mm512_maskz_fixupimm_round_pd): Ditto.
24835         (_mm512_fixupimm_round_ps): Ditto.
24836         (_mm512_maskz_fixupimm_round_ps): Ditto.
24837         (_mm_fixupimm_round_sd): Ditto.
24838         (_mm_maskz_fixupimm_round_sd): Ditto.
24839         (_mm_fixupimm_round_ss): Ditto.
24840         (_mm_maskz_fixupimm_round_ss): Ditto.
24841         (_mm512_fixupimm_pd): Ditto.
24842         (_mm512_maskz_fixupimm_pd): Ditto.
24843         (_mm512_fixupimm_ps): Ditto.
24844         (_mm512_maskz_fixupimm_ps): Ditto.
24845         (_mm_fixupimm_sd): Ditto.
24846         (_mm_maskz_fixupimm_sd): Ditto.
24847         (_mm_fixupimm_ss): Ditto.
24848         (_mm_maskz_fixupimm_ss): Ditto.
24849         (_mm512_mask_fixupimm_round_pd): Update builtin.
24850         (_mm512_mask_fixupimm_round_ps): Ditto.
24851         (_mm_mask_fixupimm_round_sd): Ditto.
24852         (_mm_mask_fixupimm_round_ss): Ditto.
24853         (_mm512_mask_fixupimm_pd): Ditto.
24854         (_mm512_mask_fixupimm_ps): Ditto.
24855         (_mm_mask_fixupimm_sd): Ditto.
24856         (_mm_mask_fixupimm_ss): Ditto.
24857         * config/i386/avx512vlintrin.h:
24858         (_mm256_fixupimm_pd): Update parameters and builtin.
24859         (_mm256_maskz_fixupimm_pd): Ditto.
24860         (_mm256_fixupimm_ps): Ditto.
24861         (_mm256_maskz_fixupimm_ps): Ditto.
24862         (_mm_fixupimm_pd): Ditto.
24863         (_mm_maskz_fixupimm_pd): Ditto.
24864         (_mm_fixupimm_ps): Ditto.
24865         (_mm_maskz_fixupimm_ps): Ditto.
24866         (_mm256_mask_fixupimm_pd): Update builtin.
24867         (_mm256_mask_fixupimm_ps): Ditto.
24868         (_mm_mask_fixupimm_pd): Ditto.
24869         (_mm_mask_fixupimm_ps): Ditto.
24870         * config/i386/i386-builtin-types.def: Add new types and remove
24871         useless ones.
24872         * config/i386/i386-builtin.def: Update builtin definitions.
24873         * config/i386/i386.c: Handle new builtin types and remove useless ones.
24874         * config/i386/sse.md: Update VFIXUPIMM* patterns.
24875         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24876         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24877         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
24878         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24879         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24880         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
24881         * config/i386/subst.md:
24882         (round_saeonly_sd_mask_operand4): Add new subst_attr.
24883         (round_saeonly_sd_mask_op4): Ditto.
24884         (round_saeonly_expand_operand5): Ditto.
24885         (round_saeonly_expand): Update.
24887 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
24889         PR target/88794
24890         Revert:
24891         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
24893         * config/i386/sse.md: Combine VFIXUPIMM* patterns
24894         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24895         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24896         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
24897         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24898         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24899         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
24901 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
24903         PR target/88794
24904         Revert:
24905         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
24907         PR target/88489
24908         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
24909         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
24910         instead of UNSPEC_FIXUPIMM.
24912 2019-01-17  Richard Biener  <rguenther@suse.de>
24914         PR lto/86736
24915         * dwarf2out.c (want_pubnames): Never generate pubnames sections
24916         and friends for the LTO part of debug info.
24918 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
24920         PR tree-optimization/86214
24921         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
24922         if x == y.
24924         PR rtl-optimization/88870
24925         * dce.c (deletable_insn_p): Never delete const/pure calls that can
24926         throw if we can't alter the cfg or delete dead exceptions.
24927         (mark_insn): Don't call find_call_stack_args for such calls.
24929 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
24931         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
24932         prototypes for vec_st.
24933         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
24934         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
24935         mainly on signed/unsigned long long and double.
24937 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
24939         PR target/88861
24940         * combine.c (delete_noop_moves): Convert to "bool" return,
24941         returning true if any edges are eliminated.
24942         (combine_instructions): Also return true if delete_noop_moves
24943         returns true.
24945 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
24947         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
24948         correct max nunits for endian swap.
24949         (aarch64_expand_fcmla_builtin): Correct subreg code.
24950         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24951         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
24952         lane endianness.
24954 2019-01-16  Uroš Bizjak  <ubizjak@gmail.com>
24956         * config/alpha/alpha.c (alpha_gimplify_va_arg):
24957         Handle split indirect COMPLEX_TYPE arguments.
24959 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
24961         PR target/86891
24962         * config/aarch64/aarch64-modes.def: Add comment about how the carry
24963         bit is set by add and compare.
24964         (CC_ADC): New CC_MODE.
24965         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
24966         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
24967         comparison.  Add detection for CC_ADCmode.
24968         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
24969         CC_ADCmode.
24970         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
24971         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
24972         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
24973         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
24974         to eliminate the need for zero-extending the operands.
24975         (add<mode>3_compareC_imm): Delete.  Merge into ...
24976         (add<mode>3_compareC): ... this.  Restructure the comparison to
24977         eliminate the need for zero-extending the operands.
24978         (add<mode>3_carryin): Use LTU for the overflow detection.
24979         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
24980         Reexpress comparison for overflow.
24981         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
24982         (add<mode>3_carryinC): Likewise.
24983         (add<mode>3_carryinV): Use LTU for carry between partials.
24984         * config/aarch64/predicates.md (aarch64_carry_operation): Update
24985         handling of CC_Cmode and add CC_ADCmode.
24986         (aarch64_borrow_operation): Likewise.
24988 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
24990         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
24991         Remove patternmode.
24992         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
24993         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
24994         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
24995         Remove endianness conversion.
24997 2019-01-16  Martin Liska  <mliska@suse.cz>
24999         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25000         for GCC driver.
25001         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25002         a new argument.
25003         * gcc.c (add_sysrooted_hdrs_prefix): New function.
25004         (path_prefix_reset): Move up in the source file.
25005         (find_fortran_preinclude_file): Make complex search for the
25006         fortran header files.
25008 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
25010         * godump.c (go_output_typedef): When outputting a typedef, refer
25011         to the underlying type by its name and not its structure.
25013 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
25015         PR c++/88795
25016         * tree.c (build_function_type): Assert that arg_types is not
25017         error_mark_node.
25019 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
25021         PR inline-asm/52813
25022         * doc/extend.texi: Document that listing the stack pointer in the
25023         clobber list of an asm is a deprecated feature.
25024         * common.opt (Wdeprecated): Moved from c-family/c.opt.
25025         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25026         warning instead of an error for clobbers of the stack pointer.
25027         Add a note explaining why.
25029 2019-01-15  Richard Biener  <rguenther@suse.de>
25031         PR debug/88046
25032         * dwarf2out.c (gen_member_die): Do not generate inheritance
25033         DIEs late.
25035 2019-01-15  Richard Biener  <rguenther@suse.de>
25037         PR tree-optimization/88855
25038         * tree-if-conv.c (combine_blocks): Collect
25039         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25041 2019-01-15  Tom de Vries  <tdevries@suse.de>
25043         PR target/80547
25044         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25045         lhs == NULL_TREE for gang-level reduction.
25047 2019-01-15  Richard Biener  <rguenther@suse.de>
25048             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25050         PR ipa/88788
25051         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25052         return true if SSA_NAME is already marked in visited bitmap.
25053         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25055 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
25057         PR tree-optimization/88775
25058         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25059         equal == 0 equality pointer comparisons some more if compared in
25060         integral types and either one points to an automatic var and the
25061         other to a global, or we can prove at least one points to the middle
25062         or both point to start or both point to end.
25064 2019-01-14  Andi Kleen  <ak@linux.intel.com>
25066         * Makefile.in: Lower autofdo sampling rate by 10x.
25067         * Makefile.tpl: Dito.
25069 2019-01-14  Tom Honermann  <tom@honermann.net>
25071         * defaults.h: Define CHAR8_TYPE.
25073 2019-01-14  Martin Sebor  <msebor@redhat.com>
25075         PR target/88638
25076         * doc/extend.texi (Darwin Format Checks): Clarify.
25078 2019-01-14  Richard Biener  <rguenther@suse.de>
25080         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25081         whether we are in (simplify ...) or (match ...) context.
25083 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
25085         PR rtl-optimization/88796
25086         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25087         * cfgexpand.c (stack_protect_prologue): Initialize
25088         crtl->stack_protect_guard_decl.
25089         * function.c (stack_protect_epilogue): Use it instead of calling
25090         targetm.stack_protect_guard again.
25091         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25092         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25093         crtl->stack_protect_guard_decl.
25094         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25095         on the returned MEM_EXPR.
25097 2019-01-12  Tom de Vries  <tdevries@suse.de>
25099         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25100         vector length using -fopenacc-dim.
25102 2019-01-12  Tom de Vries  <tdevries@suse.de>
25104         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25105         lengths into account.
25107 2019-01-12  Svante Signell  <svante.signell@gmail.com>
25109         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25110         (TARGET_CAN_SPLIT_STACK): Define.
25111         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25113 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
25115         * params.def (inline-unit-growth): Set to 40.
25117 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
25119         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25121 2019-01-12  Tom de Vries  <tdevries@suse.de>
25123         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25124         region calling vector-partitionable routine, set default_vector_length
25125         to WARP_SIZE.
25127 2019-01-12  Tom de Vries  <tdevries@suse.de>
25129         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25130         variable default_vector_length.
25132 2019-01-12  Tom de Vries  <tdevries@suse.de>
25134         PR middle-end/88703
25135         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25136         from oacc_default_dims, as oacc_validate_dims would do it, and apply
25137         dimensions limits.
25139 2019-01-12  Tom de Vries  <tdevries@suse.de>
25141         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25142         (nvptx_goacc_validate_dims): Add used parameter.
25143         * doc/tm.texi: Regenerate.
25144         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25145         argument to call to targetm.goacc.validate_dims.
25146         (default_goacc_validate_dims): Add used
25147         parameter.
25148         * target.def (validate_dims): Add used parameter in DEFHOOK.
25149         * targhooks.h (default_goacc_validate_dims): Add used parameter.
25151 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25153         PR middle-end/85956
25154         PR lto/88733
25155         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25156         field.
25157         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
25158         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25159         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25160         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25162 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
25164         PR rtl-optimization/87305
25165         * lra-assigns.c
25166         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25167         for little endian pseudos used as paradoxical subreg.
25169 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25171         PR tree-optimization/88693
25172         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25173         for STRING_CSTs that don't contain any NUL characters in the first
25174         TREE_STRING_LENGTH bytes.
25176 2019-01-11  Alan Modra  <amodra@gmail.com>
25178         PR 88777
25179         PR 88614
25180         * genattrtab.c (min_fn): Don't translate values.
25181         (min_attr_value): Return INT_MAX when the value can't be calculated.
25182         Return minimum among any values that can be calculated.
25183         (max_attr_value): Adjust.
25185 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25187         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25189 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
25191         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25192         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25193         (aarch64_return_call_with_max_clobbers): New function.
25194         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25195         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25196         argument.
25197         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25198         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25199         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25200         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25201         * cselib.c (cselib_process_insn): Add argument to
25202         targetm.hard_regno_call_part_clobbered call.
25203         * ira-conflicts.c (ira_build_conflicts): Ditto.
25204         * ira-costs.c (ira_tune_allocno_costs): Ditto.
25205         * lra-constraints.c (inherit_reload_reg): Ditto.
25206         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25207         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25208         argument.  Call targetm.return_call_with_max_clobbers.
25209         Add argument to targetm.hard_regno_call_part_clobbered call.
25210         (calls_have_same_clobbers_p): New function.
25211         (process_bb_lives): Add call_insn and last_call_insn variables.
25212         Pass call_insn to check_pseudos_live_through_calls.
25213         Modify if stmt to check targetm.return_call_with_max_clobbers.
25214         Update setting of flush variable.
25215         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25216         to false.
25217         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25218         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25219         targetm.hard_regno_call_part_clobbered call.
25220         * reginfo.c (choose_hard_reg_mode): Ditto.
25221         * regrename.c (check_new_reg_p): Ditto.
25222         * reload.c (find_equiv_reg): Ditto.
25223         * reload1.c (emit_reload_insns): Ditto.
25224         * sched-deps.c (deps_analyze_insn): Ditto.
25225         * sel-sched.c (init_regs_for_mode): Ditto.
25226         (mark_unavailable_hard_regs): Ditto.
25227         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25228         * target.def (hard_regno_call_part_clobbered): Add insn argument.
25229         (return_call_with_max_clobbers): New target function.
25230         * doc/tm.texi: Regenerate.
25231         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25232         * hooks.c (hook_bool_uint_mode_false): Change to
25233         hook_bool_insn_uint_mode_false.
25234         * hooks.h (hook_bool_uint_mode_false): Ditto.
25236 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
25238         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25239         (aarch64_remove_extra_call_preserved_regs): New function.
25240         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25241         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25242         * doc/tm.texi: Regenerate.
25243         * final.c (get_call_reg_set_usage): Call new hook.
25244         * target.def (remove_extra_call_preserved_regs): New hook.
25245         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25246         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25248 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25250         PR bootstrap/88714
25251         * passes.c (finish_optimization_passes): Call print_combine_total_stats
25252         inside of pass_combine_1 dump rather than pass_profile_1.
25254 2019-01-11  Tom de Vries  <tdevries@suse.de>
25256         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25257         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25258         (PTX_NUM_PER_WORKER_BARRIERS): Define.
25259         (nvptx_apply_dim_limits): Prevent vector_length 64 and
25260         num_workers 16.
25262 2019-01-11  Tom de Vries  <tdevries@suse.de>
25264         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25266 2019-01-11  Jan Beulich  <jbeulich@suse.com>
25268         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25269         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25270         sse2_cvtsi2sd): Add {l}.
25271         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25272         syntax.
25274 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
25276         PR target/88785
25277         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25278         define_expand.
25279         (*float<floatunssuffix>v2div2sf2): New define_insn.
25280         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25281         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25282         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25283         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25284         match_operands with "const0_operand" "C".
25286 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
25288         * config/aarch64/aarch64-builtins.c
25289         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25290         (aarch64_init_simd_builtins): ...Here
25292 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
25294         PR rtl-optimization/87305
25295         * lra-assigns.c
25296         (setup_live_pseudos_and_spill_after_risky_transforms): Check
25297         allocation for big endian pseudos used as paradoxical subregs and
25298         spill them if it is wrong.
25299         * lra-constraints.c (lra_constraints): Add a comment.
25301 2019-01-10  Richard Biener  <rguenther@suse.de>
25303         PR tree-optimization/88792
25304         * tree-ssa-pre.c (get_representative_for): Do not return a
25305         value-number here.
25307 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
25309         PR middle-end/84877
25310         PR bootstrap/88450
25311         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25312         (assign_parm_setup_block): Do the argument slot realignment here
25313         instead.
25315 2019-01-10  Stefan Agner  <stefan@agner.ch>
25317         PR target/88648
25318         * config/arm/arm.c (arm_option_override_internal): Force
25319         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25321 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
25323         PR c/88568
25324         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25325         DECL_EXTERNAL.
25327 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
25329         * config/arm/arm-builtins.c
25330         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25331         (MAC_LANE_PAIR_QUALIFIERS): New.
25332         (arm_expand_builtin_args): Use it.
25333         (arm_expand_builtin_1): Likewise.
25334         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25335         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25336         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25337         * config/arm/arm_neon.h:
25338         (vcadd_rot90_f16): New.
25339         (vcaddq_rot90_f16): New.
25340         (vcadd_rot270_f16): New.
25341         (vcaddq_rot270_f16): New.
25342         (vcmla_f16): New.
25343         (vcmlaq_f16): New.
25344         (vcmla_lane_f16): New.
25345         (vcmla_laneq_f16): New.
25346         (vcmlaq_lane_f16): New.
25347         (vcmlaq_laneq_f16): New.
25348         (vcmla_rot90_f16): New.
25349         (vcmlaq_rot90_f16): New.
25350         (vcmla_rot90_lane_f16): New.
25351         (vcmla_rot90_laneq_f16): New.
25352         (vcmlaq_rot90_lane_f16): New.
25353         (vcmlaq_rot90_laneq_f16): New.
25354         (vcmla_rot180_f16): New.
25355         (vcmlaq_rot180_f16): New.
25356         (vcmla_rot180_lane_f16): New.
25357         (vcmla_rot180_laneq_f16): New.
25358         (vcmlaq_rot180_lane_f16): New.
25359         (vcmlaq_rot180_laneq_f16): New.
25360         (vcmla_rot270_f16): New.
25361         (vcmlaq_rot270_f16): New.
25362         (vcmla_rot270_lane_f16): New.
25363         (vcmla_rot270_laneq_f16): New.
25364         (vcmlaq_rot270_lane_f16): New.
25365         (vcmlaq_rot270_laneq_f16): New.
25366         (vcadd_rot90_f32): New.
25367         (vcaddq_rot90_f32): New.
25368         (vcadd_rot270_f32): New.
25369         (vcaddq_rot270_f32): New.
25370         (vcmla_f32): New.
25371         (vcmlaq_f32): New.
25372         (vcmla_lane_f32): New.
25373         (vcmla_laneq_f32): New.
25374         (vcmlaq_lane_f32): New.
25375         (vcmlaq_laneq_f32): New.
25376         (vcmla_rot90_f32): New.
25377         (vcmlaq_rot90_f32): New.
25378         (vcmla_rot90_lane_f32): New.
25379         (vcmla_rot90_laneq_f32): New.
25380         (vcmlaq_rot90_lane_f32): New.
25381         (vcmlaq_rot90_laneq_f32): New.
25382         (vcmla_rot180_f32): New.
25383         (vcmlaq_rot180_f32): New.
25384         (vcmla_rot180_lane_f32): New.
25385         (vcmla_rot180_laneq_f32): New.
25386         (vcmlaq_rot180_lane_f32): New.
25387         (vcmlaq_rot180_laneq_f32): New.
25388         (vcmla_rot270_f32): New.
25389         (vcmlaq_rot270_f32): New.
25390         (vcmla_rot270_lane_f32): New.
25391         (vcmla_rot270_laneq_f32): New.
25392         (vcmlaq_rot270_lane_f32): New.
25393         (vcmlaq_rot270_laneq_f32): New.
25394         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25395         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25396         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25397         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25398         vcmlaq_lane270): New.
25399         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25400         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25401         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25402         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25403         (arm_option_reconfigure_globals): Use them.
25404         * config/arm/iterators.md (VDF, VQ_HSF): New.
25405         (VCADD, VCMLA): New.
25406         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25407         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25408         New.
25409         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25410         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25412 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
25414         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25415         Add qualifier_lane_pair_index.
25416         (emit-rtl.h): Include.
25417         (TYPES_QUADOP_LANE_PAIR): New.
25418         (aarch64_simd_expand_args): Use it.
25419         (aarch64_simd_expand_builtin): Likewise.
25420         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25421         New.
25422         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25423         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25424         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25425         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25426         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25427         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25428         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25429         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25430         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25431         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25432         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25433         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25434         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25435         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25436         Add __ARM_FEATURE_COMPLEX.
25437         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25438         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25439         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25440         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25441         fcmlaq_lane270): New.
25442         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25443         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25444         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25445         * config/aarch64/arm_neon.h:
25446         (vcadd_rot90_f16): New.
25447         (vcaddq_rot90_f16): New.
25448         (vcadd_rot270_f16): New.
25449         (vcaddq_rot270_f16): New.
25450         (vcmla_f16): New.
25451         (vcmlaq_f16): New.
25452         (vcmla_lane_f16): New.
25453         (vcmla_laneq_f16): New.
25454         (vcmlaq_lane_f16): New.
25455         (vcmlaq_rot90_lane_f16): New.
25456         (vcmla_rot90_laneq_f16): New.
25457         (vcmla_rot90_lane_f16): New.
25458         (vcmlaq_rot90_f16): New.
25459         (vcmla_rot90_f16): New.
25460         (vcmlaq_laneq_f16): New.
25461         (vcmla_rot180_laneq_f16): New.
25462         (vcmla_rot180_lane_f16): New.
25463         (vcmlaq_rot180_f16): New.
25464         (vcmla_rot180_f16): New.
25465         (vcmlaq_rot90_laneq_f16): New.
25466         (vcmlaq_rot270_laneq_f16): New.
25467         (vcmlaq_rot270_lane_f16): New.
25468         (vcmla_rot270_laneq_f16): New.
25469         (vcmlaq_rot270_f16): New.
25470         (vcmla_rot270_f16): New.
25471         (vcmlaq_rot180_laneq_f16): New.
25472         (vcmlaq_rot180_lane_f16): New.
25473         (vcmla_rot270_lane_f16): New.
25474         (vcadd_rot90_f32): New.
25475         (vcaddq_rot90_f32): New.
25476         (vcaddq_rot90_f64): New.
25477         (vcadd_rot270_f32): New.
25478         (vcaddq_rot270_f32): New.
25479         (vcaddq_rot270_f64): New.
25480         (vcmla_f32): New.
25481         (vcmlaq_f32): New.
25482         (vcmlaq_f64): New.
25483         (vcmla_lane_f32): New.
25484         (vcmla_laneq_f32): New.
25485         (vcmlaq_lane_f32): New.
25486         (vcmlaq_laneq_f32): New.
25487         (vcmla_rot90_f32): New.
25488         (vcmlaq_rot90_f32): New.
25489         (vcmlaq_rot90_f64): New.
25490         (vcmla_rot90_lane_f32): New.
25491         (vcmla_rot90_laneq_f32): New.
25492         (vcmlaq_rot90_lane_f32): New.
25493         (vcmlaq_rot90_laneq_f32): New.
25494         (vcmla_rot180_f32): New.
25495         (vcmlaq_rot180_f32): New.
25496         (vcmlaq_rot180_f64): New.
25497         (vcmla_rot180_lane_f32): New.
25498         (vcmla_rot180_laneq_f32): New.
25499         (vcmlaq_rot180_lane_f32): New.
25500         (vcmlaq_rot180_laneq_f32): New.
25501         (vcmla_rot270_f32): New.
25502         (vcmlaq_rot270_f32): New.
25503         (vcmlaq_rot270_f64): New.
25504         (vcmla_rot270_lane_f32): New.
25505         (vcmla_rot270_laneq_f32): New.
25506         (vcmlaq_rot270_lane_f32): New.
25507         (vcmlaq_rot270_laneq_f32): New.
25508         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25509         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25510         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25511         (FCADD, FCMLA): New.
25512         (rot): New.
25513         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25515 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
25517         PR other/16615
25519         * config/pa/pa.c: Change "can not" to "cannot".
25520         * gimple-ssa-evrp-analyze.c: Likewise.
25521         * ipa-icf.c: Likewise.
25522         * ipa-polymorphic-call.c: Likewise.
25523         * ipa-pure-const.c: Likewise.
25524         * lra-constraints.c: Likewise.
25525         * lra-remat.c: Likewise.
25526         * reload1.c: Likewise.
25527         * reorg.c: Likewise.
25528         * tree-ssa-uninit.c: Likewise.
25530 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
25532         PR other/16615
25534         * Makefile.in: Mechanically replace "can not" with "cannot".
25535         * alias.c: Likewise.
25536         * builtins.c: Likewise.
25537         * calls.c: Likewise.
25538         * cgraph.c: Likewise.
25539         * cgraph.h: Likewise.
25540         * cgraphclones.c: Likewise.
25541         * cgraphunit.c: Likewise.
25542         * combine-stack-adj.c: Likewise.
25543         * combine.c: Likewise.
25544         * common/config/i386/i386-common.c: Likewise.
25545         * config/aarch64/aarch64.c: Likewise.
25546         * config/alpha/sync.md: Likewise.
25547         * config/arc/arc.c: Likewise.
25548         * config/arc/predicates.md: Likewise.
25549         * config/arm/arm-c.c: Likewise.
25550         * config/arm/arm.c: Likewise.
25551         * config/arm/arm.h: Likewise.
25552         * config/arm/arm.md: Likewise.
25553         * config/arm/cortex-r4f.md: Likewise.
25554         * config/csky/csky.c: Likewise.
25555         * config/csky/csky.h: Likewise.
25556         * config/darwin-f.c: Likewise.
25557         * config/epiphany/epiphany.md: Likewise.
25558         * config/i386/i386.c: Likewise.
25559         * config/i386/sol2.h: Likewise.
25560         * config/m68k/m68k.c: Likewise.
25561         * config/mcore/mcore.h: Likewise.
25562         * config/microblaze/microblaze.md: Likewise.
25563         * config/mips/20kc.md: Likewise.
25564         * config/mips/sb1.md: Likewise.
25565         * config/nds32/nds32.c: Likewise.
25566         * config/nds32/predicates.md: Likewise.
25567         * config/pa/pa.c: Likewise.
25568         * config/rs6000/e300c2c3.md: Likewise.
25569         * config/rs6000/rs6000.c: Likewise.
25570         * config/s390/s390.h: Likewise.
25571         * config/sh/sh.c: Likewise.
25572         * config/sh/sh.md: Likewise.
25573         * config/spu/vmx2spu.h: Likewise.
25574         * cprop.c: Likewise.
25575         * dbxout.c: Likewise.
25576         * df-scan.c: Likewise.
25577         * doc/cfg.texi: Likewise.
25578         * doc/extend.texi: Likewise.
25579         * doc/fragments.texi: Likewise.
25580         * doc/gty.texi: Likewise.
25581         * doc/invoke.texi: Likewise.
25582         * doc/lto.texi: Likewise.
25583         * doc/md.texi: Likewise.
25584         * doc/objc.texi: Likewise.
25585         * doc/rtl.texi: Likewise.
25586         * doc/tm.texi: Likewise.
25587         * dse.c: Likewise.
25588         * emit-rtl.c: Likewise.
25589         * emit-rtl.h: Likewise.
25590         * except.c: Likewise.
25591         * expmed.c: Likewise.
25592         * expr.c: Likewise.
25593         * fold-const.c: Likewise.
25594         * genautomata.c: Likewise.
25595         * gimple-fold.c: Likewise.
25596         * hard-reg-set.h: Likewise.
25597         * ifcvt.c: Likewise.
25598         * ipa-comdats.c: Likewise.
25599         * ipa-cp.c: Likewise.
25600         * ipa-devirt.c: Likewise.
25601         * ipa-fnsummary.c: Likewise.
25602         * ipa-icf.c: Likewise.
25603         * ipa-inline-transform.c: Likewise.
25604         * ipa-inline.c: Likewise.
25605         * ipa-polymorphic-call.c: Likewise.
25606         * ipa-profile.c: Likewise.
25607         * ipa-prop.c: Likewise.
25608         * ipa-pure-const.c: Likewise.
25609         * ipa-reference.c: Likewise.
25610         * ipa-split.c: Likewise.
25611         * ipa-visibility.c: Likewise.
25612         * ipa.c: Likewise.
25613         * ira-build.c: Likewise.
25614         * ira-color.c: Likewise.
25615         * ira-conflicts.c: Likewise.
25616         * ira-costs.c: Likewise.
25617         * ira-int.h: Likewise.
25618         * ira-lives.c: Likewise.
25619         * ira.c: Likewise.
25620         * ira.h: Likewise.
25621         * loop-invariant.c: Likewise.
25622         * loop-unroll.c: Likewise.
25623         * lower-subreg.c: Likewise.
25624         * lra-assigns.c: Likewise.
25625         * lra-constraints.c: Likewise.
25626         * lra-eliminations.c: Likewise.
25627         * lra-lives.c: Likewise.
25628         * lra-remat.c: Likewise.
25629         * lra-spills.c: Likewise.
25630         * lra.c: Likewise.
25631         * lto-cgraph.c: Likewise.
25632         * lto-streamer-out.c: Likewise.
25633         * postreload-gcse.c: Likewise.
25634         * predict.c: Likewise.
25635         * profile-count.h: Likewise.
25636         * profile.c: Likewise.
25637         * recog.c: Likewise.
25638         * ree.c: Likewise.
25639         * reload.c: Likewise.
25640         * reload1.c: Likewise.
25641         * reorg.c: Likewise.
25642         * resource.c: Likewise.
25643         * rtl.def: Likewise.
25644         * rtl.h: Likewise.
25645         * rtlanal.c: Likewise.
25646         * sched-deps.c: Likewise.
25647         * sched-ebb.c: Likewise.
25648         * sched-rgn.c: Likewise.
25649         * sel-sched-ir.c: Likewise.
25650         * sel-sched.c: Likewise.
25651         * shrink-wrap.c: Likewise.
25652         * simplify-rtx.c: Likewise.
25653         * symtab.c: Likewise.
25654         * target.def: Likewise.
25655         * toplev.c: Likewise.
25656         * tree-call-cdce.c: Likewise.
25657         * tree-cfg.c: Likewise.
25658         * tree-complex.c: Likewise.
25659         * tree-core.h: Likewise.
25660         * tree-eh.c: Likewise.
25661         * tree-inline.c: Likewise.
25662         * tree-loop-distribution.c: Likewise.
25663         * tree-nrv.c: Likewise.
25664         * tree-profile.c: Likewise.
25665         * tree-sra.c: Likewise.
25666         * tree-ssa-alias.c: Likewise.
25667         * tree-ssa-dce.c: Likewise.
25668         * tree-ssa-dom.c: Likewise.
25669         * tree-ssa-forwprop.c: Likewise.
25670         * tree-ssa-loop-im.c: Likewise.
25671         * tree-ssa-loop-ivcanon.c: Likewise.
25672         * tree-ssa-loop-ivopts.c: Likewise.
25673         * tree-ssa-loop-niter.c: Likewise.
25674         * tree-ssa-phionlycprop.c: Likewise.
25675         * tree-ssa-phiopt.c: Likewise.
25676         * tree-ssa-propagate.c: Likewise.
25677         * tree-ssa-threadedge.c: Likewise.
25678         * tree-ssa-threadupdate.c: Likewise.
25679         * tree-ssa-uninit.c: Likewise.
25680         * tree-ssanames.c: Likewise.
25681         * tree-streamer-out.c: Likewise.
25682         * tree.c: Likewise.
25683         * tree.h: Likewise.
25684         * vr-values.c: Likewise.
25686 2019-01-09  Uroš Bizjak  <ubizjak@gmail.com>
25688         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25689         (ix86_split_xorsign): Ditto.
25690         * config/i386/i386.c (ix86_expand_xorsign): New function.
25691         (ix86_split_xorsign): Ditto.
25692         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25693         (xorsign<mode>3): New expander.
25694         (xorsign<mode>3_1): New insn_and_split pattern.
25695         * config/i386/sse.md (xorsign<mode>3): New expander.
25697 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
25699         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25700         (*tablejump_sp64): Likewise.
25701         (*tablejump<P:mode>): ...this.
25702         (*call_address_sp32): Merge into...
25703         (*call_address_sp64): Likewise.
25704         (*call_address<P:mode>): ...this.
25705         (*call_symbolic_sp32): Merge into...
25706         (*call_symbolic_sp64): Likewise.
25707         (*call_symbolic<P:mode>): ...this.
25708         (call_value): Remove constraint and add predicate.
25709         (*call_value_address_sp32): Merge into...
25710         (*call_value_address_sp64): Likewise.
25711         (*call_value_address<P:mode>): ...this.
25712         (*call_value_symbolic_sp32): Merge into...
25713         (*call_value_symbolic_sp64): Likewise.
25714         (*call_value_symbolic<P:mode>): ...this.
25715         (*sibcall_symbolic_sp32): Merge into...
25716         (*sibcall_symbolic_sp64): Likewise.
25717         (*sibcall_symbolic<P:mode>): ...this.
25718         (sibcall_value): Remove constraint and add predicate.
25719         (*sibcall_value_symbolic_sp32): Merge into...
25720         (*sibcall_value_symbolic_sp64): Likewise.
25721         (*sibcall_value_symbolic<P:mode>): ...this.
25722         (window_save): Minor tweak.
25723         (*branch_sp32): Merge into...
25724         (*branch_sp64): Likewise.
25725         (*branch<P:mode>): ...this.
25727 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
25728             James Clarke  <jrtc27@jrtc27.com>
25730         PR target/84010
25731         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25732         consistently in TLS address generation and adjust code to the renaming
25733         of patterns.  Mark calls to __tls_get_addr as const.
25734         * config/sparc/sparc.md (tgd_hi22): Turn into...
25735         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25736         (tgd_lo10): Turn into...
25737         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25738         (tgd_add32): Merge into...
25739         (tgd_add64): Likewise.
25740         (tgd_add<P:mode>): ...this and use Pmode throughout.
25741         (tldm_hi22): Turn into...
25742         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25743         (tldm_lo10): Turn into...
25744         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25745         (tldm_add32): Merge into...
25746         (tldm_add64): Likewise.
25747         (tldm_add<P:mode>): ...this and use Pmode throughout.
25748         (tldm_call32): Merge into...
25749         (tldm_call64): Likewise.
25750         (tldm_call<P:mode>): ...this and use Pmode throughout.
25751         (tldo_hix22): Turn into...
25752         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25753         (tldo_lox10): Turn into...
25754         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25755         (tldo_add32): Merge into...
25756         (tldo_add64): Likewise.
25757         (tldo_add<P:mode>): ...this and use Pmode throughout.
25758         (tie_hi22): Turn into...
25759         (tie_hi22<P:mode>): ...this and use Pmode throughout.
25760         (tie_lo10): Turn into...
25761         (tie_lo10<P:mode>): ...this and use Pmode throughout.
25762         (tie_ld64): Use DImode throughout.
25763         (tie_add32): Merge into...
25764         (tie_add64): Likewise.
25765         (tie_add<P:mode>): ...this and use Pmode throughout.
25766         (tle_hix22_sp32): Merge into...
25767         (tle_hix22_sp64): Likewise.
25768         (tle_hix22<P:mode>): ...this and use Pmode throughout.
25769         (tle_lox22_sp32): Merge into...
25770         (tle_lox22_sp64): Likewise.
25771         (tle_lox22<P:mode>): ...this and use Pmode throughout.
25772         (*tldo_ldub_sp32): Merge into...
25773         (*tldo_ldub_sp64): Likewise.
25774         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25775         (*tldo_ldub1_sp32): Merge into...
25776         (*tldo_ldub1_sp64): Likewise.
25777         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25778         (*tldo_ldub2_sp32): Merge into...
25779         (*tldo_ldub2_sp64): Likewise.
25780         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25781         (*tldo_ldsb1_sp32): Merge into...
25782         (*tldo_ldsb1_sp64): Likewise.
25783         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25784         (*tldo_ldsb2_sp32): Merge into...
25785         (*tldo_ldsb2_sp64): Likewise.
25786         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25787         (*tldo_ldub3_sp64): Use DImode throughout.
25788         (*tldo_ldsb3_sp64): Likewise.
25789         (*tldo_lduh_sp32): Merge into...
25790         (*tldo_lduh_sp64): Likewise.
25791         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25792         (*tldo_lduh1_sp32): Merge into...
25793         (*tldo_lduh1_sp64): Likewise.
25794         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25795         (*tldo_ldsh1_sp32): Merge into...
25796         (*tldo_ldsh1_sp64): Likewise.
25797         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25798         (*tldo_lduh2_sp64): Use DImode throughout.
25799         (*tldo_ldsh2_sp64): Likewise.
25800         (*tldo_lduw_sp32): Merge into...
25801         (*tldo_lduw_sp64): Likewise.
25802         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25803         (*tldo_lduw1_sp64): Use DImode throughout.
25804         (*tldo_ldsw1_sp64): Likewise.
25805         (*tldo_ldx_sp64): Likewise.
25806         (*tldo_stb_sp32): Merge into...
25807         (*tldo_stb_sp64): Likewise.
25808         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25809         (*tldo_sth_sp32): Merge into...
25810         (*tldo_sth_sp64): Likewise.
25811         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25812         (*tldo_stw_sp32): Merge into...
25813         (*tldo_stw_sp64): Likewise.
25814         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25815         (*tldo_stx_sp64): Use DImode throughout.
25817 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
25819         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25820         check configure option to set BTI and Return Address Signing.
25821         * configure.ac: Add --enable-standard-branch-protection and
25822         --disable-standard-branch-protection.
25823         * configure: Regenerated.
25824         * doc/install.texi: Document the same.
25826 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
25827             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25829         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25830         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25831         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25832         if bti is enabled.
25833         * config/aarch64/aarch64-bti-insert.c: New file.
25834         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25835         pass.
25836         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25837         new bti pass.
25838         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25839         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25840         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25841         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25843 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
25845         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25846         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25847         Disable bti for -mbranch-protection=none.
25848         (aarch64_handle_standard_branch_protection): Enable bti for
25849         -mbranch-protection=standard.
25850         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25851         -mbranch-protection.
25852         (aarch64_bti_enabled): Check if bti is enabled.
25853         * config/aarch64/aarch64.opt: Declare target variable.
25854         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25856 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
25858         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
25859         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
25860         (aarch64_expand_epilogue): Likewise.
25861         (aarch64_output_mi_thunk): Likewise.
25862         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
25863         TAILCALL_ADDR_REGS to x16 and x17.
25864         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
25866 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
25868         * config/aarch64/aarch64-option-extensions.def: Define
25869         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
25870         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
25871         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
25872         (AARCH64_FL_PREDRES): New.
25873         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
25874         AARCH64_FL_PREDRES by default.
25875         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
25877 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
25879         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
25880         ARMv8.5-A.
25881         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
25882         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
25883         * doc/invoke.texi: Document ARMv8.5-A.
25885 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
25887         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
25888         (xorsign<mode>3): Likewise.
25890 2019-01-09  Jelinek  <jakub@redhat.com>
25892         PR middle-end/88758
25893         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
25894         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
25896         PR rtl-optimization/88331
25897         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
25898         not currently_expanding_to_rtl.
25900 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
25902         * doc/invoke.texi (-Os): Remove trailing spaces.
25903         (-finline-functions): Remove reference to -O2.
25905 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
25907         PR rtl-optimization/79593
25908         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
25910         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
25911         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
25913 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
25915         PR bootstrap/88721
25916         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
25917         to -1 on entry.
25919         PR debug/88723
25920         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
25921         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
25923 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
25925         PR target/88717
25926         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
25927         ix86_avx_u128_mode_entry.
25929 2019-01-08  Martin Liska  <mliska@suse.cz>
25931         PR tree-optimization/88753
25932         * tree-switch-conversion.c (switch_conversion::build_one_array):
25933         Come up with local variable constructor.  Convert first to
25934         type of constructor values.
25936 2019-01-08  Richard Biener  <rguenther@suse.de>
25938         PR tree-optimization/86554
25939         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
25940         rpo_avail): Move earlier.
25941         (visit_nary_op): When value-numbering to expressions
25942         with different overflow behavior make sure there's an
25943         available expression on the path.
25945 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
25947         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
25948         aarch64_parse_branch_protection,
25949         struct aarch64_branch_protect_type,
25950         aarch64_handle_no_branch_protection,
25951         aarch64_handle_standard_branch_protection,
25952         aarch64_validate_mbranch_protection,
25953         aarch64_handle_pac_ret_protection,
25954         aarch64_handle_attr_branch_protection,
25955         accepted_branch_protection_string,
25956         aarch64_pac_ret_subtypes,
25957         aarch64_branch_protect_types,
25958         aarch64_handle_pac_ret_leaf): Define.
25959         (aarch64_override_options_after_change_1, aarch64_override_options):
25960         Add check for accepted_branch_protection_string.
25961         (aarch64_option_save): Save accepted_branch_protection_string.
25962         (aarch64_option_restore): Save accepted_branch_protection_string.
25963         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
25964         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
25965         msign-return-address.
25966         * doc/invoke.texi: Add mbranch-protection.
25968 2019-01-08  Alan Modra  <amodra@gmail.com>
25970         PR target/88614
25971         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
25972         Delete "unknownp" parameter.  Adjust callers.  Handle
25973         CONST_INT, PLUS, MINUS, and MULT.
25974         (attr_value_aligned): Renamed from or_attr_value.
25975         (min_attr_value): Return INT_MIN for unhandled rtl case..
25976         (min_fn): ..and translate to INT_MAX here.
25977         (write_length_unit_log): Modify to cope without "unknown".
25978         (write_attr_value): Handle IF_THEN_ELSE.
25980 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
25982         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
25983         optimization for masked stores.
25985 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
25987         PR middle-end/88567
25988         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
25989         output vector directly to duplicate_and_interleave instead of
25990         going through a temporary.  Postpone insertion of ctor_seq to
25991         the end of the loop.
25993 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
25995         PR target/86891
25996         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
25997         unsigned_p.  Handle signed and unsigned overflow correction as
25998         required.
25999         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26000         prototype.
26001         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26002         for operand 2.
26003         (add<mode>3_compareV_imm): Make this callable for expanding.
26004         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
26005         aarch64_plus_operand for operand 2.
26006         (subv<GPI:mode>_insn): New insn pattern.
26007         (subv<GPI:mode>_imm): Likewise.
26008         (negv<GPI:mode>3): New expand pattern.
26009         (negv<GPI:mode>_insn): New insn pattern.
26010         (negv<GPI:mode>_cmp_only): Likewise.
26011         (cmpv<GPI:mode>_insn): Likewise.
26012         (subvti4): Use register_operand for operand 1.  Update call to
26013         aarch64_expand_subvti.
26014         (usubvti4): Likewise.
26015         (negvti3): New expand pattern.
26016         (negdi_carryout): New insn pattern.
26017         (negvdi_carryinV): New insn pattern.
26018         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26019         version the named version.
26020         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26021         operands.
26022         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26023         patterns.
26024         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26025         patterns.
26026         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26027         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26028         (sub<mode>3_carryinCV): Delete.
26029         (sub<GPI:mode>3_carryinV): New expand pattern.
26030         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26032 2019-01-07  Richard Biener  <rguenther@suse.de>
26034         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26035         of tree_operand_hash.
26037 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
26039         PR tree-optimization/88598
26040         * tree.h (single_nonzero_element): Declare.
26041         * tree.c (single_nonzero_element): New function.
26042         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26043         if I is the only nonzero element of CST.
26045 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
26047         PR tree-optimization/88598
26048         * tree.h (initializer_each_zero_or_onep): Declare.
26049         * tree.c (initializer_each_zero_or_onep): New function.
26050         (signed_or_unsigned_type_for): Handle float types too.
26051         (unsigned_type_for, signed_type_for): Update comments accordingly.
26052         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26053         x & { 0 or -1, 0 or -1, ... }.
26055 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
26057         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26058         with x86_64-pc-linux-gnu.
26060 2019-01-07  Tom de Vries  <tdevries@suse.de>
26062         PR target/85486
26063         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26064         function.
26065         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26066         routines.
26068 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
26070         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26071         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26072         TARGET_AVX512F as condition.
26074         PR debug/88723
26075         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26076         const_not_ok_for_debug_p target hook.
26077         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26078         on UNSPEC and subexpressions thereof if all subexpressions of the
26079         UNSPEC are CONSTANT_P.
26081         PR tree-optimization/88676
26082         * tree-ssa-phiopt.c (two_value_replacement): New function.
26083         (tree_ssa_phiopt_worker): Call it.
26085         PR sanitizer/88619
26086         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26087         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26089         PR c++/85052
26090         * tree-vect-generic.c: Include insn-config.h and recog.h.
26091         (expand_vector_piecewise): Add defaulted ret_type argument,
26092         if non-NULL, use that in preference to type for the result type.
26093         (expand_vector_parallel): Formatting fix.
26094         (do_vec_conversion, do_vec_narrowing_conversion,
26095         expand_vector_conversion): New functions.
26096         (expand_vector_operations_1): Call expand_vector_conversion
26097         for VEC_CONVERT ifn calls.
26098         * internal-fn.def (VEC_CONVERT): New internal function.
26099         * internal-fn.c (expand_VEC_CONVERT): New function.
26100         * fold-const-call.c (fold_const_vec_convert): New function.
26101         (fold_const_call): Use it for CFN_VEC_CONVERT.
26102         * doc/extend.texi (__builtin_convertvector): Document.
26104 2019-01-07  Tom de Vries  <tdevries@suse.de>
26106         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26107         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26108         vector_red_partition, vector_red_sym): New global variables.
26109         (nvptx_option_override): Initialize vector_red_sym.
26110         (nvptx_declare_function_name): Restore red_partition register.
26111         (nvptx_file_end): Emit code to declare the vector reduction variables.
26112         (nvptx_output_red_partition): New function.
26113         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26114         large vector reductions.
26115         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26116         (nvptx_init_builtins): Add VECTOR_ADDR.
26117         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26118         Handle nvptx_expand_shared_addr.
26119         (nvptx_get_shared_red_addr): Add vector argument and handle large
26120         vectors.
26121         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26122         large vectors.
26123         (nvptx_goacc_reduction_init): Likewise.
26124         (nvptx_goacc_reduction_fini): Likewise.
26125         (nvptx_goacc_reduction_teardown): Likewise.
26126         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26127         init,fini,teardown}.
26128         (nvptx_init_axis_predicate): Initialize vector_red_partition.
26129         (nvptx_set_current_function): Init vector_red_partition.
26130         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26131         (nvptx_red_partition): New insn.
26132         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26134 2019-01-07  Tom de Vries  <tdevries@suse.de>
26136         PR target/85381
26137         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26138         empty loops.
26140 2019-01-07  Tom de Vries  <tdevries@suse.de>
26142         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26143         (nvptx_option_override): Init oacc_bcast_partition.
26144         (nvptx_init_oacc_workers): New function.
26145         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26146         (nvptx_needs_shared_bcast): New function.
26147         (nvptx_find_par): Generalize to enable vectors to use shared-memory
26148         to propagate state.
26149         (nvptx_shared_propagate): Initialize vector bcast partition and
26150         synchronization state.
26151         (nvptx_single): Generalize to enable vectors to use shared-memory
26152         to propagate state.
26153         (nvptx_process_pars): Likewise.
26154         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26155         * config/nvptx/nvptx.h (struct machine_function): Add
26156         bcast_partition and sync_bar members.
26158 2019-01-07  Tom de Vries  <tdevries@suse.de>
26160         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26161         (nvptx_apply_dim_limits): New function.
26162         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26163         PTX_WARP_SIZE.
26165 2019-01-07  Tom de Vries  <tdevries@suse.de>
26167         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26168         as late as possible.
26170 2019-01-07  Tom de Vries  <tdevries@suse.de>
26172         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26173         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26174         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26175         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26176         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26178 2019-01-07  Tom de Vries  <tdevries@suse.de>
26180         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26182 2019-01-07  Tom de Vries  <tdevries@suse.de>
26184         * omp-offload.c (oacc_get_min_dim): New function.
26185         * omp-offload.h (oacc_get_min_dim): Declare.
26187 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
26189         PR target/88521
26190         * config/i386/i386.c (function_value_ms_64): Return small sturct in
26191         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26193 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26195         PR tree-opt/86020
26196         Revert:
26197         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
26199         * ipa-inline.c (edge_badness): Use inlined_time instead of
26200         inline_summaries->get.
26202 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26204         * opts.c (enable_fdo_optimizations): Enable
26205         version-loops-for-strides, loop-interchange, unrol-and-jam
26206         and tree-loop-distribution.
26207         * invoke.texi: Document newly enabled options.
26209 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26211         * doc/invoke.texi (max-inline-insns-small): New parameters.
26212         * ipa-inline.c (want_early_inline_function_p): simplify.
26213         (want_inline_small_function_p): Fix pasto from previous patch;
26214         use max-inline-insns-small bound.
26215         * params.def (max-inline-insns-small): New param.
26216         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26217         variables correctly.
26219 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26221         * doc/invoke.texi: Document max-inline-insns-size,
26222         uninlined-function-insns, uninlined-function-time,
26223         uninlined-thunk-insns and uninlined-thunk-time.
26224         * params.def: Add max-inline-insns-size,
26225         uninlined-function-insns, uninlined-function-time,
26226         uninlined-thunk-insns and uninlined-thunk-time.
26227         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26228         new parameters.
26229         * ipa-inline.c (can_inline_edge_by_limits_p,
26230         want_inline_small_function_p): Use new parameters.
26232 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26234         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26236 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
26238         PR middle-end/82564
26239         PR target/88620
26240         * expr.c (expand_assignment): For calls returning VLA structures
26241         if to_rtx is not a MEM, force it into a stack temporary.
26243         PR debug/88635
26244         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26245         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26246         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26247         subexpressions of both operands.
26248         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26249         subrtxes are CONSTANT_P.
26250         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26251         2018-11-09 changes.
26253 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
26255         * params.def (hot-bb-count-ws-permille): Set to 990.
26257 2019-01-04  Martin Sebor  <msebor@redhat.com>
26259         PR c/88546
26260         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26261         leaf.
26263 2019-01-04  Martin Sebor  <msebor@redhat.com>
26265         PR c/88363
26266         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26268 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
26270         * gdbinit.in: Turn off pagination for the skip commands, restore
26271         it to previous state afterwards.
26273 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
26275         PR target/88594
26276         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26277         of GET_MODE (opN) as modes of the libcall arguments.
26279 2019-01-04  Jan Beulich  <jbeulich@suse.com>
26281         * config/i386/sse.md
26282         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26283         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26284         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26285         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26286         avx512f_vmcmp<mode>3<round_saeonly_name>,
26287         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26288         avx512f_maskcmp<mode>3,
26289         <avx512>_cvt<ssemodesuffix>2mask<mode>,
26290         <avx512>_cvt<ssemodesuffix>2mask<mode>,
26291         *<avx512>_cvtmask2<ssemodesuffix><mode>,
26292         *<avx512>_cvtmask2<ssemodesuffix><mode>,
26293         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26294         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26295         <avx512>_gt<mode>3<mask_scalar_merge_name>,
26296         <avx512>_gt<mode>3<mask_scalar_merge_name>,
26297         <avx512>_testm<mode>3<mask_scalar_merge_name>,
26298         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26299         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26300         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26301         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26302         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26303         avx512cd_maskb_vec_dup<mode>,
26304         avx512cd_maskw_vec_dup<mode>,
26305         avx512dq_fpclass<mode><mask_scalar_merge_name>,
26306         avx512dq_vmfpclass<mode>,
26307         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26308         instead of =Yk.
26310 2019-01-03  Martin Sebor  <msebor@redhat.com>
26312         PR tree-optimization/88659
26313         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26315 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
26317         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26318         unaligned vsx and avoid lxvd2x/stxvd2x.
26319         (gen_lvx_v4si_move): New function.
26321 2019-01-03  Tom de Vries  <tdevries@suse.de>
26323         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26324         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26325         function.
26326         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26328 2019-01-03  Tom de Vries  <tdevries@suse.de>
26330         * config/nvptx/nvptx.c (struct offload_attrs): New.
26331         (populate_offload_attrs): New function.  Factor mask extraction out of
26332         nvptx_reorg.  Add extraction of dimensions.
26333         (nvptx_reorg): Use populate_offload_attrs.
26335 2019-01-03  Tom de Vries  <tdevries@suse.de>
26337         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26338         cases for oacc_min_dims_p and routine_p.  Add asserts for
26339         oacc_default_dims_p and offload_region_p.
26341 2019-01-03  Tom de Vries  <tdevries@suse.de>
26343         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26344         factored out of ...
26345         (nvptx_goacc_validate_dims): ... here.
26347 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
26349         PR tree-optimization/85574
26350         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26351         structure.
26352         (struct ssa_equip_hash_traits): Declare.
26353         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26355 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
26357         PR debug/88644
26358         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26359         change it to qualified_type.
26361 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
26363         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26364         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26366 2019-01-02  Martin Sebor  <msebor@redhat.com>
26367             Jeff Law  <law@redhat.com>
26369         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26370         (get_range_strlen_tree): Update appropriately.
26371         (get_range_strlen)
26372         * gimple-fold.h (get_range_strlen): Drop unused last argument.
26374         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26375         rather than set_range_info.
26376         * tree-ssa-strlen.c (set_strlen_range): Extracted from
26377         maybe_set_strlen_range.  Handle potentially boundary crossing
26378         cases more conservatively.
26379         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26380         Call set_strlen_range.
26381         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26383         PR middle-end/88663
26384         * gimple-fold.c (get_range_strlen): Update prototype to no longer
26385         need the flexp argument.
26386         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
26387         from calls to get_range_strlen.  Update comments.  Just update
26388         VAL for an unterminated const char array and let the reset of the
26389         code handle it normally.  No longer try to set *flexp.  Adjust
26390         return value.
26391         (get_range_strlen): Update for the new get_range_strlen API.
26392         (get_maxval_strlen): Similarly.
26393         (gimple_fold_builtin_strlen): Handle update meaning of return value
26394         from get_range_strlen.
26395         * gimple-ssa-sprintf.c (get_string_length): Update for the new
26396         get_range_strlen API.
26398 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
26400         PR lto/88130
26401         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26402         false at WPA time when body was removed.
26404 2019-01-02  Martin Liska  <mliska@suse.cz>
26406         PR tree-optimization/88650
26407         * predict.c (set_even_probabilities): Calculate probability
26408         remainer only when really used.
26410 2019-01-02  Richard Biener  <rguenther@suse.de>
26412         PR middle-end/88651
26413         * tree-data-ref.c (analyze_subscript_affine_affine): Use
26414         widest_ints when mangling max_stmt_execution results.
26416 2019-01-02  Richard Biener  <rguenther@suse.de>
26418         PR tree-optimization/88621
26419         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26420         bitfields when canoncalizing.
26422 2019-01-02  Richard Biener  <rguenther@suse.de>
26424         PR target/87545
26425         * config/i386/x86-tune-costs.h (intel_cost): Adjust
26426         cost of cheap SSE instruction.
26428 2019-01-02  Richard Biener  <rguenther@suse.de>
26430         PR ipa/85574
26431         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26432         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26433         function.
26434         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26435         set after UIDs before splitting them.
26437 2019-01-01  Martin Sebor  <msebor@redhat.com>
26438             Jeff Law  <law@redhat.com>
26440         * gimple-fold.c (get_range_strlen_tree): Record if the computed
26441         length is optimistic.  If it is, then arrange to compute the
26442         conservative length as well.
26444         * gimple-fold.h (get_range_strlen): Update prototype.
26445         * builtins.c (check_access): Update call to get_range_strlen to use
26446         c_strlen_data pointer.   Change various variable accesses to instead
26447         pull data from the c_strlen_data structure.
26448         (check_strncat_sizes, expand_builtin_strncat): Likewise.
26449         * calls.c (maybe_warn_nonstring_arg): Likewise.
26450         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
26451         minimum length if maximum lengh is unknown.
26452         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
26453         that used c_strlen, it's no longer needed.  Restructure slightly.
26454         (format_string): Set unlikely range appropriately.
26455         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
26456         formatting issues.
26457         (get_range_strlen): Accept c_strlen_data pointer for external
26458         call sites as well.  Pass through to call to internal get_range_strlen.
26459         Adjust minlen, maxlen and maxbound as needed.
26460         (get_maxval_strlen): Update comments.
26461         (gimple_fold_builtin_strlen): Update call to get_range_strlen
26462         to use c_strlen_data pointer.  Change variable accesses to instead
26463         use c_strlen_data data members.
26465         * gimple-fold.c (get_range_strlen): Update prototype.
26466         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
26467         local variables.  Use pdata to return information to caller.
26468         Update calls to get_range_strlen.  Update pdata->maxbound.
26469         (get_range_strlen -- static version): Similarly.
26470         (get_range_strlen -- extern version): Update for internal
26471         get_range_strlen API change.  Convert to external data format.
26472         (get_maxval_strlen): Similarly.
26474 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
26476         * coverage.c (get_coverage_counts): Use current_function_decl.
26477         * profile.c (read_thunk_profile): New function.
26478         (branch_prob): Add THUNK parameter.
26479         * tree-profile.c (tree_profiling): Handle thunks.
26480         * value-prof.c (init_node_map): Handle thunks.
26481         * value-prof.h (branch_prob): Upate prototype.
26482         (read_thunk_profile): Declare.
26484 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
26486         Update copyright years.
26488         * gcc.c (process_command): Update copyright notice dates.
26489         * gcov-dump.c (print_version): Ditto.
26490         * gcov.c (print_version): Ditto.
26491         * gcov-tool.c (print_version): Ditto.
26492         * gengtype.c (create_file): Ditto.
26493         * doc/cpp.texi: Bump @copying's copyright year.
26494         * doc/cppinternals.texi: Ditto.
26495         * doc/gcc.texi: Ditto.
26496         * doc/gccint.texi: Ditto.
26497         * doc/gcov.texi: Ditto.
26498         * doc/install.texi: Ditto.
26499         * doc/invoke.texi: Ditto.
26501 Copyright (C) 2019 Free Software Foundation, Inc.
26503 Copying and distribution of this file, with or without modification,
26504 are permitted in any medium without royalty provided the copyright
26505 notice and this notice are preserved.