1 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
3 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
4 vectorizable_live_operation.
5 (vectorizable_live_operation): Adjust parameters.
6 * tree-vect-stmts.c (vect_init_vector,
7 vect_gen_widened_results_half): Fix typo in function comment.
8 (can_vectorize_live_stmts): Adjust function comment.
9 Adjust parameters. Adjust call to vectorizable_live_operation.
10 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
11 (vect_transform_stmt): Adjust function comment. Adjust call to
12 can_vectorize_live_stmts.
13 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
15 2019-10-11 Richard Biener <rguenther@suse.de>
17 PR tree-optimization/90883
18 PR tree-optimization/91091
19 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
20 alias-sets both for recording VN table entries and continuing
21 walking after translating through copies. Handle same-sized
22 reads from SSA names by returning the plain SSA name.
23 (eliminate_dom_walker::eliminate_stmt): Properly handle
24 non-size precision stores in redundant store elimination.
26 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
28 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
29 (ggc_collect): Dump later to not interfere with release_page dump.
30 (ggc_trim): New function.
31 * ggc-none.c (ggc_trim): New.
32 * ggc.h (ggc_trim): Declare.
34 2019-10-11 Richard Biener <rguenther@suse.de>
36 PR tree-optimization/92066
37 PR tree-optimization/92046
38 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39 Fix bogus cost model check.
41 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
43 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
44 (LANG_HOOKS_DECLS): Add it.
45 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
46 update comment for omp_is_optional_argument.
47 * omp-general.c (omp_is_allocatable_or_ptr): New.
48 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
49 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
50 Fortran's optional arguments and allocatable/pointer scalars
53 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
56 * config/s390/2827.md: Add new opcodes.
57 * config/s390/2964.md: Likewise.
58 * config/s390/3906.md: Likewise.
59 * config/s390/8561.md: Likewise.
60 * config/s390/s390-builtins.def (s390_vfchesb): Use
61 the new vec_cmpgev4sf_quiet_nocc.
62 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
63 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
64 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
65 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
66 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
67 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
68 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
69 * config/s390/s390-modes.def (CCSFPS): New mode.
70 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
71 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
72 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
73 (s390_expand_vec_compare): Use non-signaling patterns where
75 (s390_reverse_condition): Support CCSFPS.
76 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
77 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
78 (asm_fcmp_op): Likewise.
79 (*smaxv2df3_vx): Use pattern for quiet comparison.
80 (*sminv2df3_vx): Likewise.
81 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
82 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
83 (vec_cmpgt<mode>_quiet_nocc): Likewise.
84 (vec_cmplt<mode>_quiet_nocc): New expander.
85 (vec_cmpge<mode>_quiet_nocc): New pattern.
86 (vec_cmple<mode>_quiet_nocc): New expander.
87 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
88 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
89 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
90 (*vec_cmpge<mode>_signaling_nocc): Likewise.
91 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
92 (vec_cmpungt<mode>): New expander.
93 (vec_cmpunge<mode>): Likewise.
94 (vec_cmpuneq<mode>): Use quiet patterns.
95 (vec_cmpltgt<mode>): Allow only on z14+.
96 (vec_cmpordered<mode>): Use quiet patterns.
97 (vec_cmpunordered<mode>): Likewise.
98 (VEC_CMP_EXPAND): Add ungt and unge.
100 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
102 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
104 * lto-streamer-out.c: Include tree-dfa.h.
105 (output_cfg): Do not use cfun.
106 (lto_prepare_function_for_streaming): New.
107 (output_function): Do not push cfun; do not initialize loop optimizer.
108 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
109 * passes.c (ipa_write_summaries): Use it.
110 (ipa_write_optimization_summaries): Do not modify bodies.
111 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
112 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
113 * tree-ssa-dse.c (pass_dse::execute): Update use of
114 renumber_gimple_stmt_uids.
115 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
117 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
119 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
120 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
122 2019-10-10 Joseph Myers <joseph@codesourcery.com>
124 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
126 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
127 Also define DFP macros for these conditions.
128 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
129 DEC128_SUBNORMAL_MIN): Do not define.
130 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
131 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
133 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
134 Sandra Loosemore <sandra@codesourcery.com>
137 * doc/lto.texi (IPA): Reference to the IPA passes.
138 * doc/passes.texi (Pass manager): Add node IPA passes and
139 description for each IPA pass.
141 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
143 * ipa-reference.c: Do not include splay-tree.h
144 (reference_vars_to_consider): Turn to hash map.
145 (get_static_name, ipa_init, analyze_function, propagate,
146 stream_out_bitmap, ipa_reference_write_optimization_summary,
147 ipa_reference_write_optimization_summary): Update.
149 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
151 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
153 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
155 * config/darwin.c: Lookup Objective C metadata and force indirection
158 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
160 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
162 (mem_operand_gpr): Add check for prefixed addresses.
163 (mem_operand_ds_form): Add check for prefixed addresses.
164 (rs6000_legitimate_offset_address_p): If we support prefixed
165 addresses, check for a 34-bit offset instead of 16-bit.
166 (rs6000_legitimate_address_p): Add check for prefixed addresses.
167 Do not allow load/store with update if the address is prefixed.
168 (rs6000_mode_dependent_address): If we support prefixed
169 addresses, check for a 34-bit offset instead of 16-bit.
171 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
174 * config/s390/vector.md (vcond_comparison_operator): New
176 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
178 2019-10-10 David Malcolm <dmalcolm@redhat.com>
181 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
183 * configure.ac (--with-documentation-root-url): New option.
184 * configure: Regenerate.
185 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
186 option URL, add it as a new string field of the diagnostic option.
187 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
188 (print_option_information): If get_option_url is non-NULL, call
189 it, and if the result is non-NULL, potentially emit an escape
190 sequence to markup the option text with the resulting URL.
191 * diagnostic.h (diagnostic_context::get_option_url): New callback.
192 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
193 example of JSON output.
194 * opts-diagnostic.h (get_option_url): New decl.
195 * opts.c (get_option_url): New function.
196 * toplev.c (general_init): Initialize the get_option_url callback.
198 2019-10-10 David Malcolm <dmalcolm@redhat.com>
201 * common.opt (fdiagnostics-urls=): New option.
202 (diagnostic-url.h): Add SourceInclude.
203 (diagnostic_url_rule): New enum.
204 * diagnostic-color.c: Include "diagnostic-url.h".
205 (diagnostic_urls_enabled_p): New function.
206 * diagnostic-url.h: New file.
207 * diagnostic.c: Include "diagnostic-url.h".
208 (diagnostic_urls_init): New function.
209 * diagnostic.h (diagnostic_urls_init): New decl.
210 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
211 -fdiagnostics-urls to the list.
212 (-fdiagnostics-urls): New option.
213 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
214 (driver::global_initializations): Call diagnostic_urls_init.
215 * opts-global.c (init_options_once): Likewise.
216 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
217 * pretty-print.c (pretty_printer::pretty_printer): Initialize
219 (pp_begin_url): New function.
220 (pp_end_url): New function.
221 (selftest::test_urls): New selftest.
222 (selftest::pretty_print_c_tests): Call it.
223 * pretty-print.h (pretty_printer::show_urls): New field.
224 (pp_begin_url): New decl.
225 (pp_end_url): New decl.
227 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
230 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
232 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
235 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
236 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
237 also for TARGET_FPU_SH4_300.
238 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
240 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
241 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
242 (*negsf2_i): Split into ...
243 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
244 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
245 (**abssf2_i): Split into ...
246 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
247 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
248 (*negdf2_i): Split into ...
249 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
250 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
251 (**abssf2_i): Split into ...
252 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
254 2019-10-10 Richard Biener <rguenther@suse.de>
257 * opts.c (finish_options): Do not influence global --params
258 from options that are adjustable per function.
259 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
260 Apply --param adjustment based on active cost-model.
261 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
262 further store-sinking when vectorization or if-conversion
265 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
268 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
269 rather than ggc_alloc_cleared to alloc symbol table.
270 * toplev.c (general_init): Likewise.
271 * cgraph.h (symbol_table): Explicitly construct every field.
273 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
275 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
277 * config.gcc: Add z15 as option for --with-arch and --with-tune
279 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
280 error reporting for unsupported builtins.
281 * config/s390/s390-opts.h (enum processor_type): Rename
282 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
283 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
284 * config/s390/driver-native.c (s390_host_detect_local_cpu):
286 * config/s390/s390-builtins.def: Likewise.
287 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
288 (s390_expand_builtin): Add missing check for unsupported builtins.
289 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
290 (s390_rtx_costs): Likewise.
291 (s390_get_sched_attrmask): Rename arch13 to z15.
292 (s390_get_unit_mask): Likewise.
293 (s390_is_fpd): Likewise.
294 (s390_is_fxd): Likewise.
295 * config/s390/s390.h (enum processor_flags): Likewise.
296 * config/s390/s390.md: Likewise.
297 * config/s390/vector.md: Likewise.
298 * config/s390/vx-builtins.md: Likewise.
299 * config/s390/s390.opt: Add z15 to processor_type value.
301 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
304 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
306 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
307 ("split_stack_data", "split_stack_call")
308 ("split_stack_call_<mode>", "split_stack_cond_call")
309 ("split_stack_cond_call_<mode>"): Remove.
310 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
312 * config/s390/s390.c (s390_output_split_stack_data): New function.
313 (s390_expand_split_stack_prologue): Use the merged expander.
315 2019-10-09 Martin Sebor <msebor@redhat.com>
317 PR tree-optimization/90879
318 * builtins.c (check_access): Avoid using maxbound when null.
319 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
320 * doc/invoke.texi (-Wstring-compare): Document new warning option.
321 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
323 (get_range_strlen): Overwrite initial maxbound when non-null.
324 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
326 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
327 (used_only_for_zero_equality): New function.
328 (handle_builtin_memcmp): Call it.
329 (determine_min_objsize): Return an integer instead of tree.
330 (get_len_or_size, strxcmp_eqz_result): New functions.
331 (maybe_warn_pointless_strcmp): New function.
332 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
333 between a longer string and a smaller array.
334 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
336 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
338 * config/darwin.c (darwin_override_options): Make the check for
339 Objective-C ABI version more specific for 64bit code.
341 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
343 * config/darwin.c (machopic_indirect_data_reference): Set flag to
344 indicate that the new symbol is an indirection.
345 (machopic_indirect_call_target): Likewise.
346 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
347 (MACHO_SYMBOL_INDIRECTION_P): New.
348 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
350 2019-10-08 Jason Merrill <jason@redhat.com>
352 * doc/invoke.texi: Document -fconcepts-ts.
354 2019-10-09 Richard Biener <rguenther@suse.de>
356 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
357 allow stmts other than GIMPLE_ASSIGN in nested cycles.
359 2019-10-08 Richard Biener <rguenther@suse.de>
361 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
362 (_stmt_vec_info::force_single_cycle): Likewise.
363 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
364 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
365 * tree-vect-loop.c (vectorizable_reduction): Set
366 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
367 (vect_transform_reduction): Use them to remove redundant code.
368 (vect_transform_cycle_phi): Likewise.
370 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
372 PR tree-optimization/90836
373 * gcc/match.pd (popcount): New pattern.
375 2019-10-08 Martin Sebor <msebor@redhat.com>
379 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
380 again once nbytes has been set. Set the access size when not yet set.
382 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
384 * config/darwin.c (machopic_select_section): Remove dead code for
385 old Objective-C section selection method, replace with unreachable.
387 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
389 * config/darwin.c (machopic_indirect_data_reference): Check for
390 required indirections before making direct access to defined
392 (machopic_output_indirection): Place the indirected pointes for
393 required indirections into the non-lazy symbol pointers section.
394 (darwin_encode_section_info):
395 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
396 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
398 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
401 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
402 instead of ALL_SSE_REG to check if function call preserves some
403 256-bit SSE registers.
405 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
407 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
408 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
409 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
411 2019-10-08 Richard Biener <rguenther@suse.de>
413 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
414 (_stmt_vec_info::is_reduc_info): Add.
415 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
416 (vectorizable_condition): Remove.
417 (vectorizable_shift): Likewise.
418 (vectorizable_reduction): Adjust.
419 (info_for_reduction): New.
420 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
421 (vect_analyze_scalar_cycles_1): ... here.
422 (vect_analyze_loop_operations): Adjust.
423 (needs_fold_left_reduction_p): Simplify for single caller.
424 (vect_is_simple_reduction): Likewise. Remove stmt restriction
425 for nested cycles not part of double reductions.
426 (vect_model_reduction_cost): Pass in the reduction type.
427 (info_for_reduction): New function.
428 (vect_create_epilog_for_reduction): Use it, access reduction
429 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
430 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
431 (vectorize_fold_left_reduction): Remove pointless assert.
432 (vectorizable_reduction): Analyze the full reduction when
433 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
434 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
435 stmt code-generation to vectorizable_* in most cases. Verify
436 code-generation only for cases handled by
437 vect_transform_reductuon.
438 (vect_transform_reduction): Use info_for_reduction to get at
439 reduction meta. Simplify.
440 (vect_transform_cycle_phi): Likewise.
441 (vectorizable_live_operation): Likewise.
442 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
443 at the PHI node for STMT_VINFO_REDUC_TYPE.
444 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
445 longer necessary code.
446 * tree-vect-stmts.c (vectorizable_shift): Make static again.
447 (vectorizable_condition): Likewise. Get at reduction related
448 info via info_for_reduction.
449 (vect_analyze_stmt): Adjust.
450 (vect_transform_stmt): Likewise.
451 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
452 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
454 2019-10-08 Joseph Myers <joseph@codesourcery.com>
456 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
457 -fno-fp-int-builtin-inexact default for C2X.
459 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
460 Richard Biener <rguenther@suse.de>
462 PR tree-optimization/91532
463 * tree-if-conv.c: Include tree-ssa-dse.h.
464 (ifcvt_local_dce): Change param from bb to loop,
465 and call dse_classify_store.
466 (tree_if_conversion): Pass loop instead of loop->header as arg
468 * tree-ssa-dse.c: Include tree-ssa-dse.h.
469 (delete_dead_or_redundant_assignment): Remove static qualifier from
470 declaration, and add prototype in tree-ssa-dse.h.
471 (dse_store_status): Move to tree-ssa-dse.h.
472 (dse_classify_store): Remove static qualifier and add new tree param
473 stop_at_vuse, and add prototype in tree-ssa-dse.h.
474 * tree-ssa-dse.h: New header.
476 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
478 * config/darwin.c (machopic_output_indirection): Don't put
479 hidden symbol indirections into the .data section, use the
480 non-lazy symbol pointers section as normal.
481 (darwin_encode_section_info): Record if a symbol is hidden.
482 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
483 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
485 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
487 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
488 predicates instead of accessing bits directly.
489 (machopic_indirect_call_target): Likewise.
490 (machopic_output_indirection): Likewise.
491 (darwin_encode_section_info): Improve description. Use renamed
492 symbol flags. Use predicate macros for variables and functions.
494 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
495 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
496 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
497 (MACHO_SYMBOL_VARIABLE_P): New.
498 (MACHO_SYMBOL_DEFINED_P):New.
499 (MACHO_SYMBOL_STATIC_P): New.
500 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
501 (SYMBOL_FLAG_SUBT_DEP): New.
502 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
504 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
506 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
507 (msp430_expand_epilogue): Likewise.
508 * config/msp430/predicates.md: Likewise.
509 * config/msp430/msp430.md: Likewise.
510 Replace blocks of 8 spaces with tabs.
512 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
514 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
515 * config/msp430/msp430.c (msp430_split_addsi): New.
516 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
517 a block of C code for splitting addsi.
519 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
521 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
522 ix86_expand_rounddf_32): Reorder functions.
523 * config/i386/i386-protos.h: Update.
525 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
527 * config.in: Regenerate.
528 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
529 Add new "Yx" constraint.
530 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
532 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
534 * config/msp430/msp430.c (msp430_option_override): Allow the lower
535 code/data region to be selected in the small memory model.
536 (msp430_section_attr): Don't warn if the "section" and "lower"
537 attributes are used together.
538 (msp430_handle_generic_attribute): Likewise.
539 (msp430_var_in_low_mem): New function.
540 (TARGET_ENCODE_SECTION_INFO): Define.
541 (msp430_encode_section_info): New function.
542 (gen_prefix): Return early in the small memory model.
543 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
544 ".lower" prefix if -m{code,data}-region=lower have been passed.
545 (msp430_output_aligned_decl_common): Emit common symbols when
546 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
548 (TARGET_ASM_FILE_END): Define.
549 (msp430_file_end): New function.
550 (msp430_do_not_relax_short_jumps): Allow relaxation when
551 function will be in the lower region.
552 (msp430_op_not_in_high_mem): New function.
553 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
554 the 'X' operand selector.
555 Clarify comment for 'x' operand selector.
556 * config/msp430/msp430.h (LINK_SPEC): Propagate
557 -m{code,data}-region to the linker via spec function
558 msp430_propagate_region_opt.
559 (msp430_propagate_region_opt): New prototype.
560 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
561 (SYMBOL_FLAG_LOW_MEM): Define.
562 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
564 (zero_extendqihi2): Fix operand number used by "%X" selector.
565 (zero_extendqisi2): Likewise.
566 (zero_extendhisi2): Likewise.
567 (movqi): Use "Yx" constraint in place of "%X" operand selector.
572 (addhi3_cy): Likewise.
573 (addchi4_cy): Likewise.
577 (bic<mode>3): Likewise.
578 (and<mode>3): Likewise.
579 (ior<mode>3): Likewise.
580 (xor<mode>3): Likewise.
581 (slli_1): Add missing "%X" operand selector.
589 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
591 (cbranchhi4_real): Likewise.
592 (cbranchqi4_reversed): Likewise.
593 (cbranchhi4_reversed): Likewise.
594 (*bitbranch<mode>4): Likewise.
595 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
596 * config/msp430/msp430.opt (mcode-region=): Set default to
597 MSP430_REGION_LOWER. Improve docstring.
598 (mdata-region=): Likewise.
599 (muse-lower-region-prefix): New option.
600 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
601 mdata-region=none multilib.
602 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
603 mdata-region=none multilib.
604 MULTILIB_EXCEPTIONS: Remove.
605 MULTILIB_REQUIRED: Define.
606 * configure: Regenerate.
607 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
608 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
609 * doc/extend.texi: Clarify comment for {upper,lower,either}
611 Add separate description for "lower" variable attribute.
613 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
616 * optabs-tree.c (vcond_icode_p): New function.
617 (vcond_eq_icode_p): Likewise.
618 (expand_vec_cond_expr_p): Use vcond_icode_p and
620 * optabs.c (can_vcond_compare_p): New function.
621 * optabs.h (can_vcond_compare_p): Likewise.
623 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
626 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
627 caller passes a non-trapping condition.
628 (is_gimple_condexpr): Allow trapping conditions.
629 (is_gimple_condexpr_1): New helper function.
630 (is_gimple_condexpr_for_cond): New function, acts like old
632 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
633 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
634 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
635 * gimplify.c (gimplify_cond_expr): Use
636 is_gimple_condexpr_for_cond.
637 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
638 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
640 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
641 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
642 is_gimple_condexpr_for_cond, remove pointless tmp check
643 (forward_propagate_into_cond): Remove pointless tmp check.
645 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
647 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
648 match that of other gsi_next_* functions. Adjust the comment.
649 (gsi_start_nonvirtual_phis): New function.
650 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
651 gsi_next_nonvirtual_phi accordingly. (No functional change.)
653 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
655 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
656 setjmp situation here. Fix a verb's ending: "the exact variables or
657 elements for which there are warnings depends" -> "... depend".
659 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
661 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
663 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
665 * ipa-prop.c (ipa_vr::nonzero_p): New.
666 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
668 * ipa-prop.h (class ipa_vr): Add nonzero_p.
669 * tree-vrp.c (range_has_numeric_bounds_p): New.
670 (range_int_cst_p): Use range_has_numeric_bounds_p.
671 (get_range_op_handler): New.
672 (supported_types_p): New.
673 (defined_ranges_p): New.
674 (drop_undefines_to_varying): New.
675 (range_fold_binary_symbolics_p): New.
676 (range_fold_unary_symbolics_p): New.
677 (range_fold_unary_expr): Extract out into above functions.
678 (range_fold_binary_expr): Same.
679 (value_range_base::normalize_addresses): New.
680 (value_range_base::normalize_symbolics): Normalize addresses.
681 * tree-vrp.h (class value_range_base): Add normalize_addresses.
683 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
685 * tree-vrp.c (value_range_base::singleton_p): Use
686 value_range_base::num_pairs instead of vrp_val_is* to check
687 if a range has one sub-range.
689 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
691 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
692 DEF is not a true earlyclobber but is tied to a specific input
693 operand, and so is effectively earlyclobber wrt inputs that have
695 (make_early_clobber_and_input_conflicts): Pass this case to the above.
697 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
699 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
700 (pod_mode): Mark operators likewise.
701 (scalar_int_mode): Mark non-default constructors and
702 operators with CONSTEXPR.
703 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
704 (fixed_size_mode): Likewise.
706 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
709 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
710 and wrap the unspec_volatile in a parallel.
711 (*avx_vzeroupper): New define_insn. Use a match_parallel around
713 * config/i386/predicates.md (vzeroupper_pattern): Expect the
714 unspec_volatile to be wrapped in a parallel.
715 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
716 (ix86_add_reg_usage_to_vzerouppers): New functions.
717 (rest_of_handle_insert_vzeroupper): Use them to add register
718 usage information to the vzeroupper instructions.
720 2019-10-07 Richard Biener <rguenther@suse.de>
722 PR tree-optimization/91975
723 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
726 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
728 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
729 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
731 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
733 * config/darwin.c (darwin_override_options): Adjust objective-c
734 ABI version error messages to avoid punctuation and contracted
737 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
739 * ipa-inline.c: Fix type; compute size rather than self_size
740 for size of caller function.
742 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
745 * config/darwin.c (darwin_rodata_section): Add relocation flag,
746 choose const_data section for constants with relocations.
747 (machopic_select_section): Pass relocation flag to
748 darwin_rodata_section ().
750 2019-10-05 Jakub Jelinek <jakub@redhat.com>
752 PR tree-optimization/91734
753 * generic-match-head.c: Include fold-const-call.h.
754 * match.pd (sqrt(x) cmp c): Check the boundary value and
755 in case inexact computation of c*c affects comparison of the boundary,
756 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
757 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
758 for -frounding-math. For c2, try the next smaller or larger floating
759 point constant depending on comparison code and if it has the same
760 sqrt as c2, use it instead of c2.
762 2019-10-04 Martin Sebor <msebor@redhat.com>
765 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
766 MEM_REF right operand. Avoid failing for MEM_REF assignments from
767 uninitialized objects.
769 2019-10-04 Martin Sebor <msebor@redhat.com>
771 * builtins.c (compute_objsize): Add an argument.
772 * tree-object-size.c (addr_object_size): Same.
773 (compute_builtin_object_size): Same.
774 * tree-object-size.h (compute_builtin_object): Same.
776 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
778 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
780 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
782 * match.pd (sinh (x) / cosh (x)): New simplification rule.
784 2019-10-04 Martin Jambor <mjambor@suse.cz>
786 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
787 fntype when switching to calling memcpy instead of memset.
789 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
791 * hash-table.h (hash_table::empty_slow): Don't assign
792 size_t values to int variables.
794 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
796 * expr.c (convert_mode_scalar): Remove shadowing local var.
797 (emit_block_move): Rename local vars.
798 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
799 (emit_push_insn): Rename local vars.
800 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
801 shadowing local vars.
802 (store_constructor): Remove shadowing local vars. Rename local var.
803 (store_field, expand_cond_expr_using_cmove,
804 expand_expr_real_2): Remove shadowing local vars.
806 do_store_flag): Remove shadowing local vars. Rename local vars.
808 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
810 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
812 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
814 * genmatch.c (commutate): Rename local var.
815 (lower_cond): Reuse local var.
816 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
817 dt_operand::gen, dt_operand::gen_gimple_expr,
818 dt_simplify::gen): Add a param. Rename generated vars.
819 (decision_tree::insert_operand,
820 (capture_info::walk_match, capture_info::walk_result,
821 capture_info::walk_c_expr): Rename local vars.
822 (expr::gen_transform): Rename generated vars.
823 Use snprintf. Rename local vars.
824 (capture::gen_transform, dt_operand::get_name,
825 dt_operand::gen_opname): Rename generated vars.
826 (write_predicate): Adjust call to gen_kids.
827 (parser::get_internal_capture_id): Rename generated vars.
828 (parser::parse_expr): Rename local vars.
829 (parser::parse_if): Remove local var.
830 (parser::parse_pattern, add_operator): Rename local vars.
832 2019-10-04 Joseph Myers <joseph@codesourcery.com>
834 * builtins.def (DEF_C2X_BUILTIN): New macro.
835 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
836 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
837 (strndup): Use DEF_C2X_BUILTIN.
838 * coretypes.h (enum function_class): Add function_c2x_misc.
840 2019-10-04 Maya Rashish <coypu@sdf.org>
842 * ira-color.c (update_costs_from_allocno): Call
843 ira_init_register_move_cost_if_necessary.
845 2019-10-04 Jeff Law <law@redhat.com>
847 * config/h8300/h8300.md (cpymemsi): Disable.
848 (movmd, movmd_internal_<mode>, movstr, movsd):
849 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
850 (movmd splitter, movsd splitter): Likewise.
852 * range-op.cc (range_tests): Avoid two tests when ints and
853 shorts are the same size.
855 2019-10-04 Richard Biener <rguenther@suse.de>
858 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
861 2019-10-04 Richard Biener <rguenther@suse.de>
863 PR tree-optimization/91982
864 * tree-vect-loop.c (vectorizable_live_operation): Also guard
865 against EXTRACT_LAST_REDUCTION.
866 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
868 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
870 * range-op.o (value_range_from_overflowed_bounds): Rename from
871 adjust_overflow_bound.
872 (value_range_with_overflow): Rename from
873 create_range_with_overflow.
874 (create_possibly_reversed_range): Adjusted for above renames.
875 (operator_*::wi_fold): Same.
876 (cross_product_operator::wi_cross_productor): Same.
878 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
880 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
881 -Wshadow=compatible-local): Fix description.
882 Add an example where -Wshadow=compatible-local does not
885 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
887 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
889 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
890 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
892 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
894 * expr.c (emit_block_move_hints): Slightly cleaner fix to
895 can_move_by_pieces issue.
897 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
900 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
901 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
902 is available and the user has not set one on the command line.
904 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
907 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
908 instead of REGNO equality check on addr.reg.
910 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
912 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
913 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
914 * doc/invoke.texi (inline-heuristics-hint-percent,
915 inline-heuristics-hint-percent-O2): Document.
916 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
918 (can_inline_edge_by_limits_p): Use it.
920 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
922 * config/arm/arm.c (arm_print_value): Use real_to_decimal
923 to print CONST_DOUBLEs.
925 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
927 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
928 * ipa-prop.c (ipcp_free_transformation_sum): New function.
929 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
931 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
933 * Makefile.in (OBJS): Add range.o and range-op.o.
934 Remove wide-int-range.o.
935 * function-tests.c (test_ranges): New.
936 (function_tests_c_tests): Call test_ranges.
937 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
938 range_fold_unary_expr instead of extract_range_from_unary_expr.
939 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
940 * range-op.cc: New file.
941 * range-op.h: New file.
942 * range.cc: New file.
944 * selftest.h (range_tests): New prototype.
945 * ssa.h: Include range.h.
946 * tree-vrp.c (value_range_base::value_range_base): New
948 (value_range_base::singleton_p): Do not call
949 ranges_from_anti_range until sure we will need to.
950 (value_range_base::type): Rename gcc_assert to
952 (vrp_val_is_max): New argument.
953 (vrp_val_is_min): Same.
954 (wide_int_range_set_zero_nonzero_bits): Move from
956 (extract_range_into_wide_ints): Remove.
957 (extract_range_from_multiplicative_op): Remove.
958 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
959 from extract_range_from_binary_expr.
960 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
961 from extract_range_from_binary_expr.
962 (extract_range_from_binary_expr): Remove.
963 (normalize_for_range_ops): New.
964 (range_fold_binary_expr): New.
965 (range_fold_unary_expr): New.
966 (value_range_base::num_pairs): New.
967 (value_range_base::lower_bound): New.
968 (value_range_base::upper_bound): New.
969 (value_range_base::upper_bound): New.
970 (value_range_base::contains_p): New.
971 (value_range_base::invert): New.
972 (value_range_base::union_): New.
973 (value_range_base::intersect): New.
974 (range_compatible_p): New.
975 (value_range_base::operator==): New.
976 (determine_value_range_1): Call range_fold_*expr instead of
977 extract_range_from_*expr.
978 * tree-vrp.h (class value_range_base): Add new constructors.
979 Add methods for union_, intersect, operator==, contains_p,
980 num_pairs, lower_bound, upper_bound, invert.
981 (vrp_val_is_min): Add handle_pointers argument.
982 (vrp_val_is_max): Same.
983 (extract_range_from_unary_expr): Remove.
984 (extract_range_from_binary_expr): Remove.
985 (range_fold_unary_expr): New.
986 (range_fold_binary_expr): New.
987 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
988 range_fold_binary_expr instead of extract_range_from_binary_expr.
989 (vr_values::extract_range_basic): Same.
990 (vr_values::extract_range_from_unary_expr): Call
991 range_fold_unary_expr instead of extract_range_from_unary_expr.
992 * wide-int-range.cc: Remove.
993 * wide-int-range.h: Remove.
995 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
997 * config/rs6000/rs6000.c (mem_operand_gpr): Use
998 SIGNED_16BIT_OFFSET_EXTRA_P macro.
999 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1000 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1003 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1005 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1006 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1007 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1008 * glimits.h: Likewise.
1010 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1012 PR rtl-optimization/91976
1013 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1014 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1015 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1017 2019-10-02 Martin Sebor <msebor@redhat.com>
1019 PR tree-optimization/80936
1020 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1022 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1024 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1025 instead of reg_class_contents[ALL_REGS].
1027 2019-09-30 Jason Merrill <jason@redhat.com>
1029 Add some hash_map_safe_* functions like vec_safe_*.
1030 * hash-map.h (default_hash_map_size): New variable.
1031 (create_ggc): Use it as default argument.
1032 (hash_map_maybe_create, hash_map_safe_get)
1033 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1035 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1037 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1038 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1039 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1040 (can_inline_edge_by_limits_p): Use it.
1041 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1042 (want_inline_small_function_p): Use O2 bounds.
1043 (edge_badness): LIkewise.
1044 * opts.c (default_options): Add OPT_finline_functions.
1045 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1046 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1048 * doc/invoke.texi (-finline-functions): Update documentation.
1049 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1050 inline-min-speedup-O2): Document.
1051 (early-inlining-insns-O2): Simplify docs.
1053 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1055 PR rtl-optimization/87047
1056 * ifcvt.c (average_cost): New static function. Use it...
1057 (noce_process_if_block): ... here.
1059 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1061 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1062 * config/rs6000/rs6000-string.c (expand_block_move): Add
1064 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1065 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1067 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1069 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1070 (expand_builtin_memcpy): Use might_overlap parm.
1071 (expand_builtin_mempcpy_args): Use might_overlap parm.
1072 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1073 (expand_builtin_memory_copy_args): Add might_overlap parm.
1074 * expr.c (emit_block_move_via_cpymem): Rename to
1075 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1076 or movmem optab as appropriate.
1077 (emit_block_move_hints): Add might_overlap parm, do the right
1078 thing for might_overlap==true.
1079 * expr.h (emit_block_move_hints): Update prototype.
1081 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1083 * tree-eh.h (unsplit_eh_edges): Declare.
1084 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1085 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1086 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1087 (struct store_immediate_info): Add lp_nr field.
1088 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1089 initialize lp_nr with it.
1090 (struct merged_store_group): Add lp_nr and only_constants fields.
1091 (merged_store_group::merged_store_group): Initialize them.
1092 (merged_store_group::can_be_merged_into): Deal with them.
1093 (pass_store_merging): Rename terminate_and_release_chain into
1094 terminate_and_process_chain.
1095 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1096 renaming and remove useless assertions.
1097 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1098 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1099 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1100 instead of always recomputing it and compare lp_nr.
1101 (imm_store_chain_info::output_merged_store): If the group is in an
1102 active EH region, register new stores if they can throw. Moreover,
1103 if the insertion has created new basic blocks, adjust the PHI nodes
1104 of the post landing pad.
1105 (imm_store_chain_info::output_merged_stores): If the original stores
1106 are in an active EH region, deregister them.
1107 (lhs_valid_for_store_merging_p): Prettify.
1108 (adjust_bit_pos): New function extracted from...
1109 (mem_valid_for_store_merging): ...here. Use it for the base address
1110 and also for the offset if it is the addition of a constant.
1111 (lp_nr_for_store): New function.
1112 (pass_store_merging::process_store): Change return type to bool.
1113 Call lp_nr_for_store to initialize the store info. Propagate the
1114 return status of various called functions to the return value.
1115 (store_valid_for_store_merging_p): New predicate.
1116 (enum basic_block_status): New enumeration.
1117 (get_status_for_store_merging): New function.
1118 (pass_store_merging::execute): If the function can throw and catch
1119 non-call exceptions, unsplit the EH edges on entry and clean up the
1120 CFG on exit if something changed. Call get_status_for_store_merging
1121 for every basic block and keep the chains open across basic blocks
1122 when possible. Terminate and process open chains at the end, if any.
1124 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1126 * reginfo.c (globalize_reg): Fix shadowed variable in
1129 2019-10-02 Martin Jambor <mjambor@suse.cz>
1131 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1132 do not compute some stuff when set.
1133 (cgraph_node::create_edge): Likewise.
1134 (cgraph_node::create_indirect_edge): Renamed last parameter to
1135 coning_p and flipped its meaning, don't even calculate
1136 inline_failed when set.
1137 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1138 (symbol_table::::create_edge): Likewise.
1139 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1141 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1142 call graph edge creating functions.
1144 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1147 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1150 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1152 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1154 2019-10-02 Richard Biener <rguenther@suse.de>
1156 * tree-vectorizer.h (vect_transform_reduction): Declare.
1157 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1158 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1159 stmt transform to ...
1160 (vect_transform_reduction): ... this.
1162 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1164 * omp-low.c (lower_omp_target): Dereference optional argument
1165 to work with the right pointer.
1167 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1169 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1171 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1172 * langhooks.h (omp_is_optional_argument): New hook.
1173 * omp-general.c (omp_is_optional_argument): New.
1174 * omp-general.h (omp_is_optional_argument): New declaration.
1175 * omp-low.c (lower_omp_target): Create temporary for received value
1176 and take the address for new_var if the original variable was a
1177 DECL_BY_REFERENCE. Use size of referenced object when a
1178 pass-by-reference optional argument used as argument to firstprivate.
1180 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1182 PR tree-optimization/91940
1183 * tree-vect-patterns.c: Include tree-vector-builder.h and
1185 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1186 unpromoting the argument back to uint16_t, or by converting into a
1187 rotate, or into shifts plus ior.
1189 2019-10-02 Richard Biener <rguenther@suse.de>
1191 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1193 (vect_transform_cycle_phi): Declare.
1194 * tree-vect-stmts.c (vect_transform_stmt): Call
1195 vect_transform_cycle_phi.
1196 * tree-vect-loop.c (vectorizable_reduction): Split out
1197 PHI transformation stage to ...
1198 (vect_transform_cycle_phi): ... here.
1200 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1203 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1204 eliminable registers.
1205 (make_hard_regno_live): Likewise, and don't make them live.
1207 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1209 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1210 Call pp_emit_prefix.
1211 (layout::print_source_line): Likewise.
1212 (layout::start_annotation_line): Likewise.
1213 (diagnostic_show_locus): Remove call to temporarily clear the
1215 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1216 interaction of pp_set_prefix with rulers and fix-it hints.
1217 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1218 prefix when calling diagnostic_show_locus, rather than destroying
1220 (print_parseable_fixits): Temporarily clear prefix.
1221 * pretty-print.c (pp_format): Save and restore line_length, rather
1222 than assuming it is zero.
1223 (pp_output_formatted_text): Remove assertion that line_length is
1226 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1228 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1230 (nonoverlapping_refs_since_match_p): ... this; handle also
1232 (alias_stats): Update stats.
1233 (dump_alias_stats): Likewise.
1234 (cheap_array_ref_low_bound): New function.
1235 (aliasing_matching_component_refs_p): Add partial_overlap
1237 pass it to nonoverlapping_refs_since_match_p.
1238 (aliasing_component_refs_walk): Update call of
1239 aliasing_matching_component_refs_p
1240 (nonoverlapping_array_refs_p): New function.
1241 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1242 indirect_refs_may_alias_p): Update calls of
1243 nonoverlapping_refs_since_match_p.
1245 2019-10-01 Maya Rashish <coypu@sdf.org>
1248 * ira-color.c (allocno_copy_cost_saving): Call
1249 ira_init_register_move_cost_if_necessary.
1251 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1253 * Makefile.in (gnat_install_lib): New variable.
1254 * configure.ac: Substitute it.
1255 * configure: Regenerate.
1257 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1260 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1261 is matched with non-C++ type
1263 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1265 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1268 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1270 * doc/invoke.texi (early-inlining-insns-O2): Document.
1271 (early-inlining-insns): Update.
1272 * params.def (early-inlining-insns-O2): New bound.
1273 (early-inlining-insns): Update docs.
1274 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1276 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1279 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1280 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1281 a memory access insn.
1283 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1285 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1288 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1291 * config/s390/s390.c (s390_expand_vec_compare): Use
1292 gen_vec_cmpordered and gen_vec_cmpunordered.
1293 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1294 vec_unordered): Delete.
1295 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1296 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1297 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1298 (vec_cmp<code>): Generic dispatcher.
1300 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1303 * config/s390/vector.md (V_HW): Add V1TI in order to make
1304 vcond$a$b generate vcondv1tiv1tf.
1306 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1308 PR rtl-optimization/91948
1309 * ira-build.c (ira_create_allocno): Initialize
1310 ALLOCNO_CROSSED_CALLS_ABIS.
1311 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1312 than regno to ira_need_caller_save_p.
1314 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1316 * config/i386/i386-options.c
1317 (ix86_recompute_optlev_based_flags): New, moved out of...
1318 (ix86_option_override_internal): ... this. Call it.
1319 (ix86_override_options_after_change): Call it here too.
1322 * dwarf2out.c (override_type_for_decl_p): New.
1323 (gen_variable_die): Use it.
1325 2019-10-01 Richard Biener <rguenther@suse.de>
1327 * tree-vect-loop.c (vectorizable_reduction): Move variables
1328 to where they are used.
1330 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1332 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1333 (build_def_use): Use PC instead of CC0 in a comment.
1335 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1337 * rtl.def (CLOBBER_HIGH): Delete.
1338 * doc/rtl.texi (clobber_high): Remove documentation.
1339 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1340 (reg_is_clobbered_by_clobber_high): Delete.
1341 (gen_hard_reg_clobber_high): Likewise.
1342 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1343 * cfgexpand.c (expand_gimple_stmt): Likewise.
1344 * combine-stack-adj.c (single_set_for_csa): Likewise.
1345 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1346 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1347 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1348 * cse.c (invalidate_reg): Remove clobber_high parameter.
1349 (invalidate): Update call accordingly.
1350 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1351 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1352 (count_reg_usage, insn_live_p): Likewise.
1353 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1354 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1355 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1356 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1357 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1358 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1359 (mark_nonreg_stores_2): Likewise.
1360 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1361 (df_get_call_refs): Likewise.
1362 * dwarf2out.c (mem_loc_descriptor): Likewise.
1363 * emit-rtl.c (verify_rtx_sharing): Likewise.
1364 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1365 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1366 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1367 * genemit.c (gen_exp, gen_insn): Likewise.
1368 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1369 * haifa-sched.c (haifa_classify_rtx): Likewise.
1370 * ira-build.c (create_insn_allocnos): Likewise.
1371 * ira-costs.c (scan_one_insn): Likewise.
1372 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1373 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1374 * jump.c (mark_jump_label_1): Likewise.
1375 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1376 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1378 (mark_not_eliminable): Likewise.
1379 * lra-lives.c (process_bb_lives): Likewise.
1380 * lra.c (new_insn_reg): Remove clobber_high parameter.
1381 (collect_non_operand_hard_regs): Likewise. Update call to new
1382 insn_reg. Remove CLOBBER_HIGH handling.
1383 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1384 to collect_non_operand_hard_regs.
1385 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1386 Update call to new_insn_reg.
1387 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1388 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1389 (move2add_note_store): Likewise.
1390 * print-rtl.c (print_pattern): Likewise.
1391 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1392 (if_test_bypass_p): Likewise.
1393 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1394 * reginfo.c (reg_scan_mark_refs): Likewise.
1395 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1396 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1397 (forget_old_reloads_1): Likewise.
1398 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1399 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1400 (dbr_schedule): Likewise.
1401 * resource.c (update_live_status, mark_referenced_resources)
1402 (mark_set_resources): Likewise.
1403 * rtl.c (copy_rtx): Likewise.
1404 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1405 (note_pattern_stores): Likewise.
1406 (reg_is_clobbered_by_clobber_high): Delete.
1407 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1408 CLOBBER_HIGH handling.
1410 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1413 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1414 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1415 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1416 Handle ARM_PCS_TLSDESC.
1417 (aarch64_tlsdesc_abi_id): New function.
1418 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1419 rtx instead of a list of clobbers and clobber_highs.
1420 (tlsdesc_small_<mode>): Update accordingly.
1422 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1424 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1425 extra callee_abi argument.
1426 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1427 Insert a CALLEE_ABI unspec into the call pattern as the second
1428 element in the PARALLEL.
1429 (aarch64_simd_call_p): Delete.
1430 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1431 the new CALLEE_ABI element of the PARALLEL.
1432 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1433 from the function type, if given.
1434 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1435 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1436 when passed the function_arg_info end marker.
1437 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1438 final argument of gen_sibcall.
1439 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1440 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1441 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1443 (call_value): Likewise operand 3.
1444 (sibcall): Likewise operand 2. Place the unspec before rather than
1446 (sibcall_value): Likewise operand 3.
1447 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1448 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1449 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1451 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1453 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1455 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1456 choose_hard_reg_mode.
1457 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1459 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1461 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1462 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1463 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1465 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1467 * diagnostic-show-locus.c (line_label::line_label): Initialize
1469 (line_label::comparator): Reverse the sort order by m_state_idx,
1470 so that when the list is walked backwards the labels appear in
1471 order of insertion into the rich_location.
1472 (line_label::m_has_vbar): New field.
1473 (layout::print_any_labels): When dealing with multiple labels at
1474 the same line and column, only print vertical bars for the one
1475 with the highest label_line.
1476 (selftest::test_one_liner_labels): Update test for multiple labels
1477 to expect the labels to be in the order of insertion into the
1478 rich_location. Add a test for many such labels, where the column
1479 numbers are out-of-order relative to the insertion order.
1481 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1483 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1484 (ix86_frame::expensive_count): Likewise.
1485 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1486 of use_fast_prologue_epilogue robust against incidental changes
1489 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1492 * config/s390/vector.md (vec_unordered<mode>): Call
1493 gen_vec_ordered<mode>.
1495 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1497 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1498 New pattern for ASRD.
1499 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1500 * internal-fn.def (IFN_DIV_POW2): New internal function.
1501 * optabs.def (sdiv_pow2_optab): New optab.
1502 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1503 Modify pattern to support new operation.
1504 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1505 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1506 Document new target selector.
1508 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1510 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1511 to test whether we're compiling a vector PCS function and to test
1512 whether the function needs to save a particular register.
1513 Remove the vector PCS handling of df_set_regs_ever_live.
1514 (aarch64_components_for_bb): Use crtl->abi to test whether
1515 the function needs to save a particular register.
1516 (aarch64_process_components): Use crtl->abi to test whether
1517 we're compiling a vector PCS function.
1518 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1519 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1521 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1523 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1525 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1526 whether the block calls a function that clobbers more registers
1527 than the current function is allowed to.
1528 (aarch64_use_simple_return_insn_p): Delete.
1529 * config/aarch64/aarch64.md (simple_return): Remove condition.
1531 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1533 * function-abi.h (function_abi_aggregator): New class.
1534 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1536 * ira.c (update_equiv_regs_prescan): New function. Call
1537 set_paradoxical_subreg here rather than...
1538 (update_equiv_regs): ...here.
1539 (ira): Call update_equiv_regs_prescan.
1541 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1543 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1545 (call_used_or_fixed_regs): Likewise.
1546 (call_used_or_fixed_reg_p): Likewise.
1547 * reginfo.c (regs_invalidated_by_call): New macro.
1549 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1551 * shrink-wrap.c: Include function-abi.h.
1552 (requires_stack_frame_p): Use crtl->abi to test whether the
1553 current function can use a register without saving it first.
1555 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1557 * sel-sched-ir.h (_def::crosses_call): Replace with...
1558 (_def::crossed_call_abis): ..this new field.
1559 (def_list_add): Take a mask of ABIs instead of a crosses_call
1561 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1562 of _def accordingly.
1563 * sel-sched.c: Include function-abi.h.
1564 (hard_regs_data::regs_for_call_clobbered): Delete.
1565 (reg_rename::crosses_call): Replace with...
1566 (reg_rename::crossed_call_abis): ...this new field.
1567 (fur_static_params::crosses_call): Replace with...
1568 (fur_static_params::crossed_call_abis): ...this new field.
1569 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1570 (init_hard_regs_data): Use crtl->abi to test which registers the
1571 current function would need to save before it uses them.
1572 (mark_unavailable_hard_regs): Update handling of call-clobbered
1573 registers, using call_clobbers_in_region to find out which registers
1574 might be call-clobbered (but without taking -fipa-ra into account
1575 for now). Remove separate handling of partially call-clobbered
1577 (verify_target_availability): Use crossed_call_abis instead of
1579 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1580 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1582 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1584 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1585 function to test whether a register is fully or partly clobbered.
1587 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1589 * rtlanal.c: Include function-abi.h.
1590 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1591 function and clobbers_reg_p to test whether the register
1593 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1594 to get the ABI of the called function and full_reg_clobbers to
1595 get the set of fully call-clobbered registers. Warn about the
1596 pitfalls of using this mode.
1598 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1600 * reload.c: Include function-abi.h.
1601 (find_equiv_reg): Use clobbers_reg_p to test whether either
1602 of the equivalent registers is clobbered by a call.
1603 * reload1.c: Include function-abi.h.
1604 (reg_reloaded_call_part_clobbered): Delete.
1605 (reload): Use crtl->abi to test which registers would need
1606 saving in the prologue before use.
1607 (find_reg): Likewise.
1608 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1609 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1610 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1612 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1614 * regrename.h (du_head::call_clobber_mask): New field.
1615 (du_head::need_caller_save_reg): Replace with...
1616 (du_head::call_abis): ...this new field.
1617 * regrename.c: Include function-abi.h.
1618 (call_clobbered_in_chain_p): New function.
1619 (check_new_reg_p): Use crtl->abi when deciding whether a register
1620 is free for use after RA. Use call_clobbered_in_chain_p to test
1621 whether a candidate register would be clobbered by a call.
1622 (find_rename_reg): Don't add call-clobber conflicts here.
1623 (rename_chains): Check call_abis instead of need_caller_save_reg.
1624 (merge_chains): Update for changes to du_head.
1625 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1626 target. Record the ABI identifier in call_abis and the set of
1627 fully or partially clobbered registers in call_clobber_mask.
1628 Add fully-clobbered registers to hard_conflicts here rather
1629 than in find_rename_reg.
1630 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1631 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1632 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1634 * config/c6x/c6x.c: Likewise.
1636 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1638 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1639 mode of the register when deciding whether it is no longer
1640 available after a call.
1642 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1644 * recog.c: Include function-abi.h.
1645 (peep2_find_free_register): Use crtl->abi when deciding whether
1646 a register is free for use after RA.
1648 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1650 * postreload-gcse.c: Include regs.h and function-abi.h.
1651 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1652 call insn target. Conservatively assume that partially-clobbered
1653 registers are altered.
1655 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1657 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1658 when deciding whether a register is free for use after RA.
1659 (reload_combine): Remove unnecessary use of fixed_reg_set.
1660 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1661 call insn target. Use reg_mode when testing whether a register
1662 is no longer available.
1664 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1666 * target.def (return_call_with_max_clobbers): Delete.
1667 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1668 * doc/tm.texi: Regenerate.
1669 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1670 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1671 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1672 (lra_reg::call_insn): Delete.
1673 * lra.c: Include function-abi.h.
1674 (initialize_lra_reg_info_element): Don't initialize the fields above.
1675 (lra): Use crtl->abi to test whether the current function needs to
1676 save a register in the prologue. Remove special pre-inheritance
1677 lra_create_live_ranges pass for flag_ipa_ra.
1678 * lra-assigns.c: Include function-abi.h
1679 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1680 function needs to save a register in the prologue.
1681 (lra_assign): Assert that registers aren't allocated to a
1682 conflicting register, rather than checking only for overlaps
1683 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1684 and for registers that are not live across a call.
1685 * lra-constraints.c (last_call_for_abi): New variable.
1686 (full_and_partial_call_clobbers): Likewise.
1687 (setup_next_usage_insn): Remove the register from
1688 full_and_partial_call_clobbers.
1689 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1690 whether the register needs a caller save.
1691 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1692 of call_used_or_fixed_regs.
1693 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1694 full_and_partial_call_clobbers.
1695 * lra-lives.c (check_pseudos_live_through_calls): Replace
1696 last_call_used_reg_set and call_insn arguments with an abi argument.
1697 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1698 as the set of conflicting registers.
1699 (calls_have_same_clobbers_p): Delete.
1700 (process_bb_lives): Track the ABI of the last call instead of an
1701 insn/HARD_REG_SET pair. Update calls to
1702 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1703 the set of registers that could be clobbered by an EH edge.
1704 Include partially-clobbered as well as fully-clobbered registers.
1705 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1706 * lra-remat.c: Include function-abi.h.
1707 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1708 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1709 registers and bitmap_view to combine them into dead_regs.
1710 (call_used_input_regno_present_p): Take a function_abi argument
1711 and use it to test whether a register is call-clobbered.
1712 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1713 call insn target. Update tje call to call_used_input_regno_present_p.
1714 (do_remat): Likewise.
1715 (lra_remat): Remove the initialization of call_used_regs_arr_len
1716 and call_used_regs_arr.
1718 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1720 * loop-iv.c: Include regs.h and function-abi.h.
1721 (simplify_using_initial_values): Use insn_callee_abi to get the
1722 ABI of the call insn target. Conservatively assume that
1723 partially-clobbered registers are altered.
1725 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1727 * function-abi.h (call_clobbers_in_region): Declare.
1728 (call_clobbered_in_region_p): New function.
1729 * function-abi.cc (call_clobbers_in_region): Likewise.
1730 * ira-int.h: Include function-abi.h.
1731 (ira_allocno::crossed_calls_abis): New field.
1732 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1733 (ira_need_caller_save_regs): New function.
1734 (ira_need_caller_save_p): Likewise.
1735 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1736 of call_used_or_fixed_regs.
1737 (do_reload): Use crtl->abi to test whether the current function
1738 needs to save a register in the prologue. Count registers that
1739 need to be saved rather than registers that don't.
1740 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1741 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1742 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1743 (propagate_some_info_from_allocno): Likewise.
1744 (copy_info_to_removed_store_destinations): Likewise.
1745 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1746 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1747 (ira_build): Use ira_need_caller_save_regs instead of
1748 call_used_or_fixed_regs.
1749 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1750 whether the current function would need to save a register
1752 (calculate_spill_cost): Likewise.
1753 (allocno_reload_assign): Use ira_need_caller_save_regs and
1754 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1755 * ira-conflicts.c (ira_build_conflicts): Use
1756 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1757 as the set of call-clobbered registers. Remove the
1758 call_used_or_fixed_regs mask from the calculation of
1759 temp_hard_reg_set and mask its use instead. Remove special
1760 handling of partially-clobbered registers.
1761 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1762 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1763 calculate the set of conflicting registers for calls that
1764 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1765 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1766 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1767 Use eh_edge_abi to calculate the set of registers that could
1768 be clobbered by an EH edge. Include partially-clobbered as
1769 well as fully-clobbered registers.
1771 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1773 * haifa-sched.c: Include function-abi.h.
1774 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1775 the function would need to save a register before using it.
1777 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1779 * gcse.c: Include function-abi.h.
1780 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1781 the call insn target. Invalidate partially call-clobbered
1782 registers as well as fully call-clobbered ones.
1784 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1786 * function.c (aggregate_value_p): Work out which ABI the
1787 function is using before testing which registers are at least
1788 partly preserved by a call.
1790 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1792 * early-remat.c: Include regs.h and function-abi.h.
1793 (early_remat::maybe_add_candidate): Don't check for call-clobbered
1795 (early_remat::restrict_remat_for_unavail_regs): New function.
1796 (early_remat::restrict_remat_for_call): Likewise.
1797 (early_remat::process_block): Before calling emit_remat_insns
1798 for a previous call in the block, invalidate any candidates
1799 that would clobber call-preserved registers.
1800 (early_remat::emit_remat_insns_for_block): Likewise for the
1801 final call in a block. Do the same thing for live-in registers
1802 when calling emit_remat_insns at the head of a block.
1804 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1806 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1807 whether the current function needs to save at least part of a
1808 register before using it.
1809 (df_get_exit_block_use_set): Likewise for epilogue restores.
1811 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1813 * df-problems.c: Include regs.h and function-abi.h.
1814 (df_rd_problem_data): Rename sparse_invalidated_by_call to
1815 sparse_invalidated_by_eh and dense_invalidated_by_call to
1816 dense_invalidated_by_eh.
1817 (df_print_bb_index): Update accordingly.
1818 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1819 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1820 that are clobbered by an EH edge. Clobber partially-clobbered
1821 registers as well as fully-clobbered ones.
1822 (df_md_confluence_n): Likewise.
1823 (df_rd_local_compute): Likewise. Update for changes to
1825 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1826 of registers that are clobbered by an EH edge. Includde partially-
1827 clobbered registers as well as fully-clobbered ones.
1829 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1831 * cselib.c (cselib_process_insn): If we know what mode a
1832 register was set in, check whether it is clobbered in that
1833 mode by a call. Only fall back to reg_raw_mode if that fails.
1835 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1837 * cse.c: Include regs.h and function-abi.h.
1838 (invalidate_for_call): Take the call insn as an argument.
1839 Use insn_callee_abi to get the ABI of the call and invalidate
1840 partially clobbered registers as well as fully clobbered ones.
1841 (cse_insn): Update call accordingly.
1843 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1845 * combine.c: Include function-abi.h.
1846 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1847 of the target of call insns. Invalidate partially-clobbered
1848 registers as well as fully-clobbered ones.
1850 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1852 * cfgloopanal.c: Include regs.h and function-abi.h.
1853 (init_set_costs): Use default_function_abi to test whether
1854 a general register is call-clobbered.
1856 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1858 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
1859 instead of the call-clobbered sets.
1861 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1863 * caller-save.c (setup_save_areas): Remove redundant |s of
1865 (save_call_clobbered_regs): Likewise. Use the call ABI rather
1866 than call_used_or_fixed_regs to decide whether a REG_RETURNED
1869 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1871 * rtl.h (predefined_function_abi): Declare.
1872 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1873 instead of a boolean call_save flag.
1874 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
1876 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1877 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1878 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
1879 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1880 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1881 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
1882 * reginfo.c (init_reg_modes_target): Likewise.
1883 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1884 instead of a boolean call_save flag.
1885 * targhooks.c: Include function-abi.h.
1886 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
1887 using eh_edge_abi to choose the mode.
1889 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1891 * target.def (hard_regno_call_part_clobbered): Take an ABI
1892 identifier instead of an rtx_insn.
1893 * doc/tm.texi: Regenerate.
1894 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
1895 (hook_bool_uint_uint_mode_false): New function.
1896 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
1897 (hook_bool_uint_uint_mode_false): New function.
1898 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1899 Take an ABI identifier instead of an rtx_insn.
1900 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
1901 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
1902 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
1903 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
1904 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
1906 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
1907 * cselib.c: Include function-abi.h.
1908 (cselib_process_insn): Update call to
1909 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1910 to get the appropriate ABI identifier.
1911 * function-abi.cc (predefined_function_abi::initialize): Update call
1912 to targetm.hard_regno_call_part_clobbered.
1913 * ira-conflicts.c (ira_build_conflicts): Likewise.
1914 * ira-costs.c (ira_tune_allocno_costs): Likewise.
1915 * lra-constraints.c: Include function-abi.h.
1916 (need_for_call_save_p): Update call to
1917 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1918 to get the appropriate ABI identifier.
1919 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1920 * regcprop.c (copyprop_hardreg_forward_1): Update call
1921 to targetm.hard_regno_call_part_clobbered.
1922 * reginfo.c (choose_hard_reg_mode): Likewise.
1923 * regrename.c (check_new_reg_p): Likewise.
1924 * reload.c (find_equiv_reg): Likewise.
1925 * reload1.c (emit_reload_insns): Likewise.
1926 * sched-deps.c: Include function-abi.h.
1927 (deps_analyze_insn): Update call to
1928 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1929 to get the appropriate ABI identifier.
1930 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
1931 call to targetm.hard_regno_call_part_clobbered.
1932 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
1934 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1936 * config/i386/i386.c: Include function-abi.h.
1937 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
1938 if they preserve some 256-bit or 512-bit SSE registers.
1940 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1942 * target.def (insn_callee_abi): New hook.
1943 (remove_extra_call_preserved_regs): Delete.
1944 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
1945 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1946 * doc/tm.texi: Regenerate.
1947 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
1948 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
1949 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
1951 (aarch64_remove_extra_call_preserved_regs): Delete.
1952 (aarch64_insn_callee_abi): New function.
1953 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1954 (TARGET_INSN_CALLEE_ABI): New macro.
1955 * rtl.h (get_call_fndecl): Declare.
1956 (cgraph_rtl_info): Fix formatting. Tweak comment for
1957 function_used_regs. Remove function_used_regs_valid.
1958 * rtlanal.c (get_call_fndecl): Moved from final.c
1959 * function-abi.h (insn_callee_abi): Declare.
1960 (target_function_abi_info): Mention insn_callee_abi.
1961 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
1962 way to get_call_reg_set_usage did.
1963 (insn_callee_abi): New function.
1964 * regs.h (get_call_reg_set_usage): Delete.
1965 * final.c: Include function-abi.h.
1966 (collect_fn_hard_reg_usage): Add fixed and stack registers to
1967 function_used_regs before the main loop rather than afterwards.
1968 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
1969 if function_used_regs ends up not being useful.
1970 (get_call_fndecl): Move to rtlanal.c
1971 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
1972 * caller-save.c: Include function-abi.h.
1973 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
1974 instead of get_call_reg_set_usage.
1975 * cfgcleanup.c: Include function-abi.h.
1976 (old_insns_match_p): Use insn_callee_abi instead of
1977 get_call_reg_set_usage.
1978 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
1980 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
1982 * df-scan.c: Include function-abi.h.
1983 (df_get_call_refs): Use insn_callee_abi instead of
1984 get_call_reg_set_usage.
1985 * ira-lives.c: Include function-abi.h.
1986 (process_bb_node_lives): Use insn_callee_abi instead of
1987 get_call_reg_set_usage.
1988 * lra-lives.c: Include function-abi.h.
1989 (process_bb_lives): Use insn_callee_abi instead of
1990 get_call_reg_set_usage.
1991 * postreload.c: Include function-abi.h.
1992 (reload_combine): Use insn_callee_abi instead of
1993 get_call_reg_set_usage.
1994 * regcprop.c: Include function-abi.h.
1995 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
1996 get_call_reg_set_usage.
1997 * resource.c: Include function-abi.h.
1998 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
1999 instead of get_call_reg_set_usage.
2000 * var-tracking.c: Include function-abi.h.
2001 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2002 get_call_reg_set_usage.
2004 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2006 * target.def (fntype_abi): New target hook.
2007 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2008 * doc/tm.texi: Regenerate.
2009 * target.h (predefined_function_abi): Declare.
2010 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2012 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2013 * config/aarch64/aarch64.c: Include function-abi.h.
2014 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2015 (TARGET_FNTYPE_ABI): Define.
2017 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2019 * Makefile.in (OBJS): Add function-abi.o.
2020 (GTFILES): Add function-abi.h.
2021 * function-abi.cc: New file.
2022 * function-abi.h: Likewise.
2023 * emit-rtl.h (rtl_data::abi): New field.
2024 * function.c: Include function-abi.h.
2025 (prepare_function_start): Initialize crtl->abi.
2026 * read-rtl-function.c: Include regs.h and function-abi.h.
2027 (read_rtl_function_body): Initialize crtl->abi.
2028 (read_rtl_function_body_from_file_range): Likewise.
2029 * reginfo.c: Include function-abi.h.
2030 (init_reg_sets_1): Initialize default_function_abi.
2031 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2032 when making a register global.
2033 * target-globals.h (this_target_function_abi_info): Declare.
2034 (target_globals::function_abi_info): New field.
2035 (restore_target_globals): Copy it.
2036 * target-globals.c: Include function-abi.h.
2037 (default_target_globals): Initialize the function_abi_info field.
2038 (target_globals): Allocate it.
2039 (save_target_globals): Free it.
2041 2019-09-30 Nick Clifton <nickc@redhat.com>
2044 * config/frv/frv.c (frv_register_move_cost): Add break statements
2045 to avoid falling through to the wrong cases. Tidy code.
2047 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2049 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2050 For multi-registers modes, test how big each register part is.
2052 2019-09-30 Nick Clifton <nickc@redhat.com>
2055 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2056 (TARGET_ASM_SELECT_SECTION): Remove definition.
2057 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2059 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2061 * emit-rtl.c (init_raw_REG): New function.
2062 (gen_raw_REG): Use init_raw_REG.
2063 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2065 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2066 * rtl.h (rtx_init): New function.
2067 (rtx_alloca): New function.
2068 (init_raw_REG): New function.
2069 (alloca_raw_REG): New macro.
2071 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2073 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2074 (pcrel_local_address): Replace pcrel_address predicate, use the
2075 new function address_to_insn_form.
2076 (pcrel_external_address): Replace with new implementation using
2077 address_to_insn_form..
2078 (prefixed_mem_operand): Delete predicate which is now unused.
2079 (pcrel_external_mem_operand): Delete predicate which is now
2081 * config/rs6000/rs6000-protos.h (enum insn_form): New
2083 (enum non_prefixed_form): New enumeration.
2084 (address_to_insn_form): New declaration.
2085 (prefixed_load_p): New declaration.
2086 (prefixed_store_p): New declaration.
2087 (prefixed_paddi_p): New declaration.
2088 (rs6000_asm_output_opcode): New declaration.
2089 (rs6000_final_prescan_insn): Move declaration and update calling
2091 (address_is_prefixed): New helper inline function.
2092 * config/rs6000/rs6000.c(print_operand_address): Check for either
2093 PC-relative local symbols or PC-relative external symbols.
2094 (rs6000_emit_move): Support loading PC-relative addresses.
2095 (mode_supports_prefixed_address_p): Delete, no longer used.
2096 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2097 (address_to_insn_form): New function to decode an address format.
2098 (reg_to_non_prefixed): New function to identify what the
2099 non-prefixed memory instruction format is for a register.
2100 (prefixed_load_p): New function to identify prefixed loads.
2101 (prefixed_store_p): New function to identify prefixed stores.
2102 (prefixed_paddi_p): New function to identify prefixed load
2104 (next_insn_prefixed_p): New static state variable.
2105 (rs6000_final_prescan_insn): New function to determine if an insn
2106 uses a prefixed instruction.
2107 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2108 prefixed instruction.
2109 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2110 (ASM_OUTPUT_OPCODE): New target hook.
2111 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2112 prefixed instructions.
2113 (prefixed_length): New insn attribute for the size of prefixed
2115 (non_prefixed_length): New insn attribute for the size of
2116 non-prefixed instructions.
2117 (pcrel_local_addr): New insn to load up a local PC-relative
2119 (pcrel_extern_addr): New insn to load up an external PC-relative
2121 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2122 GPR and loading a 128-bit floating point type to a GPR.
2124 2019-09-30 Richard Biener <rguenther@suse.de>
2126 * gimple.c (gimple_get_lhs): For PHIs return the result.
2127 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2128 SLP instance as argument.
2129 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2130 double-reduction PHIs with vectorizable_lc_phi.
2131 (vect_analyze_loop_operations): Adjust.
2132 (vect_create_epilog_for_reduction): Remove all code not dealing
2133 with reduction LC PHI or epilogue generation.
2134 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2135 for live stmts of reductions.
2136 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2137 do not handle defs that are not vect_internal_def.
2138 (can_vectorize_live_stmts): Adjust.
2139 (vect_analyze_stmt): When the vectorized stmt defined a value
2140 used on backedges adjust the backedge uses of vectorized PHIs.
2142 2019-09-30 Martin Jambor <mjambor@suse.cz>
2145 * tree-inline.c (force_value_to_type): New function.
2146 (setup_one_parameter): Use force_value_to_type to convert type.
2147 * tree-inline.c (force_value_to_type): Declare.
2148 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2149 with register type mismatches.
2151 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2153 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2155 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2156 * config/rs6000/t-freebsd64: Make use of the above define and build
2157 the 32-bit libraries with secure-plt.
2159 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2162 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2163 gen_int_mode instead of GEN_INT.
2165 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2167 * config/darwin.c (gen_macho_low): Amend to include the mode
2169 (machopic_indirect_data_reference): Amend gen_macho_low call
2170 to include mode argument
2171 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2172 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2173 the macho_high expander and two define_insn entries.
2175 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2178 * optc-save-gen.awk: Fix up printing string option differences.
2180 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2182 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2183 vec_perm cost to 1 for non-Power7 VSX architectures.
2185 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2187 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2188 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2189 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2191 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2193 * config/darwin.c (gen_macho_high): Amend to include the mode
2195 (machopic_indirect_data_reference): Amend gen_macho_high call
2196 to include mode argument.
2197 (machopic_legitimize_pic_address): Likewise.
2198 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2199 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2200 the macho_high expander and two define_insn entries.
2202 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2205 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2207 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2210 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2211 std::string::compare instead of std::string::find.
2213 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2215 * configure: Regenerate.
2217 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2220 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2221 variables as shared.
2223 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2225 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2226 replaces the expander and two define_insn entries.
2227 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2229 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2231 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2233 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2234 (fibonacci_heap::nodes): Likewise.
2235 (fibonacci_heap::min_key): Likewise.
2236 (fibonacci_heap::min): Likewise.
2238 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2240 * cgraph.c (cgraph_node::get_fun): Make const.
2241 * cgraph.h (cgraph_node::get_fun): Likewise.
2243 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2246 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2249 2019-09-27 Richard Biener <rguenther@suse.de>
2251 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2252 (STMT_VINFO_REDUC_FN): Likewise.
2253 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2254 STMT_VINFO_REDUC_FN.
2255 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2256 for condition reductions.
2257 (vect_create_epilog_for_reduction): Compute all required state
2258 from the stmt to be vectorized.
2259 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2260 invocation and remove then dead code. For single def-use chains
2261 record only a single vector stmt.
2263 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2265 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2266 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2267 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2268 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2269 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2270 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2271 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2272 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2273 (aarch64_general_builtin_rsqrt): Declare.
2274 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2276 (aarch64_mangle_builtin_type): Rename to...
2277 (aarch64_general_mangle_builtin_type): ...this.
2278 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2279 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2280 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2281 aarch64_general_add_builtin instead of add_builtin_function.
2282 (aarch64_init_builtins): Rename to...
2283 (aarch64_general_init_builtins): ...this. Use
2284 aarch64_general_add_builtin instead of add_builtin_function.
2285 (aarch64_builtin_decl): Rename to...
2286 (aarch64_general_builtin_decl): ...this and remove the unused
2288 (aarch64_expand_builtin): Rename to...
2289 (aarch64_general_expand_builtin): ...this and remove the unused
2291 (aarch64_builtin_rsqrt): Rename to...
2292 (aarch64_general_builtin_rsqrt): ...this.
2293 (aarch64_fold_builtin): Rename to...
2294 (aarch64_general_fold_builtin): ...this. Take the function subcode
2295 and return type as arguments. Remove the "ignored" argument.
2296 (aarch64_gimple_fold_builtin): Rename to...
2297 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2298 subcode and gcall as arguments, and return the new function call.
2299 * config/aarch64/aarch64.c (aarch64_init_builtins)
2300 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2301 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2302 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2303 instead of aarch64_builtin_rsqrt.
2304 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2305 instead of aarch64_mangle_builtin_type.
2307 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2309 * target.def (check_builtin_call): New target hook.
2310 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2311 * doc/tm.texi: Regenerate.
2313 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2315 PR tree-optimization/91909
2316 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2317 reduc_index parameter. When handling COND_REDUCTION, make sure
2318 that the reduction phi operand is in the correct arm of the
2320 (vectorizable_reduction): Pass reduc_index to the above.
2322 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2324 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2325 New combine pattern.
2327 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2329 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2330 loop instruction into new basic block before the loop when basic
2331 block that precedes the loop is empty.
2333 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2335 * function.c (gimplify_parameters): Use build_clobber function.
2336 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2337 * tree-inline.c (expand_call_inline): Likewise.
2338 * tree-sra.c (clobber_subtree): Likewise.
2339 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2340 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2341 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2342 lower_omp_target): Likewise.
2343 * omp-expand.c (expand_omp_for_generic): Likewise.
2344 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2346 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2348 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2349 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2350 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2351 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2352 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2353 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2354 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2355 LD_ELEMREV_V16QI): Use the PURE attribute.
2357 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2359 * config/rs6000/darwin.md: Replace the expanders for
2360 load_macho_picbase and reload_macho_picbase with use of '@'
2361 and <mode> in their respective define_insns.
2362 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2363 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2364 Pmode to gen_load_macho_picbase.
2365 * config/rs6000/rs6000.md: Likewise.
2367 2019-09-25 Richard Biener <rguenther@suse.de>
2369 PR tree-optimization/91896
2370 * tree-vect-loop.c (vectorizable_reduction): The single
2371 def-use cycle optimization cannot apply when there's more
2372 than one pattern stmt involved.
2374 2019-09-26 Richard Biener <rguenther@suse.de>
2376 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2377 loop-closed PHIs that are vect_internal_def.
2378 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2380 (vectorizable_lc_phi): New.
2381 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2382 (vect_transform_stmt): Likewise.
2383 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2384 (vectorizable_lc_phi): Declare.
2386 2019-09-26 Richard Biener <rguenther@suse.de>
2388 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2389 vectorizable_reduction for vect_double_reduction_def.
2390 (vect_transform_loop): Likewise.
2391 (vect_create_epilog_for_reduction): Move double-reduction
2392 PHI creation and preheader argument setting of PHIs ...
2393 (vectorizable_reduction): ... here. Also process
2394 vect_double_reduction_def PHIs, creating the vectorized
2395 PHI nodes, remembering the scalar adjustment computed for
2396 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2397 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2398 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2399 Initialize STMT_VINFO_REDUC_CODE.
2400 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2401 (_stmt_vec_info::reduc_code): Likewise.
2402 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2403 (STMT_VINFO_REDUC_CODE): Likewise.
2405 2019-09-26 Matt Turner <mattst88@gmail.com>
2408 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2409 (mtune=): Add Negative(mtune=).
2410 (mcpu=): Add Negative(mcpu=).
2411 * config/arm/arm.opt: Likewise.
2413 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2415 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2416 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2418 * config/arm/arm_acle.h: Define builtins for the above.
2419 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2420 (simd32_op): Handle the above.
2421 * config/arm/unspecs.md: Define unspecs for the above.
2423 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2425 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2426 (arm_<sup>xtb16): Likewise.
2427 (arm_usada8): Likewise.
2428 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2429 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2430 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2431 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2432 __sxtb16, __uxtab16, __uxtb16): Define.
2433 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2434 * config/arm/unspecs.md: Define unspecs for the above.
2435 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2436 (USXTB16): Likewise.
2437 (simd32_op): New int_attribute.
2438 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2439 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2441 2019-09-26 Martin Jambor <mjambor@suse.cz>
2443 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2446 2019-09-26 Martin Jambor <mjambor@suse.cz>
2448 * ipa-sra.c (process_scan_results): Fix continue condition.
2450 2019-09-26 Martin Liska <mliska@suse.cz>
2452 PR tree-optimization/91885
2453 * tree-vectorizer.c (try_vectorize_loop_1): Add
2454 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2456 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2458 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2459 aarch64_plus_immediate rather than aarch64_uimm12_shift
2460 to test for valid PLUS immediates.
2462 2019-09-25 Martin Jambor <mjambor@suse.cz>
2464 * tree-sra.c (no_accesses_p): Remove.
2465 (no_accesses_representant): Likewise.
2467 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2469 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2471 (vaba_s16): Likewise.
2472 (vaba_s32): Likewise.
2473 (vaba_u8): Likewise.
2474 (vaba_u16): Likewise.
2475 (vaba_u32): Likewise.
2476 (vabal_high_s8): Likewise.
2477 (vabal_high_s16): Likewise.
2478 (vabal_high_s32): Likewise.
2479 (vabal_high_u8): Likewise.
2480 (vabal_high_u16): Likewise.
2481 (vabal_high_u32): Likewise.
2482 (vabal_s8): Likewise.
2483 (vabal_s16): Likewise.
2484 (vabal_s32): Likewise.
2485 (vabal_u8): Likewise.
2486 (vabal_u16): Likewise.
2487 (vabal_u32): Likewise.
2488 (vabaq_s8): Likewise.
2489 (vabaq_s16): Likewise.
2490 (vabaq_s32): Likewise.
2491 (vabaq_u8): Likewise.
2492 (vabaq_u16): Likewise.
2493 (vabaq_u32): Likewise.
2494 (vabd_s8): Likewise.
2495 (vabd_s16): Likewise.
2496 (vabd_s32): Likewise.
2497 (vabd_u8): Likewise.
2498 (vabd_u16): Likewise.
2499 (vabd_u32): Likewise.
2500 (vabdl_high_s8): Likewise.
2501 (vabdl_high_s16): Likewise.
2502 (vabdl_high_s32): Likewise.
2503 (vabdl_high_u8): Likewise.
2504 (vabdl_high_u16): Likewise.
2505 (vabdl_high_u32): Likewise.
2506 (vabdl_s8): Likewise.
2507 (vabdl_s16): Likewise.
2508 (vabdl_s32): Likewise.
2509 (vabdl_u8): Likewise.
2510 (vabdl_u16): Likewise.
2511 (vabdl_u32): Likewise.
2512 (vabdq_s8): Likewise.
2513 (vabdq_s16): Likewise.
2514 (vabdq_s32): Likewise.
2515 (vabdq_u8): Likewise.
2516 (vabdq_u16): Likewise.
2517 (vabdq_u32): Likewise.
2518 (vaddlv_s8): Likewise.
2519 (vaddlv_s16): Likewise.
2520 (vaddlv_u8): Likewise.
2521 (vaddlv_u16): Likewise.
2522 (vaddlvq_s8): Likewise.
2523 (vaddlvq_s16): Likewise.
2524 (vaddlvq_s32): Likewise.
2525 (vaddlvq_u8): Likewise.
2526 (vaddlvq_u16): Likewise.
2527 (vaddlvq_u32): Likewise.
2528 (vcvtx_f32_f64): Likewise.
2529 (vcvtx_high_f32_f64): Likewise.
2530 (vcvtxd_f32_f64): Likewise.
2531 (vmla_n_f32): Likewise.
2532 (vmla_n_s16): Likewise.
2533 (vmla_n_s32): Likewise.
2534 (vmla_n_u16): Likewise.
2535 (vmla_n_u32): Likewise.
2536 (vmla_s8): Likewise.
2537 (vmla_s16): Likewise.
2538 (vmla_s32): Likewise.
2539 (vmla_u8): Likewise.
2540 (vmla_u16): Likewise.
2541 (vmla_u32): Likewise.
2542 (vmlal_high_n_s16): Likewise.
2543 (vmlal_high_n_s32): Likewise.
2544 (vmlal_high_n_u16): Likewise.
2545 (vmlal_high_n_u32): Likewise.
2546 (vmlal_high_s8): Likewise.
2547 (vmlal_high_s16): Likewise.
2548 (vmlal_high_s32): Likewise.
2549 (vmlal_high_u8): Likewise.
2550 (vmlal_high_u16): Likewise.
2551 (vmlal_high_u32): Likewise.
2552 (vmlal_n_s16): Likewise.
2553 (vmlal_n_s32): Likewise.
2554 (vmlal_n_u16): Likewise.
2555 (vmlal_n_u32): Likewise.
2556 (vmlal_s8): Likewise.
2557 (vmlal_s16): Likewise.
2558 (vmlal_s32): Likewise.
2559 (vmlal_u8): Likewise.
2560 (vmlal_u16): Likewise.
2561 (vmlal_u32): Likewise.
2562 (vmlaq_n_f32): Likewise.
2563 (vmlaq_n_s16): Likewise.
2564 (vmlaq_n_s32): Likewise.
2565 (vmlaq_n_u16): Likewise.
2566 (vmlaq_n_u32): Likewise.
2567 (vmlaq_s8): Likewise.
2568 (vmlaq_s16): Likewise.
2569 (vmlaq_s32): Likewise.
2570 (vmlaq_u8): Likewise.
2571 (vmlaq_u16): Likewise.
2572 (vmlaq_u32): Likewise.
2573 (vmls_n_f32): Likewise.
2574 (vmls_n_s16): Likewise.
2575 (vmls_n_s32): Likewise.
2576 (vmls_n_u16): Likewise.
2577 (vmls_n_u32): Likewise.
2578 (vmls_s8): Likewise.
2579 (vmls_s16): Likewise.
2580 (vmls_s32): Likewise.
2581 (vmls_u8): Likewise.
2582 (vmls_u16): Likewise.
2583 (vmls_u32): Likewise.
2584 (vmlsl_high_n_s16): Likewise.
2585 (vmlsl_high_n_s32): Likewise.
2586 (vmlsl_high_n_u16): Likewise.
2587 (vmlsl_high_n_u32): Likewise.
2588 (vmlsl_high_s8): Likewise.
2589 (vmlsl_high_s16): Likewise.
2590 (vmlsl_high_s32): Likewise.
2591 (vmlsl_high_u8): Likewise.
2592 (vmlsl_high_u16): Likewise.
2593 (vmlsl_high_u32): Likewise.
2594 (vmlsl_n_s16): Likewise.
2595 (vmlsl_n_s32): Likewise.
2596 (vmlsl_n_u16): Likewise.
2597 (vmlsl_n_u32): Likewise.
2598 (vmlsl_s8): Likewise.
2599 (vmlsl_s16): Likewise.
2600 (vmlsl_s32): Likewise.
2601 (vmlsl_u8): Likewise.
2602 (vmlsl_u16): Likewise.
2603 (vmlsl_u32): Likewise.
2604 (vmlsq_n_f32): Likewise.
2605 (vmlsq_n_s16): Likewise.
2606 (vmlsq_n_s32): Likewise.
2607 (vmlsq_n_u16): Likewise.
2608 (vmlsq_n_u32): Likewise.
2609 (vmlsq_s8): Likewise.
2610 (vmlsq_s16): Likewise.
2611 (vmlsq_s32): Likewise.
2612 (vmlsq_u8): Likewise.
2613 (vmlsq_u16): Likewise.
2614 (vmlsq_u32): Likewise.
2615 (vmovl_high_s8): Likewise.
2616 (vmovl_high_s16): Likewise.
2617 (vmovl_high_s32): Likewise.
2618 (vmovl_high_u8): Likewise.
2619 (vmovl_high_u16): Likewise.
2620 (vmovl_high_u32): Likewise.
2621 (vmovl_s8): Likewise.
2622 (vmovl_s16): Likewise.
2623 (vmovl_s32): Likewise.
2624 (vmovl_u8): Likewise.
2625 (vmovl_u16): Likewise.
2626 (vmovl_u32): Likewise.
2627 (vmovn_high_s16): Likewise.
2628 (vmovn_high_s32): Likewise.
2629 (vmovn_high_s64): Likewise.
2630 (vmovn_high_u16): Likewise.
2631 (vmovn_high_u32): Likewise.
2632 (vmovn_high_u64): Likewise.
2633 (vmovn_s16): Likewise.
2634 (vmovn_s32): Likewise.
2635 (vmovn_s64): Likewise.
2636 (vmovn_u16): Likewise.
2637 (vmovn_u32): Likewise.
2638 (vmovn_u64): Likewise.
2639 (vmull_high_n_s16): Likewise.
2640 (vmull_high_n_s32): Likewise.
2641 (vmull_high_n_u16): Likewise.
2642 (vmull_high_n_u32): Likewise.
2643 (vmull_high_p8): Likewise.
2644 (vmull_high_s8): Likewise.
2645 (vmull_high_s16): Likewise.
2646 (vmull_high_s32): Likewise.
2647 (vmull_high_u8): Likewise.
2648 (vmull_high_u16): Likewise.
2649 (vmull_high_u32): Likewise.
2650 (vmull_n_s16): Likewise.
2651 (vmull_n_s32): Likewise.
2652 (vmull_n_u16): Likewise.
2653 (vmull_n_u32): Likewise.
2654 (vmull_p8): Likewise.
2655 (vmull_s8): Likewise.
2656 (vmull_s16): Likewise.
2657 (vmull_s32): Likewise.
2658 (vmull_u8): Likewise.
2659 (vmull_u16): Likewise.
2660 (vmull_u32): Likewise.
2661 (vpadal_s8): Likewise.
2662 (vpadal_s16): Likewise.
2663 (vpadal_s32): Likewise.
2664 (vpadal_u8): Likewise.
2665 (vpadal_u16): Likewise.
2666 (vpadal_u32): Likewise.
2667 (vpadalq_s8): Likewise.
2668 (vpadalq_s16): Likewise.
2669 (vpadalq_s32): Likewise.
2670 (vpadalq_u8): Likewise.
2671 (vpadalq_u16): Likewise.
2672 (vpadalq_u32): Likewise.
2673 (vpaddl_s8): Likewise.
2674 (vpaddl_s16): Likewise.
2675 (vpaddl_s32): Likewise.
2676 (vpaddl_u8): Likewise.
2677 (vpaddl_u16): Likewise.
2678 (vpaddl_u32): Likewise.
2679 (vpaddlq_s8): Likewise.
2680 (vpaddlq_s16): Likewise.
2681 (vpaddlq_s32): Likewise.
2682 (vpaddlq_u8): Likewise.
2683 (vpaddlq_u16): Likewise.
2684 (vpaddlq_u32): Likewise.
2685 (vpaddq_s8): Likewise.
2686 (vpaddq_s16): Likewise.
2687 (vpaddq_s32): Likewise.
2688 (vpaddq_s64): Likewise.
2689 (vpaddq_u8): Likewise.
2690 (vpaddq_u16): Likewise.
2691 (vpaddq_u32): Likewise.
2692 (vpaddq_u64): Likewise.
2693 (vqdmulh_n_s16): Likewise.
2694 (vqdmulh_n_s32): Likewise.
2695 (vqdmulhq_n_s16): Likewise.
2696 (vqdmulhq_n_s32): Likewise.
2697 (vqmovn_high_s16): Likewise.
2698 (vqmovn_high_s32): Likewise.
2699 (vqmovn_high_s64): Likewise.
2700 (vqmovn_high_u16): Likewise.
2701 (vqmovn_high_u32): Likewise.
2702 (vqmovn_high_u64): Likewise.
2703 (vqmovun_high_s16): Likewise.
2704 (vqmovun_high_s32): Likewise.
2705 (vqmovun_high_s64): Likewise.
2706 (vqrdmulh_n_s16): Likewise.
2707 (vqrdmulh_n_s32): Likewise.
2708 (vqrdmulhq_n_s16): Likewise.
2709 (vqrdmulhq_n_s32): Likewise.
2710 (vrsqrte_u32): Likewise.
2711 (vrsqrteq_u32): Likewise.
2712 (vtst_p8): Likewise.
2713 (vtst_p16): Likewise.
2714 (vtst_p64): Likewise.
2715 (vtstq_p8): Likewise.
2716 (vtstq_p16): Likewise.
2717 (vtstq_p64): Likewise.
2718 (vaddlv_s32): Likewise.
2719 (vaddlv_u32): Likewise.
2720 (vqtbl1_p8): Likewise.
2721 (vqtbl1_s8): Likewise.
2722 (vqtbl1_u8): Likewise.
2723 (vqtbl1q_p8): Likewise.
2724 (vqtbl1q_s8): Likewise.
2725 (vqtbl1q_u8): Likewise.
2726 (vqtbx1_s8): Likewise.
2727 (vqtbx1_u8): Likewise.
2728 (vqtbx1_p8): Likewise.
2729 (vqtbx1q_s8): Likewise.
2730 (vqtbx1q_u8): Likewise.
2731 (vqtbx1q_p8): Likewise.
2732 (vtbl1_s8): Likewise.
2733 (vtbl1_u8): Likewise.
2734 (vtbl1_p8): Likewise.
2735 (vtbl2_s8): Likewise.
2736 (vtbl2_u8): Likewise.
2737 (vtbl2_p8): Likewise.
2738 (vtbl3_s8): Likewise.
2739 (vtbl3_u8): Likewise.
2740 (vtbl3_p8): Likewise.
2741 (vtbl4_s8): Likewise.
2742 (vtbl4_u8): Likewise.
2743 (vtbl4_p8): Likewise.
2744 (vtbx2_s8): Likewise.
2745 (vtbx2_u8): Likewise.
2746 (vtbx2_p8): Likewise.
2747 (vld1_f32): Likewise.
2748 (vld1_f64): Likewise.
2749 (vld1_p8): Likewise.
2750 (vld1_p16): Likewise.
2751 (vld1_p64): Likewise.
2752 (vld1_s8): Likewise.
2753 (vld1_s16): Likewise.
2754 (vld1_s32): Likewise.
2755 (vld1_s64): Likewise.
2756 (vld1_u8): Likewise.
2757 (vld1_u16): Likewise.
2758 (vld1_u32): Likewise.
2759 (vld1_u64): Likewise.
2760 (vld1q_f32): Likewise.
2761 (vld1q_f64): Likewise.
2762 (vld1q_p8): Likewise.
2763 (vld1q_p16): Likewise.
2764 (vld1q_p64): Likewise.
2765 (vld1q_s8): Likewise.
2766 (vld1q_s16): Likewise.
2767 (vld1q_s32): Likewise.
2768 (vld1q_s64): Likewise.
2769 (vld1q_u8): Likewise.
2770 (vld1q_u16): Likewise.
2771 (vld1q_u32): Likewise.
2772 (vld1q_u64): Likewise.
2773 (vpmax_s8): Likewise.
2774 (vpmax_s16): Likewise.
2775 (vpmax_s32): Likewise.
2776 (vpmax_u8): Likewise.
2777 (vpmax_u16): Likewise.
2778 (vpmax_u32): Likewise.
2779 (vpmaxq_s8): Likewise.
2780 (vpmaxq_s16): Likewise.
2781 (vpmaxq_s32): Likewise.
2782 (vpmaxq_u8): Likewise.
2783 (vpmaxq_u16): Likewise.
2784 (vpmaxq_u32): Likewise.
2785 (vpmax_f32): Likewise.
2786 (vpmaxq_f32): Likewise.
2787 (vpmaxq_f64): Likewise.
2788 (vpmaxqd_f64): Likewise.
2789 (vpmaxs_f32): Likewise.
2790 (vpmaxnm_f32): Likewise.
2791 (vpmaxnmq_f32): Likewise.
2792 (vpmaxnmq_f64): Likewise.
2793 (vpmaxnmqd_f64): Likewise.
2794 (vpmaxnms_f32): Likewise.
2795 (vpmin_s8): Likewise.
2796 (vpmin_s16): Likewise.
2797 (vpmin_s32): Likewise.
2798 (vpmin_u8): Likewise.
2799 (vpmin_u16): Likewise.
2800 (vpmin_u32): Likewise.
2801 (vpminq_s8): Likewise.
2802 (vpminq_s16): Likewise.
2803 (vpminq_s32): Likewise.
2804 (vpminq_u8): Likewise.
2805 (vpminq_u16): Likewise.
2806 (vpminq_u32): Likewise.
2807 (vpmin_f32): Likewise.
2808 (vpminq_f32): Likewise.
2809 (vpminq_f64): Likewise.
2810 (vpminqd_f64): Likewise.
2811 (vpmins_f32): Likewise.
2812 (vpminnm_f32): Likewise.
2813 (vpminnmq_f32): Likewise.
2814 (vpminnmq_f64): Likewise.
2815 (vpminnmqd_f64): Likewise.
2816 (vpminnms_f32): Likewise.
2817 (vmla_f32): Likewise.
2818 (vmlaq_f32): Likewise.
2819 (vmlaq_f64): Likewise.
2820 (vmls_f32): Likewise.
2821 (vmlsq_f32): Likewise.
2822 (vmlsq_f64): Likewise.
2823 (vqtbl2_s8): Likewise.
2824 (vqtbl2_u8): Likewise.
2825 (vqtbl2_p8): Likewise.
2826 (vqtbl2q_s8): Likewise.
2827 (vqtbl2q_u8): Likewise.
2828 (vqtbl2q_p8): Likewise.
2829 (vqtbl3_s8): Likewise.
2830 (vqtbl3_u8): Likewise.
2831 (vqtbl3_p8): Likewise.
2832 (vqtbl3q_s8): Likewise.
2833 (vqtbl3q_u8): Likewise.
2834 (vqtbl3q_p8): Likewise.
2835 (vqtbl4_s8): Likewise.
2836 (vqtbl4_u8): Likewise.
2837 (vqtbl4_p8): Likewise.
2838 (vqtbl4q_s8): Likewise.
2839 (vqtbl4q_u8): Likewise.
2840 (vqtbl4q_p8): Likewise.
2841 (vqtbx2_s8): Likewise.
2842 (vqtbx2_u8): Likewise.
2843 (vqtbx2_p8): Likewise.
2844 (vqtbx2q_s8): Likewise.
2845 (vqtbx2q_u8): Likewise.
2846 (vqtbx2q_p8): Likewise.
2847 (vqtbx3_s8): Likewise.
2848 (vqtbx3_u8): Likewise.
2849 (vqtbx3_p8): Likewise.
2850 (vqtbx3q_s8): Likewise.
2851 (vqtbx3q_u8): Likewise.
2852 (vqtbx3q_p8): Likewise.
2853 (vqtbx4_s8): Likewise.
2854 (vqtbx4_u8): Likewise.
2855 (vqtbx4_p8): Likewise.
2856 (vqtbx4q_s8): Likewise.
2857 (vqtbx4q_u8): Likewise.
2858 (vqtbx4q_p8): Likewise.
2859 (vrev16_p8): Likewise.
2860 (vrev16_s8): Likewise.
2861 (vrev16_u8): Likewise.
2862 (vrev16q_p8): Likewise.
2863 (vrev16q_s8): Likewise.
2864 (vrev16q_u8): Likewise.
2865 (vrev32_p8): Likewise.
2866 (vrev32_p16): Likewise.
2867 (vrev32_s8): Likewise.
2868 (vrev32_s16): Likewise.
2869 (vrev32_u8): Likewise.
2870 (vrev32_u16): Likewise.
2871 (vrev32q_p8): Likewise.
2872 (vrev32q_p16): Likewise.
2873 (vrev32q_s8): Likewise.
2874 (vrev32q_s16): Likewise.
2875 (vrev32q_u8): Likewise.
2876 (vrev32q_u16): Likewise.
2877 (vrev64_f32): Likewise.
2878 (vrev64_p8): Likewise.
2879 (vrev64_p16): Likewise.
2880 (vrev64_s8): Likewise.
2881 (vrev64_s16): Likewise.
2882 (vrev64_s32): Likewise.
2883 (vrev64_u8): Likewise.
2884 (vrev64_u16): Likewise.
2885 (vrev64_u32): Likewise.
2886 (vrev64q_f32): Likewise.
2887 (vrev64q_p8): Likewise.
2888 (vrev64q_p16): Likewise.
2889 (vrev64q_s8): Likewise.
2890 (vrev64q_s16): Likewise.
2891 (vrev64q_s32): Likewise.
2892 (vrev64q_u8): Likewise.
2893 (vrev64q_u16): Likewise.
2894 (vrev64q_u32): Likewise.
2895 (vsha1cq_u32): Likewise.
2896 (vsha1mq_u32): Likewise.
2897 (vsha1pq_u32): Likewise.
2898 (vsha1h_u32): Likewise.
2899 (vsha1su0q_u32): Likewise.
2900 (vsha1su1q_u32): Likewise.
2901 (vsha256hq_u32): Likewise.
2902 (vsha256h2q_u32): Likewise.
2903 (vsha256su0q_u32): Likewise.
2904 (vsha256su1q_u32): Likewise.
2905 (vmull_p64): Likewise.
2906 (vmull_high_p64): Likewise.
2907 (vsqrt_f32): Likewise.
2908 (vsqrtq_f32): Likewise.
2909 (vsqrt_f64): Likewise.
2910 (vsqrtq_f64): Likewise.
2911 (vst1_f32): Likewise.
2912 (vst1_f64): Likewise.
2913 (vst1_p8): Likewise.
2914 (vst1_p16): Likewise.
2915 (vst1_p64): Likewise.
2916 (vst1_s8): Likewise.
2917 (vst1_s16): Likewise.
2918 (vst1_s32): Likewise.
2919 (vst1_s64): Likewise.
2920 (vst1_u8): Likewise.
2921 (vst1_u16): Likewise.
2922 (vst1_u32): Likewise.
2923 (vst1_u64): Likewise.
2924 (vst1q_f32): Likewise.
2925 (vst1q_f64): Likewise.
2926 (vst1q_p8): Likewise.
2927 (vst1q_p16): Likewise.
2928 (vst1q_p64): Likewise.
2929 (vst1q_s8): Likewise.
2930 (vst1q_s16): Likewise.
2931 (vst1q_s32): Likewise.
2932 (vst1q_s64): Likewise.
2933 (vst1q_u8): Likewise.
2934 (vst1q_u16): Likewise.
2935 (vst1q_u32): Likewise.
2936 (vst1q_u64): Likewise.
2937 (vst1_s64_x2): Likewise.
2938 (vst1_u64_x2): Likewise.
2939 (vst1_f64_x2): Likewise.
2940 (vst1_s8_x2): Likewise.
2941 (vst1_p8_x2): Likewise.
2942 (vst1_s16_x2): Likewise.
2943 (vst1_p16_x2): Likewise.
2944 (vst1_s32_x2): Likewise.
2945 (vst1_u8_x2): Likewise.
2946 (vst1_u16_x2): Likewise.
2947 (vst1_u32_x2): Likewise.
2948 (vst1_f16_x2): Likewise.
2949 (vst1_f32_x2): Likewise.
2950 (vst1_p64_x2): Likewise.
2951 (vst1q_s8_x2): Likewise.
2952 (vst1q_p8_x2): Likewise.
2953 (vst1q_s16_x2): Likewise.
2954 (vst1q_p16_x2): Likewise.
2955 (vst1q_s32_x2): Likewise.
2956 (vst1q_s64_x2): Likewise.
2957 (vst1q_u8_x2): Likewise.
2958 (vst1q_u16_x2): Likewise.
2959 (vst1q_u32_x2): Likewise.
2960 (vst1q_u64_x2): Likewise.
2961 (vst1q_f16_x2): Likewise.
2962 (vst1q_f32_x2): Likewise.
2963 (vst1q_f64_x2): Likewise.
2964 (vst1q_p64_x2): Likewise.
2965 (vst1_s64_x3): Likewise.
2966 (vst1_u64_x3): Likewise.
2967 (vst1_f64_x3): Likewise.
2968 (vst1_s8_x3): Likewise.
2969 (vst1_p8_x3): Likewise.
2970 (vst1_s16_x3): Likewise.
2971 (vst1_p16_x3): Likewise.
2972 (vst1_s32_x3): Likewise.
2973 (vst1_u8_x3): Likewise.
2974 (vst1_u16_x3): Likewise.
2975 (vst1_u32_x3): Likewise.
2976 (vst1_f16_x3): Likewise.
2977 (vst1_f32_x3): Likewise.
2978 (vst1_p64_x3): Likewise.
2979 (vst1q_s8_x3): Likewise.
2980 (vst1q_p8_x3): Likewise.
2981 (vst1q_s16_x3): Likewise.
2982 (vst1q_p16_x3): Likewise.
2983 (vst1q_s32_x3): Likewise.
2984 (vst1q_s64_x3): Likewise.
2985 (vst1q_u8_x3): Likewise.
2986 (vst1q_u16_x3): Likewise.
2987 (vst1q_u32_x3): Likewise.
2988 (vst1q_u64_x3): Likewise.
2989 (vst1q_f16_x3): Likewise.
2990 (vst1q_f32_x3): Likewise.
2991 (vst1q_f64_x3): Likewise.
2992 (vst1q_p64_x3): Likewise.
2993 (vst2_s64): Likewise.
2994 (vst2_u64): Likewise.
2995 (vst2_f64): Likewise.
2996 (vst2_s8): Likewise.
2997 (vst2_p8): Likewise.
2998 (vst2_s16): Likewise.
2999 (vst2_p16): Likewise.
3000 (vst2_s32): Likewise.
3001 (vst2_u8): Likewise.
3002 (vst2_u16): Likewise.
3003 (vst2_u32): Likewise.
3004 (vst2_f16): Likewise.
3005 (vst2_f32): Likewise.
3006 (vst2_p64): Likewise.
3007 (vst2q_s8): Likewise.
3008 (vst2q_p8): Likewise.
3009 (vst2q_s16): Likewise.
3010 (vst2q_p16): Likewise.
3011 (vst2q_s32): Likewise.
3012 (vst2q_s64): Likewise.
3013 (vst2q_u8): Likewise.
3014 (vst2q_u16): Likewise.
3015 (vst2q_u32): Likewise.
3016 (vst2q_u64): Likewise.
3017 (vst2q_f16): Likewise.
3018 (vst2q_f32): Likewise.
3019 (vst2q_f64): Likewise.
3020 (vst2q_p64): Likewise.
3021 (vst3_s64): Likewise.
3022 (vst3_u64): Likewise.
3023 (vst3_f64): Likewise.
3024 (vst3_s8): Likewise.
3025 (vst3_p8): Likewise.
3026 (vst3_s16): Likewise.
3027 (vst3_p16): Likewise.
3028 (vst3_s32): Likewise.
3029 (vst3_u8): Likewise.
3030 (vst3_u16): Likewise.
3031 (vst3_u32): Likewise.
3032 (vst3_f16): Likewise.
3033 (vst3_f32): Likewise.
3034 (vst3_p64): Likewise.
3035 (vst3q_s8): Likewise.
3036 (vst3q_p8): Likewise.
3037 (vst3q_s16): Likewise.
3038 (vst3q_p16): Likewise.
3039 (vst3q_s32): Likewise.
3040 (vst3q_s64): Likewise.
3041 (vst3q_u8): Likewise.
3042 (vst3q_u16): Likewise.
3043 (vst3q_u32): Likewise.
3044 (vst3q_u64): Likewise.
3045 (vst3q_f16): Likewise.
3046 (vst3q_f32): Likewise.
3047 (vst3q_f64): Likewise.
3048 (vst3q_p64): Likewise.
3049 (vst4_s64): Likewise.
3050 (vst4_u64): Likewise.
3051 (vst4_f64): Likewise.
3052 (vst4_s8): Likewise.
3053 (vst4_p8): Likewise.
3054 (vst4_s16): Likewise.
3055 (vst4_p16): Likewise.
3056 (vst4_s32): Likewise.
3057 (vst4_u8): Likewise.
3058 (vst4_u16): Likewise.
3059 (vst4_u32): Likewise.
3060 (vst4_f16): Likewise.
3061 (vst4_f32): Likewise.
3062 (vst4_p64): Likewise.
3063 (vst4q_s8): Likewise.
3064 (vst4q_p8): Likewise.
3065 (vst4q_s16): Likewise.
3066 (vst4q_p16): Likewise.
3067 (vst4q_s32): Likewise.
3068 (vst4q_s64): Likewise.
3069 (vst4q_u8): Likewise.
3070 (vst4q_u16): Likewise.
3071 (vst4q_u32): Likewise.
3072 (vst4q_u64): Likewise.
3073 (vst4q_f16): Likewise.
3074 (vst4q_f32): Likewise.
3075 (vst4q_f64): Likewise.
3076 (vst4q_p64): Likewise.
3077 (vtbx4_s8): Likewise.
3078 (vtbx4_u8): Likewise.
3079 (vtbx4_p8): Likewise.
3080 (vtrn_f32): Likewise.
3081 (vtrn_p8): Likewise.
3082 (vtrn_p16): Likewise.
3083 (vtrn_s8): Likewise.
3084 (vtrn_s16): Likewise.
3085 (vtrn_s32): Likewise.
3086 (vtrn_u8): Likewise.
3087 (vtrn_u16): Likewise.
3088 (vtrn_u32): Likewise.
3089 (vtrnq_f32): Likewise.
3090 (vtrnq_p8): Likewise.
3091 (vtrnq_p16): Likewise.
3092 (vtrnq_s8): Likewise.
3093 (vtrnq_s16): Likewise.
3094 (vtrnq_s32): Likewise.
3095 (vtrnq_u8): Likewise.
3096 (vtrnq_u16): Likewise.
3097 (vtrnq_u32): Likewise.
3098 (vrsqrte_f16): Likewise.
3099 (vrsqrteq_f16): Likewise.
3100 (vsqrt_f16): Likewise.
3101 (vsqrtq_f16): Likewise.
3102 (vabd_f16): Likewise.
3103 (vabdq_f16): Likewise.
3104 (vpadd_f16): Likewise.
3105 (vpaddq_f16): Likewise.
3106 (vpmax_f16): Likewise.
3107 (vpmaxq_f16): Likewise.
3108 (vpmaxnm_f16): Likewise.
3109 (vpmaxnmq_f16): Likewise.
3110 (vpmin_f16): Likewise.
3111 (vpminq_f16): Likewise.
3112 (vpminnm_f16): Likewise.
3113 (vpminnmq_f16): Likewise.
3114 (vrsqrts_f16): Likewise.
3115 (vrsqrtsq_f16): Likewise.
3117 2019-09-25 Richard Biener <rguenther@suse.de>
3119 PR tree-optimization/91896
3120 * tree-vect-loop.c (vectorizable_reduction): The single
3121 def-use cycle optimization cannot apply when there's more
3122 than one pattern stmt involved.
3124 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3126 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3127 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3128 (reload_macho_picbase_<mode>): Likewise.
3130 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3132 * config/rs6000/rs6000.md: Move darwin.md include until
3133 after the definition of the mode iterators.
3135 2019-09-23 Martin Sebor <msebor@redhat.com>
3137 PR tree-optimization/91570
3138 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3139 non-constant minlen, maxlen and maxbound.
3141 2019-09-24 Richard Biener <rguenther@suse.de>
3143 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3145 (_stmt_vec_info::cond_reduc_code): ... this.
3146 (_stmt_vec_info::induc_cond_initial_val): Add.
3147 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3148 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3149 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3150 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3151 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3153 (vect_create_epilog_for_reduction): Drop special
3154 induction condition reduction params, pass in reduction code
3156 (vectorizable_reduction): Perform condition reduction kind
3157 selection only at analysis time. Adjust passing on state.
3159 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3161 * config/aarch64/aarch64.md (mov<mode>): Don't call
3162 aarch64_split_dimode_const_store on volatile MEM.
3164 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3166 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3167 Update hwcap string for fp16fml.
3169 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3172 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3173 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3175 2019-09-24 Martin Liska <mliska@suse.cz>
3177 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3178 instead of if-elseif-elseif-...
3179 * gimple-expr.c (extract_ops_from_tree): Likewise.
3180 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3181 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3183 2019-09-24 Martin Jambor <mjambor@suse.cz>
3186 * ipa-param-manipulation.c (carry_over_param): Make a method of
3187 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3188 in case of a context mismatch.
3189 (ipa_param_body_adjustments::common_initialization): Adjust call to
3191 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3192 private method carry_over_param.
3194 2019-09-24 Martin Jambor <mjambor@suse.cz>
3197 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3199 2019-09-24 Richard Biener <rguenther@suse.de>
3201 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3204 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3206 * config/arm/t-arm (arm-builtins.o): Add dependency on
3207 arm_acle_builtins.def.
3209 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3212 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3213 canonical CONST_INTs. Use gen_rtvec.
3215 2019-09-23 Richard Biener <rguenther@suse.de>
3217 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3218 avoid adjusting by + 0 or * 1.
3219 (vect_create_epilog_for_reduction): Get reduction code only
3220 when necessary. Deal with adjustment_def only when necessary.
3222 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3224 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3227 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3230 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3233 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3235 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3236 code. Merge code blocks with common conditionals. Use declared
3237 macro instead of a magic number for PIC level.
3239 2019-09-21 Martin Sebor <msebor@redhat.com>
3242 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3243 Simplify computation of the offset of the referenced subobject.
3245 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3247 * config/darwin.c (machopic_legitimize_pic_address): Check
3250 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3252 * ira-conflicts.c (can_use_same_reg_p): New function.
3253 (process_reg_shuffles): Take an insn parameter. Ignore cases
3254 in which input operand op_num could seemingly never be allocated
3255 to the same register as the destination.
3256 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3258 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3260 * simplify-rtx.c (neg_const_int): Replace with...
3261 (neg_poly_int_rtx): ...this new function.
3262 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3263 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3264 (simplify_plus_minus): Likewise for constant terms here.
3266 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3268 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3269 HOST_WIDE_PRINT_UNSIGNED.
3271 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3273 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3276 2019-09-20 Maya Rashish <coypu@sdf.org>
3279 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3280 Define to speculation_safe_value_not_needed.
3282 2019-09-20 Richard Biener <rguenther@suse.de>
3283 Uros Bizjak <ubizjak@gmail.com>
3286 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3288 (general_scalar_chain::convert_op): Force not suitable memory
3289 operands to a register.
3291 2019-09-20 Richard Biener <rguenther@suse.de>
3293 PR tree-optimization/91821
3294 * tree-vect-loop.c (check_reduction_path): Check we can compute
3296 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3297 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3298 operands in canonical order.
3299 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3300 STMT_VINFO_REDUC_IDX.
3301 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3302 (STMT_VINFO_REDUC_IDX): Likewise.
3304 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3307 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3309 2019-09-20 Richard Biener <rguenther@suse.de>
3311 PR tree-optimization/91822
3312 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3314 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3315 for reduc_index in nested cycles, adjust vectorizable_condition
3317 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3319 (vect_analyze_stmt): Adjust.
3320 (vect_transform_stmt): Likewise.
3322 2019-09-20 Richard Biener <rguenther@suse.de>
3325 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3326 Ensure there's a sequence point between allocating the new register
3327 and passing a reference to a reg via regno_reg_rtx.
3329 2019-09-20 Martin Jambor <mjambor@suse.cz>
3331 * coretypes.h (cgraph_edge): Declare.
3332 * ipa-param-manipulation.c: Rewrite.
3333 * ipa-param-manipulation.h: Likewise.
3334 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3335 (OBJS): Added ipa-sra.o.
3336 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3337 and ref_p, added fields param_adjustments and performed_splits.
3338 (struct cgraph_clone_info): Remove ags_to_skip and
3339 combined_args_to_skip, new field param_adjustments.
3340 (cgraph_node::create_clone): Changed parameters to use
3341 ipa_param_adjustments.
3342 (cgraph_node::create_virtual_clone): Likewise.
3343 (cgraph_node::create_virtual_clone_with_body): Likewise.
3344 (tree_function_versioning): Likewise.
3345 (cgraph_build_function_type_skip_args): Removed.
3346 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3347 using ipa_param_adjustments.
3348 (clone_of_p): Likewise.
3349 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3350 (build_function_decl_skip_args): Likewise.
3351 (duplicate_thunk_for_node): Adjust parameters using
3352 ipa_param_body_adjustments, copy param_adjustments instead of
3354 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3355 (cgraph_node::create_virtual_clone): Likewise.
3356 (cgraph_node::create_version_clone_with_body): Likewise.
3357 (cgraph_materialize_clone): Likewise.
3358 (symbol_table::materialize_all_clones): Likewise.
3359 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3360 ipa_replace_map check.
3361 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3362 (initialize_node_lattices): Make aware that some parameters might have
3363 already been removed.
3364 (want_remove_some_param_p): New function.
3365 (create_specialized_node): Convert to using ipa_param_adjustments and
3366 deal with possibly pre-existing adjustments.
3367 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3368 (output_node_opt_summary): Do not stream removed fields. Stream
3369 parameter adjustments instead of argumetns to skip.
3370 (input_node_opt_summary): Likewise.
3371 (input_node_opt_summary): Likewise.
3372 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3373 * lto-streamer.h (lto_section_type): Likewise.
3374 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3376 (copy_decl_to_var): Declare.
3377 * tree-inline.c (update_clone_info): Do not remap old_tree.
3378 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3379 statements, walk all extra generated statements and remap their
3381 (redirect_all_calls): Add killed SSA names to a hash set.
3382 (remap_ssa_name): Do not remap killed SSA names.
3383 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3384 half of functionality moved to ipa_param_body_adjustments.
3385 (copy_decl_to_var): Make exported.
3386 (copy_body): Destroy killed_new_ssa_names hash set.
3387 (expand_call_inline): Remap performed splits.
3388 (update_clone_info): Likewise.
3389 (tree_function_versioning): Simplify tree_map processing. Updated to
3390 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3391 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3392 for the new interface.
3393 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3394 (simd_clone_compute_base_data_type): Likewise.
3395 (simd_clone_init_simd_arrays): Adjust for the new interface.
3396 (simd_clone_adjust_argument_types): Likewise.
3397 (struct modify_stmt_info): Likewise.
3398 (ipa_simd_modify_stmt_ops): Likewise.
3399 (ipa_simd_modify_function_body): Likewise.
3400 (simd_clone_adjust): Likewise.
3401 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3402 (type_internals_preclude_sra_p): Make public.
3403 * tree-sra.h: New file.
3404 * ipa-inline-transform.c (save_inline_function_body): Update to
3405 refelct new tree_function_versioning signature.
3406 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3407 ipa_param_adjustments to get current parameter indices.
3408 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3409 (ipcp_update_bits): Likewise.
3410 (ipcp_update_vr): Likewise.
3411 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3412 * ipa-sra.c: New file.
3413 * multiple_target.c (create_target_clone): Update to reflet new type
3414 of create_version_clone_with_body.
3415 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3416 tree_function_versioning.
3417 (modify_function): Update to reflect new type of
3418 tree_function_versioning.
3419 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3420 * passes.def: Remove old IPA-SRA and add new one.
3421 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3422 (make_pass_ipa_sra): Declare.
3423 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3425 * doc/invoke.texi (ipa-sra-max-replacements): New.
3427 2019-09-19 Martin Sebor <msebor@redhat.com>
3430 * builtins.c (component_size): Correct trailing array computation,
3431 rename to component_ref_size and move...
3432 (compute_objsize): Adjust.
3433 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3434 (builtin_access::strict): Do not consider memmove.
3435 (builtin_access::write_off): New function.
3436 (builtin_memref::builtin_memref): Initialize refsize.
3437 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3439 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3441 (builtin_access::builtin_access): Initialize dstoff to destination
3442 refeence offset here instead of in maybe_diag_overlap. Adjust
3443 referencess even to unrelated objects. Adjust sizrange of bounded
3444 string functions to reflect bound. For strcat, adjust destination
3445 sizrange by that of source.
3446 (builtin_access::strcat_overlap): Adjust offsets and sizes
3447 to reflect the increase in destination sizrange above.
3448 (builtin_access::overlap): Do not set dstoff here but instead
3449 in builtin_access::builtin_access.
3450 (check_bounds_or_overlap): Use builtin_access::write_off.
3451 (maybe_diag_access_bounds): Add argument. Add informational notes.
3452 (dump_builtin_memref, dump_builtin_access): New functions.
3453 * tree.c (component_ref_size): ...to here.
3454 * tree.h (component_ref_size): Declare.
3455 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3456 nul in the size of the source string.
3458 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3461 * doc/cpp.texi: Document support for extended characters in
3463 * doc/cppopts.texi: Likewise.
3465 2019-09-19 Richard Biener <rguenther@suse.de>
3467 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3468 (check_reduction_path): New overload having the path as result.
3469 (vect_is_simple_reduction): From the detected reduction
3470 path build a SLP reduction chain if possible.
3472 2019-09-19 Richard Biener <rguenther@suse.de>
3475 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3476 Force operand to a register if it isn't nonimmediate_operand.
3478 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3480 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3481 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3482 (logical_op): Remove code attribute.
3483 (logical_OP): Likewise.
3485 2019-09-19 Martin Liska <mliska@suse.cz>
3487 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3490 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3492 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3495 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3496 for NE comparison of TImode values.
3497 (aarch64_emit_load_exclusive): Add support for TImode.
3498 (aarch64_emit_store_exclusive): Likewise.
3499 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3500 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3501 Change iterator from ALLI to ALLI_TI.
3502 (@atomic_compare_and_swap<JUST_TI>): New.
3503 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3504 (aarch64_load_exclusive_pair): New.
3505 (aarch64_store_exclusive_pair): New.
3506 * config/aarch64/iterators.md (JUST_TI): New.
3508 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3509 strong_zero_p for aarch64_track_speculation; unify some code paths;
3510 use aarch64_gen_compare_reg instead of open-coding.
3512 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3513 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3514 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3515 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3516 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3517 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3518 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3519 (atomic_<atomic_op><ALLI>): Likewise.
3520 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3521 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3522 * doc/invoke.texi: Document -moutline-atomics.
3524 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3526 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3527 trivial predicate for condition branch.
3528 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3530 (compute_bb_predicates): Update predicate based on post-dominating
3532 (analyze_function_body): Calculate post-dominating information.
3534 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3536 * tree-vectorizer.h (vectorizable_condition): Take an int
3537 reduction index instead of a boolean flag.
3538 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3539 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3540 reductions if the reduction accumulator is the "then" rather
3541 than the "else" value.
3542 (vect_analyze_stmt): Update call accordingly.
3543 (vect_transform_stmt): Likewise.
3544 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3545 asserting that the index is > 0.
3547 2019-09-19 Martin Liska <mliska@suse.cz>
3549 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3550 (sort_congruence_classes_by_decl_uid): Likewise.
3551 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3553 (sem_item_optimizer::merge_classes): Likewise.
3555 2019-09-19 Richard Biener <rguenther@suse.de>
3557 PR tree-optimization/91812
3558 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3561 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3563 * defaults.h (TARGET_UNIT): New macro.
3564 (target_unit): New type.
3565 * rtl.h (native_encode_rtx, native_decode_rtx)
3566 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3567 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3568 * rtlanal.c (subreg_lsb_1): Delete.
3569 (subreg_size_lsb): New function.
3570 * simplify-rtx.c: Include rtx-vector-builder.h
3571 (simplify_immed_subreg): Delete.
3572 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3573 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3575 (simplify_subreg): Use them.
3576 (test_vector_subregs_modes, test_vector_subregs_repeating)
3577 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3578 (test_vector_subregs): New functions.
3579 (test_vector_ops): Call test_vector_subregs for integer vector
3580 modes with at least 2 elements.
3582 2019-09-19 Richard Biener <rguenther@suse.de>
3584 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3585 LOOP_VINFO_OPERANDS_SWAPPED.
3586 (parloops_is_simple_reduction): Likewise.
3587 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3588 initialize operands_swapped.
3589 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3590 (vect_is_slp_reduction): Do not swap operands.
3591 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3592 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3594 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3597 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3598 Add avx_partial_xmm_update.
3600 2019-09-18 Jim Wilson <jimw@sifive.com>
3603 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3604 (riscv_move_integer): Likewise.
3605 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3606 riscv_move_integer arg.
3607 (riscv_legitimize_move): Likewise.
3608 (riscv_force_temporary): New parameter in_splitter. Don't call
3610 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3612 (riscv_add_offset): Likewise.
3613 (riscv_split_symbol): New parameter in_splitter. Pass to
3614 riscv_force_temporary.
3615 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3617 (riscv_move_integer): New parameter in_splitter. New local
3618 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3620 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3621 riscv_split_symbol, and riscv_force_temporary args.
3622 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3623 riscv_move_integer arg.
3624 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3626 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3629 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3630 hard register store cost to 6.
3632 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3635 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3636 pseudo register store cost from 3 to 6 to make it the same as
3639 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3642 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3643 (one_cmpldi2): Likewise.
3644 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3645 of the constant parts is simple.
3646 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3647 (logical_op): Add new code attribute.
3648 (logical_OP): Likewise.
3649 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3650 (arm_iordi_operand): Add predicate.
3651 (arm_xordi_operand): Add predicate.
3653 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3655 * config/arm/arm.md (maddsidi4): Remove expander.
3656 (mulsidi3adddi): Remove pattern.
3657 (mulsidi3adddi_v6): Likewise.
3658 (mulsidi3_nov6): Likewise.
3659 (mulsidi3_v6): Likewise.
3660 (umulsidi3): Remove expander.
3661 (umulsidi3_nov6): Remove pattern.
3662 (umulsidi3_v6): Likewise.
3663 (umulsidi3adddi): Likewise.
3664 (umulsidi3adddi_v6): Likewise.
3665 (<Us>mulsidi3): Add combined expander.
3666 (<Us>maddsidi4): Likewise.
3667 (<US>mull): Add combined umull and smull pattern.
3668 (<US>mlal): Likewise.
3669 * config/arm/iterators.md (Us): Add new iterator.
3671 2019-09-18 Richard Biener <rguenther@suse.de>
3673 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3675 (vectorize_fold_left_reduction): Remove assert.
3676 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3677 operand in position 2. Remove assert.
3679 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3681 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3682 (smulsi3_highpart_nov6): Remove pattern.
3683 (smulsi3_highpart_v6): Likewise.
3684 (umulsi3_highpart): Likewise.
3685 (umulsi3_highpart_nov6): Likewise.
3686 (umulsi3_highpart_v6): Likewise.
3687 (<US>mull_high): Add new combined multiply pattern.
3689 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3691 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3692 (arm_mulsi3_v6): Likewise.
3693 (mulsi3addsi_v6): Likewise.
3694 (mulsi3subsi): Likewise.
3695 (mul): Add new multiply pattern.
3699 2019-09-18 Richard Biener <rguenther@suse.de>
3701 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3702 (parloops_valid_reduction_input_p): Copy from
3703 valid_reduction_input_p.
3704 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3705 (parloops_needs_fold_left_reduction_p): Copy from
3706 needs_fold_left_reduction_p.
3707 (parloops_is_simple_reduction): Copy from
3708 vect_is_simple_reduction.
3709 (parloops_force_simple_reduction): Copy from
3710 vect_force_simple_reduction.
3711 (gather_scalar_reductions): Adjust.
3712 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3713 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3715 2019-09-18 Richard Biener <rguenther@suse.de>
3717 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3718 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3720 (vect_create_epilog_for_reduction): Remove dead code.
3722 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3724 * varasm.c (assemble_real): Generate canonical const_ints.
3726 2019-09-18 Richard Biener <rguenther@suse.de>
3729 * lto-streamer-in.c (input_eh_regions): Move EH init to
3730 lto_materialize_function.
3731 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3734 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3736 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3739 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3741 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3742 of checking specifically for INTEGER_CST.
3744 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3746 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3747 sizes instead of uhwi sizes.
3749 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3751 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3752 (add_const_value_attribute): Handle CONST_POLY_INT.
3754 2019-09-18 Martin Liska <mliska@suse.cz>
3756 * dbgcnt.def (store_merging): New counter.
3757 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3758 Use it in store merging.
3760 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3762 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3764 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3765 * config/arm/arm.c (arm_sched_variable_issue): New function.
3766 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3768 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3770 * config/arm/types.md (no_reservation): New reservation.
3771 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3773 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3774 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3775 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3776 * config/arm/arm1020e.md (1020alu_op): Likewise.
3777 * config/arm/arm1026ejs.md (alu_op): Likewise.
3778 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3779 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3780 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3781 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3782 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3783 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3784 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3785 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3786 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3787 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3788 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3789 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3790 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3791 * config/arm/fa526.md (526_alu_op): Likewise.
3792 * config/arm/fa606te.md (606te_alu_op): Likewise.
3793 * config/arm/fa626te.md (626te_alu_op): Likewise.
3794 * config/arm/fa726te.md (726te_alu_op): Likewise.
3795 * config/arm/xgene1.md (xgene1_nop): Likewise.
3797 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3799 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3800 "no_insn" to "branch".
3802 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3804 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3806 2019-09-17 Richard Biener <rguenther@suse.de>
3809 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3810 was missing generate locations only once.
3812 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
3815 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3817 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3818 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3819 for switch default case using range analysis information.
3821 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
3824 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3825 mode attributed is supported by FDPIC.
3827 2019-09-17 Richard Biener <rguenther@suse.de>
3829 PR tree-optimization/91790
3830 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3831 use the correct DR for setting up realignment.
3833 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
3836 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3837 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3838 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3839 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3841 2019-09-16 Jason Merrill <jason@redhat.com>
3843 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3845 2019-09-16 Martin Liska <mliska@suse.cz>
3847 * gimple-fold.c (or_comparisons_1): Remove rules moved
3849 * match.pd: ... here.
3851 2019-09-16 Martin Liska <mliska@suse.cz>
3853 * gimple-fold.c (or_comparisons_1): Remove rules
3855 * match.pd: ... here.
3857 2019-09-16 Martin Liska <mliska@suse.cz>
3859 * genmatch.c (dt_node::append_simplify): Do not print
3860 warning when we have duplicate patterns belonging
3861 to a same simplify rule.
3862 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
3863 (maybe_fold_comparisons_from_match_pd): Handle
3864 tcc_comparison as a results.
3865 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
3867 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3868 Qi Feng <ffengqi@linux.ibm.com>
3871 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
3872 (x > y && x == XXX_MIN): Optimize into 'false'.
3873 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
3874 (x < y && x != XXX_MAX): Optimize into 'x < y'.
3875 (x < y && x == XXX_MAX): Optimize into 'false'.
3876 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
3877 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
3878 (x <= y || x != XXX_MIN): Optimize into 'true'.
3879 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
3880 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
3881 (x >= y || x != XXX_MAX): Optimize into 'true'.
3882 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
3884 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3885 Martin Liska <mliska@suse.cz>
3887 * gimple-fold.c (and_comparisons_1): Add type as first
3889 (and_var_with_comparison): Likewise.
3890 (and_var_with_comparison_1): Likewise.
3891 (or_comparisons_1): Likewise.
3892 (or_var_with_comparison): Likewise.
3893 (or_var_with_comparison_1): Likewise.
3894 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
3895 (maybe_fold_or_comparisons): Likewise.
3896 (maybe_fold_comparisons_from_match_pd): New.
3897 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
3898 (maybe_fold_or_comparisons): Likewise.
3899 * gimple.c (gimple_size): Make it public and add num_ops argument.
3900 (gimple_init): New function.
3901 (gimple_alloc): Call gimple_init.
3902 * gimple.h (gimple_size): New.
3903 (gimple_init): Likewise.
3904 * tree-if-conv.c (fold_or_predicates): Pass type.
3905 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3906 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
3907 (optimize_vec_cond_expr): Likewise.
3908 (ovce_extract_ops): Return type of conditional expression.
3909 * tree-ssanames.c (init_ssa_name_imm_use): New.
3910 (make_ssa_name_fn): Use init_ssa_name_imm_use.
3911 * tree-ssanames.h (init_ssa_name_imm_use): New.
3913 2019-09-16 Richard Biener <rguenther@suse.de>
3915 PR tree-optimization/91756
3916 PR tree-optimization/87132
3917 * tree-ssa-alias.h (enum translate_flags): New.
3918 (get_continuation_for_phi): Use it instead of simple bool flag.
3919 (walk_non_aliased_vuses): Likewise.
3920 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3921 (get_continuation_for_phi): When looking across backedges only
3922 disallow valueization.
3923 (walk_non_aliased_vuses): Adjust.
3924 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
3927 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
3930 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
3931 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3932 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3933 * target.def (have_count_reg_decr_p): New hook.
3934 (doloop_cost_for_generic): Likewise.
3935 (doloop_cost_for_address): Likewise.
3936 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
3937 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3938 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3939 * doc/tm.texi: Regenerate.
3940 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
3942 (record_group): Init doloop_p.
3943 (add_candidate_1): Add optional argument doloop, change the handlings
3945 (add_candidate): Likewise.
3946 (generic_predict_doloop_p): Update attribute.
3947 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
3948 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
3949 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
3951 (get_computation_cost): Update for doloop IV cand extra cost.
3952 (determine_group_iv_cost_cond): Update for doloop IV cand.
3953 (determine_iv_cost): Likewise.
3954 (ivopts_estimate_reg_pressure): Likewise.
3955 (may_eliminate_iv): Update handlings for doloop IV cand.
3956 (add_iv_candidate_for_doloop): New function.
3957 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
3958 (iv_ca_set_no_cp): Update for doloop IV cand.
3959 (iv_ca_set_cp): Likewise.
3960 (iv_ca_dump): Dump register cost.
3961 (find_doloop_use): New function.
3962 (analyze_and_mark_doloop_use): Likewise.
3963 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
3965 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3968 * cse.c (cse_insn): Do not replace anything with a
3971 2019-09-13 Ian Lance Taylor <iant@golang.org>
3973 * doc/invoke.texi (Optimize Options): Fix typo.
3975 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
3977 PR tree-optimization/89386
3978 * config/i386/sse.md (smulhrs<mode>3): New expander.
3979 (smulhrsv4hi3): Ditto.
3981 2019-09-12 Richard Biener <rguenther@suse.de>
3983 PR tree-optimization/91750
3984 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
3985 in the type of the evolution.
3987 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
3989 PR tree-optimization/89386
3990 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
3991 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
3992 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
3993 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
3994 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
3995 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
3996 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
3997 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
3998 (su, r): Handle the unspecs above.
3999 (bt): New int attribute.
4000 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4001 * internal-fn.c (first_commutative_argument): Commutativity info for
4003 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4004 (umulhrs_optab): New optabs.
4005 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4006 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4007 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4009 (vect_vect_recog_func_ptrs): Add it.
4011 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4013 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4016 2019-09-11 Nathan Sidwell <nathan@acm.org>
4018 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4019 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4021 2019-09-11 Richard Biener <rguenther@suse.de>
4023 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4024 * lto-wrapper.c (merge_and_complain): Pick up -g.
4025 (append_compiler_options): Likewise.
4026 (run_gcc): Re-instantiate handling -g0 at link-time.
4027 * doc/invoke.texi (flto): Document debug info generation.
4029 2019-09-11 Richard Biener <rguenther@suse.de>
4031 PR tree-optimization/90387
4032 * vr-values.c (vr_values::extract_range_basic): After inlining
4033 simplify non-constant __builtin_constant_p to false.
4035 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4037 PR rtl-optimization/89795
4038 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4039 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4041 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4043 PR tree-optimization/91723
4044 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4045 instead of pointer equality when checking if argument vectypes are
4049 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4050 of get_nonzero_bits, only call it for integral types.
4052 2019-09-11 Richard Biener <rguenther@suse.de>
4055 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4057 * match.pd: Add flag_unsafe_math_optimizations check
4058 before deciding on the widest type in a binary math operation.
4060 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4062 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4063 and CALL_REALLY_USED_REGISTERS must be defined, and that
4064 CALL_REALLY_USED_REGISTERS is preferred.
4065 * doc/tm.texi: Regenerate.
4066 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4067 (call_really_used_regs): Likewise.
4068 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4069 CALL_REALLY_USED_REGISTERS are defined.
4070 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4071 initial value if defined.
4072 (initial_call_really_used_regs): Delete.
4073 (saved_call_really_used_regs): Likewise.
4074 (CALL_REALLY_USED_REGNO_P): Likewise.
4075 (init_reg_sets): Remove handling of call_really_used_regs.
4076 (save_register_info, restore_register_info, globalize_reg): Likewise.
4077 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4078 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4079 outside operand_reg_set.
4080 (fix_register): Don't change call_used_regs if
4081 CALL_REALLY_USED_REGISTERS is defined.
4082 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4083 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4084 instead of call_really_used_regs.
4085 (csky_conditional_register_usage): Remove the old handling of
4086 call_used_regs and change the handling of call_really_used_regs
4087 to use call_used_regs instead.
4088 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4089 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4090 making a register fixed.
4091 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4092 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4093 instead of call_really_used_regs.
4094 (m32r_conditional_register_usage): Don't set call_used_regs when
4095 making a register fixed.
4096 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4097 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4098 instead of call_really_used_regs.
4099 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4100 (mips_cfun_call_saved_reg_p): Likewise.
4101 (mips_swap_registers): Remove the old handling of call_used_regs
4102 and change the handling of call_really_used_regs to use call_used_regs
4104 (mips_conditional_register_usage): Likewise.
4105 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4106 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4107 instead of call_really_used_regs.
4108 (mn10300_get_live_callee_saved_regs): Likewise.
4109 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4110 (mn10300_conditional_register_usage): Don't set call_used_regs when
4111 making a register fixed.
4112 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4113 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4114 Remove the old handling of call_used_regs and change the handling
4115 of call_really_used_regs to use call_used_regs instead.
4116 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4117 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4118 instead of call_really_used_regs.
4119 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4120 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4121 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4122 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4123 (s390_conditional_register_usage): Remove the old handling of
4124 call_used_regs and change the handling of call_really_used_regs
4125 to use call_used_regs instead.
4126 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4127 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4128 (sh_fix_range, reg_unused_after): Likewise.
4129 (sh_conditional_register_usage): Remove the old handling of
4130 call_used_regs and change the handling of call_really_used_regs
4131 to use call_used_regs instead.
4132 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4133 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4134 call_used_regs when making a register fixed.
4135 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4136 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4137 call_used_regs when making a register fixed.
4138 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4139 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4140 set call_used_regs when making a register fixed.
4141 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4142 * config/visium/visium.c (visium_conditional_register_usage): Remove
4143 the old handling of call_used_regs and change the handling of
4144 call_really_used_regs to use call_used_regs instead.
4146 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4148 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4149 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4150 * reginfo.c (call_used_regs): New macro.
4152 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4154 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4156 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4157 (bpf_expand_epilogue): Likewise.
4158 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4159 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4160 (ft32_expand_epilogue): Likewise.
4161 * config/i386/i386.c (ix86_save_reg): Likewise.
4162 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4163 (moxie_expand_epilogue): Likewise.
4164 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4165 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4166 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4168 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4170 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4171 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4172 instead of testing call_used_regs directly.
4173 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4174 (aarch64_components_for_bb): Likewise.
4175 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4176 * config/arc/arc.c (arc_must_save_register): Likewise.
4177 (arc_epilogue_uses): Likewise.
4178 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4179 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4180 (arm_compute_save_reg0_reg12_mask): Likewise.
4181 (arm_compute_save_core_reg_mask): Likewise.
4182 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4183 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4184 (cmse_nonsecure_entry_clear_before_return): Likewise.
4185 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4186 (arm_expand_epilogue): Likewise.
4187 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4188 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4189 (_reg_unused_after): Likewise.
4190 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4191 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4192 (add_to_reg, hwloop_optimize): Likewise.
4193 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4194 (bpf_expand_epilogue): Likewise.
4195 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4196 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4197 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4198 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4199 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4200 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4201 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4202 * config/frv/frv.c (frv_stack_info): Likewise.
4203 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4204 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4205 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4206 (move_callee_saved_registers): Likewise.
4207 * config/h8300/h8300.c (byte_reg): Likewise.
4208 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4209 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4210 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4211 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4212 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4213 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4214 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4215 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4216 * config/m32c/m32c.c (need_to_save): Likewise.
4217 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4218 * config/mcore/mcore.c (calc_live_regs): Likewise.
4219 * config/microblaze/microblaze.c (microblaze_must_save_register):
4221 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4222 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4223 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4224 (mmix_expand_epilogue): Likewise.
4225 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4226 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4227 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4228 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4229 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4230 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4231 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4232 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4233 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4234 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4235 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4236 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4237 * config/rl78/rl78.c (need_to_save): Likewise.
4238 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4239 (rs6000_stack_info, generate_set_vrsave): Likewise.
4240 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4241 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4242 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4243 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4244 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4245 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4246 (save_local_or_in_reg_p): Likewise.
4247 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4248 (xstormy16_epilogue_uses): Likewise.
4249 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4250 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4251 * config/v850/v850.c (compute_register_save_size): Likewise.
4252 * config/vax/vax.c (vax_expand_prologue): Likewise.
4253 * config/visium/visium.c (visium_save_reg_p): Likewise.
4254 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4255 * cselib.c (cselib_process_insn): Likewise.
4256 * df-scan.c (df_get_entry_block_def_set): Likewise.
4257 * function.c (aggregate_value_p): Likewise.
4258 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4259 * ira-lives.c (process_bb_node_lives): Likewise.
4260 * ira.c (do_reload): Likewise.
4261 * lra-lives.c (process_bb_lives): Likewise.
4262 * lra-remat.c (lra_remat): Likewise.
4263 * lra.c (lra): Likewise.
4264 * postreload.c (reload_combine_recognize_pattern): Likewise.
4265 (reload_cse_move2add): Likewise.
4266 * recog.c (peep2_find_free_register): Likewise.
4267 * regrename.c (check_new_reg_p): Likewise.
4268 * reload.c (find_equiv_reg): Likewise.
4269 * reload1.c (reload, find_reg): Likewise.
4270 * sel-sched.c (init_hard_regs_data): Likewise.
4272 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4274 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4275 regs_invalidated_by_call & ~fixed_reg_set instead of
4276 call_used_or_fixed_regs & ~fixed_reg_set.
4277 * config/sh/sh.c (output_stack_adjust): Likewise.
4279 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4281 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4282 (call_used_reg_set): Delete.
4283 (call_used_or_fixed_regs): New macro.
4284 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4285 of call_used_reg_set.
4286 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4287 instead of call_used_regs.
4288 (save_call_clobbered_regs): Likewise.
4289 * cfgcleanup.c (old_insns_match_p): Likewise.
4290 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4291 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4293 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4294 * config/sh/sh.c (output_stack_adjust): Likewise.
4295 * final.c (collect_fn_hard_reg_usage): Likewise.
4296 * ira-build.c (ira_build): Likewise.
4297 * ira-color.c (calculate_saved_nregs): Likewise.
4298 (allocno_reload_assign, calculate_spill_cost): Likewise.
4299 * ira-conflicts.c (ira_build_conflicts): Likewise.
4300 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4301 * ira-lives.c (process_bb_node_lives): Likewise.
4302 * ira.c (setup_reg_renumber): Likewise.
4303 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4304 * lra-constraints.c (need_for_call_save_p): Likewise.
4305 (need_for_split_p, inherit_in_ebb): Likewise.
4306 * lra-lives.c (process_bb_lives): Likewise.
4307 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4308 * postreload.c (reload_combine): Likewise.
4309 * regrename.c (find_rename_reg): Likewise.
4310 * reload1.c (reload_as_needed): Likewise.
4311 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4312 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4313 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4315 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4317 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4318 (no_caller_save_reg_set): Delete.
4319 * caller-save.c (init_caller_save): Don't initialize it.
4320 * ira-conflicts.c (ira_build_conflicts): Calculate
4321 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4323 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4325 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4326 (target_hard_regs::x_savable_regs): New field.
4327 (call_fixed_reg_set): Delete.
4328 (savable_regs): New macro,
4329 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4330 (init_reg_sets_1): Likewise. Initialize savable_regs.
4331 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4332 for all registers. Set savable_regs instead of call_fixed_reg_set.
4333 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4334 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4335 * config/sh/sh.c (output_stack_adjust): Likewise.
4337 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4339 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4340 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4341 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4343 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4345 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4346 * rtlanal.c (get_call_rtx_from): Likewise.
4347 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4348 than the pattern to get_call_rtx_from.
4349 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4350 an rtx_insn * instead of an rtx.
4351 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4353 2019-09-10 Martin Liska <mliska@suse.cz>
4355 * common.opt: Use newly added WarnRemoved.
4356 * config/aarch64/aarch64.opt: Likewise.
4357 * config/arm/arm.opt: Likewise.
4358 * config/i386/i386.opt: Likewise.
4359 * config/ia64/ia64.opt: Likewise.
4360 * config/rs6000/rs6000.opt: Likewise.
4361 * doc/options.texi: Document WarnRemoved properly.
4362 * dwarf2out.c (gen_producer_string): Handle renamed
4363 OPT_SPECIAL_warn_removed.
4364 * lto-opts.c (lto_write_options): Likewise.
4365 * lto-wrapper.c (merge_and_complain): Likewise.
4366 * opts-common.c (decode_cmdline_option): Likewise.
4367 (prune_options): Likewise.
4368 (read_cmdline_option): Likewise.
4369 (control_warning_option): Likewise.
4370 * opts.c (print_filtered_help): Likewise.
4371 * optc-gen.awk: Parse for WarnRemoved and make usage
4372 of Deprecated an error.
4373 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4375 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4377 * doc/install.texi: Fix syntax for html generation.
4379 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4382 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4383 the shift type to type.
4385 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4387 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4389 (stack_protect_combined_test_insn): Likewise.
4391 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4392 Mickaël Guêné <mickael.guene@st.com>
4394 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4395 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4396 (load_tp_soft_fdpic): New pattern.
4397 (load_tp_soft): Disable in FDPIC mode.
4399 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4400 Mickaël Guêné <mickael.guene@st.com>
4402 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4403 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4404 (arm_call_tls_get_addr): Add FDPIC support.
4405 (legitimize_tls_address): Likewise.
4406 (arm_emit_tls_decoration): Likewise.
4408 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4409 Mickaël Guêné <mickael.guene@st.com>
4411 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4413 (arm_trampoline_init): Likewise.
4414 (arm_trampoline_adjust_address): Likewise.
4415 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4417 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4418 Mickaël Guêné <mickael.guene@st.com>
4420 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4421 (legitimize_pic_address): Enforce binding rules on function
4422 pointers in FDPIC mode.
4423 (arm_assemble_integer): Likewise.
4425 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4426 Mickaël Guêné <mickael.guene@st.com>
4428 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4429 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4432 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4433 Mickaël Guêné <mickael.guene@st.com>
4435 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4438 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4439 Mickaël Guêné <mickael.guene@st.com>
4441 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4443 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4445 * config/arm/arm.c (arm_option_override): Define pic register to
4447 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4448 have no decl or go through PLT.
4449 (calculate_pic_address_constant): New function.
4450 (legitimize_pic_address): Call calculate_pic_address_constant.
4451 (arm_load_pic_register): Handle TARGET_FDPIC.
4452 (arm_is_segment_info_known): New function.
4453 (arm_pic_static_addr): Add support for FDPIC.
4454 (arm_load_function_descriptor): New function.
4455 (arm_emit_call_insn): Add support for FDPIC.
4456 (arm_assemble_integer): Add support for FDPIC.
4457 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4458 Define. (FDPIC_REGNUM): New define.
4459 * config/arm/arm.md (call): Add support for FDPIC.
4460 (call_value): Likewise.
4461 (restore_pic_register_after_call): New pattern.
4462 (untyped_call): Disable if FDPIC.
4463 (untyped_return): Likewise.
4464 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4466 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4467 Mickaël Guêné <mickael.guene@st.com>
4469 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4470 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4471 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4472 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4473 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4474 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4475 * config/arm/uclinuxfdpiceabi.h: New file.
4477 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4479 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4481 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4482 Mickaël Guêné <mickael.guene@st.com>
4484 * config/arm/arm.opt: Add -mfdpic option.
4485 * doc/invoke.texi: Add documentation for -mfdpic.
4487 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4489 * expmed.c (extract_bit_field): Update function comment
4491 * expr.c (expand_expr_real): Update function comment
4493 (expand_misaligned_mem_ref): New helper function.
4494 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4495 Remove duplicate assignment to "base" at case MEM_REF.
4496 Remove a shadowed variable "unsignedp" at case VCE.
4498 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4500 * regset.h (regs_invalidated_by_call_regset): Delete.
4501 (fixed_reg_set_regset): Likewise.
4502 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4503 (fixed_reg_set_regset, persistent_obstack): Likewise.
4504 (init_reg_sets_1, globalize_reg): Update accordingly.
4505 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4506 instead of a bitmap.
4507 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4508 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4509 instead of regs_invalidated_by_call_regset.
4510 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4511 * df-scan.c (df_scan_start_dump): Likewise.
4512 * dse.c (copy_fixed_regs): Likewise.
4513 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4515 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4517 * array-traits.h: New file.
4518 * coretypes.h (array_traits, bitmap_view): New types.
4519 * bitmap.h: Include "array-traits.h"
4520 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4521 (base_bitmap_view, bitmap_view): New classes.
4522 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4523 * hard-reg-set.h: Include array-traits.h.
4524 (array_traits<HARD_REG_SET>): New struct.
4525 * regset.h (IOR_REG_SET_HRS): New macro.
4526 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4527 rather than iterating over each hard register.
4528 * sched-deps.c (sched_analyze_insn): Likewise.
4529 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4531 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4533 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4534 instead of a HARD_REG_SET *.
4535 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4536 (ira_build): Update call accordingly.
4537 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4539 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4541 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4542 (HARD_REG_SET::operator!=): Likewise.
4543 (hard_reg_set_equal_p): Delete.
4544 * cfgcleanup.c (old_insns_match_p): Use == instead of
4545 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4546 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4547 (add_allocno_hard_regs_to_forest): Likewise.
4548 (setup_allocno_available_regs_num): Likewise.
4549 * ira.c (setup_pressure_classes): Likewise.
4550 (setup_allocno_and_important_classes): Likewise.
4551 (setup_reg_class_relations): Likewise.
4552 * lra-lives.c (process_bb_lives): Likewise.
4553 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4555 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4557 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4558 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4559 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4560 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4562 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4563 * ira.c (setup_reg_renumber): Likewise.
4564 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4565 * regrename.c (regrename_find_superclass): Likewise.
4566 * reload1.c (find_reg): Likewise.
4568 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4570 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4571 * caller-save.c (setup_save_areas): Use "&~" instead of
4572 AND_COMPL_HARD_REG_SET.
4573 (save_call_clobbered_regs): Likewise.
4574 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4576 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4577 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4578 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4579 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4580 (mips_conditional_register_usage): Likewise.
4581 * config/sh/sh.c (output_stack_adjust): Likewise.
4582 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4583 (setup_profitable_hard_regs): Likewise.
4584 (get_conflict_and_start_profitable_regs): Likewise.
4585 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4586 (ira_build_conflicts): Likewise.
4587 * ira-costs.c (restrict_cost_classes): Likewise.
4588 (setup_regno_cost_classes_by_aclass): Likewise.
4589 * ira-lives.c (process_bb_node_lives): Likewise.
4590 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4591 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4592 (setup_allocno_and_important_classes, setup_class_translate_array)
4593 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4595 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4596 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4597 (process_alt_operands, inherit_in_ebb): Likewise.
4598 * lra-eliminations.c (update_reg_eliminate): Likewise.
4599 * lra-lives.c (process_bb_lives): Likewise.
4600 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4601 * resource.c (find_dead_or_set_registers): Likewise.
4602 (mark_target_live_regs): Likewise.
4603 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4604 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4605 (implicit_clobber_conflict_p): Likewise.
4606 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4607 (try_shrink_wrapping): Likewise.
4609 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4611 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4612 (HARD_REG_SET::operator|=): Likewise.
4613 (IOR_HARD_REG_SET): Delete.
4614 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4616 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4617 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4618 * final.c (collect_fn_hard_reg_usage): Likewise.
4619 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4620 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4621 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4622 (propagate_some_info_from_allocno): Likewise.
4623 (copy_info_to_removed_store_destinations): Likewise.
4624 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4625 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4626 (fast_allocation): Likewise.
4627 * ira-conflicts.c (ira_build_conflicts): Likewise.
4628 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4629 (process_bb_node_lives): Likewise.
4630 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4631 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4632 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4633 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4634 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4635 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4636 (process_bb_lives): Likewise.
4637 * lra-spills.c (assign_spill_hard_regs): Likewise.
4638 * postreload.c (reload_combine): Likewise.
4639 * reginfo.c (init_reg_sets_1): Likewise.
4640 * regrename.c (merge_overlapping_regs, find_rename_reg)
4641 (merge_chains): Likewise.
4642 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4643 (find_reload_regs, finish_spills, choose_reload_regs_init)
4644 (emit_reload_insns): Likewise.
4645 * reorg.c (redundant_insn): Likewise.
4646 * resource.c (find_dead_or_set_registers, mark_set_resources)
4647 (mark_target_live_regs): Likewise.
4648 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4649 * sched-deps.c (sched_analyze_insn): Likewise.
4650 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4651 (find_best_reg_for_expr): Likewise.
4652 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4654 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4656 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4657 (HARD_REG_SET::operator&): Likewise.
4658 (AND_HARD_REG_SET): Delete.
4659 * caller-save.c (setup_save_areas): Use "&" instead of
4661 (save_call_clobbered_regs): Likewise.
4662 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4663 * config/m32c/m32c.c (reduce_class): Likewise.
4664 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4665 * final.c (get_call_reg_set_usage): Likewise.
4666 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4667 (setup_left_conflict_sizes_p): Likewise.
4668 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4669 (ira_build_conflicts): Likewise.
4670 * ira-costs.c (restrict_cost_classes): Likewise.
4671 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4672 (setup_reg_class_relations): Likewise.
4673 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4674 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4675 * resource.c (find_dead_or_set_registers): Likewise.
4676 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4678 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4680 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4681 (COMPL_HARD_REG_SET): Delete.
4682 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4683 of COMPL_HARD_REG_SET.
4684 (try_rename_operands): Likewise.
4685 * config/sh/sh.c (push_regs): Likewise.
4686 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4687 * lra-constraints.c (contains_reg_p): Likewise.
4688 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4690 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4692 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4693 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4694 of COPY_HARD_REG_SET.
4695 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4696 (epiphany_conditional_register_usage): Likewise.
4697 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4698 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4699 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4700 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4701 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4702 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4703 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4704 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4705 * config/sh/sh.c (output_stack_adjust): Likewise.
4706 * final.c (collect_fn_hard_reg_usage): Likewise.
4707 (get_call_reg_set_usage): Likewise.
4708 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4709 (ira_flattening): Likewise.
4710 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4711 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4712 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4713 (ira_reassign_pseudos): Likewise.
4714 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4715 (ira_build_conflicts): Likewise.
4716 * ira-costs.c (restrict_cost_classes): Likewise.
4717 (setup_regno_cost_classes_by_aclass): Likewise.
4718 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4719 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4720 (setup_stack_reg_pressure_class, setup_pressure_classes)
4721 (setup_allocno_and_important_classes, setup_class_translate_array)
4722 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4723 (ira_setup_eliminable_regset): Likewise.
4724 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4725 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4726 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4727 (process_alt_operands, inherit_in_ebb): Likewise.
4728 * lra-lives.c (process_bb_lives): Likewise.
4729 * lra-spills.c (assign_spill_hard_regs): Likewise.
4730 * lra.c (lra): Likewise.
4731 * mode-switching.c (new_seginfo): Likewise.
4732 * postreload.c (reload_combine): Likewise.
4733 * reg-stack.c (straighten_stack): Likewise.
4734 * reginfo.c (save_register_info, restore_register_info): Likewise.
4735 (init_reg_sets_1, record_subregs_of_mode): Likewise
4736 * regrename.c (create_new_chain, rename_chains): Likewise.
4737 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4738 (find_reload_regs): Likewise.
4739 * resource.c (find_dead_or_set_registers): Likewise.
4740 (mark_target_live_regs): Likewise.
4741 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4743 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4745 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4746 (note_pattern_stores): Declare.
4747 (note_stores): Take an rtx_insn *.
4748 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4749 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4750 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4751 (note_stores): Take an rtx_insn * as argument and process
4752 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4753 (note_pattern_stores): ...this.
4754 (find_first_parameter_load): Pass the insn rather than
4755 its pattern to note_stores.
4756 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4757 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4758 (insert_one_insn): Likewise.
4759 * combine.c (combine_instructions): Likewise.
4760 (likely_spilled_retval_p): Likewise.
4761 (try_combine): Use note_pattern_stores instead of note_stores.
4762 (record_dead_and_set_regs): Pass the insn rather than its pattern
4764 (reg_dead_at_p): Likewise.
4765 * config/bfin/bfin.c (workaround_speculation): Likewise.
4766 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4768 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4769 instead of note_stores.
4770 (frv_optimize_membar_local): Pass the insn rather than its pattern
4772 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4773 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4774 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4775 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4776 (mips_reorg_process_insns): Likewise.
4777 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4778 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4780 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4781 its pattern to note_stores.
4782 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4784 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4785 the insn to note_stores.
4786 (prescan_insns_for_dce): Update call accordingly.
4787 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4789 * df-problems.c (can_move_insns_across): Likewise.
4790 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4791 * function.c (assign_parm_setup_reg): Likewise.
4792 * gcse-common.c (record_last_mem_set_info_common): Likewise.
4793 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4794 (single_set_gcse): Likewise.
4795 * ira.c (validate_equiv_mem): Likewise.
4796 (update_equiv_regs): Use note_pattern_stores rather than note_stores
4798 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4799 pattern to note_stores.
4800 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4801 * loop-iv.c (simplify_using_initial_values): Likewise.
4802 * mode-switching.c (optimize_mode_switching): Likewise.
4803 * optabs.c (emit_libcall_block_1): Likewise.
4804 (expand_atomic_compare_and_swap): Likewise.
4805 * postreload-gcse.c (load_killed_in_block_p): Likewise.
4806 (record_opr_changes): Likewise. Remove explicit handling of
4807 CALL_INSN_FUNCTION_USAGE.
4808 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4809 * regcprop.c (kill_clobbered_values): Likewise.
4810 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4812 * regrename.c (build_def_use): Likewise.
4813 * reload1.c (reload): Use note_pattern_stores instead of note_stores
4814 for mark_not_eliminable.
4815 (reload_as_needed): Pass the insn rather than its pattern
4817 (emit_output_reload_insns): Likewise.
4818 * resource.c (mark_target_live_regs): Likewise.
4819 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4820 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4821 instead of note_stores.
4822 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4823 its pattern to note_stores.
4824 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4825 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4827 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4829 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4830 than a #define. Use a structure rather than an array as the
4831 fallback definition. Remove special cases for low array sizes.
4832 (const_hard_reg_set): New typedef.
4833 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4834 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4835 (hard_reg_set_empty_p): Likewise.
4836 (SET_HARD_REG_BIT): Use a function rather than a macro to
4837 handle the case in which HARD_REG_SET is a structure.
4838 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4839 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4840 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4841 (IOR_COMPL_HARD_REG_SET): Likewise.
4842 (hard_reg_set_iterator::pset): Constify the pointer target.
4843 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4844 of a "const HARD_REG_SET". Update the handling of non-integer
4846 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4847 * reload.h: Likewise.
4848 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4849 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4850 of a "const HARD_REG_SET".
4851 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4852 (range_in_hard_reg_set_p): Likewise.
4853 * ira-costs.c (restrict_cost_classes): Likewise.
4854 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
4855 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4856 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
4857 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
4858 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
4859 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
4860 take an unsigned int and open-code the HARD_REG_SET operations.
4862 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4864 * Makefile.in (OBJS): Remove bt-load.o.
4865 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
4866 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4867 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
4868 document that the option no longer does anything.
4869 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4870 * target.def (branch_target_register_class): Delete.
4871 (branch_target_register_callee_saved): Likewise.
4872 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4873 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4874 * doc/tm.texi: Regenerate.
4875 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
4876 (make_pass_branch_target_load_optimize2): Likewise.
4877 * passes.def (pass_branch_target_load_optimize1): Likewise.
4878 (pass_branch_target_load_optimize2): Likewise.
4879 * targhooks.h (default_branch_target_register_class): Likewise.
4880 * targhooks.c (default_branch_target_register_class): Likewise.
4881 * opt-suggestions.c (test_completion_valid_options): Remove
4882 -fbtr-bb-exclusive from the list of test options.
4883 * bt-load.c: Remove.
4885 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4887 * match.pd: Add flag_unsafe_math_optimizations check
4888 before deciding on the widest type in a binary math operation.
4890 2019-09-09 Martin Liska <mliska@suse.cz>
4892 * config/i386/i386.opt: Update comment of removed
4893 options that are preserved only for backward
4896 2019-09-09 Jakub Jelinek <jakub@redhat.com>
4899 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
4903 * config/i386/avxintrin.h (__v32qs): New typedef.
4904 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
4907 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4909 * doc/invoke.texi (Option Summary): Cover eBPF.
4910 (eBPF Options): New section.
4911 * doc/extend.texi (BPF Built-in Functions): Likewise.
4912 (BPF Kernel Helpers): Likewise.
4914 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4916 * config.gcc: Support for bpf-*-* targets.
4917 * common/config/bpf/bpf-common.c: New file.
4918 * config/bpf/t-bpf: Likewise.
4919 * config/bpf/predicates.md: Likewise.
4920 * config/bpf/constraints.md: Likewise.
4921 * config/bpf/bpf.opt: Likewise.
4922 * config/bpf/bpf.md: Likewise.
4923 * config/bpf/bpf.h: Likewise.
4924 * config/bpf/bpf.c: Likewise.
4925 * config/bpf/bpf-protos.h: Likewise.
4926 * config/bpf/bpf-opts.h: Likewise.
4927 * config/bpf/bpf-helpers.h: Likewise.
4928 * config/bpf/bpf-helpers.def: Likewise.
4930 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4932 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4935 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4937 * opt-functions.awk (integer_range_info): Make sure values are in
4938 numeric context before operating with them.
4940 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4942 * genemit.c (gen_split): Print the filename and line number where the
4943 splitter (or peephole2) was defined, to the dump file.
4945 2019-09-07 Jakub Jelinek <jakub@redhat.com>
4947 PR tree-optimization/91665
4948 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
4949 incompatible with the type of PHI result.
4951 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
4954 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
4955 gen_unaligned_storedi for 4-byte aligned addresses.
4957 2019-09-06 Jim Wilson <jimw@sifive.com>
4959 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
4962 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4964 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
4966 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4968 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
4969 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
4971 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
4974 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
4975 cost of SSE->integer and integer->SSE moves from 2 to 6.
4978 2019-09-06 Jakub Jelinek <jakub@redhat.com>
4980 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
4981 before testing TYPE_TRANSPARENT_AGGR.
4982 * calls.c (initialize_argument_information, load_register_parameters):
4985 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
4987 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
4989 (cmp_ior): Likewise.
4991 2019-09-06 Martin Liska <mliska@suse.cz>
4993 * doc/match-and-simplify.texi: Separate tuples with ;.
4995 2019-09-06 Martin Liska <mliska@suse.cz>
4998 * Makefile.in: Remove tlink.o.
4999 * collect2.c (do_link): New function isolated
5002 * collect2.h (do_tlink): Remove declaration of do_tlink.
5003 * doc/extend.texi: Remove documentation of -frepo.
5004 * doc/invoke.texi: Likewise.
5005 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5008 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5009 Jim Wilson <jimw@sifive.com>
5012 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5013 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5014 paradoxical_subreg_p (operands[0]).
5015 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5016 use as intermediate value.
5018 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5020 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5021 (sync_compare_and_swap<mode>_insn): Likewise.
5023 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5026 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5027 without movmisalign optab.
5029 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5034 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5035 types, use type of their first field instead of type of
5038 2019-09-05 Richard Biener <rguenther@suse.de>
5040 PR rtl-optimization/91656
5041 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5044 2019-09-05 Richard Biener <rguenther@suse.de>
5047 * tree-inline.c (declare_return_variable): Mark the return
5048 slot as addressable after building an address of it.
5050 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5052 * doc/install.texi: Update and clarify requirements to build GNAT.
5054 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5057 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5058 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5059 call to be in memory.
5060 (pass_expand::execute): Call discover_nonconstant_array_refs before
5061 setting currently_expanding_to_rtl.
5063 2019-09-04 Caroline Tice <cmtice@google.com>
5065 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5068 2019-09-04 Marek Polacek <polacek@redhat.com>
5070 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5072 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5075 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5076 for QI and HImode moves between SSE and general registers.
5078 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5081 * doc/invoke.texi: Document -Wenum-conversion.
5083 2019-09-04 Richard Biener <rguenther@suse.de>
5085 PR rtl-optimization/36262
5086 * postreload-gcse.c: Include intl.h and gcse.h.
5087 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5088 to avoid linear list walk.
5089 (record_last_mem_set_info): Gate off if not computing transparentness.
5090 (get_bb_avail_insn): If transparentness isn't computed give up
5092 (gcse_after_reload_main): Skip compute_transp and extended PRE
5093 if gcse_or_cprop_is_too_expensive says so.
5095 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5097 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5099 (msp430_select_section): Handle decls with the "noinit" attribute with
5100 default_elf_select_section.
5101 Handle SECCAT_RODATA_MERGE_* section types with
5102 default_elf_select_section.
5103 Add comments about handling of unsupported section types.
5104 (msp430_section_type_flags): Remove handling of the noinit section.
5106 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5108 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5109 conflicting msp430-specific attributes.
5110 (msp430_section_attr): Likewise.
5111 Add warnings about conflicts with generic "noinit" and "section"
5113 Fix grammar in -mlarge error message.
5114 (msp430_data_attr): Rename to msp430_persist_attr.
5115 Add warnings about conflicts with generic "noinit" and "section"
5117 Add warning for when variable is not initialized.
5118 Chain conditionals which prevent the attribute being added.
5119 (ATTR_EXCL): New helper.
5120 (attr_reent_exclusions): New exclusion table.
5121 (attr_naked_exclusions): Likewise.
5122 (attr_crit_exclusions): Likewise.
5123 (attr_lower_exclusions): Likewise.
5124 (attr_upper_exclusions): Likewise.
5125 (attr_either_exclusions): Likewise.
5126 (attr_persist_exclusions): Likewise.
5127 (msp430_attribute_table): Update with exclusion rules.
5128 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5131 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5133 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5134 (msp430_handle_generic_attribute): New function.
5135 * doc/tm.texi: Regenerate.
5136 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5137 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5138 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5139 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5141 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5143 PR tree-optimization/91504
5144 * match.pd: Add ((~a & b) ^a) --> (a | b).
5146 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5149 * config/i386/i386-expand.c (split_double_mode): If there is more than
5150 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5151 already split matching MEM operand instead of calling adjust_address
5154 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5156 * config.gcc: Obsolete spu target. Remove references to spu.
5157 * configure.ac: Remove references to spu.
5158 * configure: Regenerate.
5159 * config/spu/: Remove directory.
5160 * common/config/spu/: Remove directory.
5162 * doc/extend.texi: Remove references to spu.
5163 * doc/invoke.texi: Likewise.
5164 * doc/md.texi: Likewise.
5165 * doc/sourcebuild.texi: Likewise.
5167 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5172 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5173 and SSA_NAME referring to CONSTANT_P correctly.
5175 2019-09-03 Richard Biener <rguenther@suse.de>
5177 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5178 (vn_nary_op_insert): Likewise.
5179 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5180 (vn_nary_op_lookup): Likewise.
5181 (vn_nary_op_insert): Likewise.
5183 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5185 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5186 (*op0, 1) instead of XEXP (*op1, 0).
5188 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5190 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5191 (aarch64_fjcvtzs): New define_insn.
5192 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5193 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5195 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5196 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5197 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5198 __ARM_FEATURE_JCVT where appropriate.
5199 * config/aarch64/arm_acle.h (__jcvt): Define.
5201 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5203 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5204 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5205 (aarch64_<frintnzs_op><mode>): New define_insn.
5206 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5207 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5208 __ARM_FEATURE_FRINT when appropriate.
5209 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5210 frint32x, frint64z, frint64x.
5211 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5212 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5213 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5214 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5215 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5216 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5217 * config/aarch64/iterators.md (VSFDF): Define.
5218 (FRINTNZX): Likewise.
5219 (frintnzs_op): Likewise.
5221 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5223 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5224 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5226 * config/aarch64/aarch64-tune.md: Regenerated.
5227 * doc/invoke.texi: Document the new processors.
5229 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5231 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5235 (sve2-sm4): Likewise.
5237 (svesha3): Likewise.
5238 (svebitperm): Likewise.
5240 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5241 Richard Biener <rguenther@suse.de>
5243 PR tree-optimization/91597
5244 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5245 BIT_AND_EXPR optimization for pointers, even if both operand
5246 ranges don't include NULL, the result can be NULL.
5248 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5251 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5252 (non_mem_decl_p): ...this.
5253 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5254 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5255 unconditionally as before.
5257 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5260 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5261 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5262 * tree.def (LTGT_EXPR): Likewise.
5263 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5265 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5268 * fold-const.c (range_check_type): For enumeral and boolean
5269 type, pass 1 to type_for_size langhook instead of
5270 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5271 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5272 (build_range_check): Don't call unsigned_type_for for pointer types.
5273 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5274 range_check_type result.
5276 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5278 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5279 (replace_ref): Do not replace a chain of only two candidates which are
5280 valid memory references.
5282 2019-09-02 Martin Liska <mliska@suse.cz>
5284 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5285 Bail out when we'll end up with the same number of clusters as
5287 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5288 (jump_table_cluster::can_be_handled): Remove the guard
5289 as it's already handled in ::is_enabled. Allocate output
5290 after early bail out.
5292 2019-09-02 Martin Liska <mliska@suse.cz>
5294 PR gcov-profile/91601
5295 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5296 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5297 also negative edges.
5298 (circuit): Handle also negative edges as they can happen
5301 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5304 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5305 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5306 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5308 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5311 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5312 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5313 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5317 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5318 GIMPLE_ASM TREE_LIST operands.
5320 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5322 * doc/generic.texi (Unary and Binary Expressions): Mark up
5323 an instance of TYPE_MIN.
5325 2019-08-31 Stafford Horne <shorne@gmail.com>
5327 * config/or1k/constraints.md (t): New constraint.
5328 * config/or1k/or1k.h (GOT_REGS): New register class.
5329 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5331 2019-08-30 Jim Wilson <jimw@sifive.com>
5333 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5334 and -fpic and -mplt then disable -msave-restore and warn.
5336 2019-08-30 Martin Sebor <msebor@redhat.com>
5339 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5340 the statement doesn't have one.
5341 * gimple-pretty-print.c (percent_G_format): Same.
5344 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5345 before using them to validate MEM_REF offset.
5347 2019-08-30 Marek Polacek <polacek@redhat.com>
5349 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5351 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5353 * config/arm/arm.md (unaligned_loaddi,
5354 unaligned_storedi): New unspec insn patterns.
5355 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5356 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5357 and unaligned_storedi for 4-byte aligned memory.
5358 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5359 4-byte aligned memory.
5361 2019-08-30 Martin Jambor <mjambor@suse.cz>
5363 tree-optimization/91579
5364 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5365 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5367 (arg_needs_copy_p): Removed.
5368 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5370 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5372 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5374 * config/i386/i386-features.c
5375 (general_scalar_chain::compute_convert_gain):
5376 Correct cost for double-word shifts.
5377 (general_scalar_to_vector_candidate_p): Reject count operands
5378 greater or equal to mode bitsize.
5380 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5382 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5383 for moves between SSE and non-general registers and between
5384 mask and non-general registers.
5385 (ix86_register_move_cost): Remove stalled comment.
5387 2019-08-29 Richard Biener <rguenther@suse.de>
5389 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5390 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5392 2019-08-29 Richard Biener <rguenther@suse.de>
5395 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5396 Do not emit scalar copies for debug-insns, instead replace
5397 their uses with the reg copy used in the chain or reset them
5398 if there is a reaching definition outside of the chain as well.
5400 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5403 * config/i386/i386-expand.c (expand_vec_perm_movs,
5404 expand_vec_perm_blend, expand_vec_perm_vpermil,
5405 expand_vec_perm_pshufb, expand_vec_perm_1,
5406 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5407 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5408 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5409 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5410 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5411 comments - replace ix86_expand_vec_perm_builtin_1 with
5412 ix86_expand_vec_perm_const_1.
5413 (expand_vec_perm2_vperm2f128_vblend): New function.
5414 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5415 expand_vec_perm2_vperm2f128_vblend as last resort.
5416 (canonicalize_perm): Formatting fix.
5418 PR tree-optimization/91351
5419 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5421 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5422 range_check_type returns NULL.
5423 * tree-switch-conversion.c (switch_conversion::build_one_array):
5424 Use range_check_type instead of unsigned_type_for, don't perform
5425 linear opt if it returns NULL.
5426 (bit_test_cluster::find_bit_tests): Formatting fix.
5427 (bit_test_cluster::emit): Use range_check_type instead of
5429 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5432 2019-08-29 Richard Biener <rguenther@suse.de>
5434 PR tree-optimization/91568
5435 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5436 (vect_update_max_nunits): Add overload for poly_uint64.
5437 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5438 (vect_build_slp_tree): Record max_nunits into the subtree
5439 and merge it upwards.
5440 (vect_print_slp_tree): Print max_nunits.
5442 2019-08-28 Marek Polacek <polacek@redhat.com>
5444 Implement P1152R4: Deprecating some uses of volatile.
5446 * doc/invoke.texi: Document -Wvolatile.
5448 2019-08-28 Marek Polacek <polacek@redhat.com>
5450 PR c++/91360 - Implement C++20 P1143R2: constinit.
5451 * doc/invoke.texi: Document -Wc++20-compat.
5453 2019-08-28 Martin Sebor <msebor@redhat.com>
5455 PR tree-optimization/91457
5456 * builtins.c (component_size): New function.
5457 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5458 * builtins.h (compute_objsize): Add argument.
5459 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5460 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5461 (vrp_prop::check_mem_ref): Same.
5462 (vrp_prop::search_for_addr_array): Set no-warning bit.
5463 (check_array_bounds): Same.
5465 2019-08-28 Martin Sebor <msebor@redhat.com>
5468 * opts-common.c (option_enabled): Correct checking for language
5471 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5473 * config/i386/i386.c (ix86_register_move_cost): Do not
5474 limit the cost of moves to/from XMM register to minimum 8.
5476 2019-08-28 Martin Jambor <mjambor@suse.cz>
5479 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5480 checking assert a normal assert to test it really is redundant.
5481 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5483 (update_jump_functions_after_inlining): Removed combining unary
5484 arithmetic operations with an ancestor jump function.
5485 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5488 2019-08-28 Richard Biener <rguenther@suse.de>
5490 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5493 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5494 Richard Biener <rguenther@suse.de>
5496 * expr.c (expand_assignment): Handle misaligned DECLs.
5497 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5498 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5500 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5501 * varasm.c (build_constant_desc): Align constants of misaligned types.
5502 * config/arm/predicates.md (aligned_operand): New predicate.
5503 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5504 aligned_operand to check restrictions on memory addresses.
5505 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5506 * config/arm/vec-common.md (mov<VALL>): Likewise.
5508 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5511 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5512 V_128 iterator instead of VI_128.
5514 2019-08-28 Martin Liska <mliska@suse.cz>
5516 PR tree-optimization/90970
5517 * builtins.c (check_access): Remove assignment to maxread
5518 as it hasn't been used since when it was introduced in r255755.
5520 2019-08-27 Martin Sebor <msebor@redhat.com>
5522 PR tree-optimization/91567
5523 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5525 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5528 2019-08-27 Jeff Law <law@redhat.com>
5530 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5531 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5533 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5536 * config/i386/i386-features.c (convert_scalars_to_vector):
5537 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5538 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5539 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5540 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5542 2019-08-27 Richard Biener <rguenther@suse.de>
5544 * config/i386/i386-features.h
5545 (general_scalar_chain::~general_scalar_chain): Add.
5546 (general_scalar_chain::insns_conv): New bitmap.
5547 (general_scalar_chain::n_sse_to_integer): New.
5548 (general_scalar_chain::n_integer_to_sse): Likewise.
5549 (general_scalar_chain::make_vector_copies): Adjust signature.
5550 * config/i386/i386-features.c
5551 (general_scalar_chain::general_scalar_chain): Outline,
5552 initialize new members.
5553 (general_scalar_chain::~general_scalar_chain): New.
5554 (general_scalar_chain::mark_dual_mode_def): Record insns
5555 we need to insert conversions at and count them.
5556 (general_scalar_chain::compute_convert_gain): Account
5557 for conversion instructions at chain boundary.
5558 (general_scalar_chain::make_vector_copies): Generate a single
5559 copy for a def by a specific insn.
5560 (general_scalar_chain::convert_registers): First populate
5561 defs_map, then make copies at out-of chain insns.
5563 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5565 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5567 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5569 2019-08-27 Martin Liska <mliska@suse.cz>
5571 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5573 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5574 Enclose in anonymous namespace.
5575 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5576 hard_register initialization in braces.
5577 * tree-vrp.h (value_range_base::supports_type_p): Return false
5578 for function with boolean return type.
5580 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5582 * config/i386/i386.c (emit_i387_cw_initialization)
5583 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5585 2019-08-26 Martin Sebor <msebor@redhat.com>
5588 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5589 (sprintf_dom_walker): Remove class.
5590 (get_int_range): Make argument const.
5591 (directive::fmtfunc, directive::set_precision): Same.
5592 (format_none): Same.
5593 (build_intmax_type_nodes): Same.
5594 (adjust_range_for_overflow): Same.
5595 (format_floating): Same.
5596 (format_character): Same.
5597 (format_string): Same.
5598 (format_plain): Same.
5599 (get_int_range): Cast away constness.
5600 (format_integer): Same.
5601 (get_string_length): Call get_range_strlen_dynamic. Handle
5602 null lendata.maxbound.
5603 (should_warn_p): Adjust argument scope qualifier.
5605 (format_directive): Same.
5606 (parse_directive): Same.
5607 (is_call_safe): Same.
5608 (try_substitute_return_value): Same.
5609 (sprintf_dom_walker::handle_printf_call): Rename...
5610 (handle_printf_call): ...to this. Initialize target to host charmap
5611 here instead of in pass_sprintf_length::execute.
5612 (struct call_info): Make global.
5613 (sprintf_dom_walker::compute_format_length): Make global.
5614 (sprintf_dom_walker::handle_gimple_call): Same.
5615 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5616 * print-rtl.c (print_pattern): Reduce the number of spaces to
5617 avoid -Wformat-truncation.
5618 * tree-pass.h (make_pass_warn_printf): New function.
5619 * tree-ssa-strlen.c (strlen_optimize): New variable.
5620 (get_string_length): Add comments.
5621 (get_range_strlen_dynamic): New function.
5622 (check_and_optimize_call): New function.
5623 (handle_integral_assign): New function.
5624 (strlen_check_and_optimize_stmt): Factor code out into
5625 strlen_check_and_optimize_call and handle_integral_assign.
5626 (strlen_dom_walker::evrp): New member.
5627 (strlen_dom_walker::before_dom_children): Use evrp member.
5628 (strlen_dom_walker::after_dom_children): Use evrp member.
5629 (printf_strlen_execute): New function.
5630 (pass_strlen::gate): Update to handle printf calls.
5631 (dump_strlen_info): New function.
5632 (pass_data_warn_printf): New variable.
5633 (pass_warn_printf): New class.
5634 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5635 (handle_printf_call): Same.
5636 * tree-vrp.c (value_range_base::type): Adjust assertion.
5637 * vr-values.c (vr_values::update_value_range): Use type of the first
5638 argument rather than the second.
5640 2019-08-26 Richard Biener <rguenther@suse.de>
5642 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5644 (convert_scalars_to_vector): Do not call it.
5646 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5647 Uros Bizjak <ubizjak@gmail.com>
5649 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5650 CASE_MATHFN_FLOATN for roundeven.
5651 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5653 (ix86_mode_needed): Likewise.
5654 (ix86_mode_after): Likewise.
5655 (ix86_mode_entry): Likewise.
5656 (ix86_mode_exit): Likewise.
5657 (ix86_emit_mode_set): Likewise.
5658 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5659 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5660 (ix86_entity): Add I387_ROUNDEVEN.
5661 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5662 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5663 (define_int_iterator): Likewise.
5664 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5665 (define_constant): Define ROUND_ROUNDEVEN mode.
5666 (define_attr): Add roundeven mode for i387_cw.
5667 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5668 * internal-fn.def (ROUNDEVEN): New builtin function.
5669 * optabs.def (roundeven_optab): New optab.
5671 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5673 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5675 * builtins.def: Added function definitions for roundeven function
5677 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5678 function call. Adjust condition for floor, ceil, trunc and round.
5679 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5680 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5681 (integer_valued_real_call_p): Added case for roundeven function.
5682 * real.c (is_even): New function. Returns true if real number is even,
5683 otherwise returns false.
5684 (is_halfway_below): New function. Returns true if real number is
5685 halfway between two integers, else return false.
5686 (real_roundeven): New function. Round real number to nearest integer,
5687 rounding halfway cases towards even.
5688 * real.h (real_value): Added descriptive comments. Added function
5689 declaration for roundeven function.
5690 * doc/extend.texi (Other Builtins): List roundeven variants among
5691 functions which can be handled as builtins.
5693 2019-08-26 Richard Biener <rguenther@suse.de>
5697 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5699 (general_scalar_chain::replace_with_subreg): Remove.
5700 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5701 (general_scalar_chain::convert_reg): Adjust signature.
5702 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5703 iterate over all defs of a reg.
5704 (general_scalar_chain::replace_with_subreg): Remove.
5705 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5706 (general_scalar_chain::make_vector_copies): Populate defs_map,
5707 place copy only after defs that are used as vectors in the chain.
5708 (general_scalar_chain::convert_reg): Emit a copy for a specific
5709 def in a specific instruction.
5710 (general_scalar_chain::convert_op): All reg uses are converted here.
5711 (general_scalar_chain::convert_insn): Emit copies for scalar
5712 uses of defs here. Replace uses with the copies we created.
5713 Replace and convert the def. Adjust REG_DEAD notes, remove
5714 REG_EQUIV/EQUAL notes.
5715 (general_scalar_chain::convert_registers): Only handle copies
5716 into the chain here.
5718 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5720 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5722 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5724 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5725 Add nop_convert case.
5726 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5727 Fold all statements if requested.
5728 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5729 Allow to fold all statements.
5730 * tree-vrp.c (class vrp_folder):
5731 Let substitute_and_fold_engine fold all statements.
5733 2019-08-26 Richard Biener <rguenther@suse.de>
5735 PR tree-optimization/91526
5736 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5737 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5738 TODO_update_address_taken.
5740 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5742 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5745 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5747 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5748 machine mode for unspec_volatile operand.
5750 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5752 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5753 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5754 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5755 (prefer_neon_for_64bits): Remove.
5756 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5757 (tune_params): Remove PREF_NEON_64_FALSE uses.
5758 (arm_option_override): Remove prefer_neon selection code.
5759 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5760 * gcc/config/arm/arm-protos.h (tune_params): Remove
5761 prefer_neon_for_64bits.
5762 (prefer_neon_for_64bits): Remove.
5764 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5767 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5768 and issue any diagnostics needed before collecting the pre-PCH
5771 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5774 * common.opt (fexcess-precision=): Add Optimization flag. Use
5775 flag_excess_precision variable instead of
5776 flag_excess_precision_cmdline.
5777 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5779 (flag_excess_precision): Don't define.
5780 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5781 flag_excess_precision_cmdline. Remove comment.
5782 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5783 and x_flag_excess_precision instead of
5784 frontend_set_flag_excess_precision_cmdline and
5785 x_flag_excess_precision_cmdline.
5786 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5787 x_flag_excess_precision_cmdline.
5788 * toplev.c (init_excess_precision): Remove.
5789 (lang_dependent_init_target): Don't call it.
5791 2019-08-23 Martin Liska <mliska@suse.cz>
5793 * lto-wrapper.c (run_gcc): When setting jobserver
5794 set also parallel to 1. This was done so before r273908.
5796 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
5798 * config/arm/arm-cpus.in (cortex-m35p): New entry.
5799 (cortex-a76ae): Likewise.
5800 (cortex-a77): Likewise
5801 * config/arm/arm-tables.opt: Regenerate.
5802 * config/arm/arm-tune.md: Likewise.
5803 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5804 cortex-a77 CPU options.
5806 2019-08-23 Martin Liska <mliska@suse.cz>
5808 * profile.c (instrument_values): Do not set
5810 * tree-profile.c (gimple_gen_interval_profiler): Remove
5812 (gimple_gen_pow2_profiler): Likewise.
5813 (gimple_gen_topn_values_profiler): Likewise.
5814 (gimple_gen_ic_profiler): Likewise.
5815 (gimple_gen_time_profiler): Likewise.
5816 (gimple_gen_average_profiler): Likewise.
5817 (gimple_gen_ior_profiler): Likewise.
5818 * value-prof.c (dump_histogram_value): Use default
5819 in switch statement instead of HIST_TYPE_MAX.
5820 (stream_in_histogram_value): Likewise.
5821 (gimple_duplicate_stmt_histograms): Do not
5822 use NULL for implicitly set arguments.
5823 (gimple_divmod_values_to_profile): Do not use
5825 (gimple_indirect_call_to_profile): Likewise.
5826 (gimple_find_values_to_profile): Use implicit
5827 function call arguments.
5828 * value-prof.h (gimple_alloc_histogram_value):
5830 (gimple_gen_interval_profiler): Remove last argument.
5831 (gimple_gen_pow2_profiler): Likewise.
5832 (gimple_gen_topn_values_profiler): Likewise.
5833 (gimple_gen_ic_profiler): Likewise.
5834 (gimple_gen_time_profiler): Likewise.
5835 (gimple_gen_average_profiler): Likewise.
5836 (gimple_gen_ior_profiler): Likewise.
5838 2019-08-22 Martin Sebor <msebor@redhat.com>
5841 * builtins.c (c_strlen): Rename argument and introduce new local.
5842 Set no-warning bit on original argument.
5843 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5844 Fold empty and zero constructors into empty strings.
5845 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5846 for missing initializers.
5847 * tree.c (build_string_literal): Handle optional argument.
5848 * tree.h (build_string_literal): Add defaulted argument.
5849 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5850 no-warning bit on original expression.
5852 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5855 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5856 and UNSPEC_DARN_RAW.
5857 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
5859 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
5860 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
5861 (darn): Use an unspec_volatile, and UNSPECV_DARN.
5863 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5865 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5866 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
5867 * config/rs6000/rs6000.md (unspec): ... here.
5868 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
5869 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5870 cmpeqb, *cmpeqb_internal): Delete, move to...
5871 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
5872 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5873 cmpeqb, *cmpeqb_internal): ... here.
5875 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5877 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
5878 intrinsics if __ARM_FP.
5879 Use __ARM_FEATURE_CRC32 ifdef guard.
5881 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5883 * config/arm/arm.md (neon_for_64bits): Remove.
5884 (avoid_neon_for_64bits): Remove.
5885 (arm_adddi3): Always split early.
5886 (arm_subdi3): Always split early.
5887 (negdi2): Remove Neon expansion.
5888 (split zero_extend): Split before reload.
5889 (split sign_extend): Split before reload.
5891 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5893 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
5894 (qhs_extenddi_cstr): Likewise.
5895 * config/arm/arm.md (ashldi3): Always expand early.
5896 (ashlsi3): Likewise.
5897 (ashrsi3): Likewise.
5898 (zero_extend<mode>di2): Remove Neon variants.
5899 (extend<mode>di2): Likewise.
5900 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
5901 (signed_shift_di3_neon): Likewise.
5902 (unsigned_shift_di3_neon): Likewise.
5903 (ashrdi3_neon_imm_noclobber): Likewise.
5904 (lshrdi3_neon_imm_noclobber): Likewise.
5905 (<shift>di3_neon): Likewise.
5906 (split extend): Remove DI extend split patterns.
5908 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5910 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
5911 (split not): Add DImode not splitter.
5912 (anddi3): Remove pattern.
5913 (anddi3_insn): Likewise.
5914 (anddi_zesidi_di): Likewise.
5915 (anddi_sesdi_di): Likewise.
5916 (anddi_notdi_di): Likewise.
5917 (anddi_notzesidi_di): Likewise.
5918 (anddi_notsesidi_di): Likewise.
5920 (iordi3_insn): Likewise.
5921 (iordi_zesidi_di): Likewise.
5922 (iordi_sesidi_di): Likewise.
5924 (xordi3_insn): Likewise.
5925 (xordi_sesidi_di): Likewise.
5926 (xordi_zesidi_di): Likewise.
5927 (one_cmpldi2): Likewise.
5928 (one_cmpldi2_insn): Likewise.
5929 * config/arm/constraints.md: Remove De, Df, Dg constraints.
5930 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
5932 (iwmmxt_xordi3): Likewise.
5933 (iwmmxt_anddi3): Likewise.
5934 * config/arm/neon.md (orndi3_neon): Remove pattern.
5935 (anddi_notdi_di): Likewise.
5936 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
5937 (arm_iordi_operand_neon): Likewise.
5938 (arm_xordi_operand_neon): Likewise.
5939 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
5940 (iordi_notzesidi_di): Likewise.
5941 (iordi_notdi_zesidi): Likewise.
5942 (iordi_notsesidi_di): Likewise.
5944 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
5946 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
5948 (iorsi3_compare0_scratch): Likewise.
5950 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
5952 * config/aarch64/aarch64-simd-builtins.def:
5955 * config/aarch64/aarch64-simd.md:
5956 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
5957 (aarch64_st1x4<VALLDIF:mode>): Likewise.
5958 (aarch64_ld1_x4_<mode>): Likewise.
5959 (aarch64_st1_x4_<mode>): Likewise.
5960 * config/aarch64/arm_neon.h:
5961 (vld1_s8_x4): New function.
5962 (vld1q_s8_x4): Likewise.
5963 (vld1_s16_x4): Likewise.
5964 (vld1q_s16_x4): Likewise.
5965 (vld1_s32_x4): Likewise.
5966 (vld1q_s32_x4): Likewise.
5967 (vld1_u8_x4): Likewise.
5968 (vld1q_u8_x4): Likewise.
5969 (vld1_u16_x4): Likewise.
5970 (vld1q_u16_x4): Likewise.
5971 (vld1_u32_x4): Likewise.
5972 (vld1q_u32_x4): Likewise.
5973 (vld1_f16_x4): Likewise.
5974 (vld1q_f16_x4): Likewise.
5975 (vld1_f32_x4): Likewise.
5976 (vld1q_f32_x4): Likewise.
5977 (vld1_p8_x4): Likewise.
5978 (vld1q_p8_x4): Likewise.
5979 (vld1_p16_x4): Likewise.
5980 (vld1q_p16_x4): Likewise.
5981 (vld1_s64_x4): Likewise.
5982 (vld1_u64_x4): Likewise.
5983 (vld1_p64_x4): Likewise.
5984 (vld1q_s64_x4): Likewise.
5985 (vld1q_u64_x4): Likewise.
5986 (vld1q_p64_x4): Likewise.
5987 (vld1_f64_x4): Likewise.
5988 (vld1q_f64_x4): Likewise.
5989 (vst1_s8_x4): Likewise.
5990 (vst1q_s8_x4): Likewise.
5991 (vst1_s16_x4): Likewise.
5992 (vst1q_s16_x4): Likewise.
5993 (vst1_s32_x4): Likewise.
5994 (vst1q_s32_x4): Likewise.
5995 (vst1_u8_x4): Likewise.
5996 (vst1q_u8_x4): Likewise.
5997 (vst1_u16_x4): Likewise.
5998 (vst1q_u16_x4): Likewise.
5999 (vst1_u32_x4): Likewise.
6000 (vst1q_u32_x4): Likewise.
6001 (vst1_f16_x4): Likewise.
6002 (vst1q_f16_x4): Likewise.
6003 (vst1_f32_x4): Likewise.
6004 (vst1q_f32_x4): Likewise.
6005 (vst1_p8_x4): Likewise.
6006 (vst1q_p8_x4): Likewise.
6007 (vst1_p16_x4): Likewise.
6008 (vst1q_p16_x4): Likewise.
6009 (vst1_s64_x4): Likewise.
6010 (vst1_u64_x4): Likewise.
6011 (vst1_p64_x4): Likewise.
6012 (vst1q_s64_x4): Likewise.
6013 (vst1q_u64_x4): Likewise.
6014 (vst1q_p64_x4): Likewise.
6015 (vst1_f64_x4): Likewise.
6016 (vst1q_f64_x4): Likewise.
6018 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6020 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6022 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6023 Richard Sandiford <richard.sandiford@arm.com>
6026 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6027 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6029 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6032 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6033 in reg if it fails aarch64_plus_operand predicate.
6035 2019-08-21 Richard Biener <rguenther@suse.de>
6037 PR tree-optimization/91482
6038 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6039 BUILT_IN_ASSUME_ALIGNED calls.
6041 2019-08-21 Richard Biener <rguenther@suse.de>
6045 * config/i386/i386-features.c
6046 (general_scalar_chain::make_vector_copies): Copy stack temporary
6047 rtx when using it multiple times.
6048 (general_scalar_chain::convert_reg): Likewise.
6050 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6052 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6054 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6056 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6057 catch more redundant zero initialization cases.
6058 (dse_dom_walker::dse_optimize_stmt): Likewise.
6060 2019-08-20 Richard Biener <rguenther@suse.de>
6063 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6064 by collect2 when targetm.have_ctors_dtors which avoids dragging
6065 in temporary filenames from LTO input objects.
6067 2019-08-20 Richard Biener <rguenther@suse.de>
6069 PR tree-optimization/37242
6070 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6071 to (T)a + (T)b if we know that a + b does not overflow.
6073 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6075 PR rtl-optimization/91347
6076 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6077 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6079 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6081 * calls.h (function_arg_info): Add a pass_by_reference field,
6082 defaulting to false.
6083 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6084 when applying pass-by-reference semantics.
6085 (initialize_argument_information): Likewise.
6086 (emit_library_call_value_1): Likewise.
6087 * function.c (assign_parm_data_one): Remove passed_pointer field.
6088 (assign_parm_find_data_types): Don't set it.
6089 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6090 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6091 arg.pass_by_reference instead of passed_pointer.
6093 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6095 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6096 into a single function_arg_info, updating its fields when we
6097 apply pass-by-reference and promotion semantics. Use the
6098 function_arg_info to track the mode rather than keeping it in
6099 a separate local variable.
6100 (initialize_argument_information): Likewise. Base the final
6101 arg_to_skip on this new function_arg_info rather than creating
6102 a new one from scratch.
6104 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6106 * function.c (assign_parm_data_one): Replace passed_type,
6107 promoted_mode and named_arg with a function_arg_info field.
6108 (assign_parm_find_data_types): Remove local variables and
6109 assign directly to "data". Make data->passed_mode shadow
6110 data->arg.mode until promotion, then assign the promoted
6111 mode to data->arg.mode.
6112 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6113 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6114 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6115 (assign_parm_setup_block, assign_parm_setup_reg)
6116 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6117 arg.mode instead of promoted_mode, arg.type instead of passed_type
6118 and arg.named instead of named_arg. Use data->arg for
6119 function_arg_info structures that had the field values passed_type,
6120 promoted_mode and named_arg. Base other function_arg_infos on
6121 data->arg, changing the necessary properties.
6123 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6125 * calls.h (apply_pass_by_reference_rules): Declare.
6126 * calls.c (apply_pass_by_reference_rules): New function.
6127 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6128 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6129 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6130 * function.c (assign_parm_find_data_types): Likewise.
6131 * var-tracking.c (prepare_call_arguments): Likewise.
6133 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6135 * target.def (must_pass_in_stack): Take a function_arg_info instead
6136 of a mode and a type.
6137 * doc/tm.texi: Regenerate.
6138 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6139 instead of a mode and a type.
6140 (must_pass_in_stack_var_size_or_pad): Likewise.
6141 * calls.c (must_pass_in_stack_var_size): Likewise.
6142 (must_pass_in_stack_var_size_or_pad): Likewise.
6143 (initialize_argument_information): Update call to
6144 targetm.calls.must_pass_in_stack.
6145 (must_pass_va_arg_on_stack): Likewise.
6146 * function.c (assign_parm_find_entry_rtl): Likewise.
6147 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6148 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6149 (alpha_function_arg_advance): Likewise.
6150 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6151 (cr16_function_arg_advance): Likewise.
6152 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6153 (cris_arg_partial_bytes): Likewise.
6154 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6155 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6156 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6157 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6158 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6159 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6160 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6161 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6162 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6163 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6164 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6165 instead of a mode and a type.
6166 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6167 (fr30_num_arg_regs): Likewise.
6168 (fr30_setup_incoming_varargs): Update calls accordingly.
6169 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6170 (fr30_function_arg_advance): Likewise.
6171 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6172 instead of a mode and a type.
6173 * config/gcn/gcn.c (num_arg_regs): Likewise.
6174 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6175 num_arg_regs and targetm.calls.must_pass_in_stack.
6176 (gcn_arg_partial_bytes): Likewise.
6177 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6178 function_arg_info instead of a mode and a type.
6179 (classify_argument): Update call accordingly.
6180 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6181 function_arg_info instead of a mode and a type.
6182 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6184 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6185 (rs6000_parm_needs_stack): Update call accordingly.
6186 (setup_incoming_varargs): Likewise.
6188 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6190 * target.def (callee_copies): Take a function_arg_info instead
6191 of a mode, type and named flag.
6192 * doc/tm.texi: Regenerate.
6193 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6194 instead of a mode, type and named flag.
6195 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6196 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6197 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6198 * targhooks.c (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 * calls.h (reference_callee_copied): Take a function_arg_info
6204 instead of a mode, type and named flag.
6205 * calls.c (reference_callee_copied): Likewise.
6206 (initialize_argument_information): Update call accordingly.
6207 (emit_library_call_value_1): Likewise.
6208 * function.c (gimplify_parameters): Likewise.
6209 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6210 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6211 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6212 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6213 (TARGET_CALLEE_COPIES): Define to
6214 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6215 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6216 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6217 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6218 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6219 instead of a mode, type and named flag.
6220 * config/mmix/mmix.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/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6224 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6225 (TARGET_CALLEE_COPIES): Define to
6226 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6227 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6228 instead of a mode, type and named flag.
6229 * config/sh/sh.c (sh_callee_copies): Likewise.
6230 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6231 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6232 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6234 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6236 * target.def (function_arg_advance): Take a function_arg_info instead
6237 of a mode, type and named flag.
6238 * doc/tm.texi: Regenerate.
6239 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6240 instead of a mode, type and named flag.
6241 * targhooks.c (default_function_arg_advance): Likewise.
6242 * calls.c (initialize_argument_information): Update call to
6243 targetm.calls.function_arg_advance.
6244 (emit_library_call_value_1): Likewise.
6245 * dse.c (get_call_args): Likewise.
6246 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6247 * function.c (assign_parms, gimplify_parameters): Likewise.
6248 * var-tracking.c (prepare_call_arguments): Likewise.
6249 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6250 function_arg_info instead of a mode, type and named flag.
6251 (aarch64_setup_incoming_varargs): Update call accordingly.
6252 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6253 function_arg_info instead of a mode, type and named flag.
6254 (alpha_setup_incoming_varargs): Update call accordingly.
6255 * config/arc/arc.c (arc_function_arg_advance): Take a
6256 function_arg_info instead of a mode, type and named flag.
6257 (arc_setup_incoming_varargs): Update call accordingly.
6258 * config/arm/arm.c (arm_function_arg_advance): Take a
6259 function_arg_info instead of a mode, type and named flag.
6260 (cmse_func_args_or_return_in_stack): Update call accordingly.
6261 (arm_function_ok_for_sibcall): Likewise.
6262 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6263 * config/avr/avr.c (avr_function_arg_advance): Take a
6264 function_arg_info instead of a mode, type and named flag.
6265 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6266 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6267 (c6x_call_saved_register_used): Update call accordingly.
6268 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6269 function_arg_info instead of a mode, type and named flag.
6270 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6271 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6272 (csky_setup_incoming_varargs): Update call accordingly.
6273 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6274 function_arg_info instead of a mode, type and named flag.
6275 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6276 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6277 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6278 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6279 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6280 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6281 (ix86_setup_incoming_varargs): Update call accordingly.
6282 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6283 function_arg_info instead of a mode, type and named flag.
6284 (ia64_setup_incoming_varargs): Update call accordingly.
6285 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6286 function_arg_info instead of a mode, type and named flag.
6287 (iq2000_expand_prologue): Update call accordingly.
6288 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6289 function_arg_info instead of a mode, type and named flag.
6290 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6291 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6292 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6293 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6294 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6296 (microblaze_expand_prologue): Update call accordingly.
6297 * config/mips/mips.c (mips_function_arg_advance): Take a
6298 function_arg_info instead of a mode, type and named flag.
6299 (mips_setup_incoming_varargs): Update call accordingly.
6300 (mips_output_args_xfer): Likewise.
6301 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6302 function_arg_info instead of a mode, type and named flag.
6303 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6304 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6305 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6306 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6307 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6308 (nios2_setup_incoming_varargs): Update call accordingly.
6309 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6310 function_arg_info instead of a mode, type and named flag.
6311 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6312 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6313 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6314 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6315 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6316 (riscv_setup_incoming_varargs): Update call accordingly.
6317 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6318 function_arg_info instead of a mode, type and named flag.
6319 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6321 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6322 (rs6000_parm_needs_stack): Update call accordingly.
6323 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6324 instead of a mode, type and named flag.
6325 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6326 (s390_call_saved_register_used): Update call accordingly.
6327 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6328 instead of a mode, type and named flag.
6329 (sh_output_mi_thunk): Update call accordingly.
6330 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6331 function_arg_info instead of a mode, type and named flag.
6332 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6333 (spu_setup_incoming_varargs): Update call accordingly.
6334 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6335 function_arg_info instead of a mode, type and named flag.
6336 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6337 (tilegx_setup_incoming_varargs): Update call accordingly.
6338 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6339 function_arg_info instead of a mode, type and named flag.
6340 (tilegx_setup_incoming_varargs): Update call accordingly.
6341 * config/v850/v850.c (v850_function_arg_advance): Take a
6342 function_arg_info instead of a mode, type and named flag.
6343 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6344 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6345 (visium_setup_incoming_varargs): Update call accordingly.
6346 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6347 function_arg_info instead of a mode, type and named flag.
6349 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6351 * target.def (function_arg, function_incoming_arg): Take a
6352 function_arg_info instead of a mode, tree and named flag.
6353 * doc/tm.texi: Regenerate.
6354 * targhooks.h (default_function_arg): Take a function_arg_info
6355 instead of a mode, tree and named flag.
6356 (default_function_incoming_arg): Likewise.
6357 * targhooks.c (default_function_arg): Likewise.
6358 (default_function_incoming_arg): Likewise.
6359 * calls.h (function_arg_info::end_marker_p): New function.
6360 (function_arg_info::end_marker): Likewise.
6361 * calls.c (prepare_call_address, initialize_argument_information)
6362 (expand_call, emit_library_call_value_1): Update calls to
6363 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6364 * dse.c: Include calls.h.
6365 (get_call_args): Update call to targetm.calls.function_arg.
6366 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6367 * var-tracking.c (prepare_call_arguments): Likewise.
6368 * function.c (assign_parm_find_entry_rtl): Update call to
6369 targetm.calls.function_incoming_arg.
6370 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6371 function_arg_info instead of a mode, tree and named flag.
6372 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6373 * config/arc/arc.c (arc_function_arg): Likewise.
6374 * config/arm/arm.c (arm_function_arg): Likewise.
6375 (cmse_func_args_or_return_in_stack): Update call accordingly.
6376 (arm_function_ok_for_sibcall): Likewise.
6377 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6378 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6379 instead of a mode, tree and named flag.
6380 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6381 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6382 (c6x_call_saved_register_used): Update call accordingly.
6383 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6384 instead of a mode, tree and named flag.
6385 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6386 (cris_function_arg_1): Likewise.
6387 * config/csky/csky.c (csky_function_arg): Likewise.
6388 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6389 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6390 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6391 (frv_function_arg_1): Likewise.
6392 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6393 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6394 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6395 * config/i386/i386.c (ix86_function_arg): Likewise.
6396 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6397 (ia64_function_arg_1): Likewise.
6398 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6399 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6401 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6402 instead of a mode, tree and named flag.
6403 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6404 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6405 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6406 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6407 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6408 (microblaze_expand_prologue): Update call accordingly.
6409 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6410 instead of a mode, tree and named flag.
6411 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6412 (mmix_function_arg_1): Likewise.
6413 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6414 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6415 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6416 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6417 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6418 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6419 (nvptx_function_incoming_arg): Likewise.
6420 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6421 * config/pa/pa.c (pa_function_arg): Likewise.
6422 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6423 * config/pru/pru.c (pru_function_arg): Likewise.
6424 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6425 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6426 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6427 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6428 (rs6000_parm_needs_stack): Update call accordingly.
6429 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6430 instead of a mode, tree and named flag.
6431 * config/s390/s390.c (s390_function_arg): Likewise.
6432 (s390_call_saved_register_used): Update call accordingly.
6433 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6434 instead of a mode, tree and named flag.
6435 (sh_output_mi_thunk): Update call accordingly.
6436 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6437 (sparc_function_incoming_arg): Take a function_arg_info instead of
6438 a mode, tree and named flag.
6439 * config/spu/spu.c (spu_function_arg): Likewise.
6440 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6441 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6442 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6443 * config/v850/v850.c (v850_function_arg): Likewise.
6444 * config/vax/vax.c (vax_function_arg): Likewise.
6445 * config/visium/visium.c (visium_function_arg): Likewise.
6446 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6447 (xtensa_function_incoming_arg): Likewise.
6449 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6451 * target.def (setup_incoming_varargs): Take a function_arg_info
6452 instead of a mode and tree.
6453 * doc/tm.texi: Regenerate.
6454 * targhooks.h (default_setup_incoming_varargs): Take a
6455 function_arg_info instead of a mode and tree.
6456 * targhooks.c (default_setup_incoming_varargs): Likewise.
6457 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6458 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6459 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6460 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6461 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6462 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6463 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6464 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6466 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6467 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6468 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6469 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6470 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6471 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6472 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6473 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6474 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6475 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6476 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6477 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6478 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6479 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6480 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6481 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6482 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6483 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6484 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6485 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6486 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6487 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6488 * function.c (assign_parms_setup_varargs): Update call to
6489 targetm.calls.setup_incoming_varargs.
6491 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6493 * target.def (pass_by_reference): Take a function_arg_info instead
6494 of a mode, type and named flag.
6495 * doc/tm.texi: Regenerate.
6496 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6498 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6499 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6500 function_arg_info instead of a mode, type and named flag.
6501 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6502 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6503 mode, type and named flag.
6504 * calls.c (pass_by_reference): Likewise.
6505 (pass_va_arg_by_reference): Update call accordingly.
6506 (initialize_argument_information): Likewise.
6507 (emit_library_call_value_1): Likewise.
6508 * function.c (assign_parm_find_data_types): Likewise.
6509 * var-tracking.c (prepare_call_arguments): Likewise.
6510 * stor-layout.c: Include calls.h.
6511 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6512 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6513 function_arg_info instead of a mode, type and named flag.
6514 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6515 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6516 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6517 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6518 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6519 (c6x_call_saved_register_used): Update call to pass_by_reference.
6520 * config/cris/cris.c (cris_pass_by_reference): Take a
6521 function_arg_info instead of a mode, type and named flag.
6522 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6523 function_arg_info instead of a mode, type and named flag.
6524 (epiphany_arg_partial_bytes): Update call accordingly.
6525 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6526 function_arg_info instead of a mode, type and named flag.
6527 (ft32_arg_partial_bytes): Update call accordingly.
6528 * config/i386/i386.c (ix86_pass_by_reference): Take a
6529 function_arg_info instead of a mode, type and named flag.
6530 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6531 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6532 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6533 (m32r_return_in_memory): Update call accordingly.
6534 * config/mips/mips.c (mips_pass_by_reference): Take a
6535 function_arg_info instead of a mode, type and named flag.
6536 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6537 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6538 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6539 (moxie_arg_partial_bytes): Update call accordingly.
6540 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6541 function_arg_info instead of a mode, type and named flag.
6542 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6543 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6544 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6545 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6546 (riscv_return_in_memory): Update call accordingly.
6547 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6548 function_arg_info instead of a mode, type and named flag.
6549 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6550 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6551 * config/s390/s390.c (s390_pass_by_reference): Take a
6552 function_arg_info instead of a mode, type and named flag.
6553 (s390_call_saved_register_used): Update call accordingly.
6554 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6555 instead of a mode, type and named flag.
6556 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6557 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6558 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6559 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6560 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6561 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6563 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6565 * target.def (arg_partial_bytes): Take a function_arg_info instead
6566 of a mode, type and named flag.
6567 * doc/tm.texi: Regenerate.
6568 * target.h (function_arg_info): Declare.
6569 * calls.h (function_arg_info): New class.
6570 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6571 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6572 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6573 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6574 * calls.c (initialize_argument_information): Update call to
6575 targetm.calls.partial_bytes.
6576 (emit_library_call_value_1): Likewise.
6577 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6578 * function.c (assign_parm_find_entry_rtl): Likewise.
6579 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6580 function_arg_info instead of a mode, type and named flag.
6581 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6582 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6583 (cmse_func_args_or_return_in_stack): Update accordingly.
6584 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6585 function_arg_info instead of a mode, type and named flag.
6586 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6587 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6588 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6589 * config/fr30/fr30.c: Include calls.h.
6590 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6591 type and named flag.
6592 * config/frv/frv.c: Include calls.h.
6593 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6594 type and named flag.
6595 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6596 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6597 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6598 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6599 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6600 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6601 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6603 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6604 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6605 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6606 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6607 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6608 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6609 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6610 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6611 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6612 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6613 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6614 (rs6000_parm_needs_stack): Update call accordingly.
6615 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6616 function_arg_info instead of a mode, type and named flag.
6617 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6618 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6620 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6622 * calls.h (must_pass_va_arg_in_stack): Declare.
6623 * calls.c (must_pass_va_arg_in_stack): New function.
6624 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6625 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6626 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6628 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6630 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6632 * calls.h (pass_va_arg_by_reference): Declare.
6633 * calls.c (pass_va_arg_by_reference): New function.
6634 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6635 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6636 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6637 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6638 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6639 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6640 (mips_gimplify_va_arg_expr): Likewise.
6641 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6642 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6643 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6644 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6645 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6646 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6647 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6648 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6649 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6650 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6651 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6653 2019-08-20 Richard Biener <rguenther@suse.de>
6656 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6657 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6658 (convert_scalars_to_vector): Add timode_p parameter and use it
6659 to guard TImode-only operation.
6660 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6661 (pass_stv::execute): Pass down timode_p.
6663 2019-08-20 Lili Cui <lili.cui@intel.com>
6665 * common/config/i386/i386-common.c
6666 (processor_names): Add tigerlake and cooperlake.
6667 (processor_alias_table): Add tigerlake and cooperlake.
6668 * config.gcc: Add -march=tigerlake and cooperlake.
6669 * config/i386/driver-i386.c
6670 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6671 Add "has_avx" to classify processor.
6672 * config/i386/i386-builtins.c (processor_model) :
6673 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6674 (arch_names_table): Add tigerlake and cooperlake.
6675 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6676 and PROCESSOR_COOPERLAKE.
6677 * config/i386/i386-c.c
6678 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6679 * config/i386/i386-options.c
6680 (m_TIGERLAKE) : Define.
6681 (m_COOPERLAKE) : Ditto.
6682 (m_CORE_AVX512): Ditto.
6683 (processor_cost_table): Add cascadelake.
6684 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6685 * config/i386/i386.h
6686 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6687 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6688 (PTA_MOVDIRI): Ditto.
6689 (PTA_MOVDIR64B): Ditto.
6690 (PTA_COOPERLAKE) : Ditto.
6691 (PTA_TIGERLAKE) : Ditto.
6692 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6693 * doc/extend.texi: Add tigerlake and cooperlake.
6694 * doc/invoke.texi: Add tigerlake and cooperlake.
6696 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6698 * doc/install.texi (Specific, alpha): Remove note to use
6699 binutils 2.11.2 or later.
6701 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6704 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6707 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6709 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6710 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6711 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6712 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6713 * config/aarch64/constraints.md (Dt): New constraint
6714 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6716 2019-08-19 Richard Biener <rguenther@suse.de>
6718 PR tree-optimization/91403
6719 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6720 cases we can handle with tail-recursion...
6721 (follow_ssa_edge_expr): ... here. Do so.
6723 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6726 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6727 implemented for -fsanitize=kernel-address, and merge check logic
6728 with -fsanitize=address.
6730 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6732 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6733 for cpu and machine. Factor 64/32b builtins.
6735 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6737 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6738 gone, point to sourceforge.net.
6740 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6742 * doc/ux.texi (User Experience Guidelines): Update reference.
6744 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6746 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6749 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6751 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6752 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6754 2019-08-16 Martin Sebor <msebor@redhat.com>
6756 * tree.def (TYPE_SIZE): Clarify.
6757 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6759 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6761 PR tree-optimization/91109
6762 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6763 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6764 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6766 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6768 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6769 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6770 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6771 (uavg<mode>3_ceil): New expander.
6772 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6773 mode iterator when creating CONST1_RTX.
6774 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6775 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6776 mode iterator for const1_operand predicate.
6778 2019-08-16 Richard Biener <rguenther@suse.de>
6780 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6781 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6783 (follow_ssa_edge_in_condition_phi_branch): Likewise.
6784 (analyze_evolution_in_loop): Likewise.
6785 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6786 (follow_ssa_edge_expr): ... here. Refactor code.
6788 2019-08-16 Richard Biener <rguenther@suse.de>
6791 * config/i386/i386-features.c
6792 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6794 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6797 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6798 only if subst_name matches curr_attr string.
6800 2019-08-16 Richard Biener <rguenther@suse.de>
6802 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6803 stmt at gsi_p, instead replace it with a NOP removed later.
6804 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6805 that became dead because of that.
6807 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
6809 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6810 for which we can't represent a range.
6811 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6813 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6814 Set VR_UNDEFINED if type is not supported.
6815 * tree-ssanames.c (get_range_info): Pass type to set_varying.
6816 * tree-vrp.c (value_range_base::check): Assert that a varying has
6818 (value_range_base::equal_p): Early bail for undefines.
6819 (value_range_base::set_varying): Accept a type.
6820 (value_range::set_varying): Same.
6821 (value_range_base::type): VARYING can have a type, while UNDEFINE
6823 (value_range_base::dump): Print type for VARYING nodes.
6824 (value_range_base::set): Add type to VARYING.
6825 (extract_range_from_multiplicative_op): Pass type to set_varying.
6826 (extract_range_from_binary_expr): Same.
6827 (value_range_base::intersect_helper): Same.
6828 (value_range_base::union_helper): Same.
6829 (value_range_base::normalize_symbolics): Same.
6830 (determine_value_range_1): Same.
6831 * tree-vrp.h (class value_range_base): Add type to set_varying.
6832 Add prototype for dump(void).
6833 Add prototype for supports_type_p.
6834 (class value_range): Add type to set_varying.
6835 Add prototype for dump(void).
6836 * vr-values.c (set_value_range_to_truthvalue): Pass type to
6838 (vr_values::get_lattice_entry): Set varying even if propagation
6840 Pass type to set_varying.
6841 (vr_values::get_value_range): Remove vr_const_varying.
6842 Reallocate the lattice if needed.
6843 (vr_values::update_value_range): Pass type to set_varying.
6844 (vr_values::extract_range_for_var_from_comparison_expr): Same.
6845 (vr_values::extract_range_from_binary_expr): Same.
6846 (vr_values::extract_range_from_unary_expr): Same.
6847 (vr_values::extract_range_from_cond_expr): Same.
6848 (vr_values::check_for_binary_op_overflow): Same.
6849 (vr_values::extract_range_basic): Same.
6850 (vr_values::extract_range_from_assignment): Same.
6851 (vr_values::vr_values): Increase size of num_vr_values.
6852 (vr_values::extract_range_from_phi_node): Pass type to
6855 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
6858 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
6859 for costs of hard register moves.
6860 (ix86_register_move_cost): Likewise.
6861 * config/i386/i386.h (processor_costs): Move costs of hard
6862 register moves to hard_register. Add int_load, int_store,
6863 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6864 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
6865 for costs of RTL expressions.
6866 * config/i386/x86-tune-costs.h: Move costs of hard register
6867 moves to hard_register. Duplicate int_load, int_store,
6868 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6869 sse_load, sse_store for costs of RTL expressions.
6871 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6873 * target.def (setup_incoming_vararg_bounds): Remove.
6874 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
6875 * doc/tm.texi: Regenerate.
6876 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
6877 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
6878 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6879 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6881 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6883 MSP430: Fix lines over 80 characters long in
6884 config/msp430/*.{c,h} files
6886 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
6887 specifier in string.
6888 (msp430_select_hwmult_lib): Split line more than 80 characters long.
6889 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
6890 redundant old comment.
6891 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
6892 Split line more than 80 characters long.
6893 * config/msp430/msp430.c (msp430_option_override): Likewise.
6894 (msp430_return_in_memory): Likewise.
6895 (msp430_gimplify_va_arg_expr): Likewise.
6896 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
6897 (msp430_legitimate_constant): Likewise.
6898 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
6899 (msp430_attr): Likewise.
6900 (msp430_data_attr): Likewise.
6901 (msp430_start_function): Likewise.
6902 (gen_prefix): Likewise.
6903 (msp430_init_sections): Likewise.
6904 (msp430_select_section): Likewise.
6905 (msp430_function_section): Likewise.
6906 (msp430_unique_section): Likewise.
6907 (msp430_output_aligned_decl_common): Likewise.
6908 (msp430_do_not_relax_short_jumps): Likewise.
6909 (msp430_init_builtins): Likewise.
6910 (msp430_expand_delay_cycles): Likewise.
6911 (msp430_expand_prologue): Likewise.
6912 (msp430_expand_epilogue): Likewise.
6913 (msp430_expand_helper): Likewise.
6914 (msp430_split_movsi): Likewise.
6915 (msp430_print_operand): Likewise.
6916 (msp430_return_addr_rtx): Likewise.
6917 (msp430x_extendhisi): Likewise.
6918 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
6919 (ASM_SPEC): Likewise.
6920 Remove very obvious comments.
6921 (LIB_SPEC): Split line more than 80 characters long.
6922 (EH_RETURN_HANDLER_RTX): Likewise.
6923 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6925 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6927 MSP430: Fix whitespace errors and incorrect indentation in
6928 config/msp430/*.{c,h} files
6930 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
6931 (msp430_select_hwmult_lib): Likewise.
6932 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
6933 (msp430_extract_mcu_data): Likewise.
6934 (struct t_msp430_mcu_data): Likewise.
6935 * config/msp430/msp430.c (struct machine_function): Remove whitespace
6936 before left square bracket.
6937 (msp430_option_override): Fix indentation.
6938 (msp430_hard_regno_nregs_with_padding): Likewise.
6939 (msp430_initial_elimination_offset): Likewise.
6940 (msp430_special_register_convention_p): Remove whitespace before left
6941 square bracket and after exclamation mark.
6942 (msp430_evaluate_arg): Likewise.
6943 (msp430_callee_copies): Fix indentation.
6944 (msp430_gimplify_va_arg_expr): Likewise.
6945 (msp430_function_arg_advance): Remove whitespace before left square
6947 (reg_ok_for_addr): Likewise.
6948 (msp430_preserve_reg_p): Likewise.
6949 (msp430_compute_frame_info): Likewise.
6950 (msp430_asm_output_addr_const_extra): Add space between function name
6951 and open parenthesis.
6952 (has_section_name): Fix indentation.
6953 (msp430_attr): Remove trailing whitespace.
6954 (msp430_section_attr): Likewise.
6955 (msp430_data_attr): Likewise.
6956 (struct msp430_attribute_table): Fix comment and whitespace.
6957 (msp430_start_function): Remove whitespace before left square bracket.
6958 Add space between function name and open parenthesis.
6959 (msp430_select_section): Remove trailing whitespace.
6960 (msp430_section_type_flags): Remove trailing whitespace.
6961 (msp430_unique_section): Remove space before closing parenthesis.
6962 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
6963 (msp430_builtins): Remove whitespace before left square bracket.
6964 (msp430_init_builtins): Fix indentation.
6965 (msp430_expand_prologue): Remove whitespace before left square bracket.
6966 Remove space before closing parenthesis.
6967 (msp430_expand_epilogue): Remove whitespace before left square bracket.
6968 (msp430_split_movsi): Remove space before closing parenthesis.
6969 (helper_function_name_mappings): Fix indentation.
6970 (msp430_use_f5_series_hwmult): Fix whitespace.
6971 (use_32bit_hwmult): Likewise.
6972 (msp430_no_hwmult): Likewise.
6973 (msp430_output_labelref): Remove whitespace before left square bracket.
6974 (msp430_print_operand_raw): Likewise.
6975 (msp430_print_operand_addr): Likewise.
6976 (msp430_print_operand): Add two spaces after '.' in comment.
6977 Fix trailing whitespace.
6978 (msp430x_extendhisi): Fix indentation.
6979 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
6981 (PC_REGNUM): Likewise.
6982 (STACK_POINTER_REGNUM): Likewise.
6983 (CC_REGNUM): Likewise.
6985 2019-08-15 Richard Biener <rguenther@suse.de>
6988 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
6990 (general_scalar_chain::make_vector_copies): Use it.
6992 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
6994 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
6996 2019-08-15 Martin Liska <mliska@suse.cz>
6998 * tree-ssa-dce.c (propagate_necessity): We can't reach now
6999 operators with no arguments.
7000 (eliminate_unnecessary_stmts): Likewise here.
7002 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7004 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7005 <case COMPARE>: Revert 2019-08-14 change.
7006 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7007 for (TARGET_64BIT || mode != DImode).
7009 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7011 * tree-vrp.c (value_range_base::set): Merge in code from
7012 value_range_base::set_and_canonicalize.
7013 Enforce canonicalization at set time.
7014 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7015 (value_range_base::set_undefined): Inline call to set().
7016 (value_range_base::set_varying): Same.
7017 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7018 (vrp_val_max): New argument handle_pointers.
7019 (vrp_val_min): Same.
7020 (ranges_from_anti_range): Same.
7021 (extract_range_into_wide_ints): Use tree argument instead of sign
7023 (extract_range_from_multiplicative_op): Take in tree type instead
7024 of precision and sign. Adapt function for canonicalized ranges.
7025 (extract_range_from_binary_expr): Pass type to
7026 extract_range_from_multiplicative_op.
7027 Adapt for canonicalized ranges.
7028 (extract_range_from_unary_expr): Same.
7029 (value_range_base::intersect_helper): Adjust for canonicalized
7031 (value_range_base::union_helper): Same.
7032 (value_range_base::normalize_symbolics): New.
7033 * tree-vrp.h (class value_range_base): Remove
7034 set_and_canonicalize.
7035 New prototype for normalize_symbolics.
7036 (class value_range): Remove set_and_canonicalize.
7037 (vrp_val_min): Adjust prototype.
7038 (vrp_val_max): Same.
7040 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7041 instead of set_and_canonicalize.
7043 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7046 * tree-vect-stmts.c (vectorizable_call): Check that the function
7047 is a BUILT_IN_MD function before passing it to
7048 targetm.vectorize.builtin_md_vectorized_function.
7050 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7052 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7053 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7054 (aarch64_select_early_remat_modes): Use it.
7056 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7058 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7059 16 for SVE predicates even if they are fixed-length.
7061 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7063 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7064 operand order match the MOV /Z alias.
7066 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7068 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7069 the vector pattern as an aarch64_svpattern argument. Update the
7070 overloaded caller accordingly.
7071 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7072 (aarch64_output_sve_vector_inc_dec): Likewise.
7074 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7076 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7077 multiplication case, try to compute VG * (lowest set bit) directly
7078 rather than always basing the multiplication on VG. Use
7079 expand_mult for the multiplication if we can.
7081 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7083 * config/aarch64/aarch64-protos.h
7084 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7085 (aarch64_sve_inc_dec_immediate_p): Rename to...
7086 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7087 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7088 (aarch64_output_sve_scalar_inc_dec): Declare.
7089 (aarch64_output_sve_inc_dec_immediate): Rename to...
7090 (aarch64_output_sve_vector_inc_dec): ...this.
7091 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7092 (aarch64_output_sve_scalar_inc_dec): New functions.
7093 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7094 arguments. Only handle true ADDVL and ADDPL instructions;
7095 don't emit an INC or DEC.
7096 (aarch64_sve_inc_dec_immediate_p): Rename to...
7097 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7098 (aarch64_output_sve_inc_dec_immediate): Rename to...
7099 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7100 aarch64_sve_vector_inc_dec_immediate_p.
7101 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7102 (aarch64_sve_plus_immediate): New predicates.
7103 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7104 rather than aarch64_sve_addvl_addpl_immediate.
7105 (aarch64_sve_inc_dec_immediate): Rename to...
7106 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7107 aarch64_sve_vector_inc_dec_immediate_p.
7108 (aarch64_sve_add_operand): Update accordingly.
7109 * config/aarch64/constraints.md (Uai): New constraint.
7110 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7111 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7112 operand into a register if it satisfies aarch64_sve_plus_immediate.
7113 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7114 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7115 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7116 aarch64_output_sve_vector_inc_dec instead of
7117 aarch64_output_sve_inc_dec_immediate.
7119 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7121 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7122 (UNSPEC_REVW): New constants.
7123 (elem_bits): New mode attribute.
7124 (SVE_INT_UNARY): New int iterator.
7125 (optab): Handle UNSPEC_REV[BHW].
7126 (sve_int_op): New int attribute.
7127 (min_elem_bits): Handle VNx16QI and the predicate modes.
7128 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7129 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7130 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7131 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7132 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7133 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7134 unspecs based on the total width of the reversed data.
7135 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7136 reinterpret followed by a subreg on big-endian targets.
7138 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7139 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7141 * config/aarch64/aarch64-sve.md
7142 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7143 alternatives in which one of the inputs is in the same register
7146 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7148 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7149 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7151 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7153 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7154 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7156 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7157 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7159 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7160 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7161 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7163 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7164 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7166 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7167 Add an alternative that uses reversed shifts.
7169 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7171 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7174 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7176 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7177 a commutativity marker.
7179 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7180 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7182 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7183 (aarch64_prepare_sve_cond_int_fma): Declare.
7184 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7185 (aarch64_prepare_sve_int_fma): New functions.
7186 (aarch64_prepare_sve_cond_int_fma): Likewise.
7187 * config/aarch64/aarch64-sve.md
7188 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7189 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7190 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7191 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7192 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7193 (*madd<mode>): Rename to...
7194 (*fma<mode>4): ...this.
7195 (*msub<mode>): Rename to...
7196 (*fnma<mode>4): ...this.
7198 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7199 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7201 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7202 Print 2.0 naturally.
7203 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7204 * config/aarch64/predicates.md
7205 (aarch64_sve_float_negated_arith_immediate): New predicate,
7206 renamed from aarch64_sve_float_arith_with_sub_immediate.
7207 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7208 positive and negative constants.
7209 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7210 or an aarch64_sve_float_arith_with_sub_immediate.
7211 * config/aarch64/constraints.md (vsN): Use
7212 aarch64_sve_float_negated_arith_immediate.
7213 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7215 (sve_pred_fp_rhs2_immediate): New int attribute.
7216 * config/aarch64/aarch64-sve.md
7217 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7218 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7219 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7220 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7221 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7222 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7224 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7225 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7227 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7228 (*aarch64_cond_abd<SVE_F:mode>_3)
7229 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7231 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7232 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7234 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7235 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7237 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7238 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7240 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7241 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7242 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7243 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7245 * optabs.h (create_convert_operand_from): Expand comment.
7246 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7247 when mapping scalar rtxes to vector operands.
7248 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7249 ashiftrt and lshiftrt.
7250 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7251 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7252 (*cond_<optab><mode>_any_const): New patterns.
7254 2019-08-15 Martin Liska <mliska@suse.cz>
7257 * cgraph.c (cgraph_node::remove): When setting
7258 n->origin = NULL for all nested functions, reset
7261 2019-08-15 Martin Liska <mliska@suse.cz>
7263 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7266 2019-08-15 Martin Liska <mliska@suse.cz>
7269 * passes.c (order): Remove.
7270 (uid_hash_t): Likewise).
7271 (remove_cgraph_node_from_order): Remove from set
7272 of pointers (cgraph_node *).
7273 (insert_cgraph_node_to_order): New.
7274 (duplicate_cgraph_node_to_order): New.
7275 (do_per_function_toporder): Register all 3 cgraph hooks.
7276 Skip removed_nodes now as we know about all of them.
7278 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7280 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7281 <case E_V8QImode>: Use vector_set path for
7282 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7283 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7284 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7286 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7288 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7290 2019-08-14 Martin Sebor <msebor@redhat.com>
7292 PR tree-optimization/91294
7293 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7294 source length as exact.
7296 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7298 * doc/extend.texi: Add "noinit" attribute documentation.
7299 * doc/sourcebuild.texi: Add noinit effective target documentation.
7300 * varasm.c (default_section_type_flags): Add support for "noinit"
7302 (default_elf_select_section): Add support for "noinit" attribute.
7303 * config/msp430/msp430.c (msp430_attribute_table): Remove
7306 2019-08-14 Richard Biener <rguenther@suse.de>
7307 Uroš Bizjak <ubizjak@gmail.com>
7310 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7312 (scalar_chain::smode): New member.
7313 (scalar_chain::vmode): Likewise.
7314 (dimode_scalar_chain): Rename to...
7315 (general_scalar_chain): ... this.
7316 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7317 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7318 base with TImode and V1TImode.
7319 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7320 (general_scalar_chain::vector_const_cost): Adjust for SImode
7322 (general_scalar_chain::compute_convert_gain): Likewise. Add
7323 {S,U}{MIN,MAX} support.
7324 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7325 (general_scalar_chain::make_vector_copies): Likewise. Handle
7326 non-DImode chains appropriately.
7327 (general_scalar_chain::convert_reg): Likewise.
7328 (general_scalar_chain::convert_op): Likewise.
7329 (general_scalar_chain::convert_insn): Likewise. Add
7330 fatal_insn_not_found if the result is not recognized.
7331 (convertible_comparison_p): Pass in the scalar mode and use that.
7332 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7333 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7334 (scalar_to_vector_candidate_p): Remove by inlining into single
7336 (general_remove_non_convertible_regs): Rename from
7337 dimode_remove_non_convertible_regs.
7338 (remove_non_convertible_regs): Remove by inlining into single caller.
7339 (convert_scalars_to_vector): Handle SImode and DImode chains
7340 in addition to TImode chains.
7341 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7342 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7343 (*<maxmin>di3_doubleword): Likewise.
7345 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7346 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7348 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7349 (*cond_bic<mode>_any): New patterns.
7351 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7353 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7354 take the equivalent mask, as well as a bit count.
7355 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7356 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7357 (aarch64_sve_pred_and_operand): New predicates.
7358 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7360 * config/aarch64/aarch64-sve.md
7361 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7362 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7364 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7366 * config/aarch64/aarch64-sve.md
7367 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7368 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7371 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7372 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7374 * config/aarch64/aarch64-sve.md
7375 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7376 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7378 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7379 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7381 * config/aarch64/aarch64-sve.md
7382 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7383 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7385 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7387 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7388 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7391 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7392 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7394 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7399 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7400 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7401 (aarch64_print_operand): Add support for %I.
7402 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7403 Bitcast floating-point constants to the corresponding integer constant.
7404 (aarch64_float_const_representable_p): Handle vectors as well
7406 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7407 for the new vcond_mask_<mode><vpred> expander.
7408 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7409 test aarch64_float_const_representable_p.
7410 (aarch64_sve_reg_or_dup_imm): New predicate.
7411 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7412 gen_vcond_mask_<mode><vpred> instead of
7413 gen_aarch64_sve_dup<mode>_const.
7414 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7415 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7416 for operands 1 and 2 respectively. Force operand 2 into a
7417 register if operand 1 is a register. Fold old define_insn...
7418 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7419 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7420 floating-point constants that can be moved as integers. Add
7421 alternatives for MOV /M and FMOV /M.
7422 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7423 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7424 1 and 2 respectively.
7425 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7427 (vss): New constraint.
7429 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7431 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7432 (aarch64_sve_float_maxmin_operand): New predicates.
7433 * config/aarch64/constraints.md (vsB): New constraint.
7435 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7436 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7438 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7439 Use aarch64_sve_float_maxmin_operand for operand 2.
7440 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7441 Add alternatives for the constant forms.
7443 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7445 * config/aarch64/constraints.md (vsb): New constraint.
7446 (vsm): Generalize description.
7447 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7449 (sve_imm_con): Handle smax, smin, umax and umin.
7450 (sve_imm_prefix): New code attribute.
7451 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7452 (aarch64_sve_vsb_operand): New predicates.
7453 (aarch64_sve_mul_immediate): Rename to...
7454 (aarch64_sve_vsm_immediate): ...this.
7455 (aarch64_sve_mul_operand): Rename to...
7456 (aarch64_sve_vsm_operand): ...this.
7457 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7458 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7459 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7460 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7461 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7462 add movprfx support for the immediate alternatives.
7463 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7465 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7468 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7470 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7471 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7472 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7474 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7476 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7477 (optab, sve_int_op): Handle them.
7478 * config/aarch64/aarch64-sve.md: Expand comment.
7480 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7482 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7483 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7484 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7486 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7488 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7489 (aarch64_expand_sve_const_pred_trn): New functions.
7490 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7491 use the above functions when the parameter is true.
7492 (aarch64_expand_sve_const_pred): Update call accordingly.
7493 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7495 (@aarch64_sve_<perm_insn><mode>): ...this.
7497 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7499 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7501 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7502 (aarch64_sve_emit_int_cmp): New functions.
7503 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7504 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7505 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7506 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7507 (UNSPEC_PRED_Z): New unspec.
7508 (set_clobber_cc_nzc): Delete.
7509 * config/aarch64/aarch64-sve.md: Add a block comment about
7511 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7512 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7513 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7515 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7516 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7517 check for compatible predicates.
7518 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7519 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7520 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7523 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7525 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7526 * config/aarch64/aarch64-sve.md: Add a section describing it.
7527 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7528 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7529 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7530 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7531 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7532 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7533 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7534 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7535 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7536 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7537 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7538 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7539 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7540 (aarch64_evpc_rev_local): Update accordingly.
7542 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7544 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7546 (SVE_BHSI, SVE_SDI): Tweak comment.
7547 (SVE_HSDI): Likewise. Fix definition.
7548 (SVE_SDF): New mode iterator.
7549 (elem_bits): New mode attribute.
7550 (SVE_COND_FCVT): New int iterator.
7551 * config/aarch64/aarch64-sve.md
7552 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7553 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7554 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7555 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7556 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7557 ...these new patterns.
7558 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7559 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7560 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7562 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7563 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7564 ...these new patterns.
7565 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7566 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7567 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7568 ...this new pattern.
7569 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7570 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7571 ...this new pattern.
7572 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7574 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7576 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7577 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7578 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7580 (optab, su): Handle them.
7581 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7582 * config/aarch64/aarch64-sve.md
7583 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7584 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7585 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7586 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7587 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7588 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7589 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7590 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7591 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7593 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7594 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7595 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7596 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7597 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7598 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7599 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7600 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7601 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7602 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7603 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7604 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7605 of UNSPEC_FLOAT_CONVERT.
7606 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7607 aarch64_sve_extend<mode><Vwide>2.
7609 2019-08-14 Richard Biener <rguenther@suse.de>
7612 * config/i386/i386-features.c
7613 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7614 individual instruction gain. Fix reg-reg copy GRP cost. Use
7615 ix86_cost->sse_op for vector instruction costs.
7617 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7619 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7620 (cmp_op): Handle it.
7621 (SVE_COND_FP_CMP): Rename to...
7622 (SVE_COND_FP_CMP_I0): ...this.
7623 (SVE_FP_CMP): Remove.
7624 * config/aarch64/aarch64-sve.md
7625 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7626 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7627 using unspecs to represent the comparison.
7628 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7629 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7631 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7632 (aarch64_unspec_cond_code): Move after integer code. Handle
7634 (aarch64_emit_sve_predicated_cond): Replace with...
7635 (aarch64_emit_sve_fp_cond): ...this new function.
7636 (aarch64_emit_sve_or_conds): Replace with...
7637 (aarch64_emit_sve_or_fp_conds): ...this new function.
7638 (aarch64_emit_sve_inverted_cond): Replace with...
7639 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7640 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7642 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7644 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7645 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7646 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7647 SVE_HSD instead of SVE_SD.
7649 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7650 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7652 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7654 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7656 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7657 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7658 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7659 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7660 (*div<SVE_F:mode>3): Generalize to...
7661 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7663 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7664 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7666 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7668 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7670 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7672 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7674 * config/aarch64/aarch64-sve.md: Add a block comment about the
7675 handling of predicated FP operations.
7676 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7677 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7678 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7679 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7680 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7682 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7683 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7685 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7686 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7687 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7688 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7689 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7690 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7691 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7692 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7693 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7694 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7695 strictness operands. Use aarch64_sve_pred_dominates_p to check
7696 whether the predicate on the conditional operation is suitable
7697 for merging. Split patterns into the canonical equal-predicate form.
7698 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7699 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7701 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7702 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7704 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7705 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7706 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7708 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7709 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7712 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7713 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7715 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7716 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7717 actually has, rather than relying on REG_EQUAL notes.
7718 Make the insn operand order match the SVE operand order.
7719 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7720 the SVE operand order.
7722 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7724 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7725 (aarch64_emit_set_immediate): Likewise.
7726 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7727 (aarch64_pfalse_reg): Likewise.
7728 (aarch64_convert_sve_data_to_pred): New function.
7729 (aarch64_sve_move_pred_via_while): Take an optional target register
7730 and the required register mode.
7731 (aarch64_expand_sve_const_pred_1): New function.
7732 (aarch64_expand_sve_const_pred): Likewise.
7733 (aarch64_expand_mov_immediate): Build an all-true predicate
7734 if the significant bits of the immediate are all true. Use
7735 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7736 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7737 before register allocation.
7738 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7739 a VNx16BI PTRUE when splitting the memory alternative.
7740 (vec_duplicate<mode>): Update accordingly.
7741 (*pred_cmp<cmp_op><mode>): Rename to...
7742 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7744 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7746 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7747 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7748 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7749 (UNSPEC_PTEST): New unspec.
7750 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7751 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7752 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7753 * config/aarch64/aarch64-sve.md: Add a new section describing the
7754 handling of UNSPEC_PTEST.
7755 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7756 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7757 (ptest_ptrue<mode>): Replace with...
7758 (aarch64_ptest<mode>): ...this new pattern.
7759 (cbranch<mode>4): Update after above changes.
7760 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7762 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7763 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7764 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7766 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7769 * builtins.c (builtin_with_linkage_p): New function.
7770 * builtins.h (builtin_with_linkage_p): New function.
7771 * symtab.c (write_symbol): Remove redundant assert.
7772 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7773 Remove FIXME and use builtin_with_linkage_p.
7775 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7778 * tree-core.h (function_decl::function_code): Change type to
7780 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7781 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7782 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7783 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
7785 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7786 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7787 (fndecl_built_in_p): Change the type of the "name" argument to
7789 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7790 after check for DECL_BUILT_IN_CLASS.
7791 * cgraphclones.c (build_function_decl_skip_args): Use
7792 set_decl_built_in_function.
7793 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7794 * ipa-split.c (split_function): Likewise.
7795 * langhooks.c (add_builtin_function_common): Likewise.
7796 * omp-simd-clone.c (simd_clone_create): Likewise.
7797 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7798 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7799 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7801 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7802 instead of DECL_FUNCTION_CODE.
7803 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7804 instead of DECL_FUNCTION_CODE.
7805 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7806 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7807 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
7808 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7809 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7810 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7811 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7812 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7813 (alpha_gimple_fold_builtin): Likewise.
7814 * config/arc/arc.c (arc_expand_builtin): Likewise.
7815 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7816 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7817 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7818 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7819 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7820 * config/frv/frv.c (frv_expand_builtin): Likewise.
7821 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7822 (gcn_expand_builtin): Likewise.
7823 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7824 (fold_builtin_cpu): Likewise.
7825 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7826 * config/i386/i386.c (ix86_fold_builtin): Likewise.
7827 (ix86_gimple_fold_builtin): Likewise.
7828 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7829 (ia64_expand_builtin): Likewise.
7830 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7831 * config/mips/mips.c (mips_expand_builtin): Likewise.
7832 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7833 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7834 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7835 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7836 * config/pa/pa.c (pa_expand_builtin): Likewise.
7837 * config/pru/pru.c (pru_expand_builtin): Likewise.
7838 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7839 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7841 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7842 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7843 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7844 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7845 (rs6000_builtin_reciprocal): Likewise.
7846 * config/rx/rx.c (rx_expand_builtin): Likewise.
7847 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7848 * config/s390/s390.c (s390_expand_builtin): Likewise.
7849 * config/sh/sh.c (sh_expand_builtin): Likewise.
7850 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7851 (sparc_fold_builtin): Likewise.
7852 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7853 * config/spu/spu.c (spu_expand_builtin): Likewise.
7854 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
7855 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
7856 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
7857 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7858 (xtensa_expand_builtin): Likewise.
7860 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7863 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
7864 before the DECL_FUNCTION_CODE.
7865 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
7866 to check for a BUILT_IN_ALLOCA call.
7867 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
7868 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
7869 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
7870 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7871 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
7872 for BUILT_IN_NORMAL functions.
7873 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
7874 test for BUILT_IN_TM_ABORT.
7875 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
7876 to check for a BUILT_IN_STACK_RESTORE call.
7877 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
7878 * tree-ssa-threadedge.c
7879 (record_temporary_equivalences_from_stmts_at_dest): Check for a
7880 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
7881 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
7882 test for a BUILT_IN_NORMAL call instead of a negative test for
7883 an internal function call.
7885 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7887 * tree.h (build_vector_a_then_b): Declare.
7888 * tree.c (build_vector_a_then_b): New function.
7889 * fold-const-call.c (fold_while_ult): Likewise.
7890 (fold_const_call): Use it to handle IFN_WHILE_ULT.
7891 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
7892 (aarch64_svpattern): New enum.
7893 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
7894 constants through aarch64_expand_mov_immediate.
7895 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
7896 than general_operand as the predicate for operand 1.
7897 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
7898 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
7900 (simd_immediate_info::simd_immediate_info): New overload that
7901 takes a scalar_int_mode and an svpattern.
7902 (simd_immediate_info::u): Add a "pattern" field.
7903 (svpattern_token): New function.
7904 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
7905 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
7906 (aarch64_sve_move_pred_via_while): New functions.
7907 (aarch64_expand_mov_immediate): Try using
7908 aarch64_sve_move_pred_via_while for predicates that contain N ones
7909 followed by M zeros but that do not correspond to a VLnnn pattern.
7910 (aarch64_sve_pred_valid_immediate): New function.
7911 (aarch64_simd_valid_immediate): Use it instead of dealing directly
7912 with PTRUE and PFALSE.
7913 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
7916 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
7918 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
7920 (darwin_override_options): Likewise.
7921 * config/darwin.h: Likewise.
7922 * config/darwin.opt: Likewise.
7923 * config/i386/i386.c (output_pic_addr_const): Likewise.
7924 * config/rs6000/darwin.h: Likewise.
7925 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
7926 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
7927 ... this TARGET_MACHO_SYMBOL_STUBS.
7928 (FUNCTION_PROFILER):Likewise.
7929 * config/i386/i386.h: Likewise.
7931 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
7933 * config/i386/i386-expand.c (ix86_expand_vector_extract)
7934 <case E_V2SImode>: Use vec_extr path for
7935 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7936 <case E_V8QImode>: Ditto.
7937 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
7938 Use SWI48 mode iterator. Use %k to output operand 0.
7939 (*mmx_pextrw): New insn pattern.
7940 (*mmx_pextrb): Ditto.
7941 (*mmx_pextrb_zext): Ditto.
7943 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
7945 * target.def (libc_has_function, libc_has_fast_function): Improve
7946 documentation strings.
7947 * doc/tm.texi: Regenerate.
7949 2019-08-13 Caroline Tice <cmtice@google.com>
7952 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
7953 vtv_end.o or vtv_end_preinit.o files if !static.
7955 2019-08-13 Olivier Hainque <hainque@adacore.com>
7957 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
7959 2019-08-13 Olivier Hainque <hainque@adacore.com>
7961 * rtlanal.c (tablejump_casesi_pattern): New function, to
7962 determine if a tablejump insn is a casesi dispatcher. Extracted
7963 from patch_jump_insn.
7964 * rtl.h (tablejump_casesi_pattern): Declare.
7965 * cfgrtl.c (patch_jump_insn): Use it.
7966 * dwarf2cfi.c (create_trace_edges): Use it.
7968 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
7971 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
7972 operand is larger than a long int.
7974 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7976 * machmode.h (opt_mode::else_mode): New function.
7977 (opt_mode::else_blk): Use it.
7978 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
7979 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
7980 (aarch64_gen_stepped_int_parallel): Likewise.
7981 (aarch64_stepped_int_parallel_p): Likewise.
7982 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7984 * config/aarch64/aarch64.c
7985 (aarch64_expand_sve_widened_duplicate): Delete.
7986 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
7987 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
7988 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7989 argument. Use early returns in the !CONST_INT_P handling.
7990 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
7991 than handling some inline.
7992 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
7994 (aarch64_simd_container_mode): ...here.
7995 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
7996 (aarch64_sve_ld1rq_operand_p): New functions.
7997 * config/aarch64/predicates.md (descending_int_parallel)
7998 (aarch64_sve_ld1rq_operand): New predicates.
7999 * config/aarch64/constraints.md (UtQ): New constraint.
8000 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8001 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8002 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8003 (@aarch64_sve_reinterpret<mode>): New expander.
8004 (*aarch64_sve_reinterpret<mode>): New pattern.
8005 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8006 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8007 (*sve_ld1rq<Vesize>): Replace with...
8008 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8010 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8012 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8015 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8017 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8018 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8019 (msp430_check_path_for_devices): New.
8020 (parse_devices_csv_1): New.
8021 (parse_devices_csv): New.
8022 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8023 MCU data in devices.csv before using the hard-coded data.
8024 Warn if devices.csv isn't found and the MCU wasn't found in the
8025 hard-coded data either.
8026 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8027 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8028 Search for devices.csv on -I and -L paths.
8029 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8030 msp430_set_driver_var.
8031 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8033 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8034 searched for devices.csv.
8035 (mwarn-devices-csv): Document option.
8037 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8039 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8040 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8041 Use a single Dn alternative instead of separate Dz and Dm
8042 alternatives. Use aarch64_output_sve_move_immediate.
8043 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8045 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8047 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8048 (aarch64_output_ptrue): Delete.
8050 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8052 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8054 (simd_immediate_info::value, simd_immediate_info::step)
8055 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8057 (simd_immediate_info::u): ...this new union.
8058 (simd_immediate_info::simd_immediate_info): Update accordingly.
8059 (aarch64_output_simd_mov_immediate): Likewise.
8060 (aarch64_output_sve_mov_immediate): Likewise.
8062 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8064 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8066 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8067 (msp430_select_cpu): New spec function.
8068 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8070 * config/msp430/msp430-devices.c: New file.
8071 * config/msp430/msp430-devices.h: New file.
8072 * config/msp430/msp430.c: Remove msp430_mcu_data.
8073 (msp430_option_override): Use msp430_extract_mcu_data to extract
8075 (msp430_use_f5_series_hwmult): Likewise.
8076 (use_32bit_hwmult): Likewise.
8077 (msp430_no_hwmult): Likewise.
8078 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8080 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8082 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8083 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8084 Remove hard-coded MCU multilib data.
8086 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8088 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8089 based on the mode instead of testing properties of it.
8091 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8093 * doc/md.texi: Document the x and y constraints for AArch64.
8094 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8095 (FP_LO8_REGS): New reg_class.
8096 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8097 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8098 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8099 * config/aarch64/predicates.md (aarch64_simd_register): Use
8100 FP_REGNUM_P instead of checking the classes manually.
8101 * config/aarch64/constraints.md (y): New constraint.
8103 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8105 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8106 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8107 * config/aarch64/aarch64-simd.md
8108 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8109 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8110 from the asm template.
8111 * config/aarch64/aarch64-sve.md
8112 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8113 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8114 from the asm template.
8115 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8116 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8117 from the asm template.
8118 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8120 2019-08-13 Martin Liska <mliska@suse.cz>
8122 * value-prof.c (gimple_ic_transform): Add new line.
8123 Print details with MSG_NOTE.
8125 2019-08-13 Martin Liska <mliska@suse.cz>
8127 * doc/invoke.texi: Document automatic detection of jobserver.
8128 * lto-wrapper.c (run_gcc): Detect jobserver always.
8130 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8132 * config/i386/i386-expand.c (ix86_expand_vector_set)
8133 <case E_V2SImode>: Use vec_merge path for
8134 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8135 <case E_V8QImode>: Ditto.
8136 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8137 (*mmx_pinsrb): Ditto.
8139 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8143 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8144 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8145 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8146 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8147 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8149 2019-08-12 Richard Biener <rguenther@suse.de>
8152 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8155 2019-08-12 Richard Biener <rguenther@suse.de>
8158 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8159 lang_mask option, always use CL_DRIVER.
8160 (get_options_from_collect_gcc_options): Adjust.
8161 (find_and_merge_options): Likewise.
8162 (run_gcc): Likewise.
8164 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8166 * ipa-predicate.c (add_condition): Restore inverted test.
8168 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8170 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8171 (enum omp_clause_device_type_kind): New enum.
8172 (struct tree_omp_clause): Add subcode.device_type_kind.
8173 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8174 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8175 for device_type clause.
8176 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8177 * tree-pretty-print.c (dump_omp_clause): Likewise.
8180 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8183 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8185 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8186 handling spilled pseudos.
8188 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8191 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8192 to preserve the contents of the original insns.
8194 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8196 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8197 (addsi3_compare_op2): Likewise.
8199 2019-08-09 Martin Liska <mliska@suse.cz>
8201 * alias.c (alias_ptr_types_compatible_p): Strengten
8202 type comparison in LTO mode.
8204 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8207 * tree-tailcall.c (find_tail_calls): Reject calls that might
8208 read from an escaped RESULT_DECL.
8210 2019-08-09 Martin Liska <mliska@suse.cz>
8212 * doc/invoke.texi: Document the option value.
8213 * lto-wrapper.c (run_gcc): Set auto_parallel
8214 only with -flto=auto.
8216 2019-08-09 Martin Liska <mliska@suse.cz>
8218 * opts.c (common_handle_option): Error for an invalid argument
8221 2019-08-09 Martin Liska <mliska@suse.cz>
8223 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8224 use dump_printf to report optimization.
8225 (sem_variable::merge): Likwise.
8226 (sem_item_optimizer::merge_classes): Use dump_printf to report
8229 2019-08-09 Martin Liska <mliska@suse.cz>
8231 * value-prof.c (gimple_divmod_fixed_value_transform):
8232 Use dump_printf_loc.
8233 (gimple_mod_pow2_value_transform): Likewise.
8234 (gimple_mod_subtract_transform): Likewise.
8235 (init_node_map): Likewise.
8236 (gimple_ic_transform): Likewise.
8237 (gimple_stringops_transform): Likewise.
8239 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8241 * doc/extend.texi: Add const qualifier to ld intrinsics.
8243 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8245 * config/rs6000/dfp.md (D64_D128): Rename to ...
8246 (DDTD): ... this, throughout.
8247 (dfp_suffix): Rename to ...
8248 (q): ... this, throughout.
8250 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8252 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8253 (dfp_suffix): Ditto.
8254 (adddd3, addtd3): Merge to ...
8255 (add<mode>3 for D64_D128): ... this.
8256 (subdd3, subtd3): Merge to ...
8257 (sub<mode>3 for D64_D128): ... this.
8258 (muldd3, multd3): Merge to ...
8259 (mul<mode>3 for D64_D128): ... this.
8260 (divdd3, divtd3): Merge to ...
8261 (div<mode>3 for D64_D128): ... this.
8262 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8263 (*cmp<mode>_internal1 for D64_D128): ... this.
8264 (ftruncdd2, ftrunctd2): Merge to ...
8265 (ftrunc<mode>2 for D64_D128): ... this.
8266 (fixdddi2, fixtddi2): Merge to ...
8267 (fix<mode>di2 for D64_D128): ... this.
8269 2019-08-08 Jim Wilson <jimw@sifive.com>
8272 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8273 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8274 Pass into recursive call.
8275 (riscv_flatten_aggregate_argument): New arg. Pass to
8276 riscv_flatten_aggregate_field.
8277 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8278 riscv_flatten_aggregate_argument twice, with false and true as last
8279 arg. Process result twice. Compare results and warn if different.
8280 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8282 2019-08-08 Martin Liska <mliska@suse.cz>
8285 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8286 * lto-wrapper.c (jobserver_active_p): Likewise.
8288 2019-08-08 Martin Liska <mliska@suse.cz>
8290 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8291 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8292 (create_version_clone_with_body): Likewise.
8294 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8296 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8297 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8298 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8299 GOVD_EXPLICIT flags.
8300 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8301 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8302 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8303 call install_var_field with mask 11 instead of 3.
8304 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8305 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8307 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8309 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8310 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8312 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8314 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8315 MOVPRFX alternatives. Make the GPR alternatives more expensive
8318 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8320 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8321 Disparage the GPR alternative relative to the FPR one.
8322 Fix handling of 8-bit and 16-bit FPR values.
8324 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8326 * config/aarch64/iterators.md (BITWISEV): Delete.
8327 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8328 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8329 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8330 UNSPEC_FMINNMV, UNSPEC_FMINV.
8331 (bit_reduc_op): Delete.
8332 (sve_int_op): New int attribute.
8333 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8334 UNSPEC_FMINNMV, UNSPEC_FMINV.
8335 * config/aarch64/aarch64-sve.md
8336 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8337 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8338 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8339 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8340 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8341 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8343 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8344 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8345 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8346 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8347 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8350 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8352 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8353 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8354 (fms<mode>4, *fms<mode>4): Replace with...
8355 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8356 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8357 Use unspecs instead of rtx codes.
8358 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8359 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8361 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8363 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8365 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8366 * config/aarch64/aarch64-sve.md
8367 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8368 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8369 use a single unspec for the rhs.
8370 (*<su><maxmin><mode>3): Delete.
8371 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8373 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8375 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8376 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8377 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8378 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8379 (optab, sve_fp_op): Handle them.
8380 (SVE_FP_UNARY): Delete.
8381 (optab): Remove sqrt entry.
8382 (sve_fp_op): Remove neg, abs and sqrt entries.
8383 (SVE_COND_FP_UNARY): New int iterator.
8384 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8385 (*<frint_pattern><mode>2): Delete.
8386 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8387 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8388 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8389 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8391 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8393 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8395 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8397 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8398 (UNSPEC_COND_FADD): ...this.
8399 (UNSPEC_COND_SUB): Rename to...
8400 (UNSPEC_COND_FSUB): ...this.
8401 (UNSPEC_COND_MUL): Rename to...
8402 (UNSPEC_COND_FMUL): ...this.
8403 (UNSPEC_COND_DIV): Rename to...
8404 (UNSPEC_COND_FDIV): ...this.
8405 (UNSPEC_COND_MAX): Rename to...
8406 (UNSPEC_COND_FMAXNM): ...this.
8407 (UNSPEC_COND_MIN): Rename to...
8408 (UNSPEC_COND_FMINNM): ...this.
8409 (UNSPEC_COND_LT): Rename to...
8410 (UNSPEC_COND_FCMLT): ...this.
8411 (UNSPEC_COND_LE): Rename to...
8412 (UNSPEC_COND_FCMLE): ...this.
8413 (UNSPEC_COND_EQ): Rename to...
8414 (UNSPEC_COND_FCMEQ): ...this.
8415 (UNSPEC_COND_NE): Rename to...
8416 (UNSPEC_COND_FCMNE): ...this.
8417 (UNSPEC_COND_GE): Rename to...
8418 (UNSPEC_COND_FCMGE): ...this.
8419 (UNSPEC_COND_GT): Rename to...
8420 (UNSPEC_COND_FCMGT): ...this.
8421 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8422 (sve_fp_op_rev): Update accordingly.
8423 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8425 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8427 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8429 * config/aarch64/check-sve-md.awk: New file.
8430 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8431 (insn-conditions.md): Depend on it.
8433 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8436 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8437 (*negsi2_cmpz_zext): Ditto.
8439 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8441 * config/aarch64/iterators.md (commutative): Remove.
8443 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8446 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8447 processing COLLECT_GCC_OPTIONS.
8448 (run_gcc): Likewise.
8450 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8452 PR tree-optimization/91109
8453 * lra-remat.c (update_scratch_ops): Remove assignment of the
8456 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8458 * data-streamer.h (streamer_write_poly_uint64): Declare.
8459 (streamer_read_poly_uint64): Likewise.
8460 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8461 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8462 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8463 (add_condition): Take a poly_int64 size.
8464 * ipa-predicate.c (add_condition): Likewise.
8465 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8466 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8467 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8468 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8469 condition::size as a poly_int64.
8470 (unmodified_parm_1): Take a poly_int64 size pointer.
8471 (unmodified_parm): Likewise.
8472 (unmodified_parm_or_parm_agg_item): Likewise.
8473 (set_cond_stmt_execution_predicate): Update accordingly.
8474 (set_switch_stmt_execution_predicate): Likewise.
8475 (will_be_nonconstant_expr_predicate): Likewise.
8476 (will_be_nonconstant_predicate): Likewise.
8477 (inline_read_section): Stream condition::size as a poly_int.
8478 (ipa_fn_summary_write): Likewise.
8480 2019-08-07 Martin Liska <mliska@suse.cz>
8482 * fold-const.c (twoval_comparison_p): Replace int
8483 with bool as a return type.
8484 (simple_operand_p): Likewise.
8485 (operand_equal_p): Replace int with bool as a return type.
8486 * fold-const.h (operand_equal_p): Likewise.
8488 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8490 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8491 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8492 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8493 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8494 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8495 * tree-pretty-print.c (dump_omp_clause): Likewise.
8496 * tree-nested.c (convert_nonlocal_omp_clauses,
8497 convert_local_omp_clauses): Likewise.
8498 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8500 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8501 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8502 clause with array or reference to array types, no matter what type
8503 except for reference it has.
8505 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8507 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8509 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8511 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8512 (arch_canonicalize): Support rv32g and rv64g and fix error
8515 2019-08-06 Martin Liska <mliska@suse.cz>
8517 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8518 and DECL_IS_OPERATOR_DELETE_P.
8520 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8522 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8523 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8524 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8525 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8526 (gimplify_omp_for): Don't do C++ random access iterator clause
8527 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8528 don't predetermine the artificial iterator in case of C++ random
8529 access iterators as lastprivate, but private. For OMP_LOOP, force
8530 bind expr around simd body and force for_pre_body before the
8531 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8532 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8533 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8534 diff var of C++ random access iterators. Handle
8535 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8536 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8537 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8538 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8539 * omp-low.c (lower_rec_input_clauses): For
8540 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8541 variables instead of default constructing them.
8542 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8543 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8544 is_taskloop_ctx check from the assert to the guarding condition.
8546 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8548 * config/riscv/multilib-generator: (canonical_order): New.
8549 (arch_canonicalize): Dito.
8550 Apply arch_canonicalize for alts.
8552 2019-08-05 Martin Sebor <msebor@redhat.com>
8554 * doc/extend.texi (Common Variable Attributes): Document alias
8557 2019-08-05 Marek Polacek <polacek@redhat.com>
8559 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8560 * doc/invoke.texi: Document -Wcomma-subscript.
8562 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8564 * tree-core.h (tree_function_decl): Make function_code an
8565 independent field. Group the remaining bitfields into bytes
8566 and move decl_type so that it contines to be at a byte boundary.
8567 Leave 12 bits for future expansion.
8569 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8571 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8572 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8573 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8576 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8578 * gimple.h (gimple_move_vops): Declare.
8579 * gimple.c (gimple_move_vops): New function
8580 * gimple-fold.c (replace_call_with_call_and_fold)
8581 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8582 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8583 (gimple_fold_call): Use it.
8584 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8585 * tree-call-cdce.c (use_internal_fn): Likewise.
8586 * tree-if-conv.c (predicate_load_or_store): Likewise.
8587 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8588 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8589 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8590 (update_call_from_tree): Likewise.
8591 * tree-vect-stmts.c (vectorizable_load): Likewise.
8592 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8594 2019-08-05 Martin Liska <mliska@suse.cz>
8597 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8599 (eliminate_unnecessary_stmts): Likewise.
8601 2019-08-05 Richard Biener <rguenther@suse.de>
8604 * fold-const.c (get_array_ctor_element_at_index): Create
8605 offset_ints according to the sign of the index type and treat
8606 that as signed if it is obviously so.
8608 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8611 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8612 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8613 _mm256_storeu2_m128i): New function.
8615 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8617 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8618 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8620 2019-08-05 Alan Modra <amodra@gmail.com>
8623 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8624 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8626 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8628 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8629 bug that was fixed in Tcl 8.6.1.
8631 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8633 * config/rs6000/future.md: New file.
8634 * config/rs6000/rs6000.md: Include future.md.
8635 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8637 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8639 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8640 check to use targetm.slow_unaligned_access instead.
8642 * function.c (assign_param_data_one): Remove unused data members.
8644 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8646 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8647 build_distinct_type_copy.
8648 (simd_clone_adjust_argument_types): Ditto.
8649 (simd_clone_adjust): Call build_distinct_type_copy here.
8650 (expand_simd_clones): Ditto.
8652 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8655 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8657 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8659 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8660 from 'const void *'.
8661 (sort_locs_in_loop_postorder_cmp): Likewise.
8663 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8665 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8666 (hot-bb-count-ws-permille): Likewise.
8667 (hot-bb-frequency-fraction): Likewise.
8668 (unlikely-bb-count-fraction): Likewise.
8669 * params.def (hot-bb-count-fraction): Rework description.
8670 (hot-bb-count-ws-permille): Likewise.
8671 (hot-bb-frequency-fraction): Likewise.
8672 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8673 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8675 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8678 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8681 2019-08-02 Richard Biener <rguenther@suse.de>
8683 * vec.h (vec::sort): Add gcc_qsort_r support.
8684 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8685 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8686 to gcc_qsort_r style callback.
8687 (sort_locs_in_loop_postorder_cmp): Likewise.
8688 (analyze_memory_references): Use gcc_sort_r interfaces.
8689 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8691 2019-08-02 Martin Liska <mliska@suse.cz>
8694 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8695 to detect working job server.
8696 (driver::detect_jobserver): Test whether jobserver
8697 is active from GCC driver. That will prevent situation where
8698 GCC is invoked from a LD plugin and the linker already uses
8699 file descriptors suggested by make. That leads to a wrong
8701 * gcc.h (driver): Add detect_jobserver.
8702 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8703 not scanning for --jobserver-auth prefix.
8705 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8707 PR tree-optimization/91201
8708 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8709 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8712 2019-08-01 Martin Sebor <msebor@redhat.com>
8715 * tree.c (type_initializer_zero_p): Define.
8716 * tree.h (type_initializer_zero_p): New function.
8718 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8720 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8722 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8724 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8725 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8726 * predict.c (maybe_hot_count_p): Likewise.
8727 (maybe_hot_bb_p): Tweak comment.
8728 (maybe_hot_edge_p): Likewise.
8729 (probably_never_executed): Likewise. Minor tweak.
8730 (probably_never_executed_bb_p): Likewise.
8731 (unlikely_executed_edge_p): Likewise.
8732 (probably_never_executed_edge_p): Likewise.
8733 (optimize_function_for_size_p): Likewise.
8734 (optimize_function_for_speed_p): Likewise.
8735 (function_optimization_type): Likewise.
8736 (optimize_bb_for_size_p): Likewise.
8737 (optimize_bb_for_speed_p): Likewise.
8738 (bb_optimization_type): Likewise.
8739 (optimize_edge_for_size_p): Likewise.
8740 (optimize_edge_for_speed_p): Likewise.
8741 (optimize_insn_for_size_p): Likewise.
8742 (optimize_insn_for_speed_p): Likewise.
8743 (optimize_loop_for_size_p): Likewise.
8744 (optimize_loop_for_speed_p): Likewise.
8745 (optimize_loop_nest_for_speed_p): Likewise.
8746 (optimize_loop_nest_for_size_p): Likewise.
8747 (predictable_edge_p): Likewise.
8748 (handle_missing_profiles): Minor tweak.
8750 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8752 * config/rs6000/predicates.md (pcrel_external_address): Update
8755 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8758 * config/i386/mmx.md (usadv8qi): New expander.
8760 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8763 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8764 with reserved names that are in a system header.
8766 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8768 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8769 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8770 (*vec_extractv2si_0_zext): Ditto.
8771 (*vec_extractv2si_1): Add (rm,x) alternative.
8772 (*vec_extractv2si_1_zext): New insn pattern.
8773 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8776 2019-08-01 Richard Biener <rguenther@suse.de>
8778 * domwalk.c (bb_postorder): Remove static variable.
8779 (cmp_bb_postorder): Adjust.
8780 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8781 (dom_walker::walk): Adjust.
8783 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
8785 * sort.cc (sort_r_ctx): New struct.
8786 (reorder23): Make templated on context type.
8788 (cmp1): Ditto. Adjust signature.
8791 [CHECKING_P] (cmp2to3): New static function. Use it...
8792 (gcc_qsort) [CHECKING_P]: ...here.
8793 (gcc_sort_r): New function.
8794 * system.h (sort_r_cmp_fn): New function typedef.
8795 (qsort_chk): Adjust signature.
8796 (gcc_sort_r): Declare.
8797 * vec.c (qsort_chk_error): Adjust.
8798 (qsort_chk): Adjust.
8800 2019-08-01 Richard Biener <rguenther@suse.de>
8802 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8803 (compute_antic): Localize it here.
8805 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
8807 * common/config/riscv/riscv-common.c: Check -march string ends
8810 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
8812 * ipa-devirt.c (type_warning_cmp): Make static.
8813 (decl_warning_cmp): Ditto.
8815 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
8818 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8819 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8820 use of deleted rs6000_dejagnu_cpu_index variable.
8821 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8822 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8823 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8824 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8825 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8826 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8828 2019-07-31 Richard Biener <rguenther@suse.de>
8830 PR tree-optimization/91280
8831 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8832 Decompose MEM_REF manually for offset handling.
8834 2019-07-31 Richard Biener <rguenther@suse.de>
8836 PR tree-optimization/91293
8837 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8840 2019-07-31 Matt Thomas <matt@3am-software.com>
8841 Nick Hudson <nick@nthcliff.demon.co.uk>
8842 Matthew Green <mrg@eterna.com.au>
8843 Maya Rashish <coypu@sdf.org>
8845 * config.gcc (hppa*-*-netbsd*): New target.
8846 * config/pa/pa-netbsd.h: New file.
8847 * config/pa/pa32-netbsd.h: New file.
8849 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8851 PR tree-optimization/91201
8852 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
8854 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
8856 * config/gcn/gcn-valu.md
8857 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
8858 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
8859 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8860 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
8861 struct ilist. Add nops for delayeduse insns.
8862 * config/gcn/gcn.md (delayeduse): New attribute.
8863 (*movbi): Remove s_waitcnt from stores.
8864 (*mov<mode>_insn): Likewise.
8865 (*movti_insn): Likewise. Add delayeduse attribute.
8866 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
8867 (atomic_store<mode>): Remove or adjust s_waitcnt.
8869 2019-07-31 Richard Biener <rguenther@suse.de>
8871 * vr-values.h (vr_values::swap_vr_value): New.
8872 (vr_values::free_value_range): likewise.
8873 * vr-values.c (vr_values::swap_vr_value): Implement.
8874 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
8875 Do not return a range or take a var.
8876 (evrp_range_analyzer::stack): Change back to recording a non-const
8878 * gimple-ssa-evrp-analyze.c
8879 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
8881 (evrp_range_analyzer::pop_to_marker): Adjust.
8882 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
8883 (evrp_range_analyzer::pop_value_range): Likewise. Free the
8884 no longer needed value-range.
8886 2019-07-31 Martin Liska <mliska@suse.cz>
8888 * tree-ssa-dce.c (propagate_necessity): Delete operator can
8889 have size and (or) alignment as 2nd and later arguments.
8890 Mark all of them as necessary.
8892 2019-07-31 Richard Biener <rguenther@suse.de>
8894 PR tree-optimization/91178
8895 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8898 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8900 PR tree-optimization/91201
8901 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
8902 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
8904 (reduc_plus_scal_<mode>): Improve formatting by introducing
8907 2019-07-31 Sudakshina Das <sudi.das@arm.com>
8909 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
8910 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
8911 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
8912 (aarch64_init_tme_builtins): New.
8913 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
8914 (aarch64_expand_builtin_tme): New.
8915 (aarch64_expand_builtin): Handle TME builtins.
8916 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8917 __ARM_FEATURE_TME when enabled.
8918 * config/aarch64/aarch64-option-extensions.def: Add "tme".
8919 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
8921 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
8922 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
8924 (tstart, ttest, tcommit, tcancel): New instructions.
8925 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
8926 (__tcancel, __ttest): New.
8927 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
8928 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
8929 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
8930 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
8931 * config/arm/types.md: Add new tme type attr.
8932 * doc/invoke.texi: Document "tme".
8934 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
8936 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
8937 warn_unused_result attribute.
8938 (cmse_check_address_range): Add warn_unused_result attribute.
8940 2019-07-31 Richard Biener <rguenther@suse.de>
8942 PR tree-optimization/91257
8943 * tree-vrp.c (union_ranges): Unify equality and less tests
8944 by using compare_values. Re-order cheap tests first.
8946 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8949 * gimplify.c (gimplify_omp_for): If for class iterator on
8950 distribute parallel for there is no data sharing clause
8951 on inner_for_stmt, look for private clause on combined
8952 parallel too and if found, move it to inner_for_stmt.
8954 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
8956 * lra-int.h (lra_operand_data): Remove early_clobber field.
8957 (lra_insn_reg): Likewise.
8958 * lra.c (debug_operand_data): Update accordingly.
8959 (setup_operand_alternative): Likewise.
8960 (new_insn_reg): Likewise. Remove early_clobber parameter.
8961 (collect_non_operand_hard_regs): Update call accordingly.
8962 Don't assign to lra_insn_reg::early_clobber.
8963 (add_regs_to_insn_regno_info): Remove early_clobber parameter
8964 and update calls to new_insn_reg.
8965 (lra_update_insn_regno_info): Update calls accordingly.
8966 * lra-constraints.c (update_and_check_small_class_inputs): Take the
8967 alternative number as a parameter and test whether the operand
8968 is earlyclobbered in that particular alternative.
8969 (process_alt_operands): Update call accordingly. Use per-alternative
8970 checks for earyclobber here too.
8971 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
8972 against zero for IRA_UNKNOWN_ALT.
8974 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
8976 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
8978 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
8980 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
8981 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8983 2019-07-30 Martin Liska <mliska@suse.cz>
8986 * cgraph.c (cgraph_edge::make_direct): Use
8987 edge->indirect_unknown_callee as edge->resolve_speculation can
8988 deallocate edge which is this pointer.
8990 2019-07-30 Richard Biener <rguenther@suse.de>
8992 PR tree-optimization/91257
8993 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
8995 2019-07-30 Martin Liska <mliska@suse.cz>
8997 * doc/invoke.texi: Document new behavior.
8998 * lto-wrapper.c (cpuset_popcount): New function
8999 is a copy of libgomp/config/linux/proc.c.
9000 (init_num_threads): Likewise.
9001 (run_gcc): Automatically detect core count for -flto.
9002 (jobserver_active_p): New function.
9004 2019-07-30 Richard Biener <rguenther@suse.de>
9006 PR tree-optimization/91257
9007 * bitmap.h (bitmap_ior_into_and_free): Declare.
9008 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9009 whether to add the unliked element to the freelist.
9010 (bitmap_list_insert_element_after): Add defaulted param for
9011 an already allocated element.
9012 (bitmap_ior_into_and_free): New function.
9013 * tree-ssa-structalias.c (condense_visit): Reduce the
9014 ponts-to and edge bitmaps of the SCC members in a
9015 logarithmic fashion rather than all to one.
9017 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9019 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9020 parameter. When nonnull, make sure that the addition or subtraction
9021 has the same condition.
9022 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9023 for CFN_COND_MUL too.
9025 2019-07-30 Richard Biener <rguenther@suse.de>
9027 PR tree-optimization/91291
9028 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9031 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9034 * omp-low.c (global_nonaddressable_vars): New variable.
9035 (use_pointer_for_field): For global decls, if they are non-addressable,
9036 remember it in the global_nonaddressable_vars bitmap, if they are
9037 addressable and in the global_nonaddressable_vars bitmap, ignore their
9038 TREE_ADDRESSABLE bit.
9039 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9040 vars in global_nonaddressable_vars bitmap.
9041 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9044 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9045 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9046 comparison to unsigned HOST_WIDE_INT before shifting it left.
9048 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9050 * config/i386/i386.md (movstrict<mode>): Use register_operand
9051 predicate for operand 0. Add expander condition. Assert that
9052 operand 0 is a SUBREG RTX.
9053 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9054 Update operand constraints and insn condition.
9055 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9056 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9057 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9058 Update operand 0 constraints.
9059 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9061 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9063 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9064 when -m{code,data}-region are used without -mlarge.
9065 * config/msp430/msp430.c (msp430_option_override): Error when a
9066 non-default code or data region is used without -mlarge.
9067 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9068 attributes when they are used without -mlarge.
9070 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9073 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9075 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9078 * wide-int.h (generic_wide_int::sext_elt): New function.
9079 * inchash.h (hash::add_wide_int): Use it instead of elt.
9081 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9083 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9085 * config/arm/arm.md (<crc_variant>): Rename to...
9086 (arm_<crc_variant>): ... This.
9087 (<cdp>): Rename to...
9088 (arm_<cdp>): ... This.
9089 (<ldc>): Rename to...
9090 (arm_<ldc>): ... This.
9091 (<stc>): Rename to...
9092 (arm_<stc>): ... This.
9093 (<mcr>): Rename to...
9094 (arm_<mcr>): ... This.
9095 (<mrc>): Rename to...
9096 (arm_<mrc>): ... This.
9097 (<mcrr>): Rename to...
9098 (arm_<mcrr>): ... This.
9099 (<mrrc>): Rename to...
9100 (arm_<mrrc>): ... This.
9102 2019-07-29 Richard Biener <rguenther@suse.de>
9104 PR tree-optimization/91257
9105 * tree-ssa-sccvn.h (struct vn_avail): New.
9106 (struct vn_ssa_aux): Add avail member.
9107 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9108 member, add m_avail_freelist one.
9109 (rpo_elim::~rpo_elim): Remove.
9110 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9112 (rpo_elim::eliminate_push_avail): Likewise.
9113 (do_unwind): Likewise.
9114 (do_rpo_vn): Likewise.
9116 2019-07-29 Richard Biener <rguenther@suse.de>
9118 PR tree-optimization/91257
9119 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9120 most cases, instead call compare_values which handles the
9121 symbolic ranges we handle specially.
9122 (compare_values_warnv): Do not call operand_less_p but open-code
9123 the effective fold calls. Avoid converting so much.
9125 2019-07-29 Martin Liska <mliska@suse.cz>
9127 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9128 remove LHS of operator new call. It's handled latter.
9130 2019-07-29 Richard Biener <rguenther@suse.de>
9132 PR tree-optimization/91267
9133 * vr-values.c (vr_values::update_value_range): Add early return
9134 for effectively VARYING lattice entry.
9136 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9139 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9140 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9141 necessary if keep_all_vdefs_p is true.
9142 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9143 that keep_all_vdefs_p is false.
9144 (mark_all_reaching_defs_necessary): Likewise.
9145 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9147 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9149 * common.opt (Og): Change the initial value of flag_dse to 0.
9150 * opts.c (default_options_table): Move OPT_ftree_dse from
9151 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9152 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9153 entry before the OPT_ftree_sra entry.
9154 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9155 of flags disabled by Og.
9157 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9159 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9162 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9164 * doc/sourcebuild.texi (check-function-bodies): Document.
9166 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9168 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9169 VEC_DUPLICATE of a fixed-length vector even if the result
9170 is variable-length. Likewise fold a duplicate of a
9171 variable-length vector if the variable-length vector is
9172 itself a duplicate of a fixed-length sequence.
9173 (test_vector_ops_duplicate): Test more cases.
9175 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9177 * vector-builder.h (vector_builder): Add a shape template parameter.
9178 (vector_builder::new_unary_operation): New function, generalizing
9179 the old tree_vector_builder function.
9180 (vector_builder::new_binary_operation): Likewise.
9181 (vector_builder::binary_encoded_nelts): Likewise.
9182 * int-vector-builder.h (int_vector_builder): Update template
9183 parameters to vector_builder.
9184 (int_vector_builder::shape_nelts): New function.
9185 * rtx-vector-builder.h (rtx_vector_builder): Update template
9186 parameters to vector_builder.
9187 (rtx_vector_builder::shape_nelts): New function.
9188 (rtx_vector_builder::nelts_of): Likewise.
9189 (rtx_vector_builder::npatterns_of): Likewise.
9190 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9191 * tree-vector-builder.h (tree_vector_builder): Update template
9192 parameters to vector_builder.
9193 (tree_vector_builder::shape_nelts): New function.
9194 (tree_vector_builder::nelts_of): Likewise.
9195 (tree_vector_builder::npatterns_of): Likewise.
9196 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9197 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9198 (tree_vector_builder::new_binary_operation): Delete.
9199 (tree_vector_builder::binary_encoded_nelts): Likewise.
9200 * simplify-rtx.c: Include rtx-vector-builder.h.
9201 (distributes_over_addition_p): New function.
9202 (simplify_const_unary_operation)
9203 (simplify_const_binary_operation): Generalize handling of vector
9204 constants to include variable-length vectors.
9205 (test_vector_ops_series): Add more tests.
9207 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9210 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9211 than INDENTIFIER_POINTER.
9213 2019-07-28 Martin Liska <mliska@suse.cz>
9216 * cgraph.c (symbol_table::create_edge): Always allocate
9218 (symbol_table::free_edge): Store summary_id to
9219 edge_released_summary_ids if != -1;
9220 * cgraph.h (NEXT_FREE_NODE): Remove.
9221 (SET_NEXT_FREE_NODE): Likewise.
9222 (NEXT_FREE_EDGE): Likewise.
9223 (symbol_table::release_symbol): Store summary_id to
9224 cgraph_released_summary_ids if != -1;
9225 (symbol_table::allocate_cgraph_symbol): Always allocate
9228 2019-07-28 Alan Modra <amodra@gmail.com>
9230 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9233 2019-07-28 Alan Modra <amodra@gmail.com>
9236 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9238 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9239 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9240 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9242 2019-07-28 Alan Modra <amodra@gmail.com>
9245 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9246 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9247 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9248 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9249 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9250 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9251 in asm_default spec.
9252 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9253 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9255 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9257 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9259 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9262 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9263 * config/aarch64/aarch64-option-extensions.def: Add new comments
9264 and restore easier to read options.
9266 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9268 * convert.c (convert_to_real_1): Move part of conversion code...
9269 * match.pd: ...To here.
9271 2019-07-26 Martin Jambor <mjambor@suse.cz>
9274 * ipa-inline-transform.c (check_speculations_1): New function.
9275 (push_all_edges_in_set_to_vec): Likewise.
9276 (check_speculations): Use check_speculations_1, new parameter
9278 (inline_call): Pass new_edges to check_speculations.
9279 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9281 (speculation_useful_p): Early return true if edge is inlined, remove
9282 later checks for inline_failed.
9284 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9286 PR rtl-optimization/91223
9287 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9288 matching with INOUT operand.
9290 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9292 * stmt.c (expand_case): Try to narrow the index type if it's larger
9293 than a word. Tidy up.
9295 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9297 * cif-code.def (NEVER_CALL): New code.
9298 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9299 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9301 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9303 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9304 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9306 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9308 * ipa-devirt.c (add_type_duplicate): Fix return value.
9310 2019-07-25 Richard Biener <rguenther@suse.de>
9312 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9313 type parameter and use it instead of guessing expression
9314 type from the first operand.
9315 (extract_range_from_binary_expr): Pass expr_type down.
9317 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9319 * config/arm/arm.md (SATrev): Change to code attribute.
9320 (*satsi_<SAT:code>): Adjust for the above.
9321 (*satsi_<SAT:code>_shift): Likewise.
9323 2019-07-25 Richard Biener <rguenther@suse.de>
9325 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9326 Make value_range * temporary const.
9327 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9329 (evrp_range_analyzer::record_ranges_from_): Likewise.
9330 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9331 deal with having recorded a const one.
9332 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9333 Return a const value_range *.
9334 (evrp_range_analyzer::pop_value_range): Likewise.
9335 (evrp_range_analyzer::stack): Record const value_range *s.
9336 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9338 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9339 (format_integer): Likewise.
9340 (sprintf_dom_walker::handle_gimple_call): Likewise.
9341 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9342 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9343 (vrp_prop::get_value_range): Adjust.
9344 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9345 modifying the lattice in-place.
9346 (vrp_prop::visit_stmt): Likewise.
9347 * vr-values.c (vr_values::get_lattice_entry): New private method.
9348 (vr_values::get_value_range): Wrap it and return a const
9350 (vr_values::set_def_to_varying): New.
9351 (vr_values::set_defs_to_varying): Use it.
9352 (vr_values::update_value_range): Likewise.
9353 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9354 (values::op_with_constant_singleton_va): Likewise.
9355 (vr_values::extract_range_for_var_from_co): Likewise.
9356 (vr_values::extract_range_from_ssa_name): Likewise.
9357 (vr_values::extract_range_from_cond_expr): Likewise.
9358 (vr_values::extract_range_basic): Likewise.
9359 (compare_ranges): Take const value_range *, adjust.
9360 (compare_range_with_value): Likewise.
9361 (vrp_valueize): Adjust.
9362 (vrp_valueize_1): Likewise.
9363 (vr_values::get_vr_for_comparison): Return a const value_range *.
9364 (vr_values::compare_name_with_value): Adjust.
9365 (vr_values::compare_names): Likewise.
9366 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9368 (vr_values::vrp_evaluate_conditional): Likewise.
9369 (find_case_label_ranges): Take a const value_range *.
9370 (vr_values::vrp_visit_switch_stmt): Adjust.
9371 (vr_values::extract_range_from_phi_node): Likewise.
9372 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9373 (vr_values::simplify_abs_using_ranges): Likewise.
9374 (test_for_singularity): Take a const value_range *.
9375 (range_fits_type_p): Likewise.
9376 (vr_values::simplify_cond_using_ranges_1): Adjust.
9377 (vr_values::simplify_cond_using_ranges_2): Likewise.
9378 (vr_values::simplify_switch_using_ranges): Likewise.
9379 (vr_values::simplify_float_conversion_usi): Likewise.
9380 (vr_values::two_valued_val_range_p): Likewise.
9381 * vr-values.h (vr_values::get_value_range): Return a const
9383 (vr_values::set_def_to_varying): New.
9384 (vr_values::get_lattice_entry): New private method.
9385 (vr_values::get_vr_for_comparison): Return a const value_range *.
9387 2019-07-25 Martin Liska <mliska@suse.cz>
9388 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9391 * common.opt: Add -fallocation-dce
9392 * gimple.c (gimple_call_operator_delete_p): New.
9393 * gimple.h (gimple_call_operator_delete_p): Likewise.
9394 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9395 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9396 DECL_IS_OPERATOR_DELETE_P.
9397 (mark_all_reaching_defs_necessary_1): Likewise.
9398 (propagate_necessity): Likewise.
9399 (eliminate_unnecessary_stmts): Handle
9400 gimple_call_operator_delete_p.
9401 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9402 Add packing of OPERATOR_DELETE.
9403 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9405 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9406 (DECL_SET_IS_OPERATOR_DELETE): New.
9407 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9409 2019-07-25 Martin Liska <mliska@suse.cz>
9411 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9412 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9413 * coverage.c (coverage_begin_function): Likewise.
9414 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9415 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9416 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9417 (sem_item::hash_referenced_symbol_properties): Likewise.
9418 * lto-streamer-out.c (hash_tree): Likewise.
9419 * predict.c (expr_expected_value_1): Likewise.
9420 * tree-inline.c (expand_call_inline): Likewise.
9421 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9422 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9423 * tree-core.h (enum function_decl_type): New enum.
9424 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9425 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9426 (set_function_decl_type): Likewise.
9427 (DECL_IS_OPERATOR_NEW_P): New.
9428 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9429 (DECL_LAMBDA_FUNCTION): Likewise.
9430 (DECL_LAMBDA_FUNCTION_P): Likewise.
9431 (DECL_IS_OPERATOR_NEW): Remove.
9432 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9434 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9436 * ipa-profile.c (get_most_common_single_value): Use
9437 get_nth_most_common_value.
9438 * profile.c (sort_hist_value): New function.
9439 (compute_value_histograms): Call sort_hist_value to sort the
9440 values after loading from disk.
9441 * value-prof.c (get_most_common_single_value): Rename to ...
9442 get_nth_most_common_value. Add input params n, return
9443 the n_th value and count.
9444 (gimple_divmod_fixed_value_transform): Use
9445 get_nth_most_common_value.
9446 (gimple_ic_transform): Likewise.
9447 (gimple_stringops_transform): Likewise.
9448 * value-prof.h (get_most_common_single_value): Add input params
9451 2019-07-25 Richard Biener <rguenther@suse.de>
9453 PR tree-optimization/91236
9454 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9455 size of CONSTRUCTOR write. Fix buffer size we pass to
9458 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9460 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9461 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9464 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9466 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9467 explicitly disabled with --disable-initfini-array.
9469 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9471 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9474 2019-07-24 Martin Sebor <msebor@redhat.com>
9476 PR tree-optimization/91183
9477 PR tree-optimization/86688
9478 * builtins.c (compute_objsize): Handle MEM_REF.
9479 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9480 (get_min_string_length): Remove.
9481 (count_nonzero_bytes): New function.
9482 (handle_char_store): Rename...
9483 (handle_store): to this. Handle multibyte stores via integer types.
9484 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9487 2019-07-24 Martin Sebor <msebor@redhat.com>
9490 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9491 (diagnostic_report_diagnostic): Same.
9492 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9493 (diagnostic_context::lang_mask): New data member.
9494 * ipa-pure-const.c (suggest_attribute): Use
9495 lang_hooks.option_lang_mask ().
9496 * opts-common.c (option_enabled): Handle new argument.
9497 (get_option_state): Pass an additional argument.
9498 * opts.c (print_filtered_help): Print supported languages for
9499 unsupported options. Adjust printing of current state.
9500 * opts.h (option_enabled): Add argument.
9501 * toplev.c (print_switch_values): Use lang_mask.
9502 (general_init): Set global_dc->lang_mask.
9504 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9507 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9509 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9511 * cgraphunit.c (symbol_table::compile): Start and stop
9512 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9513 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9515 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9517 * gimplify.c (flag_instrument_functions_exclude_p): Include
9518 namespace/class information in the printable name.
9519 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9520 to tokens entered into the vector.
9522 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9524 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9525 (get_static_chain): Call it instead of build_simple_mem_ref.
9526 (get_frame_field): Likewise.
9527 (get_nonlocal_debug_decl): Likewise.
9528 (convert_nonlocal_reference_op): Likewise.
9530 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9532 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9534 (arc_compute_frame_size): Millicode is disabled when compiling
9536 (arc_return_address_register): Likewise.
9537 (arc_compute_function_type): Likewise.
9538 (arc_compute_frame_size): Likewise.
9539 (secondary_reload_info): Likewise.
9540 (arc_get_unalign): Likewise.
9541 (arc_can_use_return_insn): Declare.
9542 * config/arc/arc.c (AUX_LP_START): Define
9543 (AUX_LP_END): Likewise.
9544 (arc_frame_info): Update gmask member to 64-bit datum.
9545 (GMASK_LEN): Update.
9546 (arc_compute_function_type): Make it static, move it forward.
9547 (arc_must_save_register): Update, consider the extra regs.
9548 (arc_compute_millicode_save_restore_regs): Update to use the 64
9550 (arc_compute_frame_size): Likewise.
9551 (arc_enter_leave_p): Likewise.
9552 (arc_save_callee_saves): Likewise.
9553 (arc_restore_callee_saves): Likewise.
9554 (arc_save_callee_enter): Likewise.
9555 (arc_restore_callee_leave): Likewise.
9556 (arc_save_callee_milli): Likewise.
9557 (arc_restore_callee_milli): Likewise.
9558 (arc_expand_prologue): Add new interrupt handling.
9559 (arc_return_address_register): Make it static, move it forward.
9560 (arc_expand_epilogue): Add new interrupt handling.
9561 (arc_get_unalign): Delete.
9562 (arc_epilogue_uses): Make sure we do not remove the extra
9563 saved/restored registers when interrupt.
9564 (arc_can_use_return_insn): New function.
9565 (push_reg): Likewise.
9566 (pop_reg): Likewise.
9567 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9569 (arc_restore_callee_saves): Likewise, but restoring.
9570 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9571 (R33_REG): Likewise.
9572 (R34_REG): Likewise.
9573 (R35_REG): Likewise.
9574 (R36_REG): Likewise.
9575 (R37_REG): Likewise.
9576 (R38_REG): Likewise.
9577 (R39_REG): Likewise.
9578 (R45_REG): Likewise.
9579 (R46_REG): Likewise.
9580 (R47_REG): Likewise.
9581 (R48_REG): Likewise.
9582 (R49_REG): Likewise.
9583 (R50_REG): Likewise.
9584 (R51_REG): Likewise.
9585 (R52_REG): Likewise.
9586 (R53_REG): Likewise.
9587 (R54_REG): Likewise.
9588 (R55_REG): Likewise.
9589 (R56_REG): Likewise.
9590 (R58_REG): Likewise.
9591 (type): Add rtie attribute.
9592 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9593 (movsi_insn): Accept moves to lp_count.
9594 (rtie): Update pattern.
9595 (simple_return): Simplify it, don't use this pattern as a return
9597 (arc600_rtie): New pattern.
9598 (p_return_i): Clean up.
9600 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9602 * config/arc/predicates.md (move_src_operand): Consider lp_count
9605 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9607 * config/s390/predicates.md (addv_const_operand): New predicate.
9608 * config/s390/s390-modes.def (CCO): New condition code mode.
9609 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9610 (s390_branch_condition_mask): Likewise.
9611 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9612 ("mulv<mode>4"): New expanders.
9613 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9614 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9615 pattern definitions.
9617 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9620 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9621 (define_predicates): Add entry for uniform_vector_p.
9622 (vec_same_elem_p): New match pattern.
9624 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9627 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9628 * config/i386/darwin32-biarch.h .. to here.
9629 * config/i386/darwin64-biarch.h: Adjust comments.
9630 * config/rs6000/darwin32-biarch.h: Likewise.
9631 * config/rs6000/darwin64-biarch.h: Likewise.
9632 * config.gcc: Missed commit from r273746
9633 (*-*-darwin*): Don't include CPU t-darwin here.
9634 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9635 an error message if i686-darwin configuration is attempted for
9638 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9641 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9642 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9643 an error message if i686-darwin configuration is attempted for
9645 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9646 (powerpc-*-darwin*): Use biarch files where needed.
9647 (powerpc64-*-darwin*): Likewise.
9648 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9649 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9651 * config/i386/darwin32-biarch.h: New.
9652 * config/i386/darwin64.h: Rename.
9653 * config/i386/darwin64-biarch.h: To this.
9654 * config/i386/t-darwin: Rename.
9655 * config/i386/t-darwin32-biarch: To this.
9656 * config/i386/t-darwin64: Rename.
9657 * config/i386/t-darwin64-biarch: To this.
9658 * config/rs6000/darwin32-biarch.h: New.
9659 * config/rs6000/darwin64.h: Rename.
9660 * config/rs6000/darwin64-biarch.h: To this.
9661 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9663 * config/rs6000/t-darwin8: Rename.
9664 * config/rs6000/t-darwin32-biarch: To this.
9665 * config/rs6000/t-darwin64 Rename.
9666 * config/rs6000/t-darwin64-biarch: To this.
9668 2019-07-23 Martin Sebor <msebor@redhat.com>
9670 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9672 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9674 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9675 (rh): New alias for it.
9677 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9679 * gdbhooks.py: Pass replace=True to
9680 gdb.printing.register_pretty_printer.
9682 2019-07-23 Richard Biener <rguenther@suse.de>
9685 * lto-streamer-in.c (input_function): Drop inline-entry markers
9686 that ended up with an unknown location block.
9688 2019-07-23 Richard Biener <rguenther@suse.de>
9690 PR tree-optimization/83518
9691 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9692 init from a constant even when partial defs are already recorded.
9694 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9696 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9697 * config/i386/znver1.md: Enable patterns for znver2 and add store
9698 variants which use extra AGU unit.
9700 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9702 * config/i386/i386-options.c (ix86_option_override_internal): Default
9703 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9704 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9707 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9709 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9710 (znver2_costs): Update 256 bit SSE costs and multiplication.
9712 2019-07-23 Jan Beulich <jbeulich@suse.com>
9714 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9715 Require only AVX512F.
9716 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9717 alternative expanding to vpternlog.
9719 2019-07-23 Martin Liska <mliska@suse.cz>
9721 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9722 to -flto in dwarf producer string.
9724 2019-07-23 Richard Biener <rguenther@suse.de>
9726 * tree-cfg.c (label_for_bb): Remove global var.
9727 (main_block_label): Take label_for_bb as argument.
9728 (cleanup_dead_labels_eh): Likewise, adjust.
9729 (cleanup_dead_labels): Adjust.
9731 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9733 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9734 Configurations): Add documentation for __builtin_mtfsf.
9736 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9738 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9739 * config/riscv/riscv.c (riscv_constant_alignment): Use
9740 riscv_align_data_type.
9741 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9742 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9743 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9744 * config/riscv/riscv.opt (malign-data): New.
9745 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9747 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9749 * cgraph.c (dump_graphviz): New function.
9750 * cgraph.h (dump_graphviz): New function.
9751 * symtab.c (dump_graphviz): New function.
9753 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9755 * config/aarch64/aarch64-simd.md
9756 (*aarch64_simd_sra<mode>): New.
9757 * config/aarch64/iterators.md
9758 (SHIFTRT): New iterator.
9759 (sra_op): New attribute.
9761 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9763 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9764 callee-saved regs R4->R10 in an interrupt function that calls another
9767 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9769 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9770 (_mm_blendv_epi8): New.
9772 2019-07-22 Richard Biener <rguenther@suse.de>
9774 PR tree-optimization/91221
9775 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9776 restrict partial-def handling of empty constructors and
9777 memset to refs with known offset.
9779 2019-07-22 Jan Beulich <jbeulich@suse.com>
9781 * config/i386/sse.md (ternlogsuffix): New.
9782 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9784 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9786 2019-07-22 Martin Liska <mliska@suse.cz>
9788 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9790 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9792 2019-07-22 Martin Liska <mliska@suse.cz>
9794 * lto-section-in.c (lto_get_section_data):
9795 Use new function get_compression.
9796 * lto-streamer-out.c (produce_lto_section): Use
9797 set_compression to encode compression algorithm.
9798 * lto-streamer.h (struct lto_section): Do not
9799 use bitfields in the format.
9801 2019-07-22 Martin Liska <mliska@suse.cz>
9804 * opts-common.c (decode_cmdline_option): Decode
9805 argument of -Werror and check it for a wrong language.
9806 * opts-global.c (complain_wrong_lang): Remove such case.
9808 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
9810 * config/arc/arc.c (prepare_move_operands): Always use an
9811 intermediate register when storing a TLS symbols.
9813 2019-07-22 Stafford Horne <shorne@gmail.com>
9815 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9818 2019-07-22 Stafford Horne <shorne@gmail.com>
9820 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9821 and munordered-float validations.
9822 * config/or1k/constraints.md (d): New register constraint.
9823 * config/or1k/predicates.md (fp_comparison_operator): New.
9824 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9826 (or1k_expand_compare): Normalize unordered comparisons.
9827 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9828 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9829 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9830 * config/or1k/or1k.md (type): Add fpu.
9831 (fpu): New instruction reservation.
9832 (F, f, fr, fi, FI, FOP, fop): New.
9833 (<fop><F:mode>3): New ALU instruction definition.
9834 (float<fi><F:mode>2): New conversion instruction definition.
9835 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9836 (fpcmpcc): New code iterator.
9837 (*sf_fp_insn): New instruction definition.
9838 (cstore<F:mode>4): New expand definition.
9839 (cbranch<F:mode>4): New expand definition.
9840 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9841 munordered-float): New options.
9842 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9845 2019-07-22 Stafford Horne <shorne@gmail.com>
9847 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9848 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9849 documenation to be more clear.
9850 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9852 * config/or1k/or1k.opt (mrori): New option.
9853 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
9854 msfimm, mshftimm): Rewrite documentation to be more clear.
9855 * config/or1k/or1k.md (insn_support): Add ror and rori.
9856 (enabled): Add conditions for ror and rori.
9857 (rotrsi3): Replace condition for shftimm with ror and rori.
9859 2019-07-22 Stafford Horne <shorne@gmail.com>
9862 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
9863 (extend<mode>si2): Update predicate.
9864 * config/or1k/predicates.md (volatile_mem_operand): New.
9865 (reg_or_mem_operand): New.
9867 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
9869 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
9870 * config/rs6000/rs6000-call.c: ... to here.
9872 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9874 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
9877 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9879 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
9881 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9883 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
9885 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9887 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
9888 (any_memory_operand): New predicate.
9889 (reg_or_mem_operand): Use it.
9891 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9894 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
9896 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
9898 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
9899 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
9901 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9903 * tree.def (OMP_LOOP): New tree code.
9904 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
9905 (enum omp_clause_bind_kind): New enum.
9906 (struct tree_omp_clause): Add subcode.bind_kind.
9907 * tree.h (OMP_LOOP_CHECK): Rename to ...
9908 (OMP_LOOPING_CHECK): ... this.
9909 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9910 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
9911 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
9912 (OMP_CLAUSE_BIND_KIND): Define.
9913 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9914 bind clause entries.
9915 (walk_tree_1): Handle OMP_CLAUSE_BIND.
9916 * tree-pretty-print.c (dump_omp_clause): Likewise.
9917 (dump_generic_node): Handle OMP_LOOP.
9918 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
9919 (in_omp_construct): New variable.
9920 (is_gimple_stmt): Handle OMP_LOOP.
9921 (gimplify_scan_omp_clauses): For lastprivate don't set
9922 check_non_private if code == OMP_LOOP. For reduction clause
9923 on OMP_LOOP combined with parallel or teams propagate as shared
9924 on the combined construct. Handle OMP_CLAUSE_BIND.
9925 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
9926 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
9927 for constructs from a loop construct to gimplify_scan_omp_clauses.
9928 Don't predetermine iterator linear on OMP_SIMD from loop construct.
9929 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
9930 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
9931 to match the implicit ORT_TARGET construct around whole body.
9932 Temporarily clear in_omp_construct when processing body.
9933 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
9934 etc. temporarily set in_omp_construct when processing body.
9935 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
9936 * omp-low.c (struct omp_context): Add loop_p.
9937 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
9938 in that the original var might be private.
9939 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
9940 (check_omp_nesting_restrictions): Adjust nesting restrictions for
9941 addition of loop construct.
9942 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
9944 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
9945 lastprivate non-addressable iterator of a collapse(1) simd.
9947 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
9949 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
9952 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
9954 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
9955 refer to default conditions. Warn for the 'y' spec which is ignored
9958 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
9960 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
9961 cpu_supports_info, builtin_hash_struct, builtin_hasher,
9962 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9963 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9964 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9965 init_cumulative_args, rs6000_promote_function_mode,
9966 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9967 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9968 rs6000_function_arg_boundary, rs6000_parm_offset,
9969 rs6000_parm_start, rs6000_arg_size,
9970 rs6000_darwin64_record_arg_advance_flush,
9971 rs6000_darwin64_record_arg_advance_recurse,
9972 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9973 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9974 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9975 rs6000_mixed_function_arg, rs6000_psave_function_arg,
9976 rs6000_finish_function_arg, rs6000_function_arg,
9977 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9978 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9979 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9980 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9981 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9982 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9983 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
9984 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
9985 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
9986 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
9987 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
9988 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
9989 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
9990 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
9991 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
9992 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
9993 get_element_number, altivec_expand_vec_set_builtin,
9994 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
9995 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
9996 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
9997 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
9998 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
9999 rs6000_expand_builtin, rs6000_vector_type,
10000 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10001 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10002 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10004 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10005 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10006 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10007 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10008 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10009 init_cumulative_args, rs6000_promote_function_mode,
10010 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10011 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10012 rs6000_function_arg_boundary, rs6000_parm_offset,
10013 rs6000_parm_start, rs6000_arg_size,
10014 rs6000_darwin64_record_arg_advance_flush,
10015 rs6000_darwin64_record_arg_advance_recurse,
10016 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10017 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10018 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10019 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10020 rs6000_finish_function_arg, rs6000_function_arg,
10021 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10022 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10023 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10024 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10025 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10026 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10027 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10028 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10029 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10030 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10031 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10032 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10033 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10034 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10035 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10036 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10037 get_element_number, altivec_expand_vec_set_builtin,
10038 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10039 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10040 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10041 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10042 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10043 rs6000_expand_builtin, rs6000_vector_type,
10044 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10045 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10046 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10047 to here from rs6000.c.
10048 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10049 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10050 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10051 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10052 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10053 rs6000_return_in_memory, rs6000_return_in_msb,
10054 rs6000_pass_by_reference, setup_incoming_varargs,
10055 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10056 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10057 rs6000_function_arg_padding, rs6000_function_arg,
10058 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10059 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10060 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10061 rs6000_passes_long_double, rs6000_passes_vector,
10062 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10063 altivec_builtin_mask_for_load) Add declarations.
10064 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10065 * config/config.gcc: Add new source file rs6000-call.c to garbage
10066 collector and extra_objs.
10068 2019-07-19 Jeff Law <law@redhat.com>
10070 PR tree-optimization/86061
10071 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10072 strncpy. Drop some trivial dead code.
10073 (maybe_trim_memstar_call): Handle strncpy.
10075 2019-07-19 Richard Biener <rguenther@suse.de>
10077 PR tree-optimization/91211
10078 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10079 memset encoding size.
10081 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10084 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10086 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10089 * ipa-inline.c (recursive_inlining): Fix limits check.
10091 2019-07-19 Richard Biener <rguenther@suse.de>
10093 PR tree-optimization/91200
10094 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10095 no PHI nodes in middle-bb.
10097 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10099 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10101 * config/aarch64/aarch64-option-extensions.def: Likewise.
10103 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10105 PR middle-end/91190
10106 * function.c (insert_temp_slot_address): Store into the hash table
10107 a copy of address to avoid RTL sharing issues.
10109 2019-07-19 Richard Biener <rguenther@suse.de>
10111 PR tree-optimization/91207
10113 2019-07-17 Richard Biener <rguenther@suse.de>
10115 PR tree-optimization/91178
10116 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10117 loads with a gap larger than the vector size always use
10119 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10120 avoid loading vectors that are only contained in the gap
10121 and thus are not needed.
10123 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10125 * config/i386/i386.md (*addqi_2_slp): Remove.
10126 (*<code>qi_2_slp): Ditto.
10128 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10130 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10131 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10132 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10133 Rename function from rs6000_prefixed_address.
10134 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10136 (TARGET_TOC): Likewise.
10137 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10139 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10141 (TARGET_TOC): Likewise.
10142 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10144 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10146 (TARGET_TOC): Likewise.
10147 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10148 check to require -mcmodel=medium for pc-relative addressing.
10149 (create_TOC_reference): Add assertion for TARGET_TOC.
10150 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10152 (rs6000_emit_move): Likewise.
10153 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10154 to 'TOC_alias_set'.
10155 (get_TOC_alias_set): Likewise.
10156 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10158 (rs6000_can_eliminate): Likewise.
10159 (rs6000_prefixed_address_mode_p): Rename function from
10160 rs6000_prefixed_address.
10161 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10162 TARGET_HAS_TOC and not pc-relative.
10163 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10164 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10166 (TARGET_TOC): Likewise.
10167 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10170 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10173 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10174 for operand 0. Do not use (match_dup) to match operand 1 with
10175 operand 0. Add check in insn constraint that either input operand
10176 matches operand 0. Use SWI12 mode iterator to also handle
10178 (*and<mode>_1_slp): Ditto.
10179 (*<code>qi_1_slp): Ditto.
10180 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10181 Do not use (match_dup) to match operand 1 with operand 0. Add
10182 check in insn constraint that operand 1 matches operand 0.
10183 Use SWI12 mode iterator to also handle HImode operands.
10184 (*ashl<mode>3_1_slp): Ditto.
10185 (*<shift_insn><mode>3_1_slp): Ditto.
10186 (*<rotate_insn><mode>3_1_slp): Ditto.
10188 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10190 * config/arm/arm-builtins.c
10191 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10192 (arm_expand_unop_builtin): Likewise.
10193 * config/arm/crypto.md
10194 (crypto_sha1h): Convert from define_insn to define_expand.
10195 (crypto_<crypto_pattern>): Likewise.
10196 (crypto_sha1h_lb): New define_insn.
10197 (crypto_<crypto_pattern>_lb): Likewise.
10199 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10202 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10203 (vsha1cq_u32): Likewise.
10204 (vsha1pq_u32): Likewise.
10205 (vsha1mq_u32): Likewise.
10206 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10208 (crypto_sha1c): Correct vec select.
10209 (crypto_sha1m): Likewise.
10210 (crypto_sha1p): Likewise.
10212 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10214 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10215 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10216 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10217 (subdi_zesidi_zesidi): Likewise.
10218 (negdi2_compare, negdi2_insn): Likewise.
10219 (negdi_extensidi): Likewise.
10220 (negdi_zero_extendsidi): Likewise.
10221 (arm_cmpdi_insn): Likewise.
10222 (subsi3_carryin): Use arm_borrow_operation.
10223 (subsi3_carryin_const): Likewise.
10224 (subsi3_carryin_const0): Likewise.
10225 (subsi3_carryin_compare): Likewise.
10226 (subsi3_carryin_compare_const): Likewise.
10227 (subsi3_carryin_compare_const0): Likewise.
10228 (subsi3_carryin_shift): Likewise.
10229 (rsbsi3_carryin_shift): Likewise.
10230 (negsi2_carryin_compare): Likewise.
10232 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10234 PR tree-optimization/91137
10235 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10236 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10237 Init, use and fini the above new field.
10238 (determine_base_object_1): New function.
10239 (determine_base_object): Reimplement using walk_tree.
10241 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10243 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10244 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10245 CLEANUP_FORCE_FAST_DCE is set.
10246 * ifcvt.c (rest_of_handle_if_conversion): Pass
10247 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10248 if-conversion succeeded.
10250 2019-07-18 Richard Biener <rguenther@suse.de>
10252 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10253 branches to make code less indented.
10255 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10257 PR middle-end/81824
10258 * attribs.c (decls_mismatched_attributes): Simplify the logic
10259 that avoids duplicates and false positives.
10261 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10263 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10264 data into data section when generating PIC code.
10265 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10266 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10267 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10268 return 2 for SOM and 0 for other targets.
10270 2019-07-17 Jeff Law <law@redhat.com>
10272 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10273 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10274 avoid unexpected switch statement fallthru.
10276 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10278 * config/i386/i386.md (*add<dwi>3_doubleword):
10279 Remove redundant constraints.
10280 (*add<mode>_1): Ditto.
10283 (*addqi_1_slp): Ditto.
10284 (*add<mode>_2): Ditto.
10285 (*addv<mode>4): Ditto.
10286 (*sub<dwi>3_doubleword): Ditto.
10287 (*sub<mode>_1): Ditto.
10288 (*subqi_1_slp): Ditto.
10289 (*sub<mode>_2): Ditto.
10290 (*subv<mode>4): Ditto.
10291 (*sub<mode>_3): Ditto.
10292 (@add<mode>3_carry): Ditto.
10293 (@sub<mode>3_carry): Ditto.
10294 (*add<mode>3_cc_overflow_1): Ditto.
10295 (*add<mode>3_zext_cc_overflow_2): Ditto.
10297 (*and<mode>_1): Ditto.
10299 (*andqi_1_slp): Ditto.
10301 (*andqi_2_maybe_si): Ditto.
10302 (*and<mode>_2): Ditto.
10303 (*andqi_2_slp): Ditto.
10304 (*<code><mode>_1): Ditto.
10305 (*<code>qi_1): Ditto.
10306 (*<code>qi_1_slp): Ditto.
10307 (*<code><mode>_2): Ditto.
10308 (*<code>qi_2_slp): Ditto.
10310 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10312 * alias.c (record_component_aliases): Do not simplify pointed-to
10313 types of ODR types.
10315 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10317 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10318 partial reg stall on alternative 2.
10320 2019-07-17 Richard Biener <rguenther@suse.de>
10322 PR tree-optimization/91178
10323 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10324 lower SSA names to avoid quadratic behavior in the common case.
10325 * tree-data-ref.c (split_constant_offset): Add limit argument
10326 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10327 (split_constant_offset_1): Add limit argument and use it to
10328 limit SSA def walking. Optimize the common plus/minus case.
10330 2019-07-17 Richard Biener <rguenther@suse.de>
10332 PR tree-optimization/91178
10333 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10334 loads with a gap larger than the vector size always use
10336 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10337 avoid loading vectors that are only contained in the gap
10338 and thus are not needed.
10340 2019-07-17 Richard Biener <rguenther@suse.de>
10342 PR tree-optimization/91180
10343 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10344 computation for memset partial defs.
10346 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10348 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10349 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10350 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10351 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10352 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10353 * omp-grid.c (grid_process_grid_body,
10354 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10355 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10356 == GF_OMP_FOR_KIND_SIMD.
10357 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10358 check_omp_nesting_restrictions, scan_omp_1_stmt,
10359 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10360 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10361 omp_find_scan): Likewise.
10362 * omp-expand.c (expand_omp_for): Likewise.
10363 * omp-general.c (omp_extract_for_data): Likewise.
10365 PR tree-optimization/91157
10366 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10367 a vector boolean with scalar mode.
10368 (expand_vector_condition): Handle first operand being a vector boolean
10370 (expand_vector_operations_1): For comparisons, don't bail out early
10371 if the return type is vector boolean with scalar mode, but comparison
10372 operand type is not.
10374 2019-07-17 Richard Biener <rguenther@suse.de>
10376 PR tree-optimization/91181
10377 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10378 IFN_LOADs as calls.
10380 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10382 * config/i386/i386.md (*testdi_1): Match CCZmode for
10383 constants that might have the SImode sign bit set.
10384 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10385 Use correct constraints for pentium pairing.
10386 (*test<mode>_1): Ditto.
10388 2019-07-16 Jeff Law <law@redhat.com>
10390 PR rtl-optimization/91173
10391 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10392 SSA_NAME with a constant value, fold its value into the offset
10393 and clear the base before calling gen_addr_rtx.
10395 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10397 PR rtl-optimization/91164
10398 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10399 invalidate dominance info.
10401 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10403 * read-md.h (md_reader::record_potential_iterator_use): Add a
10404 file_location parameter.
10405 * read-rtl.c (attribute_use::loc): New field.
10406 (map_attr_string): Take a file_location parameter. Report cases
10407 in which attributes map to multiple distinct values.
10408 (apply_attribute_uses): Update call accordingly.
10409 (md_reader::handle_overloaded_name): Likewise.
10410 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10412 (record_attribute_use): Take a file_location parameter.
10413 Initialize attribute_use::loc.
10414 (md_reader::record_potential_iterator_use): Take a file_location
10415 parameter. Update call to record_attribute_use.
10416 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10417 (rtx_reader::read_rtx_code): Likewise.
10418 (rtx_reader::read_rtx_operand): Likewise. Record a location
10419 for implicitly-expanded empty strings.
10421 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10423 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10424 Use file_location instead of separate fields.
10425 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10426 separate filename and line number.
10427 * read-md.c (ptr_loc): As above.
10428 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10429 (md_reader::fprint_md_ptr_loc): Likewise.
10430 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10431 instead of a separate filename and line number.
10432 (md_reader::read_string): Update call accordingly.
10434 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10436 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10437 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10438 leaving the choice between SFDF and P implicit.
10439 (*mov<mode>_update2): Likewise.
10440 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10441 rather than leaving the choice betweem IBM128 and GPR implicit.
10442 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10443 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10445 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10446 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10447 * config/rs6000/vsx.md
10448 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10449 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10450 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10451 and VSX_EXTRACT_I implicit.
10453 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10455 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10456 Explicitly use <MOVEP1:MODE> for the mode attribute.
10458 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10461 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10463 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10466 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10467 .machine directive.
10469 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10471 * config/i386/i386.md (@test<mode>_ccno_1):
10472 Rename from test<mode>_ccno_1.
10473 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10474 (*testqi_1_maybe_si): Remove modrm attribute.
10475 (*test<mode>_1): Ditto.
10476 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10477 gen_test_ccno_1 and gen_extend_insn.
10479 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10481 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10484 2019-07-15 Richard Biener <rguenther@suse.de>
10486 PR middle-end/91162
10487 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10488 node make sure to replace all uses with something valid.
10490 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10492 PR tree-optimization/88497
10493 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10494 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10495 function undistribute_bitref_for_vector.
10496 (undistribute_bitref_for_vector): New function.
10497 (cleanup_vinfo_map): Likewise.
10498 (sort_by_mach_mode): Likewise.
10500 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10502 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10503 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10504 and testdi_ccno_1 using SWI48 mode attribute.
10505 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10506 x86_64_szext_general_operand.
10507 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10508 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10509 instead of genera_operand mode attribute.
10511 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10513 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10514 fopen and fclose to their respective types.
10515 (DotFn.invoke): Ditto.
10517 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10519 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10520 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10521 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10522 (array_index_predicate): Remove.
10523 (analyze_function_body): Account cost for variable ofsetted array
10525 (estimate_node_size_and_time): Do not compute array index hint.
10526 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10527 (inline_read_section): Do not read array index hint.
10528 (ipa_fn_summary_write): Do not write array index hint.
10529 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10530 * ipa-cp.c (hint_time_bonus): Remove.
10531 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10532 (ipa_fnsummary): Remove array_index.
10533 * ipa-inline.c (want_inline_small_function_p): Do not use
10535 (edge_badness): Likewise.
10536 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10538 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10541 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10542 superfluous "builtin function" phrasing.
10544 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10546 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10548 (aliasing_component_refs_walk): Break out from ...
10549 (aliasing_component_refs_p): ... here.
10551 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10554 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10555 "builtin function" phrasing.
10557 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10560 * recog.h (temporary_volatile_ok): New class.
10561 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10562 volatile_ok temporarily to true using temporary_volatile_ok.
10563 * expr.c (emit_block_move_via_cpymem): Likewise.
10564 * optabs.c (maybe_legitimize_operand): Likewise.
10566 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10568 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10569 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10570 uses inside of order(concurrent) constructs.
10571 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10572 OMP_CLAUSE_ORDER is seen.
10573 * omp-low.c (struct omp_context): Add order_concurrent member.
10574 (scan_sharing_clauses): Set ctx->order_concurrent if
10575 OMP_CLAUSE_ORDER is seen.
10576 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10577 of simd order(concurrent). Diagnose constructs not allowed inside of
10578 for order(concurrent).
10579 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10580 complaining about static double setjmp (double); or class static
10581 methods or non-global namespace setjmps.
10582 (omp_runtime_api_call): New function.
10583 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10584 order(concurrent) loops.
10586 2019-07-12 Martin Sebor <msebor@redhat.com>
10588 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10589 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10590 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10591 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10593 2019-07-12 Jan Hubicka <jh@suse.cz>
10595 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10596 (indirect_refs_may_alias_p): ... here.
10597 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10598 mem refs in the access paths.
10600 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10602 PR tree-optimization/89430
10603 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10604 store elimination for local variable without address escape.
10606 2019-07-12 Jeff Law <law@redhat.com>
10608 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10609 for the ".far" section.
10611 2019-07-12 Richard Biener <rguenther@suse.de>
10613 PR tree-optimization/91145
10614 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10617 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10619 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10620 rather than this_state as the lowering context for the ELSE
10621 seq in a GIMPLE_EH_ELSE.
10623 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10625 * vector-builder.h (vector_builder::elt): Allow already-supplied
10626 elements to be read back before building is complete.
10628 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10630 PR rtl-optimization/91136
10631 * df-core.c (ACCESSING REFS): Fix typos in comment.
10632 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10633 the beginning of the block to the initial set of live registers.
10635 2019-07-12 Richard Biener <rguenther@suse.de>
10637 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10638 * fold-const.c (get_array_ctor_element_at_index): Add
10639 ctor_idx output parameter informing the caller where in
10640 the constructor the element was (not) found. Add early exit
10641 for when the ctor is sorted.
10642 * gimple-fold.c (fold_array_ctor_reference): Support constant
10643 folding across multiple array elements.
10645 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10647 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10648 doesn't have location, set the current location to the function's end.
10650 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10652 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10653 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10654 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10655 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10656 * config/aarch64/aarch64-simd.md
10657 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10658 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10659 * config/aarch64/aarch64-sve.md
10660 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10661 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10663 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10665 * doc/md.texi: Document that @ patterns can have different
10666 numbers of operands.
10667 * genemit.c (handle_overloaded_gen): Handle this case.
10668 * genopinit.c (handle_overloaded_gen): Likewise.
10669 * gensupport.c (replace_operands_with_dups): Iterate over
10670 the new rtx's format rather than the old one's.
10672 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10674 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10675 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10676 order clause entries.
10677 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10678 * tree-pretty-print.c (dump_omp_clause): Likewise.
10679 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10681 * omp-low.c (scan_sharing_clauses): Likewise.
10682 * tree-nested.c (convert_nonlocal_omp_clauses,
10683 convert_local_omp_clauses): Likewise.
10685 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10687 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10688 fallthrough target of current basic block isn't the placed
10691 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10694 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10695 (_mm512_storeu_epi64): Likewise.
10696 (_mm512_loadu_epi32): Likewise.
10697 (_mm512_storeu_epi32): Likewise.
10698 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10699 (_mm_storeu_epi64): Likewise.
10700 (_mm256_storeu_epi32): Likewise.
10701 (_mm_storeu_epi32): Likewise.
10703 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10705 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10707 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10709 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10712 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10715 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10716 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10717 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10718 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10719 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10720 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10722 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10723 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10724 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10726 (sse2_cvttpd2dq<mask_name>): Change into ...
10727 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10728 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10729 (*sse2_cvtpd2dq<mask_name>): Change into ...
10730 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10731 Add "C" constraint to const0_operand.
10732 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10733 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10737 * config/i386/i386-builtin-types.def
10738 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10739 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10740 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10741 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10742 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10743 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10744 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10745 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10746 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10747 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10748 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10749 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10750 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10751 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10752 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10753 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10754 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10755 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10756 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10757 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10758 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10759 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10760 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10761 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10762 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10763 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10764 __builtin_ia32_vpdpbusd_v4si_maskz,
10765 __builtin_ia32_vpdpbusds_v16si_mask,
10766 __builtin_ia32_vpdpbusds_v16si_maskz,
10767 __builtin_ia32_vpdpbusds_v8si_mask,
10768 __builtin_ia32_vpdpbusds_v8si_maskz,
10769 __builtin_ia32_vpdpbusds_v4si_mask,
10770 __builtin_ia32_vpdpbusds_v4si_maskz,
10771 __builtin_ia32_vpdpwssd_v16si_mask,
10772 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10773 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10774 __builtin_ia32_vpdpwssd_v4si_maskz,
10775 __builtin_ia32_vpdpwssds_v16si_mask,
10776 __builtin_ia32_vpdpwssds_v16si_maskz,
10777 __builtin_ia32_vpdpwssds_v8si_mask,
10778 __builtin_ia32_vpdpwssds_v8si_maskz,
10779 __builtin_ia32_vpdpwssds_v4si_mask,
10780 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10781 suffixed types rather than *_INT.
10782 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10783 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10784 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10785 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10786 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10787 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10789 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
10791 * tree-vrp.c (intersect_ranges): If we know the intersection is
10792 empty, there is no need to conservatively add anything else to
10795 2019-07-11 Richard Biener <rguenther@suse.de>
10797 PR middle-end/91131
10798 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10799 when the object is volatile and we have not cleared it even though
10800 there are no nonzero elements.
10802 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
10804 * config/rs6000/predicates.md (cint34_operand): Update
10805 SIGNED_34BIT_OFFSET_P call.
10806 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10807 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10808 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10809 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10810 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10812 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10813 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10814 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10815 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10816 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10818 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
10820 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10821 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10822 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10823 (DEF_MIN_OSX_VERSION): New.
10825 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10827 * fold-const.c (fold_relational_const): Fix folding of
10828 vector-to-scalar NE_EXPRs.
10829 (test_vector_folding): Add more tests.
10831 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10834 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10835 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10836 (vec_setv2di_internal): Reexpress as...
10837 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10838 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10839 rather than gen_neon_vset_lane<mode>.
10841 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
10844 * lra-constraints.c (process_alt_operands): Don't match user
10845 defined regs only if they are early clobbers.
10847 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
10849 * wide-int.h (wi::lshift): Reject negative values for the fast path.
10851 2019-07-10 Richard Biener <rguenther@suse.de>
10853 PR tree-optimization/91126
10854 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
10855 native encoding offset for BYTES_BIG_ENDIAN.
10856 (vn_reference_lookup_3): Likewise.
10858 2019-07-10 Richard Biener <rguenther@suse.de>
10860 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
10861 LHS whenever possible.
10863 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
10865 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
10866 from ...; work also on duplicated types.
10867 (nonoverlapping_component_refs_since_match): ... here
10868 (ncr_type_uid): Break out from ...
10869 (ncr_compar): ... here; look for TYPE_UID of canonical type if
10871 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
10872 the types and nonoverlapping_component_refs_p_1 to disambiguate.
10874 2019-07-09 Martin Sebor <msebor@redhat.com>
10876 PR tree-optimization/90989
10877 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
10878 optimization to just single character stores.
10880 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
10882 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
10883 Swap operands only once.
10885 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10887 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
10888 for both call instructions.
10890 2019-07-09 John Darrington <john@darrington.wattle.id.au>
10892 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
10893 rather than GET_MODE_BITSIZE to better handle partial integer modes.
10895 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
10897 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
10898 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
10899 function from rs6000-logue.c back to rs6000.c.
10900 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
10902 2019-07-09 Martin Sebor <msebor@redhat.com>
10905 * auto-profile.c: Change class-key of PODs to struct and others
10907 * basic-block.h: Same.
10908 * bitmap.c (bitmap_alloc): Same.
10910 * builtins.c (expand_builtin_prefetch): Same.
10911 (expand_builtin_interclass_mathfn): Same.
10912 (expand_builtin_strlen): Same.
10913 (expand_builtin_mempcpy_args): Same.
10914 (expand_cmpstr): Same.
10915 (expand_builtin___clear_cache): Same.
10916 (expand_ifn_atomic_bit_test_and): Same.
10917 (expand_builtin_thread_pointer): Same.
10918 (expand_builtin_set_thread_pointer): Same.
10919 * caller-save.c (setup_save_areas): Same.
10920 (replace_reg_with_saved_mem): Same.
10921 (insert_restore): Same.
10922 (insert_save): Same.
10923 (add_used_regs): Same.
10924 * cfg.c (get_bb_copy): Same.
10925 (set_loop_copy): Same.
10928 * cfgexpand.c (alloc_stack_frame_space): Same.
10929 (add_stack_var): Same.
10930 (add_stack_var_conflict): Same.
10931 (add_scope_conflicts_1): Same.
10932 (update_alias_info_with_stack_vars): Same.
10933 (expand_used_vars): Same.
10934 * cfghooks.c (redirect_edge_and_branch_force): Same.
10935 (delete_basic_block): Same.
10936 (split_edge): Same.
10937 (make_forwarder_block): Same.
10938 (force_nonfallthru): Same.
10939 (duplicate_block): Same.
10940 (lv_flush_pending_stmts): Same.
10941 * cfghooks.h: Same.
10942 * cfgloop.c (flow_loops_cfg_dump): Same.
10943 (flow_loop_nested_p): Same.
10944 (superloop_at_depth): Same.
10945 (get_loop_latch_edges): Same.
10946 (flow_loop_dump): Same.
10947 (flow_loops_dump): Same.
10948 (flow_loops_free): Same.
10949 (flow_loop_nodes_find): Same.
10950 (establish_preds): Same.
10951 (flow_loop_tree_node_add): Same.
10952 (flow_loop_tree_node_remove): Same.
10953 (flow_loops_find): Same.
10954 (find_subloop_latch_edge_by_profile): Same.
10955 (find_subloop_latch_edge_by_ivs): Same.
10956 (mfb_redirect_edges_in_set): Same.
10957 (form_subloop): Same.
10958 (merge_latch_edges): Same.
10959 (disambiguate_multiple_latches): Same.
10960 (disambiguate_loops_with_multiple_latches): Same.
10961 (flow_bb_inside_loop_p): Same.
10962 (glb_enum_p): Same.
10963 (get_loop_body_with_size): Same.
10964 (get_loop_body): Same.
10965 (fill_sons_in_loop): Same.
10966 (get_loop_body_in_dom_order): Same.
10967 (get_loop_body_in_custom_order): Same.
10968 (release_recorded_exits): Same.
10969 (get_loop_exit_edges): Same.
10970 (num_loop_branches): Same.
10971 (remove_bb_from_loops): Same.
10972 (find_common_loop): Same.
10973 (delete_loop): Same.
10974 (cancel_loop): Same.
10975 (verify_loop_structure): Same.
10976 (loop_preheader_edge): Same.
10977 (loop_exit_edge_p): Same.
10978 (single_exit): Same.
10979 (loop_exits_to_bb_p): Same.
10980 (loop_exits_from_bb_p): Same.
10981 (get_loop_location): Same.
10982 (record_niter_bound): Same.
10983 (get_estimated_loop_iterations_int): Same.
10984 (max_stmt_executions_int): Same.
10985 (likely_max_stmt_executions_int): Same.
10986 (get_estimated_loop_iterations): Same.
10987 (get_max_loop_iterations): Same.
10988 (get_max_loop_iterations_int): Same.
10989 (get_likely_max_loop_iterations): Same.
10990 * cfgloop.h (simple_loop_desc): Same.
10992 (loop_depth): Same.
10993 (loop_outer): Same.
10994 (loop_iterator::next): Same.
10995 (loop_outermost): Same.
10996 * cfgloopanal.c (mark_irreducible_loops): Same.
10997 (num_loop_insns): Same.
10998 (average_num_loop_insns): Same.
10999 (expected_loop_iterations_unbounded): Same.
11000 (expected_loop_iterations): Same.
11001 (mark_loop_exit_edges): Same.
11002 (single_likely_exit): Same.
11003 * cfgloopmanip.c (fix_bb_placement): Same.
11004 (fix_bb_placements): Same.
11005 (remove_path): Same.
11006 (place_new_loop): Same.
11008 (scale_loop_frequencies): Same.
11009 (scale_loop_profile): Same.
11010 (create_empty_if_region_on_edge): Same.
11011 (create_empty_loop_on_edge): Same.
11014 (fix_loop_placements): Same.
11015 (copy_loop_info): Same.
11016 (duplicate_loop): Same.
11017 (duplicate_subloops): Same.
11018 (loop_redirect_edge): Same.
11019 (can_duplicate_loop_p): Same.
11020 (duplicate_loop_to_header_edge): Same.
11021 (mfb_keep_just): Same.
11022 (has_preds_from_loop): Same.
11023 (create_preheader): Same.
11024 (create_preheaders): Same.
11025 (lv_adjust_loop_entry_edge): Same.
11026 (loop_version): Same.
11027 * cfgloopmanip.h: Same.
11029 * cgraphbuild.c: Same.
11030 * combine.c (make_extraction): Same.
11031 * config/i386/i386-features.c: Same.
11032 * config/i386/i386-features.h: Same.
11033 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11034 (ix86_emit_outlined_ms2sysv_restore): Same.
11035 (ix86_noce_conversion_profitable_p): Same.
11036 (ix86_init_cost): Same.
11037 (ix86_simd_clone_usable): Same.
11038 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11040 * coretypes.h: Same.
11041 * data-streamer-in.c (string_for_index): Change class-key of PODs
11042 to struct and others to class.
11043 (streamer_read_indexed_string): Same.
11044 (streamer_read_string): Same.
11045 (bp_unpack_indexed_string): Same.
11046 (bp_unpack_string): Same.
11047 (streamer_read_uhwi): Same.
11048 (streamer_read_hwi): Same.
11049 (streamer_read_gcov_count): Same.
11050 (streamer_read_wide_int): Same.
11051 * data-streamer.h (streamer_write_bitpack): Same.
11052 (bp_unpack_value): Same.
11053 (streamer_write_char_stream): Same.
11054 (streamer_write_hwi_in_range): Same.
11055 (streamer_write_record_start): Same.
11056 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11057 (add_cross_iteration_register_deps): Same.
11058 (build_intra_loop_deps): Same.
11059 * df-core.c (df_analyze): Same.
11060 (loop_post_order_compute): Same.
11061 (loop_inverted_post_order_compute): Same.
11062 * df-problems.c (df_rd_alloc): Same.
11063 (df_rd_simulate_one_insn): Same.
11064 (df_rd_local_compute): Same.
11065 (df_rd_init_solution): Same.
11066 (df_rd_confluence_n): Same.
11067 (df_rd_transfer_function): Same.
11068 (df_rd_free): Same.
11069 (df_rd_dump_defs_set): Same.
11070 (df_rd_top_dump): Same.
11071 (df_lr_alloc): Same.
11072 (df_lr_reset): Same.
11073 (df_lr_local_compute): Same.
11074 (df_lr_init): Same.
11075 (df_lr_confluence_n): Same.
11076 (df_lr_free): Same.
11077 (df_lr_top_dump): Same.
11078 (df_lr_verify_transfer_functions): Same.
11079 (df_live_alloc): Same.
11080 (df_live_reset): Same.
11081 (df_live_init): Same.
11082 (df_live_confluence_n): Same.
11083 (df_live_finalize): Same.
11084 (df_live_free): Same.
11085 (df_live_top_dump): Same.
11086 (df_live_verify_transfer_functions): Same.
11087 (df_mir_alloc): Same.
11088 (df_mir_reset): Same.
11089 (df_mir_init): Same.
11090 (df_mir_confluence_n): Same.
11091 (df_mir_free): Same.
11092 (df_mir_top_dump): Same.
11093 (df_word_lr_alloc): Same.
11094 (df_word_lr_reset): Same.
11095 (df_word_lr_init): Same.
11096 (df_word_lr_confluence_n): Same.
11097 (df_word_lr_free): Same.
11098 (df_word_lr_top_dump): Same.
11099 (df_md_alloc): Same.
11100 (df_md_simulate_one_insn): Same.
11101 (df_md_reset): Same.
11102 (df_md_init): Same.
11103 (df_md_free): Same.
11104 (df_md_top_dump): Same.
11105 * df-scan.c (df_insn_delete): Same.
11106 (df_insn_rescan): Same.
11107 (df_notes_rescan): Same.
11108 (df_sort_and_compress_mws): Same.
11109 (df_install_mws): Same.
11110 (df_refs_add_to_chains): Same.
11111 (df_ref_create_structure): Same.
11112 (df_ref_record): Same.
11113 (df_def_record_1): Same.
11114 (df_find_hard_reg_defs): Same.
11115 (df_uses_record): Same.
11116 (df_get_conditional_uses): Same.
11117 (df_get_call_refs): Same.
11118 (df_recompute_luids): Same.
11119 (df_get_entry_block_def_set): Same.
11120 (df_entry_block_defs_collect): Same.
11121 (df_get_exit_block_use_set): Same.
11122 (df_exit_block_uses_collect): Same.
11123 (df_mws_verify): Same.
11124 (df_bb_verify): Same.
11125 * df.h (df_scan_get_bb_info): Same.
11126 * doc/tm.texi: Same.
11127 * dse.c (record_store): Same.
11128 * dumpfile.h: Same.
11129 * emit-rtl.c (const_fixed_hasher::equal): Same.
11130 (set_mem_attributes_minus_bitpos): Same.
11131 (change_address): Same.
11132 (adjust_address_1): Same.
11133 (offset_address): Same.
11134 * emit-rtl.h: Same.
11135 * except.c (dw2_build_landing_pads): Same.
11136 (sjlj_emit_dispatch_table): Same.
11137 * explow.c (allocate_dynamic_stack_space): Same.
11138 (emit_stack_probe): Same.
11139 (probe_stack_range): Same.
11140 * expmed.c (store_bit_field_using_insv): Same.
11141 (store_bit_field_1): Same.
11142 (store_integral_bit_field): Same.
11143 (extract_bit_field_using_extv): Same.
11144 (extract_bit_field_1): Same.
11145 (emit_cstore): Same.
11146 * expr.c (emit_block_move_via_cpymem): Same.
11147 (expand_cmpstrn_or_cmpmem): Same.
11148 (set_storage_via_setmem): Same.
11149 (emit_single_push_insn_1): Same.
11150 (expand_assignment): Same.
11151 (store_constructor): Same.
11152 (expand_expr_real_2): Same.
11153 (expand_expr_real_1): Same.
11154 (try_casesi): Same.
11156 * function.c (try_fit_stack_local): Same.
11157 (assign_stack_local_1): Same.
11158 (assign_stack_local): Same.
11159 (cut_slot_from_list): Same.
11160 (insert_slot_to_list): Same.
11161 (max_slot_level): Same.
11162 (move_slot_to_level): Same.
11163 (temp_address_hasher::equal): Same.
11164 (remove_unused_temp_slot_addresses): Same.
11165 (assign_temp): Same.
11166 (combine_temp_slots): Same.
11167 (update_temp_slot_address): Same.
11168 (preserve_temp_slots): Same.
11169 * function.h: Same.
11171 * gcc-rich-location.h: Same.
11173 * genattrtab.c (check_attr_test): Same.
11174 (check_attr_value): Same.
11175 (convert_set_attr_alternative): Same.
11176 (convert_set_attr): Same.
11177 (check_defs): Same.
11178 (copy_boolean): Same.
11179 (get_attr_value): Same.
11180 (expand_delays): Same.
11181 (make_length_attrs): Same.
11183 (make_alternative_compare): Same.
11184 (simplify_test_exp): Same.
11185 (tests_attr_p): Same.
11186 (get_attr_order): Same.
11187 (clear_struct_flag): Same.
11189 (compares_alternatives_p): Same.
11192 (find_attrs_to_cache): Same.
11193 (write_test_expr): Same.
11194 (walk_attr_value): Same.
11195 (write_attr_get): Same.
11196 (eliminate_known_true): Same.
11197 (write_insn_cases): Same.
11198 (write_attr_case): Same.
11199 (write_attr_valueq): Same.
11200 (write_attr_value): Same.
11201 (write_dummy_eligible_delay): Same.
11202 (next_comma_elt): Same.
11204 (make_internal_attr): Same.
11205 (copy_rtx_unchanging): Same.
11206 (gen_insn_reserv): Same.
11207 (check_tune_attr): Same.
11208 (make_automaton_attrs): Same.
11209 (handle_arg): Same.
11210 * genextract.c (gen_insn): Same.
11211 (VEC_char_to_string): Same.
11212 * genmatch.c (print_operand): Same.
11214 (parser::parse_operation): Same.
11215 (parser::parse_capture): Same.
11216 (parser::parse_c_expr): Same.
11217 (parser::parse_simplify): Same.
11219 * genoutput.c (output_operand_data): Same.
11220 (output_get_insn_name): Same.
11221 (compare_operands): Same.
11222 (place_operands): Same.
11223 (process_template): Same.
11224 (validate_insn_alternatives): Same.
11225 (validate_insn_operands): Same.
11226 (gen_expand): Same.
11227 (note_constraint): Same.
11228 * genpreds.c (write_one_predicate_function): Same.
11229 (add_constraint): Same.
11230 (process_define_register_constraint): Same.
11231 (write_lookup_constraint_1): Same.
11232 (write_lookup_constraint_array): Same.
11233 (write_insn_constraint_len): Same.
11234 (write_reg_class_for_constraint_1): Same.
11235 (write_constraint_satisfied_p_array): Same.
11236 * genrecog.c (optimize_subroutine_group): Same.
11237 * gensupport.c (process_define_predicate): Same.
11238 (queue_pattern): Same.
11239 (remove_from_queue): Same.
11240 (process_rtx): Same.
11241 (is_predicable): Same.
11242 (change_subst_attribute): Same.
11243 (subst_pattern_match): Same.
11244 (alter_constraints): Same.
11245 (alter_attrs_for_insn): Same.
11246 (shift_output_template): Same.
11247 (alter_output_for_subst_insn): Same.
11248 (process_one_cond_exec): Same.
11250 (process_define_cond_exec): Same.
11251 (mnemonic_htab_callback): Same.
11252 (gen_mnemonic_attr): Same.
11253 (read_md_rtx): Same.
11254 * ggc-page.c: Same.
11255 * gimple-loop-interchange.cc (dump_reduction): Same.
11256 (dump_induction): Same.
11257 (loop_cand::~loop_cand): Same.
11258 (free_data_refs_with_aux): Same.
11259 (tree_loop_interchange::interchange_loops): Same.
11260 (tree_loop_interchange::map_inductions_to_loop): Same.
11261 (tree_loop_interchange::move_code_to_inner_loop): Same.
11262 (compute_access_stride): Same.
11263 (compute_access_strides): Same.
11264 (proper_loop_form_for_interchange): Same.
11265 (tree_loop_interchange_compute_ddrs): Same.
11266 (prune_datarefs_not_in_loop): Same.
11267 (prepare_data_references): Same.
11268 (pass_linterchange::execute): Same.
11269 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11270 (unroll_jam_possible_p): Same.
11271 (fuse_loops): Same.
11272 (adjust_unroll_factor): Same.
11273 (tree_loop_unroll_and_jam): Same.
11274 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11275 (loop_versioning::expensive_stmt_p): Same.
11276 (loop_versioning::version_for_unity): Same.
11277 (loop_versioning::dump_inner_likelihood): Same.
11278 (loop_versioning::find_per_loop_multiplication): Same.
11279 (loop_versioning::analyze_term_using_scevs): Same.
11280 (loop_versioning::record_address_fragment): Same.
11281 (loop_versioning::analyze_expr): Same.
11282 (loop_versioning::analyze_blocks): Same.
11283 (loop_versioning::prune_conditions): Same.
11284 (loop_versioning::merge_loop_info): Same.
11285 (loop_versioning::add_loop_to_queue): Same.
11286 (loop_versioning::decide_whether_loop_is_versionable): Same.
11287 (loop_versioning::make_versioning_decisions): Same.
11288 (loop_versioning::implement_versioning_decisions): Same.
11289 * gimple-ssa-evrp-analyze.c
11290 (evrp_range_analyzer::record_ranges_from_phis): Same.
11291 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11292 (count_multiple_uses): Same.
11293 (split_group): Same.
11294 (imm_store_chain_info::output_merged_store): Same.
11295 (pass_store_merging::process_store): Same.
11296 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11297 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11299 (alloca_call_type): Same.
11300 (pass_walloca::execute): Same.
11301 * gimple-streamer-in.c (input_phi): Same.
11302 (input_gimple_stmt): Same.
11303 * gimple-streamer.h: Same.
11304 * godump.c (go_force_record_alignment): Same.
11305 (go_format_type): Same.
11306 (go_output_type): Same.
11307 (go_output_fndecl): Same.
11308 (go_output_typedef): Same.
11309 (keyword_hash_init): Same.
11310 (find_dummy_types): Same.
11311 * graph.c (draw_cfg_nodes_no_loops): Same.
11312 (draw_cfg_nodes_for_loop): Same.
11313 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11314 * hsa-brig.c: Same.
11315 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11316 * hsa-dump.c (dump_hsa_cfun): Same.
11317 * hsa-gen.c (gen_function_def_parameters): Same.
11318 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11319 * input.c (dump_line_table_statistics): Same.
11320 (test_lexer): Same.
11322 * internal-fn.c (get_multi_vector_move): Same.
11323 (expand_load_lanes_optab_fn): Same.
11324 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11325 (expand_GOMP_SIMT_EXIT): Same.
11326 (expand_GOMP_SIMT_LAST_LANE): Same.
11327 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11328 (expand_GOMP_SIMT_VOTE_ANY): Same.
11329 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11330 (expand_GOMP_SIMT_XCHG_IDX): Same.
11331 (expand_addsub_overflow): Same.
11332 (expand_neg_overflow): Same.
11333 (expand_mul_overflow): Same.
11334 (expand_call_mem_ref): Same.
11335 (expand_mask_load_optab_fn): Same.
11336 (expand_scatter_store_optab_fn): Same.
11337 (expand_gather_load_optab_fn): Same.
11338 * ipa-cp.c (ipa_get_parm_lattices): Same.
11339 (print_all_lattices): Same.
11340 (ignore_edge_p): Same.
11341 (build_toporder_info): Same.
11342 (free_toporder_info): Same.
11343 (push_node_to_stack): Same.
11344 (ipcp_lattice<valtype>::set_contains_variable): Same.
11345 (set_agg_lats_to_bottom): Same.
11346 (ipcp_bits_lattice::meet_with): Same.
11347 (set_single_call_flag): Same.
11348 (initialize_node_lattices): Same.
11349 (ipa_get_jf_ancestor_result): Same.
11350 (ipcp_verify_propagated_values): Same.
11351 (propagate_scalar_across_jump_function): Same.
11352 (propagate_context_across_jump_function): Same.
11353 (propagate_bits_across_jump_function): Same.
11354 (ipa_vr_operation_and_type_effects): Same.
11355 (propagate_vr_across_jump_function): Same.
11356 (set_check_aggs_by_ref): Same.
11357 (set_chain_of_aglats_contains_variable): Same.
11358 (merge_aggregate_lattices): Same.
11359 (agg_pass_through_permissible_p): Same.
11360 (propagate_aggs_across_jump_function): Same.
11361 (call_passes_through_thunk_p): Same.
11362 (propagate_constants_across_call): Same.
11363 (devirtualization_time_bonus): Same.
11364 (good_cloning_opportunity_p): Same.
11365 (context_independent_aggregate_values): Same.
11366 (gather_context_independent_values): Same.
11367 (perform_estimation_of_a_value): Same.
11368 (estimate_local_effects): Same.
11369 (value_topo_info<valtype>::add_val): Same.
11370 (add_all_node_vals_to_toposort): Same.
11371 (value_topo_info<valtype>::propagate_effects): Same.
11372 (ipcp_propagate_stage): Same.
11373 (ipcp_discover_new_direct_edges): Same.
11374 (same_node_or_its_all_contexts_clone_p): Same.
11375 (cgraph_edge_brings_value_p): Same.
11376 (gather_edges_for_value): Same.
11377 (create_specialized_node): Same.
11378 (find_more_scalar_values_for_callers_subset): Same.
11379 (find_more_contexts_for_caller_subset): Same.
11380 (copy_plats_to_inter): Same.
11381 (intersect_aggregates_with_edge): Same.
11382 (find_aggregate_values_for_callers_subset): Same.
11383 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11384 (decide_about_value): Same.
11385 (decide_whether_version_node): Same.
11386 (spread_undeadness): Same.
11387 (identify_dead_nodes): Same.
11388 (ipcp_store_vr_results): Same.
11389 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11390 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11391 (redirect_to_unreachable): Same.
11392 (edge_set_predicate): Same.
11393 (evaluate_conditions_for_known_args): Same.
11394 (evaluate_properties_for_edge): Same.
11395 (ipa_fn_summary_t::duplicate): Same.
11396 (ipa_call_summary_t::duplicate): Same.
11397 (dump_ipa_call_summary): Same.
11398 (ipa_dump_fn_summary): Same.
11399 (eliminated_by_inlining_prob): Same.
11400 (set_cond_stmt_execution_predicate): Same.
11401 (set_switch_stmt_execution_predicate): Same.
11402 (compute_bb_predicates): Same.
11403 (will_be_nonconstant_expr_predicate): Same.
11404 (phi_result_unknown_predicate): Same.
11405 (analyze_function_body): Same.
11406 (compute_fn_summary): Same.
11407 (estimate_edge_devirt_benefit): Same.
11408 (estimate_edge_size_and_time): Same.
11409 (estimate_calls_size_and_time): Same.
11410 (estimate_node_size_and_time): Same.
11411 (remap_edge_change_prob): Same.
11412 (remap_edge_summaries): Same.
11413 (ipa_merge_fn_summary_after_inlining): Same.
11414 (ipa_fn_summary_generate): Same.
11415 (inline_read_section): Same.
11416 (ipa_fn_summary_read): Same.
11417 (ipa_fn_summary_write): Same.
11418 * ipa-fnsummary.h: Same.
11419 * ipa-hsa.c (ipa_hsa_read_section): Same.
11420 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11421 * ipa-icf.c (sem_function::param_used_p): Same.
11422 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11423 * ipa-inline.c (edge_badness): Same.
11424 (inline_small_functions): Same.
11425 * ipa-polymorphic-call.c
11426 (ipa_polymorphic_call_context::stream_out): Same.
11427 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11428 (predicate::remap_after_inlining): Same.
11429 (predicate::stream_out): Same.
11430 * ipa-predicate.h: Same.
11431 * ipa-profile.c (ipa_profile_read_summary): Same.
11432 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11433 (count_formal_params): Same.
11434 (ipa_dump_param): Same.
11435 (ipa_alloc_node_params): Same.
11436 (ipa_print_node_jump_functions_for_edge): Same.
11437 (ipa_print_node_jump_functions): Same.
11438 (ipa_load_from_parm_agg): Same.
11439 (get_ancestor_addr_info): Same.
11440 (ipa_compute_jump_functions_for_edge): Same.
11441 (ipa_analyze_virtual_call_uses): Same.
11442 (ipa_analyze_stmt_uses): Same.
11443 (ipa_analyze_params_uses_in_bb): Same.
11444 (update_jump_functions_after_inlining): Same.
11445 (try_decrement_rdesc_refcount): Same.
11446 (ipa_impossible_devirt_target): Same.
11447 (update_indirect_edges_after_inlining): Same.
11448 (combine_controlled_uses_counters): Same.
11449 (ipa_edge_args_sum_t::duplicate): Same.
11450 (ipa_write_jump_function): Same.
11451 (ipa_write_indirect_edge_info): Same.
11452 (ipa_write_node_info): Same.
11453 (ipa_read_edge_info): Same.
11454 (ipa_prop_read_section): Same.
11455 (read_replacements_section): Same.
11456 * ipa-prop.h (ipa_get_param_count): Same.
11457 (ipa_get_param): Same.
11458 (ipa_get_type): Same.
11459 (ipa_get_param_move_cost): Same.
11460 (ipa_set_param_used): Same.
11461 (ipa_get_controlled_uses): Same.
11462 (ipa_set_controlled_uses): Same.
11463 (ipa_get_cs_argument_count): Same.
11464 * ipa-pure-const.c (analyze_function): Same.
11465 (pure_const_read_summary): Same.
11467 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11468 * ipa-split.c (test_nonssa_use): Same.
11469 (dump_split_point): Same.
11470 (dominated_by_forbidden): Same.
11471 (split_part_set_ssa_name_p): Same.
11472 (find_split_points): Same.
11473 * ira-build.c (finish_loop_tree_nodes): Same.
11474 (low_pressure_loop_node_p): Same.
11475 * ira-color.c (ira_reuse_stack_slot): Same.
11477 * ira.c (setup_reg_equiv): Same.
11478 (print_insn_chain): Same.
11480 * loop-doloop.c (doloop_condition_get): Same.
11482 (record_reg_sets): Same.
11483 (doloop_optimize): Same.
11484 * loop-init.c (loop_optimizer_init): Same.
11485 (fix_loop_structure): Same.
11486 * loop-invariant.c (merge_identical_invariants): Same.
11487 (compute_always_reached): Same.
11488 (find_exits): Same.
11489 (may_assign_reg_p): Same.
11490 (find_invariants_bb): Same.
11491 (find_invariants_body): Same.
11492 (replace_uses): Same.
11493 (can_move_invariant_reg): Same.
11494 (free_inv_motion_data): Same.
11495 (move_single_loop_invariants): Same.
11496 (change_pressure): Same.
11497 (mark_ref_regs): Same.
11498 (calculate_loop_reg_pressure): Same.
11499 * loop-iv.c (biv_entry_hasher::equal): Same.
11500 (iv_extend_to_rtx_code): Same.
11501 (check_iv_ref_table_size): Same.
11502 (clear_iv_info): Same.
11503 (latch_dominating_def): Same.
11504 (iv_get_reaching_def): Same.
11505 (iv_constant): Same.
11511 (get_biv_step): Same.
11513 (analyzed_for_bivness_p): Same.
11514 (record_biv): Same.
11515 (iv_analyze_biv): Same.
11516 (iv_analyze_expr): Same.
11517 (iv_analyze_def): Same.
11518 (iv_analyze_op): Same.
11519 (iv_analyze): Same.
11520 (iv_analyze_result): Same.
11522 (eliminate_implied_conditions): Same.
11523 (simplify_using_initial_values): Same.
11524 (shorten_into_mode): Same.
11525 (canonicalize_iv_subregs): Same.
11526 (determine_max_iter): Same.
11527 (check_simple_exit): Same.
11528 (find_simple_exit): Same.
11529 (get_simple_loop_desc): Same.
11530 * loop-unroll.c (report_unroll): Same.
11531 (decide_unrolling): Same.
11532 (unroll_loops): Same.
11533 (loop_exit_at_end_p): Same.
11534 (decide_unroll_constant_iterations): Same.
11535 (unroll_loop_constant_iterations): Same.
11536 (compare_and_jump_seq): Same.
11537 (unroll_loop_runtime_iterations): Same.
11538 (decide_unroll_stupid): Same.
11539 (unroll_loop_stupid): Same.
11540 (referenced_in_one_insn_in_loop_p): Same.
11541 (reset_debug_uses_in_loop): Same.
11542 (analyze_iv_to_split_insn): Same.
11543 * lra-eliminations.c (lra_debug_elim_table): Same.
11544 (setup_can_eliminate): Same.
11546 (lra_get_elimination_hard_regno): Same.
11547 (lra_eliminate_regs_1): Same.
11548 (eliminate_regs_in_insn): Same.
11549 (update_reg_eliminate): Same.
11550 (init_elimination): Same.
11551 (lra_eliminate): Same.
11553 * lra-lives.c (initiate_live_solver): Same.
11554 * lra-remat.c (create_remat_bb_data): Same.
11555 * lra-spills.c (lra_spill): Same.
11556 * lra.c (lra_set_insn_recog_data): Same.
11557 (lra_set_used_insn_alternative_by_uid): Same.
11558 (init_reg_info): Same.
11559 (expand_reg_info): Same.
11560 * lto-cgraph.c (output_symtab): Same.
11561 (read_identifier): Same.
11562 (get_alias_symbol): Same.
11563 (input_node): Same.
11564 (input_varpool_node): Same.
11566 (input_edge): Same.
11567 (input_cgraph_1): Same.
11568 (input_refs): Same.
11569 (input_symtab): Same.
11570 (input_offload_tables): Same.
11571 (output_cgraph_opt_summary): Same.
11572 (input_edge_opt_summary): Same.
11573 (input_cgraph_opt_section): Same.
11574 * lto-section-in.c (lto_free_raw_section_data): Same.
11575 (lto_create_simple_input_block): Same.
11576 (lto_free_function_in_decl_state_for_node): Same.
11577 * lto-streamer-in.c (lto_tag_check_set): Same.
11578 (lto_location_cache::revert_location_cache): Same.
11579 (lto_location_cache::input_location): Same.
11580 (lto_input_location): Same.
11581 (stream_input_location_now): Same.
11582 (lto_input_tree_ref): Same.
11583 (lto_input_eh_catch_list): Same.
11584 (input_eh_region): Same.
11585 (lto_init_eh): Same.
11586 (make_new_block): Same.
11588 (fixup_call_stmt_edges): Same.
11589 (input_struct_function_base): Same.
11590 (input_function): Same.
11591 (lto_read_body_or_constructor): Same.
11592 (lto_read_tree_1): Same.
11593 (lto_read_tree): Same.
11594 (lto_input_scc): Same.
11595 (lto_input_tree_1): Same.
11596 (lto_input_toplevel_asms): Same.
11597 (lto_input_mode_table): Same.
11598 (lto_reader_init): Same.
11599 (lto_data_in_create): Same.
11600 * lto-streamer-out.c (output_cfg): Same.
11601 * lto-streamer.h: Same.
11602 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11603 (generate_prolog_epilog): Same.
11604 (mark_loop_unsched): Same.
11605 (dump_insn_location): Same.
11606 (loop_canon_p): Same.
11607 (sms_schedule): Same.
11608 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11609 (expand_omp_for_generic): Same.
11610 (expand_omp_for_static_nochunk): Same.
11611 (expand_omp_for_static_chunk): Same.
11612 (expand_omp_simd): Same.
11613 (expand_omp_taskloop_for_inner): Same.
11614 (expand_oacc_for): Same.
11615 (expand_omp_atomic_pipeline): Same.
11616 (mark_loops_in_oacc_kernels_region): Same.
11617 * omp-offload.c (oacc_xform_loop): Same.
11618 * omp-simd-clone.c (simd_clone_adjust): Same.
11619 * optabs-query.c (get_traditional_extraction_insn): Same.
11620 * optabs.c (expand_vector_broadcast): Same.
11621 (expand_binop_directly): Same.
11622 (expand_twoval_unop): Same.
11623 (expand_twoval_binop): Same.
11624 (expand_unop_direct): Same.
11625 (emit_indirect_jump): Same.
11626 (emit_conditional_move): Same.
11627 (emit_conditional_neg_or_complement): Same.
11628 (emit_conditional_add): Same.
11629 (vector_compare_rtx): Same.
11630 (expand_vec_perm_1): Same.
11631 (expand_vec_perm_const): Same.
11632 (expand_vec_cond_expr): Same.
11633 (expand_vec_series_expr): Same.
11634 (maybe_emit_atomic_exchange): Same.
11635 (maybe_emit_sync_lock_test_and_set): Same.
11636 (expand_atomic_compare_and_swap): Same.
11637 (expand_atomic_load): Same.
11638 (expand_atomic_store): Same.
11639 (maybe_emit_op): Same.
11640 (valid_multiword_target_p): Same.
11641 (create_integer_operand): Same.
11642 (maybe_legitimize_operand_same_code): Same.
11643 (maybe_legitimize_operand): Same.
11644 (create_convert_operand_from_type): Same.
11645 (can_reuse_operands_p): Same.
11646 (maybe_legitimize_operands): Same.
11647 (maybe_gen_insn): Same.
11648 (maybe_expand_insn): Same.
11649 (maybe_expand_jump_insn): Same.
11650 (expand_insn): Same.
11651 * optabs.h (create_expand_operand): Same.
11652 (create_fixed_operand): Same.
11653 (create_output_operand): Same.
11654 (create_input_operand): Same.
11655 (create_convert_operand_to): Same.
11656 (create_convert_operand_from): Same.
11658 * poly-int.h: Same.
11659 * predict.c (optimize_insn_for_speed_p): Same.
11660 (optimize_loop_for_size_p): Same.
11661 (optimize_loop_for_speed_p): Same.
11662 (optimize_loop_nest_for_speed_p): Same.
11663 (get_base_value): Same.
11664 (predicted_by_loop_heuristics_p): Same.
11665 (predict_extra_loop_exits): Same.
11666 (predict_loops): Same.
11667 (predict_paths_for_bb): Same.
11668 (predict_paths_leading_to): Same.
11669 (propagate_freq): Same.
11670 (pass_profile::execute): Same.
11672 * profile-count.c (profile_count::differs_from_p): Same.
11673 (profile_probability::differs_lot_from_p): Same.
11674 * profile-count.h: Same.
11675 * profile.c (branch_prob): Same.
11676 * regrename.c (free_chain_data): Same.
11677 (mark_conflict): Same.
11678 (create_new_chain): Same.
11679 (merge_overlapping_regs): Same.
11680 (init_rename_info): Same.
11681 (merge_chains): Same.
11682 (regrename_analyze): Same.
11683 (regrename_do_replace): Same.
11684 (scan_rtx_reg): Same.
11685 (record_out_operands): Same.
11686 (build_def_use): Same.
11687 * regrename.h: Same.
11689 * reload1.c (init_reload): Same.
11690 (maybe_fix_stack_asms): Same.
11691 (copy_reloads): Same.
11692 (count_pseudo): Same.
11693 (count_spilled_pseudo): Same.
11695 (find_reload_regs): Same.
11696 (select_reload_regs): Same.
11697 (spill_hard_reg): Same.
11698 (fixup_eh_region_note): Same.
11699 (set_reload_reg): Same.
11700 (allocate_reload_reg): Same.
11701 (compute_reload_subreg_offset): Same.
11702 (reload_adjust_reg_for_icode): Same.
11703 (emit_input_reload_insns): Same.
11704 (emit_output_reload_insns): Same.
11705 (do_input_reload): Same.
11706 (inherit_piecemeal_p): Same.
11708 * sanopt.c (maybe_get_dominating_check): Same.
11709 (maybe_optimize_ubsan_ptr_ifn): Same.
11710 (can_remove_asan_check): Same.
11711 (maybe_optimize_asan_check_ifn): Same.
11712 (sanopt_optimize_walker): Same.
11713 * sched-deps.c (add_dependence_list): Same.
11714 (chain_to_prev_insn): Same.
11715 (add_insn_mem_dependence): Same.
11716 (create_insn_reg_set): Same.
11717 (maybe_extend_reg_info_p): Same.
11718 (sched_analyze_reg): Same.
11719 (sched_analyze_1): Same.
11720 (get_implicit_reg_pending_clobbers): Same.
11721 (chain_to_prev_insn_p): Same.
11722 (deps_analyze_insn): Same.
11723 (deps_start_bb): Same.
11724 (sched_free_deps): Same.
11726 (init_deps_reg_last): Same.
11728 * sched-ebb.c: Same.
11729 * sched-int.h: Same.
11730 * sched-rgn.c (add_branch_dependences): Same.
11731 (concat_insn_mem_list): Same.
11733 (sched_rgn_compute_dependencies): Same.
11734 * sel-sched-ir.c (reset_target_context): Same.
11735 (copy_deps_context): Same.
11736 (init_id_from_df): Same.
11737 (has_dependence_p): Same.
11738 (change_loops_latches): Same.
11739 (bb_top_order_comparator): Same.
11740 (make_region_from_loop_preheader): Same.
11741 (sel_init_pipelining): Same.
11742 (get_loop_nest_for_rgn): Same.
11743 (make_regions_from_the_rest): Same.
11744 (sel_is_loop_preheader_p): Same.
11745 * sel-sched-ir.h (inner_loop_header_p): Same.
11746 (get_all_loop_exits): Same.
11747 * selftest.h: Same.
11748 * sese.c (sese_build_liveouts): Same.
11749 (sese_insert_phis_for_liveouts): Same.
11750 * sese.h (defined_in_sese_p): Same.
11751 * sreal.c (sreal::stream_out): Same.
11753 * streamer-hooks.h: Same.
11754 * target-globals.c (save_target_globals): Same.
11755 * target-globals.h: Same.
11756 * target.def: Same.
11758 * targhooks.c (default_has_ifunc_p): Same.
11759 (default_empty_mask_is_expensive): Same.
11760 (default_init_cost): Same.
11761 * targhooks.h: Same.
11763 * tree-affine.c (aff_combination_mult): Same.
11764 (aff_combination_expand): Same.
11765 (aff_combination_constant_multiple_p): Same.
11766 * tree-affine.h: Same.
11767 * tree-cfg.c (build_gimple_cfg): Same.
11768 (replace_loop_annotate_in_block): Same.
11769 (replace_uses_by): Same.
11771 (dump_cfg_stats): Same.
11772 (gimple_duplicate_sese_region): Same.
11773 (gimple_duplicate_sese_tail): Same.
11774 (move_block_to_fn): Same.
11775 (replace_block_vars_by_duplicates): Same.
11776 (move_sese_region_to_fn): Same.
11777 (print_loops_bb): Same.
11778 (print_loop): Same.
11779 (print_loops): Same.
11781 (debug_loops): Same.
11782 * tree-cfg.h: Same.
11783 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11784 (chrec_fold_multiply_poly_poly): Same.
11785 (chrec_evaluate): Same.
11786 (chrec_component_in_loop_num): Same.
11787 (reset_evolution_in_loop): Same.
11788 (is_multivariate_chrec): Same.
11789 (chrec_contains_symbols): Same.
11790 (nb_vars_in_chrec): Same.
11791 (chrec_convert_1): Same.
11792 (chrec_convert_aggressive): Same.
11793 * tree-chrec.h: Same.
11794 * tree-core.h: Same.
11795 * tree-data-ref.c (dump_data_dependence_relation): Same.
11796 (canonicalize_base_object_address): Same.
11797 (data_ref_compare_tree): Same.
11798 (prune_runtime_alias_test_list): Same.
11799 (get_segment_min_max): Same.
11800 (create_intersect_range_checks): Same.
11801 (conflict_fn_no_dependence): Same.
11802 (object_address_invariant_in_loop_p): Same.
11803 (analyze_ziv_subscript): Same.
11804 (analyze_siv_subscript_cst_affine): Same.
11805 (analyze_miv_subscript): Same.
11806 (analyze_overlapping_iterations): Same.
11807 (build_classic_dist_vector_1): Same.
11808 (add_other_self_distances): Same.
11809 (same_access_functions): Same.
11810 (build_classic_dir_vector): Same.
11811 (subscript_dependence_tester_1): Same.
11812 (subscript_dependence_tester): Same.
11813 (access_functions_are_affine_or_constant_p): Same.
11814 (get_references_in_stmt): Same.
11815 (loop_nest_has_data_refs): Same.
11816 (graphite_find_data_references_in_stmt): Same.
11817 (find_data_references_in_bb): Same.
11818 (get_base_for_alignment): Same.
11819 (find_loop_nest_1): Same.
11820 (find_loop_nest): Same.
11821 * tree-data-ref.h (dr_alignment): Same.
11822 (ddr_dependence_level): Same.
11823 * tree-if-conv.c (fold_build_cond_expr): Same.
11824 (add_to_predicate_list): Same.
11825 (add_to_dst_predicate_list): Same.
11826 (phi_convertible_by_degenerating_args): Same.
11827 (idx_within_array_bound): Same.
11828 (all_preds_critical_p): Same.
11829 (pred_blocks_visited_p): Same.
11830 (predicate_bbs): Same.
11831 (build_region): Same.
11832 (if_convertible_loop_p_1): Same.
11833 (is_cond_scalar_reduction): Same.
11834 (predicate_scalar_phi): Same.
11835 (remove_conditions_and_labels): Same.
11836 (combine_blocks): Same.
11837 (version_loop_for_if_conversion): Same.
11838 (versionable_outer_loop_p): Same.
11839 (ifcvt_local_dce): Same.
11840 (tree_if_conversion): Same.
11841 (pass_if_conversion::gate): Same.
11842 * tree-if-conv.h: Same.
11843 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11844 * tree-loop-distribution.c (bb_top_order_cmp): Same.
11846 (stmt_has_scalar_dependences_outside_loop): Same.
11847 (copy_loop_before): Same.
11848 (create_bb_after_loop): Same.
11849 (const_with_all_bytes_same): Same.
11850 (generate_memset_builtin): Same.
11851 (generate_memcpy_builtin): Same.
11852 (destroy_loop): Same.
11853 (build_rdg_partition_for_vertex): Same.
11854 (compute_access_range): Same.
11855 (data_ref_segment_size): Same.
11856 (latch_dominated_by_data_ref): Same.
11857 (compute_alias_check_pairs): Same.
11858 (fuse_memset_builtins): Same.
11859 (finalize_partitions): Same.
11860 (find_seed_stmts_for_distribution): Same.
11861 (prepare_perfect_loop_nest): Same.
11862 * tree-parloops.c (lambda_transform_legal_p): Same.
11863 (loop_parallel_p): Same.
11864 (reduc_stmt_res): Same.
11865 (add_field_for_name): Same.
11866 (create_call_for_reduction_1): Same.
11867 (replace_uses_in_bb_by): Same.
11868 (transform_to_exit_first_loop_alt): Same.
11869 (try_transform_to_exit_first_loop_alt): Same.
11870 (transform_to_exit_first_loop): Same.
11872 (gen_parallel_loop): Same.
11873 (gather_scalar_reductions): Same.
11874 (get_omp_data_i_param): Same.
11875 (try_create_reduction_list): Same.
11876 (oacc_entry_exit_single_gang): Same.
11877 (parallelize_loops): Same.
11878 * tree-pass.h: Same.
11879 * tree-predcom.c (determine_offset): Same.
11880 (last_always_executed_block): Same.
11881 (split_data_refs_to_components): Same.
11882 (suitable_component_p): Same.
11883 (valid_initializer_p): Same.
11884 (find_looparound_phi): Same.
11885 (insert_looparound_copy): Same.
11886 (add_looparound_copies): Same.
11887 (determine_roots_comp): Same.
11888 (predcom_tmp_var): Same.
11889 (initialize_root_vars): Same.
11890 (initialize_root_vars_store_elim_1): Same.
11891 (initialize_root_vars_store_elim_2): Same.
11892 (finalize_eliminated_stores): Same.
11893 (initialize_root_vars_lm): Same.
11894 (remove_stmt): Same.
11895 (determine_unroll_factor): Same.
11896 (execute_pred_commoning_cbck): Same.
11897 (base_names_in_chain_on): Same.
11898 (combine_chains): Same.
11899 (pcom_stmt_dominates_stmt_p): Same.
11900 (try_combine_chains): Same.
11901 (prepare_initializers_chain_store_elim): Same.
11902 (prepare_initializers_chain): Same.
11903 (prepare_initializers): Same.
11904 (prepare_finalizers_chain): Same.
11905 (prepare_finalizers): Same.
11906 (insert_init_seqs): Same.
11907 * tree-scalar-evolution.c (loop_phi_node_p): Same.
11908 (compute_overall_effect_of_inner_loop): Same.
11909 (add_to_evolution_1): Same.
11910 (add_to_evolution): Same.
11911 (follow_ssa_edge_binary): Same.
11912 (follow_ssa_edge_expr): Same.
11913 (backedge_phi_arg_p): Same.
11914 (follow_ssa_edge_in_condition_phi_branch): Same.
11915 (follow_ssa_edge_in_condition_phi): Same.
11916 (follow_ssa_edge_inner_loop_phi): Same.
11917 (follow_ssa_edge): Same.
11918 (analyze_evolution_in_loop): Same.
11919 (analyze_initial_condition): Same.
11920 (interpret_loop_phi): Same.
11921 (interpret_condition_phi): Same.
11922 (interpret_rhs_expr): Same.
11923 (interpret_expr): Same.
11924 (interpret_gimple_assign): Same.
11925 (analyze_scalar_evolution_1): Same.
11926 (analyze_scalar_evolution): Same.
11927 (analyze_scalar_evolution_for_address_of): Same.
11928 (get_instantiated_value_entry): Same.
11929 (loop_closed_phi_def): Same.
11930 (instantiate_scev_name): Same.
11931 (instantiate_scev_poly): Same.
11932 (instantiate_scev_binary): Same.
11933 (instantiate_scev_convert): Same.
11934 (instantiate_scev_not): Same.
11935 (instantiate_scev_r): Same.
11936 (instantiate_scev): Same.
11937 (resolve_mixers): Same.
11938 (initialize_scalar_evolutions_analyzer): Same.
11939 (scev_reset_htab): Same.
11940 (scev_reset): Same.
11941 (derive_simple_iv_with_niters): Same.
11942 (simple_iv_with_niters): Same.
11943 (expression_expensive_p): Same.
11944 (final_value_replacement_loop): Same.
11945 * tree-scalar-evolution.h (block_before_loop): Same.
11946 * tree-ssa-address.h: Same.
11947 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
11948 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
11949 (record_edge_info): Same.
11950 * tree-ssa-live.c (var_map_base_fini): Same.
11951 (remove_unused_locals): Same.
11952 * tree-ssa-live.h: Same.
11953 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
11954 (pass_ch_vect::execute): Same.
11955 (pass_ch::process_loop_p): Same.
11956 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
11957 (movement_possibility): Same.
11958 (outermost_invariant_loop): Same.
11960 (determine_max_movement): Same.
11961 (invariantness_dom_walker::before_dom_children): Same.
11962 (move_computations): Same.
11963 (may_move_till): Same.
11964 (force_move_till_op): Same.
11965 (force_move_till): Same.
11966 (memref_free): Same.
11967 (record_mem_ref_loc): Same.
11968 (set_ref_stored_in_loop): Same.
11969 (mark_ref_stored): Same.
11970 (sort_bbs_in_loop_postorder_cmp): Same.
11971 (sort_locs_in_loop_postorder_cmp): Same.
11972 (analyze_memory_references): Same.
11973 (mem_refs_may_alias_p): Same.
11974 (find_ref_loc_in_loop_cmp): Same.
11975 (rewrite_mem_ref_loc::operator): Same.
11976 (first_mem_ref_loc_1::operator): Same.
11977 (sm_set_flag_if_changed::operator): Same.
11978 (execute_sm_if_changed_flag_set): Same.
11979 (execute_sm): Same.
11980 (hoist_memory_references): Same.
11981 (ref_always_accessed::operator): Same.
11982 (refs_independent_p): Same.
11983 (record_dep_loop): Same.
11984 (ref_indep_loop_p_1): Same.
11985 (ref_indep_loop_p): Same.
11986 (can_sm_ref_p): Same.
11987 (find_refs_for_sm): Same.
11988 (loop_suitable_for_sm): Same.
11989 (store_motion_loop): Same.
11990 (store_motion): Same.
11991 (fill_always_executed_in): Same.
11992 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
11993 (estimated_unrolled_size): Same.
11994 (loop_edge_to_cancel): Same.
11995 (remove_exits_and_undefined_stmts): Same.
11996 (remove_redundant_iv_tests): Same.
11997 (unloop_loops): Same.
11998 (estimated_peeled_sequence_size): Same.
11999 (try_peel_loop): Same.
12000 (canonicalize_loop_induction_variables): Same.
12001 (canonicalize_induction_variables): Same.
12002 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12004 (stmt_after_inc_pos): Same.
12005 (contains_abnormal_ssa_name_p): Same.
12006 (niter_for_exit): Same.
12009 (find_givs_in_bb): Same.
12010 (find_induction_variables): Same.
12011 (find_interesting_uses_cond): Same.
12012 (outermost_invariant_loop_for_expr): Same.
12013 (idx_find_step): Same.
12014 (add_candidate_1): Same.
12015 (add_iv_candidate_derived_from_uses): Same.
12016 (alloc_use_cost_map): Same.
12017 (prepare_decl_rtl): Same.
12018 (generic_predict_doloop_p): Same.
12019 (computation_cost): Same.
12020 (determine_common_wider_type): Same.
12021 (get_computation_aff_1): Same.
12022 (get_use_type): Same.
12023 (determine_group_iv_cost_address): Same.
12025 (difference_cannot_overflow_p): Same.
12026 (may_eliminate_iv): Same.
12027 (determine_set_costs): Same.
12028 (cheaper_cost_pair): Same.
12029 (compare_cost_pair): Same.
12030 (iv_ca_cand_for_group): Same.
12031 (iv_ca_recount_cost): Same.
12032 (iv_ca_set_remove_invs): Same.
12033 (iv_ca_set_no_cp): Same.
12034 (iv_ca_set_add_invs): Same.
12035 (iv_ca_set_cp): Same.
12036 (iv_ca_add_group): Same.
12037 (iv_ca_cost): Same.
12038 (iv_ca_compare_deps): Same.
12039 (iv_ca_delta_reverse): Same.
12040 (iv_ca_delta_commit): Same.
12041 (iv_ca_cand_used_p): Same.
12042 (iv_ca_delta_free): Same.
12044 (iv_ca_free): Same.
12045 (iv_ca_dump): Same.
12046 (iv_ca_extend): Same.
12047 (iv_ca_narrow): Same.
12048 (iv_ca_prune): Same.
12049 (cheaper_cost_with_cand): Same.
12050 (iv_ca_replace): Same.
12051 (try_add_cand_for): Same.
12052 (get_initial_solution): Same.
12053 (try_improve_iv_set): Same.
12054 (find_optimal_iv_set_1): Same.
12055 (create_new_iv): Same.
12056 (rewrite_use_compare): Same.
12057 (remove_unused_ivs): Same.
12058 (determine_scaling_factor): Same.
12059 * tree-ssa-loop-ivopts.h: Same.
12060 * tree-ssa-loop-manip.c (create_iv): Same.
12061 (compute_live_loop_exits): Same.
12062 (add_exit_phi): Same.
12063 (add_exit_phis): Same.
12064 (find_uses_to_rename_use): Same.
12065 (find_uses_to_rename_def): Same.
12066 (find_uses_to_rename_in_loop): Same.
12067 (rewrite_into_loop_closed_ssa): Same.
12068 (check_loop_closed_ssa_bb): Same.
12069 (split_loop_exit_edge): Same.
12070 (ip_end_pos): Same.
12071 (ip_normal_pos): Same.
12072 (copy_phi_node_args): Same.
12073 (gimple_duplicate_loop_to_header_edge): Same.
12074 (can_unroll_loop_p): Same.
12075 (determine_exit_conditions): Same.
12076 (scale_dominated_blocks_in_loop): Same.
12077 (niter_for_unrolled_loop): Same.
12078 (tree_transform_and_unroll_loop): Same.
12079 (rewrite_all_phi_nodes_with_iv): Same.
12080 * tree-ssa-loop-manip.h: Same.
12081 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12082 (number_of_iterations_ne): Same.
12083 (assert_no_overflow_lt): Same.
12084 (assert_loop_rolls_lt): Same.
12085 (number_of_iterations_lt): Same.
12086 (adjust_cond_for_loop_until_wrap): Same.
12087 (tree_simplify_using_condition): Same.
12088 (simplify_using_initial_conditions): Same.
12089 (simplify_using_outer_evolutions): Same.
12090 (loop_only_exit_p): Same.
12091 (ssa_defined_by_minus_one_stmt_p): Same.
12092 (number_of_iterations_popcount): Same.
12093 (number_of_iterations_exit): Same.
12094 (find_loop_niter): Same.
12095 (finite_loop_p): Same.
12096 (chain_of_csts_start): Same.
12097 (get_val_for): Same.
12098 (loop_niter_by_eval): Same.
12099 (derive_constant_upper_bound_ops): Same.
12100 (do_warn_aggressive_loop_optimizations): Same.
12101 (record_estimate): Same.
12102 (get_cst_init_from_scev): Same.
12103 (record_nonwrapping_iv): Same.
12104 (idx_infer_loop_bounds): Same.
12105 (infer_loop_bounds_from_ref): Same.
12106 (infer_loop_bounds_from_array): Same.
12107 (infer_loop_bounds_from_pointer_arith): Same.
12108 (infer_loop_bounds_from_signedness): Same.
12109 (bound_index): Same.
12110 (discover_iteration_bound_by_body_walk): Same.
12111 (maybe_lower_iteration_bound): Same.
12112 (estimate_numbers_of_iterations): Same.
12113 (estimated_loop_iterations): Same.
12114 (estimated_loop_iterations_int): Same.
12115 (max_loop_iterations): Same.
12116 (max_loop_iterations_int): Same.
12117 (likely_max_loop_iterations): Same.
12118 (likely_max_loop_iterations_int): Same.
12119 (estimated_stmt_executions_int): Same.
12120 (max_stmt_executions): Same.
12121 (likely_max_stmt_executions): Same.
12122 (estimated_stmt_executions): Same.
12123 (stmt_dominates_stmt_p): Same.
12124 (nowrap_type_p): Same.
12125 (loop_exits_before_overflow): Same.
12126 (scev_var_range_cant_overflow): Same.
12127 (scev_probably_wraps_p): Same.
12128 (free_numbers_of_iterations_estimates): Same.
12129 * tree-ssa-loop-niter.h: Same.
12130 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12131 (idx_analyze_ref): Same.
12132 (analyze_ref): Same.
12133 (gather_memory_references_ref): Same.
12134 (mark_nontemporal_store): Same.
12135 (emit_mfence_after_loop): Same.
12136 (may_use_storent_in_loop_p): Same.
12137 (mark_nontemporal_stores): Same.
12138 (should_unroll_loop_p): Same.
12139 (volume_of_dist_vector): Same.
12140 (add_subscript_strides): Same.
12141 (self_reuse_distance): Same.
12142 (insn_to_prefetch_ratio_too_small_p): Same.
12143 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12144 (patch_loop_exit): Same.
12145 (find_or_create_guard_phi): Same.
12146 (easy_exit_values): Same.
12147 (connect_loop_phis): Same.
12148 (connect_loops): Same.
12149 (compute_new_first_bound): Same.
12150 (split_loop): Same.
12151 (tree_ssa_split_loops): Same.
12152 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12153 (is_maybe_undefined): Same.
12154 (tree_may_unswitch_on): Same.
12155 (simplify_using_entry_checks): Same.
12156 (tree_unswitch_single_loop): Same.
12157 (tree_unswitch_loop): Same.
12158 (tree_unswitch_outer_loop): Same.
12159 (empty_bb_without_guard_p): Same.
12160 (used_outside_loop_p): Same.
12161 (get_vop_from_header): Same.
12162 (hoist_guard): Same.
12163 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12164 (get_lsm_tmp_name): Same.
12165 * tree-ssa-loop.h: Same.
12166 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12167 (build_and_add_sum): Same.
12168 (no_side_effect_bb): Same.
12170 (linearize_expr): Same.
12171 (should_break_up_subtract): Same.
12172 (linearize_expr_tree): Same.
12173 * tree-ssa-scopedtables.c: Same.
12174 * tree-ssa-scopedtables.h: Same.
12175 * tree-ssa-structalias.c (condense_visit): Same.
12176 (label_visit): Same.
12177 (dump_pred_graph): Same.
12178 (perform_var_substitution): Same.
12179 (move_complex_constraints): Same.
12180 (remove_preds_and_fake_succs): Same.
12181 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12182 (determine_bb_domination_status): Same.
12183 (duplicate_thread_path): Same.
12184 (thread_through_all_blocks): Same.
12185 * tree-ssa-threadupdate.h: Same.
12186 * tree-streamer-in.c (streamer_read_string_cst): Same.
12187 (input_identifier): Same.
12188 (unpack_ts_type_common_value_fields): Same.
12189 (unpack_ts_block_value_fields): Same.
12190 (unpack_ts_translation_unit_decl_value_fields): Same.
12191 (unpack_ts_omp_clause_value_fields): Same.
12192 (streamer_read_tree_bitfields): Same.
12193 (streamer_alloc_tree): Same.
12194 (lto_input_ts_common_tree_pointers): Same.
12195 (lto_input_ts_vector_tree_pointers): Same.
12196 (lto_input_ts_poly_tree_pointers): Same.
12197 (lto_input_ts_complex_tree_pointers): Same.
12198 (lto_input_ts_decl_minimal_tree_pointers): Same.
12199 (lto_input_ts_decl_common_tree_pointers): Same.
12200 (lto_input_ts_decl_non_common_tree_pointers): Same.
12201 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12202 (lto_input_ts_field_decl_tree_pointers): Same.
12203 (lto_input_ts_function_decl_tree_pointers): Same.
12204 (lto_input_ts_type_common_tree_pointers): Same.
12205 (lto_input_ts_type_non_common_tree_pointers): Same.
12206 (lto_input_ts_list_tree_pointers): Same.
12207 (lto_input_ts_vec_tree_pointers): Same.
12208 (lto_input_ts_exp_tree_pointers): Same.
12209 (lto_input_ts_block_tree_pointers): Same.
12210 (lto_input_ts_binfo_tree_pointers): Same.
12211 (lto_input_ts_constructor_tree_pointers): Same.
12212 (lto_input_ts_omp_clause_tree_pointers): Same.
12213 (streamer_read_tree_body): Same.
12214 * tree-streamer.h: Same.
12215 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12216 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12217 (vect_analyze_possibly_independent_ddr): Same.
12218 (vect_analyze_data_ref_dependence): Same.
12219 (vect_compute_data_ref_alignment): Same.
12220 (vect_enhance_data_refs_alignment): Same.
12221 (vect_analyze_data_ref_access): Same.
12222 (vect_check_gather_scatter): Same.
12223 (vect_find_stmt_data_reference): Same.
12224 (vect_create_addr_base_for_vector_ref): Same.
12225 (vect_setup_realignment): Same.
12226 (vect_supportable_dr_alignment): Same.
12227 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12228 (adjust_phi_and_debug_stmts): Same.
12229 (vect_set_loop_mask): Same.
12230 (add_preheader_seq): Same.
12231 (vect_maybe_permute_loop_masks): Same.
12232 (vect_set_loop_masks_directly): Same.
12233 (vect_set_loop_condition_masked): Same.
12234 (vect_set_loop_condition_unmasked): Same.
12235 (slpeel_duplicate_current_defs_from_edges): Same.
12236 (slpeel_add_loop_guard): Same.
12237 (slpeel_can_duplicate_loop_p): Same.
12238 (create_lcssa_for_virtual_phi): Same.
12240 (vect_update_ivs_after_vectorizer): Same.
12241 (vect_gen_vector_loop_niters_mult_vf): Same.
12242 (slpeel_update_phi_nodes_for_loops): Same.
12243 (slpeel_update_phi_nodes_for_guard1): Same.
12244 (find_guard_arg): Same.
12245 (slpeel_update_phi_nodes_for_guard2): Same.
12246 (slpeel_update_phi_nodes_for_lcssa): Same.
12247 (vect_do_peeling): Same.
12248 (vect_create_cond_for_alias_checks): Same.
12249 (vect_loop_versioning): Same.
12250 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12251 (vect_inner_phi_in_double_reduction_p): Same.
12252 (vect_analyze_scalar_cycles_1): Same.
12253 (vect_fixup_scalar_cycles_with_patterns): Same.
12254 (vect_get_loop_niters): Same.
12255 (bb_in_loop_p): Same.
12256 (vect_get_max_nscalars_per_iter): Same.
12257 (vect_verify_full_masking): Same.
12258 (vect_compute_single_scalar_iteration_cost): Same.
12259 (vect_analyze_loop_form_1): Same.
12260 (vect_analyze_loop_form): Same.
12261 (vect_active_double_reduction_p): Same.
12262 (vect_analyze_loop_operations): Same.
12263 (neutral_op_for_slp_reduction): Same.
12264 (vect_is_simple_reduction): Same.
12265 (vect_model_reduction_cost): Same.
12266 (get_initial_def_for_reduction): Same.
12267 (get_initial_defs_for_reduction): Same.
12268 (vect_create_epilog_for_reduction): Same.
12269 (vectorize_fold_left_reduction): Same.
12270 (vectorizable_reduction): Same.
12271 (vectorizable_induction): Same.
12272 (vectorizable_live_operation): Same.
12273 (loop_niters_no_overflow): Same.
12274 (vect_get_loop_mask): Same.
12275 (vect_transform_loop_stmt): Same.
12276 (vect_transform_loop): Same.
12277 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12278 (vect_determine_precisions): Same.
12279 (vect_pattern_recog_1): Same.
12280 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12281 * tree-vect-stmts.c (stmt_vectype): Same.
12282 (process_use): Same.
12283 (vect_init_vector_1): Same.
12284 (vect_truncate_gather_scatter_offset): Same.
12285 (get_group_load_store_type): Same.
12286 (vect_build_gather_load_calls): Same.
12287 (vect_get_strided_load_store_ops): Same.
12288 (vectorizable_simd_clone_call): Same.
12289 (vectorizable_store): Same.
12290 (permute_vec_elements): Same.
12291 (vectorizable_load): Same.
12292 (vect_transform_stmt): Same.
12293 (supportable_widening_operation): Same.
12294 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12295 (vec_info::free_stmt_vec_info): Same.
12296 (vect_free_loop_info_assumptions): Same.
12297 (vect_loop_vectorized_call): Same.
12298 (set_uid_loop_bbs): Same.
12299 (vectorize_loops): Same.
12300 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12301 * tree.c (add_tree_to_fld_list): Same.
12302 (fld_type_variant_equal_p): Same.
12303 (fld_decl_context): Same.
12304 (fld_incomplete_type_of): Same.
12305 (free_lang_data_in_binfo): Same.
12306 (need_assembler_name_p): Same.
12307 (find_decls_types_r): Same.
12308 (get_eh_types_for_runtime): Same.
12309 (find_decls_types_in_eh_region): Same.
12310 (find_decls_types_in_node): Same.
12311 (assign_assembler_name_if_needed): Same.
12312 * value-prof.c (stream_out_histogram_value): Same.
12313 * value-prof.h: Same.
12314 * var-tracking.c (use_narrower_mode): Same.
12315 (prepare_call_arguments): Same.
12316 (vt_expand_loc_callback): Same.
12317 (resolve_expansions_pending_recursion): Same.
12318 (vt_expand_loc): Same.
12319 * varasm.c (const_hash_1): Same.
12320 (compare_constant): Same.
12321 (tree_output_constant_def): Same.
12322 (simplify_subtraction): Same.
12323 (get_pool_constant): Same.
12324 (output_constant_pool_2): Same.
12325 (output_constant_pool_1): Same.
12326 (mark_constants_in_pattern): Same.
12327 (mark_constant_pool): Same.
12328 (get_section_anchor): Same.
12329 * vr-values.c (compare_range_with_value): Same.
12330 (vr_values::extract_range_from_phi_node): Same.
12331 * vr-values.h: Same.
12332 * web.c (unionfind_union): Same.
12333 * wide-int.h: Same.
12335 2019-07-09 Martin Sebor <msebor@redhat.com>
12338 * align.h: Change class-key from class to struct and vice versa
12339 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12340 * alloc-pool.h: Same.
12341 * asan.c (shadow_mem_size): Same.
12342 * auto-profile.c: Same.
12343 * basic-block.h: Same.
12345 * cfgexpand.c (set_rtl): Same.
12346 (expand_one_stack_var_at): Same.
12347 * cfghooks.h: Same.
12350 * config/i386/i386.h: Same.
12351 * df-problems.c (df_print_bb_index): Same.
12353 * df.h (df_single_use): Same.
12354 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12355 (layout::annotation_line_showed_range_p): Same.
12356 (get_printed_columns): Same.
12357 (correction::ensure_terminated): Same.
12358 (line_corrections::~line_corrections): Same.
12361 * dump-context.h: Same.
12362 * dumpfile.h: Same.
12363 * dwarf2out.c: Same.
12364 * edit-context.c: Same.
12365 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12367 * function.c (assign_stack_local): Same.
12368 * function.h: Same.
12370 * gcov.c (block_info::block_info): Same.
12371 * genattrtab.c: Same.
12372 * genextract.c: Same.
12373 * genmatch.c (comparison_code_p): Same.
12374 (id_base::id_base): Same.
12375 (decision_tree::print): Same.
12376 * genoutput.c: Same.
12377 * genpreds.c (write_one_predicate_function): Same.
12378 * genrecog.c (validate_pattern): Same.
12379 (find_operand_positions): Same.
12380 (optimize_subroutine_group): Same.
12381 (merge_pattern_transition::merge_pattern_transition): Same.
12382 (merge_pattern_info::merge_pattern_info): Same.
12383 (merge_state_result::merge_state_result): Same.
12384 (merge_into_state): Same.
12385 * gensupport.c: Same.
12386 * gensupport.h: Same.
12387 * ggc-common.c (init_ggc_heuristics): Same.
12388 * ggc-tests.c (test_union): Same.
12389 * gimple-loop-interchange.cc (dump_induction): Same.
12390 * gimple-loop-versioning.cc: Same.
12391 * gimple-match.h (gimple_match_cond::any_else): Same.
12392 * gimple-ssa-backprop.c: Same.
12393 * gimple-ssa-sprintf.c: Same.
12394 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12396 (store_immediate_info::store_immediate_info): Same.
12397 (merged_store_group::apply_stores): Same.
12398 (get_location_for_stmts): Same.
12399 * gimple-ssa-strength-reduction.c: Same.
12400 * gimple-ssa-warn-alloca.c: Same.
12401 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12402 * godump.c (go_type_decl): Same.
12403 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12404 * hash-map.h: Same.
12405 * hash-set-tests.c (test_set_of_strings): Same.
12406 * hsa-brig.c: Same.
12407 * hsa-common.h: Same.
12408 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12409 * input.c (assert_loceq): Same.
12412 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12413 * ipa-fnsummary.h: Same.
12414 * ipa-inline.h: Same.
12415 * ipa-prop.h: Same.
12416 * ipa-split.c (visit_bb): Same.
12417 * ira-int.h (minmax_set_iter_next): Same.
12418 * loop-invariant.c: Same.
12420 * lra-eliminations.c: Same.
12422 * lra-lives.c (mark_regno_dead): Same.
12423 * lra-remat.c: Same.
12424 * lra-spills.c: Same.
12425 * lto-streamer.h: Same.
12426 * mem-stats.h: Same.
12427 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12428 * omp-low.c (omp_clause_aligned_alignment): Same.
12429 * optabs-query.h (get_vcond_eq_icode): Same.
12431 * opts.c (wrap_help): Same.
12432 * poly-int.h: Same.
12433 * predict.c (predict_paths_leading_to_edge): Same.
12434 * pretty-print.h: Same.
12435 * profile-count.h: Same.
12437 * read-rtl-function.c: Same.
12440 * regrename.c: Same.
12441 * regrename.h: Same.
12443 * rtl-iter.h: Same.
12444 * rtl.h (costs_add_n_insns): Same.
12446 * sched-int.h: Same.
12447 * sel-sched-ir.h: Same.
12448 * selftest.h: Same.
12449 * sese.h (vec_find): Same.
12451 * target-globals.h: Same.
12452 * tree-affine.c (aff_combination_find_elt): Same.
12453 * tree-affine.h: Same.
12454 * tree-data-ref.h: Same.
12455 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12456 * tree-predcom.c: Same.
12457 * tree-scalar-evolution.c (find_var_scev_info): Same.
12458 * tree-ssa-alias.h: Same.
12459 * tree-ssa-ccp.c: Same.
12460 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12461 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12462 (rewrite_mem_refs): Same.
12463 (execute_sm_if_changed): Same.
12464 (hoist_memory_references): Same.
12465 * tree-ssa-loop-ivopts.c (operator<=): Same.
12466 * tree-ssa-loop.h: Same.
12467 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12468 * tree-ssa-structalias.c: Same.
12469 * tree-switch-conversion.h (cluster::cluster): Same.
12470 (simple_cluster::simple_cluster): Same.
12471 * tree-vect-patterns.c (type_conversion_p): Same.
12472 * tree-vectorizer.c (dump_stmt_cost): Same.
12473 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12474 * tree.c (protected_set_expr_location): Same.
12475 * tree.h (desired_pro_or_demotion_p): Same.
12476 (fndecl_built_in_p): Same.
12477 * unique-ptr-tests.cc: Same.
12478 * var-tracking.c (delete_variable_part): Same.
12479 * varasm.c (assemble_real): Same.
12480 (tree_output_constant_def): Same.
12482 * wide-int-bitmask.h: Same.
12483 * wide-int.h (decompose): Same.
12485 2019-07-09 Richard Biener <rguenther@suse.de>
12487 PR tree-optimization/91114
12488 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12489 find a vector type isn't fatal.
12491 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12493 * config/aarch64/aarch64-simd.md
12494 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12495 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12496 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12497 (*aarch64_crypto_aese_fused,
12498 *aarch64_crypto_aesd_fused): Update to new definition.
12499 * config/aarch64/aarch64.c
12500 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12502 2019-07-09 Richard Biener <rguenther@suse.de>
12504 * gimple-match.h (gimple_match_op::resimplify): New.
12505 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12506 gimple_resimplify4, gimple_resimplify5): Remove.
12507 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12508 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12510 (gimple_match_op::resimplify): New.
12511 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12512 according to availability. Use gimple_match_op::resimplify.
12514 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12516 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12518 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12520 * config/arm/crypto.md:
12521 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12522 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12523 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12524 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12526 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12527 * config/arm/aarch-common-protos.h
12528 (aarch_crypto_can_dual_issue): Remove.
12529 * config/arm/aarch-common.c
12530 (aarch_crypto_can_dual_issue): Likewise.
12531 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12532 * config/arm/cortex-a53.md: Likewise.
12533 * config/arm/cortex-a57.md: Likewise.
12534 * config/arm/iterators.md:
12535 (CRYPTO_BINARY): Redefine.
12536 (CRYPTO_UNARY): Removed.
12537 (CRYPTO_AES, CRYPTO_AESMC): New.
12539 2019-07-09 Richard Biener <rguenther@suse.de>
12541 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12542 (vn_reference_lookup_3): If the main ref has no access path recorded
12543 but orig_ref has use it to do access-path based disambiguation.
12544 (vn_reference_lookup_pieces): Adjust.
12545 (vn_reference_lookup): Pass down original ref if we valueized.
12547 2019-07-09 Martin Liska <mliska@suse.cz>
12549 * doc/extend.texi: Document influence on loop
12552 2019-07-09 Martin Liska <mliska@suse.cz>
12554 * lto-compress.c (lto_normalized_zstd_level): Do not use
12555 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12556 of libzstd. One can use 0 as a default compression level.
12558 2019-07-09 Martin Liska <mliska@suse.cz>
12560 * doc/invoke.texi: Add link from -fprofile-dir option.
12561 Use better wording for 'gcno filename'.
12563 2019-07-08 Martin Sebor <msebor@redhat.com>
12565 PR middle-end/71924
12566 PR middle-end/90549
12567 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12569 (args_loc_t): New type.
12570 (args_loc_t, locmap_t): same.
12571 (diag_returned_locals): New function.
12572 (is_addr_local): Same.
12573 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12574 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12575 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12577 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12579 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12580 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12581 and casts in offset when different, both through gimple stmts
12582 and through trees. Rewritten using loops to minimize code duplication
12585 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12587 * emit-rtl.c (set_insn_locations): New function moved from...
12588 * function.c (set_insn_locations): ...here.
12589 * ira-emit.c (emit_moves): Propagate location of the first instruction
12590 to the inserted move instructions.
12591 * reg-stack.c (compensate_edge): Set the location if the sequence is
12592 inserted on the edge.
12593 * rtl.h (set_insn_locations): Declare.
12595 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12597 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12598 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12601 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12603 PR rtl-optimization/88233
12604 * common.opt (fsplit-wide-types-early): New option.
12605 * common/config/rs6000/rs6000-common.c
12606 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12608 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12609 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12610 flag_split_wide_types_early.
12611 (pass_data_lower_subreg3): New.
12612 (pass_lower_subreg3): New.
12613 (make_pass_lower_subreg3): New.
12614 * passes.def (pass_lower_subreg2): Move after the loop passes.
12615 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12616 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12617 the pass pipeline; its previous place is taken by ...
12618 (make_pass_lower_subreg3): ... this.
12620 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12622 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12623 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12625 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12627 * config/s390/constraints.md: Add new jsc constraint.
12628 * config/s390/predicates.md: New predicates.
12629 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12630 * config/s390/s390.c (s390_valid_shift_count): New function.
12631 (print_shift_count_operand): Use s390_valid_shift_count.
12632 (print_operand): Likewise.
12633 * config/s390/s390.md: Use new predicate.
12634 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12635 * config/s390/vector.md: Use new predicate.
12637 2019-07-08 Andrew Waterman <andrew@sifive.com>
12638 Jim Wilson <jimw@sifive.com>
12640 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12641 bitsize instead of BITS_PER_WORD.
12643 2019-07-08 Martin Liska <mliska@suse.cz>
12645 * collect2.c (defined): Revert to before r254460.
12646 (scan_prog_file): Revert to before r254460.
12648 2019-07-08 Richard Biener <rguenther@suse.de>
12650 PR tree-optimization/83518
12651 * tree-ssa-sccvn.c: Include splay-tree.h.
12652 (struct pd_range, struct pd_data): New.
12653 (struct vn_walk_cb_data): Add data to track partial definitions.
12654 (vn_walk_cb_data::~vn_walk_cb_data): New.
12655 (vn_walk_cb_data::push_partial_def): New.
12656 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12657 (vn_reference_lookup_2): When partial defs are registered give up.
12658 (vn_reference_lookup_3): Track partial defs for memset and
12659 constructor zeroing and for defs from constants.
12661 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12663 * doc/install.texi (bootstrap-Og): Document.
12665 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12667 * config/riscv/pic.md (*local_pic_load_s<mode>)
12668 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12669 referenced by <mode>, giving...
12670 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12671 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12672 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12673 use <X:MODE> for the mode attribute.
12675 2019-07-07 Jeff Law <law@redhat.com>
12677 PR tree-optimization/91090
12678 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12679 in handling of ranges to simplify switch statements.
12681 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12683 * config/darwin.c (darwin_override_options): Make a final check on PIC
12686 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12688 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12689 on for kernel code.
12691 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12694 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12695 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12696 instead of matching them to "l" output operands.
12698 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12700 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12701 and check whether addr.reg is nonnull before using it.
12703 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12705 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12706 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12707 variable(s). For conditional lastprivate look through outer
12708 GIMPLE_OMP_SCAN context.
12709 (lower_omp_1): For conditional lastprivate look through outer
12710 GIMPLE_OMP_SCAN context.
12712 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12713 member to combined_into_simd_safelen1.
12714 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12715 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12716 clauses if ctx->combined_into_simd_safelen1 put statements after the
12717 predicate conditionalized block rather than into it.
12719 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12721 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12723 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12724 Make the choice of <mode> explicit, giving...
12725 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12727 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12729 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12730 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12732 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12733 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12734 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12735 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12736 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12737 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12738 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12739 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12740 (*avx512f_scatterdi<mode>): Likewise.
12741 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12743 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12745 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12746 specify the mode iterator referenced by <mode>, giving...
12747 (*push1_h8300hs_<QHI:mode>): ...this.
12749 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12751 * config/gcn/gcn-valu.md
12752 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12753 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12754 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12755 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12756 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12757 but using the _exec comparison patterns.
12758 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12759 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12760 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12761 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12762 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12763 but using the _exec comparison patterns.
12765 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12767 * config/arm/sync.md
12768 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12769 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12770 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12771 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12772 <SIDI:cas_cmp_str>.
12774 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12776 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12777 (maybe_lookup_ctx): Add forward declaration.
12778 (omp_find_scan): Likewise. Walk into body of simd if composited
12779 with worksharing loop.
12780 (scan_omp_simd_scan): New function.
12781 (scan_omp_1_stmt): Call it.
12782 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12783 ctx->for_simd_scan_phase.
12784 (lower_rec_input_clauses): Do much less work for inscan reductions
12785 in ctx->for_simd_scan_phase is_simd regions.
12786 (lower_omp_scan): Set is_simd also on simd constructs composited
12787 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
12788 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
12789 emit their body after in simd constructs composited with worksharing
12791 (lower_omp_for_scan): Handle worksharing loop composited with simd.
12793 * omp-low.c (omp_find_scan): Make static.
12794 (lower_omp_for_scan): Fix order of merge arguments in input phase of
12795 the second loop, var2 represents the first partial sum and so needs
12796 to go before rprivb[ivar].
12798 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
12800 * config/rs6000/rs6000-logue.c: Remove unused code.
12802 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12804 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12806 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
12809 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12810 check with a frame laid out check.
12812 2019-07-05 Richard Biener <rguenther@suse.de>
12814 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12815 when comparing against a store with possibly the same value.
12817 2019-07-05 Richard Biener <rguenther@suse.de>
12819 PR tree-optimization/91091
12820 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12821 (walk_non_aliased_vuses): Likewise.
12822 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12823 (get_continuation_for_phi): New tbaa_p parameter and pass
12825 (walk_non_aliased_vuses): Likewise.
12826 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12827 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12828 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12830 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12831 (adjust_offsets_for_equal_base_address): New function.
12832 (vn_reference_lookup_3): Use it to catch more base equivalences.
12833 Handle and pass down tbaa_p flag.
12834 (vn_reference_lookup_pieces): Adjust.
12835 (vn_reference_lookup): Remove alias-set altering, instead pass
12836 down false as tbaa_p.
12838 2019-07-05 Richard Biener <rguenther@suse.de>
12840 PR tree-optimization/91091
12841 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12842 accesses can happen with -fno-strict-aliasing.
12844 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
12846 * tree-ssa-alias.c (alias_stats): Add
12847 nonoverlapping_component_refs_since_match_p_must_overlap.
12848 (dump_alias_stats): Print it.
12849 (nonoverlapping_component_refs_since_match_p): Add early exit.
12850 (nonoverlapping_component_refs_p): Do not account early exit.
12852 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12854 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
12855 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
12856 (emit_eh_dispatch): Delete.
12857 (lower_catch): Emit the eh_dispatch manually and set the location of
12858 the first catch statement onto it.
12859 (lower_eh_filter): Emit the eh_dispatch manually and set location.
12860 (lower_eh_dispatch): Propagate location.
12861 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
12862 (eliminate_build): Likewise.
12864 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12866 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
12867 phi nodes if possible.
12868 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
12869 location info on the newly created statement.
12870 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
12871 newly created increment if needed.
12873 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12875 PR middle-end/78884
12876 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
12877 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
12878 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
12879 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
12880 ctx->add_safelen1 is set.
12882 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
12883 GOMP_loop_start at the start of second worksharing loop in a scan.
12884 For nowait, don't emit GOMP_loop_end_nowait at the end of first
12885 worksharing loop in a scan even if there are conditional lastprivates,
12886 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
12888 2019-07-04 Jan Hubicka <jh@suse.cz>
12890 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
12891 Fix check for match in the ref walk.
12893 2019-07-04 Martin Liska <mliska@suse.cz>
12895 * tree-ssa-loop-niter.c
12896 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
12897 (estimate_numbers_of_iterations):
12898 Support __builtin_expect_with_probability for analysis
12899 of # of loop iterations.
12901 2019-07-04 Alexandre Oliva <oliva@adacore.com>
12903 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
12904 * except.c: Likewise.
12905 * expr.c (expand_expr_real_1): Reject it.
12906 * gimplify.c (gimplify_expr): Gimplify it, within
12908 * tree-dump.c (dequeue_and_dump): Dump it.
12909 * tree-pretty-print.c (dump_generic_node): Likewise.
12910 * tree.c (block_may_fallthru): Handle it.
12911 * tree.def (EH_ELSE_EXPR): Introduce it.
12912 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
12913 with GIMPLE_EH_ELSE as try/finally/else.
12915 2019-07-04 Richard Biener <rguenther@suse.de>
12918 * tree-pass.h (execute_all_ipa_transforms): Add a flag
12919 parameter whether to disable GC collection.
12920 * passes.c (execute_one_ipa_transform_pass): Likewise, and
12922 (execute_all_ipa_transforms): Likewise and pass it down.
12923 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
12924 collection from applying IPA transforms.
12925 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
12926 from applying IPA transforms.
12928 2019-07-04 Richard Biener <rguenther@suse.de>
12930 PR tree-optimization/90911
12931 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
12932 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
12933 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12934 scalar_loop_scaling.
12935 (vect_transform_loop): Scale scalar loop profile if needed.
12936 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
12937 the loop copy from if-conversion adjust edge probabilities
12938 and scale the vectorized loop body profile, queue the scalar
12939 profile for updating after peeling.
12941 2019-07-04 Jan Hubicka <jh@suse.cz>
12943 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
12944 parameters; return early for must-alias.
12945 (indirect_ref_may_alias_decl_p): Likewise; when establishing
12946 outer types match, try nonoverlapping_component_refs
12947 if must-alias is not obvious.
12948 (indirect_refs_may_alias_p): Likewise.
12949 (refs_may_alias_p_2): Likewise.
12951 2019-07-04 Richard Biener <rguenther@suse.de>
12953 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
12955 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
12957 (struct vn_walk_cb_data): New callback data struct.
12958 (vn_reference_lookup_2): Adjust.
12959 (vn_reference_lookup_3): Likewise.
12960 (vn_reference_lookup_pieces): Likewise.
12961 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
12962 (visit_reference_op_load): Adjust.
12964 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12966 PR tree-optimization/91063
12967 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
12968 stmt from stmts sequence before calling vect_init_vector_1.
12971 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12974 * fwprop.c (reg_single_def_p): New function.
12975 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
12976 (forward_propagate_into): New parameter reg_prop_only
12977 with default value false.
12978 Propagate def's src into loop only if SET_SRC and SET_DEST
12979 of def_set have single definitions.
12980 Likewise if reg_prop_only is set to true.
12981 (fwprop): New param fwprop_addr_p.
12982 Integrate fwprop_addr into fwprop.
12983 (fwprop_addr): Remove.
12984 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
12986 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
12987 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
12988 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
12990 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12992 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
12993 in worksharing loop scans.
12995 PR tree-optimization/91074
12996 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
12999 PR rtl-optimization/90756
13000 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13003 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13005 * config/aarch64/aarch64.md: Remove redundant constraints from
13006 define_expand but keep some patterns untouched if they are
13007 specially selected by TARGET_SECONDARY_RELOAD hook.
13008 * config/aarch64/aarch64-sve.md: Likewise.
13009 * config/aarch64/atomics.md: Remove redundant constraints from
13011 * config/aarch64/aarch64-simd.md: Likewise.
13013 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13015 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13016 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13017 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13019 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13022 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13024 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13025 (STARTFILE_SPEC): Split crt3 into a separate spec.
13026 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13027 (DARWIN_CRT2_SPEC): New.
13028 (DARWIN_CRT3_SPEC): New.
13029 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13030 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13031 (DARWIN_CRT3_SPEC): New.
13033 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13035 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13036 Change the RTL attribute "length" from "4" to "*" to allow the
13037 length attribute to be adjusted automatically for prefixed load,
13038 store, and add immediate instructions.
13039 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13041 (extendsi<mode>2, EXTSI iterator): Likewise.
13042 (movsi_internal1): Likewise.
13043 (movsi_from_sf): Likewise.
13044 (movdi_from_sf_zero_ext): Likewise.
13045 (mov<mode>_internal): Likewise.
13046 (movcc_internal1, QHI iterator): Likewise.
13047 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13048 (movsf_from_si): Likewise.
13049 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13050 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13051 (mov<mode>, FMOVE128 iterator): Likewise.
13052 (movdi_internal64): Likewise.
13053 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13055 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13056 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13057 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13058 (vsx_splat_v4sf): Likewise.
13060 2019-07-03 Mark Wielaard <mark@klomp.org>
13063 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13064 DW_AT_addr_base if there is actually a .debug_addr section with
13066 (output_addr_table): Add DWARF5 table header generation here after
13067 checking there are actually any addresses from...
13068 (dwarf2out_finish): ...here.
13070 2019-07-03 Richard Biener <rguenther@suse.de>
13072 PR middle-end/91069
13073 * match.pd (vec_perm -> bit_insert): Fix element read from
13076 2019-07-03 Martin Liska <mliska@suse.cz>
13078 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13079 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13081 * generic-match-head.c: Include dbgcnt.h.
13082 * gimple-match-head.c: Likewise.
13084 2019-07-03 Martin Liska <mliska@suse.cz>
13086 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13087 (GCOV_COUNTER_V_TOPN): New.
13088 (GCOV_COUNTER_V_INDIR): Use _topn.
13089 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13090 (GCOV_TOPN_VALUES): New.
13091 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13092 (GCOV_TOPN_VALUES_COUNTERS): New.
13093 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13095 (gimple_init_gcov_profiler): Rename variables from one_value
13097 (gimple_gen_one_value_profiler): Remove.
13098 (gimple_gen_topn_values_profiler): New function.
13099 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13100 names instead of SINGLE_VALUE.
13101 (stream_out_histogram_value): Likewise.
13102 (stream_in_histogram_value): Likewise.
13103 (get_most_common_single_value): Likewise.
13104 (gimple_divmod_fixed_value_transform): Likewise.
13105 (gimple_stringops_transform): Likewise.
13106 (gimple_divmod_values_to_profile): Likewise.
13107 (gimple_stringops_values_to_profile): Likewise.
13108 (gimple_find_values_to_profile): Likewise.
13109 * value-prof.h (enum hist_type): Rename to TOPN.
13110 (gimple_gen_one_value_profiler): Remove.
13111 (gimple_gen_topn_values_profiler): New.
13113 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13115 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13116 if it has the DW_AT_data_member_location attribute.
13118 2019-07-03 Richard Biener <rguenther@suse.de>
13120 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13123 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13125 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13126 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13127 (tlsdesc_small_sve_<mode>): Likewise.
13129 2019-07-03 Martin Liska <mliska@suse.cz>
13131 * Makefile.in: Define ZSTD_LIB.
13132 * common.opt: Adjust compression level
13133 to support also zstd levels.
13134 * config.in: Regenerate.
13135 * configure: Likewise.
13136 * configure.ac: Add --with-zstd and --with-zstd-include options
13138 * doc/install.texi: Mention zstd dependency.
13139 * gcc.c: Print supported LTO compression algorithms.
13140 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13141 (lto_compression_zstd): Likewise.
13142 (lto_uncompression_zstd): Likewise.
13143 (lto_end_compression): Dispatch in between zlib and zstd.
13144 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13145 (lto_uncompression_zlib): Make it static.
13146 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13147 * lto-section-in.c (lto_get_section_data): Pass info
13148 about used compression.
13149 * lto-streamer-out.c: By default use zstd when possible.
13150 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13151 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13153 2019-07-03 Martin Liska <mliska@suse.cz>
13155 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13156 * lto-section-out.c (lto_destroy_simple_output_block): Never
13157 compress LTO_section_lto section.
13158 * lto-streamer-out.c (produce_asm): Do not set major_version
13160 (lto_output_toplevel_asms): Likewise.
13161 (produce_lto_section): New function.
13162 (lto_output): Call produce_lto_section.
13163 (lto_write_mode_table): Do not set major_version and
13165 (produce_asm_for_decls): Likewise.
13166 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13168 (struct lto_header): Remove.
13169 (struct lto_section): New struct.
13170 (struct lto_simple_header): Do not inherit from lto_header.
13171 (struct lto_file_decl_data): Add lto_section_header field.
13173 2019-07-03 Martin Liska <mliska@suse.cz>
13175 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13177 * reg-stack.c (check_asm_stack_operands): Likewise.
13178 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13179 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13180 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13181 force_expand_binop.
13183 2019-07-03 Martin Liska <mliska@suse.cz>
13185 PR tree-optimization/90892
13186 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13187 in string constants.
13189 2019-07-03 Martin Liska <mliska@suse.cz>
13191 PR middle-end/90899
13192 * multiple_target.c (create_dispatcher_calls): Add to comdat
13193 group only if set for ifunc.
13195 2019-07-03 Martin Liska <mliska@suse.cz>
13198 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13199 Define local_object_name in outer scope in order to handle
13200 use-after-scope issue.
13202 2019-07-03 Martin Liska <mliska@suse.cz>
13204 * common.opt: Add fprofile-note.
13205 * coverage.c (coverage_init): Append the option
13207 * doc/invoke.texi: Document -fprofile-note.
13209 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13211 PR tree-optimization/91033
13212 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13213 vect_analyze_data_refs): Add bool * arguments.
13214 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13215 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13216 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13217 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13218 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13219 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13220 vect_analyze_data_refs caller.
13222 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13224 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13225 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13226 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13227 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13228 OMP_CLAUSE__SCANTEMP_ entry.
13229 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13230 * tree-pretty-print.c (dump_omp_clause): Likewise.
13231 * tree-nested.c (convert_nonlocal_omp_clauses,
13232 convert_local_omp_clauses): Likewise.
13233 * omp-general.h (struct omp_for_data): Add have_scantemp and
13234 have_nonctrl_scantemp members.
13235 * omp-general.c (omp_extract_for_data): Initialize them.
13236 * omp-low.c (struct omp_context): Add scan_exclusive member.
13237 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13238 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13239 ctx->scan_exclusive.
13240 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13241 of !ctx->scan_inclusive.
13242 (lower_rec_input_clauses): Simplify gimplification of dtors using
13243 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13244 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13245 loops. Don't add barrier for reduction_omp_orig_ref if
13246 ctx->scan_??xclusive.
13247 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13248 (lower_omp_scan): Use ctx->scan_exclusive instead
13249 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13250 reductions. Use new_vard != new_var instead of repeated
13251 omp_is_reference calls.
13252 (omp_find_scan, lower_omp_for_scan): New functions.
13253 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13255 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13256 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13257 and fd->have_scantemp.
13259 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13260 on worksharing loop propagate it as shared clause to containing
13263 * omp-expand.c (expand_omp_for_static_nochunk,
13264 expand_omp_for_static_chunk): For nowait worksharing loop with
13265 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13268 2019-07-02 qing zhao <qing.zhao@oracle.com>
13270 PR preprocessor/90581
13271 * doc/cppopts.texi: Add document for -fmax-include-depth.
13272 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13274 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13276 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13277 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13278 (mmx_packssdw): Ditto.
13279 (mmx_punpckhbw): Ditto.
13280 (mmx_punpcklbw): Ditto.
13281 (mmx_punpckhwd): Ditto.
13282 (mmx_punpcklwd): Ditto.
13283 (mmx_punpckhdq): Ditto.
13284 (mmx_punpckldq): Ditto.
13285 (*vec_dupv4hi): Ditto.
13286 (*vec_dupv2si): Ditto.
13287 (mmx_pmovmskb): Ditto.
13288 * config/i386/sse.md (sse_cvtpi2ps): Use
13289 TARGET_SSE2 && SSE_REG_P in split condition.
13290 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13291 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13292 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13293 (ssse3_pshufbv8qi3): Ditto.
13294 (ssse3_palignrdi): Ditto.
13296 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13298 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13299 with inlined save and restore.
13301 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13303 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13304 to be inserted on single successor edge of the entry block. Then call
13305 commit_edge_insertions instead of inserting the instructions manually.
13306 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13307 RTL expansion and rebuild jump labels chain.
13309 2019-07-02 Richard Biener <rguenther@suse.de>
13311 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13313 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13315 * tree.c (build_common_tree_nodes): Initialize them.
13316 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13317 Make declarations comments.
13318 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13319 chrec_known): Remove definitions.
13320 (initialize_scalar_evolutions_analyzer): Remove.
13321 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13322 * tree-streamer.c (preload_common_nodes): Do not preload
13323 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13325 2019-07-02 Jan Hubicka <jh@suse.cz>
13327 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13330 2019-07-02 Jan Hubicka <jh@suse.cz>
13332 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13334 (nonoverlapping_component_refs_since_match_p): ... this one;
13335 handle also non-decl bases; return -1 if search gave up.
13336 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13337 nonoverlapping_component_refs_of_decl_p_no_alias to
13338 nonoverlapping_component_refs_since_match_p_may_alias,
13339 nonoverlapping_component_refs_since_match_p_no_alias.
13340 (dump_alias_stats): Update dumping.
13341 (aliasing_matching_component_refs_p): Break out from ...;
13342 dispatch to nonoverlapping_component_refs_for_decl_p
13343 and nonoverlapping_component_refs_since_match_p.
13344 (aliasing_component_refs_p): ... here; call
13345 nonoverlapping_component_refs_p in scenarios where we can not
13346 precisely determine base match.
13347 (decl_refs_may_alias_p): Use
13348 nonoverlapping_component_refs_since_match_p.
13349 (indirect_ref_may_alias_decl_p): Do not call
13350 nonoverlapping_component_refs_p.
13351 (indirect_refs_may_alias_p): Likewise.
13353 2019-07-02 Jan Hubicka <jh@suse.cz>
13355 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13356 to clobber of return value.
13358 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13360 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13361 for is_neon_type instructions that have not already been categorized.
13363 2019-07-02 Richard Biener <rguenther@suse.de>
13365 PR tree-optimization/58483
13366 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13367 for MEM_REF base hashing.
13368 (equal_mem_array_ref_p): Likewise for base comparison.
13370 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13372 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13373 parameterized name.
13374 (signbit<mode>2): Use that name. Simplify.
13376 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13378 PR middle-end/66726
13379 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13380 Tune heuristic from PR71016 to allow MIN / MAX.
13382 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13384 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13385 parameterized name.
13386 (abs<mode>2): Use that name. Simplify.
13388 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13390 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13391 parameterized name.
13392 (neg<mode>2): Use that name. Simplify.
13394 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13396 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13398 (abs<mode>2): Use that name. Simplify.
13400 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13402 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13404 (neg<mode>2): Use that name. Simplify.
13406 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13408 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13409 ("enabled" attribute): Handle sse_noavx isa attribute.
13410 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13411 Use TARGET_SSE && SSE_REGNO_P in split condition.
13412 (*vec_dupv2sf): Ditto.
13414 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13416 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13418 (floatsi<mode>2): Use that name. Simplify.
13420 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13422 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13423 parameterized name.
13424 (extenddf<mode>2_vsx): Make this a parameterized name.
13425 (extenddf<mode>2): Use those names. Simplify.
13427 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13429 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13431 (eh_return): Use that name. Simplify.
13433 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13435 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13436 (doloop_end): Use that name. Simplify.
13438 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13440 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13441 parameterized name.
13442 (indirect_jump): Use that name. Simplify.
13444 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13446 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13447 parameterized name.
13448 (abs<mode>2): Use that name. Simplify.
13450 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13452 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13453 parameterized name.
13454 (fix_trunc<mode>si2): Use that name. Simplify.
13456 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13458 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13459 (allocate_stack): Use that name. Simplify.
13461 2019-07-01 Martin Sebor <msebor@redhat.com>
13463 PR middle-end/90923
13464 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13465 (hash_map::get_or_insert): Same. Reformat comment.
13466 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13467 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13468 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13469 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13470 (hash_table::hash_table (const hash_table&)): Use copy ctor
13471 instead of assignment to copy elements.
13473 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13474 John David Anglin <danglin@gcc.gnu.org>
13477 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13478 using saved frame pointer.
13480 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13482 PR middle-end/64242
13483 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13484 Add frame clobber and schedule blockage.
13486 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13488 * doc/invoke.texi (Link Options): Further editorial changes to
13489 -flinker-output docs.
13491 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13493 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13494 Load both operands of a PLUS into registers separately.
13496 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13498 * config/s390/vector.md: Fix shift count operand printing.
13500 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13502 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13504 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13506 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13507 Use recog_data to test for an output operand.
13509 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13511 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13512 exclude any others that are disparaged or that are bound to need
13514 (ira_get_dup_out_num): Expand comment.
13516 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13518 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13519 constraint string for each operand/alternative combo. Only handle
13520 '%' at the start of constraint strings, and look for it outside
13523 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13525 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13526 alternative_mask instead of HARD_REG_SET to represent a
13527 bitmask of alternatives.
13528 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13529 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13531 2019-07-01 Martin Liska <mliska@suse.cz>
13533 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13534 use () for a constructor call.
13535 (test_applying_fixits_line_out_of_range): Likewise.
13536 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13538 (free_page): Likewise.
13540 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13542 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13543 parameter names to match usage (no functional change).
13544 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13546 2019-07-01 Richard Biener <rguenther@suse.de>
13548 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13550 (pass_fre::execute): Honor it.
13551 * passes.def: Adjust pass_fre invocations to allow iterating,
13552 add non-iterating pass_fre before late threading/dom.
13554 2019-07-01 Richard Biener <rguenther@suse.de>
13556 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13557 TARGET_MEM_REF handling to also handle address-taken ones.
13559 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13561 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13562 hardware attributes): Document avx512vp2intersect.
13564 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13566 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13567 (abs<mode>2): New expander.
13568 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13569 Use CODE_FOR_ssse3_absv8qi2.
13570 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13571 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13573 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13575 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13576 to sse, sse_noavx and avx. Update all uses.
13578 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13580 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13581 (*mmx_<plusminus_insn><mode>3): Ditto.
13582 (*mmx_mulv4hi3"): Ditto.
13583 (*mmx_smulv4hi3_highpart): Ditto.
13584 (*mmx_umulv4hi3_highpart): Ditto.
13585 (*mmx_pmaddwd): Ditto.
13586 (*sse2_umulv1siv1di3): Ditto.
13587 (*mmx_<code>v4hi3): Ditto.
13588 (*mmx_<code>v8qi3): Ditto.
13589 (mmx_ashr<mode>3): Ditto.
13590 ("mmx_<shift_insn><mode>3): Ditto.
13591 (*mmx_eq<mode>3): Ditto.
13592 (mmx_gt<mode>3): Ditto.
13593 (mmx_andnot<mode>3): Ditto.
13594 (*mmx_<code><mode>3): Ditto.
13595 (*mmx_pinsrw): Ditto.
13596 (*mmx_pextrw): Ditto.
13597 (mmx_pshufw_1): Ditto.
13598 (*mmx_uavgv8qi3): Ditto.
13599 (*mmx_uavgv4hi3): Ditto.
13600 ("mmx_psadbw): Ditto.
13601 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13602 (sse_cvttps2pi): Ditto.
13603 (ssse3_pmaddubsw): Ditto.
13604 (*ssse3_pmulhrswv4hi3): Ditto.
13605 (ssse3_psign<mode>3): Ditto.
13607 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13609 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13610 adjustment for bit-fields to all aggregate types.
13612 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13614 * config/rs6000/predicates.md (pcrel_address): Use
13615 SYMBOL_REF_LOCAL_P to determine if a label is local.
13616 (pcrel_external_address): New predicate.
13617 (non_prefixed_mem_operand): Delete, predicate not used.
13618 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13619 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13621 (SYMBOL_REF_PCREL_P): Likewise.
13624 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13626 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13627 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13628 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13630 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13632 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13633 override on extra_headers.
13635 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13637 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13638 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13640 (darwin_driver_init): Likewise.
13642 2019-06-28 Jan Beulich <jbeulich@suse.com>
13644 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13645 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13646 Eliminate redundant alternative.
13648 2019-06-28 Jan Beulich <jbeulich@suse.com>
13650 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13651 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13652 Use vector_operand.
13654 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13656 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13657 having a lower cost regardless of the speed option.
13659 2019-06-28 Jan Beulich <jbeulich@suse.com>
13661 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13662 vector_operand plus, on both alternatives, "Bm" constraint.
13664 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13666 * config/arm/arm.md: Remove redundant constraints from
13667 define_expand but leave reload_inm and reload_outm patterns
13668 untouched since they need special constraints to work.
13669 * config/arm/arm-fixed.md: Remove redundant constraints from
13671 * config/arm/iwmmxt.md: Likewise.
13672 * config/arm/neon.md: Likewise.
13673 * config/arm/sync.md: Likewise.
13674 * config/arm/thumb1.md: Likewise.
13675 * config/arm/vec-common.md: Likewise.
13677 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13679 * doc/install.texi: Document --disable-tm-clone-registry.
13681 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13684 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13687 PR tree-optimization/91010
13688 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13689 return true. Otherwise, don't call operand_equal_p if offset1 or
13690 offset2 is NULL and just return false.
13692 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13694 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13695 user-specified float mode choice for kernel mode code.
13697 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13699 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13702 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13704 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13705 use longcall for 64b code.
13707 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13709 * builtins.c (get_memory_rtx): Fix comment.
13710 * optabs.def (movmem_optab): Change to cpymem_optab.
13711 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13712 (emit_block_move_hints): Change movmem to cpymem.
13713 * defaults.h: Change movmem to cpymem.
13714 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13715 (default_use_by_pieces_infrastructure_p): Ditto.
13716 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13717 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13719 * config/aarch64/aarch64.h: Change movmem to cpymem.
13720 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13721 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13722 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13724 * config/arc/arc-protos.h: Change movmem to cpymem.
13725 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13726 * config/arc/arc.h: Change movmem to cpymem in comment.
13727 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13728 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13729 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13730 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13731 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13732 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13733 * config/avr/avr-protos.h: Change movmem to cpymem.
13734 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13735 avr_out_movmem): Change movmem to cpymem.
13736 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13737 Change movmem to cpymem.
13738 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13739 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13740 Change movmem to cpymem.
13741 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13742 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13743 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13744 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13745 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13746 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13747 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13748 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13749 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13750 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13751 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13752 expand_small_cpymem_or_setmem,
13753 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13754 expand_set_or_cpymem_constant_prologue,
13755 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13756 * config/i386/i386-protos.h: Change movmem to cpymem.
13757 * config/i386/i386.h: Change movmem to cpymem in comment.
13758 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13759 (setmem<mode>): Change expansion function name.
13760 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13761 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13762 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13763 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13764 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13765 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13766 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13768 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13769 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13770 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13771 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13772 Change movmem to cpymem.
13773 * config/mips/mips.h: Change movmem to cpymem.
13774 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13775 * config/nds32/nds32-memory-manipulation.c
13776 (nds32_expand_movmemsi_loop_unknown_size,
13777 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13778 nds32_expand_movmemsi_unroll,
13779 nds32_expand_movmemsi): Change movmem to cpymem.
13780 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13781 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13782 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13783 (pa_adjust_insn_length): Change call to compute_movmem_length.
13784 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13785 movmemdi, movmemdi_prereload,
13786 movmemdi_postreload): Change movmem to cpymem.
13787 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13788 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13789 * config/riscv/riscv.c: Change movmem to cpymem in comment.
13790 * config/riscv/riscv.h: Change movmem to cpymem.
13791 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13792 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13793 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13795 * config/s390/s390-protos.h: Change movmem to cpymem.
13796 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13797 s390_expand_insv): Change movmem to cpymem.
13798 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13799 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13800 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13801 * config/sparc/sparc.h: Change movmem to cpymem in comment.
13802 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13803 for nonexistent function.
13804 * config/vax/vax.h: Change movmem to cpymem in comment.
13805 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13806 * config/visium/visium.h: Change movmem to cpymem in comment.
13807 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13808 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13809 * doc/md.texi: Change movmem to cpymem and update description to match.
13810 * doc/rtl.texi: Change movmem to cpymem.
13811 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13812 * doc/tm.texi: Regenerate.
13814 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
13816 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13817 -fvariable-expansion-in-unroller by default.
13818 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13821 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
13824 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13825 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13827 * config.gcc(rs6000-*-*): Define target_gtfiles.
13829 2019-06-27 Jan Hubicka <jh@suse.cz>
13831 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13832 (add_type_duplicate): When odr hash is not allocated, to nothing.
13833 (odr_based_tbaa_p): New function.
13834 (set_type_canonical_for_odr_type): New function.
13835 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13836 set_type_canonical_for_odr_type): New.
13837 * tree.c (gimple_canonical_types_compatible_p): ODR types with
13838 ODR based TBAA are not equivalent to non-ODR types.
13840 2019-06-27 Martin Liska <mliska@suse.cz>
13842 PR tree-optimization/90974
13843 PR rtl-optimization/90975
13844 PR rtl-optimization/90976
13846 PR tree-optimization/91017
13847 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13849 * lra.c (lra_set_insn_recog_data): Remove a leftover from
13850 initial commit of IRA.
13851 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13853 * tree-vect-loop.c (vect_create_epilog_for_reduction):
13854 Remove unused mode1.
13855 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
13858 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13861 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
13862 instead of register_operand for operands[1], add m to its constraints
13863 if operands[2] uses "C" constraint. Ensure in condition that if
13864 operands[2] is not 0, then operands[1] is not a MEM. For last two
13865 alternatives, use unaligned loads instead of aligned if operands[1] is
13866 misaligned_operand.
13868 2019-06-27 Martin Liska <mliska@suse.cz>
13870 * asan.c (asan_emit_allocas_unpoison): Remove obviously
13872 * bt-load.c (move_btr_def): Likewise.
13873 * builtins.c (expand_builtin_apply_args_1): Likewise.
13874 (expand_builtin_apply): Likewise.
13875 * cfgexpand.c (expand_asm_stmt): Likewise.
13876 (construct_init_block): Likewise.
13877 * cfghooks.c (verify_flow_info): Likewise.
13878 * cfgloopmanip.c (remove_path): Likewise.
13879 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
13880 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
13881 * combine.c (simplify_if_then_else): Likewise.
13882 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13883 (choose_basereg): Likewise.
13884 (ix86_expand_prologue): Likewise.
13885 (ix86_preferred_output_reload_class): Likewise.
13886 * cselib.c (cselib_record_sets): Likewise.
13887 * df-scan.c (df_scan_alloc): Likewise.
13888 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
13889 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
13890 * emit-rtl.c (try_split): Likewise.
13891 * graphite-scop-detection.c (assign_parameter_index_in_region):
13893 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
13894 * ira-color.c (setup_profitable_hard_regs): Likewise.
13895 * ira.c (rtx_moveable_p): Likewise.
13896 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
13897 * read-rtl.c (read_subst_mapping): Likewise.
13898 * regrename.c (scan_rtx): Likewise.
13899 * reorg.c (fill_slots_from_thread): Likewise.
13900 * tree-inline.c (tree_function_versioning): Likewise.
13901 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13902 * tree-ssa-sink.c (statement_sink_location): Likewise.
13903 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
13904 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
13905 (vect_create_epilog_for_reduction): Likewise.
13906 * tree.c (build_nonstandard_integer_type): Likewise.
13908 2019-06-27 Richard Biener <rguenther@suse.de>
13910 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
13912 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
13914 PR tree-optimization/89772
13915 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
13916 out-of-bound accesses checking.
13918 2019-06-27 Martin Liska <mliska@suse.cz>
13920 PR tree-optimization/91014
13921 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
13922 when LHS is NULL_TREE.
13924 2019-06-27 Martin Liska <mliska@suse.cz>
13926 * symbol-summary.h (traverse): Pass
13927 argument a to the call of callback.
13928 (gt_ggc_mx): Mark arguments as unused.
13929 (gt_pch_nx): Likewise.
13931 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
13934 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
13937 2019-06-26 Jeff Law <law@redhat.com>
13939 PR tree-optimization/90883
13940 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
13941 (delete_dead_or_redundant_assignment): Likewise.
13943 PR tree-optimization/90883
13944 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
13945 * tree-ssa-dse.c: Update various comments to distinguish between
13946 dead and redundant stores.
13947 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
13948 (dse_optimize_redundant_stores): New function.
13949 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
13950 Distinguish between dead and redundant calls in dump output. All
13952 (delete_dead_or_redundant_assignment): Similarly for assignments.
13953 (dse_optimize_stmt): Handle _CHK variants. For statements which
13954 store 0 into multiple memory locations, try to prove a subsequent
13955 store is redundant.
13957 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
13960 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
13961 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
13963 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13965 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
13966 (branch_islands): New extern.
13967 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
13968 * config/rs6000/rs6000.c: .. here.
13970 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13972 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
13973 (powerpc*-*-*) ... to here.
13975 2019-06-26 Jeff Law <law@redhat.com>
13977 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
13978 memcpy, memmove and memset builtins.
13979 (maybe_trim_memstar_call): Likewise.
13981 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13983 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
13985 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13987 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13989 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
13991 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
13993 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
13995 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
13998 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14000 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14002 2019-06-26 Richard Biener <rguenther@suse.de>
14005 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14007 2019-06-26 Richard Biener <rguenther@suse.de>
14009 * lto-streamer.h (lto_bitmap_alloc): Remove.
14010 (lto_bitmap_free): Likewise.
14011 * lto-streamer.c (lto_bitmap_alloc): Remove.
14012 (lto_bitmap_free): Likewise.
14013 (lto_obstack): Likewise.
14014 (lto_obstack_initialized): Likewise.
14015 * lto-streamer-out.c (lto_output): Use own obstack for local
14016 bitmap, free it consistently.
14018 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14021 * config/i386/sse.md
14022 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14023 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14024 insns if operands[2] is misaligned_operand.
14026 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14028 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14030 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14033 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14035 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14037 2019-06-26 Martin Liska <mliska@suse.cz>
14039 PR tree-optimization/90973
14040 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14041 epilogue_cost_vec instead of prologue_cost_vec for
14044 2019-06-26 Martin Liska <mliska@suse.cz>
14046 * bb-reorder.c (connect_better_edge_p): Add missing else
14047 statement in the middle of if-else statements.
14049 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14050 H.J. Lu <hongjiu.lu@intel.com>
14051 Olga Makhotina <olga.makhotina@intel.com>
14053 * common/config/i386/i386-common.c
14054 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14055 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14056 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14057 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14058 (ix86_handle_option): Handle -mavx512vp2intersect.
14059 * config/i386/avx512vp2intersectintrin.h: New.
14060 * config/i386/avx512vp2intersectvlintrin.h: New.
14061 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14062 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14063 AVX512VP2INTERSECT.
14064 * config/i386/i386-builtin-types.def: Add new types.
14065 * config/i386/i386-builtin.def: Add new builtins.
14066 * config/i386/i386-builtins.c: (enum processor_features): Add
14067 F_AVX512VP2INTERSECT.
14068 (static const _isa_names_table isa_names_table): Ditto.
14069 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14070 __AVX512VP2INTERSECT__.
14071 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14072 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14073 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14074 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14075 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14076 * config/i386/i386-options.c (ix86_target_string): Add
14077 -mavx512vp2intersect.
14078 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14079 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14080 P2HImode and P2QImode.
14081 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14082 number for P2QImode and P2HImode.
14083 (ix86_regmode_natural_size): New function.
14084 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14085 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14086 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14087 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14088 * config/i386/i386.opt: Add -mavx512vp2intersect.
14089 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14090 avx512vp2intersectvlintrin.h.
14091 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14092 (define_mode_iterator VI48_AVX512VP2VL): New.
14093 (avx512vp2intersect_2intersect<mode>,
14094 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14095 * config.gcc: Add avx512vp2intersectvlintrin.h and
14096 avx512vp2intersectintrin.h to extra_headers.
14097 * doc/invoke.texi: Document -mavx512vp2intersect.
14099 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14101 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14103 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14105 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14106 savres_routine_syms, savres_routine_name, morestack_ref,
14107 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14108 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14109 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14110 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14111 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14112 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14113 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14114 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14115 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14116 get_stack_clash_protection_probe_interval,
14117 get_stack_clash_protection_guard_size,
14118 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14119 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14120 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14121 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14122 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14123 gen_frame_mem_offset, rs6000_savres_routine_name,
14124 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14125 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14126 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14127 rs6000_global_entry_point_prologue_needed_p,
14128 rs6000_get_separate_components, rs6000_components_for_bb,
14129 rs6000_disqualify_components, rs6000_emit_prologue_components,
14130 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14131 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14132 rs6000_output_savres_externs, rs6000_output_function_prologue,
14133 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14134 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14135 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14136 rs6000_output_function_epilogue, gen_add3_const,
14137 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14138 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14140 (machine_function): Moved to rs6000.h.
14141 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14143 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14144 savres_routine_syms, savres_routine_name, morestack_ref,
14145 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14146 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14147 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14148 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14149 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14150 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14151 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14152 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14153 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14154 get_stack_clash_protection_probe_interval,
14155 get_stack_clash_protection_guard_size,
14156 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14157 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14158 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14159 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14160 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14161 gen_frame_mem_offset, rs6000_savres_routine_name,
14162 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14163 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14164 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14165 rs6000_global_entry_point_prologue_needed_p,
14166 rs6000_get_separate_components, rs6000_components_for_bb,
14167 rs6000_disqualify_components, rs6000_emit_prologue_components,
14168 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14169 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14170 rs6000_output_savres_externs, rs6000_output_function_prologue,
14171 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14172 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14173 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14174 rs6000_output_function_epilogue, gen_add3_const,
14175 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14176 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14177 to here from rs6000.c.
14178 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14179 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14180 quad_address_offset_p) Moved to here from rs6000.c.
14181 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14182 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14185 2019-06-25 Martin Liska <mliska@suse.cz>
14187 * hash-table.c (hashtab_chk_error): Move here from ...
14188 * hash-table.h (hashtab_chk_error): ... here.
14190 2019-06-25 Martin Liska <mliska@suse.cz>
14192 PR tree-optimization/90978
14193 * df-scan.c (df_update_entry_block_defs): Remove dead else
14195 (df_update_exit_block_uses): Likewise.
14197 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14198 Andrew Stubbs <ams@codesourcery.com>
14200 * config.gcc (thread_file): Set to gcn for AMD GCN.
14201 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14202 (TARGET_EMUTLS_VAR_INIT): New hook.
14204 2019-06-25 Martin Jambor <mjambor@suse.cz>
14207 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14209 2019-06-25 Richard Biener <rguenther@suse.de>
14211 PR tree-optimization/90930
14212 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14213 into parallel form in the last pass instance.
14215 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14217 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14218 (arc_legitimize_pic_address): Simplify and cleanup the function.
14219 (SYMBOLIC_CONST): Remove.
14220 (prepare_pic_move): Likewise.
14221 (prepare_move_operands): Handle complex mov cases here.
14222 (arc_legitimize_address_0): Remove call to
14223 arc_legitimize_pic_address.
14224 (arc_legitimize_address): Remove call to
14225 arc_legitimize_tls_address.
14226 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14227 (movhi_insn): Likewise.
14229 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14231 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14233 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14234 format of "__intN" types for UINTMAX_TYPE.
14235 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14236 format of "__intN" types for SIZETYPE.
14237 * tree.c (build_common_tree_nodes): Accept "__intN__"
14238 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14239 * doc/invoke.texi: Document that __intN__ disables pedantic
14242 2019-06-25 Jan Hubicka <jh@suse.cz>
14244 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14245 base2_alias_set is non-zero before doing TBAA based disambiguation.
14247 2019-06-25 Martin Liska <mliska@suse.cz>
14249 PR tree-optimization/90973
14250 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14251 of prologue and epilogue.
14253 2019-06-24 Jan Hubicka <jh@suse.cz>
14255 * ipa-utils.h (type_with_linkage_p): Verify that type is
14257 (odr_type_p): Remove extra return.
14258 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14259 hash STRING_FLAG only for arrays and integers.
14260 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14261 Update analogously.
14262 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14264 * print-tree.c (print_node): Print cxx-odr-p
14266 * tree.c (need_assembler_name_p): Also check that type
14268 (verify_type_variant): Update verification of SRING_FLAG;
14269 also check CXX_ODR_P.
14270 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14271 (TYPE_STRING_FLAG): Use it.
14272 (TYPE_CXX_ODR_P): New macro.
14273 * dwarf2out.c (gen_array_type_die): First check that type
14274 is an array and then test string flag.
14276 2019-06-24 Richard Biener <rguenther@suse.de>
14278 PR tree-optimization/90972
14279 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14280 in common code, dealing with STRING_CST properly.
14282 2019-06-24 Richard Biener <rguenther@suse.de>
14284 PR tree-optimization/90930
14285 PR tree-optimization/90316
14286 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14287 decrement of limit.
14289 2019-06-24 Martin Sebor <msebor@redhat.com>
14291 * tree-pretty-print.h: Remove unnecessary punctuation characters
14293 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14295 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14297 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14298 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14299 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14301 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14303 * config/rs6000/darwin.h: Handle GCC target pragma.
14305 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14307 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14309 2019-06-22 Jeff Law <law@redhat.com>
14311 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14313 2019-06-22 Jan Hubicka <jh@suse.cz>
14315 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14316 give up on bitfields; continue searching for different refs
14319 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14321 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14322 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14323 containing the offset as possible simd lane access. Look through
14324 widening conversion. Move the
14325 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14327 2019-06-21 Richard Biener <rguenther@suse.de>
14329 PR tree-optimization/90930
14330 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14331 flag on new stmts to avoid re-processing them.
14333 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14335 PR c++/90875 - added -Wswitch-outside-range option
14336 * doc/invoke.texi (Wswitch-outside-range): Document.
14338 2019-06-21 Jeff Law <law@redhat.com>
14340 PR tree-optimization/90949
14341 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14342 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14344 2019-06-21 Richard Biener <rguenther@suse.de>
14347 * dwarf2out.c (prune_unused_types_walk): Always consider
14348 function-local extern declarations as used.
14350 2019-06-21 Richard Biener <rguenther@suse.de>
14352 PR tree-optimization/90913
14353 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14354 the scalar variant of if-conversion versioning.
14356 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14358 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14359 create another "omp scan inscan exclusive" array if
14360 !ctx->scan_inclusive.
14361 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14362 (lower_omp_scan): Likewise.
14363 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14364 2-bit bitfield for simd_lane_access_p member.
14365 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14366 aux == (void *)-4 as simd lane access.
14367 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14368 comment with permutations to show the canonical permutation order.
14369 (vectorizable_scan_store): Handle exclusive scan.
14370 (vectorizable_store): Call vectorizable_scan_store even for
14371 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14373 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14374 "omp simd array" arrays with one byte elements.
14376 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14378 * config/alpha/alpha.md (@unaligned_store<mode>):
14379 Rename from unaligned_store<mode>.
14380 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14381 * config/alpha/sync.md (@load_locked_<mode>): Rename
14382 from load_locked_<mode>.
14383 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14384 (@atomic_compare_and_swap<mode>_1): Rename
14385 from atomic_compare_and_swap<mode>_1.
14386 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14387 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14388 Use gen_reload_in_aligned and gen_unaligned_store.
14389 (emit_load_locked): Remove.
14390 (emit_store_conditional): Ditto.
14391 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14392 (alpha_split_compare_and_swap): Ditto.
14393 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14394 (alpha_split_compare_and_swap_12): Use gen_load_locked
14395 and gen_store_conditional.
14396 (alpha_split_atomic_exchange): Ditto.
14397 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14398 (alpha_split_atomic_exchange_12): Use gen_load_locked
14399 and gen_store_conditional.
14401 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14403 * config/aarch64/aarch64-errata.h: New file.
14404 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14405 (CA53_ERR_843419_SPEC): Delete.
14406 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14407 * config/aarch64/aarch64-linux.h: Likewise.
14408 * config/aarch64/aarch64-netbsd.h: Likewise.
14409 * config/aarch64/aarch64-freebsd.h: Likewise.
14411 2019-06-20 Marek Polacek <polacek@redhat.com>
14413 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14415 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14417 * config/rs6000/rs6000.md (isa attribute): Add support for
14418 for a future processor.
14420 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14423 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14424 standard scalar operation pattern for V2DF.
14425 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14426 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14427 (*ieee_<ieee_maxmin><mode>3): Likewise.
14428 (vec_setv2df_0): Likewise.
14430 2019-06-20 Jan Hubicka <jh@suse.cz>
14432 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14433 parameter; it has no use in gimple memory model.
14434 (indirect_ref_may_alias_decl_p): Update.
14436 2019-06-20 Martin Liska <mliska@suse.cz>
14438 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14441 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14443 * tree-vect-stmts.c (enum scan_store_kind): New type.
14444 (scan_store_can_perm_p): Change last argument from int * to
14445 vec<enum scan_store_kind> *, record precisely which permutations
14446 need whole vector left shift or that plus VEC_COND_EXPR.
14447 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14448 and additional VEC_COND_EXPR only for those iterations that need it.
14450 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14452 * config.gcc: Fix ARM --with-fpu checking and error message.
14454 2019-06-19 Marek Polacek <polacek@redhat.com>
14456 PR c++/60364 - noreturn after first decl not diagnosed.
14457 * attribs.c (get_attribute_namespace): No longer static.
14458 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14460 (attr_noreturn_exclusions): Make it extern.
14461 * attribs.h (get_attribute_namespace): Declare.
14462 * tree-inline.c (function_attribute_inlinable_p): Use
14463 get_attribute_name.
14465 2019-06-19 Martin Sebor <msebor@redhat.com>
14467 PR tree-optimization/90626
14468 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14470 PR tree-optimization/90626
14471 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14472 (handle_builtin_string_cmp): Call it.
14474 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14476 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14477 and DARWIN_NOPIE_SPEC.
14478 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14479 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14480 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14481 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14482 (DARWIN_EXPORT_DYNAMIC): Delete.
14483 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14484 and pie options processing to darwin.h.
14485 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14487 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14489 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14490 in computing the number of options to be moved.
14492 2019-06-19 Maya Rashish <coypu@sdf.org>
14494 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14495 (CLEAR_INSN_CACHE) Use it.
14497 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14499 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14501 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14503 PR middle-end/84521
14504 * builtins.c (expand_builtin_setjmp_setup): Save
14505 hard_frame_pointer_rtx.
14506 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14508 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14510 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14512 (remove_reg_equal_offset_note): Remove unused function.
14513 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14515 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14516 (arc_builtin_setjmp_frame_value): Remove function.
14517 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14518 (avr_builtin_setjmp_frame_value): Remove function.
14519 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14520 (ix86_builtin_setjmp_frame_value): Remove function.
14521 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14522 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14523 (sparc_builtin_setjmp_frame_value): Remove function.
14524 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14525 (vax_builtin_setjmp_frame_value): Remove function.
14526 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14527 pointer if has_nonlocal_label.
14529 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14531 * doc/md.texi: Document vec_shl_<mode> pattern.
14532 * optabs.def (vec_shl_optab): New optab.
14533 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14534 argument, if == vec_shl_optab, check for left whole vector shift
14535 pattern rather than right shift.
14536 (expand_vec_perm_const): Add vec_shl_optab support.
14537 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14539 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14540 can be handled by vec_shl_optab.
14541 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14542 (check_scan_store): Use it.
14543 (vectorizable_scan_store): If target can't do normal permutations,
14544 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14546 * config/i386/sse.md (vec_shl_<mode>): New expander.
14548 * omp-low.c (lower_rec_input_clauses): Handle references properly
14550 (lower_omp_scan): Likewise.
14552 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14554 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14555 mem_mode is BLKmode.
14557 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14560 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14561 pointer adjustment for the case of no callee-saved registers and
14562 stack frame bigger than 128 bytes.
14564 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14566 PR middle-end/90862
14567 * omp-low.c (check_omp_nesting_restrictions): Handle
14568 GF_OMP_TARGET_KIND_OACC_DECLARE.
14570 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14572 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14573 (@add<mode>3_carry): Rename from add<mode>3_carry.
14574 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14575 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14576 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14577 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14578 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14579 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14580 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14581 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14582 (cmpstrnsi): Use gen_cmp_1.
14583 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14584 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14585 (@umonitor_<mode>): Rename from umonitor_<mode>.
14586 * config/i386/i386-expand.c (ix86_expand_copysign):
14587 Use gen_copysign3_const and gen_copysign3_var.
14588 (ix86_expand_xorsign): Use gen_xorsign3_1.
14589 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14590 gen_sub3_carry_ccgz and gen_cmp1.
14591 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14592 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14593 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14594 (ix86_split_lshr): Ditto.
14595 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14597 2019-06-18 Jason Merrill <jason@redhat.com>
14599 * tree.c (build_constructor): Add MEM_STAT_DECL.
14601 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14603 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14604 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14605 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14606 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14607 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14608 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14609 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14610 Use CC_NZC instead of CC.
14611 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14612 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14613 (aarch64_print_operand): Handle E_CC_NZCmode.
14614 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14615 of gen_set_clobber_cc.
14617 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14619 * config/aarch64/aarch64-sve.md: Tabify file.
14621 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14623 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14624 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14625 * config/aarch64/aarch64-sve.md: Use it.
14627 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14629 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14630 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14631 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14632 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14633 (aarch64_expand_sve_vec_cmp_int): Use it.
14634 (aarch64_expand_sve_vec_cmp_float): Likewise.
14635 * config/aarch64/aarch64-sve.md: Likewise throughout.
14637 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14638 Kugan Vivekanandarajah <kuganv@linaro.org>
14640 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14641 (*cond_<optab><mode>_z): Fold into...
14642 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14643 operand 4 can be tied to operand 0 (either inherently or via RA).
14645 2019-06-18 Richard Biener <rguenther@suse.de>
14648 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14649 as if optimized away.
14651 2019-06-18 Tom de Vries <tdevries@suse.de>
14653 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14654 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14655 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14657 (define_insn "@set_softstack_<mode>"): ... this.
14658 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14659 (define_insn "@omp_simt_enter_<mode>"): ... this.
14660 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14661 (define_insn "@omp_simt_exit_<mode>"): ... this.
14663 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14665 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14666 vf parameter. Restore the previous iv step of nscalars_step,
14667 but give it iv_type rather than compare_type. Tweak code order
14668 to match the comments.
14669 (vect_set_loop_condition_masked): Update accordingly.
14670 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14671 for iv_precision. Tweak comment formatting.
14673 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14675 * config/darwin.c: Strip trailing whitespace.
14677 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14679 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14680 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14682 2019-06-18 Martin Jambor <mjambor@suse.cz>
14685 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14686 caller does not have flag_ipa_cp set.
14688 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14690 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14691 from "*fold_left_plus_<mode>", updated operands order.
14692 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14693 * internal-fn.c (mask_fold_left_direct): New define.
14694 (expand_mask_fold_left_optab_fn): Likewise.
14695 (direct_mask_fold_left_optab_supported_p): Likewise.
14696 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14697 * optabs.def (mask_fold_left_plus_optab): New optab.
14698 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14699 masked internal_fn for a reduction ifn.
14700 (vectorize_fold_left_reduction): Add support for masking reductions.
14702 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14704 PR middle-end/80791
14705 * target.def (predict_doloop_p): New hook.
14706 * targhooks.h (default_predict_doloop_p): New declaration.
14707 * targhooks.c (default_predict_doloop_p): New function.
14708 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14709 * doc/tm.texi: Regenerate.
14710 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14711 (TARGET_PREDICT_DOLOOP_P): New macro.
14712 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14714 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14716 * omp-low.c (struct omp_context): Add scan_inclusive field.
14717 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14719 (struct omplow_simd_context): Add lastlane member.
14720 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14721 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14723 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14724 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14725 (lower_omp_scan): New function.
14726 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14727 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14728 check 3rd argument if present rather than 2nd.
14729 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14730 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14732 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14733 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14735 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14736 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14737 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14739 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14740 IFN_GOMP_SIMD_LANE argument.
14741 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14742 encoded ->aux value.
14743 * tree-vect-stmts.c: Include attribs.h.
14744 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14745 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14747 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14748 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14750 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14753 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14754 (*nabs<mode>2_1): Ditto.
14755 (nabs sse-reg splitter): New splitter.
14756 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14758 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14760 PR bootstrap/90873.
14761 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14764 2019-06-17 Tom de Vries <tdevries@suse.de>
14766 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14767 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14768 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14770 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14772 (define_insn "omp_simt_enter_insn"): Rename to ...
14773 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14774 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14775 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14776 gen_omp_simt_enter_si.
14777 (define_expand "omp_simt_exit"): New.
14778 (define_insn "omp_simt_exit"): Rename to ...
14779 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14782 2019-06-17 Matthew Green <mrg@eterna.com.au>
14783 Maya Rashish <coypu@sdf.org>
14785 * config.gcc (aarch64*-*-netbsd*): New target.
14786 * config/aarch64/aarch64-netbsd.h: New file.
14787 * config/aarch64/t-aarch64-netbsd: Likewise.
14789 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14791 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14792 the access path from base to first VIEW_CONVERT_EXPR or
14795 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14797 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14798 access path on BIT_FIELD_REFs.
14800 2019-06-17 Martin Liska <mliska@suse.cz>
14803 * ipa-utils.h (odr_type_p): Remove dead code.
14805 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14807 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14808 alternative Solaris 11.4 format.
14809 * configure: Regenerate.
14811 2019-06-17 Tom de Vries <tdevries@suse.de>
14813 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14814 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
14816 (define_insn "call_value_insn"): Rename to ...
14817 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
14819 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14822 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
14824 PR middle-end/64242
14825 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
14826 frame clobbers and schedule block.
14827 (builtin_longjmp): Likewise.
14829 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14831 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14832 describe how to perform MSPABI compliant 64-bit shift.
14833 * config/msp430/msp430.md (ashldi3): New define_expand.
14834 (ashrdi3): New define_expand.
14835 (lshrdi3): New define_expand.
14837 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14839 * doc/sourcebuild.texi: Document new effective target keyword
14842 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14844 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14845 indirect_refs_may_alias_p): Revert accidental commits.
14847 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14848 at the end of structures.
14850 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14852 * config/darwin.c (machopic_indirect_call_target): Use renamed
14853 darwin_picsymbol_stubs to decide on output.
14854 (darwin_override_options): Handle darwin_picsymbol_stubs.
14855 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
14856 (LD64_VERSION): Revise default.
14857 * config/darwin.opt: (mpic-symbol-stubs): New option.
14858 (darwin_picsymbol_stubs): New variable.
14859 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
14860 rename to TARGET_MACHO_PICSYM_STUBS.
14861 * config/i386/i386.c (output_pic_addr_const): Likewise.
14862 * config/i386/i386.h Likewise.
14863 * config/rs6000/darwin.h: Likewise.
14864 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
14865 darwin_picsymbol_stubs.
14867 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14869 * config/darwin.opt (prebind, noprebind, seglinkedit,
14870 noseglinkedit): Add RejectNegative.
14872 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14874 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
14875 in my previous patch.
14877 2019-06-16 Tom de Vries <tdevries@suse.de>
14879 PR tree-optimization/89376
14880 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
14882 2019-06-15 Maya Rashish <coypu@sdf.org>
14884 * doc/invoke.texi (Spec Files): Update location of the
14887 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
14889 * doc/extend.texi (Common Function Attributes): Clarify
14890 no_sanitize. Fix grammar.
14892 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
14894 * tree-ssa-alias.c (alias_stats): Add
14895 nonoverlapping_component_refs_p_may_alias,
14896 nonoverlapping_component_refs_p_no_alias,
14897 nonoverlapping_component_refs_of_decl_p_may_alias,
14898 nonoverlapping_component_refs_of_decl_p_no_alias.
14899 (dump_alias_stats): Dump them.
14900 (nonoverlapping_component_refs_of_decl_p): Add stats.
14901 (nonoverlapping_component_refs_p): Add stats; do not stop on first
14904 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
14906 * config/i386/i386.md (and<mode>3): Generate zero-extends for
14907 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
14909 (*anddi3_doubleword): Split before reload. Merge with
14910 anddi->zext pre-reload splitter.
14911 (*andndi3_doubleword): Split before reload.
14912 (*<code>di3_doubleword): Ditto.
14913 (*one_cmpldi2_doubleword): Ditto.
14915 2019-06-15 Jakub Jelinek <jakub@redhat.com>
14917 PR middle-end/90779
14918 * gimplify.c: Include omp-offload.h and context.h.
14919 (gimplify_bind_expr): Add "omp declare target" attributes
14920 to static block scope variables inside of target region or target
14923 2019-06-15 Tom de Vries <tdevries@suse.de>
14925 PR tree-optimization/90009
14926 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
14927 Return NULL if bb contains IFN_UNIQUE.
14929 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
14931 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
14932 (un): New define_mode_attr.
14933 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
14934 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
14935 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
14937 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
14939 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
14941 * config/darwin.opt: Add RejectNegative where needed, reorder
14942 and add minimal functional descriptions.
14944 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14946 PR rtl-optimization/90765
14947 * calls.c (update_stack_alignment_for_call): New function.
14948 (expand_call): Call update_stack_alignment_for_call when
14949 outgoing parameter is passed in the stack.
14950 (emit_library_call_value_1): Likewise.
14951 * function.c (locate_and_pad_parm): Don't update
14952 stack_alignment_needed and preferred_stack_boundary.
14954 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14957 * config/i386/i386-features.c
14958 (dimode_scalar_chain::compute_convert_gain): Replace
14959 mmxsse_to_integer with sse_to_integer.
14960 * config/i386/i386.c (ix86_register_move_cost): Verify that
14961 moves between MMX and non-MMX units require secondary memory.
14962 Correct costs of moves between SSE and integer units.
14963 * config/i386/i386.h (processor_costs): Rename cost of moving
14964 SSE register to integer to sse_to_integer. Rename cost of
14966 2019-06-14 Matt Thomas <matt@3am-software.com>
14967 Matthew Green <mrg@eterna.com.au>
14968 Nick Hudson <skrll@netbsd.org>
14969 Maya Rashish <coypu@sdf.org>
14970 Richard Earnshaw <rearnsha@arm.com>
14972 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
14973 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
14974 * config/arm/netbsd-eabi.h: New file.
14975 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
14977 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
14978 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
14979 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
14980 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
14982 2019-06-14 Richard Biener <rguenther@suse.de>
14984 * tree-loop-distribution.c (classify_partition): Return
14985 whether a reduction appeared in all partitions and do not
14986 stop builtin detection because of this.
14987 (distribute_loop): Sort a non-builtin partition last if
14988 there's a reduction in all partitions and make sure the
14989 partition prevailing as last is not a builtin.
14991 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
14994 * ipa-prop.c (add_to_agg_contents_list): New function.
14995 (clobber_by_agg_contents_list_p): Likewise.
14996 (extract_mem_content): Likewise.
14997 (get_place_in_agg_contents_list): Delete.
14998 (determine_known_aggregate_parts): Renamed from
14999 determine_locally_known_aggregate_parts. New parameter
15002 2019-06-13 Martin Sebor <msebor@redhat.com>
15004 PR tree-optimization/90662
15005 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15008 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15011 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15012 dbase is not TARGET_MEM_REF.
15014 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15016 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15018 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15019 Do not generate DImode extends for 32bit targets.
15020 (and->zext post-reload splitter): Use gen_extend_insn
15021 instead of indirect functions.
15022 (anddi->zext pre-reload splitter): New.
15023 (*zext<mode>_doubleword_and): Remove.
15024 (*zext<mode>_doubleword): Ditto.
15025 (*zextsi_doubleword): Dittto.
15027 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15029 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15030 Use gen_sub3_insn instead of indirect function.
15031 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15033 (ix86_adjust_counter): Ditto.
15035 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15036 Lijia He <helijia@linux.ibm.com>
15038 PR tree-optimization/77820
15039 * tree-ssa-threadedge.c
15040 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15042 (thread_across_edge): Add call to
15043 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15045 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15047 * config/darwin-driver.c (validate_macosx_version_min): New.
15048 (darwin_default_min_version): Cleanup and validate supplied version.
15049 (darwin_driver_init): Likewise and push cleaned version into opts.
15051 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15053 PR tree-optimization/90869
15054 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15055 converts in MEM_REF referencing decl rather than view converts
15056 from decl type to MEM_REF type.
15058 2019-06-13 Richard Biener <rguenther@suse.de>
15060 PR tree-optimization/90856
15061 * tree-sra.c (build_ref_for_model): Only use
15062 build_reconstructed_reference when address-spaces are the same.
15064 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15066 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15067 wrap ei variable name in the declaration in ()s.
15068 (nvptx_single): Actually use mode_label variable. Formatting fix.
15070 2019-06-13 Richard Biener <rguenther@suse.de>
15072 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15073 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15074 also return the condition stmt.
15075 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15076 loop we can version and version that, reusing the loop version
15077 created by if-conversion instead of versioning again.
15079 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15081 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15083 * tree-vrp (value_range_base::may_contain_p): Call into
15084 value_inside_range.
15085 (value_inside_range): Make private inside value_range_base class.
15086 Take min/max from *this.
15087 (range_includes_p): Remove.
15088 * tree-vrp.h (value_range_base): Add value_inside_range.
15089 (range_includes_p): Remove.
15090 (range_includes_zero_p): Call may_contain_p.
15091 * vr-values.c (compare_range_with_value): Same.
15093 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15095 * doc/extend.texi (ARC Function Attributes): Update info.
15097 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15099 PR tree-optimization/89713
15100 * doc/invoke.texi (-ffinite-loops): Document new option.
15101 * common.opt (-ffinite-loops): New option.
15102 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15103 IFN_GOACC_LOOP calls as necessary.
15104 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15106 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15107 IFN_GOACC_LOOP call is not used.
15108 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15110 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15113 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15114 compare_type is not with Pmode size, we will create an IV with
15115 Pmode size with truncated use (i.e. converted to the correct type).
15116 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15117 (vect_iv_limit_for_full_masking): New. Factored out of
15118 vect_set_loop_condition_masked.
15119 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15120 (vect_iv_limit_for_full_masking): Declare.
15122 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15125 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15126 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15127 (get_alias_ptr_type_for_ptr_address): Likewise.
15128 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15129 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15130 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15133 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15135 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15137 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15139 * common/config/pru/pru-common.c: New file.
15140 * config.gcc: Add PRU target.
15141 * config/pru/alu-zext.md: New file.
15142 * config/pru/constraints.md: New file.
15143 * config/pru/predicates.md: New file.
15144 * config/pru/pru-opts.h: New file.
15145 * config/pru/pru-passes.c: New file.
15146 * config/pru/pru-pragma.c: New file.
15147 * config/pru/pru-protos.h: New file.
15148 * config/pru/pru.c: New file.
15149 * config/pru/pru.h: New file.
15150 * config/pru/pru.md: New file.
15151 * config/pru/pru.opt: New file.
15152 * config/pru/t-pru: New file.
15153 * doc/extend.texi: Document PRU pragmas.
15154 * doc/invoke.texi: Document PRU-specific options.
15155 * doc/md.texi: Document PRU asm constraints.
15157 2019-06-12 Martin Sebor <msebor@redhat.com>
15159 PR middle-end/90676
15160 * tree-pretty-print.c (dump_mem_ref): New function. Include
15161 MEM_REF type in output when different size than operand.
15162 (dump_generic_node): Move code to dump_mem_ref and call it.
15164 2019-06-12 Martin Sebor <msebor@redhat.com>
15166 PR tree-optimization/90662
15167 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15170 2019-06-12 Tom de Vries <tdevries@suse.de>
15172 PR tree-optimization/90009
15173 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15175 2019-06-12 Martin Liska <mliska@suse.cz>
15177 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15179 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15180 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15181 Do not sanitize created maps.
15183 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15185 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15186 value_range::singleton_p.
15187 * tree-vrp.c (value_range_constant_singleton): Remove.
15188 * tree-vrp.h (value_range_constant_singleton): Remove.
15189 * vr-values.c (vr_values::singleton): Use
15190 value_range::singleton_p.
15192 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15195 * cfgexpand.c (align_local_variable): Add really_expand argument,
15196 don't SET_DECL_ALIGN if it is false.
15197 (add_stack_var): Add really_expand argument, pass it through to
15198 align_local_variable.
15199 (expand_one_stack_var_1): Pass true as really_expand to
15200 align_local_variable.
15201 (expand_one_ssa_partition): Pass true as really_expand to
15203 (expand_one_var): Pass really_expand through to add_stack_var.
15205 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15207 * config/arm/iterators.md (VABAL): New int iterator.
15208 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15209 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15210 UNSPEC_VABAL_U values.
15212 2019-06-12 Martin Liska <mliska@suse.cz>
15214 * value-prof.c (stream_out_histogram_value): Only first value
15217 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15220 * symtab.c (symtab_node::set_section): Allow being called on aliases
15221 as long as they aren't analyzed yet.
15223 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15225 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15226 to `mips_set_text_contents_type' to indicate whether a
15227 non-debug insn follows.
15229 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15231 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15232 enabling -mpcrel by default.
15233 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15234 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15235 that the test against -mcpu=future is done first. Then test if
15236 -mprefixed-addr is on for -mpcrel.
15237 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15239 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15242 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15243 instead of and.u%d.
15245 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15247 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15249 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15251 PR c++/90449 - add -Winaccessible-base option.
15252 * doc/invoke.texi (Winaccessible-base): Document.
15254 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15256 PR tree-optimization/62041
15257 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15259 2019-06-11 Jason Merrill <jason@redhat.com>
15261 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15262 * tree.c (get_tree_code_name): Likewise.
15263 * print-tree.c (print_node): Only briefly print a node with an
15266 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15269 * trans-mem.c (tm_memopt_compute_available): Add assertion
15270 that blocks is not empty. Formatting fix.
15272 2019-06-11 Martin Liska <mliska@suse.cz>
15275 * hash-table.h: Extend create_gcc, add one parameter
15276 that is passed into hash_table::hash_table.
15278 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15280 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15282 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15283 Emit clobber also for non-sse operations.
15284 (ix86_split_fp_absneg_operator): New function.
15285 * config/i386/i386.md (SSEMODEF): New mode iterator.
15286 (ssevecmodef): New mode attribute.
15287 (<code>tf2): Use absneg code iterator.
15288 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15289 Add three-operand AVX alternatives.
15290 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15291 Use absneg code iterator and X87MODEF mode iterator.
15292 (absneg fp_reg non-sse splitter): Call absneg code iterator
15293 and X87MODEF mode iterator.
15294 (absneg general_reg non-sse splitter): Use absneg code iterator
15295 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15296 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15297 code iterator. Add three-operand AVX alternative.
15298 (absneg sse_reg splitter): Use absneg code iterator
15299 and SSEMODEF mode iterator. Handle AVX operands.
15300 (absneg fp_reg splitter): Use absneg code iterator
15301 and MODEF mode iterator.
15302 (absneg general_reg splitter): Merge splitters using MODEF mode
15303 iterator. Use absneg code iterator. Call
15304 ix86_split_fp_absneg_operator.
15305 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15306 Do not enable for non-sse modes before reload.
15307 (CSGNMODE): Remove.
15308 (CSGNVMODE): Ditto.
15309 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15310 ssevecmodef mode attribute instaed of CSGNVMODE.
15311 (copysign<mode>3_const): Ditto.
15312 (copysign<mode>3_var): Ditto.
15313 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15314 Use absneg code iterator. Simplify code using std::swap.
15315 * config/i386/predicates.md (absneg_operator): Remove.
15317 2019-06-10 Martin Sebor <msebor@redhat.com>
15319 * gimple-fold.c (get_range_strlen): Update comment that didn't
15320 make it into r267503 or related commits.
15322 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15324 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15325 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15327 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15329 * tree.def (OMP_SCAN): New tree code.
15330 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15331 OMP_CLAUSE_EXCLUSIVE.
15332 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15333 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15334 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15335 OMP_CLAUSE_{IN,EX}CLUSIVE.
15336 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15337 * tree-nested.c (convert_nonlocal_reference_stmt,
15338 convert_local_reference_stmt, convert_gimple_call): Handle
15340 * tree-pretty-print.c (dump_omp_clause): Handle
15341 OMP_CLAUSE_{IN,EX}CLUSIVE.
15342 (dump_generic_node): Handle OMP_SCAN.
15343 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15344 * gimple.h (gomp_scan): New type.
15345 (is_a_helper <gomp_scan *>::test,
15346 is_a_helper <const gomp_scan *>::test): New templates.
15347 (gimple_build_omp_scan): Declare.
15348 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15349 gimple_omp_scan_set_clauses): New inline functions.
15350 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15351 * gimple.c (gimple_build_omp_scan): New function.
15352 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15353 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15354 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15355 GIMPLE_OMP_TASKGROUP.
15356 (dump_gimple_omp_scan): New function.
15357 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15358 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15359 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15360 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15361 (is_gimple_stmt): Handle OMP_SCAN.
15362 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15363 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15364 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15365 mentioned in nested #pragma omp scan. Handle
15366 OMP_CLAUSE_{IN,EX}CLUSIVE.
15367 (gimplify_expr): Handle OMP_SCAN.
15368 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15369 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15371 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15374 2019-06-10 Martin Liska <mliska@suse.cz>
15376 * ipa-cp.c (ignore_edge_p): New function.
15377 (build_toporder_info): Use it.
15378 * ipa-inline.c (ignore_edge_p): New function.
15379 (inline_small_functions): Use it.
15380 * ipa-pure-const.c (ignore_edge_for_nothrow):
15381 Verify opt_for_fn for caller and callee.
15382 (ignore_edge_for_pure_const): Likewise.
15383 * ipa-reference.c (ignore_edge_p): Extend to check
15385 * ipa-utils.c (searchc): Refactor.
15386 * ipa-utils.h: Fix coding style.
15388 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15390 * config/arc/arc.c (arc_rtx_costs): Update costs.
15392 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15394 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15395 (arc_split_ior): Likewise.
15396 (arc_check_mov_const): Likewise.
15397 (arc_split_mov_const): Likewise.
15398 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15399 (arc_rtx_costs): Replace check Crr with Cax constraint.
15400 (prepare_move_operands): Cleanup, remove unused code.
15401 (arc_split_ior): New function.
15402 (arc_check_ior_const): Likewise.
15403 (arc_split_mov_const): Likewise.
15404 (arc_check_mov_const): Likewise.
15405 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15406 in define_insn_and_split pattern.
15407 (iorsi3): Likewise.
15408 (mulsi3_v2): Add new matching variant.
15409 (andsi3_i): Cleanup pattern.
15410 (rotrsi3_cnt1): Update pattern.
15411 (rotrsi3_cnt8): New pattern.
15412 (ashlsi2_cnt8): Likewise.
15413 (ashlsi2_cnt16): Likewise.
15414 * config/arc/constraints.md (C0p): Update constraint.
15416 (C0x): New pattern.
15417 (Cax): New pattern.
15419 2019-06-10 Martin Liska <mliska@suse.cz>
15421 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15422 Update coding style.
15423 (sem_item_optimizer::dump_cong_classes):
15424 Print how many items are in a non-singular class. Improve
15427 2019-06-10 Martin Liska <mliska@suse.cz>
15429 * value-prof.c (dump_histogram_value): Change dump format.
15430 (gimple_mod_subtract_transform): Remove legacy comment.
15432 2019-06-10 Martin Liska <mliska@suse.cz>
15434 * value-prof.c (dump_histogram_value): Print histogram values
15437 2019-06-10 Martin Liska <mliska@suse.cz>
15439 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15440 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15441 * ipa-profile.c (ipa_profile_generate_summary):
15442 Use get_most_common_single_value.
15443 * tree-profile.c (gimple_init_gcov_profiler):
15444 Instrument with __gcov_one_value_profiler_v2
15445 and __gcov_indirect_call_profiler_v4.
15446 * value-prof.c (dump_histogram_value):
15447 Print all values for HIST_TYPE_SINGLE_VALUE.
15448 (stream_out_histogram_value): Update assert for
15450 (stream_in_histogram_value): Set number of
15451 counters for HIST_TYPE_SINGLE_VALUE.
15452 (get_most_common_single_value): New.
15453 (gimple_divmod_fixed_value_transform):
15454 Use get_most_common_single_value.
15455 (gimple_ic_transform): Likewise.
15456 (gimple_stringops_transform): Likewise.
15457 (gimple_find_values_to_profile): Set number
15458 of counters for HIST_TYPE_SINGLE_VALUE.
15459 * value-prof.h (get_most_common_single_value): New.
15461 2019-06-10 Martin Liska <mliska@suse.cz>
15463 * hash-map.h: Pass default value to hash_table ctor.
15464 * hash-table.h: Add default value to call of a ctor.
15466 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15468 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15469 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15471 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15474 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15475 Call pa_output_function_label.
15476 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15477 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15478 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15480 (pa_linux_output_function_prologue): Declare.
15481 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15482 (pa_output_function_label): New.
15483 (pa_output_function_prologue): Revise to use pa_output_function_label.
15484 (pa_linux_output_function_prologue): New.
15485 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15487 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15489 * tree-vrp.h (value_range_base::intersect): New.
15490 (value_range::intersect_helper): Move from here...
15491 (value_range_base::intersect_helper): ...to here.
15492 * tree-vrp.c (value_range::intersect_helper): Rename to...
15493 (value_range_base::intersect_helper): ...this, and rewrite to
15494 return a value instead of modifying THIS in place.
15495 Also, move equivalence handling...
15496 (value_range::intersect): ...here, while calling intersect_helper.
15497 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15499 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15501 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15503 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15505 * Makefile.in (genprogerr): Add condmd.
15506 (genprog): Remove it here.
15508 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15510 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15512 2019-06-07 Richard Biener <rguenther@suse.de>
15515 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15516 that appear after user labels.
15518 2019-06-07 Martin Liska <mliska@suse.cz>
15520 * cselib.c (cselib_init): Disable hash table
15522 * hash-set.h: Pass new default argument to m_table.
15523 * hash-table.c: Add global variable with hash table
15524 sanitization limit.
15525 * hash-table.h (Allocator>::hash_table): Add new argument
15527 (hashtab_chk_error): New.
15528 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15529 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15530 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15532 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15534 * common.opt (flto-odr-type-merging): Ignore.
15535 * invoke.texi (-flto-odr-type-merging): Remove.
15536 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15537 (can_be_vtable_hashed_p): Remove.
15538 (hash_odr_vtable): Remove.
15539 (odr_vtable_hasher::hash): Remove.
15540 (types_same_for_odr): Remove.
15541 (types_odr_comparable): Remove.
15542 (odr_vtable_hasher::equal): Remove.
15543 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15544 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15545 (get_odr_type): Do not use vtable hash.
15546 (dump_odr_type): Remove commented out code.
15547 (build_type_inheritance_graph): Do not allocate vtable hash.
15548 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15549 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15550 (odr_type_p): Likewise.
15551 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15554 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15556 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15557 immediately after same_types_for_tbaa_p returns -1 and continue
15558 looking for possible exact match; if matching types are arrays
15559 watch for partial overlaps.
15560 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15561 (indirect_refs_may_alias_p): Do type based disambiguation first;
15564 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15566 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15568 2019-06-07 Martin Liska <mliska@suse.cz>
15570 * doc/invoke.texi: Remove param.
15571 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15573 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15574 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15575 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15576 * profile.c (instrument_values): Remove
15577 HIST_TYPE_INDIR_CALL_TOPN.
15578 * tree-profile.c (init_ic_make_global_vars):
15579 Always build __gcov_indirect_call only.
15580 (gimple_init_gcov_profiler): Remove usage
15581 of PARAM_INDIR_CALL_TOPN_PROFILE.
15582 (gimple_gen_ic_profiler): Likewise.
15583 * value-prof.c (dump_histogram_value): Likewise.
15584 (stream_in_histogram_value): Likewise.
15585 (gimple_indirect_call_to_profile): Likewise.
15586 (gimple_find_values_to_profile): Likewise.
15587 * value-prof.h (enum hist_type): Likewise.
15589 2019-06-07 Martin Liska <mliska@suse.cz>
15591 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15594 2019-06-07 Martin Liska <mliska@suse.cz>
15596 PR tree-optimization/78902
15597 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15598 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15599 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15600 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15601 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15602 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15603 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15604 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15605 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15606 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15607 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15608 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15609 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15611 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15612 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15613 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15614 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15615 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15616 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15617 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15618 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15619 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15620 warn_unused_result attribute.
15621 (BUILT_IN_STRDUP): Likewise.
15622 (BUILT_IN_STRNDUP): Likewise.
15623 (BUILT_IN_ALLOCA): Likewise.
15624 (BUILT_IN_CALLOC): Likewise.
15625 (BUILT_IN_MALLOC): Likewise.
15626 (BUILT_IN_REALLOC): Likewise.
15628 2019-06-06 Jim Wilson <jimw@sifive.com>
15631 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15632 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15633 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15635 2019-06-06 Martin Sebor <msebor@redhat.com>
15637 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15638 (handle_builtin_malloc): Remove trailing spaces.
15639 (handle_builtin_memset): Same.
15640 (handle_builtin_memcmp): Same.
15641 (compute_string_length): Same.
15642 (determine_min_objsize): Same.
15643 (handle_builtin_string_cmp): Same.
15644 (handle_char_store): Same. Break up excessively long line.
15646 2019-06-06 Martin Jambor <mjambor@suse.cz>
15648 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15651 2019-06-06 Martin Jambor <mjambor@suse.cz>
15653 * tree-sra.c (struct access): New field grp_same_access_path.
15654 (dump_access): Dump it.
15655 (build_reconstructed_reference): New function.
15656 (build_ref_for_model): Use it if possible.
15657 (path_comparable_for_same_access): New function.
15658 (same_access_path_p): Likewise.
15659 (sort_and_splice_var_accesses): Set the new flag.
15660 (analyze_access_subtree): Likewise.
15661 (propagate_subaccesses_across_link): Propagate zero value of the new
15662 flag down the access tree.
15664 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15666 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15667 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15668 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15669 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15672 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15674 PR tree-optimization/90332
15675 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15676 Handle VALS containing two vectors.
15677 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15679 (@aarch64_combinez<mode>): ... This.
15680 (*aarch64_combinez_be<mode>): Rename to...
15681 (@aarch64_combinez_be<mode>): ... This.
15682 (vec_init<mode><Vhalf>): New define_expand.
15683 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15685 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15687 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15688 library functions only when not optimizing for size.
15689 (ashlsi3): Likewise.
15690 (ashrhi3): Likewise.
15691 (ashrsi3): Likewise.
15692 (lshrhi3): Likewise.
15693 (lshrsi3): Likewise.
15695 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15697 PR rtl-optimization/88751
15698 * ira.c (ira): Use the number of the actually referenced registers
15699 when calculating the threshold.
15701 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15703 * configure: Regenerate.
15705 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15707 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15708 register if it is in memory, so the shift can be emulated with a rotate
15710 (ashrhi3): Likewise.
15711 (lshrhi3): Likewise.
15713 2019-06-06 Martin Liska <mliska@suse.cz>
15715 PR tree-optimization/87954
15716 * match.pd: Simplify mult where both arguments are 0 or 1.
15718 2019-06-06 Richard Biener <rguenther@suse.de>
15720 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15721 put equivalences on UNDEFINED ranges.
15722 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15723 Make sure to drop defs of stmts added during simplification
15726 2019-06-06 Richard Biener <rguenther@suse.de>
15728 * tree-ssa-structalias.c: Include tree-cfg.h.
15729 (make_heapvar): Do not make heap vars artificial.
15730 (find_func_aliases_for_builtin_call): Handle stack allocation
15732 (find_func_aliases): Delay processing of simple enough returns
15734 (set_uids_in_ptset): Adjust.
15735 (find_what_var_points_to): Likewise.
15736 (solve_constraints): Do not dump points-to sets here.
15737 (compute_points_to_sets): Post-process return statements,
15738 amending the escaped solution. Dump points-to sets afterwards.
15739 (ipa_pta_execute): Dump points-to sets.
15741 2019-06-06 Martin Liska <mliska@suse.cz>
15744 * doc/install.texi: Fix HTML headers and
15745 titles for 'Installing GCC' pages.
15747 2019-06-06 Martin Liska <mliska@suse.cz>
15749 * ipa-icf-gimple.h (dump_message_1): Remove.
15750 (dump_message): Likewise.
15751 (return_false_with_message_1): Print also file.
15752 (return_false_with_msg): Likewise.
15753 (return_with_result): Likewise.
15754 (return_with_debug): Likewise.
15755 * ipa-icf.c (sem_function::equals_private): Remove call
15758 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15760 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15761 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15762 memory operand for it.
15763 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15765 2019-06-05 Martin Sebor <msebor@redhat.com>
15767 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15768 Adjust quoting and hyphenation.
15769 * convert.c (convert_to_real_1): Same.
15770 * gcc.c (driver_wrong_lang_callback): Same.
15771 (driver::handle_unrecognized_options): Same.
15772 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15773 * opts-common.c (cmdline_handle_error): Same.
15774 (read_cmdline_option): Same.
15775 * opts-global.c (complain_wrong_lang): Same.
15776 (print_ignored_options): Same.
15777 (handle_common_deferred_options): Same.
15778 * pretty-print.h: Same.
15779 * print-rtl.c (debug_bb_n_slim): Same.
15780 * sched-rgn.c (make_pass_sched_fusion): Same.
15781 * tree-cfg.c (verify_gimple_assign_unary): Same.
15782 (verify_gimple_label): Same.
15783 * tree-ssa-operands.c (verify_ssa_operands): Same.
15784 * varasm.c (do_assemble_alias): Same.
15785 (assemble_alias): Same.
15787 2019-06-05 Richard Henderson <rth@twiddle.net>
15789 * config/alpha/alpha.c (direct_return): Move down after
15790 struct machine_function definition; use saved frame_size;
15792 (struct machine_function): Add sa_mask, sa_size, frame_size.
15793 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15794 (alpha_compute_frame_layout): ... new function.
15795 (TARGET_COMPUTE_FRAME_LAYOUT): New.
15796 (alpha_initial_elimination_offset): Use saved sa_size.
15797 (alpha_vms_initial_elimination_offset): Likewise.
15798 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15799 (alpha_expand_prologue): Use saved frame data. Merge integer
15800 and fp register save loops.
15801 (alpha_expand_epilogue): Likewise.
15802 (alpha_start_function): Use saved frame data.
15803 * config/alpha/alpha-protos.h (direct_return): Update.
15804 (alpha_sa_size): Remove.
15806 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
15808 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15809 multiplication by a power-of-two value.
15810 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15811 and turn the modulo operation into a masking operation.
15813 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15816 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15817 with VOIDmode inner operands.
15819 2019-06-05 Richard Biener <rguenther@suse.de>
15821 PR middle-end/90726
15822 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15823 turn an expression graph into a tree.
15825 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15827 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15829 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15830 treat it like explicit monotonic schedule modifier.
15831 (expand_omp_for): Initialize has_lastprivate_conditional.
15832 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15835 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15836 references, lookup in in hash map MEM_REF operand instead of the
15838 (lower_omp_1): When looking for lastprivate conditional assignments,
15839 handle MEM_REFs with REFERENCE_TYPE operands.
15841 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15842 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15843 and references a VLA. Handle references to non-VLAs if is_simd
15844 all privatization clauses like reductions.
15845 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15846 If omp_is_reference, use always omp simd arrays and set
15847 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15848 fails, emit reference initialization.
15850 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15853 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
15854 _mm_mask_fpclass_sd_mask): New intrinsics.
15855 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
15856 * config/i386/i386-builtin.def
15857 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
15859 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
15860 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
15861 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
15862 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
15863 case QI_FTYPE_V2SF_INT): Ditto.
15864 * config/i386/sse.md
15865 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
15866 Extended to insnstructions with mask operands.
15868 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15870 * config/rs6000/constraints.md (define_register_constraint "wp"):
15872 (define_register_constraint "wq"): Delete.
15873 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15874 (rs6000_init_hard_regno_mode_ok): Adjust.
15875 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15876 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
15877 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
15878 (define_mode_attr VSa): Delete.
15879 (define_mode_attr VSisa): New.
15880 (rest of file): Adjust.
15881 * doc/md.texi (Machine Constraints): Adjust.
15883 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15885 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
15886 (define_attr "enabled"): Handle those new isa values.
15888 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15890 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
15891 (define_mode_attr VSr5): Delete.
15892 (define_mode_attr VStype_sqrt): Delete.
15893 (define_mode_iterator VSX_SPDP): Delete.
15894 (define_mode_attr VS_spdp_res): Delete.
15895 (define_mode_attr VS_spdp_insn): Delete.
15896 (define_mode_attr VS_spdp_type): Delete.
15897 (*vsx_sqrt<mode>2): Adjust.
15898 (vsx_<VS_spdp_insn>): Delete, split to...
15899 (vsx_xscvdpsp): ... this. New. And...
15900 (vsx_xvcvspdp): ... this. New. And...
15901 (vsx_xvcvdpsp): ... this. New.
15903 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15905 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
15907 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
15908 (rest of file): Adjust.
15910 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15912 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
15913 (vsx_extract_<mode>_var): Ditto.
15915 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15917 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
15920 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15922 * config/rs6000/constraints.md (define_register_constraint "ww"):
15924 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15925 (rs6000_init_hard_regno_mode_ok): Adjust.
15926 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15927 RS6000_CONSTRAINT_ww.
15928 * config/rs6000/rs6000.md: Adjust.
15929 * config/rs6000/vsx.md: Adjust.
15930 * doc/md.texi (Machine Constraints): Adjust.
15932 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15934 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
15935 (define_mode_attr sd): New.
15936 (define_mode_attr s): New.
15937 (define_mode_attr Ftrad): Delete.
15938 (define_mode_attr Fvsx): Delete.
15939 (define_mode_attr Fs): Delete.
15940 (rest of file): Use the new mode attributes.
15941 * config.rs6000/vsx.md: Use the new mode attributes.
15943 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15945 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
15948 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15950 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
15951 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
15952 used with VSX_B, VSX_D, or VSX_F, with just "wa".
15954 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
15957 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
15958 C++ with strict ANSI requirements.
15960 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
15962 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
15963 computations when step is 1.
15965 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15967 * config/rs6000/constraints.md (define_register_constraint "wf"):
15969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15970 (rs6000_init_hard_regno_mode_ok): Adjust.
15971 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15972 RS6000_CONSTRAINT_wf.
15973 * config/rs6000/rs6000.md: Adjust.
15974 * config/rs6000/vsx.md: Adjust.
15975 * doc/md.texi (Machine Constraints): Adjust.
15977 2019-06-04 Andrew Pinski <apinski@marvell.com>
15979 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
15982 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15984 * config/rs6000/constraints.md (define_register_constraint "wd"):
15986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15987 (rs6000_init_hard_regno_mode_ok): Adjust.
15988 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15989 RS6000_CONSTRAINT_wd.
15990 * config/rs6000/rs6000.md: Adjust.
15991 * config/rs6000/vsx.md: Adjust.
15992 * doc/md.texi (Machine Constraints): Adjust.
15994 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15996 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
15997 (rest of file): Adjust.
15999 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16001 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16002 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16003 (vsx_splat_<mode>_reg): Adjust.
16005 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16007 * config/rs6000/constraints.md (define_register_constraint "ws"):
16009 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16010 (rs6000_init_hard_regno_mode_ok): Adjust.
16011 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16012 RS6000_CONSTRAINT_ws.
16013 * config/rs6000/rs6000.md: Adjust.
16014 * config/rs6000/vsx.md: Adjust.
16015 * doc/md.texi (Machine Constraints): Adjust.
16017 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16019 * config/rs6000/constraints.md (define_register_constraint "wv"):
16021 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16022 (rs6000_init_hard_regno_mode_ok): Adjust.
16023 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16024 RS6000_CONSTRAINT_wv.
16025 * config/rs6000/rs6000.md: Adjust.
16026 * config/rs6000/vsx.md: Adjust.
16027 * doc/md.texi (Machine Constraints): Adjust.
16029 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16031 * config/rs6000/constraints.md (define_register_constraint "wi"):
16033 (define_register_constraint "wt"): Delete.
16034 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16035 (rs6000_init_hard_regno_mode_ok): Adjust.
16036 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16037 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16038 * config/rs6000/rs6000.md: Adjust.
16039 * config/rs6000/vsx.md: Adjust.
16040 * doc/md.texi (Machine Constraints): Adjust.
16042 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16044 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16046 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16047 default_elf_asm_output_external.
16049 2019-06-04 Martin Liska <mliska@suse.cz>
16051 * ipa-icf.c (INCLUDE_LIST): Remove.
16052 (sem_item_optimizer::execute): Remove call to init_wpa.
16053 * ipa-icf.h (init_wpa): Remove.
16055 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16057 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16058 conditional on combined for simd.
16059 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16061 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16062 constructs, don't remove lastprivate_conditional_map, but instead set
16063 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16064 to parent construct temporaries.
16065 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16066 like !ctx->lastprivate_conditional_map.
16067 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16068 use up->outer context instead of up.
16069 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16070 gimple_omp_for_combined_p.
16071 (expand_omp_for_static_nochunk): Likewise.
16072 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16073 probably moved over into expand_omp_for_generic rather than being copied
16076 2019-06-04 Martin Liska <mliska@suse.cz>
16078 * value-prof.c (dump_histogram_value): Fix typo.
16079 (gimple_mod_subtract_transform): Likewise.
16081 2019-06-04 Richard Biener <rguenther@suse.de>
16083 PR middle-end/90726
16084 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16085 (tree_contains_chrecs): Likewise.
16086 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16087 exponential behaivor from ...
16088 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16090 (expression_expensive_p): Avoid exponential behavior and compute
16091 expanded size, rejecting any expansion.
16092 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16093 (idx_contains_abnormal_ssa_name_p): Likewise.
16094 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16095 (contains_abnormal_ssa_name_p): Simplify and use
16096 walk_tree_without_duplicates.
16098 2019-06-04 Richard Biener <rguenther@suse.de>
16100 PR tree-optimization/90738
16102 2019-06-03 Richard Biener <rguenther@suse.de>
16104 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16105 full reference tree and record in ref->ref.
16106 (vn_reference_lookup_3): Pass in original ref to
16107 ao_ref_init_from_vn_reference.
16108 (vn_reference_lookup): Likewise.
16109 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16110 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16111 Handle non-decl bases in the original reference.
16113 2019-06-04 Martin Liska <mliska@suse.cz>
16115 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16116 number of references.
16117 (sem_item_optimizer::do_congruence_step):
16118 (sem_item_optimizer::worklist_push): Dump how references
16120 (sem_item_optimizer::worklist_pop): Use heap.
16121 (sem_item_optimizer::process_cong_reduction): Likewise.
16122 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16124 2019-06-04 Martin Liska <mliska@suse.cz>
16126 * ipa-icf.h (struct sem_usage_pair_hash): New.
16127 (sem_usage_pair_hash::hash): Likewise.
16128 (sem_usage_pair_hash::equal): Likewise.
16129 (struct sem_usage_hash): Likewise.
16130 * ipa-icf.c (sem_item::sem_item): Initialize
16131 referenced_by_count.
16132 (sem_item::add_reference): Register a reference
16133 in ref_map and not in target->usages.
16134 (sem_item::setup): Remove initialization of
16136 (sem_item::~sem_item): Remove usage of dead vectors.
16137 (sem_item::dump): Remove dump of references.
16138 (sem_item_optimizer::sem_item_optimizer): Initialize
16140 (sem_item_optimizer::read_section): Remove useless
16142 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16143 (sem_item_optimizer::build_graph): Pass m_references
16144 to ::add_reference.
16145 (sem_item_optimizer::verify_classes): Remove usage of dead
16147 (sem_item_optimizer::traverse_congruence_split): Return true
16148 when a class is split.
16149 (sem_item_optimizer::do_congruence_step_for_index): Use
16150 hash_map for look up of (sem_item *, index). That brings
16151 significant speed up.
16152 (sem_item_optimizer::do_congruence_step): Return true
16153 when a split is done.
16154 (congruence_class::is_class_used): Use referenced_by_count.
16156 2019-06-04 Alan Modra <amodra@gmail.com>
16159 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16162 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16164 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16165 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16166 (rs6000_secondary_reload_simple_move): Adjust.
16167 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16168 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16169 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16172 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16173 (floatunssi<mode>2_lfiwzx): Adjust.
16174 (fix_trunc<mode>si2_stfiwx): Adjust.
16175 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16176 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16177 (mfpgpr): Mark as deprecated.
16178 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16179 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16180 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16182 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16184 * config/rs6000/constraints.md (define_register_constraint "wg"):
16186 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16187 RS6000_CONSTRAINT_wg.
16188 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16189 (rs6000_init_hard_regno_mode_ok): Adjust.
16190 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16191 Delete "wg" alternatives.
16192 * doc/md.texi (Machine Constraints): Adjust.
16194 2019-06-03 Alan Modra <amodra@gmail.com>
16196 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16197 (get_uncond_jump_length): Assert length less than INT_MAX and
16200 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16202 PR middle-end/64242
16203 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16205 (expand_builtin_nonlocal_goto): Likewise.
16207 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16209 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16210 (aarch64_asm_output_external): Declare.
16211 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16212 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16213 (aarch64_asm_output_alias): New.
16214 (aarch64_asm_output_external): New.
16215 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16216 (ASM_OUTPUT_EXTERNAL): Define.
16218 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16219 * tree-vrp.h (value_range_base::nonzero_p): New.
16220 (value_range_base::set_nonnull): Rename to...
16221 (value_range_base::set_nonzero): ...this.
16222 (value_range_base::set_null): Rename to...
16223 (value_range_base::set_zero): ...this.
16224 (value_range::set_nonnull): Remove.
16225 (value_range::set_null): Remove.
16226 * tree-vrp.c (range_is_null): Remove.
16227 (range_is_nonnull): Remove.
16228 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16229 instead of range_is_*null.
16230 (extract_range_from_unary_expr): Same.
16231 (value_range_base::set_nonnull): Rename to...
16232 (value_range_base::set_nonzero): ...this.
16233 (value_range::set_nonnull): Remove.
16234 (value_range_base::set_null): Rename to...
16235 (value_range_base::set_zero): ...this.
16236 (value_range::set_null): Remove.
16237 (extract_range_from_binary_expr): Rename set_*null uses to
16239 (extract_range_from_unary_expr): Same.
16240 (union_helper): Same.
16241 * vr-values.c (get_value_range): Use set_*zero instead of
16243 (vr_values::extract_range_from_binary_expr): Same.
16244 (vr_values::extract_range_basic): Same.
16246 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16249 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16251 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16253 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16254 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16256 (aarch64_<su>abd<mode>_3): ... This.
16257 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16259 2019-06-03 Richard Biener <rguenther@suse.de>
16261 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16262 full reference tree and record in ref->ref.
16263 (vn_reference_lookup_3): Pass in original ref to
16264 ao_ref_init_from_vn_reference.
16265 (vn_reference_lookup): Likewise.
16266 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16267 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16268 Handle non-decl bases in the original reference.
16270 2019-06-03 Martin Liska <mliska@suse.cz>
16272 * doc/generic.texi: Remove Java Trees.
16274 2019-06-03 Martin Liska <mliska@suse.cz>
16276 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16277 returns 0 when operands are equal.
16279 2019-06-03 Richard Biener <rguenther@suse.de>
16281 PR tree-optimization/90716
16282 * tree-loop-distribution.c (destroy_loop): Process blocks in
16285 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16288 * vector-builder.h (vector_builder::count_dups): New method.
16289 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16291 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16292 (vec_init<mode><Vel>): New pattern.
16293 * config/aarch64/aarch64.c (emit_insr): New function.
16294 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16295 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16296 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16297 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16299 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16301 PR tree-optimization/90681
16302 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16303 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16304 special case for SLP, but fail on non-groupped loads.
16306 2019-06-03 Martin Liska <mliska@suse.cz>
16308 * cfg.c (debug): Use TDF_DETAILS for debug and
16309 print edge info only once.
16311 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16314 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16316 2019-06-01 Martin Sebor <msebor@redhat.com>
16318 PR middle-end/90694
16319 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16321 2019-05-31 Jan Hubicka <jh@suse.cz>
16323 * alias.c: Include ipa-utils.h.
16324 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16325 * ipa-devirt.c (prevailing_odr_type): New.
16326 * ipa-utils.h (previaling_odr_type): Declare.
16328 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16329 Hongtao Liu <hongtao.liu@intel.com>
16332 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16333 NOTE_INSN_DELETED_LABEL check.
16335 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16336 Robert Suchanek <robert.suchanek@mips.com>
16338 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16339 and 3rd operands of the fmadd/fmsub/maddv builtin.
16341 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16343 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16344 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16345 on OMP_SIMD if not nested inside of worksharing loop that also has
16346 lastprivate conditional clause for the same decl.
16347 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16348 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16350 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16352 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16354 (lower_lastprivate_clauses): Likewise.
16355 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16356 calling lower_rec_input_clauses.
16357 (lower_omp_for): Likewise.
16358 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16359 clause on simd construct.
16360 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16361 OMP_CLAUSE__CONDTEMP_ clause is present.
16363 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16366 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16369 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16370 TEX_D32, TEX_D64 or TEX_D128.
16372 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16374 * match.pd (~(vec?cst1:cst2)): New transformation.
16376 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16378 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16379 ((size_t)(A /[ex] B) CMP C): New transformation.
16381 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16383 * doc/md.texi: Document define_insn_and_rewrite.
16384 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16385 * gensupport.c (queue_elem): Update comment.
16386 (replace_operands_with_dups): New function.
16387 (gen_rewrite_sequence): Likewise.
16388 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16389 * read-rtl.c (apply_subst_iterator): Likewise.
16390 (add_condition_to_rtx, named_rtx_p): Likewise.
16391 (rtx_reader::read_rtx_operand): Likewise.
16392 * config/aarch64/aarch64-sve.md
16393 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16394 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16395 define_insn_and_rewrite.
16396 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16397 Remove separate define_split.
16399 2019-05-31 Jan Hubicka <jh@suse.cz>
16401 * tree-ssa-alias.c (type_has_components_p): New function.
16402 (aliasing_component_refs_p): Use it.
16404 2019-05-31 Martin Liska <mliska@suse.cz>
16406 * gdbhooks.py: Add const_tree to TreePrinter.
16408 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16411 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16412 * doc/invoke.texi (Debugging Options): Document new default of
16413 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16415 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16417 PR tree-optimization/90671
16418 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16419 template_block used to be empty on the first call, don't use
16420 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16421 seq with bb_seq and set it with set_bb_seq.
16423 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16425 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16427 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16428 Michael Meissner <meissner@linux.ibm.com>
16430 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16431 (prefixed_mem_operand): Likewise.
16432 (non_prefixed_mem_operand): Likewise.
16433 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16435 * config/rs6000/rs6000.c (print_operand_address): Handle
16436 PC-relative addresses.
16437 (mode_supports_prefixed_address_p): New function.
16438 (rs6000_prefixed_address): New function.
16439 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16440 (SYMBOL_REF_PCREL_P): Likewise.
16442 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16444 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16445 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16446 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16447 is nested inside of parallel region, add _condtemp_ clause to both.
16448 * tree-nested.c (convert_nonlocal_omp_clauses,
16449 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16451 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16453 * omp-general.c (omp_extract_for_data): Compute it.
16454 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16455 (lower_rec_input_clauses): Likewise.
16456 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16457 clause is already present, just add one further one after it.
16458 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16459 (lower_send_shared_vars): Clear _condtemp_ vars.
16460 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16461 or section or taskgroup.
16462 * omp-expand.c (determine_parallel_type): Disallow combining only if
16463 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16464 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16465 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16466 expand_omp_for_static_chunk, expand_omp_for): Use
16467 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16468 determine if a special set of API routines are needed and if condtemp
16469 needs to be initialized, while always initialize cond_var if
16470 fd->lastprivate_conditional is non-zero.
16472 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16473 Michael Meissner <meissner@linux.ibm.com>
16475 * config/rs6000/constraints.md (eI): New constraint.
16476 * config/rs6000/predicates.md (cint34_operand): New predicate.
16477 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16478 (SIGNED_34BIT_OFFSET_P): Likewise.
16479 * doc/md.texi (eI): Document constraint.
16481 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16483 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16485 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16486 Michael Meissner <meissner@linux.ibm.com>
16488 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16489 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16490 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16491 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16492 (OTHER_FUTURE_MASKS): Likewise.
16493 (POWERPC_MASKS): Likewise.
16494 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16495 specified without -mprefixed-addr or -mcpu=future. Error if
16496 -mprefixed-addr is specified without -mcpu=future.
16497 (rs6000_opt_masks): Add entry for prefixed-addr.
16498 * rs6000.opt (mprefixed-addr): New option.
16500 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16502 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16503 cfun->is_thunk check.
16505 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16507 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16510 2019-05-30 Martin Liska <mliska@suse.cz>
16512 * gdbinit.in: Fix 'ptc' command. Add trt
16513 that prints TREE_TYPE($).
16515 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16516 Alan Modra <amodra@gmail.com>
16518 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16520 (rs6000_indirect_call_template_1): ...and here.
16521 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16522 plt16_ha, plt16_lo, mtctr indirect calls. Use
16523 rs6000_pltseq_enum.
16524 (rs6000_decl_ok_for_sibcall): New function.
16525 (rs6000_function_ok_for_sibcall): Refactor.
16526 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16527 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16528 when pcrel. Reorganize.
16529 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16530 * rs6000.h (rs6000_pltseq_enum): New enum.
16531 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16532 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16533 (*pltseq_plt16_ha): Likewise.
16534 (*pltseq_plt16_lo): Likewise.
16535 (*pltseq_mtctr): Likewise.
16536 (*pltseq_plt_pcrel): New insn.
16537 (*call_local_aix): Handle @notoc calls.
16538 (*call_value_local_aix): Likewise.
16539 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16540 (*call_value_nonlocal_aix): Likewise.
16541 (*call_indirect_pcrel): New insn.
16542 (*call_value_indirect_pcrel): Likewise.
16544 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16546 * config/i386/sse.md (*save_multiple<mode>): Rename from
16547 save_multiple<mode>.
16548 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16549 (*restore_multiple_and_return<mode>): Rename from
16550 restore_multiple_and_return<mode>.
16551 (*restore_multiple_leave_return<mode>): Rename from
16552 restore_multiple_leave_return<mode>.
16554 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16556 * config.gcc (rx-*-linux*): New target.
16557 * config/rx/elf.opt: New file.
16558 * config/rx/linux.h: Likewise.
16559 * config/rx/t-linux: Likewise.
16560 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16562 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16563 (ASM_APP_OFF): Likewise.
16564 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16567 2019-05-29 Jan Hubicka <jh@suse.cz>
16569 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16570 variants are pointer equivalent.
16572 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16574 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16575 * config/aarch64/aarch64-sve2.md: New file.
16576 (<u>avg<mode>3_floor): New pattern.
16577 (<u>avg<mode>3_ceil): Likewise.
16578 (*<sur>h<addsub><mode>): Likewise.
16579 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16580 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16582 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16585 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16586 for var_opt_string printing. In cl_optimization_print_diff, print
16587 (null) instead of invoking undefined behavior if one of the
16588 var_opt_string pointers is NULL and use && instead of first || in the
16589 guarding condition. For var_target_other options, handle const char *
16590 target variables similarly to const char * optimize node variables.
16592 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16594 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16595 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16596 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16597 Add autib1716 and pacib1716 initialisation.
16598 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16599 for autib1716 and pacib1716.
16600 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16601 aarch64_post_cfi_startproc): Define.
16602 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16603 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16604 aarch64_handle_pac_ret_protection): Set default sign key to A.
16605 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16606 aarch64_expand_prologue): Add check for b-key.
16607 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16608 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16609 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16610 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16611 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16612 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16613 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16614 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16615 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16616 pauth_hint_num_a with pauth_hint_num.
16617 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16618 pauth_hint_num_a with pauth_hint_num.
16619 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16620 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16621 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16622 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16623 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16624 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16625 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16626 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16627 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16628 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16629 UNSPEC_AUTIA1716 respectively.
16630 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16631 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16632 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16633 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16634 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16635 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16637 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16639 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16640 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16641 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16642 explicit clause on combined parallel into implicit shared clause.
16643 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16644 and firstprivate if the decl has one too from combined parallel to
16645 the worksharing construct.
16647 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16648 Michael Meissner <meissner@linux.ibm.com>
16650 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16652 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16654 * rtl.h (LABEL_REF_P): New #define.
16656 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16658 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16660 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16662 * internal-fn.c: Marked mask_load_direct as vectorizable.
16663 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16664 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16665 combined even if masks different with allow_slp_p param.
16666 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16667 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16668 dissolve SLP-only vectorizable groups when SLP has been discarded.
16669 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16670 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16672 (vect_build_slp_tree_1): Fixed comment typo.
16673 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16674 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16675 loads for SLP only.
16676 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16678 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16680 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16682 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16683 Remove obsolete use_thunk reference.
16684 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16685 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16686 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16687 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16688 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16689 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16690 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16691 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16692 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16694 2019-05-28 Nathan Sidwell <nathan@acm.org>
16696 * tree.h (IDENTIFIER_ANON_P): New.
16697 (anon_aggrname_format, anon_aggname_p): Don't declare.
16698 (make_anon_name): Declare.
16699 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16700 (hash_tree): Likewise.
16701 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16702 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16703 (anon_cnt, make_anon_name): New.
16705 2019-05-28 Martin Liska <mliska@suse.cz>
16708 * opts-global.c (decode_options): Print help for all
16709 help_option_arguments.
16710 * opts.c (print_help): Add new argument.
16711 (common_handle_option): Remember all values into
16712 help_option_arguments.
16713 * opts.h (print_help): Add new argument.
16715 2019-05-28 Martin Liska <mliska@suse.cz>
16718 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16719 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16720 (func_checker::compare_bb): Call compare_loops.
16722 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16724 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16725 on sections construct.
16726 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16728 (lower_omp_sections): Handle lastprivate conditional.
16729 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16730 lastprivate_conditional_map.
16731 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16733 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16734 critical, taskgroup and section regions when looking for a region
16735 with non-NULL lastprivate_conditional_map.
16737 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16739 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16740 (*ix86_gen_sub3): Ditto.
16741 (*ix86_gen_sub3_carry): Ditto.
16742 (*ix86_gen_one_cmpl2): Ditto.
16743 (*ix86_gen_andsp): Ditto.
16744 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16745 (gen_and2_insn): New static function.
16746 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16747 Use gen_add3_insn instead of ix86_gen_add3.
16748 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16749 instead of ix86_gen_add3.
16750 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16751 Use gen_sub3_insn instead of ix86_gen_sub3.
16752 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16753 instead of ix86_gen_add3.
16754 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16755 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16756 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16757 * config/i386/i386-options.c (ix86_option_override_internal):
16758 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16759 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16761 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16763 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16764 and DW_OP_GNU_const_index opcodes.
16766 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16768 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16770 2019-05-27 Richard Biener <rguenther@suse.de>
16772 PR tree-optimization/90637
16773 * tree-ssa-sink.c (statement_sink_location): Honor the
16774 computed sink location for single-uses.
16776 2019-05-27 Richard Biener <rguenther@suse.de>
16778 PR middle-end/90610
16779 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16782 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16784 * config/i386/i386.md (@sub<mode>3_carry): Rename
16785 from sub<mode>3_carry.
16786 (@leave_<mode>): New expander.
16787 (*leave): Rename from leave.
16788 (*leave_rex64): Rename from leave_rex64.
16789 (@monitorx_<mode>): Rename from monitorx_<mode>.
16790 (@clzero_<mode>): Rename from clzero_<mode>.
16791 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16792 from sse3_monitor_<mode>.
16793 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16794 (*ix86_gen_leave): Ditto.
16795 (*ix86_gen_monitor): Ditto.
16796 (*ix86_gen_monitorx): Ditto.
16797 (*ix86_gen_clzero): Ditto.
16798 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16799 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16800 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16801 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16802 Use gen_sse3_monitor instead of ix86_gen_monitor.
16803 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16804 instead of ix86_gen_monitorx.
16805 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16806 instead of ix86_gen_clzero.
16807 * config/i386/i386-options.c (ix86_option_override_internal):
16808 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16809 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16811 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16813 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16814 Rename from tls_global_dynamic_64_<mode>.
16815 (@tls_local_dynamic_base_64_<mode>): Rename from
16816 tls_local_dynamic_base_64_<mode>.
16817 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16818 Remove indirect function.
16819 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16820 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16821 instead of ix86_gen_tls_global_dynamic_64.
16822 Use gen_tls_local_dynamic_base_64 instead of
16823 ix86_gen_tls_local_dynamic_base_64.
16824 * config/i386/i386-options.c (ix86_option_override_internal):
16825 Do not initialize ix86_gen_tls_global_dynamic_64 and
16826 ix86_gen_tls_local_dynamic_base_64.
16828 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16830 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16831 Rename from pro_epilogue_adjust_stack_<mode>_add.
16832 (@pro_epilogue_adjust_stack_sub_<mode>)
16833 Rename from pro_epilogue_adjust_stack_<mode>_sub.
16834 (@allocate_stack_worker_probe_<mode>):
16835 Rename from allocate_stack_worker_probe_<mode>.
16836 (allocate_stack): Use gen_allocate_stack_worker_probe.
16837 (probe_stack): Use gen_probe_stack_1.
16838 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16839 (@adjust_stack_and_probe_<mode>): Rename from
16840 adjust_stack_and_probe<mode>.
16841 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16842 (stack_protect_set): Use gen_stack_protect_set_1.
16843 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16844 (stack_protect_test): Use gen_stack_protect_test_1.
16845 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16846 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16847 Remove indirect function.
16848 (*ix86_gen_adjust_stack_and_probe): Ditto.
16849 (*ix86_gen_probe_stack_range): Ditto.
16850 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16851 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16852 (ix86_adjust_stack_and_probe_stack_clash): Use
16853 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
16854 (ix86_adjust_stack_and_probe): Ditto.
16855 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
16856 of ix86_gen_probe_stack_range.
16857 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
16858 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
16859 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
16860 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
16861 CODE_FOR_stack_protect_test_{si,di}.
16862 * config/i386/i386-options.c (ix86_option_override_internal):
16863 Do not initialize ix86_gen_allocate_stack_worker,
16864 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16866 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
16868 * doc/invoke.texi (Link Options): Many editorial changes around
16871 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16873 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
16874 pre-Solaris 11 referene and most Studio compiler details.
16876 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
16879 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
16880 DImode to SImode in floating-point registers on 64-bit target.
16881 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
16882 register_operand in xmpyu patterns.
16884 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16886 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
16887 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
16888 OMP_CLAUSE__REDUCTEMP_.
16889 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16890 OMP_CLAUSE__CONDTEMP_.
16891 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
16892 * tree-pretty-print.c (dump_omp_clause): Likewise.
16893 * tree-nested.c (convert_nonlocal_omp_clauses,
16894 convert_local_omp_clauses): Likewise.
16895 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
16896 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
16897 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
16899 (gimplify_omp_for): Warn and disable conditional modifier from
16900 lastprivate on loop iterators.
16901 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
16903 * omp-general.c (omp_extract_for_data): Initialize it.
16904 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
16906 (delete_omp_context): Delete it.
16907 (lower_lastprivate_conditional_clauses): New function.
16908 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
16909 handle lastprivate conditional clauses.
16910 (lower_reduction_clauses): Add CLIST argument, emit it into
16911 the critical section if any.
16912 (lower_omp_sections): Adjust lower_lastprivate_clauses and
16913 lower_reduction_clauses callers.
16914 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
16915 to lower_lastprivate_clauses.
16916 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
16917 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
16918 clist into a critical section if not emitted there already by
16919 lower_reduction_clauses.
16920 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
16922 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
16923 conditional variables.
16924 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
16926 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16927 expand_omp_for_static_chunk): Handle lastprivate conditional.
16928 (expand_omp_for): Handle fd.lastprivate_conditional like
16931 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16933 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
16934 kernel does not exit cleanly.
16935 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
16937 2019-05-24 Jason Merrill <jason@redhat.com>
16940 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16942 2019-05-24 Richard Biener <rguenther@suse.de>
16945 * tree-loop-distribution.c (struct partition): Add location
16947 (partition_alloc): Initialize all fields.
16948 (generate_memset_builtin): Use the location recorded in the
16949 partition for the generated call.
16950 (generate_memcpy_builtin): Likewise.
16951 (classify_partition): Record the location of a single store
16952 as location for the partition.
16954 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16956 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
16959 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
16962 * common/config/aarch64/aarch64-common.c
16963 (aarch64_rewrite_selected_cpu): Change local temporary variable
16964 type from unsigned long to uint64_t.
16965 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
16966 aarch64_get_extension_string_for_isa_flags): Change declaration to
16967 match new definition by replacing unsigned long with uint64_t.
16969 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16972 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
16973 gen_attr_type just once instead of 4-7 times. Formatting fixes.
16974 Handle stack_protect_test_<mode> codegen similarly to corresponding
16977 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
16979 * config/i386/darwin.h: Reject -mfentry*.
16980 * doc/sourcebuild.texi: Document mfentry target support.
16982 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16984 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
16985 Rename to rs6000_global_entry_point_prologue_needed_p. Return
16986 false for PC-relative functions.
16987 (rs6000_output_function_prologue): Change called function name to
16988 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
16989 name,1" for PC-relative functions.
16990 (rs6000_elf_declare_function_name): Change called function name to
16991 rs6000_global_entry_point_prologue_needed_p.
16993 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
16996 * config/i386/i386.c (gen_rtx_cost):
16997 Use ix86_tune_cost instead of ix86_cost.
16999 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17000 Michael Meissner <meissner@linux.ibm.com>
17001 Segher Boessenkool <segher@kernel.crashing.org>
17003 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17005 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17006 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17007 (rs6000_fndecl_pcrel_p): Likewise.
17008 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17009 error if -mpcrel is requested without -mcpu=future.
17010 (rs6000_opt_masks): Add entry for pcrel.
17011 (rs6000_fndecl_pcrel_p): New function.
17012 (rs6000_pcrel_p): Likewise.
17013 * config/rs6000/rs6000.opt (mpcrel): New option.
17014 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17016 2019-05-23 Jan Hubicka <jh@suse.cz>
17017 Martin Liska <mliska@suse.cz>
17019 PR tree-optimization/90576
17020 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17022 (aliasing_component_refs_p): Fix three way size compare conditional;
17023 give up earlier in case we can not decide on equivalence.
17025 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17026 Michael Meissner <meissner@linux.ibm.com>
17027 Segher Boessenkool <segher@kernel.crashing.org>
17029 * config.gcc: Add future cpu.
17030 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17031 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17033 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17034 (RS6000_CPU): New instantiation for future cpu.
17035 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17037 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17038 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17039 * config/rs6000/rs6000-tables.opt: Regenerate.
17040 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17041 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17042 (rs6000_machine_from_flags): Handle future cpu.
17043 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17044 PROCESSOR_POWER9 for now.
17045 (rs6000_adjust_cost): Likewise.
17046 (rs6000_issue_rate): Likewise.
17047 (rs6000_register_move_cost): Likewise.
17048 (rs6000_opt_masks): Add entry for future.
17049 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17050 (MASK_FUTURE): New #define.
17051 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17052 * config/rs6000/rs6000.opt (mfuture): New target option.
17053 * doc/invoke.texi (mcpu): Add future cpu.
17055 2019-05-23 Martin Liska <mliska@suse.cz>
17058 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17059 operation points to a temporary (pointed via tree_to_wide_ref)
17060 that is out of scope after the &.
17062 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17065 * doc/extend.texi (Function Names): Add missing word.
17067 2019-05-23 Richard Biener <rguenther@suse.de>
17069 PR tree-optimization/88440
17070 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17072 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17074 (generate_memcpy_builtin): Likewise.
17075 (distribute_loop): Pass in whether to only distribute patterns.
17076 (prepare_perfect_loop_nest): Also allow size optimization.
17077 (pass_loop_distribution::execute): When optimizing a loop
17078 nest for size allow pattern replacement.
17080 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17083 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17086 2019-05-23 Martin Liska <mliska@suse.cz>
17089 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17090 expression similarly to gimplify_decl_expr.
17092 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17094 * cse.c (cse_dump_path): s/dump_file/f.
17096 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17099 * diagnostic-format-json.cc: Include "selftest.h".
17100 (json_from_expanded_location): Only add "file" key for non-NULL
17102 (json_from_location_range): Don't add "start" and "finish"
17103 children if they are UNKNOWN_LOCATION.
17104 (selftest::test_unknown_location): New selftest.
17105 (selftest::test_bad_endpoints): New selftest.
17106 (selftest::diagnostic_format_json_cc_tests): New function.
17107 * json.cc (json::object::get): New function.
17108 (selftest::test_object_get): New selftest.
17109 (selftest::json_cc_tests): Call it.
17110 * json.h (json::object::get): New decl.
17111 * selftest-run-tests.c (selftest::run_tests): Call
17112 selftest::diagnostic_format_json_cc_tests.
17113 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17116 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17117 Andrew Stubbs <amd@codesourcery.com>
17119 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17120 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17121 (kernel): Rename to...
17122 (main_kernel): ... this.
17123 (load_image): Load _init_array and _fini_array kernels.
17124 (run): Add argument for kernel to run.
17125 (main): Run init_array_kernel before main_kernel, and
17126 fini_array_kernel after.
17127 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17128 amdgpu_hsa_kernel attribute on functions.
17129 (gcn_disable_constructors): Delete.
17130 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17131 * config/gcn/crt0.c (size_t): Define.
17132 (_init_array, _fini_array): New.
17133 (__preinit_array_start, __preinit_array_end,
17134 __init_array_start, __init_array_end,
17135 __fini_array_start, __fini_array_end): Declare weak references.
17137 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17139 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17141 2019-05-22 Jason Merrill <jason@redhat.com>
17143 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17145 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17148 * config/i386/i386-options.c (ix86_init_machine_status): Set
17149 stack_frame_required to true.
17150 * config/i386/i386.c (ix86_get_frame_size): New function.
17151 (ix86_frame_pointer_required): Replace get_frame_size with
17152 ix86_get_frame_size.
17153 (ix86_compute_frame_layout): Likewise.
17154 (ix86_find_max_used_stack_alignment): Changed to void. Set
17155 stack_frame_required.
17156 (ix86_finalize_stack_frame_flags): Always call
17157 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17158 ix86_get_frame_size.
17159 * config/i386/i386.h (machine_function): Add stack_frame_required.
17161 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17163 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17165 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17167 * common/config/aarch64/aarch64-common.c
17168 (struct aarch64_option_extension, struct processor_name_to_arch,
17169 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17170 aarch64_contains_opt,
17171 aarch64_get_extension_string_for_isa_flags): Change type of
17172 variables storing flags to uint64_t.
17173 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17174 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17175 * config/aarch64/aarch64.c (struct processor,
17176 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17177 aarch64_validate_march, aarch64_override_options,
17178 aarch64_option_print, aarch64_handle_attr_isa_flags,
17179 aarch64_declare_function_name, aarch64_start_file): Make flag
17180 variables uint64_t.
17181 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17182 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17183 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17184 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17185 * config/aarch64/driver-aarch64.c
17186 (struct aarch64_arch_extension, struct aarch64_core_data,
17187 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17188 flag variables uint64_t.
17189 * doc/invoke.texi: Add documentation for new arguments.
17191 2019-05-22 Richard Biener <rguenther@suse.de>
17193 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17195 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17197 2019-05-22 Martin Liska <mliska@suse.cz>
17200 * doc/extend.texi: Document the change.
17202 2019-05-22 Richard Biener <rguenther@suse.de>
17204 PR tree-optimization/90450
17205 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17206 (mem_ref_hasher::equal): Check it.
17207 (mem_ref_alloc): Initialize it.
17208 (gather_mem_refs_stmt): Set it.
17210 2019-05-22 Richard Biener <rguenther@suse.de>
17212 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17214 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17217 2019-05-22 Alan Modra <amodra@gmail.com>
17219 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17220 (ASM_CPU_SPEC): Conditionally add -many.
17221 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17222 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17223 (rs6000_file_start): ..extracted from here, and modified to
17225 (rs6000_output_function_prologue): Emit .machine as necessary.
17227 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17229 PR middle-end/90553
17230 * ira-lives.c (process_bb_node_lives): Consider defs
17231 for a call insn to be die before the call, not after.
17233 * function.c (assign_parm_setup_block): Raise alignment of
17234 stacked parameter only for STRICT_ALIGNMENT targets.
17236 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17238 * config/rs6000/constraints.md (define_register_constraint "wz"):
17240 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17241 RS6000_CONSTRAINT_wz.
17242 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17243 (rs6000_init_hard_regno_mode_ok): Adjust.
17244 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17245 * doc/md.texi (Machine Constraints): Adjust.
17247 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17249 * config/rs6000/constraints.md (define_register_constraint "wl"):
17251 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17252 RS6000_CONSTRAINT_wl.
17253 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17254 (rs6000_init_hard_regno_mode_ok): Adjust.
17255 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17256 * doc/md.texi (Machine Constraints): Adjust.
17258 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17260 * config/rs6000/constraints.md (define_register_constraint "wm"):
17262 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17263 RS6000_CONSTRAINT_wm.
17264 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17265 (rs6000_init_hard_regno_mode_ok): Adjust.
17266 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17267 * doc/md.texi (Machine Constraints): Adjust.
17269 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17271 * config/rs6000/constraints.md (define_register_constraint "wk"):
17273 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17274 RS6000_CONSTRAINT_wk.
17275 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17276 (rs6000_init_hard_regno_mode_ok): Adjust.
17277 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17278 * doc/md.texi (Machine Constraints): Adjust.
17280 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17282 * config/rs6000/constraints.md (define_register_constraint "wj"):
17284 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17285 RS6000_CONSTRAINT_wj.
17286 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17287 (rs6000_init_hard_regno_mode_ok): Adjust.
17288 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17290 * config/rs6000/vsx.md: Ditto.
17291 * doc/md.texi (Machine Constraints): Adjust.
17293 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17295 * config/rs6000/constraints.md (define_register_constraint "wh"):
17297 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17298 RS6000_CONSTRAINT_wh.
17299 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17300 (rs6000_init_hard_regno_mode_ok): Adjust.
17301 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17302 * doc/md.texi (Machine Constraints): Adjust.
17304 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17307 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17308 Avoid calling gen_lowpart with CONST operand.
17310 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17312 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17313 field template_last_to_copy.
17314 (ssa_create_duplicates): Set it, and use it. Attempt to
17315 preserve more debug stmts.
17317 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17319 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17320 (signbit<mode>2): New expander
17322 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17325 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17326 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17328 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17330 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17331 %ebx and %ecx bafore calling cpuid with leaf 1 or
17332 non-constant leaf argument.
17334 2019-05-21 Alan Modra <amodra@gmail.com>
17337 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17338 power9 direct move cost.
17340 2019-05-21 Richard Biener <rguenther@suse.de>
17342 PR middle-end/90510
17343 * fold-const.c (fold_read_from_vector): New function.
17344 * fold-const.h (fold_read_from_vector): Declare.
17345 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17346 single-element insert permutations. Canonicalize selector
17347 further and fix issue with last commit.
17349 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17351 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17352 parameter with default value false to declaration.
17353 (split_edges_for_insertion): New inline function. Wrapper for
17354 split_critical_edges with for_edge_insertion_p = true.
17355 * tree-cfg.c (split_critical_edges): Don't split non-critical
17356 edges if for_edge_insertion_p is false. Fix whitespace.
17357 * tree-ssa-pre.c (pass_pre::execute): Call
17358 split_edges_for_insertion instead of split_critical_edges.
17359 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17360 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17361 (pass_data_sink_code): Update function name in the comment.
17363 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17365 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17366 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17367 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17368 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17371 2019-05-21 Martin Liska <mliska@suse.cz>
17373 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17375 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17376 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17378 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17380 (rs6000_function_arg): Likewise.
17381 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17382 (rs6000_expand_ternop_builtin): Use interval syntax.
17383 (get_element_number): Likewise.
17384 (altivec_expand_builtin): Likewise.
17385 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17387 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17391 * function.h (struct function): Add calls_eh_return member.
17392 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17393 gimplifying __builtin_eh_return call.
17394 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17396 (expand_call_inline): Or in src_cfun->calls_eh_return into
17397 dst_cfun->calls_eh_return.
17398 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17399 cfun->calls_eh_return.
17400 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17401 * lto-streamer-out.c (output_struct_function_base): Write
17404 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17406 PR rtl-optimization/43147
17407 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17408 IX86_BUILTIN_SHUFPD.
17410 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17412 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17413 (refs_may_alias_p_1): ... here; update stats.
17414 (refs_may_alias_p): Do not update stats here.
17416 2019-05-20 Richard Biener <rguenther@suse.de>
17418 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17419 doesn't produce pointers.
17420 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17421 the first operand points to.
17423 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17425 * tree-ssa-alias.c (compare_sizes): New function.
17426 (sompare_type_sizes): New function
17427 (aliasing_component_refs_p): Use it.
17428 (indirect_ref_may_alias_decl_p): Likewise.
17430 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17432 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17434 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17436 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17437 (LIBLSAN_EARLY_SPEC): Likewise.
17438 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17440 2019-05-20 Martin Liska <mliska@suse.cz>
17442 * config/i386/i386.c (ix86_libc_has_fast_function):
17443 Add ATTRIBUTE_UNUSED for the argument.
17445 2019-05-20 Richard Biener <rguenther@suse.de>
17447 * gimple-match-head.c: Include vec-perm-indices.h.
17448 * generic-match-head.c: Likewise.
17449 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17451 * fold-const.c (fold_vec_perm): Export.
17452 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17453 (match.pd): ...here.
17455 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17457 * cfgloop.h (struct loop): Add simdlen member.
17458 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17459 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17460 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17461 as new argument to autovectorize_vector_sizes target hook. If
17462 loop->simdlen, pick up vector size where the vectorization factor
17463 is equal to loop->simd, and if there is none, fall back to the first
17465 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17467 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17468 * omp-general.c (omp_max_vf): Likewise.
17469 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17470 * tree-vect-slp.c (vect_slp_bb): Likewise.
17471 * target.def (autovectorize_vector_sizes): Add ALL argument and
17473 * doc/tm.texi: Adjust documentation.
17474 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17475 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17476 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17478 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17479 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17480 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17481 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17482 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17483 preferred vector size is not 512-bit or 256-bit, just put those
17484 unpreferred ones last.
17486 2019-05-20 Martin Liska <mliska@suse.cz>
17488 * targhooks.c (default_libc_has_fast_function): New function.
17489 * targhooks.h (default_libc_has_fast_function): Likewise.
17491 2019-05-20 Martin Liska <mliska@suse.cz>
17493 PR middle-end/90263
17494 * builtins.c (expand_builtin_memory_copy_args): When having a
17495 target with fast mempcpy implementation do now use memcpy.
17496 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17497 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17498 * doc/tm.texi: Likewise.
17499 * doc/tm.texi.in: Likewise.
17501 * expr.c (emit_block_move_hints): Add 2 new arguments.
17502 * expr.h (emit_block_move_hints): Bail out when libcall
17503 to memcpy would be used.
17505 2019-05-20 Martin Liska <mliska@suse.cz>
17507 * profile-count.c: Add vertical spacing in order
17508 to separate functions.
17509 * profile-count.h: Likewise.
17511 2019-05-20 Martin Liska <mliska@suse.cz>
17513 * profile-count.h: Do not use full qualified
17515 * profile-count.c (profile_count::to_frequency): Likewise.
17517 2019-05-20 Martin Liska <mliska@suse.cz>
17519 * profile-count.h (enum profile_quality): Use capital letters
17520 for enum value names. Use the adjusted names.
17521 * profile-count.c: Use the adjusted names.
17523 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17525 * config/rs6000/constraints.md (define_register_constraint "wH"):
17527 (define_register_constraint "wI"): Delete.
17528 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17529 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17530 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17531 (rs6000_init_hard_regno_mode_ok): Adjust.
17532 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17533 resp. "d", or with "wa" as appropriate, all with "p8v".
17534 * config/rs6000/vsx.md: Ditto.
17535 * doc/md.texi (Machine Constraints): Adjust.
17537 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17539 * config/rs6000/constraints.md (define_register_constraint "wy"):
17541 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17542 RS6000_CONSTRAINT_wy.
17543 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17544 (rs6000_init_hard_regno_mode_ok): Adjust.
17545 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17546 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17547 (define_mode_attr Fisa): New.
17548 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17549 * doc/md.texi (Machine Constraints): Adjust.
17551 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17553 * config/rs6000/constraints.md (define_register_constraint "wu"):
17555 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17556 RS6000_CONSTRAINT_wu.
17557 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17558 (rs6000_init_hard_regno_mode_ok): Adjust.
17559 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17561 (define_mode_attr Fa): Delete.
17562 * config/rs6000/vsx.md: Ditto.
17563 * doc/md.texi (Machine Constraints): Adjust.
17565 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17567 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17569 (define_register_constraint "wK"): Delete.
17570 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17571 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17572 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17573 (rs6000_init_hard_regno_mode_ok): Adjust.
17574 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17575 Replace "wK" constraint by "wH" with "p9v".
17576 * config/rs6000/vsx.md: Ditto.
17577 * doc/md.texi (Machine Constraints): Adjust.
17579 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17581 * config/rs6000/constraints.md (define_register_constraint "wb"):
17583 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17584 RS6000_CONSTRAINT_wb.
17585 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17586 (rs6000_init_hard_regno_mode_ok): Adjust.
17587 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17588 * config/rs6000/vsx.md: Ditto.
17589 * doc/md.texi (Machine Constraints): Adjust.
17591 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17593 * config/rs6000/constraints.md (define_register_constraint "wo"):
17595 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17596 RS6000_CONSTRAINT_wo.
17597 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17598 (rs6000_init_hard_regno_mode_ok): Adjust.
17599 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17600 * config/rs6000/altivec.md: Ditto.
17601 * doc/md.texi (Machine Constraints): Adjust.
17603 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17605 * config/darwin-c.c (darwin_register_objc_includes): Do not
17606 prepend the sysroot when building gnu-runtime header search
17609 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17611 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17612 instead of direct output of the asm.
17614 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17616 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17617 argument to be type bool (was int before).
17618 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17619 at first use. Use type bool for some variables. Fix a theoretical
17620 eh_return bug for svr4.
17622 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17624 * config/rs6000/rs6000.md (isa): New attribute.
17625 (enabled): New attribute.
17627 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17629 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17630 assemble_start_function and assemble_end_function.
17632 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17634 PR middle-end/89433
17635 * omp-general.c (oacc_verify_routine_clauses): Change formal
17636 parameters. Add checking if already marked with an OpenACC
17637 'routine' directive. Adjust all users.
17639 PR middle-end/89433
17640 * omp-general.c (oacc_build_routine_dims): Move some of its
17642 (oacc_verify_routine_clauses): ... this new function.
17643 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17645 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17647 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17648 formating of picbase labels to match other ports.
17650 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17652 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17653 in the generated code.
17655 2019-05-16 Martin Sebor <msebor@redhat.com>
17657 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17658 identifiers, keywords, operators, and types in diagnostics. Correct
17659 quoting, spelling, and sentence capitalization issues.
17660 (expand_builtin_atomic_is_lock_free): Same.
17661 (fold_builtin_next_arg): Same.
17662 * cfgexpand.c (expand_one_var): Same.
17663 (tree_conflicts_with_clobbers_p): Same.
17664 (expand_asm_stmt): Same.
17665 (verify_loop_structure): Same.
17666 * cgraphunit.c (process_function_and_variable_attributes): Same.
17667 * collect-utils.c (collect_execute): Same.
17668 * collect2.c (maybe_run_lto_and_relink): Same.
17669 (is_lto_object_file): Same.
17670 (scan_prog_file): Same.
17671 * convert.c (convert_to_real_1): Same.
17672 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17673 * except.c (verify_eh_tree): Same.
17674 * gcc.c (execute): Same.
17675 (eval_spec_function): Same.
17676 (run_attempt): Same.
17677 (driver::set_up_specs): Same.
17678 (compare_debug_auxbase_opt_spec_function): Same.
17679 * gcov-tool.c (unlink_gcda_file): Same.
17681 (do_rewrite): Same.
17682 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17683 * gimplify.c (gimplify_asm_expr): Same.
17684 (gimplify_adjust_omp_clauses): Same.
17685 * hsa-gen.c (gen_hsa_addr_insns): Same.
17686 (gen_hsa_insns_for_load): Same.
17687 (gen_hsa_cmp_insn_from_gimple): Same.
17688 (gen_hsa_insns_for_operation_assignment): Same.
17689 (gen_get_level): Same.
17690 (gen_hsa_alloca): Same.
17691 (omp_simple_builtin::generate): Same.
17692 (gen_hsa_atomic_for_builtin): Same.
17693 (gen_hsa_insns_for_call): Same.
17694 * input.c (dump_location_info): Same.
17695 * ipa-devirt.c (compare_virtual_tables): Same.
17696 * ira.c (ira_setup_eliminable_regset): Same.
17697 * lra-assigns.c (lra_assign): Same.
17698 * lra-constraints.c (lra_constraints): Same.
17699 * lto-streamer-in.c (lto_input_mode_table): Same.
17700 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17701 (merge_and_complain): Same.
17702 (compile_offload_image): Same.
17703 (compile_images_for_offload_targets): Same.
17704 (debug_objcopy): Same.
17707 * opts.c (print_specific_help): Same.
17708 (parse_no_sanitize_attribute): Same.
17709 (print_help): Same.
17710 (handle_param): Same.
17711 * plugin.c (add_new_plugin): Same.
17712 (parse_plugin_arg_opt): Same.
17713 (try_init_one_plugin): Same.
17714 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17715 operators, and types in diagnostics. Correct quoting and spelling
17717 * read-rtl-function.c (parse_edge_flag_token): Same.
17718 (function_reader::parse_enum_value): Same.
17719 * reg-stack.c (check_asm_stack_operands): Same.
17720 * regcprop.c (validate_value_data): Same.
17721 * sched-rgn.c (make_pass_sched_fusion): Same.
17722 * stmt.c (check_unique_operand_names): Same.
17723 * targhooks.c (default_target_option_pragma_parse): Same.
17724 * tlink.c (recompile_files): Same.
17725 * toplev.c (process_options): Same.
17726 (do_compile): Same.
17727 * trans-mem.c (diagnose_tm_1): Same.
17728 (ipa_tm_scan_irr_block): Same.
17729 (ipa_tm_diagnose_transaction): Same.
17730 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17731 format a tree code name in a diagnostic.
17732 (verify_types_in_gimple_min_lval): Same.
17733 (verify_types_in_gimple_reference): Same.
17734 (verify_gimple_call): Same.
17735 (verify_gimple_assign_unary): Same.
17736 (verify_gimple_assign_binary): Same.
17737 (verify_gimple_assign_ternary): Same.
17738 (verify_gimple_assign_single): Same.
17739 (verify_gimple_switch): Same.
17740 (verify_gimple_label): Same.
17741 (verify_gimple_phi): Same.
17742 (verify_gimple_in_seq): Same.
17743 (verify_eh_throw_stmt_node): Same.
17744 (collect_subblocks): Same.
17745 (gimple_verify_flow_info): Same.
17746 (do_warn_unused_result): Same.
17747 * tree-inline.c (expand_call_inline): Same.
17748 * tree-into-ssa.c (update_ssa): Same.
17749 * tree.c (tree_int_cst_elt_check_failed): Same.
17750 (tree_vec_elt_check_failed): Same.
17751 (omp_clause_operand_check_failed): Same.
17752 (verify_type_variant): Same.
17753 (verify_type): Same.
17754 * value-prof.c (verify_histograms): Same.
17755 * varasm.c (assemble_start_function): Same.
17757 2019-05-16 Martin Sebor <msebor@redhat.com>
17759 * config/i386/i386-expand.c (get_element_number): Quote keywords
17760 and other internal names in diagnostics. Adjust other diagnostic
17761 formatting issues noted by -Wformat-diag.
17762 * config/i386/i386-features.c
17763 (ix86_mangle_function_version_assembler_name): Same.
17764 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17765 * config/i386/i386.c (ix86_function_type_abi): Same.
17766 (ix86_function_ms_hook_prologue): Same.
17767 (classify_argument): Same.
17768 (ix86_expand_prologue): Same.
17769 (ix86_md_asm_adjust): Same.
17770 (ix86_memmodel_check): Same.
17772 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17774 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17775 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17778 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17781 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17782 intrinsics without SSE/SSE2/SSSE3.
17783 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17785 (*mmx_uavgv8qi3): Likewise.
17787 2019-05-17 Richard Biener <rguenther@suse.de>
17789 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17790 VEC_PERM_EXPR as __VEC_PERM with -gimple.
17792 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
17794 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17795 vec_sldw insn pattern.
17797 2019-05-17 Richard Biener <rguenther@suse.de>
17799 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17801 2019-05-17 Martin Liska <mliska@suse.cz>
17804 * toplev.c (output_stack_usage): With LTO and sanitizer it
17805 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17806 has no file location.
17808 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17811 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17812 sz0 is equal to sz1, instead return false in that case.
17814 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17815 has non-constant expression, force sctx.lane and use two
17816 argument IFN_GOMP_SIMD_LANE instead of single argument.
17817 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17818 two argument IFN_GOMP_SIMD_LANE without lhs.
17819 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17821 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17823 (LOOP_REQUIRES_VERSIONING): Or in
17824 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17825 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17827 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17828 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17829 from simd if clause if needed.
17831 2019-05-16 Richard Biener <rguenther@suse.de>
17833 * tree-affine.c (expr_to_aff_combination): New function split
17835 (tree_to_aff_combination): ... here.
17836 (aff_combination_expand): Avoid building a GENERIC tree.
17838 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
17840 * cgraphunit.c (cgraph_node::expand_thunk): Remove
17841 assemble_start_function and assemble_end_function calls.
17842 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17843 assemble_start_function and assemble_end_function.
17844 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17845 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17846 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17847 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17848 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17849 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17850 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17851 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17852 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17853 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17854 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17855 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
17857 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17858 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
17859 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
17860 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
17861 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17862 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17863 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
17864 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
17865 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17866 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17867 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17868 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17869 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
17870 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
17872 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17873 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17874 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
17876 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
17878 * tree-ssa-alias.c (alias_stats): Add
17879 aliasing_component_refs_p_may_alias and
17880 aliasing_component_refs_p_no_alias.
17881 (dump_alias_stats): Print aliasing_component_refs_p stats.
17882 (aliasing_component_refs_p): Update stats.
17884 2019-05-16 Martin Liska <mliska@suse.cz>
17887 * multiple_target.c (expand_target_clones): Do not allow
17888 target_clones being used with a symbol that is an alias.
17890 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
17892 PR tree-optimization/90394
17893 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
17894 positives rather than ICE for cases where (code2 == NE_EXPR
17895 && code1 == BIT_AND_EXPR).
17897 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17900 * tree-core.h (struct tree_decl_common): Document
17901 decl_nonshareable_flag for PARM_DECLs.
17902 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
17903 * calls.c (expand_call): Don't try tail call if caller
17904 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
17905 passed on the stack and callee needs to pass any arguments on the
17907 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17908 else if instead of series of mutually exclusive ifs. Handle
17909 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
17910 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17912 * lto-streamer.h (LTO_major_version): Bump to 9.
17914 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
17916 PR tree-optimization/90106
17917 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
17918 new parameter as new internal function call, also move it to new
17920 (use_internal_fn): Pass internal function call to
17921 shrink_wrap_one_built_in_call_with_conds.
17923 2019-05-15 Jakub Jelinek <jakub@redhat.com>
17925 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
17927 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
17928 safelen_int and set loop->dont_vectorize.
17930 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17933 * config/i386/i386-builtin.def: Enable MMX intrinsics with
17935 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
17937 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
17938 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
17939 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
17942 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17945 * config/i386/mmx.md (*vec_dupv2sf): Changed to
17946 define_insn_and_split to support SSE emulation.
17947 (*vec_extractv2sf_0): Likewise.
17948 (*vec_extractv2sf_1): Likewise.
17949 (*vec_extractv2si_0): Likewise.
17950 (*vec_extractv2si_1): Likewise.
17951 (*vec_extractv2si_zext_mem): Likewise.
17952 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
17953 (vec_extractv2sf_1 splitter): Likewise.
17954 (vec_extractv2sfsf): Likewise.
17955 (vec_setv2si): Likewise.
17956 (vec_extractv2si_1 splitter): Likewise.
17957 (vec_extractv2sisi): Likewise.
17958 (vec_setv4hi): Likewise.
17959 (vec_extractv4hihi): Likewise.
17960 (vec_setv8qi): Likewise.
17961 (vec_extractv8qiqi): Likewise.
17962 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17963 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
17964 (vec_extractv2sisi): Likewise.
17965 (vec_extractv4hihi): Likewise.
17966 (vec_extractv8qiqi): Likewise.
17967 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17968 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
17969 (vec_initv2sisi): Likewise.
17970 (vec_initv4hihi): Likewise.
17971 (vec_initv8qiqi): Likewise.
17972 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
17973 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
17974 (vec_setv4hi): Likewise.
17975 (vec_setv8qi): Likewise.
17977 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17980 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
17981 TARGET_MMX_WITH_SSE.
17982 (MMXMODE:*mov<mode>_internal): Likewise.
17983 (MMXMODE:movmisalign<mode>): Likewise.
17985 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
17988 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
17989 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
17990 (sse2_cvtpd2pi): Ditto.
17991 (sse2_cvttpd2pi): Ditto.
17992 (*vec_concatv2sf_sse4_1): Ditto.
17993 (*vec_concatv2sf_sse): Ditto.
17994 (*vec_concatv2si_sse4_1): Ditto.
17995 (*vec_concatv2si): Ditto.
17996 (*vec_concatv4si_0): Ditto.
17997 (*vec_concatv2di_0): Ditto.
17999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18002 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18007 * config/i386/sse.md (ssse3_palignrdi): Changed to
18008 define_insn_and_split to support SSE emulation.
18010 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18013 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18015 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18018 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18019 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18022 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18025 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18026 or TARGET_MMX_WITH_SSE.
18027 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18029 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18032 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18034 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18037 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18038 Changed to define_insn_and_split to support SSE emulation.
18040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18043 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18044 Changed to define_insn_and_split to support SSE emulation.
18046 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18049 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18050 (*mmx_<emms>): This.
18051 (mmx_<emms>): New expander.
18053 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18056 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18058 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18060 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18063 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18065 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18068 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18073 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18074 TARGET_MMX_WITH_SSE.
18075 (*mmx_uavgv4hi3): Add SSE emulation.
18077 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18080 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18081 and TARGET_MMX_WITH_SSE.
18082 (*mmx_uavgv8qi3): Add SSE emulation.
18084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18087 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18088 maskmovdqu for __MMX_WITH_SSE__.
18090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18093 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18094 TARGET_MMX and TARGET_MMX_WITH_SSE.
18095 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18097 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18100 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18101 define_insn_and_split to support SSE emulation.
18103 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18106 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18107 and TARGET_MMX_WITH_SSE.
18108 (mmx_<code>v8qi3): Likewise.
18109 (smaxmin:<code>v4hi3): New.
18110 (umaxmin:<code>v8qi3): Likewise.
18111 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18112 (umaxmin:*mmx_<code>v8qi3): Likewise.
18114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18117 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18118 TARGET_MMX_WITH_SSE.
18119 (*mmx_pinsrw): Add SSE emulation.
18121 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18124 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18126 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18129 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18130 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18133 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18136 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18137 (sse_cvttps2pi): Likewise.
18139 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18142 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18143 TARGET_MMX_WITH_SSE.
18144 (mmx_pshufw_1): Add SSE emulation.
18145 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18146 TARGET_MMX_WITH_SSE to support SSE emulation.
18148 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18151 * config/i386/constraints.md (Yw): New constraint.
18152 * config/i386/mmx.md (*vec_dupv2si): Changed to
18153 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18154 support SSE emulation.
18156 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18159 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18160 TARGET_MMX_WITH_SSE.
18161 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18163 (mmx_gt<mode>3): Likewise.
18165 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18168 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18169 TARGET_MMX_WITH_SSE. Add SSE support.
18171 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18174 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18175 TARGET_MMX_WITH_SSE.
18176 (any_logic:<code><mode>3): New.
18177 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18180 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18183 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18184 TARGET_MMX_WITH_SSE. Add SSE emulation.
18185 (mmx_<shift_insn><mode>3): Likewise.
18186 (ashr<mode>3): New.
18187 (<shift_insn><mode>3): Likewise.
18189 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18192 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18193 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18195 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18198 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18199 TARGET_MMX_WITH_SSE.
18200 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18203 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18206 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18207 TARGET_MMX_WITH_SSE.
18209 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18212 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18215 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18216 (plusminus:mmx_<plusminus_insn><mode>3): Check
18217 TARGET_MMX_WITH_SSE.
18218 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18219 (<plusminus_insn><mode>3): New.
18220 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18221 (*mmx_<plusminus_insn><mode>3): Likewise.
18223 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18226 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18227 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18229 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18230 define_insn_and_split to support SSE emulation.
18231 (mmx_punpcklbw): Likewise.
18232 (mmx_punpckhwd): Likewise.
18233 (mmx_punpcklwd): Likewise.
18234 (mmx_punpckhdq): Likewise.
18235 (mmx_punpckldq): Likewise.
18237 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18238 Uros Bizjak <ubizjak@gmail.com>
18241 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18243 (ix86_split_mmx_pack): Likewise.
18244 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18246 (ix86_split_mmx_pack): Likewise.
18247 * config/i386/i386.md (mmx_isa): New.
18248 (enabled): Also check mmx_isa.
18249 * config/i386/mmx.md (any_s_truncate): New code iterator.
18250 (s_trunsuffix): New code attr.
18251 (mmx_packsswb): Removed.
18252 (mmx_packssdw): Likewise.
18253 (mmx_packuswb): Likewise.
18254 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18255 MMX packsswb/packuswb with SSE2.
18256 (mmx_packssdw): Likewise.
18257 * config/i386/predicates.md (register_mmxmem_operand): New.
18259 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18262 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18263 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18264 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18265 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18266 (ix86_vector_mode_supported_p): Likewise.
18267 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18269 2019-05-15 Martin Liska <mliska@suse.cz>
18271 PR middle-end/90478
18272 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18273 Check for overflow.
18275 2019-05-15 Richard Biener <rguenther@suse.de>
18277 * tree-into-ssa.c (pass_build_ssa::execute): Run
18278 update_address_taken before going into SSA.
18280 2019-05-15 Richard Biener <rguenther@suse.de>
18282 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18283 as __BIT_FIELD_REF with type with -gimple.
18285 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18287 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18288 semantically equivalent branches (left over after prior refactorings).
18290 2019-05-15 Richard Biener <rguenther@suse.de>
18292 PR tree-optimization/88828
18293 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18296 2019-05-14 Richard Biener <rguenther@suse.de>
18298 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18299 as __VIEW_CONVERT with -gimple.
18301 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18304 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18307 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18309 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18310 define_split to become a define_insn_and_split.
18312 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18314 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18316 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18317 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18318 (sibcall_epilogue): Adjust.
18319 (epilogue): Adjust.
18321 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18323 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18324 to unsupported ones.
18325 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18326 * config.host: Likewise.
18327 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18328 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18329 __svr4__]: Remove "brand" fallback.
18330 [!KSTAT_DATA_STRING]: Remove.
18331 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18333 (comdat_group): Likewise.
18334 (set_have_as_tls): Likewise.
18335 (gcc_cv_target_dl_iterate_phdr): Likewise.
18336 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18337 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18338 * configure: Regenerate.
18339 * doc/install.texi: Simplify Solaris target triplets.
18340 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18341 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18342 Remove Solaris 10 references.
18343 Remove obsolete Solaris bug reference.
18344 (Specific, sparc-sun-solaris2.10): Remove.
18346 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18348 * config/i386/i386.md (any_div): New code iterator.
18349 (paired_mod): New code attribute.
18350 (sgnprefix): Handle DIV and UDIV RTXes.
18352 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18353 and udivmod<mode>4 patterns using any_div code iterator.
18354 (divmod splitters): Macroize splitters using any_div code iterator.
18355 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18356 (*udivmodsi4_pow2_zext_2): Ditto.
18357 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18358 and *udivmod<mode>4_noext patterns using any_div code iterator.
18359 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18360 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18361 patterns using any_div code iterator.
18362 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18363 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18364 patterns using any_div code iterator.
18365 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18366 udivmodhiqi3 patterns using any_extend code iterator.
18368 2019-05-14 Richard Biener <rguenther@suse.de>
18369 H.J. Lu <hongjiu.lu@intel.com>
18371 PR tree-optimization/88828
18372 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18373 permuting in a single non-constant element not extracted
18376 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18378 * internal-fn.def (SIGNBIT): New.
18379 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18381 (signbitv4sf2): Likewise.
18383 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18386 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18387 next insn when the SRC reg is dead.
18389 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18391 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18392 (alloc_cand_and_find_basis): Ditto.
18393 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18394 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18395 (create_add_imm_cand, slsr_process_cast): Ditto.
18396 (slsr_process_copy, replace_mult_candidate): Ditto.
18397 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18398 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18399 (pass_strength_reduction::execute): Init the first NULL element.
18401 2019-05-13 Nathan Sidwell <nathan@acm.org>
18403 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18404 (run_attempt): Reformat line break.
18406 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18409 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18410 data registers in sibcall epilogues.
18411 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18413 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18416 * configure.ac (--enable-frame-pointer):
18417 Disable by default for cygwin and mingw.
18418 * configure: Regenerate.
18420 2019-05-13 Nathan Sidwell <nathan@acm.org>
18422 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18424 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18425 (gen_member_die): Move abstract origin check earlier. Only VARs
18426 can be static_inline_p. Simplify splicing control flow.
18428 2019-05-13 Richard Biener <rguenther@suse.de>
18430 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18432 (vect_build_slp_tree_1): Likewise.
18434 2019-05-13 Richard Biener <rguenther@suse.de>
18436 PR tree-optimization/90402
18437 * tree-if-conv.c (tree_if_conversion): Value number only
18438 the loop body by making the latch an exit of the region
18440 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18442 (do_rpo_vn): Deal with multiple edges into the entry block
18443 that are not backedges inside the region by skipping PHIs
18444 of the entry block.
18446 2019-05-13 Richard Biener <rguenther@suse.de>
18448 PR tree-optimization/90316
18449 * tree-ssa-pre.c (insert_aux): Fold into ...
18450 (insert): ... this function. Use a RPO walk to reduce the
18451 number of required iterations.
18453 2019-05-13 Martin Liska <mliska@suse.cz>
18455 PR tree-optimization/90416
18456 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18457 string instead of passing the second part as va_arg argument.
18459 2019-05-13 Martin Liska <mliska@suse.cz>
18461 PR gcov-profile/90380
18462 * gcov.c (handle_cycle): Do not support zero cycle count,
18463 it should not be possible.
18464 (path_contains_zero_cycle_arc): New function.
18465 (circuit): Ignore zero cycle arc counts.
18467 2019-05-13 Martin Liska <mliska@suse.cz>
18469 PR gcov-profile/90380
18470 * gcov.c (enum loop_type): Remove the enum and
18472 (handle_cycle): Assert that we should not reach
18474 (circuit): Use loop_found instead of a tri-state loop_type.
18475 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18478 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18481 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18482 (ix86_output_indirect_branch_via_reg): Use output mechanism
18483 accounting for __USER_LABEL_PREFIX__.
18484 (ix86_output_indirect_branch_via_push): Likewise.
18485 (ix86_output_function_return): Likewise.
18486 (ix86_output_indirect_function_return): Likewise.
18488 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18490 * doc/md.texi: Document use of code attributes in rtx patterns.
18491 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18492 * read-rtl.c (find_code): Split out search loops into...
18493 (maybe_find_code): ...this new function.
18494 (check_code_iterator): Make the error message more informative.
18495 (check_code_attribute): New function.
18496 (rtx_reader::rtx_alloc_for_name): Likewise.
18497 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18498 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18499 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18500 <max_opp> directly as an rtx code instead of via a match_operator.
18501 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18502 (<su>abd<mode>_3): Update accordingly.
18504 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18506 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18507 is given, print the state of the EH "save world" computation for
18510 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18513 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18514 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18516 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18518 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18519 Use pinsrd for TARGET_SSE4_1.
18520 * config/i386/sse.md (movdi_to_sse): Ditto.
18522 2019-05-10 Richard Biener <rguenther@suse.de>
18524 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18525 (do_rpo_vn): Initialize next_value_id.
18527 2019-05-10 Martin Liska <mliska@suse.cz>
18529 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18532 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18534 PR tree-optimization/90385
18535 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18536 arguments of the exit phis.
18539 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18540 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18542 (copy_tree_body_r): Likewise.
18543 (copy_fn): Set id.do_not_fold to true.
18545 2019-05-10 Martin Liska <mliska@suse.cz>
18547 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18548 Reapply changes from r269790.
18550 2019-05-10 Martin Liska <mliska@suse.cz>
18552 PR middle-end/90340
18553 * doc/invoke.texi: New params.
18554 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18555 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18556 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18558 * tree-switch-conversion.h (struct jump_table_cluster):
18561 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18563 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18565 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18567 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18569 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18571 PR rtl-optimization/88879
18572 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18574 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18577 * config/arm/arm.c (callee_saved_reg_p): Move before
18578 thumb_find_work_register.
18579 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18580 thumb_find_work_register. Only call df_get_live_out once.
18581 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18582 (thumb_find_work_register): Use
18583 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18584 algorithms to locate a spare call clobbered reg.
18586 2019-05-09 Martin Liska <mliska@suse.cz>
18588 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18589 and MAX_EXPR in GIMPLE FE format.
18591 2019-05-09 Martin Liska <mliska@suse.cz>
18593 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18594 * gimple-pretty-print.c (dump_gimple_bb_header):
18596 (pp_cfg_jump): Dump edge probability.
18597 * profile-count.c (profile_quality_as_string): Simplify
18598 with a static array.
18599 (parse_profile_quality): New function.
18600 (profile_count::dump): Simplify with a static array.
18601 (profile_count::from_gcov_type): Add new argument.
18602 * profile-count.h (parse_profile_quality): Likewise.
18603 * predict.h (set_hot_bb_threshold): New.
18604 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18606 * predict.c (get_hot_bb_threshold): Set from the new param.
18607 (set_hot_bb_threshold): New.
18609 2019-05-09 Richard Biener <rguenther@suse.de>
18611 PR tree-optimization/90395
18612 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18613 rewrite vector stores that throw internally.
18615 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18617 * cif-code.def (CHKP): Remove.
18620 * configure.ac (--enable-frame-pointer): Disable by default for
18622 * configure: Regenerate.
18624 2019-05-09 Alan Modra <amodra@gmail.com>
18627 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18628 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18629 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18630 cost for general <-> vsx when direct moves are available.
18631 Cost union classes at minimal cost for any reg in the class.
18632 Correct calculation for moves between vsx, float, and altivec.
18633 Don't return a low cost for moves between special regs. Don't
18634 use hard coded register numbers.
18635 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18636 (rs6000_ira_change_pseudo_allocno_class): New function.
18637 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18638 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18640 (movsi_internal1): Don't disparage vector alternatives.
18641 (mov<mode>_internal): Likewise, excepting alternative that
18643 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18644 we <- b alternative.
18646 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18649 PR tree-optimization/89060
18650 * tree-ssa-live.h (live_vars_map): New typedef.
18651 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18652 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18653 (struct compute_live_vars_data): New type.
18654 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18655 live_vars_at_stmt, destroy_live_vars): New functions.
18656 * tree-tailcall.c: Include tree-ssa-live.h.
18657 (live_vars, live_vars_vec): New global variables.
18658 (find_tail_calls): Perform variable life analysis before punting.
18659 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18660 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18662 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18663 Perform variable life analysis to select variables that really need
18665 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18666 instead set id->eh_landing_pad_dest and assert it is the same.
18667 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18669 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18670 Richard Earnshaw <rearnsha@arm.com>
18673 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18675 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18676 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18677 register if both the epilogue and prologue can use call-clobbered
18679 (thumb1_unexpanded_epilogue): Use
18680 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18681 picking temporaries for restoring high regs to match that of the
18682 prologue where possible.
18683 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18684 the list of work registers. Detect if the return address is still live
18685 at the end of the prologue and avoid using it for a work register if so.
18686 If the return address is not live, add LR to the list of pushable regs
18687 after the first pass.
18689 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18691 PR tree-optimization/90078
18692 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18693 (INFTY): Increase the value for infinite cost.
18694 (struct comp_cost): Promote type of members to int64_t.
18695 (infinite_cost): Don't set complexity in initialization.
18696 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18697 overflows to infinite_cost.
18698 (adjust_setup_cost): Promote type of parameter and cost computation
18700 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18702 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18703 cost computation to int64_t.
18704 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18705 int64_t's format specifier in dump.
18707 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18709 PR tree-optimization/90240
18710 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18711 with respect to scaling factor pre-computed for each basic block.
18712 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18713 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18714 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18715 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18716 live range for array of loop's basic blocks. Cleanup aux field of
18717 loop's basic blocks.
18719 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18721 PR tree-optimization/90356
18722 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18724 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18726 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18727 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18728 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18729 (ix86_handle_option): Handle -mavx512bf16.
18730 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18732 * config/i386/avx512bf16vlintrin.h: New.
18733 * config/i386/avx512bf16intrin.h: New.
18734 * config/i386/cpuid.h (bit_AVX512BF16): New.
18735 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18736 * config/i386/i386-builtin-types.def: Add new types.
18737 * config/i386/i386-builtin.def: Add new builtins.
18738 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18740 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18741 (ix86_option_override_internal): Handle BF16.
18742 (ix86_valid_target_attribute_inner_p): Ditto.
18743 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18744 * config/i386/i386-builtin.c (enum processor_features): Add
18746 (static const _isa_names_table isa_names_table): Ditto.
18747 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18748 (PTA_AVX512BF16): Ditto.
18749 * config/i386/i386.opt: Add -mavx512bf16.
18750 * config/i386/immintrin.h: Include avx512bf16intrin.h
18751 and avx512bf16vlintrin.h.
18752 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18753 avx512f_cvtneps2bf16_<mode><mask_name>,
18754 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18755 * config/i386/subst.md (mask_half): Add new subst.
18756 * doc/invoke.texi: Document -mavx512bf16.
18758 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18760 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18761 Delete declaration.
18762 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18763 (rs6000_debug_legitimize_reload_address): Delete.
18764 (rs6000_legitimize_reload_address_ptr): Delete.
18765 (rs6000_option_override_internal): Adjust.
18766 (mem_operand_gpr): Adjust comment.
18767 (legitimate_lo_sum_address_p): Ditto.
18768 (rs6000_legitimize_reload_address): Delete.
18769 (rs6000_debug_legitimize_reload_address): Delete.
18770 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18772 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18775 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18776 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18777 to compute vector element selector for both constant and variable
18780 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18782 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18783 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18784 ashrdi3_cvt using SWI48 mode iterator.
18786 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18788 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18789 (aarch64_<su>abd<mode>_3): Likewise.
18790 (*aarch64_<su>abd<mode>_3): New define_insn.
18791 (<sur>sad<vsi2qi>): New define_expand.
18792 * config/aarch64/iterators.md: Added MAX_OPP attribute.
18793 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18794 (build_vect_cond_expr): Likewise.
18796 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18798 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18799 clobbers outside of accessible_reg_set.
18800 * config/i386/i386.c (ix86_conditional_register_usage):
18801 Disable register sets by clearing corresponding bits in
18802 accessible_reg_set. Do not set corresponding bits in fixed_regs,
18803 call_used_regs and don't clear corresponding reg_names array members.
18805 2019-05-07 Richard Biener <rguenther@suse.de>
18807 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18808 not specified still compute a comp_vectype for invariant
18811 2019-05-07 Richard Biener <rguenther@suse.de>
18813 PR tree-optimization/90316
18814 * tree-ssa-pre.c (translate_vuse_through_block): When
18815 same_valid is NULL do not bother to search for a virtual
18817 (phi_translate_1): When operands changed we cannot keep
18818 the same value-number so do not bother to ask whether
18819 that's possible from translate_vuse_through_block.
18821 2019-05-07 Martin Liska <mliska@suse.cz>
18823 * bitmap.c (bitmap_register): Come up with
18824 alloc_descriptor_max_uid and assign it for
18826 (register_overhead): Use get_descriptor as
18828 (release_overhead): New.
18829 (bitmap_elem_to_freelist): Call it.
18830 (bitmap_elt_clear_from): Likewise.
18831 (bitmap_obstack_free): Likewise.
18832 (bitmap_move): Sensitively release memory.
18833 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18834 (bitmap_initialize): Initialize alloc_descriptor to zero.
18835 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18837 2019-05-07 Richard Biener <rguenther@suse.de>
18839 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18840 we build a SLP node. Remove max_size and limiting.
18841 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18843 2019-05-07 Richard Biener <rguenther@suse.de>
18845 PR tree-optimization/90316
18846 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18847 limit by reference.
18848 (walk_non_aliased_vuses): Take walking limit argument.
18849 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18850 walking if it is reached instead of just counting.
18851 (get_continuation_for_phi): Likewise.
18852 (walk_non_aliased_vuses): Likewise, instead of leaving counter
18853 limiting to the callback.
18854 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
18855 (vn_reference_lookup_3): Likewise.
18856 (vn_reference_lookup_pieces): Likewise.
18857 (vn_reference_lookup): Likewise.
18858 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
18859 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
18860 (avail_exprs_stack::lookup_avail_expr): Likewise.
18862 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
18864 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
18865 for comparaible types in the second direction even if first one
18866 hits incomparable type.
18868 2019-05-07 Richard Biener <rguenther@suse.de>
18871 * lto-wrapper.c (debug_objcopy): Use the original filename
18872 including archive offset for the filename used for -save-temps.
18874 2019-05-07 Li Jia He <helijia@linux.ibm.com>
18876 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
18879 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
18880 Hongtao Liu <hongtao.liu@intel.com>
18884 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
18885 Modified, original implementation isn't correct.
18887 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18889 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
18890 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
18891 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
18892 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
18893 (FRAME_POINTER_REGNUM): Change numbering.
18894 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
18895 (alt_reg_names): Adjust.
18896 (rs6000_conditional_register_usage): Don't mark hard register 64 as
18898 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18899 (DWARF_FRAME_REGISTERS): Delete.
18900 (DWARF2_FRAME_REG_OUT): Fix whitespace.
18901 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18903 (REG_ALLOC_ORDER): Adjust.
18904 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
18905 (REG_CLASS_CONTENTS): Adjust.
18906 (RETURN_ADDR_RTX): Change comment.
18907 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
18909 (REGISTER_NAMES): Adjust.
18910 (ADDITIONAL_REGISTER_NAMES): Adjust.
18911 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18913 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18915 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
18917 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18918 (DWARF_FRAME_REGISTERS): Adjust.
18919 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18921 (REG_ALLOC_ORDER): Adjust.
18922 (enum reg_class): Delete SPR_REGS.
18923 (REG_CLASS_NAMES): Delete SPR_REGS.
18924 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
18925 (REGISTER_NAMES): Adjust.
18926 (ADDITIONAL_REGISTER_NAMES): Adjust.
18927 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18928 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
18929 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
18930 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
18931 (htm_spr_regno): Delete.
18932 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
18934 (rs6000_dbx_register_number): Adjust.
18936 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18938 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
18940 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18942 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
18943 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
18945 2019-05-06 Jakub Jelinek <jakub@redhat.com>
18947 PR tree-optimization/88709
18948 PR tree-optimization/90271
18949 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
18950 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
18951 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
18953 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
18954 of the store merging group is larger than
18955 PARAM_STORE_MERGING_MAX_SIZE parameter.
18956 (split_group): Add bzero_first argument. If set, always emit first
18957 the first store which must be = {} of the whole area and then for the
18958 rest of the stores consider all zero bytes as paddings.
18959 (imm_store_chain_info::output_merged_store): Check if first store
18960 is = {} of the whole area and if yes, determine which setting of
18961 bzero_first for split_group gives smaller number of stores. Adjust
18962 split_group callers.
18963 (lhs_valid_for_store_merging_p): Allow decls.
18964 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
18966 (pass_store_merging::process_store): Likewise.
18968 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
18971 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18972 handling of V1TImode.
18974 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
18977 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
18978 and enable_frame_pointer ...
18979 * configure.ac: ... here. Update help strings for
18980 --enable-frame-pointer.
18981 * configure: Regenerate.
18982 * config/i386/i386-options.c (ix86_option_override_internal): Remove
18983 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
18984 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
18985 (USE_X86_64_FRAME_POINTER): Ditto.
18987 2019-05-06 Martin Liska <mliska@suse.cz>
18989 * config.gcc: Append to target_gtfiles and fix indentation.
18991 2019-05-06 Richard Biener <rguenther@suse.de>
18993 PR tree-optimization/90358
18994 * tree-vect-stmts.c (get_group_load_store_type): Properly
18995 detect unused upper half of load.
18996 (vectorizable_load): Likewise.
18998 2019-05-06 Richard Biener <rguenther@suse.de>
19000 PR tree-optimization/88828
19001 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19002 (simplify_vector_constructor): ...here. Handle constants in
19005 2019-05-06 Richard Biener <rguenther@suse.de>
19007 PR tree-optimization/90328
19008 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19009 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19010 is valid in the loop nest before using it.
19011 (initialize_data_dependence_relation): Adjust.
19012 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19013 loop as loop-nest to dr_may_alias_p.
19015 2019-05-06 Richard Biener <rguenther@suse.de>
19017 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19019 2019-05-06 Richard Biener <rguenther@suse.de>
19021 PR tree-optimization/90316
19022 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19023 compute target on demand.
19024 (get_continuation_for_phi): Remove code walking stmts to
19025 get to a target virtual operand which could end up being
19028 2019-05-06 Martin Liska <mliska@suse.cz>
19031 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19032 when -mabi is selected to a non-default version.
19034 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19035 Martin Liska <mliska@suse.cz>
19037 * Makefile.in: Add lto-dump.texi.
19038 * cgraph.h: Add new functions get_visibility_string and
19039 get_symtab_type_string.
19040 * doc/gcc.texi: Include lto-dump section.
19041 * doc/lto-dump.texi: New file.
19042 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19043 (parse_dump_option): Factor out this function.
19044 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19045 (parse_dump_option): Export the function.
19046 * symtab.c (symtab_node::get_visibility_string): New function.
19047 (symtab_node::get_symtab_type_string): Likewise.
19049 2019-05-06 Martin Liska <mliska@suse.cz>
19051 * config/i386/i386-builtins.c: New file.
19052 * config/i386/i386-builtins.h: New file.
19053 * config/i386/i386-expand.c: New file.
19054 * config/i386/i386-expand.h: New file.
19055 * config/i386/i386-features.c: New file.
19056 * config/i386/i386-features.h: New file.
19057 * config/i386/i386-options.c: New file.
19058 * config/i386/i386-options.h: New file.
19059 * config.gcc: Add new files into extra_objs and
19061 * config/i386/i386.c: Split content of the file
19062 into newly introduced files.
19063 * config/i386/i386.h: Declare common variables
19065 * config/i386/t-i386: Define dependencies for new files.
19067 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19070 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19071 Restrict 'all' variant to 32-bit configurations.
19072 (unaligned_loadhiu): Likewise.
19073 (unaligned_storehi): Likewise.
19074 (unaligned_storesi): Likewise.
19075 (unaligned_loadhis): Disable when compiling for thumb1.
19077 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19079 PR tree-optimization/90269
19080 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19083 2019-05-03 Martin Liska <mliska@suse.cz>
19085 * hash-map.h: Add is_empty function.
19086 * hash-set.h: Likewise.
19087 * hash-table.h: Likewise.
19088 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19089 elements () == 0 (and similar usages).
19090 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19091 * gimplify.c (gimplify_bind_expr): Likewise.
19092 (gimplify_switch_expr): Likewise.
19093 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19094 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19095 * postreload-gcse.c (dump_hash_table): Likewise.
19096 (gcse_after_reload_main): Likewise.
19097 * predict.c (combine_predictions_for_bb): Likewise.
19098 * tree-parloops.c (reduction_phi): Likewise.
19099 (separate_decls_in_region): Likewise.
19100 (transform_to_exit_first_loop): Likewise.
19101 (gen_parallel_loop): Likewise.
19102 (gather_scalar_reductions): Likewise.
19103 (try_create_reduction_list): Likewise.
19104 * var-tracking.c (dump_vars): Likewise.
19105 (emit_notes_for_changes): Likewise.
19106 (vt_emit_notes): Likewise.
19108 2019-05-03 Richard Biener <rguenther@suse.de>
19110 PR tree-optimization/90316
19111 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19114 2019-05-03 Richard Biener <rguenther@suse.de>
19116 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19117 peeling for gaps by loading only lower halves of vectors
19119 (vectorizable_load): Likewise.
19121 2019-05-03 Richard Biener <rguenther@suse.de>
19123 PR middle-end/89518
19124 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19126 2019-05-03 Richard Biener <rguenther@suse.de>
19128 PR middle-end/87314
19129 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19130 Handle STRING_CST vs DECL or STRING_CST.
19132 2019-05-03 Richard Biener <rguenther@suse.de>
19134 PR tree-optimization/88963
19135 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19136 vector loads feeding only BIT_FIELD_REFs to component
19137 loads. Rewrite stores fed by CONSTRUCTORs to component
19140 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19142 * opts.h (finish_options): Remove lang_mask argument.
19143 (print_help, help_option_argument): Declare.
19144 * opts.c (print_help): Remove forward declaration, no longer static.
19145 (finish_options): Remove lang_mask argument, don't call print_help
19147 * opts-global.c (decode_options): Adjust finish_option caller, call
19150 PR tree-optimization/90303
19151 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19152 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19154 2019-05-03 Richard Biener <rguenther@suse.de>
19156 PR tree-optimization/89698
19157 * gimple-fold.c (canonicalize_constructor_val): Early out
19158 for constants, handle unfolded INTEGER_CSTs as they appear in
19159 C++ virtual table ctors.
19161 2019-05-03 Richard Biener <rguenther@suse.de>
19163 * passes.c (execute_function_todo): Remove dead code.
19165 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19167 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19168 the internal register number, for any "real" register.
19170 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19172 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19173 correct numbers for TFHAR, TFIAR, TEXASR.
19175 2019-05-02 Richard Biener <rguenther@suse.de>
19177 PR tree-optimization/89653
19178 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19179 update-address-taken before the pass.
19180 * passes.def (pass_tree_loop_init): Put comment before it.
19182 2019-05-02 Richard Biener <rguenther@suse.de>
19184 PR tree-optimization/89509
19185 * tree-ssa-structalias.c (compute_dependence_clique): Look
19186 at the first subvar when determining whether it is restrict.
19188 2019-05-02 Richard Biener <rguenther@suse.de>
19190 PR tree-optimization/90273
19191 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19192 useless debug stmts.
19194 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19196 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19198 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19200 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19201 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19202 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19203 (vectorizable_reduction): Use the functions above to vectorize in a
19204 fully masked loop codes that don't have a conditional internal
19207 2019-05-02 Martin Liska <mliska@suse.cz>
19209 * cgraphclones.c: Call valid_attribute_p with 1 for
19211 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19212 it's for target attribute.
19213 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19214 Add new boolean argument.
19215 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19217 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19218 to ix86_valid_target_attribute_inner_p.
19219 (ix86_valid_target_attribute_p): Pass flags argument to
19220 ix86_valid_target_attribute_inner_p.
19221 (get_builtin_code_for_version): Use 0 as it's target attribute.
19223 2019-05-02 Martin Liska <mliska@suse.cz>
19225 * gcc.c (process_command): Add dummy file only
19227 * opts-global.c (decode_options): Pass lang_mask.
19228 * opts.c (print_help): New function.
19229 (finish_options): Print --help if help_option_argument
19231 (common_handle_option): Factor out content of OPT__help_
19233 * opts.h (finish_options): Add new argument.
19235 2019-05-02 Martin Liska <mliska@suse.cz>
19238 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19239 With -minline-all-stringops use inline expansion using 4B loop.
19240 * doc/invoke.texi: Document the change of
19241 -minline-all-stringops.
19243 2019-05-01 Jeff Law <law@redhat.com>
19245 PR tree-optimization/88797
19246 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19247 PHI feeds a conditional on the RHS of an assignment.
19249 2019-04-30 Andrew Waterman <andrew@sifive.com>
19250 Jim Wilson <jimw@sifive.com>
19252 * config/riscv/constraints.md (L): New.
19253 * config/riscv/predicates.md (lui_operand): New.
19254 (sfb_alu_operand): New.
19255 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19256 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19257 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19258 * config/riscv/risc.md (type): Add sfb_alu.
19259 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19260 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19261 (branch_zero<mode>): Delete.
19262 (mov<mode>cc): New.
19263 (mov<GPR:mode><X:mode>cc): Likewise.
19264 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19266 2019-04-30 Nathan Sidwell <nathan@acm.org>
19268 * tree.h (MARK_TS_EXP): New.
19270 2019-04-30 Martin Liska <mliska@suse.cz>
19272 * opts.c (enable_warning_as_error): Provide hints
19273 for unknown options.
19275 2019-04-30 Martin Liska <mliska@suse.cz>
19278 * doc/invoke.texi: Add missing dash for gas-locview-support
19279 and gno-as-locview-support.
19281 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19284 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19285 whitespace at the start of target attribute string.
19287 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19290 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19291 Define __ARM_FEATURE_ATOMICS.
19293 2019-04-30 Martin Liska <mliska@suse.cz>
19295 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19296 into built_in_function enum. Remove code for endp == 2 and
19297 use BUILT_IN_* constants.
19298 (gimple_fold_builtin): Call the function with fcode.
19300 2019-04-30 Martin Liska <mliska@suse.cz>
19302 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19303 DECL_FUNCTION_CODE into ix86_builtins enum before
19304 the switch statement.
19306 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19308 PR tree-optimization/89475
19309 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19312 2019-04-30 Martin Liska <mliska@suse.cz>
19314 PR translation/90274
19315 * opts.c (print_filtered_help): Wrap string in _(...).
19317 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19319 PR tree-optimization/90240
19321 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19323 PR tree-optimization/90078
19324 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19325 checks for infinite_cost overflow.
19327 2019-04-29 Jeff Law <law@redhat.com>
19329 * passes.def: Move -Wrestrict pass after copy propagation.
19331 2019-04-29 Maya Rashish <coypu@sdf.org>
19333 * config.gcc (default_gnu_indirect_function): Default to yes
19334 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19335 sparc*-*-netbsd*, x86_64-*-netbsd*.
19337 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19339 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19340 where cond2 is NE_EXPR.
19341 (is_value_included_in): Update comment.
19343 2019-04-29 Richard Biener <rguenther@suse.de>
19345 PR tree-optimization/90278
19346 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19347 EH on comparison simplification.
19349 2019-04-29 Jason Merrill <jason@redhat.com>
19351 PR c++/82081 - tail call optimization breaks noexcept
19352 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19353 nothrow function to a might-throw function into a tail call.
19355 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19357 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19358 (DDR_INNER_LOOP): Likewise.
19359 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19360 (initialize_data_dependence_relation): Likewise.
19361 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19363 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19365 PR rtl-optimization/90257
19366 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19370 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19374 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19377 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19380 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19382 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19384 2019-04-29 Richard Biener <rguenther@suse.de>
19386 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19389 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19391 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19392 varasm.h, and netbsd-protos.h.
19394 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19397 * config/i386/i386-protos.h (ix86_data_alignment): Change
19398 the second argument type to unsigned int.
19399 * config/i386/i386.c (ix86_data_alignment): Change "align"
19400 argument type to unsigned int.
19402 2019-04-27 Martin Liska <mliska@suse.cz>
19404 PR middle-end/90258
19405 * opt-suggestions.c (option_proposer::build_option_suggestions):
19406 When get_valid_option_values returns empty values, add the
19407 misspelling candidate.
19409 2019-04-26 Jim Wilson <jimw@sifive.com>
19411 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19413 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19414 Pass orig_mode to riscv_build_integer.
19415 (riscv_split_integer): Pass mode to riscv_move_integer.
19416 (riscv_legitimize_const_move): Likewise.
19417 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19418 promoted_mode. Replace force_reg call with code to load constant into
19419 promoted reg and then subreg it for the store.
19420 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19421 riscv_move_integer.
19423 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19425 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19428 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19430 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19431 commentary about the encoding of precision.
19433 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19435 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19436 * config/i386/t-freebsd64: New file.
19437 * config.gcc: Add the t-freebsd64 for multilib support.
19439 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19441 * doc/extend.texi (vector_size): Add missing comma after @xref.
19443 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19445 * BASE-VER: Set to 10.0.0.
19447 2019-04-25 Richard Biener <rguenther@suse.de>
19449 PR middle-end/89765
19450 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19451 VIEW_CONVERT_EXPR into one operating on an rvalue.
19453 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19456 * config/i386/i386.c (feature_priority): Moved to file scope.
19457 (processor_features): Likewise.
19458 (processor_model): Likewise.
19459 (_arch_names_table): Likewise.
19460 (arch_names_table): Likewise.
19461 (_feature_list): Removed.
19462 (feature_list): Likewise.
19463 (_isa_names_table): Moved to file scope. Add priority.
19464 (isa_names_table): Likewise.
19465 (get_builtin_code_for_version): Replace feature_list with
19466 isa_names_table. Update error message for P_ZERO priority.
19468 2019-04-25 Richard Biener <rguenther@suse.de>
19470 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19471 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19473 2019-04-24 Jeff Law <law@redhat.com>
19475 PR tree-optimization/90037
19476 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19477 * passes.def: Replace all instance of phi-only cprop with the
19478 lattice propagator. Move propagation pass from after erroneous
19479 path isolation to before erroneous path isolation.
19480 * tree-ssa-phionlycprop.c: Remove.
19482 2019-04-24 Richard Biener <rguenther@suse.de>
19484 PR middle-end/90213
19485 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19486 by size and BITS_PER_UNIT on poly-wide-ints.
19488 2019-04-25 Richard Biener <rguenther@suse.de>
19490 PR middle-end/90194
19491 * match.pd: Add pattern to simplify view-conversion of an
19494 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19496 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19497 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19498 for Go on 32 bit AIX.
19499 * config/rs6000/aix72.h: Likewise.
19501 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19504 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19505 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19507 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19510 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19511 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19512 for restored hard frame pointer.
19513 (s390_sched_dependencies_evaluation): Implement new target hook.
19514 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19516 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19518 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19519 * config/arc/arc.c (arc_init): Cleanup warning message.
19520 (arc_override_options): Likewise.
19522 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19525 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19526 a register if both if_true and if_false are MEMs.
19528 PR tree-optimization/90208
19529 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19530 after labels of new_bb, not before them.
19532 PR tree-optimization/90211
19533 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19534 which are not SSA_NAMEs.
19536 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19538 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19540 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19542 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19544 PR rtl-optimization/87979
19545 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19548 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19550 PR rtl-optimization/84032
19551 * modulo-sched.c (ps_insn_find_column): Change condition so that
19552 branch will always be the last insn in a row inside partial
19555 2019-04-23 Richard Biener <rguenther@suse.de>
19558 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19559 dest_single_pred_p argument.
19560 (remove_forwarder_block): Adjust.
19561 (remove_forwarder_block_with_phi): Likewise.
19563 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19564 Bernd Edlinger <bernd.edlinger@hotmail.de>
19565 Jakub Jelinek <jakub@redhat.com>
19568 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19569 if used with general-regs-only.
19570 (arm_conditional_register_usage): Don't add non-general regs if
19572 (arm_valid_target_attribute_rec): Handle general-regs-only.
19573 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19575 (TARGET_HARD_FLOAT_SUB): Define.
19576 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19577 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19578 (TARGET_REALLY_IWMMXT2): Likewise.
19579 * config/arm/arm.opt: Add -mgeneral-regs-only.
19580 * doc/extend.texi: Document ARM general-regs-only target.
19581 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19583 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19585 PR tree-optimization/90078
19586 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19587 checks for infinite_cost overflow.
19589 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19591 PR tree-optimization/90021
19592 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19593 and check univariate against it.
19594 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19595 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19597 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19601 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19604 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19607 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19609 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19611 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19613 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19614 names using operand format, rather than hard-wired.
19615 (speculation_barrier): Likewise.
19617 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19619 PR tree-optimization/88055
19620 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19621 (gen_one_condition): Use it if !HONOR_NANS.
19623 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19625 PR middle-end/90139
19626 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19627 assign_temp instead of gen_reg_rtx.
19629 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19631 PR translation/90118
19632 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19633 Add missing space before %<.
19635 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19637 PR rtl-optimization/87871
19638 * ira-lives.c (make_object_dead): Don't add conflicts to
19639 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19641 2019-04-18 Martin Sebor <msebor@redhat.com>
19643 PR middle-end/89797
19644 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19645 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19646 assuming type size fits in SHWI.
19648 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19651 * ipa-inline.c (flatten_function): New parameter UPDATE.
19652 (ipa_inline, early_inliner): Use it.
19654 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19656 * fold-const.c (int_const_binop): Return early on failure.
19658 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19660 PR middle-end/85164
19661 * combine.c (force_int_to_mode): Cast the argument rather than
19662 the result of known_alignment.
19663 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19665 2019-04-18 Richard Biener <rguenther@suse.de>
19668 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19670 (remove_forwarder_block): ... here.
19671 (remove_forwarder_block_with_phi): Also move debug stmts here.
19673 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19675 PR translation/79183
19676 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19677 inform where appropriate.
19679 2019-04-18 Richard Biener <rguenther@suse.de>
19681 * tree.c (get_qualified_type): Put found type variants at the
19682 head of the variant list.
19684 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19686 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19688 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19691 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19692 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19693 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19694 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19695 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19697 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19699 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19700 even for allocno's with no conflicts.
19701 (print_conflicts): Print an extra newline.
19703 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19705 * auto-inc-dec.c (attempt_change): Set the alignment of the
19706 temporary memory to that of the original.
19708 2019-04-17 Joao Moreira <jmoreira@suse.de>
19710 * targhooks.c (default_print_patchable_function_entry): Emit
19711 __patchable_function_entries section with writable flags to allow
19712 relocation resolution.
19714 2019-04-17 Jonny Grant <jg@jguk.org>
19716 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19718 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19720 PR middle-end/90095
19721 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19722 on lowpart SUBREGs.
19724 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19726 * config/arc/arc.c (arc_init): Format diagnostic string.
19727 (arc_override_options): Likewise.
19728 (check_if_valid_regno_const): Likewise.
19729 (arc_reorg): Likewise.
19731 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19734 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19736 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19738 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19739 (*movdi_update1): Use Pmode.
19740 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19741 (movdi_<mode>_update_stack): Rename to ...
19742 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19744 (*movsi_update1): Use Pmode.
19745 (*movsi_update2): Use Pmode.
19746 (movsi_update): Rename to ...
19747 (movsi_<mode>_update): ... this. Use Pmode.
19748 (movsi_update_stack): Fix condition.
19749 (*movhi_update1): Use Pmode. Fix argument to
19750 avoiding_indexed_address_p.
19751 (*movhi_update2): Ditto.
19752 (*movhi_update3): Ditto.
19753 (*movhi_update4): Ditto.
19754 (*movqi_update1): Ditto.
19755 (*movqi_update2): Ditto.
19756 (*movqi_update3): Ditto.
19757 (*movsf_update1, *movdf_update1): Merge, rename to...
19758 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19759 avoiding_indexed_address_p. Add "size" attribute.
19760 (*movsf_update2, *movdf_update2): Merge, rename to...
19761 (*mov<mode>_update2): This. Ditto.
19762 (*movsf_update3): Use Pmode. Fix argument to
19763 avoiding_indexed_address_p.
19764 (*movsf_update4): Ditto.
19765 (allocate_stack): Simplify condition. Adjust pattern names.
19767 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19770 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19771 whitespace at the start of target attribute string.
19773 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19776 * config/rs6000/power9.md: Add store forwarding bypass.
19778 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19781 * valtrack.c (dead_debug_insert_temp): Reset debug references
19782 to the return value of a call being removed.
19784 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19786 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19787 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19788 implement target hook.
19789 (arc_memory_move_cost): New function.
19790 (TARGET_REGISTER_MOVE_COST): Define.
19791 (TARGET_MEMORY_MOVE_COST): Likewise.
19792 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19793 (MEMORY_MOVE_COST): Likewise.
19795 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19797 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19798 (sibcall_value_insn): Likewise.
19799 * config/arc/constraints.md (Rs5): Remove.
19801 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19803 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19804 for last two fake registers.
19805 (arc_conditional_register_usage): Make sure fake frame and arg
19806 pointer regs are in general regs class.
19807 (FRAME_POINTER_MASK): Remove.
19808 (RETURN_ADDR_MASK): Remove.
19809 (arc_must_save_register): Use hard frame regnum.
19810 (frame_restore_reg): Use hard_frame_pointer_rtx.
19811 (arc_save_callee_saves): Likewise.
19812 (arc_restore_callee_saves): Likewise.
19813 (arc_save_callee_enter): Likewise.
19814 (arc_restore_callee_leave): Likewise.
19815 (arc_save_callee_milli): Likewise.
19816 (arc_eh_return_address_location): Likewise.
19817 (arc_check_multi): Use hard frame regnum.
19818 (arc_can_eliminate): Likewise.
19819 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19820 for register allocator.
19821 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19822 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19823 (FRAME_POINTER_REGNUM): Change it to a fake register.
19824 (HARD_FRAME_POINTER_REGNUM): Defined.
19825 (ARG_POINTER_REGNUM): Change it to a new fake register.
19826 (ELIMINABLE_REGS): Update.
19827 (REGISTER_NAMES): Update names.
19828 * config/arc/arc.md (LP_START): Remove.
19829 (LP_END): Likewise.
19830 (shift_si3_loop): Update pattern.
19832 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19834 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19835 to avoid delay slot scheduling.
19836 (arc_must_save_register): Don't save SP.
19837 * config/arc/arc.md (stack_tie): Remove.
19838 (UNSPEC_ARC_STKTIE): Likewise.
19840 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
19841 Shiva Chen <shiva0217@gmail.com>
19843 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19844 code gen with large shift amount.
19846 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
19848 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19851 2019-04-16 Jakub Jelinek <jakub@redhat.com>
19854 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
19855 print -m64/-mx32/-m32 if it is true.
19856 (ix86_debug_options, ix86_function_specific_print): Pass true as
19857 ADD_ABI_P to ix86_target_string.
19858 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
19859 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
19860 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
19862 PR rtl-optimization/90082
19863 * dce.c (can_delete_call): New function.
19864 (deletable_insn_p, mark_insn): Use it.
19866 PR tree-optimization/90090
19867 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
19869 (is_division_by_square): Likewise. Formatting fix.
19871 2019-04-16 Richard Biener <rguenther@suse.de>
19873 PR tree-optimization/56049
19874 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
19875 equality check if alias-set zero will prevail.
19877 2019-04-15 Jeff Law <law@redhat.com>
19879 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
19880 size and alignment as unsigned.
19882 2019-04-15 Richard Biener <rguenther@suse.de>
19885 * tree-loop-distribution.c (destroy_loop): Preserve correct
19888 2019-04-15 Richard Biener <rguenther@suse.de>
19890 PR tree-optimization/90071
19891 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
19892 abnormal operands from def stmts.
19894 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
19896 PR rtl-optimization/89794
19897 * combine.c (count_auto_inc): New function.
19898 (try_combine): Count how many auto_inc expressions there were in the
19899 original instructions. Ensure we have the same number in the new
19900 instructions. Remove the code that tried to ensure auto_inc side
19901 effects on i1 and i0 are not lost.
19903 2019-04-15 Richard Biener <rguenther@suse.de>
19906 * tree.h (auto_var_p): Declare.
19907 * tree.c (auto_var_p): New function, split out from ...
19908 (auto_var_in_fn_p): ... here.
19909 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
19911 (new_var_info): Initialize it.
19912 (set_uids_in_ptset): Also set the shadow variable uid if required.
19913 (ipa_pta_execute): Postprocess points-to solutions assigning
19914 shadow variable uids for locals that may reach their containing
19915 function recursively.
19916 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
19917 assert but instead check whether the points-to solution is
19920 2019-04-15 Martin Jambor <mjambor@suse.cz>
19923 * cgraph.c (clone_of_p): Loop over clone chain for each step in
19926 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19928 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
19930 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19931 Kito Cheng <kito.cheng@gmail.com>
19932 Shiva Chen <shiva0217@gmail.com>
19934 * config/nds32/nds32-md-auxiliary.c
19935 (nds32_legitimize_pic_address): Use new PIC pattern.
19936 (nds32_legitimize_tls_address): Use new TLS pattern.
19937 (nds32_output_symrel): New.
19938 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
19939 (nds32_alloc_relax_group_id): Ditto.
19940 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
19941 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
19943 (nds32_group_tls_insn): Ditto.
19944 (nds32_group_float_insns): Ditto.
19945 * config/nds32/nds32.md (tls_le): New.
19948 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
19950 * configure: Add nds32 target for dwarf2 debug_line checking.
19951 * configure.ac: Regenerated.
19953 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
19956 * ipa-devirt.c (skip_in_fields_list_p): New.
19957 (odr_types_equivalent_p): Use it.
19959 2019-04-13 Jakub Jelinek <jakub@redhat.com>
19962 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
19963 instead of strncmp when checking for thumb and arm. Formatting fixes.
19965 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
19967 * doc/install.texi: Document --with-target-system-zlib.
19969 2019-04-12 Martin Sebor <msebor@redhat.com>
19975 * targhooks.c (default_vector_alignment): Avoid assuming
19976 argument fits in SHWI.
19977 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
19978 a shift expression.
19979 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
19981 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19983 PR rtl-optimization/89965
19984 * dce.c: Include rtl-iter.h.
19985 (struct check_argument_load_data): New type.
19986 (check_argument_load): New function.
19987 (find_call_stack_args): Check for loads from stack slots still tracked
19988 in sp_bytes and punt if any is found.
19990 * config/mips/loongson-mmiintrin.h: Fix up #error message.
19992 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
19994 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
19995 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
19997 2019-04-12 Martin Liska <mliska@suse.cz>
19999 PR middle-end/89970
20000 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20002 (separate_attrs): Handle multiple 'default's.
20003 (expand_target_clones): Rework error handling code.
20005 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20008 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20009 mode of vector rather than mode of destination for move instruction.
20010 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20011 Use QI inner mode with V16QI vector mode.
20013 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20016 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20017 "invalid %%t operand" in output_operand_lossage message.
20019 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20021 * config/s390/predicates.md (permute_pattern_operand): New
20023 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20024 operand for the permute pattern.
20025 ("*vec_perm<mode>"): New insn definition.
20026 ("bswap<mode>"): Generate the permute pattern operand in the
20027 expander and perform the operand reloads for pre arch13 level
20029 ("*bswap<mode>_emu"): Rename to ...
20030 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20031 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20032 Add the USE operand for the permute pattern.
20033 ("*vec_set_bswap_vec<mode>"): Likewise.
20035 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20038 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20039 and gcc_unreachable if it fails, just call tree_to_uhwi which
20040 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20041 Start warning message with a lower-case letter. Formatting fixes.
20043 PR rtl-optimization/90026
20044 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20045 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20046 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20047 in cfglayout mode, use emit_barrier_after_bb.
20049 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20051 PR rtl-optimization/87763
20052 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20055 2019-04-11 Tom de Vries <tdevries@suse.de>
20057 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20058 max macro using statement expression.
20060 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20062 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20063 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20064 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20065 read_only_private_data_section using xcoff_private_rodata_section_name.
20066 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20068 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20071 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20073 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20075 PR rtl-optimization/89965
20076 * dce.c (sp_based_mem_offset): New function.
20077 (find_call_stack_args): Use sp_based_mem_offset.
20079 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20081 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20083 2019-04-11 Richard Biener <rguenther@suse.de>
20085 PR tree-optimization/90020
20086 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20087 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20088 * tree-ssa-pre.c (compute_avail): Use it to not put
20089 possibly trapping references after a call that might not
20090 return into EXP_GEN.
20091 * gcse.c (compute_hash_table_work): Do not elide
20092 marking a block containing a call if the call might not
20095 2019-04-11 Richard Biener <rguenther@suse.de>
20097 PR tree-optimization/90018
20098 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20099 Test both SLP and interleaving variants.
20101 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20103 * config/s390/8561.md: New file.
20104 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20105 Add arch13 cpu model.
20106 * config/s390/s390-opts.h (enum processor_type): Likewise.
20107 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20108 (s390_get_unit_mask): Likewise.
20109 (s390_is_fpd): Likewise.
20110 (s390_is_fxd): Likewise.
20111 * config/s390/s390.h (s390_tune_attr): Likewise.
20112 * config/s390/s390.md: Include arch13 pipeline description.
20113 * config/s390/s390.opt: Add arch13.
20115 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20117 PR rtl-optimization/87763
20118 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20120 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20122 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20124 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20125 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20126 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20127 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20129 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20131 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20132 "Although" in -fipa-icf documentation.
20134 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20135 of using multiple -g options.
20137 2019-04-10 Martin Liska <mliska@suse.cz>
20139 PR gcov-profile/89959
20140 * doc/gcov.texi: Make documentation of -x option
20143 2019-04-10 Richard Biener <rguenther@suse.de>
20145 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20147 (DR_GROUP_SAME_DR_STMT): Remove.
20148 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20149 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20150 replace with assert.
20151 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20152 (vect_record_grouped_load_vectors): Remove unreachable code.
20154 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20157 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20158 obsolete reference to N.
20160 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20162 PR middle-end/90025
20163 * expr.c (store_expr): Set properly size on the MEM passed to
20167 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20168 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20169 translation is needed, and when translation is needed, only append
20170 ... if the string length is hostsz or more bytes long. Avoid using
20173 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20176 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20177 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20179 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20180 differences directly.
20181 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20183 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20185 PR translation/90011
20186 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20188 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20190 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20191 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20192 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20193 trailing space from -gsplit-dwarf diagnostics.
20195 PR tree-optimization/89998
20196 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20197 instead of integer_type_node if possible, don't add ranges if return
20198 type is not compatible with int.
20199 * gimple-fold.c (gimple_fold_builtin_sprintf,
20200 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20203 2019-04-09 Martin Liska <mliska@suse.cz>
20205 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20206 * doc/install.texi: Document the new config.
20208 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20210 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20211 use gimple_expr_type for load and store calls. Skip over the
20212 condition argument in a conditional internal function.
20213 Protect use of TREE_INT_CST_LOW.
20215 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20218 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20219 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20220 trailing period from it too.
20222 2019-04-08 wu yuan <wuyuan5@huawei.com>
20224 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20225 * config/aarch64/aarch64.md : Add "tsv110.md"
20226 * config/aarch64/tsv110.md: New file.
20228 2019-04-08 Richard Biener <rguenther@suse.de>
20230 PR tree-optimization/90006
20231 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20234 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20237 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20239 (fma_root_node): Likewise.
20240 (func_fma_steering): Likewise.
20242 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20244 PR rtl-optimization/89865
20245 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20247 PR rtl-optimization/89865
20248 * config/i386/i386.md
20249 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20250 numbers not to clash with the additional operands[4].
20251 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20252 with extra register copy in the middle.
20254 2019-04-08 Martin Liska <mliska@suse.cz>
20256 PR gcov-profile/89961
20257 * doc/gcov.texi: Document data_file.
20258 * gcov.c (generate_results): Add data_info into JSON output.
20260 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20262 PR tree-optimization/89725
20263 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20264 loop's chrec as invariant symbol.
20265 * tree-chrec.h (chrec_contains_symbols): New parameter.
20266 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20267 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20268 function of loops not in DDR's loop_nest.
20269 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20271 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20274 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20277 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20280 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20281 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20283 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20285 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20286 targetm.fixed_condition_code_regs.
20288 2019-04-05 Richard Biener <rguenther@suse.de>
20292 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20293 debug bind stmts but reset them if they are not valid at the
20296 2019-04-05 Martin Liska <mliska@suse.cz>
20298 PR translation/89936
20299 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20300 order to wrap keywords or arguments.
20301 * collect2.c (main): Likewise.
20302 (scan_prog_file): Likewise.
20303 (scan_libraries): Likewise.
20304 * common/config/riscv/riscv-common.c
20305 (riscv_subset_list::parsing_subset_version): Likewise.
20306 (riscv_subset_list::parse_std_ext): Likewise.
20307 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20309 * config/arm/arm.c (arm_option_override): Likewise.
20310 * config/cris/cris.c (cris_print_operand): Likewise.
20311 * config/darwin-c.c (darwin_pragma_options): Likewise.
20312 (darwin_pragma_unused): Likewise.
20313 (darwin_pragma_ms_struct): Likewise.
20314 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20315 * config/i386/i386.c (print_reg): Likewise.
20316 (ix86_print_operand): Likewise.
20317 * config/i386/xm-djgpp.h: Likewise.
20318 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20319 * config/m32c/m32c.c (m32c_option_override): Likewise.
20320 * config/msp430/msp430.c (msp430_option_override): Likewise.
20321 * config/nds32/nds32.c (nds32_option_override): Likewise.
20322 * config/nvptx/mkoffload.c (main): Likewise.
20323 * config/rx/rx.c (rx_print_operand): Likewise.
20324 (valid_psw_flag): Likewise.
20325 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20326 (vms_pragma_nomember_alignment): Likewise.
20327 (vms_pragma_extern_model): Likewise.
20328 * lto-wrapper.c (compile_offload_image): Likewise.
20329 * omp-offload.c (oacc_parse_default_dims): Likewise.
20330 * symtab.c (symtab_node::verify_base): Likewise.
20331 * tlink.c (recompile_files): Likewise.
20332 (start_tweaking): Likewise.
20333 * tree-profile.c (parse_profile_filter): Likewise.
20335 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20337 PR tree-optimization/89956
20338 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20339 multiple negates of the same value.
20341 2019-04-04 Martin Sebor <msebor@redhat.com>
20343 PR middle-end/89957
20344 PR middle-end/89911
20345 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20346 have the same precision since the function crashes otherwise.
20347 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20348 has non-zero arguments.
20350 2019-04-04 Martin Sebor <msebor@redhat.com>
20352 PR middle-end/89934
20353 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20354 out if the number of arguments is less than expected.
20356 2019-04-04 Jeff Law <law@redhat.com>
20358 PR rtl-optimization/89399
20359 * ree.c (combine_set_extension): Use single_set rather than
20360 digging into PATTERN for items on the candidate list.
20361 (combine_reaching_defs): Likewise.
20363 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20365 PR rtl-optimization/46590
20366 * loop-invariant.c (find_defs): Move df_remove_problem and
20367 df_process_deferred_rescans to move_invariants.
20368 Move df_live_add_problem and df_live_set_all_dirty calls
20369 to move_invariants.
20370 (move_invariants): Likewise.
20371 (move_loop_invariants): Likewise, making the df_live calls
20372 conditional on -O. Remove the problem again if we added it
20375 2019-04-03 qing zhao <qing.zhao@oracle.com>
20377 PR tree-optimization/89730
20378 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20379 -flive-patching=inline-only-static.
20380 (can_inline_edge_by_limits_p): Add the checking for
20381 -flive-patching=inline-only-static and grant always_inline
20382 even when -flive-patching=inline-only-static is specified.
20384 2019-04-03 Jeff Law <law@redhat.com>
20386 PR rtl-optimization/81025
20387 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20389 2019-04-03 Richard Biener <rguenther@suse.de>
20391 PR tree-optimization/84101
20392 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20393 regs.h for hard_regno_nregs.
20394 (cfun_returns): New helper.
20395 (vect_model_store_cost): When vectorizing a store to a decl
20396 we return and the function ABI returns in a multi-reg location
20397 account for the possible spilling that will happen.
20399 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20401 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20402 displacement addresses for vector mode operands.
20404 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20406 * config/arc/arc.c (GMASK_LEN): Define.
20407 (arc_restore_callee_saves): Restore first blink when
20410 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20412 * doc/extend.texi: Add deprecated comment on sign-return-address
20413 function attribute and add mbranch-protection.
20414 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20416 2019-04-03 Richard Biener <rguenther@suse.de>
20419 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20420 the all target phony.
20422 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20426 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20427 Return false for variable DImode shifts.
20428 (dimode_scalar_chain::compute_convert_gain): Do not handle
20429 register count operand in variable DImode shifts.
20430 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20431 count argument of a variable shift instruction to a vector register.
20432 (dimode_scalar_chain::convert_reg): Remove support to convert
20433 count argument of a variable shift instruction.
20435 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20437 PR rtl-optimization/84206
20438 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20439 iterating over loop headers.
20441 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20443 PR rtl-optimization/85876
20444 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20445 beyond the original fence.
20447 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20449 * config.gcc: Mark spu* targets as deprecated/obsolete.
20451 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20453 * config/s390/s390-builtin-types.def: New builtin function type
20454 definitions. Remove unused types.
20455 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20456 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20457 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20458 overloaded builtins.
20459 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20460 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20461 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20462 (vec_double, vec_signed, vec_unsigned): Define to use the new
20463 overloaded builtins.
20464 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20467 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20469 * config/s390/s390-builtin-types.def: New builtin function type
20471 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20472 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20473 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20474 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20475 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20476 constant definitions.
20477 * config/s390/vecintrin.h (vec_search_string_cc)
20478 (vec_search_string_until_zero_cc): New builtin name definitions.
20479 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20481 ("vec_vstrs<mode>"): New insn definition.
20483 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20485 * config/s390/s390-builtin-types.def: Add new builtin function
20487 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20488 New overloaded builtins.
20489 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20491 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20492 (UNSPEC_VEC_SLDBYTE): ... this.
20493 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20494 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20496 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20497 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20498 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20500 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20502 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20503 New insn definition.
20504 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20505 * config/s390/vector.md (V_HW_HSD): ... here.
20507 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20509 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20510 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20511 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20512 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20513 New insn definitions.
20515 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20517 * config/s390/s390-builtin-types.def: Add new builtin function type.
20518 * config/s390/s390-builtins.def: Add overloaded builtin
20519 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20520 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20521 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20522 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20523 ("eltswap<mode>"): New expander.
20524 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20527 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20529 * config/s390/s390-builtin-types.def: Add new builtin function types.
20530 * config/s390/s390-builtins.def: Add overloaded builtin
20531 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20533 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20534 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20535 ("bswap<mode>"): New expander.
20536 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20538 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20540 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20541 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20542 vector builtin version number in __VEC__.
20544 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20546 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20548 (SFSI): New mode attribute.
20549 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20550 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20552 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20553 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20554 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20555 ("floatsi<mode>2"): Add wcefb instruction.
20557 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20559 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20560 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20562 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20563 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20564 support 32 bit fp-int conversions. Rename to ...
20565 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20566 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20567 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20568 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20571 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20573 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20574 if-then-else constructs if we can use the select instruction.
20575 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20577 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20579 * config/s390/s390.md ("*popcountdi_arch13_cc")
20580 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20582 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20583 Append _z196 to make it ...
20584 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20585 ("popcounthi2_z196"): ... this.
20586 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20587 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20589 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20591 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20592 certain compares for arch13 in order to make use of the condition
20593 code result produced by the new instructions.
20594 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20595 nxrk, and nxgrk instruction patterns.
20596 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20597 (inv_no): Add new code iterator together with some attributes.
20598 ("*andc_split_<mode>"): Disable splitter for arch13.
20599 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20600 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20601 ("*<ANDOR:bitops_name>c<GPR:mode>")
20602 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20603 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20604 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20605 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20607 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20609 * common/config/s390/s390-common.c (processor_flags_table): New
20611 * config.gcc: Support arch13 with the --with-arch= configure flag.
20612 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20613 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20614 * config/s390/s390.c (s390_get_sched_attrmask)
20615 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20616 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20617 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20618 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20619 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20621 * config/s390/s390.opt: Support arch13 as processor type in
20622 command line options.
20624 2019-04-02 Martin Liska <mliska@suse.cz>
20626 PR translation/89912
20627 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20628 Fix param description of graphite-max-arrays-per-scop.
20630 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20632 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20633 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20634 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20636 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20638 PR rtl-optimization/85412
20639 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20640 sel_sched_region_1, not after.
20642 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20644 PR rtl-optimization/86928
20645 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20646 compute_live if necessary.
20647 (sel_redirect_edge_and_branch): Likewise.
20649 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20651 PR rtl-optimization/89865
20652 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20653 register if it is a part of small class.
20655 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20657 PR rtl-optimization/87273
20658 * sel-sched-ir.c (merge_fences): Remove assert.
20660 2019-04-01 Richard Biener <rguenther@suse.de>
20662 PR tree-optimization/46590
20663 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20664 (dom_walker::m_reachability): Add in place of...
20665 (dom_walker::m_skip_unreachable_blocks): ...this.
20666 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20667 Move complex initialization ...
20668 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20669 lazily and initialize edge flags on each invocation.
20670 (dom_walker::bb_reachable): Use m_reachability.
20672 2019-04-01 Martin Liska <mliska@suse.cz>
20675 * opt-suggestions.c (option_proposer::build_option_suggestions):
20676 Add variant without any argument in order to provide better
20679 2019-04-01 Richard Biener <rguenther@suse.de>
20682 * gimple.c: Include langhooks.h.
20683 (gimple_get_alias_set): Treat enumeral types as the underlying
20686 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20687 Eric Botcazou <ebotcazou@adacore.com>
20689 PR rtl-optimization/89862
20690 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20691 that operates on the full registers for WORD_REGISTER_OPERATIONS
20694 2019-03-29 Jim Wilson <jimw@sifive.com>
20696 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20697 Clear MASK_RVC and then set if C subset supported.
20699 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20702 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20703 non-addressable complit into its initializer if it is volatile.
20705 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20707 * opts-common.c (integral_argument): Set errno properly in one case.
20709 2019-03-29 Martin Liska <mliska@suse.cz>
20711 * doc/invoke.texi: Remove -Wchkp from documentation.
20713 2019-03-29 Martin Liska <mliska@suse.cz>
20715 * dbgcnt.c (print_limit_reach): New function.
20718 2019-03-29 Martin Liska <mliska@suse.cz>
20720 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20721 (dbg_cnt_process_opt): Parse first tokens aas
20722 dbg_cnt_process_single_pair is also using strtok.
20724 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20726 PR rtl-optimization/87485
20727 * function.c (expand_function_end): Move stack_protect_epilogue
20728 before loading of return value into hard register(s).
20730 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20732 PR middle-end/89621
20733 * tree-inline.h (struct copy_body_data): Add
20734 dont_remap_vla_if_no_change flag.
20735 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20736 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20737 and remap_type_2 returns false.
20738 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20739 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20740 only from where it is copied to nested contexts.
20742 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20745 * config/i386/i386.md (RMW operation with LEA peephole):
20746 Use LEAMODE mode attribute instead of SWI mode iterator for
20749 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20752 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20753 Also process XEXP (src, 0) of a shift insn.
20755 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20757 PR middle-end/89725
20758 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20759 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20761 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20763 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20765 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20766 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20767 immediately after first one with df_analyze in between, but rather
20768 process all bbs, queueing ones that need second pass in a worklist,
20769 df_analyze, process queued debug insn changes and if second pass is
20770 needed, process bbs from worklist, df_analyze, process queued debug
20773 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20774 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20775 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20777 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20780 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20783 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
20786 * config/i386/i386.c (ix86_function_value_1): Call the newly added
20787 function for 32-bit MS_ABI.
20788 (function_value_ms_32): New function.
20790 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
20792 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20793 (movdi): Call gen_movdi_symbol_save_scc.
20794 (gen_movdi_symbol_save_scc): New insn and split.
20796 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
20798 PR rtl-optimization/89313
20799 * function.c (matching_constraint_num): New static function.
20800 (match_asm_constraints_1): Use it. Fixup white space and comment.
20801 Don't replace inputs with non-matching constraints which conflict
20802 with early clobber outputs.
20804 2019-03-27 Jeff Law <law@redhat.com>
20806 PR rtl-optimization/87761
20807 PR rtl-optimization/89826
20808 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20810 (pass_cprop_hardreg::execute): Call df_analyze after adding the
20811 note problem to get REG_DEAD/REG_UNUSED notes updated.
20813 2019-03-27 Richard Biener <rguenther@suse.de>
20815 PR tree-optimization/89463
20816 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20817 queue edges to remove.
20818 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20819 dead stmts. Delay edge removal until PHIs are removed to
20820 make debug-stmt creation not confused by seemingly degenerate
20823 2019-03-27 Alan Modra <amodra@gmail.com>
20825 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20827 * config/rs6000/darwin.h: Likewise.
20828 * config/rs6000/rs6000.c: Likewise.
20830 2019-03-27 Alan Modra <amodra@gmail.com>
20832 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20833 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
20835 2019-03-26 Andrew Waterman <andrew@sifive.com>
20836 Jim Wilson <jimw@sifive.com>
20838 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20839 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20840 (generic_idivdi, generic_fmul_single, generic_fmul_double)
20841 (generic_fdiv, generic_fsqrt): Add check for generic tune.
20842 (generic_alu): Add auipc to type list.
20843 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20844 (riscv_microarchitecture): Declare.
20845 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20846 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20848 (riscv_microarchitecture): New.
20849 (sifive_7_tune_info): New.
20850 (riscv_cpu_info_table): Add microarchitecture value for rocket and
20851 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
20853 (riscv_store_data_bypass_p): New.
20854 (riscv_option_override): Set riscv_microarchitecture from
20855 cpu->microarchitecture.
20856 * config/riscv/riscv.md: Include sifive-7.md.
20859 (auipc<mode>): Change type to auipc.
20860 (restore_stack_nonlocal): New.
20861 * config/riscv/sifive-7.md: New.
20862 * doc/invoke.texi (RISC-V Options): Update mtune docs.
20864 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
20867 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
20868 Also process XEXP (src, 0) of a shift insn.
20870 2019-03-26 Richard Biener <rguenther@suse.de>
20872 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
20873 (copy_debug_stmt): Likewise.
20874 (expand_call_inline): Likewise.
20875 (copy_bb): Avoid redundant lookup & set of gimple_block.
20876 * gimple-low.c (lower_gimple_return): Likewise.
20877 (lower_builtin_setjmp): Likewise.
20879 2019-03-26 Jakub Jelinek <jakub@redhat.com>
20881 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
20882 is constant 0, turn into static const data member initialized to false.
20883 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
20884 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
20886 2019-03-26 Jason Merrill <jason@redhat.com>
20887 Jakub Jelinek <jakub@redhat.com>
20889 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
20891 (mem_alloc_description::release_object_overhead): Fix comment typos.
20892 * hash-table.h (hash_table::~hash_table): Call
20893 release_instance_overhead only if m_entries is non-NULL, otherwise
20894 call unregister_descriptor.
20896 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
20898 PR tree-optimization/81740
20899 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20900 In case of outer loop vectorization, check for backward dependence
20901 at the inner loop if outer loop dependence is reversed.
20903 2019-03-26 Alan Modra <amodra@gmail.com>
20905 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
20906 rs6000_vector_mem init. Correct wI and wJ comment.
20908 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
20910 PR rtl-optimization/88347
20911 PR rtl-optimization/88423
20912 * sched-deps.c (sched_analyze_insn): Take into account that for
20913 tablejumps the barrier appears after a label and a jump_table_data.
20915 2019-03-25 Martin Sebor <msebor@redhat.com>
20918 * c-common.c (check_user_alignment): Rename local. Correct maximum
20919 alignment in diagnostic. Avoid assuming argument fits in SHWI,
20920 convert it to UHWI when it fits.
20922 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
20925 * dwarf2out.c (premark_used_variables): New function.
20926 (prune_unused_types_walk): Do not mark not premarked external
20928 (prune_unused_types): Call premark_used_variables.
20930 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
20932 PR rtl-optimization/89676
20933 * lra-constraints.c (curr_insn_transform): Do match reload for
20934 early clobbers when the match was successful only for different
20937 2019-03-25 Martin Sebor <msebor@redhat.com>
20939 * doc/extend.texi (Common Type Attributes): Document vector_size.
20940 (Common Variable Attributes): Mention size constraint. Correct
20942 (Vector Extensions): Use @dfn when defining bas type. Clarify
20943 base type and size constraints.
20945 2019-03-25 Richard Biener <rguenther@suse.de>
20947 PR tree-optimization/89789
20948 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
20949 changes from non-undefined back to undefined.
20951 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
20953 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
20954 heap string and a gc string, but since this variable is unknown to
20955 ggc the gc string might get reused and corrupted. Fixed by always
20956 using a heap string.
20958 2019-03-25 Richard Biener <rguenther@suse.de>
20960 PR tree-optimization/89779
20961 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
20962 to remove IV defs, delay actual removal.
20963 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
20964 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
20965 very end, properly also reset loop control IV information.
20967 2019-03-25 Richard Biener <rguenther@suse.de>
20969 PR tree-optimization/89802
20970 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
20971 move EH data to folded stmt.
20973 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20975 * config/s390/s390-builtin-types.def: Remove few unused types and
20976 fix sort order for others.
20978 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20980 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
20981 expected and found types with -mdebug during builtin matching.
20983 2019-03-25 Richard Biener <rguenther@suse.de>
20985 PR middle-end/89790
20986 * fold-const.c (operand_equal_p): Revert last change with
20989 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
20991 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
20992 notes for the result of the __tls_get_addr calls.
20993 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
20995 2019-03-24 Jeff Law <law@redhat.com>
20997 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
20999 PR rtl-optimization/87761
21000 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21001 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21003 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21004 rescans. Reprocess blocks as needed, calling df_analyze before
21005 reprocessing. Always call df_analyze before fixing up debug bind
21008 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21010 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21013 2019-03-22 Andrew Pinski <apinski@marvell.com>
21015 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21016 attrribute for uxtw.
21018 2019-03-26 Jeff Law <law@redhat.com>
21020 PR rtl-optimization/87761
21021 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21022 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21023 (mips_split_move): Accept new INSN argument. Try to forward SRC
21024 into the next instruction.
21025 (mips_split_move_insn): Pass INSN through to mips_split_move.
21027 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21029 PR rtl-optimization/89676
21030 * lra-constraints.c (curr_insn_transform): Do match reload for
21031 early clobbers even if the match was successful.
21033 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21036 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21038 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21040 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21042 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21044 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21045 <avx512>_fmsub_<mode>_mask3<round_name>,
21046 <avx512>_fnmadd_<mode>_mask3<round_name>,
21047 <avx512>_fnmsub_<mode>_mask3<round_name>,
21048 avx512f_vmfmadd_<mode>_mask3<round_name>,
21049 avx512f_vmfmsub_<mode>_mask3<round_name>,
21050 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21051 instead of register_operand and %v instead of v for match_operand 1.
21052 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21053 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21054 <round_nimm_predicate> instead of register_operand and %v instead of v
21055 for match_operand 1.
21057 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21058 <avx512>_fmadd_<mode>_mask3<round_name>,
21059 <avx512>_fmsub_<mode>_mask<round_name>,
21060 <avx512>_fmsub_<mode>_mask3<round_name>,
21061 <avx512>_fnmadd_<mode>_mask<round_name>,
21062 <avx512>_fnmadd_<mode>_mask3<round_name>,
21063 <avx512>_fnmsub_<mode>_mask<round_name>,
21064 <avx512>_fnmsub_<mode>_mask3<round_name>,
21065 <avx512>_fmaddsub_<mode>_mask<round_name>,
21066 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21067 <avx512>_fmsubadd_<mode>_mask<round_name>,
21068 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21069 <round_nimm_predicate> instead of nonimmediate_operand.
21070 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21071 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21072 Use register_operand instead of <round_nimm_predicate> for the
21073 operand that needs to match output.
21074 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21075 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21076 Likewise. Formatting fixes.
21079 * config/i386/i386.c (enum ix86_builtins): Remove
21080 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21081 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21082 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21083 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21084 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21085 __builtin_ia32_vfmsubss3_mask3): New builtins.
21086 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21087 avx512f_vmfmadd_<mode>_mask3<round_name>,
21088 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21089 *avx512f_vmfmsub_<mode>_mask<round_name>,
21090 avx512f_vmfmsub_<mode>_mask3<round_name>,
21091 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21092 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21093 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21094 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21095 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21096 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21097 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21098 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21099 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21100 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21101 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21102 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21103 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21104 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21105 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21106 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21107 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21108 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21109 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21110 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21111 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21112 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21113 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21114 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21115 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21116 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21117 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21118 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21120 2019-03-21 Martin Sebor <msebor@redhat.com>
21122 PR tree-optimization/89350
21123 * builtins.c (compute_objsize): Also ignore offsets whose upper
21125 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21126 (builtin_memref::builtin_memref): Initialize new member.
21127 Allow EXPR to be null.
21128 (builtin_memref::extend_offset_range): Replace local with a member.
21129 Avoid assuming pointer offsets are unsigned.
21130 (builtin_memref::set_base_and_offset): Determine base object
21131 before computing offset range.
21132 (builtin_access::builtin_access): Handle memset.
21133 (builtin_access::generic_overlap): Replace local with a member.
21134 (builtin_access::strcat_overlap): Same.
21135 (builtin_access::overlap): Same.
21136 (maybe_diag_overlap): Same.
21137 (maybe_diag_access_bounds): Same.
21138 (wrestrict_dom_walker::check_call): Handle memset.
21139 (check_bounds_or_overlap): Same.
21141 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21142 Jakub Jelinek <jakub@redhat.com>
21145 * tree.c (fld_type_variant, fld_incomplete_type_of,
21146 fld_process_array_type): Call fld->pset.add and don't call
21147 add_tree_to_fld_list if it returns true.
21148 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21149 non-marked types from TYPE_NEXT_VARIANT list.
21150 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21152 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21154 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21155 to false, if true, don't alloc_entries during construction, but defer
21156 it to the first method that needs m_entries allocated.
21157 (hash_table::hash_table, hash_table::~hash_table,
21158 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21159 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21160 hash_table::clear_slot, hash_table::traverse_noresize,
21161 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21162 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21164 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21165 NO_INSERT instead of find_with_hash.
21166 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21167 hash_set::m_table): Add Lazy to template params of hash_table.
21168 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21169 * attribs.c (test_attribute_exclusions): Likewise.
21170 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21171 hash_set. Add tests for hash_set with Lazy = true.
21173 2019-03-21 Richard Biener <rguenther@suse.de>
21175 PR tree-optimization/89779
21176 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21177 checks with respect to released SSA names now having error_mark_node
21179 * fold-const.c (operand_equal_p): Likewise.
21181 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21184 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21186 (s390_optimize_register_info): Use global_not_special_regno_p to
21187 check for global regs.
21189 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21192 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21193 update this_alternative nor this_alternative_set.
21195 2019-03-19 Jim Wilson <jimw@sifive.com>
21198 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21199 align, size, offset. Use them to handle a BLKmode reference. Update
21201 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21203 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21205 PR rtl-optimization/89768
21206 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21207 instead of GEN_INT.
21208 (unroll_loop_runtime_iterations): Likewise.
21210 2019-03-19 Martin Sebor <msebor@redhat.com>
21212 PR tree-optimization/89644
21213 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21214 rather than endptr as an indicator of nul-termination.
21216 PR tree-optimization/89644
21217 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21218 arrays in determining sequence sizes in strncpy and stpncpy.
21220 2019-03-19 Martin Liska <mliska@suse.cz>
21222 PR middle-end/89737
21223 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21224 unlikely_edges if there's an edge that belongs to both these sets.
21226 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21229 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21230 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21231 go via a stack temporary.
21233 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21236 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21237 instead of gen_rtx_SUBREG.
21238 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21240 2019-03-19 Richard Biener <rguenther@suse.de>
21243 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21245 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21249 * tree.c (free_lang_data_in_decl): Do not free context of C++
21252 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21255 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21256 subs for the first alternative except when operands[3] is 1.
21259 * gimplify.c (gimplify_asm_expr): For output argument with
21260 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21263 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21265 PR rtl-optimization/89753
21266 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21267 explicit unrolling factor even more robust.
21269 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21272 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21273 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21274 signed zeros, do another copysign after the compensation.
21276 2019-03-18 Martin Sebor <msebor@redhat.com>
21278 PR tree-optimization/89720
21279 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21280 more conservatively, the same as anti-range.
21282 2019-03-18 Richard Biener <rguenther@suse.de>
21284 PR middle-end/88945
21285 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21286 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21287 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21288 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21290 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21292 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21293 Extend queue to 1024 entries.
21294 Add "consumed" field.
21295 (gomp_print_output): Remove print_index parameter.
21296 Add final parameter.
21297 Change limit to unsigned.
21298 Use consumed field to implement circular buffer.
21299 Detect interrupted print in final pass.
21300 Flush output at the end.
21301 (run): Update gomp_print_output usage.
21302 (main): Initialize kernargs->output_data.consumed.
21304 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21306 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21307 calculation of the minimum number of scalar iterations for
21308 fully-predicated loops.
21310 2019-03-18 Martin Jambor <mjambor@suse.cz>
21312 PR tree-optimization/89546
21313 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21314 any propagation to its children took place.
21316 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21319 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21320 parameter, and make use of it.
21321 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21323 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21325 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21326 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21327 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21328 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21329 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21330 match what the ops is doing.
21331 (push_multi_fp_blink): Likewise.
21332 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21333 compiling for size and elf target.
21334 (arc_save_callee_enter): Adjust note to match what enter/leave
21337 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21339 * config/arc/arc.md (tst_movb): Fix constraint.
21341 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21343 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21345 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21347 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21348 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21349 reg_alloc_order references.
21350 (size_alloc_order): Define.
21351 (arc_adjust_reg_alloc_order): New function.
21352 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21354 (ADJUST_REG_ALLOC_ORDER): Define.
21355 (HONOR_REG_ALLOC_ORDER): Likewise.
21357 2019-03-18 Richard Biener <rguenther@suse.de>
21360 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21361 loads and stores a bit more.
21363 2019-03-18 Richard Biener <rguenther@suse.de>
21366 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21367 load pessimization to stores as well.
21369 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21371 PR middle-end/86979
21372 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21373 successor, use NULL as its av set.
21375 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21377 PR rtl-optimization/89721
21378 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21380 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21383 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21384 When handling vec_extract, use modular arithmetic to allow
21385 constant selectors greater than vector length.
21386 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21387 V1TImode vectors to have constant selector values greater than 0.
21388 Use modular arithmetic to compute vector index.
21389 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21390 index for in-memory vectors. Correct code generation for
21391 in-register vectors.
21392 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21395 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21399 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21402 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21405 * tree.c (inchash::add_expr): Strip any location wrappers.
21406 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21407 after hash verification.
21410 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21411 SIGN_EXTEND and ZERO_EXTEND.
21413 2019-03-14 Jason Merrill <jason@redhat.com>
21414 Jakub Jelinek <jakub@redhat.com>
21416 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21417 than if is_empty (*slot).
21418 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21419 existing elt and for elt removal.
21420 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21421 of already removed elt.
21423 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21426 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21427 REG_EH_REGION note.
21429 2019-03-14 Martin Liska <mliska@suse.cz>
21432 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21434 2019-03-14 Richard Biener <rguenther@suse.de>
21437 * config/i386/i386.c (make_resolver_func): Properly set
21438 DECL_CONTEXT on the RESULT_DECL.
21439 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21441 2019-03-14 Richard Biener <rguenther@suse.de>
21443 * gimple-pretty-print.c: Include cfgloop.h.
21444 (dump_gimple_phi): Adjust.
21445 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21446 (pp_cfg_jump): Adjust.
21447 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21448 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21449 (lower_phi_internal_fn): Remove.
21450 (verify_gimple_call): Remove IFN_PHI special-casing.
21451 (dump_function_to_file): Dump IL state.
21452 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21453 done to deal with PHI nodes being present in non-SSA state.
21455 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21458 * multiple_target.c (create_dispatcher_calls): Change
21459 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21460 In the node->iterate_referring loop, push *ref rather than ref, call
21461 ref->remove_reference () and always pass 0 to iterate_referring.
21463 PR rtl-optimization/89679
21464 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21465 would contain a paradoxical SUBREG.
21467 2019-03-14 Richard Biener <rguenther@suse.de>
21469 PR tree-optimization/89710
21470 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21473 2019-03-14 Martin Liska <mliska@suse.cz>
21475 * coverage.c (coverage_begin_function): Stream also
21477 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21478 documentation about function declaration location.
21479 * gcov-dump.c (tag_function): Print whole range
21480 of function declaration.
21481 * gcov.c (struct function_info): Add end_column field.
21482 (function_info::function_info): Initialize it.
21483 (output_json_intermediate_file): Output {start,end}_column
21485 (read_graph_file): Read end_column.
21487 2019-03-14 Richard Biener <rguenther@suse.de>
21489 PR middle-end/89698
21490 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21491 that the access types are similar.
21493 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21495 PR tree-optimization/89703
21496 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21497 aren't compatible also with builtin_decl_explicit. Check pure
21498 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21499 and BUILT_IN_STPNCPY{,_CHK}.
21501 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21504 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21505 addr32 prefix to VSIB address for X32.
21506 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21508 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21509 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21510 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21511 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21512 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21513 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21514 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21515 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21516 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21517 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21518 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21519 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21520 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21521 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21522 (*avx512f_scatterdi<mode>): Likewise.
21524 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21527 * lra-constraints.c (inherit_in_ebb): Update
21528 potential_reload_hard_regs along with live_hard_regs.
21530 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21533 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21535 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21537 2019-03-13 Martin Sebor <msebor@redhat.com>
21539 PR tree-optimization/89662
21540 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21543 2019-03-13 Richard Biener <rguenther@suse.de>
21545 PR middle-end/89677
21546 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21547 throw FP expressions at tree-affine.
21549 2019-03-14 Richard Biener <rguenther@suse.de>
21551 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21552 dump negative integer constants using _Literal (type) -num.
21554 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21556 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21557 nonlocal_value member.
21559 PR middle-end/88588
21560 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21561 (ipa_simd_modify_function_body): Handle PHIs.
21563 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21565 * config/s390/s390.c (s390_option_override_internal): Use more
21566 aggressive inlining parameters.
21568 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21570 * config/s390/3906.md: New file.
21571 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21572 (LONGRUNNING_THRESHOLD): Remove.
21573 (MAX_SCHED_MIX_SCORE): Decrease.
21574 (MAX_SCHED_MIX_DISTANCE): Decrease.
21575 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21576 (struct s390_sched_state): New struct to hold scheduling state.
21577 (S390_SCHED_STATE_NORMAL): Remove.
21578 (S390_SCHED_STATE_CRACKED): Remove.
21579 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21580 (s390_get_sched_attrmask): Use new attribute.
21581 (s390_get_unit_mask): Use new units.
21582 (s390_is_fpd): New function.
21583 (s390_is_fxd): New function.
21584 (s390_is_longrunning): New function.
21585 (s390_sched_score): Use new functions.
21586 (s390_sched_reorder): Likewise.
21587 (s390_sched_variable_issue): Rework and use new functions.
21588 (s390_sched_init): Use new functions.
21589 * config/s390/s390.h (s390_tune_attr): Add z14.
21590 * config/s390/s390.md: Add z14.
21592 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21594 * config/s390/2964.md: Update pipeline description.
21595 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21596 (LONGRUNNING_THRESHOLD): Remove.
21597 (LATENCY_FACTOR): Remove.
21598 (s390_get_unit_mask): Add unit.
21599 (s390_sched_score): Use fxd/fpd.
21600 (s390_sched_variable_issue): Use fxd/fpd.
21602 2019-03-12 Martin Liska <mliska@suse.cz>
21604 * config/i386/i386.c: Reword an error message.
21606 2019-03-12 Martin Jambor <mjambor@suse.cz>
21608 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21609 terminate with newline.
21611 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21614 * config/s390/s390.md (tabort): Use %wd instead of
21615 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21616 letters and periods.
21617 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21618 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21621 PR middle-end/89663
21622 * builtins.c (expand_builtin_int_roundingfn,
21623 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21624 gcc_unreachable if validate_arglist fails.
21626 2019-03-12 Richard Biener <rguenther@suse.de>
21628 PR tree-optimization/89664
21629 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21630 free the occurance tree after the early out.
21632 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21634 PR middle-end/89655
21636 * vr-values.c (vr_values::update_value_range): If
21637 old_vr->varying_p (), don't update it, make new_vr also VARYING
21640 2019-03-11 Martin Liska <mliska@suse.cz>
21642 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21643 Fix double string quoting.
21645 2019-03-11 Martin Liska <mliska@suse.cz>
21647 * collect-utils.c (collect_wait): Wrap apostrophes
21648 in gcc internal format with %'.
21649 * collect2.c (main): Likewise.
21650 (scan_prog_file): Likewise.
21651 (scan_libraries): Likewise.
21652 * config/i386/i386.c (ix86_expand_call): Likewise.
21653 (ix86_handle_interrupt_attribute): Likewise.
21654 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21655 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21656 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21657 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21658 * symtab.c (symtab_node::verify_base): Likewise.
21659 * tree-cfg.c (verify_gimple_label): Likewise.
21660 * tree.c (verify_type_variant): Likewise.
21662 2019-03-11 Martin Liska <mliska@suse.cz>
21664 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21665 in a string format message and fix GNU coding style.
21666 (expand_builtin_set_thread_pointer): Likewise.
21667 * common/config/aarch64/aarch64-common.c
21668 (aarch64_rewrite_selected_cpu): Likewise.
21669 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21670 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21671 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21672 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21673 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21674 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21675 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21676 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21677 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21678 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21680 * common/config/riscv/riscv-common.c
21681 (riscv_subset_list::parsing_subset_version): Likewise.
21682 (riscv_subset_list::parse_std_ext): Likewise.
21683 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21684 (riscv_subset_list::parse): Likewise.
21685 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21686 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21687 (aarch64_override_options_internal): Likewise.
21688 (aarch64_validate_mcpu): Likewise.
21689 (aarch64_validate_march): Likewise.
21690 (aarch64_validate_mtune): Likewise.
21691 (aarch64_override_options): Likewise.
21692 * config/alpha/alpha.c (alpha_option_override): Likewise.
21693 * config/arc/arc.c (arc_init): Likewise.
21694 (parse_mrgf_banked_regs_option): Likewise.
21695 (arc_override_options): Likewise.
21696 (arc_expand_builtin_aligned): Likewise.
21697 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21698 (arm_expand_builtin): Likewise.
21699 * config/arm/arm.c (arm_option_check_internal): Likewise.
21700 (arm_configure_build_target): Likewise.
21701 (arm_option_override): Likewise.
21702 (arm_options_perform_arch_sanity_checks): Likewise.
21703 (arm_handle_cmse_nonsecure_entry): Likewise.
21704 (arm_handle_cmse_nonsecure_call): Likewise.
21705 (arm_tls_referenced_p): Likewise.
21706 (thumb1_expand_prologue): Likewise.
21707 * config/avr/avr.c (avr_option_override): Likewise.
21708 * config/bfin/bfin.c (bfin_option_override): Likewise.
21709 * config/c6x/c6x.c (c6x_option_override): Likewise.
21710 * config/cr16/cr16.c (cr16_override_options): Likewise.
21711 * config/cris/cris.c (cris_option_override): Likewise.
21712 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21713 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21714 * config/darwin.c (darwin_override_options): Likewise.
21715 * config/frv/frv.c (frv_expand_builtin): Likewise.
21716 * config/h8300/h8300.c (h8300_option_override): Likewise.
21717 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21718 (ix86_option_override_internal): Likewise.
21719 (warn_once_call_ms2sysv_xlogues): Likewise.
21720 (ix86_expand_prologue): Likewise.
21721 (split_stack_prologue_scratch_regno): Likewise.
21722 (ix86_warn_parameter_passing_abi): Likewise.
21723 * config/ia64/ia64.c (fix_range): Likewise.
21724 * config/m68k/m68k.c (m68k_option_override): Likewise.
21725 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21726 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21727 (mips_set_compression_mode): Likewise.
21728 * config/mmix/mmix.c (mmix_option_override): Likewise.
21729 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21730 * config/msp430/msp430.c (msp430_option_override): Likewise.
21731 * config/nds32/nds32.c (nds32_option_override): Likewise.
21732 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21733 (nios2_option_override): Likewise.
21734 (nios2_expand_custom_builtin): Likewise.
21735 * config/nvptx/mkoffload.c (main): Likewise.
21736 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21737 * config/pa/pa.c (fix_range): Likewise.
21738 (pa_option_override): Likewise.
21739 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21740 (riscv_option_override): Likewise.
21741 * config/rl78/rl78.c (rl78_option_override): Likewise.
21742 * config/rs6000/aix61.h: Likewise.
21743 * config/rs6000/aix71.h: Likewise.
21744 * config/rs6000/aix72.h: Likewise.
21745 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21746 * config/rs6000/freebsd64.h: Likewise.
21747 * config/rs6000/linux64.h: Likewise.
21748 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21749 (rs6000_expand_zeroop_builtin): Likewise.
21750 (rs6000_expand_mtfsb_builtin): Likewise.
21751 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21752 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21753 (rs6000_invalid_builtin): Likewise.
21754 (rs6000_expand_split_stack_prologue): Likewise.
21755 * config/rs6000/rtems.h: Likewise.
21756 * config/rx/rx.c (valid_psw_flag): Likewise.
21757 (rx_expand_builtin): Likewise.
21758 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21759 * config/s390/s390.c (s390_expand_builtin): Likewise.
21760 (s390_function_profiler): Likewise.
21761 (s390_option_override_internal): Likewise.
21762 (s390_option_override): Likewise.
21763 * config/sh/sh.c (sh_option_override): Likewise.
21764 (sh_builtin_saveregs): Likewise.
21765 (sh_fix_range): Likewise.
21766 * config/sh/vxworks.h: Likewise.
21767 * config/sparc/sparc.c (sparc_option_override): Likewise.
21768 * config/spu/spu.c (spu_option_override): Likewise.
21769 (fix_range): Likewise.
21770 * config/visium/visium.c (visium_option_override): Likewise.
21771 (visium_handle_interrupt_attr): Likewise.
21772 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21773 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21774 (dbg_cnt_process_opt): Likewise.
21775 * dwarf2out.c (output_dwarf_version): Likewise.
21776 * except.c (expand_eh_return): Likewise.
21777 * gcc.c (defined): Likewise.
21778 (driver_handle_option): Likewise.
21779 (process_command): Likewise.
21780 (compare_files): Likewise.
21781 (driver::prepare_infiles): Likewise.
21782 (driver::do_spec_on_infiles): Likewise.
21783 (driver::maybe_run_linker): Likewise.
21784 * omp-offload.c (oacc_parse_default_dims): Likewise.
21785 * opts-global.c (handle_common_deferred_options): Likewise.
21786 * opts.c (parse_sanitizer_options): Likewise.
21787 (common_handle_option): Likewise.
21788 (enable_warning_as_error): Likewise.
21789 * passes.c (enable_disable_pass): Likewise.
21790 * plugin.c (parse_plugin_arg_opt): Likewise.
21791 (default_plugin_dir_name): Likewise.
21792 * targhooks.c (default_expand_builtin_saveregs): Likewise.
21793 (default_pch_valid_p): Likewise.
21794 * toplev.c (init_asm_output): Likewise.
21795 (process_options): Likewise.
21796 (toplev::run_self_tests): Likewise.
21797 * tree-cfg.c (verify_gimple_call): Likewise.
21798 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21799 (tree_inlinable_function_p): Likewise.
21800 * var-tracking.c (vt_find_locations): Likewise.
21802 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
21804 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21805 only on the else branch.
21807 2019-03-11 Martin Liska <mliska@suse.cz>
21809 * gcov.c (output_intermediate_json_line): Print function
21811 (output_json_intermediate_file): Add new argument.
21812 * doc/gcov.texi: Document the change.
21814 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
21816 PR rtl-optimization/89588
21817 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21818 explicit unrolling factor more robust.
21820 2019-03-11 Richard Biener <rguenther@suse.de>
21822 PR tree-optimization/89649
21823 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21824 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21825 on the prolog and epilog loops.
21826 (vect_loop_versioning): Return copy of loop.
21827 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21828 on the non-vectorized version of the loop.
21830 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
21833 * config/i386/sse.md (*vec_extractv2di_0_sse):
21834 Add (=r,x) alternative and corresponding splitter.
21836 2019-03-10 Martin Jambor <mjambor@suse.cz>
21838 PR tree-optimization/85762
21839 PR tree-optimization/87008
21840 PR tree-optimization/85459
21841 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21842 it points to if there is a type changing MEM_REF. Adjust all callers.
21843 (build_accesses_from_assign): Disable total scalarization if
21844 contains_vce_or_bfcref_p returns true through the new parameter, for
21847 2019-03-09 Jakub Jelinek <jakub@redhat.com>
21850 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21851 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21854 * common.opt (fdiagnostics-show-labels,
21855 fdiagnostics-show-line-numbers, fdiagnostics-format=,
21856 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
21857 gas-locview-support, ginline-points, ginternal-reset-location-views):
21858 Terminate description text with a dot.
21859 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
21860 * config/mcore/mcore.opt (m210, m340): Likewise.
21861 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
21862 mnops=): Start description text with a capital letter.
21863 * config/arc/arc.opt (msize-level=): Likewise.
21864 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
21865 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
21866 mnewlib): Likewise.
21867 * config/ft32/ft32.opt (msim): Likewise.
21868 (mft32b, mcompress): Likewise. Terminate description text with a dot.
21869 (mnodiv, mnopm): Terminate description text with a dot.
21870 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
21872 * config/i386/i386.opt (prefer_vector_width, instrument_return):
21874 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
21877 PR rtl-optimization/89634
21878 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
21879 are modified in BB_END (e->src) instruction.
21881 2019-03-08 David Malcolm <dmalcolm@redhat.com>
21884 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
21885 messages more amenable to translation, and improve wording.
21887 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
21889 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
21890 ud- and du-chains between phases.
21892 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
21895 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
21896 instead of POLY_INT_CST.
21898 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
21900 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
21903 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
21908 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
21909 (_mm_storeu_si64): Ditto.
21911 2019-03-08 Martin Liska <mliska@suse.cz>
21914 * config/i386/i386.c (ix86_option_override_internal): Disable
21915 jump tables when retpolines are used.
21917 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
21920 * ipa-split.c (execute_split_functions): Do not split
21921 'noinline' or 'section' function.
21923 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21926 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
21927 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
21928 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
21931 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21932 from diagnostics. Formatting fixes.
21935 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
21936 warn_odr diagnostics.
21939 * lra-constraints.c (process_alt_operands): Avoid one space before
21940 " at the end of line and another after " on another line in a string
21942 * attribs.c (handle_dll_attribute): Likewise.
21943 * config/avr/avr-devices.c (avr_texinfo): Likewise.
21945 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
21946 warning_at or inform messages in G_() if there is no ?:.
21948 PR tree-optimization/89550
21949 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
21950 returned true. Formatting fixes.
21951 (expand_builtin_strnlen): Formatting fixes.
21952 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
21953 if warning_at returned true.
21954 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
21956 2019-03-08 Richard Biener <rguenther@suse.de>
21958 PR middle-end/89578
21959 * cfgloop.h (struct loop): Add owned_clique field.
21960 * cfgloopmanip.c (copy_loop_info): Copy it.
21961 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
21963 * tree-inline.c (copy_loops): Remap owned_clique.
21964 * lto-streamer-in.c (input_cfg): Stream owned_clique.
21965 * lto-streamer-out.c (output_cfg): Likewise.
21967 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21970 * config/darwin.c: Include intl.h.
21971 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
21972 composing the message out of two separate parts.
21974 2019-03-07 Jakub Jelinek <jakub@redhat.com>
21977 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
21978 doesn't start with a capital letter and doesn't end with a dot.
21979 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
21980 with a capital letter.
21981 (ix86_mangle_function_version_assembler_name): Likewise.
21982 (ix86_generate_version_dispatcher_body): Likewise.
21983 (fold_builtin_cpu): Likewise.
21984 (get_builtin_code_for_version): Likewise. Remove extraneous space.
21985 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
21986 translators, wrap full type name in %qs.
21988 PR translation/79999
21989 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
21990 depend clause with source (or sink) modifier.
21991 * omp-expand.c (expand_omp_ordered_sink): Likewise.
21994 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
21995 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
21996 (avx512f_load<mode>_mask): New define_expand.
21997 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
21998 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
21999 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22000 __builtin_ia32_movess_mask): New builtins.
22001 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22002 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22003 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22004 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22006 2019-03-07 Martin Jambor <mjambor@suse.cz>
22009 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22010 for extern inline functions.
22012 2019-03-07 Martin Jambor <mjambor@suse.cz>
22015 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22016 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22017 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22018 have multiple callees. At the end check if declarations match as
22019 opposed to cgraph_nodes.
22021 2019-03-07 Martin Liska <mliska@suse.cz>
22023 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22024 which is equivalent to searching for this in clones chain.
22025 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22026 names with a neighbour and special case first node in a chain.
22028 2019-01-25 Jason Merrill <jason@redhat.com>
22030 PR c++/80916 - spurious "static but not defined" warning.
22031 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22032 for an internal symbol with DECL_EXTERNAL.
22034 2019-04-07 Richard Biener <rguenther@suse.de>
22036 PR middle-end/89618
22037 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22038 * tree-inline.c (copy_loops): Simplify.
22040 2019-03-07 Martin Liska <mliska@suse.cz>
22042 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22044 2019-03-07 Richard Biener <rguenther@suse.de>
22046 PR tree-optimization/89595
22047 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22048 stmt iterator as reference, take boolean output parameter to
22049 indicate whether the stmt was removed and thus the iterator
22051 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22052 stmts created by folding.
22054 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22057 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22060 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22062 PR rtl-optimization/88845
22063 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22065 * lra.c (remove_scratches_1): New function.
22066 (remove_scratches): Use it.
22067 (lra_emit_move): Likewise.
22069 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22071 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22072 unaligned_access variable.
22073 * config/arc/arc.c (arc_override_options): Set unaligned access
22074 default on for HS CPUs.
22075 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22077 2019-03-06 Martin Liska <mliska@suse.cz>
22079 PR gcov-profile/89577
22080 * doc/gcov.texi: Prefer to use --coverage.
22081 * doc/sourcebuild.texi: Likewise.
22083 2019-03-02 Jason Merrill <jason@redhat.com>
22085 PR c++/86485 - -Wmaybe-unused with empty class ?:
22086 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22088 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22091 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22094 PR middle-end/89590
22095 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22096 exactly one argument.
22098 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22099 Richard Sandiford <richard.sandiford@arm.com>
22101 PR tree-optimization/89570
22102 * match.pd (vec_cond into cond_op simplification): Don't use
22103 get_conditional_internal_fn, use as_internal_fn (cond_op).
22105 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22108 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22109 to decide when to split off a non-zero offset from a symbol.
22110 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22111 in function symbols.
22113 2019-03-05 Richard Biener <rguenther@suse.de>
22115 PR tree-optimization/89594
22116 * tree-if-conv.c (pass_if_conversion::execute): Handle
22117 case where .LOOP_VECTORIZED_FUNCTION was removed.
22119 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22122 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22123 instead alloca it only when needed with the needed size.
22125 PR tree-optimization/89570
22126 * match.pd (vec_cond into cond_op simplification): Guard with
22127 vectorized_internal_fn_supported_p test and #if GIMPLE.
22129 PR tree-optimization/89566
22130 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22131 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22132 Punt if get_user_idx_format succeeds, but idx_format argument is
22133 not provided or doesn't have pointer type, or if idx_args is above
22134 number of provided arguments.
22136 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22138 PR tree-optimization/89437
22139 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22141 2019-03-04 Richard Biener <rguenther@suse.de>
22143 PR middle-end/89572
22144 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22147 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22149 PR tree-optimization/89487
22150 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22151 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22152 (distribute_loop): Don't do runtime alias check if there is non-
22153 addressable data reference.
22154 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22155 is a register variable.
22157 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22160 * config/arm/arm.md (cmpsi2_addneg): Use
22161 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22162 If operands[2] is 0 or INT_MIN, force use of subs.
22163 (*compare_scc splitter): Use gen_int_mode.
22164 (*negscc): Likewise.
22165 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22167 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22168 Monk Chiang <sh.chiang04@gmail.com>
22170 * common/config/riscv/riscv-common.c: Include sstream.
22171 (riscv_subset_list::to_string): New.
22172 (riscv_arch_str): Likewise.
22173 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22174 * config.in: Regen.
22175 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22176 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22177 (riscv_emit_attribute): New.
22178 (riscv_file_start): Emit attribute if needed.
22179 (riscv_option_override): Init riscv_emit_attribute_p.
22180 * config/riscv/riscv.opt (mriscv-attribute): New option.
22181 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22182 * configure: Regen.
22183 * doc/install.texi: Document --with-riscv-attribute.
22184 * doc/invoke.texi: Document -mriscv-attribute.
22186 * common/config/riscv/riscv-common.c:
22187 Include config/riscv/riscv-protos.h.
22188 (INCLUDE_STRING): Defined.
22189 (RISCV_DONT_CARE_VERSION): Defined.
22190 (riscv_subset_t): Declare.
22191 (riscv_subset_t::riscv_subset_t): New.
22192 (riscv_subset_list): Declare.
22193 (riscv_subset_list::riscv_subset_list): New.
22194 (riscv_subset_list::~riscv_subset_list): Likewise.
22195 (riscv_subset_list::parsing_subset_version): Likewise.
22196 (riscv_subset_list::parse_std_ext): Likewise.
22197 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22198 (riscv_subset_list::add): Likewise.
22199 (riscv_subset_list::lookup): Likewise.
22200 (riscv_subset_list::xlen): Likewise.
22201 (riscv_subset_list::parse): Likewise.
22202 (riscv_supported_std_ext): Likewise.
22203 (current_subset_list): Likewise.
22204 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22207 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22209 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22210 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22211 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22213 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22215 PR rtl-optimization/85899
22216 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22217 fallthru edges leading to the exit block.
22219 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22222 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22223 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22225 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22227 PR tree-optimization/89535
22228 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22229 for each operand. Calculate the fallback choice for mask operands
22230 and pass it to vect_get_vec_def_for_operand.
22232 2019-03-01 Richard Biener <rguenther@suse.de>
22234 PR middle-end/89541
22235 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22236 get virtual operands.
22237 (get_expr_operands): Handle CONST_DECL like other decls.
22239 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22241 PR middle-end/89503
22242 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22243 on DECL_P and EXPR_P.
22245 2019-03-01 Richard Biener <rguenther@suse.de>
22247 PR middle-end/89497
22248 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22249 argument, defaulted to zero.
22250 * passes.c (execute_function_todo): Pass down SSA update flags
22251 to cleanup_tree_cfg.
22252 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22253 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22255 (cleanup_tree_cfg): Get and pass down SSA update flags.
22257 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22260 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22261 early_lto_debug argument.
22263 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22265 PR tree-optimization/89536
22266 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22267 only whether bit #0 of the value is 0 instead of the entire value.
22269 2019-02-28 Marek Polacek <polacek@redhat.com>
22271 PR c++/87068 - missing diagnostic with fallthrough statement.
22272 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22273 at the end of a seq, save its location to walk_stmt_info.
22274 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22277 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22280 * tree.c (find_atomic_core_type): Move ahead in file.
22281 (check_base_type): Correctly compare alignments of atomic types.
22283 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22286 * config/i386/i386.c (get_builtin_code_for_version): Identify
22287 Westmere from PCLMUL, instead of AES.
22289 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22292 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22293 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22296 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22299 * config/aarch64/aarch64-option-extensions.def: Document it.
22300 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22303 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22306 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22307 builtins if they don't have a single scalar floating point argument.
22310 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22312 PR rtl-optimization/89490
22313 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22314 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22315 block section is not mergeable.
22317 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22320 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22321 old define_insn to ...
22322 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22323 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22324 Rename old define_insn to ...
22325 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22326 (thumb2_casesi_internal_pic): New define_expand. Rename old
22328 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22329 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22330 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22332 2019-02-27 Richard Biener <rguenther@suse.de>
22335 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22337 2019-02-27 Richard Biener <rguenther@suse.de>
22339 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22342 2019-02-27 Richard Biener <rguenther@suse.de>
22345 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22346 parameter, prefix section name with .gnu.debuglto_ if true.
22347 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22348 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22350 2019-02-27 Richard Biener <rguenther@suse.de>
22353 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22354 rather than on use_debug_types, doing what output_die does.
22355 (value_format): Likewise.
22357 2019-02-27 Martin Jambor <mjambor@suse.cz>
22358 Martin Sebor <msebor@redhat.com>
22360 * doc/invoke.texi (Warning Options): Reword description of
22361 -Wno-absolute-value.
22363 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22365 PR tree-optimization/89280
22366 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22367 builtin_setjmp_setup_bb): New functions.
22368 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22369 When visiting __builtin_setjmp_setup block, queue in special
22370 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22371 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22372 from visited after the loop if they don't have any visited successor
22375 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22377 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22379 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22381 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22384 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22385 with types other than sizetype/ssizetype.
22387 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22389 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22390 (enum sparc_processor_type): ...this.
22391 (enum sparc_code_model_type): New enumeration type.
22392 (enum sparc_memory_model_type): Tweak comments.
22393 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22395 (mcmodel): Use sparc_code_model enumeration and variable.
22396 (sparc_code_model): New enumeration.
22397 (mdebug): Add Undocumented marker.
22398 * config/sparc/sparc.h (enum cmodel): Delete.
22399 (sparc_cmodel): Likewise.
22400 (TARGET_CM_MEDLOW): Adjust to above renaming.
22401 (TARGET_CM_MEDMID): Likewise.
22402 (TARGET_CM_MEDANY): Likewise.
22403 (TARGET_CM_EMBMEDANY): Likewise.
22404 * config/sparc/sparc.c (sparc_cmodel): Delete.
22405 (sparc_option_override): Remove string/value mapping support for the
22406 code model. Move code and memory model support to after the handling
22407 of target flags. Do private machine setup last.
22408 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22409 (sparc_legitimize_reload_address): Likewise.
22410 (sparc_output_mi_thunk): Likewise.
22411 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22413 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22415 PR tree-optimization/89500
22416 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22417 (handle_builtin_strlen): Remove noncst_bound variable. Always
22418 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22419 cst if the first cst bytes starting at x are known to be non-zero,
22420 even if the string is not zero terminated. Don't try to modify
22421 *si for strnlen. Update strlen_to_stridx only for strlen or if
22422 we can prove strnlen returns the same value as strlen would.
22424 2019-02-26 Martin Liska <mliska@suse.cz>
22426 * alloc-pool.h (struct pool_usage): Remove extra
22428 * bitmap.h (struct bitmap_usage): Likewise.
22429 * ggc-common.c (struct ggc_usage): Likewise.
22430 * mem-stats.h (struct mem_usage): Likewise.
22431 (mem_alloc_description::dump): Print dash lines
22432 here and repeat header at the end of a table report.
22433 It's then more readable.
22434 * tree-phinodes.c (phinodes_print_statistics): Make
22435 horizontal alignment.
22436 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22437 * vec.c (struct vec_usage): Remove extra print_dash_line.
22438 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22440 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22442 * doc/extend.texi (__builtin_object_size):
22443 Use @pxref instead of @xref inside parenthesis.
22444 (__builtin_has_attribute): Add missing comma after @xref.
22445 (__builtin_object_size): Ditto.
22446 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22448 2019-02-26 Jeff Law <law@redhat.com>
22450 PR rtl-optimization/87761
22451 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22452 detect obviously dead insns and delete them.
22454 2019-02-26 Richard Biener <rguenther@suse.de>
22456 PR tree-optimization/89505
22457 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22458 to handle restrict pointed-to vars with multiple subvars
22461 2019-02-26 Richard Biener <rguenther@suse.de>
22463 PR tree-optimization/89489
22464 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22466 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22468 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22469 and move around comment.
22470 <BIT_AND_EXPR>: Likewise.
22471 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22473 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22476 * config/i386/i386.c (remove_partial_avx_dependency): Call
22477 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22478 after changing possibly many instructions to use that pseudo. Fix up
22479 insertion of v4sf_const0 setter at the start of bb.
22481 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22484 * doc/extend.texi (Variadic Pointer Args): New section.
22486 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22487 Martin Sebor <msebor@gmail.com>
22489 * common.opt (Wattribute-alias): Likewise.
22490 * doc/invoke.texi (Option Summary): List general form of
22491 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22492 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22493 Add cross-references.
22494 (-Wattribute-alias): Rewrite and correct default. Mention
22495 considered attributes (same as for -Wmissing-attributes).
22497 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22499 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22500 (_mm_cvtpd_ps): Likewise.
22501 (_mm_cvttpd_epi32): Likewise.
22504 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22505 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22508 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22510 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22513 * common/config/aarch64/aarch64-common.c
22514 (struct aarch64_option_extension): Add is_synthetic.
22515 (all_extensions): Use it.
22516 (TARGET_OPTION_INIT_STRUCT): Define hook.
22517 (struct gcc_targetm_common): Moved to end.
22518 (all_extensions_by_on): New.
22519 (opt_ext_cmp, typedef opt_ext): New.
22520 (aarch64_option_init_struct): New.
22521 (aarch64_contains_opt): New.
22522 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22523 * config/aarch64/aarch64-option-extensions.def
22524 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22525 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22526 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22527 Set is_synthetic to false.
22528 (crypto): Set is_synthetic to true.
22529 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22532 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22534 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22535 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22536 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22537 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22538 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22539 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22540 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22541 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22543 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22544 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22545 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22546 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22547 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22548 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22549 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22550 vfmlsl_laneq_high_f16): ... To this.
22551 * config/arm/neon.md: Update comments.
22553 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22555 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22556 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22557 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22558 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22559 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22560 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22561 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22562 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22564 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22565 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22566 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22567 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22568 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22569 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22570 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22571 vfmlslq_laneq_high_f16): ... To this.
22573 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22575 PR rtl-optimization/86096
22576 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22577 comparing mw_order values.
22579 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22582 * config/arm/arm.md (*subsi3_carryin_const): Use
22583 arm_neg_immediate_operand predicate instead of
22584 arm_not_immediate_operand, "L" constraint instead of "K" and
22585 print it using %n2 instead of %B2.
22586 (*subsi3_carryin_const0): New define_insn.
22587 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22588 instead of arm_not_operand and "I" constraint instead of "K" and
22589 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22590 another match_operand and in the condition check that it is negation
22592 (*subsi3_carryin_compare_const0): New define_ins.
22593 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22594 *subsi3_carryin_const.
22595 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22596 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22599 * config/arm.vfp.md (*negdf2_vfp): Use
22600 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22601 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22603 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22605 PR rtl-optimization/89445
22606 * simplify-rtx.c (simplify_ternary_operation): Don't use
22607 simplify_merge_mask on operands that may trap.
22608 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22609 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22610 second operand is CONST_VECTOR, check if any element could be zero.
22611 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22612 their operands can trap.
22614 2019-02-23 Martin Sebor <msebor@redhat.com>
22616 * gimple-ssa-sprintf.c (target_strtol): Rename...
22617 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22618 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22619 check for range error.
22621 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22624 * opts-common.c (prune_options): Also prune joined switches
22625 with Negative and RejectNegative.
22626 * config/i386/i386.opt (march=): Add Negative(march=).
22627 (mtune=): Add Negative(mtune=).
22628 * doc/options.texi: Document Negative used together with Joined
22629 and RejectNegative.
22631 2019-02-22 Martin Sebor <msebor@redhat.com>
22633 * doc/extend.texi (Other Builtins): Add
22634 __builtin_is_constant_evaluated.
22636 2019-02-22 Richard Biener <rguenther@suse.de>
22638 PR tree-optimization/87609
22639 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22641 2019-02-22 Jeff Law <law@redhat.com>
22643 PR rtl-optimization/87761
22644 * config/mips/mips.md: Add new combiner pattern to recognize
22645 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22647 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22650 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22651 destination register in peepholes generating patterns for ADDS/SUBS.
22652 (add<mode>3_compare0,
22653 *addsi3_compare0_uxtw, add<mode>3_compareC,
22654 add<mode>3_compareV_imm, add<mode>3_compareV,
22655 *adds_<optab><ALLX:mode>_<GPI:mode>,
22656 *subs_<optab><ALLX:mode>_<GPI:mode>,
22657 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22658 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22659 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22660 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22661 sub<mode>3_compare1): Allow stack pointer for source register.
22662 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22664 2019-02-22 Martin Sebor <msebor@redhat.com>
22666 PR tree-optimization/88993
22667 PR tree-optimization/88853
22668 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22670 (sprintf_dom_walker::call_info::is_string_func): New helper.
22671 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22672 for formatted string functions.
22673 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22675 2019-02-22 Martin Sebor <msebor@redhat.com>
22678 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22679 unreachable subexpressions.
22681 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22682 Hongtao Liu <hongtao.liu@intel.com>
22683 Sunil K Pandey <sunil.k.pandey@intel.com>
22686 * config/i386/i386-passes.def: Add
22687 pass_remove_partial_avx_dependency.
22688 * config/i386/i386-protos.h
22689 (make_pass_remove_partial_avx_dependency): New.
22690 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22692 (pass_data_remove_partial_avx_dependency): New.
22693 (pass_remove_partial_avx_dependency): Likewise.
22694 (make_pass_remove_partial_avx_dependency): Likewise.
22695 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22696 (*extendsfdf2): Add avx_partial_xmm_update.
22697 (truncdfsf2): Likewise.
22698 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22699 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22701 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22703 PR middle-end/85598
22704 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22707 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22710 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22711 (PTA_SKYLAKE): Add PTA_AES.
22712 (PTA_GOLDMONT): Likewise.
22714 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22716 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22717 instruction if enabled.
22718 (aarch64_override_options): Remove reference to return address key.
22720 2019-02-22 Richard Biener <rguenther@suse.de>
22722 PR tree-optimization/89440
22723 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22724 not necessary assert.
22726 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22729 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22730 (oacc_replace_fn_attrib_attr): ... this new function.
22731 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22732 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22734 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22736 * config/arm/arm-cpus.in (ares): Rename to...
22737 (neoverse-n1): ... This. Add ares as alias.
22738 * config/arm/arm-tables.opt: Regenerate.
22739 * config/arm/arm-tune.md: Likewise.
22740 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22742 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22744 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22745 * config/aarch64/aarch64-tune.md: Regenerate.
22746 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22748 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22750 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22751 (neoversen1_tunings): ... This.
22752 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22753 (neoverse-n1): New CPU.
22754 * config/aarch64/aarch64-tune.md: Regenerate.
22755 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22757 2019-02-22 Richard Biener <rguenther@suse.de>
22759 PR middle-end/87609
22760 * cfghooks.h (dependence_hash): New typedef.
22761 (struct copy_bb_data): New type.
22762 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22763 (duplicate_block): Likewise.
22764 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22765 (copy_bbs): Create and pass down copy_bb_data.
22766 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22767 (rtl_duplicate_bb): Likewise.
22768 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22769 remap dependence info.
22771 2019-02-22 Richard Biener <rguenther@suse.de>
22773 PR tree-optimization/87609
22774 * tree-core.h (tree_base): Document special clique values.
22775 * tree-inline.c (remap_dependence_clique): Do not use the
22776 special clique value of one.
22777 (maybe_set_dependence_info): Use clique one.
22778 (clear_dependence_clique): New callback.
22779 (compute_dependence_clique): Clear clique one from all refs
22780 before assigning it (again).
22782 2019-02-21 Martin Sebor <msebor@redhat.com>
22784 * doc/extend.texi (__clear_cache): Correct signature.
22786 2019-02-21 Ian Lance Taylor <iant@golang.org>
22789 * varasm.c (decode_addr_const): Call lookup_constant_def rather
22790 than output_constant_def.
22791 (add_constant_to_table): New static function.
22792 (output_constant_def): Call add_constant_to_table.
22793 (tree_output_constant_def): Likewise.
22795 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22798 * builtins.c (fold_builtin_arith_overflow): If first two args are
22799 INTEGER_CSTs, set intres and ovfres to constants rather than calls
22802 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
22805 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22806 error for -mindirect-branch/-mfunction-return with incompatible
22809 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22812 * constraints.md (q): Remove.
22813 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22816 2019-02-21 Martin Jambor <mjambor@suse.cz>
22819 * omp-general.c (omp_extract_for_data): Removed a duplicate call
22820 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22821 (omp_adjust_for_condition): ...here. Added necessary parameters.
22822 * omp-general.h (omp_adjust_for_condition): Updated declaration.
22823 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22824 proper values to new parameters of omp_adjust_for_condition.
22826 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22828 PR middle-end/89412
22829 * expr.c (expand_assignment): If result is a MEM, use change_address
22830 instead of simplify_gen_subreg.
22832 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22833 David Malcolm <dmalcolm@redhat.com>
22835 PR middle-end/89091
22836 * fold-const.c (decode_field_reference): Return NULL_TREE if
22837 lang_hooks.types.type_for_size returns NULL. Check it before
22838 overwriting *exp_. Use return NULL_TREE instead of return 0.
22840 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22842 PR middle-end/88074
22843 PR middle-end/89415
22844 * toplev.c (do_compile): Double the emin/emax exponents to workaround
22847 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
22850 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22851 TARGET_SSE in addition to TARGET_SSE_MATH.
22853 (ix86_excess_precision): Ditto.
22854 (ix86_float_exceptions_rounding_supported_p): Ditto.
22855 (use_rsqrt_p): Ditto.
22856 * config/i386/sse.md (rsqrt<mode>2): Ditto.
22858 2019-02-20 David Malcolm <dmalcolm@redhat.com>
22861 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
22862 linenum_arith_t when determining if two adjacent line spans are
22863 close enough to merge.
22864 (diagnostic_show_locus): Use linenum_arith_t when iterating over
22865 lines within each line_span.
22867 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22870 * lra-constraints.c(uses_hard_regs_p): Fix handling of
22871 paradoxical SUBREGS.
22873 2019-02-20 Li Jia He <helijia@linux.ibm.com>
22876 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
22877 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
22878 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
22881 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
22883 * config/gcn/gcn.c (print_operand): Fix typo.
22885 2019-02-19 Richard Biener <rguenther@suse.de>
22887 PR middle-end/88074
22888 * toplev.c (do_compile): Initialize mpfr's exponent range
22889 based on available float modes.
22891 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
22893 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
22894 as long as the epilogue isn't completed.
22896 2019-02-18 Martin Sebor <msebor@redhat.com>
22898 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
22899 __has_cpp_attribute, and __has_include.
22901 2019-02-18 Martin Sebor <msebor@redhat.com>
22903 * doc/invoke.texi (-Wreturn-type): Correct and expand.
22905 2019-02-18 Martin Sebor <msebor@redhat.com>
22907 PR middle-end/89294
22908 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
22910 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
22912 2019-02-18 Richard Biener <rguenther@suse.de>
22914 PR tree-optimization/89296
22915 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
22916 of no-warning flag to cases that might emit the bogus warning.
22918 2019-02-18 Jakub Jelinek <jakub@redhat.com>
22921 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
22923 * config/arm/vfp.md (*movdi_vfp): Likewise.
22924 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
22925 "q" constraint for operands[0].
22928 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
22929 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
22930 pattern in a temporary buffer.
22931 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
22932 than 64-operands[2].
22935 * config/s390/s390.c (s390_indirect_branch_attrvalue,
22936 s390_indirect_branch_settings): Define unconditionally.
22937 (s390_set_current_function): Likewise, but guard the whole body except
22938 the s390_indirect_branch_settings call with
22939 #if S390_USE_TARGET_ATTRIBUTE.
22940 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
22942 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
22943 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
22944 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
22945 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
22946 HOST_WIDE_INT_1U instead of 1ULL.
22947 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
22948 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
22949 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
22950 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
22952 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
22955 2019-02-18 Martin Jambor <mjambor@suse.cz>
22957 PR tree-optimization/89209
22958 * tree-sra.c (create_access_replacement): New optional parameter
22959 reg_tree. Use it as a type if non-NULL and access type is not of
22961 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
22962 to create_access_replacement.
22963 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
22964 Check lacc is non-NULL before attempting to re-create it on the RHS.
22966 2019-02-18 Martin Liska <mliska@suse.cz>
22969 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
22971 (symbol_table::free_edge): Recycle m_summary_id.
22972 * cgraph.h (get_summary_id): New.
22973 (symbol_table::release_symbol): Set m_summary_id to -1
22975 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
22976 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
22977 function_summary to fast_function_summary.
22978 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
22979 * ipa-pure-const.c (class funct_state_summary_t):
22980 Switch from function_summary to fast_function_summary.
22981 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
22982 (class ipa_ref_opt_summary_t): Switch from function_summary
22983 to fast_function_summary.
22984 * symbol-summary.h (class function_summary_base): New class
22985 that is created from base of former function_summary.
22986 (function_summary_base::unregister_hooks): New.
22987 (class function_summary): Inherit from function_summary_base.
22988 (class call_summary_base): New class
22989 that is created from base of former call_summary.
22990 (class call_summary): Inherit from call_summary_base.
22991 (struct is_same): New.
22992 (class fast_function_summary): New summary class.
22993 (class fast_call_summary): New summary class.
22994 * vec.h (vec_safe_grow_cleared): New function.
22996 2019-02-18 Martin Liska <mliska@suse.cz>
22998 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
22999 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23000 * doc/tm.texi: Document new target hook.
23001 * doc/tm.texi.in: Likewise.
23002 * target.def: Add new target macro.
23003 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23006 2019-02-17 Alan Modra <amodra@gmail.com>
23009 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23010 output reg on add insn.
23011 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23013 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23016 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23017 (PMULHRSW): Likewise.
23018 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23020 (ssse3_pmulhrswv4hi3): New expander.
23022 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23024 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23025 MMX. Add isa attribute.
23027 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23029 PR rtl-optimization/66152
23030 * builtins.h (c_readstr): Declare.
23031 * builtins.c (c_readstr): Remove forward declaration. Add
23032 null_terminated_p argument, if false, read all bytes from the
23033 string instead of stopping after '\0'.
23034 * expr.c (string_cst_read_str): New function.
23035 (store_expr): Use string_cst_read_str instead of
23036 builtin_strncpy_read_str. Try to store by pieces the whole
23037 exp_len first, and only if that fails, split it up into
23038 store by pieces followed by clear_storage. Formatting fix.
23040 * config/i386/i386.md (*movqi_internal): Remove static from
23041 buf variable. Use output_asm_insn (buf, operands); return "";
23042 instead of return buf;.
23043 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23044 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23045 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23047 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23049 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23050 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23051 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23052 (CC1_SPEC): Likewise.
23053 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23055 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23057 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23058 the base address on 64-bit strict-alignment platforms.
23060 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23062 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23064 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23066 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23068 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23070 PR rtl-optimization/88308
23071 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23072 on copied instruction.
23074 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23076 * final.c (insn_current_reference_address): Replace test on JUMP_P
23077 with test on jump_to_label_p.
23078 * config/visium/visium-passes.def: New file.
23079 * config/visium/t-visium (PASSES_EXTRA): Define.
23080 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23081 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23082 (TRAMPOLINE_ALIGNMENT): Define.
23083 * config/visium/visium.c (visium_option_override): Do not register
23084 the machine-specific reorg pass here.
23085 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23087 (output_branch): Adjust threshold for long branch instruction.
23088 * config/visium/visium.md (cpu): Move around.
23089 (length): Adjust for the GR6.
23091 2019-02-15 Richard Biener <rguenther@suse.de>
23092 Jakub Jelinek <jakub@redhat.com>
23094 PR tree-optimization/89278
23095 * tree-loop-distribution.c: Include tree-eh.h.
23096 (generate_memset_builtin, generate_memcpy_builtin): Call
23097 rewrite_to_non_trapping_overflow on builtin->size before passing it
23098 to force_gimple_operand_gsi.
23100 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23103 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23105 * opth-gen.awk: Likewise.
23107 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23109 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23110 Enable MMX, SSE and SSE2 by default.
23111 * config/i386/i386.c (ix86_option_override_internal): Do not
23112 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23114 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23116 PR rtl-optimization/89354
23117 * combine.c (make_extraction): Punt if extraction_mode is narrower
23120 2019-02-14 Maya Rashish <coypu@sdf.org>
23122 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23123 * config/netbsd-d.c: New file.
23124 * config/t-netbsd: Add netbsd-d.o
23126 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23128 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23129 affects_type_identity to true for aarch64_vector_pcs.
23130 (aarch64_comp_type_attributes): New function.
23131 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23133 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23136 * config/arm/iterators.md (ANY64): Add V4HF.
23138 2019-02-14 Martin Liska <mliska@suse.cz>
23140 PR rtl-optimization/89242
23141 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23142 process a transformation.
23144 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23146 PR tree-optimization/89314
23147 * fold-const.c (fold_binary_loc): Cast strlen argument to
23148 const char * before dereferencing it. Formatting fixes.
23150 PR middle-end/89284
23151 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23153 2019-02-13 Ian Lance Taylor <iant@golang.org>
23155 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23156 and set current index for other optimizations.
23158 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23160 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23161 nonimmediate_operand as operand 2 predicate.
23162 (vec_set<VF2_512_256:mode>_0): Ditto.
23163 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23164 (*vec_concatv2si): Remove alternative 2.
23165 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23166 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23167 (vec_concatv2di): Split alternatives 4,5,6 to ...
23168 (*vec_concatv2di_0) ... new pattern.
23170 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23173 * config/arm/arm.c (ldm_stm_operation_p) Set
23174 addr_reg_in_reglist correctly for first register.
23175 (load_multiple_sequence): Remove dead base check.
23176 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23178 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23181 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23182 Expose as @aarch64_pred_mov.
23183 * config/aarch64/aarch64.c (aarch64_classify_address):
23184 Use expand_insn which legitimizes operands.
23186 2019-02-13 Martin Liska <mliska@suse.cz>
23188 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23189 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23190 and pointer_offset fields.
23191 (initialize_argument_information): Remove usage of dead
23193 * cgraph.h (struct cgraph_thunk_info): Remove
23194 add_pointer_bounds_args.
23195 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23197 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23199 * config/i386/i386.c (ix86_function_arg_advance): Remove
23201 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23202 (def_builtin): Remove usage of dead fields.
23203 (ix86_add_new_builtins): Likewise.
23204 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23205 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23206 (sem_function::init): Likewise.
23207 (sem_variable::merge): Likewise.
23208 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23209 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23210 * lto-cgraph.c (lto_output_node): Likewise.
23211 (lto_output_varpool_node): Likewise.
23212 (input_node): Likewise.
23213 (input_varpool_node): Likewise.
23214 * lto-streamer-out.c (lto_output): Likewise.
23215 * tree-inline.c (expand_call_inline): Remove usage of
23217 * tree-inline.h (struct copy_body_data): Likewise.
23218 * varpool.c (varpool_node::dump): Likewise.
23220 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23222 PR middle-end/89303
23223 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23224 into pt->vars_contains_escaped_heap instead of setting
23225 pt->vars_contains_escaped_heap to it.
23227 PR middle-end/89281
23228 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23229 INTVAL (size), compare it to GET_MODE_MASK instead of
23230 1 << GET_MODE_BITSIZE.
23233 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23234 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23237 2019-02-13 Martin Liska <mliska@suse.cz>
23240 * cfgrtl.c (remove_barriers_from_footer): New function.
23241 (try_redirect_by_replacing_jump): Use it.
23242 (cfg_layout_redirect_edge_and_branch): Likewise.
23244 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23246 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23247 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23248 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23249 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23250 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23251 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23253 * config/rs6000/rs6000.c (builtin_function_type)
23254 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23255 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23256 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23257 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23258 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23260 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23262 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23263 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23265 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23268 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23269 268678 and revision 268657.
23270 (*movti_internal): Likewise.
23272 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23275 * config/s390/s390.c (s390_decompose_address): Update comment.
23276 (s390_check_qrst_address): Reject invalid address forms after
23279 2019-02-12 Martin Liska <mliska@suse.cz>
23282 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23283 we need default values of funct_state for a function that
23286 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23288 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23289 the object to pick the size of stores on strict-alignment platforms.
23291 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23292 (*movdi_insn_sp32): Likewise.
23293 (*movdi_insn_sp64): Likewise.
23295 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23298 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23299 types that needs constructiong.
23300 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23302 2019-02-12 Richard Biener <rguenther@suse.de>
23304 PR tree-optimization/89253
23305 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23306 duplicate the loop.
23308 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23311 * input.c (selftest::test_line_offset_overflow): New selftest.
23312 (selftest::input_c_tests): Call it.
23314 2019-02-11 Martin Sebor <msebor@redhat.com>
23316 PR tree-optimization/88771
23317 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23318 when -Wstringop-overflow is set.
23319 (builtin_memref::builtin_memref): Adjust excessive upper bound
23320 only when lower bound is not excessive.
23321 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23322 -Wstringop-ovefflow.
23323 (maybe_diag_offset_bounds): Rename...
23324 (maybe_diag_access_bounds): ...to this.
23325 (check_bounds_or_overlap): Adjust for name change above.
23327 2019-02-11 Martin Sebor <msebor@redhat.com>
23330 * builtins.c (max_object_size): Move from here...
23331 * builtins.h (max_object_size): ...and here...
23332 * tree.c (max_object_size): ...to here...
23333 * tree.h (max_object_size): ...and here.
23335 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23337 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23338 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23339 for correct semantics.
23341 2019-02-11 Alan Modra <amodra@gmail.com>
23343 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23344 -mlongcall and -mpltseq.
23345 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23346 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23347 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23348 * config/rs6000/sysv4.opt (mpltseq): New option.
23349 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23350 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23351 support is lacking. Don't allow -mpltseq with -mbss-plt.
23352 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23353 -mpltseq given for ELFv1.
23354 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23355 Only use UNSPEC_PLTSEQ for inline PLT calls.
23356 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23357 use UNSPEC_PLTSEQ for inline PLT calls.
23358 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23359 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23360 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23361 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23362 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23363 (pltseq_mtctr_<mode>): Likewise.
23365 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23367 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23369 * configure: Regenerate.
23371 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23374 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23377 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23379 * function.c (assign_parm_setup_block): Use the stored
23380 size, not the passed size, when allocating stack-space,
23381 also for a parameter with alignment larger than
23382 MAX_SUPPORTED_STACK_ALIGNMENT.
23384 2019-02-11 Martin Liska <mliska@suse.cz>
23387 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23388 * ipa-inline.c (inline_small_functions): Likewise.
23389 * ipa-pure-const.c (propagate_pure_const): Likewise.
23390 (propagate_nothrow): Likewise.
23391 * ipa-reference.c (propagate): Likewise.
23392 * ipa-utils.c (struct searchc_env): Remove unused field.
23393 (searchc): Always search across AVAIL_INTERPOSABLE.
23394 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23395 the only called IPA pure const can properly not propagate
23396 across interposable boundary.
23397 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23399 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23401 * config/nds32/nds32.md (call_internal, call_value_internal,
23402 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23404 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23406 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23409 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23411 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23414 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23416 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23418 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23420 PR tree-optimization/89268
23421 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23422 if preds is non-NULL.
23424 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23427 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23430 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23432 * config/nds32/nds32.md (trap): New pattern.
23434 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23436 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23439 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23441 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23444 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23446 * ipa-visibility.c (localize_node): Also do not localize
23447 LDPR_PREVAILING_DEF_IRONLY_EXP.
23449 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23452 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23453 instead of type_with_linkage.
23455 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23458 * params.def (uninlined-function-insns, uninlined-function-time,
23459 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23460 bound so we don't get overflows.
23462 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23464 * config/rs6000/rs6000-string.c (expand_compare_loop,
23465 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23468 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23470 PR middle-end/89246
23471 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23472 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23473 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23475 2019-02-09 Alan Modra <amodra@gmail.com>
23478 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23479 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23482 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23484 PR middle-end/88560
23485 * lra-constraints.c (process_alt_operands): Don't increase reject
23486 for memory when offset memory is required.
23488 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23490 * config/s390/vector.md: Implement vector copysign.
23492 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23494 * expr.c (expand_constructor): Correct indentations.
23496 2019-02-08 Richard Biener <rguenther@suse.de>
23498 PR tree-optimization/89247
23499 * tree-if-conv.c: Include tree-cfgcleanup.h.
23500 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23501 (tree_if_conversion): Pass through predicate vector.
23502 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23503 inline, see if any if-converted loops we refrece in
23504 LOOP_VECTORIZED calls vanished and fixup.
23505 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23507 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23509 * config/s390/constraints.md (jdd): New constraint.
23511 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23514 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23515 upper 16 vector registers without TARGET_AVX512VL.
23516 (*movti_internal): Likewise.
23518 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23520 PR rtl-optimization/89234
23521 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23522 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23523 (copy_reg_eh_region_note_backward): Likewise.
23525 2019-02-08 Richard Biener <rguenther@suse.de>
23527 PR middle-end/89223
23528 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23529 doesn't fit in HWI.
23530 (analyze_subscript_affine_affine): Handle failure from
23531 initialize_matrix_A.
23533 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23535 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23538 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23540 PR tree-optimization/86637
23541 PR tree-optimization/89235
23542 * tree-vect-loop.c (optimize_mask_stores): Add an
23543 auto_purge_vect_location sentinel to ensure that vect_location is
23545 * tree-vectorizer.c
23546 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23547 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23548 to ensure that vect_location is purged on exit.
23549 (pass_slp_vectorize::execute): Likewise, replacing the manual
23551 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23553 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23555 * config/aarch64/iterators.md (max_opp): New code_attr.
23556 (USMAX): New code iterator.
23557 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23558 (aarch64_smax): Likewise.
23559 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23560 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23563 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23566 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23567 for TARGET_AVX512VL.
23568 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23570 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23572 * config/s390/s390-builtin-types.def: Add new types.
23573 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23574 (s390_vec_xlw4): Make the memory operand into a const pointer.
23575 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23577 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23578 a new vector type with the alignment of the scalar memory operand.
23580 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23581 Jakub Jelinek <jakub@redhat.com>
23584 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23585 arm_count_ldrdstrd_insns): New declarations.
23586 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23588 (valid_operands_ldrd_strd): New function.
23589 (arm_count_ldrdstrd_insns): New function.
23590 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23591 sets instead of single DImode set and define new insns to match this.
23593 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23595 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23596 Make it a C initializer.
23598 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23601 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23603 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23605 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23606 Use neon_dot<q> for type.
23607 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23609 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23611 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23612 Use neon_dot<q> for type.
23613 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23614 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23616 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23618 PR rtl-optimization/89225
23619 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23622 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23624 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23625 after restoring registers saved to allocate the frame on Windows.
23627 2019-02-06 Richard Biener <rguenther@suse.de>
23629 PR tree-optimization/89182
23630 * graphite.h (cached_scalar_evolution_in_region): Declare.
23631 * graphite.c (struct seir_cache_key): New.
23632 (struct sese_scev_hash): Likewise.
23633 (seir_cache): New global.
23634 (cached_scalar_evolution_in_region): New function.
23635 (graphite_transform_loops): Allocate and release seir_cache.
23636 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23637 cached_scalar_evolution_in_region.
23638 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23640 (scop_detection::graphite_can_represent_expr: Use
23641 cached_scalar_evolution_in_region.
23642 (scop_detection::stmt_simple_for_scop_p): Likewise.
23643 (find_params_in_bb): Likewise.
23644 (gather_bbs::before_dom_children): Likewise.
23645 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23646 (add_loop_constraints): Likewise.
23648 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23650 PR middle-end/89210
23651 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23652 operand to new_unary_operation only if both element types are integral
23653 and it isn't a widening conversion. Return NULL_TREE if
23654 new_unary_operation failed.
23656 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23659 * config/s390/s390.md: Remove load and test FP splitter.
23661 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23664 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23665 expand_compare_loop, expand_block_compare_gpr,
23666 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23667 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23668 #include "profile-count.h" and "predict.h" for types and functions
23669 needed to work with REG_BR_PROB notes.
23671 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23674 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23675 for the long branch case.
23677 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23680 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23681 can throw, non-call exceptions are enabled and we can't delete
23682 dead exceptions or alter cfg. Set must_clean if
23683 delete_insn_and_edges returns true, don't set it blindly for calls.
23684 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23686 PR rtl-optimization/89195
23687 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23688 of the original MEM.
23690 2019-02-05 Martin Liska <mliska@suse.cz>
23692 PR gcov-profile/89000
23693 * gcov.c (function_summary): Remove argument.
23694 (file_summary): New function.
23695 (print_usage): Replace tabs with spaces.
23696 (generate_results): Use new function file_summary.
23698 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23701 * optabs.c (prepare_cmp_insn): Pass x and y to
23702 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23704 2019-02-05 Richard Biener <rguenther@suse.de>
23706 PR middle-end/89150
23707 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23708 (struct bitmap_element): Drop chain_prev so we properly recurse on
23709 the prev member, supporting tree views.
23710 (struct bitmap_head): GTY skip the obstack member.
23712 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23715 * doc/extend.texi (Vector Extensions): Add an example of using vector
23716 types together with x86 intrinsics.
23718 2019-02-04 Alan Modra <amodra@gmail.com>
23720 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23721 str[] size to 160, and comment.
23723 2019-02-04 Alan Modra <amodra@gmail.com>
23725 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23726 (rs6000_pltseq_template): Guard output of TLS markers with
23727 TARGET_TLS_MARKERS.
23728 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23729 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23730 to use inline PLT sequences.
23731 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23732 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23733 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23735 2019-02-04 Martin Liska <mliska@suse.cz>
23738 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23739 out when ipa_fn_summaries does not contain entry for callee.
23741 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23743 * config/sparc/sparc.h: Remove superfluous blank lines.
23744 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23745 (got_register_rtx): ...this.
23746 (sparc_got): Adjust to above renaming.
23747 (sparc_tls_got): Likewise.
23748 (sparc_delegitimize_address): Likewise.
23749 (sparc_output_mi_thunk): Likewise.
23750 (sparc_init_pic_reg): Likewise.
23751 (save_local_or_in_reg_p): Fix test on the GOT register.
23752 (USE_HIDDEN_LINKONCE): Move around.
23753 (get_pc_thunk_name): Likewise.
23754 (gen_load_pcrel_sym): Likewise.
23755 (load_got_register): Likewise.
23757 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23759 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23760 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23762 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23764 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23765 into consideration.
23767 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23769 * config.gcc (with_nds32_lib, glibc):
23770 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23771 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23772 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23774 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23777 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23778 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23779 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23780 (*rcpsf2_sse): Ditto.
23781 (*rsqrtsf2_sse): Ditto.
23782 (sse4_1_round<mode<2): Ditto.
23784 2019-02-03 Richard Biener <rguenther@suse.de>
23787 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23790 2019-02-02 Jakub Jelinek <jakub@redhat.com>
23792 PR middle-end/87887
23793 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23794 Punt with warning on aggregate return or argument types. Ignore
23795 type/mode checking for uniform arguments.
23797 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
23799 * combine.c (try_combine): Do not print "Can't combine" messages unless
23800 printing failed combination attempts.
23802 2019-02-01 Martin Jambor <mjambor@suse.cz>
23805 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23806 segment and global segment variables before making them static.
23808 2019-02-01 Martin Jambor <mjambor@suse.cz>
23810 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23811 missed optimization dump with dump_enabled_p.
23813 2019-02-01 Richard Biener <rguenther@suse.de>
23815 PR middle-end/88597
23816 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23817 the instantiate cache.
23818 (instantiate_scev_binary): Elide second operand procesing
23819 if equal to the first.
23820 * tree-chrec.c (chrec_contains_symbols): Add visited set.
23821 (chrec_contains_undetermined): Likewise.
23822 (tree_contains_chrecs): Likewise.
23824 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
23826 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23828 2019-02-01 Jakub Jelinek <jakub@redhat.com>
23830 PR tree-optimization/89143
23831 * wide-int-range.h (wide_int_range_absu): Declare.
23832 * wide-int-range.cc (wide_int_range_absu): New function.
23833 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23835 PR tree-optimization/88107
23836 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23837 instead of assertion that eh_region_outermost is non-NULL, if it
23838 is NULL, set *ALL to true and return NULL.
23839 (move_sese_region_to_fn): Adjust caller, if all is set, call
23840 duplicate_eh_regions with NULL region.
23842 2019-02-01 Richard Biener <rguenth@suse.de>
23844 PR rtl-optimization/88593
23845 * mode-switching.c (optimize_mode_switching): Free dominators before
23846 calling cleanup_cfg.
23848 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
23850 PR tree-optimization/88932
23851 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23853 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23855 PR middle-end/89137
23856 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
23857 bogus clang warning.
23859 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
23862 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
23863 alternative to avoid partial SSE register stall for TARGET_AVX.
23864 (truncdfsf2): Ditto.
23865 (sse4_1_round<mode>2): Ditto.
23867 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
23869 PR tree-optimization/89008
23870 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
23871 process anything of the form X * 0.
23873 2019-01-31 Richard Biener <rguenther@suse.de>
23875 PR tree-optimization/89135
23876 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
23877 with abnormal preds.
23879 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23882 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
23883 always_inline callees into no_sanitize_address callers.
23885 2019-01-31 Richard Biener <rguenther@suse.de>
23887 PR rtl-optimization/89115
23888 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
23890 2019-01-30 Martin Sebor <msebor@redhat.com>
23893 * doc/extend.texi (cast to a union): Correct and expand.
23895 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
23897 PR rtl-optimization/87246
23898 * lra-constraints.c (simplify_operand_subreg): Reload memory
23899 in subreg if the address became invalid.
23901 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
23904 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
23905 Disable for little-endian.
23907 2019-01-30 Richard Biener <rguenther@suse.de>
23909 PR rtl-optimization/89115
23910 * opts.c (default_options_optimization): Reduce
23911 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
23912 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
23915 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
23917 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
23918 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
23919 type of vector element when vec_extract is implemented by direct
23922 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
23924 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
23926 2019-01-30 Richard Biener <rguenther@suse.de>
23928 PR tree-optimization/89111
23929 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
23930 canonicalization to appropriately sized access types.
23932 2019-01-30 Jakub Jelinek <jakub@redhat.com>
23935 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
23936 for arguments to functions that are TU-local and shouldn't be
23937 referenced by assembly.
23939 2019-01-30 Ulrich Drepper <drepper@redhat.com>
23941 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
23944 2019-01-29 Martin Sebor <msebor@redhat.com>
23947 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
23949 2019-01-29 Jakub Jelinek <jakub@redhat.com>
23953 * omp-simd-clone.c (simd_clone_clauses_extract)
23954 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
23955 OMP_CLAUSE_ALIGNED_ALIGNMENT.
23957 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
23959 * config.gcc: Force .init_array for ARC.
23961 2019-01-29 Richard Biener <rguenther@suse.de>
23964 * dwarf2out.c (collect_skeleton_dies): New helper.
23965 (copy_decls_for_unworthy_types): Call it.
23966 (build_abbrev_table): Assert we do not try to replace
23967 DW_AT_signature refs with local refs.
23969 2019-01-28 Jakub Jelinek <jakub@redhat.com>
23971 PR middle-end/89002
23972 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
23973 for lastprivate/linear IV, push gimplify context around gimplify_assign
23974 and, if it needed any temporaries, pop it into a gimple bind around the
23977 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23979 * common.opt (-Wattribute-alias): Remove "no-" from name.
23980 Make -Wattribute-alias command line option and
23981 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
23983 2019-01-28 Jakub Jelinek <jakub@redhat.com>
23986 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
23987 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
23989 (bmi2): Add missing @opindex.
23990 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
23991 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
23992 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
23993 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
23994 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
23995 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
23996 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
23997 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
23998 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
23999 xsavec, xsaveopt and xsaves options.
24001 2019-01-28 Richard Biener <rguenther@suse.de>
24004 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24007 2019-01-28 Richard Biener <rguenther@suse.de>
24009 PR tree-optimization/88739
24010 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24011 BIT_FIELD_REFs only are applied to mode-precision operands
24012 when they are integral.
24013 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24014 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24015 BIT_FIELD_REFs of non-mode-precision integral operands.
24017 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24020 * config/i386/sse.md
24021 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24022 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24023 first constants in pairs are multiples of 2. Formatting fixes.
24024 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24025 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24026 first constants in each quadruple are multiples of 4. Formatting fixes.
24028 2019-01-26 Martin Jambor <mjambor@suse.cz>
24031 * tree-inline.c: Include tree-cfgcleanup.h.
24032 (delete_unreachable_blocks_update_callgraph): Move...
24033 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24034 ...here, make externally visible, make second argument bool, adjust
24036 * tree-cfgcleanup.c: Include cgraph.h.
24037 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24039 * ipa-prop.c: Include tree-cfgcleanup.h.
24040 (ipcp_transform_function): Call
24041 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24043 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24045 PR rtl-optimization/88846
24046 * ira.c (process_set_for_memref_referenced_p): New.
24047 (memref_referenced_p): Add new param. Use
24048 process_set_for_memref_referenced_p. Add new switch cases.
24049 (memref_used_between_p): Pass new arg to memref_referenced_p.
24051 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24054 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24055 argument ABI_BREAK. Set to true if the calculated alignment has
24056 changed in gcc-9. Check bit-fields for their base type alignment.
24057 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24058 (aarch64_function_arg_boundary): Likewise.
24059 (aarch64_gimplify_va_arg_expr): Likewise.
24061 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24063 PR middle-end/89037
24064 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24065 instead of accessing TREE_INT_CST_ELT directly.
24067 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24069 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24070 fenv_exceptions description.
24072 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24074 PR rtl-optimization/87763
24075 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24076 Allow SUBREG when matching CC_NZmode compare.
24078 2019-01-25 Richard Biener <rguenther@suse.de>
24080 PR tree-optimization/89049
24081 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24082 Look at the pattern stmt to determine if the stmt is vectorized.
24084 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24086 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24087 (pred_mov<mode>): Handle all-register forms using both a new
24088 alternative and a split.
24090 2019-01-25 Richard Biener <rguenther@suse.de>
24092 PR tree-optimization/86865
24093 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24094 Reject non-do-while loops.
24096 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24098 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24099 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24100 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24101 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24102 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24103 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24104 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24105 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24106 vlogical_operand, gpc_reg_operand, int_reg_operand,
24107 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24108 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24109 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24110 (save_world_operation, restore_world_operation, lmw_operation,
24111 stmw_operation): Use MEM_P and REG_P.
24112 (tie_operand): Use MEM_P.
24113 (vrsave_operation, crsave_operation): Use REG_P.
24114 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24115 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24116 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24117 (call_operand): Use HARD_REGISTER_P.
24118 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24120 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24121 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24122 quad_aligned_load_p, replace_swapped_aligned_store,
24123 recombine_lvx_pattern, replace_swapped_aligned_load,
24124 recombine_stvx_pattern): Use MEM_P.
24125 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24126 Use MEM_P and SYMBOL_REF_P.
24127 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24128 (insn_is_swappable_p): Use REG_P and MEM_P.
24129 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24130 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24132 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24133 Use CONST_DOUBLE_P.
24134 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24136 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24137 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24138 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24139 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24141 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24142 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24143 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24144 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24145 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24146 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24147 rs6000_split_logical_di): Use CONST_INT_P.
24148 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24149 REG_P and SYMBOL_REF_P.
24150 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24151 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24152 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24153 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24154 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24155 (small_data_operand, print_operand_address): Use CONST_INT_P and
24157 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24158 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24159 Use HARD_REGISTER_NUM_P.
24160 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24161 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24162 SUBREG_P and SYMBOL_REF_P.
24163 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24164 and HARD_REGISTER_NUM_P.
24165 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24167 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24168 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24170 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24171 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24172 find_addr_reg): Use REG_P.
24173 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24174 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24175 (offsettable_ok_by_alignment, constant_pool_expr_p,
24176 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24177 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24178 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24179 rs6000_assemble_integer, create_TOC_reference,
24180 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24181 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24182 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24183 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24184 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24185 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24186 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24187 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24188 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24189 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24190 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24191 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24192 and cbranch<mode>4): Use CONST_INT_P.
24193 (multiple define_splits): Use REG_P and SUBREG_P.
24194 (define_expands call, call_value): Use MEM_P.
24195 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24196 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24197 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24198 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24199 and HARD_REGISTER_NUM_P.
24200 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24202 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24204 PR rtl-optimization/88948
24205 * rtl.h (prepare_copy_insn): New prototype.
24206 * gcse.c (prepare_copy_insn): New function, split out from
24207 process_insert_insn.
24208 (process_insert_insn): Use prepare_copy_insn.
24209 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24210 instead of gen_move_insn.
24212 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24215 * config/i386/i386.c (ix86_pic_register_p): Return true for
24216 UNSPEC_SET_GOT too.
24218 PR tree-optimization/88964
24219 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24220 punt if HONOR_SNANS (chrec).
24222 PR middle-end/89015
24223 * tree-nested.c (convert_nonlocal_reference_stmt,
24224 convert_local_reference_stmt, convert_tramp_reference_stmt,
24225 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24226 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24227 or GIMPLE_OMP_TASK.
24229 PR tree-optimization/89027
24230 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24231 for "omp simd array" variables.
24233 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24236 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24237 force the alignment of m_val.
24239 2019-01-24 Richard Biener <rguenther@suse.de>
24242 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24243 When in "legacy" debug mode make sure to reset self-origins.
24245 2019-01-24 Martin Liska <mliska@suse.cz>
24247 PR gcov-profile/88994
24248 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24249 result will be always smaller or equal to the original.
24250 * gcov.c (mangle_name): Fix else branch where we should
24251 also copy to PTR and shift the pointer.
24253 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24255 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24256 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24258 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24260 * common/config/i386/i386-common.c
24261 (OPTION_MASK_ISA_ENQCMD_SET,
24262 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24263 (ix86_handle_option): Handle -menqcmd.
24264 * config.gcc (enqcmdintrin.h): New header file.
24265 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24266 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24268 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24270 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24271 __builtin_ia32_enqcmds): New builtins.
24272 * config/i386/i386-c.c (__ENQCMD__): New macro.
24273 * config/i386/i386-option.c (ix86_target_string): Add
24275 (ix86_valid_target_attribute_inner_p): Likewise.
24276 * config/i386/i386-expand.c
24277 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24278 IX86_BUILTIN_ENQCMDS.
24279 * config/i386/i386.h (TARGET_ENQCMD): New.
24280 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24281 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24282 (movdir64b_<mode>): Parameterize to enable share expansion code
24283 with ENQCMD in function ix86_expand_builtin.
24284 * config/i386/i386.opt: Add -menqcmd.
24285 * config/i386/immintrin.h: Include enqcmdintrin.h.
24286 * config/i386/enqcmdintrin.h: New intrinsic file.
24287 * doc/invoke.texi: Add -menqcmd.
24289 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24290 Steve Ellcey <sellcey@marvell.com>
24293 * recog.c (address_operand): Return false on wrong mode for address.
24294 (constrain_operands): Check for mode with 'p' constraint.
24296 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24299 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24300 Disparage MMX alternative.
24301 (sse2_cvtpd2pi): Ditto.
24302 (sse2_cvttpd2pi): Ditto.
24304 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24307 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24308 use-after-free of the result of
24309 aarch64_get_extension_string_for_isa_flags.
24311 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24314 * doc/extend.texi: Document break and continue behavior in
24315 statement expressions.
24317 2019-01-23 Richard Biener <rguenther@suse.de>
24319 PR tree-optimization/89008
24320 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24321 not leave another stray operand.
24323 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24325 * BASE-VER: Bump to 9.0.1.
24327 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24329 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24330 thunk that returns by reference, use the type of the return object
24331 of the thunk instead of that of the alias to build the dereference.
24333 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24335 * config/arc/atomic.md: Add operand to DMB instruction.
24337 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24339 PR tree-optimization/88964
24340 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24341 build_zero_cst instead of build_int_cst. Return false for loop
24342 invariants which honor signed zeros.
24344 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24346 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24348 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24351 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24352 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24353 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24355 PR middle-end/88968
24356 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24357 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24360 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24361 Disable for little endian.
24363 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24366 * config/arm/arm.c (arm_needs_double_word_align): Check
24367 DECL_BIT_FIELD_TYPE.
24369 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24370 H.J. Lu <hongjiu.lu@intel.com>
24373 * config/i386/i386-builtin.def: Add mask2 to all builtin
24374 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24376 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24377 (BDESC_FIRST): Likewise.
24378 (define_builtin): Add an argument for mask2. Updated to handle
24379 both ix86_isa_flags and ix86_isa_flags2.
24380 (define_builtin_const): Likewise.
24381 (define_builtin_pure): Likewise.
24382 (define_builtin2): Deleted.
24383 (define_builtin_const2): Likewise.
24384 (builtin_description): Add a member, mask2.
24385 (bdesc_*): Add mask2 to builtin initializations.
24386 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24387 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24389 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24391 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24394 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24397 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24400 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24401 alignment is dominated by a bitfield with 64-bit aligned base type.
24402 (arm_function_arg): Emit a warning if the alignment has changed since
24403 earlier GCC releases.
24404 (arm_function_arg_boundary): Likewise.
24405 (arm_setup_incoming_varargs): Likewise.
24407 2019-01-22 Richard Biener <rguenther@suse.de>
24409 PR tree-optimization/88862
24410 * graphite-scop-detection.c
24411 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24413 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24415 * doc/extend.tex (AMD GCN Function Attributes): New section.
24416 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24417 * doc/invoke.texi (AMD GCN Options): New section.
24418 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24420 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24422 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24423 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24425 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24427 PR tree-optimization/88044
24428 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24429 is false in the first iteration, but !every_iteration, return false
24430 instead of true with niter->niter zero.
24432 PR rtl-optimization/88904
24433 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24434 any nonequal registers before processing BB_END (b).
24437 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24439 (expand_binop_directly, expand_doubleword_clz,
24440 expand_doubleword_popcount, expand_ctz, expand_ffs,
24441 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24443 PR rtl-optimization/49429
24445 PR rtl-optimization/86334
24447 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24448 addressable from here...
24449 (emit_block_op_via_libcall): ... to here.
24451 2019-01-22 Richard Biener <rguenther@suse.de>
24453 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24454 auto_vec for cost vector to fix memleak.
24455 (vectorize_fold_left_reduction): Properly gather SLP defs.
24456 (vectorizable_comparison): Do not swap operands to properly
24459 2019-01-22 Alan Modra <amodra@gmail.com>
24462 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24463 stays a reg. Allow a const_int.
24464 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24465 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24466 (IS_NOMARK_TLSGETADDR): Define.
24467 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24468 (rs6000_output_tlsargs): New function.
24469 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24470 __tls_get_addr call takes an arg.
24471 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24472 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24474 (call_value_nonlocal_sysv): ..or here, delete split.
24475 (tls_gdld_nomark): Delete.
24476 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24477 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24478 (call_value_nonlocal_sysv): Likewise.
24479 (call_value_nonlocal_sysv_secure): Likewise.
24480 (call_value_nonlocal_aix): Likewise.
24481 (call_value_indirect_aix): Likewise.
24482 (call_value_indirect_elfv2): Likewise.
24483 (call_value_local32, call_value_local64): Disable for no-mark tls.
24484 (call_value_local_aix): Likewise.
24486 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24489 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24490 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24492 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24494 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24495 string contents as hash_map keys.
24497 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24500 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24501 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24502 instead of TYPE_ALIGN.
24503 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24504 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24505 pointer from TYPE_STUB_DECL.
24507 2019-01-21 Richard Biener <rguenther@suse.de>
24509 PR tree-optimization/88934
24510 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24511 at the possibly non-constant operand.
24512 (vect_get_constant_vectors): Adjust.
24514 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24517 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24518 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24519 instead of _X86INTRIN_H_INCLUDED.
24520 * onfig/i386/clwbintrin.h: Likewise.
24521 * config/i386/pkuintrin.h: Likewise.
24522 * config/i386/prfchwintrin.h: Likewise.
24523 * config/i386/rdseedintrin.h: Likewise.
24524 * config/i386/wbnoinvdintrin.h: Likewise.
24525 * config/i386/xsavecintrin.h: Likewise.
24526 * config/i386/xsavesintrin.h: Likewise.
24527 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24528 * config/i386/xsaveintrin.h: Likewise.
24529 * config/i386/xsaveoptintrin.h: Likewise.
24530 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24531 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24532 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24533 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24534 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24535 * config/i386/immintrin.h: Here.
24537 2019-01-20 Martin Jambor <mjambor@suse.cz>
24540 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24541 with aa_walk_budget.
24542 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24543 aa_walk_budget_p parameter.
24544 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24545 walk. Updated all callers.
24546 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24547 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24549 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24550 parameter info. Extract info from fbi. Pass fbi to recursive calls
24551 and to unmodified_parm.
24552 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24553 info, updated call to will_be_nonconstant_expr_predicate.
24554 (param_change_prob): New parameter fbi, limit AA walking.
24555 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24556 calls to various above functions.
24557 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24558 parameter. Use it to limit AA walking.
24559 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24560 fbi, limit AA walk.
24561 (detect_type_change): New parameter fbi, pass it on to
24562 detect_type_change_from_memory_writes.
24563 (detect_type_change_ssa): Likewise.
24564 (aa_overwalked): Removed.
24565 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24566 accordingly, adjust to the neew AA limiting scheme.
24567 (parm_ref_data_preserved_p): Likewise.
24568 (ipa_compute_jump_functions_for_edge): Adjust call to
24570 (ipa_analyze_call_uses): Likewise.
24571 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24572 (ipa_analyze_node): Initialize aa_walk_budget.
24573 (ipcp_transform_function): Likewise.
24574 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24575 to get_dynamic_type.
24577 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24579 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24580 outside of #if CHECKING_P code.
24582 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24584 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24585 New function, split out from...
24586 (loop_versioning::analyze_stride): ...here.
24587 (loop_versioning::find_per_loop_multiplication): Use gassign.
24588 (loop_versioning::analyze_term_using_scevs): Return a success code.
24589 (loop_versioning::analyze_arbitrary_term): New function.
24590 (loop_versioning::analyze_address_fragment): Use
24591 analyze_arbitrary_term if all else fails.
24593 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24596 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24599 2019-01-18 Richard Biener <rguenther@suse.de>
24601 PR tree-optimization/88903
24602 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24603 scalar stmts a SLP shift amount is composed of when detecting
24606 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24609 * config/arm/arm-cpus.in (mp): New feature.
24610 (sec): New feature.
24611 (fgroup ARMv7ve): Add mp and sec features.
24612 (arch armv7-a): Add options to allow mp and sec extensions.
24613 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24614 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24615 extenstions to the base architecture.
24616 (cpu cortex-a8): Add sec extension to the base architecture.
24617 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24618 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24619 variants down to the base v7-a varaint.
24620 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24621 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24622 of permitted extensions for -march=armv7-a and for
24623 -mcpu=generic-armv7-a.
24625 2019-01-18 Martin Liska <mliska@suse.cz>
24627 * params.def: Fix comment.
24628 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24630 (gimple_gen_ic_func_profiler): Likewise.
24632 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24634 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24635 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24636 and put in error checks for stack protector guard options.
24637 (aarch64_stack_protect_guard): New.
24638 (TARGET_STACK_PROTECT_GUARD): Define.
24639 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24640 (reg_stack_protect_address<mode>): New.
24641 (stack_protect_set): Adjust for SSP_GLOBAL.
24642 (stack_protect_test): Likewise.
24643 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24644 (-mstack-protector-guard): Likewise.
24645 (-mstack-protector-guard-offset): Likewise.
24647 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24649 PR tree-optimization/86214
24650 * tree-inline.h (struct copy_body_data): Add
24651 add_clobbers_to_eh_landing_pads member.
24652 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24653 (copy_edges_for_bb): Call it if EH edge destination is <
24654 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24655 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24656 if flag_stack_reuse != SR_NONE and clear it afterwards.
24658 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24661 * doc/install.texi (with-multilib-list): Document for aarch64.
24663 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24666 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24667 (("..."))) with ("...").
24669 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24671 * doc/extend.texi (Built-in Functions for Memory Model Aware
24672 Atomic Operations): Document atomic fetch and nand.
24674 2019-01-18 Martin Liska <mliska@suse.cz>
24675 Richard Biener <rguenther@suse.de>
24677 PR middle-end/88587
24678 * cgraph.h (create_version_clone_with_body): Add new argument
24680 * cgraphclones.c (cgraph_node::create_version_clone): Add
24681 DECL_ATTRIBUTES to a newly created decl. And call
24682 valid_attribute_p so that proper cl_target_optimization_node
24683 is set for the newly created declaration.
24684 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24686 (expand_target_clones): Do not call valid_attribute_p, it must
24688 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24691 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24694 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24695 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24696 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24698 2019-01-17 Martin Sebor <msebor@redhat.com>
24700 PR middle-end/88273
24701 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24702 Handle anti-ranges the same as no range at all.
24704 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24706 * config/aarch64/aarch64.c (cgraph.h): New include.
24707 (intl.h): New include.
24708 (supported_simd_type): New function.
24709 (currently_supported_simd_type): Ditto.
24710 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24711 (aarch64_simd_clone_adjust): Ditto.
24712 (aarch64_simd_clone_usable): Ditto.
24713 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24714 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24715 (TARGET_SIMD_CLONE_USABLE): Ditto.
24716 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24717 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24720 2019-01-17 Martin Sebor <msebor@redhat.com>
24722 PR tree-optimization/88800
24723 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24724 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24725 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24726 redundant argument. Add new argument and issue diagnostics under
24727 its control. Detect out-of-bounds access even with warnings
24729 (check_bounds_or_overlap): Change return type. Add argument.
24730 (wrestrict_dom_walker::check_call): Adjust.
24731 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24732 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24733 check_bounds_or_overlap's return value.
24734 (handle_builtin_stxncpy): Same.
24735 (handle_builtin_strcat): Same.
24737 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24738 Kwok Cheung Yeung <kcy@codesourcery.com>
24739 Julian Brown <julian@codesourcery.com>
24740 Tom de Vries <tom@codesourcery.com>
24742 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24744 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24746 * doc/sourcebuild.texi: Document dg-require-effective-target
24747 llvm_binutils and offload_gcn.
24749 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24750 Kwok Cheung Yeung <kcy@codesourcery.com>
24751 Julian Brown <julian@codesourcery.com>
24752 Tom de Vries <tom@codesourcery.com>
24754 * doc/sourcebuild.texi: Document dg-required-effective-target
24757 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24758 Kwok Cheung Yeung <kcy@codesourcery.com>
24759 Julian Brown <julian@codesourcery.com>
24760 Tom de Vries <tom@codesourcery.com>
24761 Jan Hubicka <hubicka@ucw.cz>
24762 Martin Jambor <mjambor@suse.cz>
24764 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24765 * configure.ac: Check for dlopen.
24766 * configure: Regenerate.
24768 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24769 Kwok Cheung Yeung <kcy@codesourcery.com>
24770 Julian Brown <julian@codesourcery.com>
24771 Tom de Vries <tom@codesourcery.com>
24772 Jan Hubicka <hubicka@ucw.cz>
24773 Martin Jambor <mjambor@suse.cz>
24775 * common/config/gcn/gcn-common.c: New file.
24776 * config/gcn/driver-gcn.c: New file.
24777 * config/gcn/gcn-builtins.def: New file.
24778 * config/gcn/gcn-hsa.h: New file.
24779 * config/gcn/gcn-modes.def: New file.
24780 * config/gcn/gcn-opts.h: New file.
24781 * config/gcn/gcn-passes.def: New file.
24782 * config/gcn/gcn-protos.h: New file.
24783 * config/gcn/gcn-run.c: New file.
24784 * config/gcn/gcn-tree.c: New file.
24785 * config/gcn/gcn.c: New file.
24786 * config/gcn/gcn.h: New file.
24787 * config/gcn/gcn.opt: New file.
24788 * config/gcn/t-gcn-hsa: New file.
24790 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24791 Kwok Cheung Yeung <kcy@codesourcery.com>
24792 Julian Brown <julian@codesourcery.com>
24793 Tom de Vries <tom@codesourcery.com>
24794 Jan Hubicka <hubicka@ucw.cz>
24795 Martin Jambor <mjambor@suse.cz>
24797 * config/gcn/constraints.md: New file.
24798 * config/gcn/gcn-valu.md: New file.
24799 * config/gcn/gcn.md: New file.
24800 * config/gcn/predicates.md: New file.
24802 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
24804 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24805 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24806 (stmt_uses_0_or_null_in_undefined_way): Likewise.
24807 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24809 2019-01-17 Tamar Christina <tamar.christina@arm.com>
24812 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24813 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24814 it and document registers.
24816 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24818 * config/aarch64/aarch64.c (ares_tunings): Define.
24819 * config/aarch64/aarch64-cores.def (ares): Use the above.
24821 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24825 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
24827 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24828 (_mm512_fixupimm_round_pd): Update parameters and builtin.
24829 (_mm512_maskz_fixupimm_round_pd): Ditto.
24830 (_mm512_fixupimm_round_ps): Ditto.
24831 (_mm512_maskz_fixupimm_round_ps): Ditto.
24832 (_mm_fixupimm_round_sd): Ditto.
24833 (_mm_maskz_fixupimm_round_sd): Ditto.
24834 (_mm_fixupimm_round_ss): Ditto.
24835 (_mm_maskz_fixupimm_round_ss): Ditto.
24836 (_mm512_fixupimm_pd): Ditto.
24837 (_mm512_maskz_fixupimm_pd): Ditto.
24838 (_mm512_fixupimm_ps): Ditto.
24839 (_mm512_maskz_fixupimm_ps): Ditto.
24840 (_mm_fixupimm_sd): Ditto.
24841 (_mm_maskz_fixupimm_sd): Ditto.
24842 (_mm_fixupimm_ss): Ditto.
24843 (_mm_maskz_fixupimm_ss): Ditto.
24844 (_mm512_mask_fixupimm_round_pd): Update builtin.
24845 (_mm512_mask_fixupimm_round_ps): Ditto.
24846 (_mm_mask_fixupimm_round_sd): Ditto.
24847 (_mm_mask_fixupimm_round_ss): Ditto.
24848 (_mm512_mask_fixupimm_pd): Ditto.
24849 (_mm512_mask_fixupimm_ps): Ditto.
24850 (_mm_mask_fixupimm_sd): Ditto.
24851 (_mm_mask_fixupimm_ss): Ditto.
24852 * config/i386/avx512vlintrin.h:
24853 (_mm256_fixupimm_pd): Update parameters and builtin.
24854 (_mm256_maskz_fixupimm_pd): Ditto.
24855 (_mm256_fixupimm_ps): Ditto.
24856 (_mm256_maskz_fixupimm_ps): Ditto.
24857 (_mm_fixupimm_pd): Ditto.
24858 (_mm_maskz_fixupimm_pd): Ditto.
24859 (_mm_fixupimm_ps): Ditto.
24860 (_mm_maskz_fixupimm_ps): Ditto.
24861 (_mm256_mask_fixupimm_pd): Update builtin.
24862 (_mm256_mask_fixupimm_ps): Ditto.
24863 (_mm_mask_fixupimm_pd): Ditto.
24864 (_mm_mask_fixupimm_ps): Ditto.
24865 * config/i386/i386-builtin-types.def: Add new types and remove
24867 * config/i386/i386-builtin.def: Update builtin definitions.
24868 * config/i386/i386.c: Handle new builtin types and remove useless ones.
24869 * config/i386/sse.md: Update VFIXUPIMM* patterns.
24870 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24871 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24872 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
24873 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24874 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24875 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
24876 * config/i386/subst.md:
24877 (round_saeonly_sd_mask_operand4): Add new subst_attr.
24878 (round_saeonly_sd_mask_op4): Ditto.
24879 (round_saeonly_expand_operand5): Ditto.
24880 (round_saeonly_expand): Update.
24882 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24886 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
24888 * config/i386/sse.md: Combine VFIXUPIMM* patterns
24889 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24890 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24891 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
24892 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24893 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24894 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
24896 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24900 2018-12-15 Jakub Jelinek <jakub@redhat.com>
24903 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
24904 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
24905 instead of UNSPEC_FIXUPIMM.
24907 2019-01-17 Richard Biener <rguenther@suse.de>
24910 * dwarf2out.c (want_pubnames): Never generate pubnames sections
24911 and friends for the LTO part of debug info.
24913 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24915 PR tree-optimization/86214
24916 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
24919 PR rtl-optimization/88870
24920 * dce.c (deletable_insn_p): Never delete const/pure calls that can
24921 throw if we can't alter the cfg or delete dead exceptions.
24922 (mark_insn): Don't call find_call_stack_args for such calls.
24924 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
24926 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
24927 prototypes for vec_st.
24928 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
24929 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
24930 mainly on signed/unsigned long long and double.
24932 2019-01-16 David Malcolm <dmalcolm@redhat.com>
24935 * combine.c (delete_noop_moves): Convert to "bool" return,
24936 returning true if any edges are eliminated.
24937 (combine_instructions): Also return true if delete_noop_moves
24940 2019-01-16 Tamar Christina <tamar.christina@arm.com>
24942 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
24943 correct max nunits for endian swap.
24944 (aarch64_expand_fcmla_builtin): Correct subreg code.
24945 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24946 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
24949 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
24951 * config/alpha/alpha.c (alpha_gimplify_va_arg):
24952 Handle split indirect COMPLEX_TYPE arguments.
24954 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
24957 * config/aarch64/aarch64-modes.def: Add comment about how the carry
24958 bit is set by add and compare.
24959 (CC_ADC): New CC_MODE.
24960 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
24961 to cache the code and mode of X. Adjust the shape of a CC_Cmode
24962 comparison. Add detection for CC_ADCmode.
24963 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
24965 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
24966 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
24967 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
24968 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
24969 to eliminate the need for zero-extending the operands.
24970 (add<mode>3_compareC_imm): Delete. Merge into ...
24971 (add<mode>3_compareC): ... this. Restructure the comparison to
24972 eliminate the need for zero-extending the operands.
24973 (add<mode>3_carryin): Use LTU for the overflow detection.
24974 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
24975 Reexpress comparison for overflow.
24976 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
24977 (add<mode>3_carryinC): Likewise.
24978 (add<mode>3_carryinV): Use LTU for carry between partials.
24979 * config/aarch64/predicates.md (aarch64_carry_operation): Update
24980 handling of CC_Cmode and add CC_ADCmode.
24981 (aarch64_borrow_operation): Likewise.
24983 2019-01-16 Tamar Christina <tamar.christina@arm.com>
24985 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
24986 Remove patternmode.
24987 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
24988 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
24989 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
24990 Remove endianness conversion.
24992 2019-01-16 Martin Liska <mliska@suse.cz>
24994 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
24996 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
24998 * gcc.c (add_sysrooted_hdrs_prefix): New function.
24999 (path_prefix_reset): Move up in the source file.
25000 (find_fortran_preinclude_file): Make complex search for the
25001 fortran header files.
25003 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25005 * godump.c (go_output_typedef): When outputting a typedef, refer
25006 to the underlying type by its name and not its structure.
25008 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25011 * tree.c (build_function_type): Assert that arg_types is not
25014 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25016 PR inline-asm/52813
25017 * doc/extend.texi: Document that listing the stack pointer in the
25018 clobber list of an asm is a deprecated feature.
25019 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25020 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25021 warning instead of an error for clobbers of the stack pointer.
25022 Add a note explaining why.
25024 2019-01-15 Richard Biener <rguenther@suse.de>
25027 * dwarf2out.c (gen_member_die): Do not generate inheritance
25030 2019-01-15 Richard Biener <rguenther@suse.de>
25032 PR tree-optimization/88855
25033 * tree-if-conv.c (combine_blocks): Collect
25034 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25036 2019-01-15 Tom de Vries <tdevries@suse.de>
25039 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25040 lhs == NULL_TREE for gang-level reduction.
25042 2019-01-15 Richard Biener <rguenther@suse.de>
25043 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25046 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25047 return true if SSA_NAME is already marked in visited bitmap.
25048 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25050 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25052 PR tree-optimization/88775
25053 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25054 equal == 0 equality pointer comparisons some more if compared in
25055 integral types and either one points to an automatic var and the
25056 other to a global, or we can prove at least one points to the middle
25057 or both point to start or both point to end.
25059 2019-01-14 Andi Kleen <ak@linux.intel.com>
25061 * Makefile.in: Lower autofdo sampling rate by 10x.
25062 * Makefile.tpl: Dito.
25064 2019-01-14 Tom Honermann <tom@honermann.net>
25066 * defaults.h: Define CHAR8_TYPE.
25068 2019-01-14 Martin Sebor <msebor@redhat.com>
25071 * doc/extend.texi (Darwin Format Checks): Clarify.
25073 2019-01-14 Richard Biener <rguenther@suse.de>
25075 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25076 whether we are in (simplify ...) or (match ...) context.
25078 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25080 PR rtl-optimization/88796
25081 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25082 * cfgexpand.c (stack_protect_prologue): Initialize
25083 crtl->stack_protect_guard_decl.
25084 * function.c (stack_protect_epilogue): Use it instead of calling
25085 targetm.stack_protect_guard again.
25086 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25087 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25088 crtl->stack_protect_guard_decl.
25089 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25090 on the returned MEM_EXPR.
25092 2019-01-12 Tom de Vries <tdevries@suse.de>
25094 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25095 vector length using -fopenacc-dim.
25097 2019-01-12 Tom de Vries <tdevries@suse.de>
25099 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25100 lengths into account.
25102 2019-01-12 Svante Signell <svante.signell@gmail.com>
25104 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25105 (TARGET_CAN_SPLIT_STACK): Define.
25106 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25108 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25110 * params.def (inline-unit-growth): Set to 40.
25112 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25114 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25116 2019-01-12 Tom de Vries <tdevries@suse.de>
25118 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25119 region calling vector-partitionable routine, set default_vector_length
25122 2019-01-12 Tom de Vries <tdevries@suse.de>
25124 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25125 variable default_vector_length.
25127 2019-01-12 Tom de Vries <tdevries@suse.de>
25129 PR middle-end/88703
25130 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25131 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25134 2019-01-12 Tom de Vries <tdevries@suse.de>
25136 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25137 (nvptx_goacc_validate_dims): Add used parameter.
25138 * doc/tm.texi: Regenerate.
25139 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25140 argument to call to targetm.goacc.validate_dims.
25141 (default_goacc_validate_dims): Add used
25143 * target.def (validate_dims): Add used parameter in DEFHOOK.
25144 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25146 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25148 PR middle-end/85956
25150 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25152 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25153 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25154 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25155 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25157 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25159 PR rtl-optimization/87305
25161 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25162 for little endian pseudos used as paradoxical subreg.
25164 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25166 PR tree-optimization/88693
25167 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25168 for STRING_CSTs that don't contain any NUL characters in the first
25169 TREE_STRING_LENGTH bytes.
25171 2019-01-11 Alan Modra <amodra@gmail.com>
25175 * genattrtab.c (min_fn): Don't translate values.
25176 (min_attr_value): Return INT_MAX when the value can't be calculated.
25177 Return minimum among any values that can be calculated.
25178 (max_attr_value): Adjust.
25180 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25182 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25184 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25186 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25187 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25188 (aarch64_return_call_with_max_clobbers): New function.
25189 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25190 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25192 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25193 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25194 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25195 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25196 * cselib.c (cselib_process_insn): Add argument to
25197 targetm.hard_regno_call_part_clobbered call.
25198 * ira-conflicts.c (ira_build_conflicts): Ditto.
25199 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25200 * lra-constraints.c (inherit_reload_reg): Ditto.
25201 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25202 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25203 argument. Call targetm.return_call_with_max_clobbers.
25204 Add argument to targetm.hard_regno_call_part_clobbered call.
25205 (calls_have_same_clobbers_p): New function.
25206 (process_bb_lives): Add call_insn and last_call_insn variables.
25207 Pass call_insn to check_pseudos_live_through_calls.
25208 Modify if stmt to check targetm.return_call_with_max_clobbers.
25209 Update setting of flush variable.
25210 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25212 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25213 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25214 targetm.hard_regno_call_part_clobbered call.
25215 * reginfo.c (choose_hard_reg_mode): Ditto.
25216 * regrename.c (check_new_reg_p): Ditto.
25217 * reload.c (find_equiv_reg): Ditto.
25218 * reload1.c (emit_reload_insns): Ditto.
25219 * sched-deps.c (deps_analyze_insn): Ditto.
25220 * sel-sched.c (init_regs_for_mode): Ditto.
25221 (mark_unavailable_hard_regs): Ditto.
25222 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25223 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25224 (return_call_with_max_clobbers): New target function.
25225 * doc/tm.texi: Regenerate.
25226 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25227 * hooks.c (hook_bool_uint_mode_false): Change to
25228 hook_bool_insn_uint_mode_false.
25229 * hooks.h (hook_bool_uint_mode_false): Ditto.
25231 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25233 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25234 (aarch64_remove_extra_call_preserved_regs): New function.
25235 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25236 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25237 * doc/tm.texi: Regenerate.
25238 * final.c (get_call_reg_set_usage): Call new hook.
25239 * target.def (remove_extra_call_preserved_regs): New hook.
25240 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25241 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25243 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25246 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25247 inside of pass_combine_1 dump rather than pass_profile_1.
25249 2019-01-11 Tom de Vries <tdevries@suse.de>
25251 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25252 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25253 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25254 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25257 2019-01-11 Tom de Vries <tdevries@suse.de>
25259 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25261 2019-01-11 Jan Beulich <jbeulich@suse.com>
25263 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25264 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25265 sse2_cvtsi2sd): Add {l}.
25266 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25269 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25272 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25274 (*float<floatunssuffix>v2div2sf2): New define_insn.
25275 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25276 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25277 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25278 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25279 match_operands with "const0_operand" "C".
25281 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25283 * config/aarch64/aarch64-builtins.c
25284 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25285 (aarch64_init_simd_builtins): ...Here
25287 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25289 PR rtl-optimization/87305
25291 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25292 allocation for big endian pseudos used as paradoxical subregs and
25293 spill them if it is wrong.
25294 * lra-constraints.c (lra_constraints): Add a comment.
25296 2019-01-10 Richard Biener <rguenther@suse.de>
25298 PR tree-optimization/88792
25299 * tree-ssa-pre.c (get_representative_for): Do not return a
25302 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25304 PR middle-end/84877
25306 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25307 (assign_parm_setup_block): Do the argument slot realignment here
25310 2019-01-10 Stefan Agner <stefan@agner.ch>
25313 * config/arm/arm.c (arm_option_override_internal): Force
25314 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25316 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25319 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25322 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25324 * config/arm/arm-builtins.c
25325 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25326 (MAC_LANE_PAIR_QUALIFIERS): New.
25327 (arm_expand_builtin_args): Use it.
25328 (arm_expand_builtin_1): Likewise.
25329 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25330 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25331 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25332 * config/arm/arm_neon.h:
25333 (vcadd_rot90_f16): New.
25334 (vcaddq_rot90_f16): New.
25335 (vcadd_rot270_f16): New.
25336 (vcaddq_rot270_f16): New.
25339 (vcmla_lane_f16): New.
25340 (vcmla_laneq_f16): New.
25341 (vcmlaq_lane_f16): New.
25342 (vcmlaq_laneq_f16): New.
25343 (vcmla_rot90_f16): New.
25344 (vcmlaq_rot90_f16): New.
25345 (vcmla_rot90_lane_f16): New.
25346 (vcmla_rot90_laneq_f16): New.
25347 (vcmlaq_rot90_lane_f16): New.
25348 (vcmlaq_rot90_laneq_f16): New.
25349 (vcmla_rot180_f16): New.
25350 (vcmlaq_rot180_f16): New.
25351 (vcmla_rot180_lane_f16): New.
25352 (vcmla_rot180_laneq_f16): New.
25353 (vcmlaq_rot180_lane_f16): New.
25354 (vcmlaq_rot180_laneq_f16): New.
25355 (vcmla_rot270_f16): New.
25356 (vcmlaq_rot270_f16): New.
25357 (vcmla_rot270_lane_f16): New.
25358 (vcmla_rot270_laneq_f16): New.
25359 (vcmlaq_rot270_lane_f16): New.
25360 (vcmlaq_rot270_laneq_f16): New.
25361 (vcadd_rot90_f32): New.
25362 (vcaddq_rot90_f32): New.
25363 (vcadd_rot270_f32): New.
25364 (vcaddq_rot270_f32): New.
25367 (vcmla_lane_f32): New.
25368 (vcmla_laneq_f32): New.
25369 (vcmlaq_lane_f32): New.
25370 (vcmlaq_laneq_f32): New.
25371 (vcmla_rot90_f32): New.
25372 (vcmlaq_rot90_f32): New.
25373 (vcmla_rot90_lane_f32): New.
25374 (vcmla_rot90_laneq_f32): New.
25375 (vcmlaq_rot90_lane_f32): New.
25376 (vcmlaq_rot90_laneq_f32): New.
25377 (vcmla_rot180_f32): New.
25378 (vcmlaq_rot180_f32): New.
25379 (vcmla_rot180_lane_f32): New.
25380 (vcmla_rot180_laneq_f32): New.
25381 (vcmlaq_rot180_lane_f32): New.
25382 (vcmlaq_rot180_laneq_f32): New.
25383 (vcmla_rot270_f32): New.
25384 (vcmlaq_rot270_f32): New.
25385 (vcmla_rot270_lane_f32): New.
25386 (vcmla_rot270_laneq_f32): New.
25387 (vcmlaq_rot270_lane_f32): New.
25388 (vcmlaq_rot270_laneq_f32): New.
25389 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25390 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25391 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25392 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25393 vcmlaq_lane270): New.
25394 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25395 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25396 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25397 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25398 (arm_option_reconfigure_globals): Use them.
25399 * config/arm/iterators.md (VDF, VQ_HSF): New.
25400 (VCADD, VCMLA): New.
25401 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25402 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25404 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25405 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25407 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25409 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25410 Add qualifier_lane_pair_index.
25411 (emit-rtl.h): Include.
25412 (TYPES_QUADOP_LANE_PAIR): New.
25413 (aarch64_simd_expand_args): Use it.
25414 (aarch64_simd_expand_builtin): Likewise.
25415 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25417 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25418 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25419 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25420 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25421 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25422 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25423 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25424 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25425 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25426 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25427 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25428 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25429 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25430 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25431 Add __ARM_FEATURE_COMPLEX.
25432 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25433 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25434 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25435 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25436 fcmlaq_lane270): New.
25437 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25438 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25439 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25440 * config/aarch64/arm_neon.h:
25441 (vcadd_rot90_f16): New.
25442 (vcaddq_rot90_f16): New.
25443 (vcadd_rot270_f16): New.
25444 (vcaddq_rot270_f16): New.
25447 (vcmla_lane_f16): New.
25448 (vcmla_laneq_f16): New.
25449 (vcmlaq_lane_f16): New.
25450 (vcmlaq_rot90_lane_f16): New.
25451 (vcmla_rot90_laneq_f16): New.
25452 (vcmla_rot90_lane_f16): New.
25453 (vcmlaq_rot90_f16): New.
25454 (vcmla_rot90_f16): New.
25455 (vcmlaq_laneq_f16): New.
25456 (vcmla_rot180_laneq_f16): New.
25457 (vcmla_rot180_lane_f16): New.
25458 (vcmlaq_rot180_f16): New.
25459 (vcmla_rot180_f16): New.
25460 (vcmlaq_rot90_laneq_f16): New.
25461 (vcmlaq_rot270_laneq_f16): New.
25462 (vcmlaq_rot270_lane_f16): New.
25463 (vcmla_rot270_laneq_f16): New.
25464 (vcmlaq_rot270_f16): New.
25465 (vcmla_rot270_f16): New.
25466 (vcmlaq_rot180_laneq_f16): New.
25467 (vcmlaq_rot180_lane_f16): New.
25468 (vcmla_rot270_lane_f16): New.
25469 (vcadd_rot90_f32): New.
25470 (vcaddq_rot90_f32): New.
25471 (vcaddq_rot90_f64): New.
25472 (vcadd_rot270_f32): New.
25473 (vcaddq_rot270_f32): New.
25474 (vcaddq_rot270_f64): New.
25478 (vcmla_lane_f32): New.
25479 (vcmla_laneq_f32): New.
25480 (vcmlaq_lane_f32): New.
25481 (vcmlaq_laneq_f32): New.
25482 (vcmla_rot90_f32): New.
25483 (vcmlaq_rot90_f32): New.
25484 (vcmlaq_rot90_f64): New.
25485 (vcmla_rot90_lane_f32): New.
25486 (vcmla_rot90_laneq_f32): New.
25487 (vcmlaq_rot90_lane_f32): New.
25488 (vcmlaq_rot90_laneq_f32): New.
25489 (vcmla_rot180_f32): New.
25490 (vcmlaq_rot180_f32): New.
25491 (vcmlaq_rot180_f64): New.
25492 (vcmla_rot180_lane_f32): New.
25493 (vcmla_rot180_laneq_f32): New.
25494 (vcmlaq_rot180_lane_f32): New.
25495 (vcmlaq_rot180_laneq_f32): New.
25496 (vcmla_rot270_f32): New.
25497 (vcmlaq_rot270_f32): New.
25498 (vcmlaq_rot270_f64): New.
25499 (vcmla_rot270_lane_f32): New.
25500 (vcmla_rot270_laneq_f32): New.
25501 (vcmlaq_rot270_lane_f32): New.
25502 (vcmlaq_rot270_laneq_f32): New.
25503 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25504 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25505 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25506 (FCADD, FCMLA): New.
25508 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25510 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25514 * config/pa/pa.c: Change "can not" to "cannot".
25515 * gimple-ssa-evrp-analyze.c: Likewise.
25516 * ipa-icf.c: Likewise.
25517 * ipa-polymorphic-call.c: Likewise.
25518 * ipa-pure-const.c: Likewise.
25519 * lra-constraints.c: Likewise.
25520 * lra-remat.c: Likewise.
25521 * reload1.c: Likewise.
25522 * reorg.c: Likewise.
25523 * tree-ssa-uninit.c: Likewise.
25525 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25529 * Makefile.in: Mechanically replace "can not" with "cannot".
25530 * alias.c: Likewise.
25531 * builtins.c: Likewise.
25532 * calls.c: Likewise.
25533 * cgraph.c: Likewise.
25534 * cgraph.h: Likewise.
25535 * cgraphclones.c: Likewise.
25536 * cgraphunit.c: Likewise.
25537 * combine-stack-adj.c: Likewise.
25538 * combine.c: Likewise.
25539 * common/config/i386/i386-common.c: Likewise.
25540 * config/aarch64/aarch64.c: Likewise.
25541 * config/alpha/sync.md: Likewise.
25542 * config/arc/arc.c: Likewise.
25543 * config/arc/predicates.md: Likewise.
25544 * config/arm/arm-c.c: Likewise.
25545 * config/arm/arm.c: Likewise.
25546 * config/arm/arm.h: Likewise.
25547 * config/arm/arm.md: Likewise.
25548 * config/arm/cortex-r4f.md: Likewise.
25549 * config/csky/csky.c: Likewise.
25550 * config/csky/csky.h: Likewise.
25551 * config/darwin-f.c: Likewise.
25552 * config/epiphany/epiphany.md: Likewise.
25553 * config/i386/i386.c: Likewise.
25554 * config/i386/sol2.h: Likewise.
25555 * config/m68k/m68k.c: Likewise.
25556 * config/mcore/mcore.h: Likewise.
25557 * config/microblaze/microblaze.md: Likewise.
25558 * config/mips/20kc.md: Likewise.
25559 * config/mips/sb1.md: Likewise.
25560 * config/nds32/nds32.c: Likewise.
25561 * config/nds32/predicates.md: Likewise.
25562 * config/pa/pa.c: Likewise.
25563 * config/rs6000/e300c2c3.md: Likewise.
25564 * config/rs6000/rs6000.c: Likewise.
25565 * config/s390/s390.h: Likewise.
25566 * config/sh/sh.c: Likewise.
25567 * config/sh/sh.md: Likewise.
25568 * config/spu/vmx2spu.h: Likewise.
25569 * cprop.c: Likewise.
25570 * dbxout.c: Likewise.
25571 * df-scan.c: Likewise.
25572 * doc/cfg.texi: Likewise.
25573 * doc/extend.texi: Likewise.
25574 * doc/fragments.texi: Likewise.
25575 * doc/gty.texi: Likewise.
25576 * doc/invoke.texi: Likewise.
25577 * doc/lto.texi: Likewise.
25578 * doc/md.texi: Likewise.
25579 * doc/objc.texi: Likewise.
25580 * doc/rtl.texi: Likewise.
25581 * doc/tm.texi: Likewise.
25583 * emit-rtl.c: Likewise.
25584 * emit-rtl.h: Likewise.
25585 * except.c: Likewise.
25586 * expmed.c: Likewise.
25587 * expr.c: Likewise.
25588 * fold-const.c: Likewise.
25589 * genautomata.c: Likewise.
25590 * gimple-fold.c: Likewise.
25591 * hard-reg-set.h: Likewise.
25592 * ifcvt.c: Likewise.
25593 * ipa-comdats.c: Likewise.
25594 * ipa-cp.c: Likewise.
25595 * ipa-devirt.c: Likewise.
25596 * ipa-fnsummary.c: Likewise.
25597 * ipa-icf.c: Likewise.
25598 * ipa-inline-transform.c: Likewise.
25599 * ipa-inline.c: Likewise.
25600 * ipa-polymorphic-call.c: Likewise.
25601 * ipa-profile.c: Likewise.
25602 * ipa-prop.c: Likewise.
25603 * ipa-pure-const.c: Likewise.
25604 * ipa-reference.c: Likewise.
25605 * ipa-split.c: Likewise.
25606 * ipa-visibility.c: Likewise.
25608 * ira-build.c: Likewise.
25609 * ira-color.c: Likewise.
25610 * ira-conflicts.c: Likewise.
25611 * ira-costs.c: Likewise.
25612 * ira-int.h: Likewise.
25613 * ira-lives.c: Likewise.
25616 * loop-invariant.c: Likewise.
25617 * loop-unroll.c: Likewise.
25618 * lower-subreg.c: Likewise.
25619 * lra-assigns.c: Likewise.
25620 * lra-constraints.c: Likewise.
25621 * lra-eliminations.c: Likewise.
25622 * lra-lives.c: Likewise.
25623 * lra-remat.c: Likewise.
25624 * lra-spills.c: Likewise.
25626 * lto-cgraph.c: Likewise.
25627 * lto-streamer-out.c: Likewise.
25628 * postreload-gcse.c: Likewise.
25629 * predict.c: Likewise.
25630 * profile-count.h: Likewise.
25631 * profile.c: Likewise.
25632 * recog.c: Likewise.
25634 * reload.c: Likewise.
25635 * reload1.c: Likewise.
25636 * reorg.c: Likewise.
25637 * resource.c: Likewise.
25638 * rtl.def: Likewise.
25640 * rtlanal.c: Likewise.
25641 * sched-deps.c: Likewise.
25642 * sched-ebb.c: Likewise.
25643 * sched-rgn.c: Likewise.
25644 * sel-sched-ir.c: Likewise.
25645 * sel-sched.c: Likewise.
25646 * shrink-wrap.c: Likewise.
25647 * simplify-rtx.c: Likewise.
25648 * symtab.c: Likewise.
25649 * target.def: Likewise.
25650 * toplev.c: Likewise.
25651 * tree-call-cdce.c: Likewise.
25652 * tree-cfg.c: Likewise.
25653 * tree-complex.c: Likewise.
25654 * tree-core.h: Likewise.
25655 * tree-eh.c: Likewise.
25656 * tree-inline.c: Likewise.
25657 * tree-loop-distribution.c: Likewise.
25658 * tree-nrv.c: Likewise.
25659 * tree-profile.c: Likewise.
25660 * tree-sra.c: Likewise.
25661 * tree-ssa-alias.c: Likewise.
25662 * tree-ssa-dce.c: Likewise.
25663 * tree-ssa-dom.c: Likewise.
25664 * tree-ssa-forwprop.c: Likewise.
25665 * tree-ssa-loop-im.c: Likewise.
25666 * tree-ssa-loop-ivcanon.c: Likewise.
25667 * tree-ssa-loop-ivopts.c: Likewise.
25668 * tree-ssa-loop-niter.c: Likewise.
25669 * tree-ssa-phionlycprop.c: Likewise.
25670 * tree-ssa-phiopt.c: Likewise.
25671 * tree-ssa-propagate.c: Likewise.
25672 * tree-ssa-threadedge.c: Likewise.
25673 * tree-ssa-threadupdate.c: Likewise.
25674 * tree-ssa-uninit.c: Likewise.
25675 * tree-ssanames.c: Likewise.
25676 * tree-streamer-out.c: Likewise.
25677 * tree.c: Likewise.
25678 * tree.h: Likewise.
25679 * vr-values.c: Likewise.
25681 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25683 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25684 (ix86_split_xorsign): Ditto.
25685 * config/i386/i386.c (ix86_expand_xorsign): New function.
25686 (ix86_split_xorsign): Ditto.
25687 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25688 (xorsign<mode>3): New expander.
25689 (xorsign<mode>3_1): New insn_and_split pattern.
25690 * config/i386/sse.md (xorsign<mode>3): New expander.
25692 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25694 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25695 (*tablejump_sp64): Likewise.
25696 (*tablejump<P:mode>): ...this.
25697 (*call_address_sp32): Merge into...
25698 (*call_address_sp64): Likewise.
25699 (*call_address<P:mode>): ...this.
25700 (*call_symbolic_sp32): Merge into...
25701 (*call_symbolic_sp64): Likewise.
25702 (*call_symbolic<P:mode>): ...this.
25703 (call_value): Remove constraint and add predicate.
25704 (*call_value_address_sp32): Merge into...
25705 (*call_value_address_sp64): Likewise.
25706 (*call_value_address<P:mode>): ...this.
25707 (*call_value_symbolic_sp32): Merge into...
25708 (*call_value_symbolic_sp64): Likewise.
25709 (*call_value_symbolic<P:mode>): ...this.
25710 (*sibcall_symbolic_sp32): Merge into...
25711 (*sibcall_symbolic_sp64): Likewise.
25712 (*sibcall_symbolic<P:mode>): ...this.
25713 (sibcall_value): Remove constraint and add predicate.
25714 (*sibcall_value_symbolic_sp32): Merge into...
25715 (*sibcall_value_symbolic_sp64): Likewise.
25716 (*sibcall_value_symbolic<P:mode>): ...this.
25717 (window_save): Minor tweak.
25718 (*branch_sp32): Merge into...
25719 (*branch_sp64): Likewise.
25720 (*branch<P:mode>): ...this.
25722 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25723 James Clarke <jrtc27@jrtc27.com>
25726 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25727 consistently in TLS address generation and adjust code to the renaming
25728 of patterns. Mark calls to __tls_get_addr as const.
25729 * config/sparc/sparc.md (tgd_hi22): Turn into...
25730 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25731 (tgd_lo10): Turn into...
25732 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25733 (tgd_add32): Merge into...
25734 (tgd_add64): Likewise.
25735 (tgd_add<P:mode>): ...this and use Pmode throughout.
25736 (tldm_hi22): Turn into...
25737 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25738 (tldm_lo10): Turn into...
25739 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25740 (tldm_add32): Merge into...
25741 (tldm_add64): Likewise.
25742 (tldm_add<P:mode>): ...this and use Pmode throughout.
25743 (tldm_call32): Merge into...
25744 (tldm_call64): Likewise.
25745 (tldm_call<P:mode>): ...this and use Pmode throughout.
25746 (tldo_hix22): Turn into...
25747 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25748 (tldo_lox10): Turn into...
25749 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25750 (tldo_add32): Merge into...
25751 (tldo_add64): Likewise.
25752 (tldo_add<P:mode>): ...this and use Pmode throughout.
25753 (tie_hi22): Turn into...
25754 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25755 (tie_lo10): Turn into...
25756 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25757 (tie_ld64): Use DImode throughout.
25758 (tie_add32): Merge into...
25759 (tie_add64): Likewise.
25760 (tie_add<P:mode>): ...this and use Pmode throughout.
25761 (tle_hix22_sp32): Merge into...
25762 (tle_hix22_sp64): Likewise.
25763 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25764 (tle_lox22_sp32): Merge into...
25765 (tle_lox22_sp64): Likewise.
25766 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25767 (*tldo_ldub_sp32): Merge into...
25768 (*tldo_ldub_sp64): Likewise.
25769 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25770 (*tldo_ldub1_sp32): Merge into...
25771 (*tldo_ldub1_sp64): Likewise.
25772 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25773 (*tldo_ldub2_sp32): Merge into...
25774 (*tldo_ldub2_sp64): Likewise.
25775 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25776 (*tldo_ldsb1_sp32): Merge into...
25777 (*tldo_ldsb1_sp64): Likewise.
25778 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25779 (*tldo_ldsb2_sp32): Merge into...
25780 (*tldo_ldsb2_sp64): Likewise.
25781 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25782 (*tldo_ldub3_sp64): Use DImode throughout.
25783 (*tldo_ldsb3_sp64): Likewise.
25784 (*tldo_lduh_sp32): Merge into...
25785 (*tldo_lduh_sp64): Likewise.
25786 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25787 (*tldo_lduh1_sp32): Merge into...
25788 (*tldo_lduh1_sp64): Likewise.
25789 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25790 (*tldo_ldsh1_sp32): Merge into...
25791 (*tldo_ldsh1_sp64): Likewise.
25792 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25793 (*tldo_lduh2_sp64): Use DImode throughout.
25794 (*tldo_ldsh2_sp64): Likewise.
25795 (*tldo_lduw_sp32): Merge into...
25796 (*tldo_lduw_sp64): Likewise.
25797 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25798 (*tldo_lduw1_sp64): Use DImode throughout.
25799 (*tldo_ldsw1_sp64): Likewise.
25800 (*tldo_ldx_sp64): Likewise.
25801 (*tldo_stb_sp32): Merge into...
25802 (*tldo_stb_sp64): Likewise.
25803 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25804 (*tldo_sth_sp32): Merge into...
25805 (*tldo_sth_sp64): Likewise.
25806 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25807 (*tldo_stw_sp32): Merge into...
25808 (*tldo_stw_sp64): Likewise.
25809 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25810 (*tldo_stx_sp64): Use DImode throughout.
25812 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25814 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25815 check configure option to set BTI and Return Address Signing.
25816 * configure.ac: Add --enable-standard-branch-protection and
25817 --disable-standard-branch-protection.
25818 * configure: Regenerated.
25819 * doc/install.texi: Document the same.
25821 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25822 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25824 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25825 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25826 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25828 * config/aarch64/aarch64-bti-insert.c: New file.
25829 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25831 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25833 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25834 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25835 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25836 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25838 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25840 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25841 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25842 Disable bti for -mbranch-protection=none.
25843 (aarch64_handle_standard_branch_protection): Enable bti for
25844 -mbranch-protection=standard.
25845 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25846 -mbranch-protection.
25847 (aarch64_bti_enabled): Check if bti is enabled.
25848 * config/aarch64/aarch64.opt: Declare target variable.
25849 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25851 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25853 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
25854 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
25855 (aarch64_expand_epilogue): Likewise.
25856 (aarch64_output_mi_thunk): Likewise.
25857 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
25858 TAILCALL_ADDR_REGS to x16 and x17.
25859 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
25861 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25863 * config/aarch64/aarch64-option-extensions.def: Define
25864 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
25865 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
25866 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
25867 (AARCH64_FL_PREDRES): New.
25868 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
25869 AARCH64_FL_PREDRES by default.
25870 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
25872 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25874 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
25876 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
25877 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
25878 * doc/invoke.texi: Document ARMv8.5-A.
25880 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25882 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
25883 (xorsign<mode>3): Likewise.
25885 2019-01-09 Jelinek <jakub@redhat.com>
25887 PR middle-end/88758
25888 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
25889 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
25891 PR rtl-optimization/88331
25892 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
25893 not currently_expanding_to_rtl.
25895 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25897 * doc/invoke.texi (-Os): Remove trailing spaces.
25898 (-finline-functions): Remove reference to -O2.
25900 2019-01-08 Jakub Jelinek <jakub@redhat.com>
25902 PR rtl-optimization/79593
25903 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
25905 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
25906 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
25908 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
25911 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
25915 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
25916 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
25918 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
25921 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
25922 ix86_avx_u128_mode_entry.
25924 2019-01-08 Martin Liska <mliska@suse.cz>
25926 PR tree-optimization/88753
25927 * tree-switch-conversion.c (switch_conversion::build_one_array):
25928 Come up with local variable constructor. Convert first to
25929 type of constructor values.
25931 2019-01-08 Richard Biener <rguenther@suse.de>
25933 PR tree-optimization/86554
25934 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
25935 rpo_avail): Move earlier.
25936 (visit_nary_op): When value-numbering to expressions
25937 with different overflow behavior make sure there's an
25938 available expression on the path.
25940 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
25942 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
25943 aarch64_parse_branch_protection,
25944 struct aarch64_branch_protect_type,
25945 aarch64_handle_no_branch_protection,
25946 aarch64_handle_standard_branch_protection,
25947 aarch64_validate_mbranch_protection,
25948 aarch64_handle_pac_ret_protection,
25949 aarch64_handle_attr_branch_protection,
25950 accepted_branch_protection_string,
25951 aarch64_pac_ret_subtypes,
25952 aarch64_branch_protect_types,
25953 aarch64_handle_pac_ret_leaf): Define.
25954 (aarch64_override_options_after_change_1, aarch64_override_options):
25955 Add check for accepted_branch_protection_string.
25956 (aarch64_option_save): Save accepted_branch_protection_string.
25957 (aarch64_option_restore): Save accepted_branch_protection_string.
25958 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
25959 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
25960 msign-return-address.
25961 * doc/invoke.texi: Add mbranch-protection.
25963 2019-01-08 Alan Modra <amodra@gmail.com>
25966 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
25967 Delete "unknownp" parameter. Adjust callers. Handle
25968 CONST_INT, PLUS, MINUS, and MULT.
25969 (attr_value_aligned): Renamed from or_attr_value.
25970 (min_attr_value): Return INT_MIN for unhandled rtl case..
25971 (min_fn): ..and translate to INT_MAX here.
25972 (write_length_unit_log): Modify to cope without "unknown".
25973 (write_attr_value): Handle IF_THEN_ELSE.
25975 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25977 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
25978 optimization for masked stores.
25980 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25982 PR middle-end/88567
25983 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
25984 output vector directly to duplicate_and_interleave instead of
25985 going through a temporary. Postpone insertion of ctor_seq to
25986 the end of the loop.
25988 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
25991 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
25992 unsigned_p. Handle signed and unsigned overflow correction as
25994 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
25996 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
25998 (add<mode>3_compareV_imm): Make this callable for expanding.
25999 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26000 aarch64_plus_operand for operand 2.
26001 (subv<GPI:mode>_insn): New insn pattern.
26002 (subv<GPI:mode>_imm): Likewise.
26003 (negv<GPI:mode>3): New expand pattern.
26004 (negv<GPI:mode>_insn): New insn pattern.
26005 (negv<GPI:mode>_cmp_only): Likewise.
26006 (cmpv<GPI:mode>_insn): Likewise.
26007 (subvti4): Use register_operand for operand 1. Update call to
26008 aarch64_expand_subvti.
26009 (usubvti4): Likewise.
26010 (negvti3): New expand pattern.
26011 (negdi_carryout): New insn pattern.
26012 (negvdi_carryinV): New insn pattern.
26013 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26014 version the named version.
26015 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26017 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26019 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26021 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26022 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26023 (sub<mode>3_carryinCV): Delete.
26024 (sub<GPI:mode>3_carryinV): New expand pattern.
26025 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26027 2019-01-07 Richard Biener <rguenther@suse.de>
26029 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26030 of tree_operand_hash.
26032 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26034 PR tree-optimization/88598
26035 * tree.h (single_nonzero_element): Declare.
26036 * tree.c (single_nonzero_element): New function.
26037 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26038 if I is the only nonzero element of CST.
26040 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26042 PR tree-optimization/88598
26043 * tree.h (initializer_each_zero_or_onep): Declare.
26044 * tree.c (initializer_each_zero_or_onep): New function.
26045 (signed_or_unsigned_type_for): Handle float types too.
26046 (unsigned_type_for, signed_type_for): Update comments accordingly.
26047 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26048 x & { 0 or -1, 0 or -1, ... }.
26050 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26052 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26053 with x86_64-pc-linux-gnu.
26055 2019-01-07 Tom de Vries <tdevries@suse.de>
26058 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26060 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26063 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26065 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26066 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26067 TARGET_AVX512F as condition.
26070 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26071 const_not_ok_for_debug_p target hook.
26072 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26073 on UNSPEC and subexpressions thereof if all subexpressions of the
26074 UNSPEC are CONSTANT_P.
26076 PR tree-optimization/88676
26077 * tree-ssa-phiopt.c (two_value_replacement): New function.
26078 (tree_ssa_phiopt_worker): Call it.
26081 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26082 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26085 * tree-vect-generic.c: Include insn-config.h and recog.h.
26086 (expand_vector_piecewise): Add defaulted ret_type argument,
26087 if non-NULL, use that in preference to type for the result type.
26088 (expand_vector_parallel): Formatting fix.
26089 (do_vec_conversion, do_vec_narrowing_conversion,
26090 expand_vector_conversion): New functions.
26091 (expand_vector_operations_1): Call expand_vector_conversion
26092 for VEC_CONVERT ifn calls.
26093 * internal-fn.def (VEC_CONVERT): New internal function.
26094 * internal-fn.c (expand_VEC_CONVERT): New function.
26095 * fold-const-call.c (fold_const_vec_convert): New function.
26096 (fold_const_call): Use it for CFN_VEC_CONVERT.
26097 * doc/extend.texi (__builtin_convertvector): Document.
26099 2019-01-07 Tom de Vries <tdevries@suse.de>
26101 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26102 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26103 vector_red_partition, vector_red_sym): New global variables.
26104 (nvptx_option_override): Initialize vector_red_sym.
26105 (nvptx_declare_function_name): Restore red_partition register.
26106 (nvptx_file_end): Emit code to declare the vector reduction variables.
26107 (nvptx_output_red_partition): New function.
26108 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26109 large vector reductions.
26110 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26111 (nvptx_init_builtins): Add VECTOR_ADDR.
26112 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26113 Handle nvptx_expand_shared_addr.
26114 (nvptx_get_shared_red_addr): Add vector argument and handle large
26116 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26118 (nvptx_goacc_reduction_init): Likewise.
26119 (nvptx_goacc_reduction_fini): Likewise.
26120 (nvptx_goacc_reduction_teardown): Likewise.
26121 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26122 init,fini,teardown}.
26123 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26124 (nvptx_set_current_function): Init vector_red_partition.
26125 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26126 (nvptx_red_partition): New insn.
26127 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26129 2019-01-07 Tom de Vries <tdevries@suse.de>
26132 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26135 2019-01-07 Tom de Vries <tdevries@suse.de>
26137 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26138 (nvptx_option_override): Init oacc_bcast_partition.
26139 (nvptx_init_oacc_workers): New function.
26140 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26141 (nvptx_needs_shared_bcast): New function.
26142 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26143 to propagate state.
26144 (nvptx_shared_propagate): Initialize vector bcast partition and
26145 synchronization state.
26146 (nvptx_single): Generalize to enable vectors to use shared-memory
26147 to propagate state.
26148 (nvptx_process_pars): Likewise.
26149 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26150 * config/nvptx/nvptx.h (struct machine_function): Add
26151 bcast_partition and sync_bar members.
26153 2019-01-07 Tom de Vries <tdevries@suse.de>
26155 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26156 (nvptx_apply_dim_limits): New function.
26157 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26160 2019-01-07 Tom de Vries <tdevries@suse.de>
26162 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26163 as late as possible.
26165 2019-01-07 Tom de Vries <tdevries@suse.de>
26167 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26168 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26169 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26170 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26171 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26173 2019-01-07 Tom de Vries <tdevries@suse.de>
26175 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26177 2019-01-07 Tom de Vries <tdevries@suse.de>
26179 * omp-offload.c (oacc_get_min_dim): New function.
26180 * omp-offload.h (oacc_get_min_dim): Declare.
26182 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26185 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26186 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26188 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26192 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26194 * ipa-inline.c (edge_badness): Use inlined_time instead of
26195 inline_summaries->get.
26197 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26199 * opts.c (enable_fdo_optimizations): Enable
26200 version-loops-for-strides, loop-interchange, unrol-and-jam
26201 and tree-loop-distribution.
26202 * invoke.texi: Document newly enabled options.
26204 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26206 * doc/invoke.texi (max-inline-insns-small): New parameters.
26207 * ipa-inline.c (want_early_inline_function_p): simplify.
26208 (want_inline_small_function_p): Fix pasto from previous patch;
26209 use max-inline-insns-small bound.
26210 * params.def (max-inline-insns-small): New param.
26211 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26212 variables correctly.
26214 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26216 * doc/invoke.texi: Document max-inline-insns-size,
26217 uninlined-function-insns, uninlined-function-time,
26218 uninlined-thunk-insns and uninlined-thunk-time.
26219 * params.def: Add max-inline-insns-size,
26220 uninlined-function-insns, uninlined-function-time,
26221 uninlined-thunk-insns and uninlined-thunk-time.
26222 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26224 * ipa-inline.c (can_inline_edge_by_limits_p,
26225 want_inline_small_function_p): Use new parameters.
26227 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26229 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26231 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26233 PR middle-end/82564
26235 * expr.c (expand_assignment): For calls returning VLA structures
26236 if to_rtx is not a MEM, force it into a stack temporary.
26239 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26240 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26241 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26242 subexpressions of both operands.
26243 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26244 subrtxes are CONSTANT_P.
26245 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26246 2018-11-09 changes.
26248 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26250 * params.def (hot-bb-count-ws-permille): Set to 990.
26252 2019-01-04 Martin Sebor <msebor@redhat.com>
26255 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26258 2019-01-04 Martin Sebor <msebor@redhat.com>
26261 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26263 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26265 * gdbinit.in: Turn off pagination for the skip commands, restore
26266 it to previous state afterwards.
26268 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26271 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26272 of GET_MODE (opN) as modes of the libcall arguments.
26274 2019-01-04 Jan Beulich <jbeulich@suse.com>
26276 * config/i386/sse.md
26277 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26278 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26279 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26280 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26281 avx512f_vmcmp<mode>3<round_saeonly_name>,
26282 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26283 avx512f_maskcmp<mode>3,
26284 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26285 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26286 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26287 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26288 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26289 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26290 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26291 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26292 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26293 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26294 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26295 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26296 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26297 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26298 avx512cd_maskb_vec_dup<mode>,
26299 avx512cd_maskw_vec_dup<mode>,
26300 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26301 avx512dq_vmfpclass<mode>,
26302 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26305 2019-01-03 Martin Sebor <msebor@redhat.com>
26307 PR tree-optimization/88659
26308 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26310 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26312 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26313 unaligned vsx and avoid lxvd2x/stxvd2x.
26314 (gen_lvx_v4si_move): New function.
26316 2019-01-03 Tom de Vries <tdevries@suse.de>
26318 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26319 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26321 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26323 2019-01-03 Tom de Vries <tdevries@suse.de>
26325 * config/nvptx/nvptx.c (struct offload_attrs): New.
26326 (populate_offload_attrs): New function. Factor mask extraction out of
26327 nvptx_reorg. Add extraction of dimensions.
26328 (nvptx_reorg): Use populate_offload_attrs.
26330 2019-01-03 Tom de Vries <tdevries@suse.de>
26332 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26333 cases for oacc_min_dims_p and routine_p. Add asserts for
26334 oacc_default_dims_p and offload_region_p.
26336 2019-01-03 Tom de Vries <tdevries@suse.de>
26338 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26339 factored out of ...
26340 (nvptx_goacc_validate_dims): ... here.
26342 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26344 PR tree-optimization/85574
26345 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26347 (struct ssa_equip_hash_traits): Declare.
26348 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26350 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26353 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26354 change it to qualified_type.
26356 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26358 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26359 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26361 2019-01-02 Martin Sebor <msebor@redhat.com>
26362 Jeff Law <law@redhat.com>
26364 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26365 (get_range_strlen_tree): Update appropriately.
26367 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26369 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26370 rather than set_range_info.
26371 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26372 maybe_set_strlen_range. Handle potentially boundary crossing
26373 cases more conservatively.
26374 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26375 Call set_strlen_range.
26376 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26378 PR middle-end/88663
26379 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26380 need the flexp argument.
26381 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26382 from calls to get_range_strlen. Update comments. Just update
26383 VAL for an unterminated const char array and let the reset of the
26384 code handle it normally. No longer try to set *flexp. Adjust
26386 (get_range_strlen): Update for the new get_range_strlen API.
26387 (get_maxval_strlen): Similarly.
26388 (gimple_fold_builtin_strlen): Handle update meaning of return value
26389 from get_range_strlen.
26390 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26391 get_range_strlen API.
26393 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26396 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26397 false at WPA time when body was removed.
26399 2019-01-02 Martin Liska <mliska@suse.cz>
26401 PR tree-optimization/88650
26402 * predict.c (set_even_probabilities): Calculate probability
26403 remainer only when really used.
26405 2019-01-02 Richard Biener <rguenther@suse.de>
26407 PR middle-end/88651
26408 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26409 widest_ints when mangling max_stmt_execution results.
26411 2019-01-02 Richard Biener <rguenther@suse.de>
26413 PR tree-optimization/88621
26414 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26415 bitfields when canoncalizing.
26417 2019-01-02 Richard Biener <rguenther@suse.de>
26420 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26421 cost of cheap SSE instruction.
26423 2019-01-02 Richard Biener <rguenther@suse.de>
26426 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26427 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26429 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26430 set after UIDs before splitting them.
26432 2019-01-01 Martin Sebor <msebor@redhat.com>
26433 Jeff Law <law@redhat.com>
26435 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26436 length is optimistic. If it is, then arrange to compute the
26437 conservative length as well.
26439 * gimple-fold.h (get_range_strlen): Update prototype.
26440 * builtins.c (check_access): Update call to get_range_strlen to use
26441 c_strlen_data pointer. Change various variable accesses to instead
26442 pull data from the c_strlen_data structure.
26443 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26444 * calls.c (maybe_warn_nonstring_arg): Likewise.
26445 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26446 minimum length if maximum lengh is unknown.
26447 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26448 that used c_strlen, it's no longer needed. Restructure slightly.
26449 (format_string): Set unlikely range appropriately.
26450 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26452 (get_range_strlen): Accept c_strlen_data pointer for external
26453 call sites as well. Pass through to call to internal get_range_strlen.
26454 Adjust minlen, maxlen and maxbound as needed.
26455 (get_maxval_strlen): Update comments.
26456 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26457 to use c_strlen_data pointer. Change variable accesses to instead
26458 use c_strlen_data data members.
26460 * gimple-fold.c (get_range_strlen): Update prototype.
26461 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26462 local variables. Use pdata to return information to caller.
26463 Update calls to get_range_strlen. Update pdata->maxbound.
26464 (get_range_strlen -- static version): Similarly.
26465 (get_range_strlen -- extern version): Update for internal
26466 get_range_strlen API change. Convert to external data format.
26467 (get_maxval_strlen): Similarly.
26469 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26471 * coverage.c (get_coverage_counts): Use current_function_decl.
26472 * profile.c (read_thunk_profile): New function.
26473 (branch_prob): Add THUNK parameter.
26474 * tree-profile.c (tree_profiling): Handle thunks.
26475 * value-prof.c (init_node_map): Handle thunks.
26476 * value-prof.h (branch_prob): Upate prototype.
26477 (read_thunk_profile): Declare.
26479 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26481 Update copyright years.
26483 * gcc.c (process_command): Update copyright notice dates.
26484 * gcov-dump.c (print_version): Ditto.
26485 * gcov.c (print_version): Ditto.
26486 * gcov-tool.c (print_version): Ditto.
26487 * gengtype.c (create_file): Ditto.
26488 * doc/cpp.texi: Bump @copying's copyright year.
26489 * doc/cppinternals.texi: Ditto.
26490 * doc/gcc.texi: Ditto.
26491 * doc/gccint.texi: Ditto.
26492 * doc/gcov.texi: Ditto.
26493 * doc/install.texi: Ditto.
26494 * doc/invoke.texi: Ditto.
26496 Copyright (C) 2019 Free Software Foundation, Inc.
26498 Copying and distribution of this file, with or without modification,
26499 are permitted in any medium without royalty provided the copyright
26500 notice and this notice are preserved.