1 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
3 * config/darwin.c (machopic_indirect_data_reference): Remove
6 2019-10-13 Nathan Sidwell <nathan@acm.org>
8 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
10 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
15 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
17 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
18 so non-virutal are before virutals.
19 (output_function): Avoid body modifications.
21 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
23 * config/pa/pa.c (pa_output_call): Load descriptor address to register
24 %r22. Load function address before global pointer.
25 (pa_attr_length_indirect_call): Adjust length of inline versions of
27 (pa_output_indirect_call): Remove fast inline version of $$dyncall
28 before normal cases. Update inline $$dyncall sequences to preserve
29 function descriptor address in register %r22.
30 (TRAMPOLINE_CODE_SIZE): Adjust.
31 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
32 register %r22 contains trampoline address.
33 (pa_trampoline_init): Adjust offsets.
34 (pa_trampoline_adjust_address): Likewise.
35 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
37 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
40 * config/darwin.c (machopic_indirection): New field to flag
41 non-lazy-symbol-pointers in the data section.
42 (machopic_indirection_name): Compute if an indirection should
43 appear in the data section.
44 (machopic_output_data_section_indirection): New callback split
45 from machopic_output_indirection.
46 (machopic_output_stub_indirection): Likewise.
47 (machopic_output_indirection): Retain the code for non-lazy
48 symbol pointers in their regular section.
49 (machopic_finish): Use the new callbacks to order the indirection
52 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
54 * config/darwin-protos.h (machopic_finish): Delete.
55 * config/darwin.c (machopic_finish): Make static.
57 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
59 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
60 sections when building kernel extension code.
62 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
64 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
67 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
69 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
72 2019-10-12 Jakub Jelinek <jakub@redhat.com>
75 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
76 <case VEC_COND_EXPR>: Return false with *handled = false.
77 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
78 recursing on the first operand.
79 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
80 instead of tree_could_trap_p.
81 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
83 2019-10-11 Jim Wilson <jimw@sifive.com>
85 PR rtl-optimization/91860
86 * combine.c (subst): If new_rtx is a constant, also check for
87 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
89 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
91 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
92 INTVAL when calling store_bit_field.
94 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
96 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
99 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
101 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
102 vectorizable_live_operation.
103 (vectorizable_live_operation): Adjust parameters.
104 * tree-vect-stmts.c (vect_init_vector,
105 vect_gen_widened_results_half): Fix typo in function comment.
106 (can_vectorize_live_stmts): Adjust function comment.
107 Adjust parameters. Adjust call to vectorizable_live_operation.
108 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
109 (vect_transform_stmt): Adjust function comment. Adjust call to
110 can_vectorize_live_stmts.
111 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
113 2019-10-11 Richard Biener <rguenther@suse.de>
115 PR tree-optimization/90883
116 PR tree-optimization/91091
117 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
118 alias-sets both for recording VN table entries and continuing
119 walking after translating through copies. Handle same-sized
120 reads from SSA names by returning the plain SSA name.
121 (eliminate_dom_walker::eliminate_stmt): Properly handle
122 non-size precision stores in redundant store elimination.
124 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
126 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
127 (ggc_collect): Dump later to not interfere with release_page dump.
128 (ggc_trim): New function.
129 * ggc-none.c (ggc_trim): New.
130 * ggc.h (ggc_trim): Declare.
132 2019-10-11 Richard Biener <rguenther@suse.de>
134 PR tree-optimization/92066
135 PR tree-optimization/92046
136 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
137 Fix bogus cost model check.
139 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
141 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
142 (LANG_HOOKS_DECLS): Add it.
143 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
144 update comment for omp_is_optional_argument.
145 * omp-general.c (omp_is_allocatable_or_ptr): New.
146 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
147 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
148 Fortran's optional arguments and allocatable/pointer scalars
149 with use_device_addr.
151 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
154 * config/s390/2827.md: Add new opcodes.
155 * config/s390/2964.md: Likewise.
156 * config/s390/3906.md: Likewise.
157 * config/s390/8561.md: Likewise.
158 * config/s390/s390-builtins.def (s390_vfchesb): Use
159 the new vec_cmpgev4sf_quiet_nocc.
160 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
161 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
162 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
163 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
164 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
165 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
166 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
167 * config/s390/s390-modes.def (CCSFPS): New mode.
168 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
169 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
170 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
171 (s390_expand_vec_compare): Use non-signaling patterns where
173 (s390_reverse_condition): Support CCSFPS.
174 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
175 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
176 (asm_fcmp_op): Likewise.
177 (*smaxv2df3_vx): Use pattern for quiet comparison.
178 (*sminv2df3_vx): Likewise.
179 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
180 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
181 (vec_cmpgt<mode>_quiet_nocc): Likewise.
182 (vec_cmplt<mode>_quiet_nocc): New expander.
183 (vec_cmpge<mode>_quiet_nocc): New pattern.
184 (vec_cmple<mode>_quiet_nocc): New expander.
185 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
186 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
187 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
188 (*vec_cmpge<mode>_signaling_nocc): Likewise.
189 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
190 (vec_cmpungt<mode>): New expander.
191 (vec_cmpunge<mode>): Likewise.
192 (vec_cmpuneq<mode>): Use quiet patterns.
193 (vec_cmpltgt<mode>): Allow only on z14+.
194 (vec_cmpordered<mode>): Use quiet patterns.
195 (vec_cmpunordered<mode>): Likewise.
196 (VEC_CMP_EXPAND): Add ungt and unge.
198 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
200 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
202 * lto-streamer-out.c: Include tree-dfa.h.
203 (output_cfg): Do not use cfun.
204 (lto_prepare_function_for_streaming): New.
205 (output_function): Do not push cfun; do not initialize loop optimizer.
206 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
207 * passes.c (ipa_write_summaries): Use it.
208 (ipa_write_optimization_summaries): Do not modify bodies.
209 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
210 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
211 * tree-ssa-dse.c (pass_dse::execute): Update use of
212 renumber_gimple_stmt_uids.
213 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
215 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
217 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
218 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
220 2019-10-10 Joseph Myers <joseph@codesourcery.com>
222 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
224 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
225 Also define DFP macros for these conditions.
226 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
227 DEC128_SUBNORMAL_MIN): Do not define.
228 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
229 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
231 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
232 Sandra Loosemore <sandra@codesourcery.com>
235 * doc/lto.texi (IPA): Reference to the IPA passes.
236 * doc/passes.texi (Pass manager): Add node IPA passes and
237 description for each IPA pass.
239 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
241 * ipa-reference.c: Do not include splay-tree.h
242 (reference_vars_to_consider): Turn to hash map.
243 (get_static_name, ipa_init, analyze_function, propagate,
244 stream_out_bitmap, ipa_reference_write_optimization_summary,
245 ipa_reference_write_optimization_summary): Update.
247 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
249 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
251 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
253 * config/darwin.c: Lookup Objective C metadata and force indirection
256 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
258 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
260 (mem_operand_gpr): Add check for prefixed addresses.
261 (mem_operand_ds_form): Add check for prefixed addresses.
262 (rs6000_legitimate_offset_address_p): If we support prefixed
263 addresses, check for a 34-bit offset instead of 16-bit.
264 (rs6000_legitimate_address_p): Add check for prefixed addresses.
265 Do not allow load/store with update if the address is prefixed.
266 (rs6000_mode_dependent_address): If we support prefixed
267 addresses, check for a 34-bit offset instead of 16-bit.
269 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
272 * config/s390/vector.md (vcond_comparison_operator): New
274 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
276 2019-10-10 David Malcolm <dmalcolm@redhat.com>
279 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
281 * configure.ac (--with-documentation-root-url): New option.
282 * configure: Regenerate.
283 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
284 option URL, add it as a new string field of the diagnostic option.
285 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
286 (print_option_information): If get_option_url is non-NULL, call
287 it, and if the result is non-NULL, potentially emit an escape
288 sequence to markup the option text with the resulting URL.
289 * diagnostic.h (diagnostic_context::get_option_url): New callback.
290 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
291 example of JSON output.
292 * opts-diagnostic.h (get_option_url): New decl.
293 * opts.c (get_option_url): New function.
294 * toplev.c (general_init): Initialize the get_option_url callback.
296 2019-10-10 David Malcolm <dmalcolm@redhat.com>
299 * common.opt (fdiagnostics-urls=): New option.
300 (diagnostic-url.h): Add SourceInclude.
301 (diagnostic_url_rule): New enum.
302 * diagnostic-color.c: Include "diagnostic-url.h".
303 (diagnostic_urls_enabled_p): New function.
304 * diagnostic-url.h: New file.
305 * diagnostic.c: Include "diagnostic-url.h".
306 (diagnostic_urls_init): New function.
307 * diagnostic.h (diagnostic_urls_init): New decl.
308 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
309 -fdiagnostics-urls to the list.
310 (-fdiagnostics-urls): New option.
311 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
312 (driver::global_initializations): Call diagnostic_urls_init.
313 * opts-global.c (init_options_once): Likewise.
314 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
315 * pretty-print.c (pretty_printer::pretty_printer): Initialize
317 (pp_begin_url): New function.
318 (pp_end_url): New function.
319 (selftest::test_urls): New selftest.
320 (selftest::pretty_print_c_tests): Call it.
321 * pretty-print.h (pretty_printer::show_urls): New field.
322 (pp_begin_url): New decl.
323 (pp_end_url): New decl.
325 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
328 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
330 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
333 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
334 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
335 also for TARGET_FPU_SH4_300.
336 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
338 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
339 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
340 (*negsf2_i): Split into ...
341 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
342 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
343 (**abssf2_i): Split into ...
344 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
345 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
346 (*negdf2_i): Split into ...
347 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
348 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
349 (**abssf2_i): Split into ...
350 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
352 2019-10-10 Richard Biener <rguenther@suse.de>
355 * opts.c (finish_options): Do not influence global --params
356 from options that are adjustable per function.
357 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
358 Apply --param adjustment based on active cost-model.
359 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
360 further store-sinking when vectorization or if-conversion
363 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
366 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
367 rather than ggc_alloc_cleared to alloc symbol table.
368 * toplev.c (general_init): Likewise.
369 * cgraph.h (symbol_table): Explicitly construct every field.
371 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
373 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
375 * config.gcc: Add z15 as option for --with-arch and --with-tune
377 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
378 error reporting for unsupported builtins.
379 * config/s390/s390-opts.h (enum processor_type): Rename
380 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
381 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
382 * config/s390/driver-native.c (s390_host_detect_local_cpu):
384 * config/s390/s390-builtins.def: Likewise.
385 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
386 (s390_expand_builtin): Add missing check for unsupported builtins.
387 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
388 (s390_rtx_costs): Likewise.
389 (s390_get_sched_attrmask): Rename arch13 to z15.
390 (s390_get_unit_mask): Likewise.
391 (s390_is_fpd): Likewise.
392 (s390_is_fxd): Likewise.
393 * config/s390/s390.h (enum processor_flags): Likewise.
394 * config/s390/s390.md: Likewise.
395 * config/s390/vector.md: Likewise.
396 * config/s390/vx-builtins.md: Likewise.
397 * config/s390/s390.opt: Add z15 to processor_type value.
399 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
402 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
404 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
405 ("split_stack_data", "split_stack_call")
406 ("split_stack_call_<mode>", "split_stack_cond_call")
407 ("split_stack_cond_call_<mode>"): Remove.
408 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
410 * config/s390/s390.c (s390_output_split_stack_data): New function.
411 (s390_expand_split_stack_prologue): Use the merged expander.
413 2019-10-09 Martin Sebor <msebor@redhat.com>
415 PR tree-optimization/90879
416 * builtins.c (check_access): Avoid using maxbound when null.
417 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
418 * doc/invoke.texi (-Wstring-compare): Document new warning option.
419 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
421 (get_range_strlen): Overwrite initial maxbound when non-null.
422 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
424 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
425 (used_only_for_zero_equality): New function.
426 (handle_builtin_memcmp): Call it.
427 (determine_min_objsize): Return an integer instead of tree.
428 (get_len_or_size, strxcmp_eqz_result): New functions.
429 (maybe_warn_pointless_strcmp): New function.
430 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
431 between a longer string and a smaller array.
432 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
434 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
436 * config/darwin.c (darwin_override_options): Make the check for
437 Objective-C ABI version more specific for 64bit code.
439 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
441 * config/darwin.c (machopic_indirect_data_reference): Set flag to
442 indicate that the new symbol is an indirection.
443 (machopic_indirect_call_target): Likewise.
444 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
445 (MACHO_SYMBOL_INDIRECTION_P): New.
446 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
448 2019-10-08 Jason Merrill <jason@redhat.com>
450 * doc/invoke.texi: Document -fconcepts-ts.
452 2019-10-09 Richard Biener <rguenther@suse.de>
454 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
455 allow stmts other than GIMPLE_ASSIGN in nested cycles.
457 2019-10-08 Richard Biener <rguenther@suse.de>
459 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
460 (_stmt_vec_info::force_single_cycle): Likewise.
461 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
462 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
463 * tree-vect-loop.c (vectorizable_reduction): Set
464 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
465 (vect_transform_reduction): Use them to remove redundant code.
466 (vect_transform_cycle_phi): Likewise.
468 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
470 PR tree-optimization/90836
471 * gcc/match.pd (popcount): New pattern.
473 2019-10-08 Martin Sebor <msebor@redhat.com>
477 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
478 again once nbytes has been set. Set the access size when not yet set.
480 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
482 * config/darwin.c (machopic_select_section): Remove dead code for
483 old Objective-C section selection method, replace with unreachable.
485 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
487 * config/darwin.c (machopic_indirect_data_reference): Check for
488 required indirections before making direct access to defined
490 (machopic_output_indirection): Place the indirected pointes for
491 required indirections into the non-lazy symbol pointers section.
492 (darwin_encode_section_info):
493 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
494 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
496 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
499 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
500 instead of ALL_SSE_REG to check if function call preserves some
501 256-bit SSE registers.
503 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
505 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
506 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
507 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
509 2019-10-08 Richard Biener <rguenther@suse.de>
511 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
512 (_stmt_vec_info::is_reduc_info): Add.
513 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
514 (vectorizable_condition): Remove.
515 (vectorizable_shift): Likewise.
516 (vectorizable_reduction): Adjust.
517 (info_for_reduction): New.
518 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
519 (vect_analyze_scalar_cycles_1): ... here.
520 (vect_analyze_loop_operations): Adjust.
521 (needs_fold_left_reduction_p): Simplify for single caller.
522 (vect_is_simple_reduction): Likewise. Remove stmt restriction
523 for nested cycles not part of double reductions.
524 (vect_model_reduction_cost): Pass in the reduction type.
525 (info_for_reduction): New function.
526 (vect_create_epilog_for_reduction): Use it, access reduction
527 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
528 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
529 (vectorize_fold_left_reduction): Remove pointless assert.
530 (vectorizable_reduction): Analyze the full reduction when
531 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
532 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
533 stmt code-generation to vectorizable_* in most cases. Verify
534 code-generation only for cases handled by
535 vect_transform_reductuon.
536 (vect_transform_reduction): Use info_for_reduction to get at
537 reduction meta. Simplify.
538 (vect_transform_cycle_phi): Likewise.
539 (vectorizable_live_operation): Likewise.
540 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
541 at the PHI node for STMT_VINFO_REDUC_TYPE.
542 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
543 longer necessary code.
544 * tree-vect-stmts.c (vectorizable_shift): Make static again.
545 (vectorizable_condition): Likewise. Get at reduction related
546 info via info_for_reduction.
547 (vect_analyze_stmt): Adjust.
548 (vect_transform_stmt): Likewise.
549 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
550 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
552 2019-10-08 Joseph Myers <joseph@codesourcery.com>
554 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
555 -fno-fp-int-builtin-inexact default for C2X.
557 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
558 Richard Biener <rguenther@suse.de>
560 PR tree-optimization/91532
561 * tree-if-conv.c: Include tree-ssa-dse.h.
562 (ifcvt_local_dce): Change param from bb to loop,
563 and call dse_classify_store.
564 (tree_if_conversion): Pass loop instead of loop->header as arg
566 * tree-ssa-dse.c: Include tree-ssa-dse.h.
567 (delete_dead_or_redundant_assignment): Remove static qualifier from
568 declaration, and add prototype in tree-ssa-dse.h.
569 (dse_store_status): Move to tree-ssa-dse.h.
570 (dse_classify_store): Remove static qualifier and add new tree param
571 stop_at_vuse, and add prototype in tree-ssa-dse.h.
572 * tree-ssa-dse.h: New header.
574 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
576 * config/darwin.c (machopic_output_indirection): Don't put
577 hidden symbol indirections into the .data section, use the
578 non-lazy symbol pointers section as normal.
579 (darwin_encode_section_info): Record if a symbol is hidden.
580 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
581 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
583 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
585 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
586 predicates instead of accessing bits directly.
587 (machopic_indirect_call_target): Likewise.
588 (machopic_output_indirection): Likewise.
589 (darwin_encode_section_info): Improve description. Use renamed
590 symbol flags. Use predicate macros for variables and functions.
592 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
593 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
594 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
595 (MACHO_SYMBOL_VARIABLE_P): New.
596 (MACHO_SYMBOL_DEFINED_P):New.
597 (MACHO_SYMBOL_STATIC_P): New.
598 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
599 (SYMBOL_FLAG_SUBT_DEP): New.
600 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
602 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
604 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
605 (msp430_expand_epilogue): Likewise.
606 * config/msp430/predicates.md: Likewise.
607 * config/msp430/msp430.md: Likewise.
608 Replace blocks of 8 spaces with tabs.
610 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
612 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
613 * config/msp430/msp430.c (msp430_split_addsi): New.
614 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
615 a block of C code for splitting addsi.
617 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
619 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
620 ix86_expand_rounddf_32): Reorder functions.
621 * config/i386/i386-protos.h: Update.
623 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
625 * config.in: Regenerate.
626 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
627 Add new "Yx" constraint.
628 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
630 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
632 * config/msp430/msp430.c (msp430_option_override): Allow the lower
633 code/data region to be selected in the small memory model.
634 (msp430_section_attr): Don't warn if the "section" and "lower"
635 attributes are used together.
636 (msp430_handle_generic_attribute): Likewise.
637 (msp430_var_in_low_mem): New function.
638 (TARGET_ENCODE_SECTION_INFO): Define.
639 (msp430_encode_section_info): New function.
640 (gen_prefix): Return early in the small memory model.
641 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
642 ".lower" prefix if -m{code,data}-region=lower have been passed.
643 (msp430_output_aligned_decl_common): Emit common symbols when
644 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
646 (TARGET_ASM_FILE_END): Define.
647 (msp430_file_end): New function.
648 (msp430_do_not_relax_short_jumps): Allow relaxation when
649 function will be in the lower region.
650 (msp430_op_not_in_high_mem): New function.
651 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
652 the 'X' operand selector.
653 Clarify comment for 'x' operand selector.
654 * config/msp430/msp430.h (LINK_SPEC): Propagate
655 -m{code,data}-region to the linker via spec function
656 msp430_propagate_region_opt.
657 (msp430_propagate_region_opt): New prototype.
658 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
659 (SYMBOL_FLAG_LOW_MEM): Define.
660 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
662 (zero_extendqihi2): Fix operand number used by "%X" selector.
663 (zero_extendqisi2): Likewise.
664 (zero_extendhisi2): Likewise.
665 (movqi): Use "Yx" constraint in place of "%X" operand selector.
670 (addhi3_cy): Likewise.
671 (addchi4_cy): Likewise.
675 (bic<mode>3): Likewise.
676 (and<mode>3): Likewise.
677 (ior<mode>3): Likewise.
678 (xor<mode>3): Likewise.
679 (slli_1): Add missing "%X" operand selector.
687 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
689 (cbranchhi4_real): Likewise.
690 (cbranchqi4_reversed): Likewise.
691 (cbranchhi4_reversed): Likewise.
692 (*bitbranch<mode>4): Likewise.
693 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
694 * config/msp430/msp430.opt (mcode-region=): Set default to
695 MSP430_REGION_LOWER. Improve docstring.
696 (mdata-region=): Likewise.
697 (muse-lower-region-prefix): New option.
698 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
699 mdata-region=none multilib.
700 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
701 mdata-region=none multilib.
702 MULTILIB_EXCEPTIONS: Remove.
703 MULTILIB_REQUIRED: Define.
704 * configure: Regenerate.
705 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
706 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
707 * doc/extend.texi: Clarify comment for {upper,lower,either}
709 Add separate description for "lower" variable attribute.
711 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
714 * optabs-tree.c (vcond_icode_p): New function.
715 (vcond_eq_icode_p): Likewise.
716 (expand_vec_cond_expr_p): Use vcond_icode_p and
718 * optabs.c (can_vcond_compare_p): New function.
719 * optabs.h (can_vcond_compare_p): Likewise.
721 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
724 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
725 caller passes a non-trapping condition.
726 (is_gimple_condexpr): Allow trapping conditions.
727 (is_gimple_condexpr_1): New helper function.
728 (is_gimple_condexpr_for_cond): New function, acts like old
730 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
731 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
732 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
733 * gimplify.c (gimplify_cond_expr): Use
734 is_gimple_condexpr_for_cond.
735 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
736 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
738 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
739 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
740 is_gimple_condexpr_for_cond, remove pointless tmp check
741 (forward_propagate_into_cond): Remove pointless tmp check.
743 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
745 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
746 match that of other gsi_next_* functions. Adjust the comment.
747 (gsi_start_nonvirtual_phis): New function.
748 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
749 gsi_next_nonvirtual_phi accordingly. (No functional change.)
751 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
753 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
754 setjmp situation here. Fix a verb's ending: "the exact variables or
755 elements for which there are warnings depends" -> "... depend".
757 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
759 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
761 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
763 * ipa-prop.c (ipa_vr::nonzero_p): New.
764 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
766 * ipa-prop.h (class ipa_vr): Add nonzero_p.
767 * tree-vrp.c (range_has_numeric_bounds_p): New.
768 (range_int_cst_p): Use range_has_numeric_bounds_p.
769 (get_range_op_handler): New.
770 (supported_types_p): New.
771 (defined_ranges_p): New.
772 (drop_undefines_to_varying): New.
773 (range_fold_binary_symbolics_p): New.
774 (range_fold_unary_symbolics_p): New.
775 (range_fold_unary_expr): Extract out into above functions.
776 (range_fold_binary_expr): Same.
777 (value_range_base::normalize_addresses): New.
778 (value_range_base::normalize_symbolics): Normalize addresses.
779 * tree-vrp.h (class value_range_base): Add normalize_addresses.
781 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
783 * tree-vrp.c (value_range_base::singleton_p): Use
784 value_range_base::num_pairs instead of vrp_val_is* to check
785 if a range has one sub-range.
787 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
789 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
790 DEF is not a true earlyclobber but is tied to a specific input
791 operand, and so is effectively earlyclobber wrt inputs that have
793 (make_early_clobber_and_input_conflicts): Pass this case to the above.
795 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
797 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
798 (pod_mode): Mark operators likewise.
799 (scalar_int_mode): Mark non-default constructors and
800 operators with CONSTEXPR.
801 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
802 (fixed_size_mode): Likewise.
804 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
807 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
808 and wrap the unspec_volatile in a parallel.
809 (*avx_vzeroupper): New define_insn. Use a match_parallel around
811 * config/i386/predicates.md (vzeroupper_pattern): Expect the
812 unspec_volatile to be wrapped in a parallel.
813 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
814 (ix86_add_reg_usage_to_vzerouppers): New functions.
815 (rest_of_handle_insert_vzeroupper): Use them to add register
816 usage information to the vzeroupper instructions.
818 2019-10-07 Richard Biener <rguenther@suse.de>
820 PR tree-optimization/91975
821 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
824 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
826 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
827 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
829 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
831 * config/darwin.c (darwin_override_options): Adjust objective-c
832 ABI version error messages to avoid punctuation and contracted
835 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
837 * ipa-inline.c: Fix type; compute size rather than self_size
838 for size of caller function.
840 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
843 * config/darwin.c (darwin_rodata_section): Add relocation flag,
844 choose const_data section for constants with relocations.
845 (machopic_select_section): Pass relocation flag to
846 darwin_rodata_section ().
848 2019-10-05 Jakub Jelinek <jakub@redhat.com>
850 PR tree-optimization/91734
851 * generic-match-head.c: Include fold-const-call.h.
852 * match.pd (sqrt(x) cmp c): Check the boundary value and
853 in case inexact computation of c*c affects comparison of the boundary,
854 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
855 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
856 for -frounding-math. For c2, try the next smaller or larger floating
857 point constant depending on comparison code and if it has the same
858 sqrt as c2, use it instead of c2.
860 2019-10-04 Martin Sebor <msebor@redhat.com>
863 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
864 MEM_REF right operand. Avoid failing for MEM_REF assignments from
865 uninitialized objects.
867 2019-10-04 Martin Sebor <msebor@redhat.com>
869 * builtins.c (compute_objsize): Add an argument.
870 * tree-object-size.c (addr_object_size): Same.
871 (compute_builtin_object_size): Same.
872 * tree-object-size.h (compute_builtin_object): Same.
874 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
876 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
878 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
880 * match.pd (sinh (x) / cosh (x)): New simplification rule.
882 2019-10-04 Martin Jambor <mjambor@suse.cz>
884 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
885 fntype when switching to calling memcpy instead of memset.
887 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
889 * hash-table.h (hash_table::empty_slow): Don't assign
890 size_t values to int variables.
892 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
894 * expr.c (convert_mode_scalar): Remove shadowing local var.
895 (emit_block_move): Rename local vars.
896 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
897 (emit_push_insn): Rename local vars.
898 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
899 shadowing local vars.
900 (store_constructor): Remove shadowing local vars. Rename local var.
901 (store_field, expand_cond_expr_using_cmove,
902 expand_expr_real_2): Remove shadowing local vars.
904 do_store_flag): Remove shadowing local vars. Rename local vars.
906 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
908 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
910 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
912 * genmatch.c (commutate): Rename local var.
913 (lower_cond): Reuse local var.
914 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
915 dt_operand::gen, dt_operand::gen_gimple_expr,
916 dt_simplify::gen): Add a param. Rename generated vars.
917 (decision_tree::insert_operand,
918 (capture_info::walk_match, capture_info::walk_result,
919 capture_info::walk_c_expr): Rename local vars.
920 (expr::gen_transform): Rename generated vars.
921 Use snprintf. Rename local vars.
922 (capture::gen_transform, dt_operand::get_name,
923 dt_operand::gen_opname): Rename generated vars.
924 (write_predicate): Adjust call to gen_kids.
925 (parser::get_internal_capture_id): Rename generated vars.
926 (parser::parse_expr): Rename local vars.
927 (parser::parse_if): Remove local var.
928 (parser::parse_pattern, add_operator): Rename local vars.
930 2019-10-04 Joseph Myers <joseph@codesourcery.com>
932 * builtins.def (DEF_C2X_BUILTIN): New macro.
933 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
934 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
935 (strndup): Use DEF_C2X_BUILTIN.
936 * coretypes.h (enum function_class): Add function_c2x_misc.
938 2019-10-04 Maya Rashish <coypu@sdf.org>
940 * ira-color.c (update_costs_from_allocno): Call
941 ira_init_register_move_cost_if_necessary.
943 2019-10-04 Jeff Law <law@redhat.com>
945 * config/h8300/h8300.md (cpymemsi): Disable.
946 (movmd, movmd_internal_<mode>, movstr, movsd):
947 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
948 (movmd splitter, movsd splitter): Likewise.
950 * range-op.cc (range_tests): Avoid two tests when ints and
951 shorts are the same size.
953 2019-10-04 Richard Biener <rguenther@suse.de>
956 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
959 2019-10-04 Richard Biener <rguenther@suse.de>
961 PR tree-optimization/91982
962 * tree-vect-loop.c (vectorizable_live_operation): Also guard
963 against EXTRACT_LAST_REDUCTION.
964 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
966 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
968 * range-op.o (value_range_from_overflowed_bounds): Rename from
969 adjust_overflow_bound.
970 (value_range_with_overflow): Rename from
971 create_range_with_overflow.
972 (create_possibly_reversed_range): Adjusted for above renames.
973 (operator_*::wi_fold): Same.
974 (cross_product_operator::wi_cross_productor): Same.
976 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
978 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
979 -Wshadow=compatible-local): Fix description.
980 Add an example where -Wshadow=compatible-local does not
983 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
985 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
987 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
988 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
990 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
992 * expr.c (emit_block_move_hints): Slightly cleaner fix to
993 can_move_by_pieces issue.
995 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
998 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
999 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1000 is available and the user has not set one on the command line.
1002 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1005 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1006 instead of REGNO equality check on addr.reg.
1008 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1010 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1011 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1012 * doc/invoke.texi (inline-heuristics-hint-percent,
1013 inline-heuristics-hint-percent-O2): Document.
1014 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1016 (can_inline_edge_by_limits_p): Use it.
1018 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1020 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1021 to print CONST_DOUBLEs.
1023 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1025 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1026 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1027 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1029 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1031 * Makefile.in (OBJS): Add range.o and range-op.o.
1032 Remove wide-int-range.o.
1033 * function-tests.c (test_ranges): New.
1034 (function_tests_c_tests): Call test_ranges.
1035 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1036 range_fold_unary_expr instead of extract_range_from_unary_expr.
1037 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1038 * range-op.cc: New file.
1039 * range-op.h: New file.
1040 * range.cc: New file.
1041 * range.h: New file.
1042 * selftest.h (range_tests): New prototype.
1043 * ssa.h: Include range.h.
1044 * tree-vrp.c (value_range_base::value_range_base): New
1046 (value_range_base::singleton_p): Do not call
1047 ranges_from_anti_range until sure we will need to.
1048 (value_range_base::type): Rename gcc_assert to
1049 gcc_checking_assert.
1050 (vrp_val_is_max): New argument.
1051 (vrp_val_is_min): Same.
1052 (wide_int_range_set_zero_nonzero_bits): Move from
1054 (extract_range_into_wide_ints): Remove.
1055 (extract_range_from_multiplicative_op): Remove.
1056 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1057 from extract_range_from_binary_expr.
1058 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1059 from extract_range_from_binary_expr.
1060 (extract_range_from_binary_expr): Remove.
1061 (normalize_for_range_ops): New.
1062 (range_fold_binary_expr): New.
1063 (range_fold_unary_expr): New.
1064 (value_range_base::num_pairs): New.
1065 (value_range_base::lower_bound): New.
1066 (value_range_base::upper_bound): New.
1067 (value_range_base::upper_bound): New.
1068 (value_range_base::contains_p): New.
1069 (value_range_base::invert): New.
1070 (value_range_base::union_): New.
1071 (value_range_base::intersect): New.
1072 (range_compatible_p): New.
1073 (value_range_base::operator==): New.
1074 (determine_value_range_1): Call range_fold_*expr instead of
1075 extract_range_from_*expr.
1076 * tree-vrp.h (class value_range_base): Add new constructors.
1077 Add methods for union_, intersect, operator==, contains_p,
1078 num_pairs, lower_bound, upper_bound, invert.
1079 (vrp_val_is_min): Add handle_pointers argument.
1080 (vrp_val_is_max): Same.
1081 (extract_range_from_unary_expr): Remove.
1082 (extract_range_from_binary_expr): Remove.
1083 (range_fold_unary_expr): New.
1084 (range_fold_binary_expr): New.
1085 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1086 range_fold_binary_expr instead of extract_range_from_binary_expr.
1087 (vr_values::extract_range_basic): Same.
1088 (vr_values::extract_range_from_unary_expr): Call
1089 range_fold_unary_expr instead of extract_range_from_unary_expr.
1090 * wide-int-range.cc: Remove.
1091 * wide-int-range.h: Remove.
1093 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1095 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1096 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1097 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1098 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1101 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1103 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1104 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1105 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1106 * glimits.h: Likewise.
1108 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1110 PR rtl-optimization/91976
1111 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1112 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1113 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1115 2019-10-02 Martin Sebor <msebor@redhat.com>
1117 PR tree-optimization/80936
1118 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1120 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1122 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1123 instead of reg_class_contents[ALL_REGS].
1125 2019-09-30 Jason Merrill <jason@redhat.com>
1127 Add some hash_map_safe_* functions like vec_safe_*.
1128 * hash-map.h (default_hash_map_size): New variable.
1129 (create_ggc): Use it as default argument.
1130 (hash_map_maybe_create, hash_map_safe_get)
1131 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1133 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1135 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1136 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1137 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1138 (can_inline_edge_by_limits_p): Use it.
1139 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1140 (want_inline_small_function_p): Use O2 bounds.
1141 (edge_badness): LIkewise.
1142 * opts.c (default_options): Add OPT_finline_functions.
1143 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1144 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1146 * doc/invoke.texi (-finline-functions): Update documentation.
1147 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1148 inline-min-speedup-O2): Document.
1149 (early-inlining-insns-O2): Simplify docs.
1151 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1153 PR rtl-optimization/87047
1154 * ifcvt.c (average_cost): New static function. Use it...
1155 (noce_process_if_block): ... here.
1157 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1159 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1160 * config/rs6000/rs6000-string.c (expand_block_move): Add
1162 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1163 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1165 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1167 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1168 (expand_builtin_memcpy): Use might_overlap parm.
1169 (expand_builtin_mempcpy_args): Use might_overlap parm.
1170 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1171 (expand_builtin_memory_copy_args): Add might_overlap parm.
1172 * expr.c (emit_block_move_via_cpymem): Rename to
1173 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1174 or movmem optab as appropriate.
1175 (emit_block_move_hints): Add might_overlap parm, do the right
1176 thing for might_overlap==true.
1177 * expr.h (emit_block_move_hints): Update prototype.
1179 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1181 * tree-eh.h (unsplit_eh_edges): Declare.
1182 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1183 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1184 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1185 (struct store_immediate_info): Add lp_nr field.
1186 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1187 initialize lp_nr with it.
1188 (struct merged_store_group): Add lp_nr and only_constants fields.
1189 (merged_store_group::merged_store_group): Initialize them.
1190 (merged_store_group::can_be_merged_into): Deal with them.
1191 (pass_store_merging): Rename terminate_and_release_chain into
1192 terminate_and_process_chain.
1193 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1194 renaming and remove useless assertions.
1195 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1196 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1197 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1198 instead of always recomputing it and compare lp_nr.
1199 (imm_store_chain_info::output_merged_store): If the group is in an
1200 active EH region, register new stores if they can throw. Moreover,
1201 if the insertion has created new basic blocks, adjust the PHI nodes
1202 of the post landing pad.
1203 (imm_store_chain_info::output_merged_stores): If the original stores
1204 are in an active EH region, deregister them.
1205 (lhs_valid_for_store_merging_p): Prettify.
1206 (adjust_bit_pos): New function extracted from...
1207 (mem_valid_for_store_merging): ...here. Use it for the base address
1208 and also for the offset if it is the addition of a constant.
1209 (lp_nr_for_store): New function.
1210 (pass_store_merging::process_store): Change return type to bool.
1211 Call lp_nr_for_store to initialize the store info. Propagate the
1212 return status of various called functions to the return value.
1213 (store_valid_for_store_merging_p): New predicate.
1214 (enum basic_block_status): New enumeration.
1215 (get_status_for_store_merging): New function.
1216 (pass_store_merging::execute): If the function can throw and catch
1217 non-call exceptions, unsplit the EH edges on entry and clean up the
1218 CFG on exit if something changed. Call get_status_for_store_merging
1219 for every basic block and keep the chains open across basic blocks
1220 when possible. Terminate and process open chains at the end, if any.
1222 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1224 * reginfo.c (globalize_reg): Fix shadowed variable in
1227 2019-10-02 Martin Jambor <mjambor@suse.cz>
1229 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1230 do not compute some stuff when set.
1231 (cgraph_node::create_edge): Likewise.
1232 (cgraph_node::create_indirect_edge): Renamed last parameter to
1233 coning_p and flipped its meaning, don't even calculate
1234 inline_failed when set.
1235 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1236 (symbol_table::::create_edge): Likewise.
1237 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1239 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1240 call graph edge creating functions.
1242 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1245 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1248 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1250 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1252 2019-10-02 Richard Biener <rguenther@suse.de>
1254 * tree-vectorizer.h (vect_transform_reduction): Declare.
1255 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1256 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1257 stmt transform to ...
1258 (vect_transform_reduction): ... this.
1260 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1262 * omp-low.c (lower_omp_target): Dereference optional argument
1263 to work with the right pointer.
1265 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1267 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1269 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1270 * langhooks.h (omp_is_optional_argument): New hook.
1271 * omp-general.c (omp_is_optional_argument): New.
1272 * omp-general.h (omp_is_optional_argument): New declaration.
1273 * omp-low.c (lower_omp_target): Create temporary for received value
1274 and take the address for new_var if the original variable was a
1275 DECL_BY_REFERENCE. Use size of referenced object when a
1276 pass-by-reference optional argument used as argument to firstprivate.
1278 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1280 PR tree-optimization/91940
1281 * tree-vect-patterns.c: Include tree-vector-builder.h and
1283 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1284 unpromoting the argument back to uint16_t, or by converting into a
1285 rotate, or into shifts plus ior.
1287 2019-10-02 Richard Biener <rguenther@suse.de>
1289 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1291 (vect_transform_cycle_phi): Declare.
1292 * tree-vect-stmts.c (vect_transform_stmt): Call
1293 vect_transform_cycle_phi.
1294 * tree-vect-loop.c (vectorizable_reduction): Split out
1295 PHI transformation stage to ...
1296 (vect_transform_cycle_phi): ... here.
1298 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1301 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1302 eliminable registers.
1303 (make_hard_regno_live): Likewise, and don't make them live.
1305 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1307 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1308 Call pp_emit_prefix.
1309 (layout::print_source_line): Likewise.
1310 (layout::start_annotation_line): Likewise.
1311 (diagnostic_show_locus): Remove call to temporarily clear the
1313 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1314 interaction of pp_set_prefix with rulers and fix-it hints.
1315 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1316 prefix when calling diagnostic_show_locus, rather than destroying
1318 (print_parseable_fixits): Temporarily clear prefix.
1319 * pretty-print.c (pp_format): Save and restore line_length, rather
1320 than assuming it is zero.
1321 (pp_output_formatted_text): Remove assertion that line_length is
1324 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1326 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1328 (nonoverlapping_refs_since_match_p): ... this; handle also
1330 (alias_stats): Update stats.
1331 (dump_alias_stats): Likewise.
1332 (cheap_array_ref_low_bound): New function.
1333 (aliasing_matching_component_refs_p): Add partial_overlap
1335 pass it to nonoverlapping_refs_since_match_p.
1336 (aliasing_component_refs_walk): Update call of
1337 aliasing_matching_component_refs_p
1338 (nonoverlapping_array_refs_p): New function.
1339 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1340 indirect_refs_may_alias_p): Update calls of
1341 nonoverlapping_refs_since_match_p.
1343 2019-10-01 Maya Rashish <coypu@sdf.org>
1346 * ira-color.c (allocno_copy_cost_saving): Call
1347 ira_init_register_move_cost_if_necessary.
1349 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1351 * Makefile.in (gnat_install_lib): New variable.
1352 * configure.ac: Substitute it.
1353 * configure: Regenerate.
1355 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1358 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1359 is matched with non-C++ type
1361 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1363 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1366 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1368 * doc/invoke.texi (early-inlining-insns-O2): Document.
1369 (early-inlining-insns): Update.
1370 * params.def (early-inlining-insns-O2): New bound.
1371 (early-inlining-insns): Update docs.
1372 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1374 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1377 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1378 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1379 a memory access insn.
1381 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1383 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1386 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1389 * config/s390/s390.c (s390_expand_vec_compare): Use
1390 gen_vec_cmpordered and gen_vec_cmpunordered.
1391 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1392 vec_unordered): Delete.
1393 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1394 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1395 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1396 (vec_cmp<code>): Generic dispatcher.
1398 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1401 * config/s390/vector.md (V_HW): Add V1TI in order to make
1402 vcond$a$b generate vcondv1tiv1tf.
1404 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1406 PR rtl-optimization/91948
1407 * ira-build.c (ira_create_allocno): Initialize
1408 ALLOCNO_CROSSED_CALLS_ABIS.
1409 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1410 than regno to ira_need_caller_save_p.
1412 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1414 * config/i386/i386-options.c
1415 (ix86_recompute_optlev_based_flags): New, moved out of...
1416 (ix86_option_override_internal): ... this. Call it.
1417 (ix86_override_options_after_change): Call it here too.
1420 * dwarf2out.c (override_type_for_decl_p): New.
1421 (gen_variable_die): Use it.
1423 2019-10-01 Richard Biener <rguenther@suse.de>
1425 * tree-vect-loop.c (vectorizable_reduction): Move variables
1426 to where they are used.
1428 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1430 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1431 (build_def_use): Use PC instead of CC0 in a comment.
1433 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1435 * rtl.def (CLOBBER_HIGH): Delete.
1436 * doc/rtl.texi (clobber_high): Remove documentation.
1437 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1438 (reg_is_clobbered_by_clobber_high): Delete.
1439 (gen_hard_reg_clobber_high): Likewise.
1440 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1441 * cfgexpand.c (expand_gimple_stmt): Likewise.
1442 * combine-stack-adj.c (single_set_for_csa): Likewise.
1443 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1444 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1445 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1446 * cse.c (invalidate_reg): Remove clobber_high parameter.
1447 (invalidate): Update call accordingly.
1448 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1449 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1450 (count_reg_usage, insn_live_p): Likewise.
1451 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1452 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1453 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1454 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1455 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1456 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1457 (mark_nonreg_stores_2): Likewise.
1458 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1459 (df_get_call_refs): Likewise.
1460 * dwarf2out.c (mem_loc_descriptor): Likewise.
1461 * emit-rtl.c (verify_rtx_sharing): Likewise.
1462 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1463 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1464 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1465 * genemit.c (gen_exp, gen_insn): Likewise.
1466 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1467 * haifa-sched.c (haifa_classify_rtx): Likewise.
1468 * ira-build.c (create_insn_allocnos): Likewise.
1469 * ira-costs.c (scan_one_insn): Likewise.
1470 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1471 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1472 * jump.c (mark_jump_label_1): Likewise.
1473 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1474 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1476 (mark_not_eliminable): Likewise.
1477 * lra-lives.c (process_bb_lives): Likewise.
1478 * lra.c (new_insn_reg): Remove clobber_high parameter.
1479 (collect_non_operand_hard_regs): Likewise. Update call to new
1480 insn_reg. Remove CLOBBER_HIGH handling.
1481 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1482 to collect_non_operand_hard_regs.
1483 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1484 Update call to new_insn_reg.
1485 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1486 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1487 (move2add_note_store): Likewise.
1488 * print-rtl.c (print_pattern): Likewise.
1489 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1490 (if_test_bypass_p): Likewise.
1491 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1492 * reginfo.c (reg_scan_mark_refs): Likewise.
1493 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1494 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1495 (forget_old_reloads_1): Likewise.
1496 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1497 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1498 (dbr_schedule): Likewise.
1499 * resource.c (update_live_status, mark_referenced_resources)
1500 (mark_set_resources): Likewise.
1501 * rtl.c (copy_rtx): Likewise.
1502 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1503 (note_pattern_stores): Likewise.
1504 (reg_is_clobbered_by_clobber_high): Delete.
1505 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1506 CLOBBER_HIGH handling.
1508 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1511 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1512 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1513 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1514 Handle ARM_PCS_TLSDESC.
1515 (aarch64_tlsdesc_abi_id): New function.
1516 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1517 rtx instead of a list of clobbers and clobber_highs.
1518 (tlsdesc_small_<mode>): Update accordingly.
1520 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1522 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1523 extra callee_abi argument.
1524 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1525 Insert a CALLEE_ABI unspec into the call pattern as the second
1526 element in the PARALLEL.
1527 (aarch64_simd_call_p): Delete.
1528 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1529 the new CALLEE_ABI element of the PARALLEL.
1530 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1531 from the function type, if given.
1532 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1533 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1534 when passed the function_arg_info end marker.
1535 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1536 final argument of gen_sibcall.
1537 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1538 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1539 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1541 (call_value): Likewise operand 3.
1542 (sibcall): Likewise operand 2. Place the unspec before rather than
1544 (sibcall_value): Likewise operand 3.
1545 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1546 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1547 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1549 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1551 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1553 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1554 choose_hard_reg_mode.
1555 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1557 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1559 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1560 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1561 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1563 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1565 * diagnostic-show-locus.c (line_label::line_label): Initialize
1567 (line_label::comparator): Reverse the sort order by m_state_idx,
1568 so that when the list is walked backwards the labels appear in
1569 order of insertion into the rich_location.
1570 (line_label::m_has_vbar): New field.
1571 (layout::print_any_labels): When dealing with multiple labels at
1572 the same line and column, only print vertical bars for the one
1573 with the highest label_line.
1574 (selftest::test_one_liner_labels): Update test for multiple labels
1575 to expect the labels to be in the order of insertion into the
1576 rich_location. Add a test for many such labels, where the column
1577 numbers are out-of-order relative to the insertion order.
1579 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1581 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1582 (ix86_frame::expensive_count): Likewise.
1583 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1584 of use_fast_prologue_epilogue robust against incidental changes
1587 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1590 * config/s390/vector.md (vec_unordered<mode>): Call
1591 gen_vec_ordered<mode>.
1593 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1595 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1596 New pattern for ASRD.
1597 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1598 * internal-fn.def (IFN_DIV_POW2): New internal function.
1599 * optabs.def (sdiv_pow2_optab): New optab.
1600 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1601 Modify pattern to support new operation.
1602 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1603 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1604 Document new target selector.
1606 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1608 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1609 to test whether we're compiling a vector PCS function and to test
1610 whether the function needs to save a particular register.
1611 Remove the vector PCS handling of df_set_regs_ever_live.
1612 (aarch64_components_for_bb): Use crtl->abi to test whether
1613 the function needs to save a particular register.
1614 (aarch64_process_components): Use crtl->abi to test whether
1615 we're compiling a vector PCS function.
1616 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1617 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1619 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1621 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1623 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1624 whether the block calls a function that clobbers more registers
1625 than the current function is allowed to.
1626 (aarch64_use_simple_return_insn_p): Delete.
1627 * config/aarch64/aarch64.md (simple_return): Remove condition.
1629 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1631 * function-abi.h (function_abi_aggregator): New class.
1632 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1634 * ira.c (update_equiv_regs_prescan): New function. Call
1635 set_paradoxical_subreg here rather than...
1636 (update_equiv_regs): ...here.
1637 (ira): Call update_equiv_regs_prescan.
1639 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1641 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1643 (call_used_or_fixed_regs): Likewise.
1644 (call_used_or_fixed_reg_p): Likewise.
1645 * reginfo.c (regs_invalidated_by_call): New macro.
1647 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1649 * shrink-wrap.c: Include function-abi.h.
1650 (requires_stack_frame_p): Use crtl->abi to test whether the
1651 current function can use a register without saving it first.
1653 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1655 * sel-sched-ir.h (_def::crosses_call): Replace with...
1656 (_def::crossed_call_abis): ..this new field.
1657 (def_list_add): Take a mask of ABIs instead of a crosses_call
1659 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1660 of _def accordingly.
1661 * sel-sched.c: Include function-abi.h.
1662 (hard_regs_data::regs_for_call_clobbered): Delete.
1663 (reg_rename::crosses_call): Replace with...
1664 (reg_rename::crossed_call_abis): ...this new field.
1665 (fur_static_params::crosses_call): Replace with...
1666 (fur_static_params::crossed_call_abis): ...this new field.
1667 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1668 (init_hard_regs_data): Use crtl->abi to test which registers the
1669 current function would need to save before it uses them.
1670 (mark_unavailable_hard_regs): Update handling of call-clobbered
1671 registers, using call_clobbers_in_region to find out which registers
1672 might be call-clobbered (but without taking -fipa-ra into account
1673 for now). Remove separate handling of partially call-clobbered
1675 (verify_target_availability): Use crossed_call_abis instead of
1677 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1678 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1680 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1682 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1683 function to test whether a register is fully or partly clobbered.
1685 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1687 * rtlanal.c: Include function-abi.h.
1688 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1689 function and clobbers_reg_p to test whether the register
1691 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1692 to get the ABI of the called function and full_reg_clobbers to
1693 get the set of fully call-clobbered registers. Warn about the
1694 pitfalls of using this mode.
1696 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1698 * reload.c: Include function-abi.h.
1699 (find_equiv_reg): Use clobbers_reg_p to test whether either
1700 of the equivalent registers is clobbered by a call.
1701 * reload1.c: Include function-abi.h.
1702 (reg_reloaded_call_part_clobbered): Delete.
1703 (reload): Use crtl->abi to test which registers would need
1704 saving in the prologue before use.
1705 (find_reg): Likewise.
1706 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1707 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1708 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1710 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1712 * regrename.h (du_head::call_clobber_mask): New field.
1713 (du_head::need_caller_save_reg): Replace with...
1714 (du_head::call_abis): ...this new field.
1715 * regrename.c: Include function-abi.h.
1716 (call_clobbered_in_chain_p): New function.
1717 (check_new_reg_p): Use crtl->abi when deciding whether a register
1718 is free for use after RA. Use call_clobbered_in_chain_p to test
1719 whether a candidate register would be clobbered by a call.
1720 (find_rename_reg): Don't add call-clobber conflicts here.
1721 (rename_chains): Check call_abis instead of need_caller_save_reg.
1722 (merge_chains): Update for changes to du_head.
1723 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1724 target. Record the ABI identifier in call_abis and the set of
1725 fully or partially clobbered registers in call_clobber_mask.
1726 Add fully-clobbered registers to hard_conflicts here rather
1727 than in find_rename_reg.
1728 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1729 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1730 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1732 * config/c6x/c6x.c: Likewise.
1734 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1736 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1737 mode of the register when deciding whether it is no longer
1738 available after a call.
1740 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1742 * recog.c: Include function-abi.h.
1743 (peep2_find_free_register): Use crtl->abi when deciding whether
1744 a register is free for use after RA.
1746 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1748 * postreload-gcse.c: Include regs.h and function-abi.h.
1749 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1750 call insn target. Conservatively assume that partially-clobbered
1751 registers are altered.
1753 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1755 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1756 when deciding whether a register is free for use after RA.
1757 (reload_combine): Remove unnecessary use of fixed_reg_set.
1758 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1759 call insn target. Use reg_mode when testing whether a register
1760 is no longer available.
1762 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1764 * target.def (return_call_with_max_clobbers): Delete.
1765 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1766 * doc/tm.texi: Regenerate.
1767 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1768 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1769 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1770 (lra_reg::call_insn): Delete.
1771 * lra.c: Include function-abi.h.
1772 (initialize_lra_reg_info_element): Don't initialize the fields above.
1773 (lra): Use crtl->abi to test whether the current function needs to
1774 save a register in the prologue. Remove special pre-inheritance
1775 lra_create_live_ranges pass for flag_ipa_ra.
1776 * lra-assigns.c: Include function-abi.h
1777 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1778 function needs to save a register in the prologue.
1779 (lra_assign): Assert that registers aren't allocated to a
1780 conflicting register, rather than checking only for overlaps
1781 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1782 and for registers that are not live across a call.
1783 * lra-constraints.c (last_call_for_abi): New variable.
1784 (full_and_partial_call_clobbers): Likewise.
1785 (setup_next_usage_insn): Remove the register from
1786 full_and_partial_call_clobbers.
1787 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1788 whether the register needs a caller save.
1789 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1790 of call_used_or_fixed_regs.
1791 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1792 full_and_partial_call_clobbers.
1793 * lra-lives.c (check_pseudos_live_through_calls): Replace
1794 last_call_used_reg_set and call_insn arguments with an abi argument.
1795 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1796 as the set of conflicting registers.
1797 (calls_have_same_clobbers_p): Delete.
1798 (process_bb_lives): Track the ABI of the last call instead of an
1799 insn/HARD_REG_SET pair. Update calls to
1800 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1801 the set of registers that could be clobbered by an EH edge.
1802 Include partially-clobbered as well as fully-clobbered registers.
1803 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1804 * lra-remat.c: Include function-abi.h.
1805 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1806 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1807 registers and bitmap_view to combine them into dead_regs.
1808 (call_used_input_regno_present_p): Take a function_abi argument
1809 and use it to test whether a register is call-clobbered.
1810 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1811 call insn target. Update tje call to call_used_input_regno_present_p.
1812 (do_remat): Likewise.
1813 (lra_remat): Remove the initialization of call_used_regs_arr_len
1814 and call_used_regs_arr.
1816 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1818 * loop-iv.c: Include regs.h and function-abi.h.
1819 (simplify_using_initial_values): Use insn_callee_abi to get the
1820 ABI of the call insn target. Conservatively assume that
1821 partially-clobbered registers are altered.
1823 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1825 * function-abi.h (call_clobbers_in_region): Declare.
1826 (call_clobbered_in_region_p): New function.
1827 * function-abi.cc (call_clobbers_in_region): Likewise.
1828 * ira-int.h: Include function-abi.h.
1829 (ira_allocno::crossed_calls_abis): New field.
1830 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1831 (ira_need_caller_save_regs): New function.
1832 (ira_need_caller_save_p): Likewise.
1833 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1834 of call_used_or_fixed_regs.
1835 (do_reload): Use crtl->abi to test whether the current function
1836 needs to save a register in the prologue. Count registers that
1837 need to be saved rather than registers that don't.
1838 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1839 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1840 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1841 (propagate_some_info_from_allocno): Likewise.
1842 (copy_info_to_removed_store_destinations): Likewise.
1843 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1844 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1845 (ira_build): Use ira_need_caller_save_regs instead of
1846 call_used_or_fixed_regs.
1847 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1848 whether the current function would need to save a register
1850 (calculate_spill_cost): Likewise.
1851 (allocno_reload_assign): Use ira_need_caller_save_regs and
1852 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1853 * ira-conflicts.c (ira_build_conflicts): Use
1854 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1855 as the set of call-clobbered registers. Remove the
1856 call_used_or_fixed_regs mask from the calculation of
1857 temp_hard_reg_set and mask its use instead. Remove special
1858 handling of partially-clobbered registers.
1859 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1860 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1861 calculate the set of conflicting registers for calls that
1862 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1863 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1864 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1865 Use eh_edge_abi to calculate the set of registers that could
1866 be clobbered by an EH edge. Include partially-clobbered as
1867 well as fully-clobbered registers.
1869 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1871 * haifa-sched.c: Include function-abi.h.
1872 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1873 the function would need to save a register before using it.
1875 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1877 * gcse.c: Include function-abi.h.
1878 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1879 the call insn target. Invalidate partially call-clobbered
1880 registers as well as fully call-clobbered ones.
1882 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1884 * function.c (aggregate_value_p): Work out which ABI the
1885 function is using before testing which registers are at least
1886 partly preserved by a call.
1888 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1890 * early-remat.c: Include regs.h and function-abi.h.
1891 (early_remat::maybe_add_candidate): Don't check for call-clobbered
1893 (early_remat::restrict_remat_for_unavail_regs): New function.
1894 (early_remat::restrict_remat_for_call): Likewise.
1895 (early_remat::process_block): Before calling emit_remat_insns
1896 for a previous call in the block, invalidate any candidates
1897 that would clobber call-preserved registers.
1898 (early_remat::emit_remat_insns_for_block): Likewise for the
1899 final call in a block. Do the same thing for live-in registers
1900 when calling emit_remat_insns at the head of a block.
1902 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1904 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1905 whether the current function needs to save at least part of a
1906 register before using it.
1907 (df_get_exit_block_use_set): Likewise for epilogue restores.
1909 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1911 * df-problems.c: Include regs.h and function-abi.h.
1912 (df_rd_problem_data): Rename sparse_invalidated_by_call to
1913 sparse_invalidated_by_eh and dense_invalidated_by_call to
1914 dense_invalidated_by_eh.
1915 (df_print_bb_index): Update accordingly.
1916 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1917 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1918 that are clobbered by an EH edge. Clobber partially-clobbered
1919 registers as well as fully-clobbered ones.
1920 (df_md_confluence_n): Likewise.
1921 (df_rd_local_compute): Likewise. Update for changes to
1923 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1924 of registers that are clobbered by an EH edge. Includde partially-
1925 clobbered registers as well as fully-clobbered ones.
1927 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1929 * cselib.c (cselib_process_insn): If we know what mode a
1930 register was set in, check whether it is clobbered in that
1931 mode by a call. Only fall back to reg_raw_mode if that fails.
1933 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1935 * cse.c: Include regs.h and function-abi.h.
1936 (invalidate_for_call): Take the call insn as an argument.
1937 Use insn_callee_abi to get the ABI of the call and invalidate
1938 partially clobbered registers as well as fully clobbered ones.
1939 (cse_insn): Update call accordingly.
1941 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1943 * combine.c: Include function-abi.h.
1944 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1945 of the target of call insns. Invalidate partially-clobbered
1946 registers as well as fully-clobbered ones.
1948 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1950 * cfgloopanal.c: Include regs.h and function-abi.h.
1951 (init_set_costs): Use default_function_abi to test whether
1952 a general register is call-clobbered.
1954 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1956 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
1957 instead of the call-clobbered sets.
1959 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1961 * caller-save.c (setup_save_areas): Remove redundant |s of
1963 (save_call_clobbered_regs): Likewise. Use the call ABI rather
1964 than call_used_or_fixed_regs to decide whether a REG_RETURNED
1967 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1969 * rtl.h (predefined_function_abi): Declare.
1970 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1971 instead of a boolean call_save flag.
1972 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
1974 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1975 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1976 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
1977 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1978 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1979 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
1980 * reginfo.c (init_reg_modes_target): Likewise.
1981 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1982 instead of a boolean call_save flag.
1983 * targhooks.c: Include function-abi.h.
1984 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
1985 using eh_edge_abi to choose the mode.
1987 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1989 * target.def (hard_regno_call_part_clobbered): Take an ABI
1990 identifier instead of an rtx_insn.
1991 * doc/tm.texi: Regenerate.
1992 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
1993 (hook_bool_uint_uint_mode_false): New function.
1994 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
1995 (hook_bool_uint_uint_mode_false): New function.
1996 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1997 Take an ABI identifier instead of an rtx_insn.
1998 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
1999 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2000 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2001 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2002 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2004 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2005 * cselib.c: Include function-abi.h.
2006 (cselib_process_insn): Update call to
2007 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2008 to get the appropriate ABI identifier.
2009 * function-abi.cc (predefined_function_abi::initialize): Update call
2010 to targetm.hard_regno_call_part_clobbered.
2011 * ira-conflicts.c (ira_build_conflicts): Likewise.
2012 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2013 * lra-constraints.c: Include function-abi.h.
2014 (need_for_call_save_p): Update call to
2015 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2016 to get the appropriate ABI identifier.
2017 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2018 * regcprop.c (copyprop_hardreg_forward_1): Update call
2019 to targetm.hard_regno_call_part_clobbered.
2020 * reginfo.c (choose_hard_reg_mode): Likewise.
2021 * regrename.c (check_new_reg_p): Likewise.
2022 * reload.c (find_equiv_reg): Likewise.
2023 * reload1.c (emit_reload_insns): Likewise.
2024 * sched-deps.c: Include function-abi.h.
2025 (deps_analyze_insn): Update call to
2026 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2027 to get the appropriate ABI identifier.
2028 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2029 call to targetm.hard_regno_call_part_clobbered.
2030 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2032 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2034 * config/i386/i386.c: Include function-abi.h.
2035 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2036 if they preserve some 256-bit or 512-bit SSE registers.
2038 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2040 * target.def (insn_callee_abi): New hook.
2041 (remove_extra_call_preserved_regs): Delete.
2042 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2043 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2044 * doc/tm.texi: Regenerate.
2045 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2046 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2047 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2049 (aarch64_remove_extra_call_preserved_regs): Delete.
2050 (aarch64_insn_callee_abi): New function.
2051 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2052 (TARGET_INSN_CALLEE_ABI): New macro.
2053 * rtl.h (get_call_fndecl): Declare.
2054 (cgraph_rtl_info): Fix formatting. Tweak comment for
2055 function_used_regs. Remove function_used_regs_valid.
2056 * rtlanal.c (get_call_fndecl): Moved from final.c
2057 * function-abi.h (insn_callee_abi): Declare.
2058 (target_function_abi_info): Mention insn_callee_abi.
2059 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2060 way to get_call_reg_set_usage did.
2061 (insn_callee_abi): New function.
2062 * regs.h (get_call_reg_set_usage): Delete.
2063 * final.c: Include function-abi.h.
2064 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2065 function_used_regs before the main loop rather than afterwards.
2066 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2067 if function_used_regs ends up not being useful.
2068 (get_call_fndecl): Move to rtlanal.c
2069 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2070 * caller-save.c: Include function-abi.h.
2071 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2072 instead of get_call_reg_set_usage.
2073 * cfgcleanup.c: Include function-abi.h.
2074 (old_insns_match_p): Use insn_callee_abi instead of
2075 get_call_reg_set_usage.
2076 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2078 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2080 * df-scan.c: Include function-abi.h.
2081 (df_get_call_refs): Use insn_callee_abi instead of
2082 get_call_reg_set_usage.
2083 * ira-lives.c: Include function-abi.h.
2084 (process_bb_node_lives): Use insn_callee_abi instead of
2085 get_call_reg_set_usage.
2086 * lra-lives.c: Include function-abi.h.
2087 (process_bb_lives): Use insn_callee_abi instead of
2088 get_call_reg_set_usage.
2089 * postreload.c: Include function-abi.h.
2090 (reload_combine): Use insn_callee_abi instead of
2091 get_call_reg_set_usage.
2092 * regcprop.c: Include function-abi.h.
2093 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2094 get_call_reg_set_usage.
2095 * resource.c: Include function-abi.h.
2096 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2097 instead of get_call_reg_set_usage.
2098 * var-tracking.c: Include function-abi.h.
2099 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2100 get_call_reg_set_usage.
2102 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2104 * target.def (fntype_abi): New target hook.
2105 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2106 * doc/tm.texi: Regenerate.
2107 * target.h (predefined_function_abi): Declare.
2108 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2110 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2111 * config/aarch64/aarch64.c: Include function-abi.h.
2112 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2113 (TARGET_FNTYPE_ABI): Define.
2115 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2117 * Makefile.in (OBJS): Add function-abi.o.
2118 (GTFILES): Add function-abi.h.
2119 * function-abi.cc: New file.
2120 * function-abi.h: Likewise.
2121 * emit-rtl.h (rtl_data::abi): New field.
2122 * function.c: Include function-abi.h.
2123 (prepare_function_start): Initialize crtl->abi.
2124 * read-rtl-function.c: Include regs.h and function-abi.h.
2125 (read_rtl_function_body): Initialize crtl->abi.
2126 (read_rtl_function_body_from_file_range): Likewise.
2127 * reginfo.c: Include function-abi.h.
2128 (init_reg_sets_1): Initialize default_function_abi.
2129 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2130 when making a register global.
2131 * target-globals.h (this_target_function_abi_info): Declare.
2132 (target_globals::function_abi_info): New field.
2133 (restore_target_globals): Copy it.
2134 * target-globals.c: Include function-abi.h.
2135 (default_target_globals): Initialize the function_abi_info field.
2136 (target_globals): Allocate it.
2137 (save_target_globals): Free it.
2139 2019-09-30 Nick Clifton <nickc@redhat.com>
2142 * config/frv/frv.c (frv_register_move_cost): Add break statements
2143 to avoid falling through to the wrong cases. Tidy code.
2145 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2147 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2148 For multi-registers modes, test how big each register part is.
2150 2019-09-30 Nick Clifton <nickc@redhat.com>
2153 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2154 (TARGET_ASM_SELECT_SECTION): Remove definition.
2155 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2157 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2159 * emit-rtl.c (init_raw_REG): New function.
2160 (gen_raw_REG): Use init_raw_REG.
2161 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2163 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2164 * rtl.h (rtx_init): New function.
2165 (rtx_alloca): New function.
2166 (init_raw_REG): New function.
2167 (alloca_raw_REG): New macro.
2169 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2171 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2172 (pcrel_local_address): Replace pcrel_address predicate, use the
2173 new function address_to_insn_form.
2174 (pcrel_external_address): Replace with new implementation using
2175 address_to_insn_form..
2176 (prefixed_mem_operand): Delete predicate which is now unused.
2177 (pcrel_external_mem_operand): Delete predicate which is now
2179 * config/rs6000/rs6000-protos.h (enum insn_form): New
2181 (enum non_prefixed_form): New enumeration.
2182 (address_to_insn_form): New declaration.
2183 (prefixed_load_p): New declaration.
2184 (prefixed_store_p): New declaration.
2185 (prefixed_paddi_p): New declaration.
2186 (rs6000_asm_output_opcode): New declaration.
2187 (rs6000_final_prescan_insn): Move declaration and update calling
2189 (address_is_prefixed): New helper inline function.
2190 * config/rs6000/rs6000.c(print_operand_address): Check for either
2191 PC-relative local symbols or PC-relative external symbols.
2192 (rs6000_emit_move): Support loading PC-relative addresses.
2193 (mode_supports_prefixed_address_p): Delete, no longer used.
2194 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2195 (address_to_insn_form): New function to decode an address format.
2196 (reg_to_non_prefixed): New function to identify what the
2197 non-prefixed memory instruction format is for a register.
2198 (prefixed_load_p): New function to identify prefixed loads.
2199 (prefixed_store_p): New function to identify prefixed stores.
2200 (prefixed_paddi_p): New function to identify prefixed load
2202 (next_insn_prefixed_p): New static state variable.
2203 (rs6000_final_prescan_insn): New function to determine if an insn
2204 uses a prefixed instruction.
2205 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2206 prefixed instruction.
2207 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2208 (ASM_OUTPUT_OPCODE): New target hook.
2209 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2210 prefixed instructions.
2211 (prefixed_length): New insn attribute for the size of prefixed
2213 (non_prefixed_length): New insn attribute for the size of
2214 non-prefixed instructions.
2215 (pcrel_local_addr): New insn to load up a local PC-relative
2217 (pcrel_extern_addr): New insn to load up an external PC-relative
2219 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2220 GPR and loading a 128-bit floating point type to a GPR.
2222 2019-09-30 Richard Biener <rguenther@suse.de>
2224 * gimple.c (gimple_get_lhs): For PHIs return the result.
2225 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2226 SLP instance as argument.
2227 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2228 double-reduction PHIs with vectorizable_lc_phi.
2229 (vect_analyze_loop_operations): Adjust.
2230 (vect_create_epilog_for_reduction): Remove all code not dealing
2231 with reduction LC PHI or epilogue generation.
2232 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2233 for live stmts of reductions.
2234 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2235 do not handle defs that are not vect_internal_def.
2236 (can_vectorize_live_stmts): Adjust.
2237 (vect_analyze_stmt): When the vectorized stmt defined a value
2238 used on backedges adjust the backedge uses of vectorized PHIs.
2240 2019-09-30 Martin Jambor <mjambor@suse.cz>
2243 * tree-inline.c (force_value_to_type): New function.
2244 (setup_one_parameter): Use force_value_to_type to convert type.
2245 * tree-inline.c (force_value_to_type): Declare.
2246 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2247 with register type mismatches.
2249 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2251 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2253 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2254 * config/rs6000/t-freebsd64: Make use of the above define and build
2255 the 32-bit libraries with secure-plt.
2257 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2260 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2261 gen_int_mode instead of GEN_INT.
2263 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2265 * config/darwin.c (gen_macho_low): Amend to include the mode
2267 (machopic_indirect_data_reference): Amend gen_macho_low call
2268 to include mode argument
2269 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2270 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2271 the macho_high expander and two define_insn entries.
2273 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2276 * optc-save-gen.awk: Fix up printing string option differences.
2278 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2280 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2281 vec_perm cost to 1 for non-Power7 VSX architectures.
2283 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2285 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2286 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2287 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2289 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2291 * config/darwin.c (gen_macho_high): Amend to include the mode
2293 (machopic_indirect_data_reference): Amend gen_macho_high call
2294 to include mode argument.
2295 (machopic_legitimize_pic_address): Likewise.
2296 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2297 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2298 the macho_high expander and two define_insn entries.
2300 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2303 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2305 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2308 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2309 std::string::compare instead of std::string::find.
2311 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2313 * configure: Regenerate.
2315 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2318 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2319 variables as shared.
2321 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2323 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2324 replaces the expander and two define_insn entries.
2325 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2327 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2329 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2331 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2332 (fibonacci_heap::nodes): Likewise.
2333 (fibonacci_heap::min_key): Likewise.
2334 (fibonacci_heap::min): Likewise.
2336 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2338 * cgraph.c (cgraph_node::get_fun): Make const.
2339 * cgraph.h (cgraph_node::get_fun): Likewise.
2341 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2344 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2347 2019-09-27 Richard Biener <rguenther@suse.de>
2349 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2350 (STMT_VINFO_REDUC_FN): Likewise.
2351 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2352 STMT_VINFO_REDUC_FN.
2353 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2354 for condition reductions.
2355 (vect_create_epilog_for_reduction): Compute all required state
2356 from the stmt to be vectorized.
2357 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2358 invocation and remove then dead code. For single def-use chains
2359 record only a single vector stmt.
2361 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2363 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2364 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2365 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2366 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2367 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2368 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2369 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2370 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2371 (aarch64_general_builtin_rsqrt): Declare.
2372 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2374 (aarch64_mangle_builtin_type): Rename to...
2375 (aarch64_general_mangle_builtin_type): ...this.
2376 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2377 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2378 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2379 aarch64_general_add_builtin instead of add_builtin_function.
2380 (aarch64_init_builtins): Rename to...
2381 (aarch64_general_init_builtins): ...this. Use
2382 aarch64_general_add_builtin instead of add_builtin_function.
2383 (aarch64_builtin_decl): Rename to...
2384 (aarch64_general_builtin_decl): ...this and remove the unused
2386 (aarch64_expand_builtin): Rename to...
2387 (aarch64_general_expand_builtin): ...this and remove the unused
2389 (aarch64_builtin_rsqrt): Rename to...
2390 (aarch64_general_builtin_rsqrt): ...this.
2391 (aarch64_fold_builtin): Rename to...
2392 (aarch64_general_fold_builtin): ...this. Take the function subcode
2393 and return type as arguments. Remove the "ignored" argument.
2394 (aarch64_gimple_fold_builtin): Rename to...
2395 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2396 subcode and gcall as arguments, and return the new function call.
2397 * config/aarch64/aarch64.c (aarch64_init_builtins)
2398 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2399 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2400 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2401 instead of aarch64_builtin_rsqrt.
2402 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2403 instead of aarch64_mangle_builtin_type.
2405 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2407 * target.def (check_builtin_call): New target hook.
2408 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2409 * doc/tm.texi: Regenerate.
2411 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2413 PR tree-optimization/91909
2414 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2415 reduc_index parameter. When handling COND_REDUCTION, make sure
2416 that the reduction phi operand is in the correct arm of the
2418 (vectorizable_reduction): Pass reduc_index to the above.
2420 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2422 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2423 New combine pattern.
2425 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2427 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2428 loop instruction into new basic block before the loop when basic
2429 block that precedes the loop is empty.
2431 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2433 * function.c (gimplify_parameters): Use build_clobber function.
2434 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2435 * tree-inline.c (expand_call_inline): Likewise.
2436 * tree-sra.c (clobber_subtree): Likewise.
2437 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2438 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2439 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2440 lower_omp_target): Likewise.
2441 * omp-expand.c (expand_omp_for_generic): Likewise.
2442 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2444 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2446 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2447 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2448 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2449 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2450 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2451 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2452 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2453 LD_ELEMREV_V16QI): Use the PURE attribute.
2455 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2457 * config/rs6000/darwin.md: Replace the expanders for
2458 load_macho_picbase and reload_macho_picbase with use of '@'
2459 and <mode> in their respective define_insns.
2460 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2461 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2462 Pmode to gen_load_macho_picbase.
2463 * config/rs6000/rs6000.md: Likewise.
2465 2019-09-25 Richard Biener <rguenther@suse.de>
2467 PR tree-optimization/91896
2468 * tree-vect-loop.c (vectorizable_reduction): The single
2469 def-use cycle optimization cannot apply when there's more
2470 than one pattern stmt involved.
2472 2019-09-26 Richard Biener <rguenther@suse.de>
2474 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2475 loop-closed PHIs that are vect_internal_def.
2476 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2478 (vectorizable_lc_phi): New.
2479 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2480 (vect_transform_stmt): Likewise.
2481 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2482 (vectorizable_lc_phi): Declare.
2484 2019-09-26 Richard Biener <rguenther@suse.de>
2486 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2487 vectorizable_reduction for vect_double_reduction_def.
2488 (vect_transform_loop): Likewise.
2489 (vect_create_epilog_for_reduction): Move double-reduction
2490 PHI creation and preheader argument setting of PHIs ...
2491 (vectorizable_reduction): ... here. Also process
2492 vect_double_reduction_def PHIs, creating the vectorized
2493 PHI nodes, remembering the scalar adjustment computed for
2494 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2495 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2496 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2497 Initialize STMT_VINFO_REDUC_CODE.
2498 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2499 (_stmt_vec_info::reduc_code): Likewise.
2500 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2501 (STMT_VINFO_REDUC_CODE): Likewise.
2503 2019-09-26 Matt Turner <mattst88@gmail.com>
2506 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2507 (mtune=): Add Negative(mtune=).
2508 (mcpu=): Add Negative(mcpu=).
2509 * config/arm/arm.opt: Likewise.
2511 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2513 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2514 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2516 * config/arm/arm_acle.h: Define builtins for the above.
2517 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2518 (simd32_op): Handle the above.
2519 * config/arm/unspecs.md: Define unspecs for the above.
2521 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2523 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2524 (arm_<sup>xtb16): Likewise.
2525 (arm_usada8): Likewise.
2526 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2527 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2528 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2529 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2530 __sxtb16, __uxtab16, __uxtb16): Define.
2531 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2532 * config/arm/unspecs.md: Define unspecs for the above.
2533 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2534 (USXTB16): Likewise.
2535 (simd32_op): New int_attribute.
2536 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2537 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2539 2019-09-26 Martin Jambor <mjambor@suse.cz>
2541 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2544 2019-09-26 Martin Jambor <mjambor@suse.cz>
2546 * ipa-sra.c (process_scan_results): Fix continue condition.
2548 2019-09-26 Martin Liska <mliska@suse.cz>
2550 PR tree-optimization/91885
2551 * tree-vectorizer.c (try_vectorize_loop_1): Add
2552 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2554 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2556 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2557 aarch64_plus_immediate rather than aarch64_uimm12_shift
2558 to test for valid PLUS immediates.
2560 2019-09-25 Martin Jambor <mjambor@suse.cz>
2562 * tree-sra.c (no_accesses_p): Remove.
2563 (no_accesses_representant): Likewise.
2565 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2567 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2569 (vaba_s16): Likewise.
2570 (vaba_s32): Likewise.
2571 (vaba_u8): Likewise.
2572 (vaba_u16): Likewise.
2573 (vaba_u32): Likewise.
2574 (vabal_high_s8): Likewise.
2575 (vabal_high_s16): Likewise.
2576 (vabal_high_s32): Likewise.
2577 (vabal_high_u8): Likewise.
2578 (vabal_high_u16): Likewise.
2579 (vabal_high_u32): Likewise.
2580 (vabal_s8): Likewise.
2581 (vabal_s16): Likewise.
2582 (vabal_s32): Likewise.
2583 (vabal_u8): Likewise.
2584 (vabal_u16): Likewise.
2585 (vabal_u32): Likewise.
2586 (vabaq_s8): Likewise.
2587 (vabaq_s16): Likewise.
2588 (vabaq_s32): Likewise.
2589 (vabaq_u8): Likewise.
2590 (vabaq_u16): Likewise.
2591 (vabaq_u32): Likewise.
2592 (vabd_s8): Likewise.
2593 (vabd_s16): Likewise.
2594 (vabd_s32): Likewise.
2595 (vabd_u8): Likewise.
2596 (vabd_u16): Likewise.
2597 (vabd_u32): Likewise.
2598 (vabdl_high_s8): Likewise.
2599 (vabdl_high_s16): Likewise.
2600 (vabdl_high_s32): Likewise.
2601 (vabdl_high_u8): Likewise.
2602 (vabdl_high_u16): Likewise.
2603 (vabdl_high_u32): Likewise.
2604 (vabdl_s8): Likewise.
2605 (vabdl_s16): Likewise.
2606 (vabdl_s32): Likewise.
2607 (vabdl_u8): Likewise.
2608 (vabdl_u16): Likewise.
2609 (vabdl_u32): Likewise.
2610 (vabdq_s8): Likewise.
2611 (vabdq_s16): Likewise.
2612 (vabdq_s32): Likewise.
2613 (vabdq_u8): Likewise.
2614 (vabdq_u16): Likewise.
2615 (vabdq_u32): Likewise.
2616 (vaddlv_s8): Likewise.
2617 (vaddlv_s16): Likewise.
2618 (vaddlv_u8): Likewise.
2619 (vaddlv_u16): Likewise.
2620 (vaddlvq_s8): Likewise.
2621 (vaddlvq_s16): Likewise.
2622 (vaddlvq_s32): Likewise.
2623 (vaddlvq_u8): Likewise.
2624 (vaddlvq_u16): Likewise.
2625 (vaddlvq_u32): Likewise.
2626 (vcvtx_f32_f64): Likewise.
2627 (vcvtx_high_f32_f64): Likewise.
2628 (vcvtxd_f32_f64): Likewise.
2629 (vmla_n_f32): Likewise.
2630 (vmla_n_s16): Likewise.
2631 (vmla_n_s32): Likewise.
2632 (vmla_n_u16): Likewise.
2633 (vmla_n_u32): Likewise.
2634 (vmla_s8): Likewise.
2635 (vmla_s16): Likewise.
2636 (vmla_s32): Likewise.
2637 (vmla_u8): Likewise.
2638 (vmla_u16): Likewise.
2639 (vmla_u32): Likewise.
2640 (vmlal_high_n_s16): Likewise.
2641 (vmlal_high_n_s32): Likewise.
2642 (vmlal_high_n_u16): Likewise.
2643 (vmlal_high_n_u32): Likewise.
2644 (vmlal_high_s8): Likewise.
2645 (vmlal_high_s16): Likewise.
2646 (vmlal_high_s32): Likewise.
2647 (vmlal_high_u8): Likewise.
2648 (vmlal_high_u16): Likewise.
2649 (vmlal_high_u32): Likewise.
2650 (vmlal_n_s16): Likewise.
2651 (vmlal_n_s32): Likewise.
2652 (vmlal_n_u16): Likewise.
2653 (vmlal_n_u32): Likewise.
2654 (vmlal_s8): Likewise.
2655 (vmlal_s16): Likewise.
2656 (vmlal_s32): Likewise.
2657 (vmlal_u8): Likewise.
2658 (vmlal_u16): Likewise.
2659 (vmlal_u32): Likewise.
2660 (vmlaq_n_f32): Likewise.
2661 (vmlaq_n_s16): Likewise.
2662 (vmlaq_n_s32): Likewise.
2663 (vmlaq_n_u16): Likewise.
2664 (vmlaq_n_u32): Likewise.
2665 (vmlaq_s8): Likewise.
2666 (vmlaq_s16): Likewise.
2667 (vmlaq_s32): Likewise.
2668 (vmlaq_u8): Likewise.
2669 (vmlaq_u16): Likewise.
2670 (vmlaq_u32): Likewise.
2671 (vmls_n_f32): Likewise.
2672 (vmls_n_s16): Likewise.
2673 (vmls_n_s32): Likewise.
2674 (vmls_n_u16): Likewise.
2675 (vmls_n_u32): Likewise.
2676 (vmls_s8): Likewise.
2677 (vmls_s16): Likewise.
2678 (vmls_s32): Likewise.
2679 (vmls_u8): Likewise.
2680 (vmls_u16): Likewise.
2681 (vmls_u32): Likewise.
2682 (vmlsl_high_n_s16): Likewise.
2683 (vmlsl_high_n_s32): Likewise.
2684 (vmlsl_high_n_u16): Likewise.
2685 (vmlsl_high_n_u32): Likewise.
2686 (vmlsl_high_s8): Likewise.
2687 (vmlsl_high_s16): Likewise.
2688 (vmlsl_high_s32): Likewise.
2689 (vmlsl_high_u8): Likewise.
2690 (vmlsl_high_u16): Likewise.
2691 (vmlsl_high_u32): Likewise.
2692 (vmlsl_n_s16): Likewise.
2693 (vmlsl_n_s32): Likewise.
2694 (vmlsl_n_u16): Likewise.
2695 (vmlsl_n_u32): Likewise.
2696 (vmlsl_s8): Likewise.
2697 (vmlsl_s16): Likewise.
2698 (vmlsl_s32): Likewise.
2699 (vmlsl_u8): Likewise.
2700 (vmlsl_u16): Likewise.
2701 (vmlsl_u32): Likewise.
2702 (vmlsq_n_f32): Likewise.
2703 (vmlsq_n_s16): Likewise.
2704 (vmlsq_n_s32): Likewise.
2705 (vmlsq_n_u16): Likewise.
2706 (vmlsq_n_u32): Likewise.
2707 (vmlsq_s8): Likewise.
2708 (vmlsq_s16): Likewise.
2709 (vmlsq_s32): Likewise.
2710 (vmlsq_u8): Likewise.
2711 (vmlsq_u16): Likewise.
2712 (vmlsq_u32): Likewise.
2713 (vmovl_high_s8): Likewise.
2714 (vmovl_high_s16): Likewise.
2715 (vmovl_high_s32): Likewise.
2716 (vmovl_high_u8): Likewise.
2717 (vmovl_high_u16): Likewise.
2718 (vmovl_high_u32): Likewise.
2719 (vmovl_s8): Likewise.
2720 (vmovl_s16): Likewise.
2721 (vmovl_s32): Likewise.
2722 (vmovl_u8): Likewise.
2723 (vmovl_u16): Likewise.
2724 (vmovl_u32): Likewise.
2725 (vmovn_high_s16): Likewise.
2726 (vmovn_high_s32): Likewise.
2727 (vmovn_high_s64): Likewise.
2728 (vmovn_high_u16): Likewise.
2729 (vmovn_high_u32): Likewise.
2730 (vmovn_high_u64): Likewise.
2731 (vmovn_s16): Likewise.
2732 (vmovn_s32): Likewise.
2733 (vmovn_s64): Likewise.
2734 (vmovn_u16): Likewise.
2735 (vmovn_u32): Likewise.
2736 (vmovn_u64): Likewise.
2737 (vmull_high_n_s16): Likewise.
2738 (vmull_high_n_s32): Likewise.
2739 (vmull_high_n_u16): Likewise.
2740 (vmull_high_n_u32): Likewise.
2741 (vmull_high_p8): Likewise.
2742 (vmull_high_s8): Likewise.
2743 (vmull_high_s16): Likewise.
2744 (vmull_high_s32): Likewise.
2745 (vmull_high_u8): Likewise.
2746 (vmull_high_u16): Likewise.
2747 (vmull_high_u32): Likewise.
2748 (vmull_n_s16): Likewise.
2749 (vmull_n_s32): Likewise.
2750 (vmull_n_u16): Likewise.
2751 (vmull_n_u32): Likewise.
2752 (vmull_p8): Likewise.
2753 (vmull_s8): Likewise.
2754 (vmull_s16): Likewise.
2755 (vmull_s32): Likewise.
2756 (vmull_u8): Likewise.
2757 (vmull_u16): Likewise.
2758 (vmull_u32): Likewise.
2759 (vpadal_s8): Likewise.
2760 (vpadal_s16): Likewise.
2761 (vpadal_s32): Likewise.
2762 (vpadal_u8): Likewise.
2763 (vpadal_u16): Likewise.
2764 (vpadal_u32): Likewise.
2765 (vpadalq_s8): Likewise.
2766 (vpadalq_s16): Likewise.
2767 (vpadalq_s32): Likewise.
2768 (vpadalq_u8): Likewise.
2769 (vpadalq_u16): Likewise.
2770 (vpadalq_u32): Likewise.
2771 (vpaddl_s8): Likewise.
2772 (vpaddl_s16): Likewise.
2773 (vpaddl_s32): Likewise.
2774 (vpaddl_u8): Likewise.
2775 (vpaddl_u16): Likewise.
2776 (vpaddl_u32): Likewise.
2777 (vpaddlq_s8): Likewise.
2778 (vpaddlq_s16): Likewise.
2779 (vpaddlq_s32): Likewise.
2780 (vpaddlq_u8): Likewise.
2781 (vpaddlq_u16): Likewise.
2782 (vpaddlq_u32): Likewise.
2783 (vpaddq_s8): Likewise.
2784 (vpaddq_s16): Likewise.
2785 (vpaddq_s32): Likewise.
2786 (vpaddq_s64): Likewise.
2787 (vpaddq_u8): Likewise.
2788 (vpaddq_u16): Likewise.
2789 (vpaddq_u32): Likewise.
2790 (vpaddq_u64): Likewise.
2791 (vqdmulh_n_s16): Likewise.
2792 (vqdmulh_n_s32): Likewise.
2793 (vqdmulhq_n_s16): Likewise.
2794 (vqdmulhq_n_s32): Likewise.
2795 (vqmovn_high_s16): Likewise.
2796 (vqmovn_high_s32): Likewise.
2797 (vqmovn_high_s64): Likewise.
2798 (vqmovn_high_u16): Likewise.
2799 (vqmovn_high_u32): Likewise.
2800 (vqmovn_high_u64): Likewise.
2801 (vqmovun_high_s16): Likewise.
2802 (vqmovun_high_s32): Likewise.
2803 (vqmovun_high_s64): Likewise.
2804 (vqrdmulh_n_s16): Likewise.
2805 (vqrdmulh_n_s32): Likewise.
2806 (vqrdmulhq_n_s16): Likewise.
2807 (vqrdmulhq_n_s32): Likewise.
2808 (vrsqrte_u32): Likewise.
2809 (vrsqrteq_u32): Likewise.
2810 (vtst_p8): Likewise.
2811 (vtst_p16): Likewise.
2812 (vtst_p64): Likewise.
2813 (vtstq_p8): Likewise.
2814 (vtstq_p16): Likewise.
2815 (vtstq_p64): Likewise.
2816 (vaddlv_s32): Likewise.
2817 (vaddlv_u32): Likewise.
2818 (vqtbl1_p8): Likewise.
2819 (vqtbl1_s8): Likewise.
2820 (vqtbl1_u8): Likewise.
2821 (vqtbl1q_p8): Likewise.
2822 (vqtbl1q_s8): Likewise.
2823 (vqtbl1q_u8): Likewise.
2824 (vqtbx1_s8): Likewise.
2825 (vqtbx1_u8): Likewise.
2826 (vqtbx1_p8): Likewise.
2827 (vqtbx1q_s8): Likewise.
2828 (vqtbx1q_u8): Likewise.
2829 (vqtbx1q_p8): Likewise.
2830 (vtbl1_s8): Likewise.
2831 (vtbl1_u8): Likewise.
2832 (vtbl1_p8): Likewise.
2833 (vtbl2_s8): Likewise.
2834 (vtbl2_u8): Likewise.
2835 (vtbl2_p8): Likewise.
2836 (vtbl3_s8): Likewise.
2837 (vtbl3_u8): Likewise.
2838 (vtbl3_p8): Likewise.
2839 (vtbl4_s8): Likewise.
2840 (vtbl4_u8): Likewise.
2841 (vtbl4_p8): Likewise.
2842 (vtbx2_s8): Likewise.
2843 (vtbx2_u8): Likewise.
2844 (vtbx2_p8): Likewise.
2845 (vld1_f32): Likewise.
2846 (vld1_f64): Likewise.
2847 (vld1_p8): Likewise.
2848 (vld1_p16): Likewise.
2849 (vld1_p64): Likewise.
2850 (vld1_s8): Likewise.
2851 (vld1_s16): Likewise.
2852 (vld1_s32): Likewise.
2853 (vld1_s64): Likewise.
2854 (vld1_u8): Likewise.
2855 (vld1_u16): Likewise.
2856 (vld1_u32): Likewise.
2857 (vld1_u64): Likewise.
2858 (vld1q_f32): Likewise.
2859 (vld1q_f64): Likewise.
2860 (vld1q_p8): Likewise.
2861 (vld1q_p16): Likewise.
2862 (vld1q_p64): Likewise.
2863 (vld1q_s8): Likewise.
2864 (vld1q_s16): Likewise.
2865 (vld1q_s32): Likewise.
2866 (vld1q_s64): Likewise.
2867 (vld1q_u8): Likewise.
2868 (vld1q_u16): Likewise.
2869 (vld1q_u32): Likewise.
2870 (vld1q_u64): Likewise.
2871 (vpmax_s8): Likewise.
2872 (vpmax_s16): Likewise.
2873 (vpmax_s32): Likewise.
2874 (vpmax_u8): Likewise.
2875 (vpmax_u16): Likewise.
2876 (vpmax_u32): Likewise.
2877 (vpmaxq_s8): Likewise.
2878 (vpmaxq_s16): Likewise.
2879 (vpmaxq_s32): Likewise.
2880 (vpmaxq_u8): Likewise.
2881 (vpmaxq_u16): Likewise.
2882 (vpmaxq_u32): Likewise.
2883 (vpmax_f32): Likewise.
2884 (vpmaxq_f32): Likewise.
2885 (vpmaxq_f64): Likewise.
2886 (vpmaxqd_f64): Likewise.
2887 (vpmaxs_f32): Likewise.
2888 (vpmaxnm_f32): Likewise.
2889 (vpmaxnmq_f32): Likewise.
2890 (vpmaxnmq_f64): Likewise.
2891 (vpmaxnmqd_f64): Likewise.
2892 (vpmaxnms_f32): Likewise.
2893 (vpmin_s8): Likewise.
2894 (vpmin_s16): Likewise.
2895 (vpmin_s32): Likewise.
2896 (vpmin_u8): Likewise.
2897 (vpmin_u16): Likewise.
2898 (vpmin_u32): Likewise.
2899 (vpminq_s8): Likewise.
2900 (vpminq_s16): Likewise.
2901 (vpminq_s32): Likewise.
2902 (vpminq_u8): Likewise.
2903 (vpminq_u16): Likewise.
2904 (vpminq_u32): Likewise.
2905 (vpmin_f32): Likewise.
2906 (vpminq_f32): Likewise.
2907 (vpminq_f64): Likewise.
2908 (vpminqd_f64): Likewise.
2909 (vpmins_f32): Likewise.
2910 (vpminnm_f32): Likewise.
2911 (vpminnmq_f32): Likewise.
2912 (vpminnmq_f64): Likewise.
2913 (vpminnmqd_f64): Likewise.
2914 (vpminnms_f32): Likewise.
2915 (vmla_f32): Likewise.
2916 (vmlaq_f32): Likewise.
2917 (vmlaq_f64): Likewise.
2918 (vmls_f32): Likewise.
2919 (vmlsq_f32): Likewise.
2920 (vmlsq_f64): Likewise.
2921 (vqtbl2_s8): Likewise.
2922 (vqtbl2_u8): Likewise.
2923 (vqtbl2_p8): Likewise.
2924 (vqtbl2q_s8): Likewise.
2925 (vqtbl2q_u8): Likewise.
2926 (vqtbl2q_p8): Likewise.
2927 (vqtbl3_s8): Likewise.
2928 (vqtbl3_u8): Likewise.
2929 (vqtbl3_p8): Likewise.
2930 (vqtbl3q_s8): Likewise.
2931 (vqtbl3q_u8): Likewise.
2932 (vqtbl3q_p8): Likewise.
2933 (vqtbl4_s8): Likewise.
2934 (vqtbl4_u8): Likewise.
2935 (vqtbl4_p8): Likewise.
2936 (vqtbl4q_s8): Likewise.
2937 (vqtbl4q_u8): Likewise.
2938 (vqtbl4q_p8): Likewise.
2939 (vqtbx2_s8): Likewise.
2940 (vqtbx2_u8): Likewise.
2941 (vqtbx2_p8): Likewise.
2942 (vqtbx2q_s8): Likewise.
2943 (vqtbx2q_u8): Likewise.
2944 (vqtbx2q_p8): Likewise.
2945 (vqtbx3_s8): Likewise.
2946 (vqtbx3_u8): Likewise.
2947 (vqtbx3_p8): Likewise.
2948 (vqtbx3q_s8): Likewise.
2949 (vqtbx3q_u8): Likewise.
2950 (vqtbx3q_p8): Likewise.
2951 (vqtbx4_s8): Likewise.
2952 (vqtbx4_u8): Likewise.
2953 (vqtbx4_p8): Likewise.
2954 (vqtbx4q_s8): Likewise.
2955 (vqtbx4q_u8): Likewise.
2956 (vqtbx4q_p8): Likewise.
2957 (vrev16_p8): Likewise.
2958 (vrev16_s8): Likewise.
2959 (vrev16_u8): Likewise.
2960 (vrev16q_p8): Likewise.
2961 (vrev16q_s8): Likewise.
2962 (vrev16q_u8): Likewise.
2963 (vrev32_p8): Likewise.
2964 (vrev32_p16): Likewise.
2965 (vrev32_s8): Likewise.
2966 (vrev32_s16): Likewise.
2967 (vrev32_u8): Likewise.
2968 (vrev32_u16): Likewise.
2969 (vrev32q_p8): Likewise.
2970 (vrev32q_p16): Likewise.
2971 (vrev32q_s8): Likewise.
2972 (vrev32q_s16): Likewise.
2973 (vrev32q_u8): Likewise.
2974 (vrev32q_u16): Likewise.
2975 (vrev64_f32): Likewise.
2976 (vrev64_p8): Likewise.
2977 (vrev64_p16): Likewise.
2978 (vrev64_s8): Likewise.
2979 (vrev64_s16): Likewise.
2980 (vrev64_s32): Likewise.
2981 (vrev64_u8): Likewise.
2982 (vrev64_u16): Likewise.
2983 (vrev64_u32): Likewise.
2984 (vrev64q_f32): Likewise.
2985 (vrev64q_p8): Likewise.
2986 (vrev64q_p16): Likewise.
2987 (vrev64q_s8): Likewise.
2988 (vrev64q_s16): Likewise.
2989 (vrev64q_s32): Likewise.
2990 (vrev64q_u8): Likewise.
2991 (vrev64q_u16): Likewise.
2992 (vrev64q_u32): Likewise.
2993 (vsha1cq_u32): Likewise.
2994 (vsha1mq_u32): Likewise.
2995 (vsha1pq_u32): Likewise.
2996 (vsha1h_u32): Likewise.
2997 (vsha1su0q_u32): Likewise.
2998 (vsha1su1q_u32): Likewise.
2999 (vsha256hq_u32): Likewise.
3000 (vsha256h2q_u32): Likewise.
3001 (vsha256su0q_u32): Likewise.
3002 (vsha256su1q_u32): Likewise.
3003 (vmull_p64): Likewise.
3004 (vmull_high_p64): Likewise.
3005 (vsqrt_f32): Likewise.
3006 (vsqrtq_f32): Likewise.
3007 (vsqrt_f64): Likewise.
3008 (vsqrtq_f64): Likewise.
3009 (vst1_f32): Likewise.
3010 (vst1_f64): Likewise.
3011 (vst1_p8): Likewise.
3012 (vst1_p16): Likewise.
3013 (vst1_p64): Likewise.
3014 (vst1_s8): Likewise.
3015 (vst1_s16): Likewise.
3016 (vst1_s32): Likewise.
3017 (vst1_s64): Likewise.
3018 (vst1_u8): Likewise.
3019 (vst1_u16): Likewise.
3020 (vst1_u32): Likewise.
3021 (vst1_u64): Likewise.
3022 (vst1q_f32): Likewise.
3023 (vst1q_f64): Likewise.
3024 (vst1q_p8): Likewise.
3025 (vst1q_p16): Likewise.
3026 (vst1q_p64): Likewise.
3027 (vst1q_s8): Likewise.
3028 (vst1q_s16): Likewise.
3029 (vst1q_s32): Likewise.
3030 (vst1q_s64): Likewise.
3031 (vst1q_u8): Likewise.
3032 (vst1q_u16): Likewise.
3033 (vst1q_u32): Likewise.
3034 (vst1q_u64): Likewise.
3035 (vst1_s64_x2): Likewise.
3036 (vst1_u64_x2): Likewise.
3037 (vst1_f64_x2): Likewise.
3038 (vst1_s8_x2): Likewise.
3039 (vst1_p8_x2): Likewise.
3040 (vst1_s16_x2): Likewise.
3041 (vst1_p16_x2): Likewise.
3042 (vst1_s32_x2): Likewise.
3043 (vst1_u8_x2): Likewise.
3044 (vst1_u16_x2): Likewise.
3045 (vst1_u32_x2): Likewise.
3046 (vst1_f16_x2): Likewise.
3047 (vst1_f32_x2): Likewise.
3048 (vst1_p64_x2): Likewise.
3049 (vst1q_s8_x2): Likewise.
3050 (vst1q_p8_x2): Likewise.
3051 (vst1q_s16_x2): Likewise.
3052 (vst1q_p16_x2): Likewise.
3053 (vst1q_s32_x2): Likewise.
3054 (vst1q_s64_x2): Likewise.
3055 (vst1q_u8_x2): Likewise.
3056 (vst1q_u16_x2): Likewise.
3057 (vst1q_u32_x2): Likewise.
3058 (vst1q_u64_x2): Likewise.
3059 (vst1q_f16_x2): Likewise.
3060 (vst1q_f32_x2): Likewise.
3061 (vst1q_f64_x2): Likewise.
3062 (vst1q_p64_x2): Likewise.
3063 (vst1_s64_x3): Likewise.
3064 (vst1_u64_x3): Likewise.
3065 (vst1_f64_x3): Likewise.
3066 (vst1_s8_x3): Likewise.
3067 (vst1_p8_x3): Likewise.
3068 (vst1_s16_x3): Likewise.
3069 (vst1_p16_x3): Likewise.
3070 (vst1_s32_x3): Likewise.
3071 (vst1_u8_x3): Likewise.
3072 (vst1_u16_x3): Likewise.
3073 (vst1_u32_x3): Likewise.
3074 (vst1_f16_x3): Likewise.
3075 (vst1_f32_x3): Likewise.
3076 (vst1_p64_x3): Likewise.
3077 (vst1q_s8_x3): Likewise.
3078 (vst1q_p8_x3): Likewise.
3079 (vst1q_s16_x3): Likewise.
3080 (vst1q_p16_x3): Likewise.
3081 (vst1q_s32_x3): Likewise.
3082 (vst1q_s64_x3): Likewise.
3083 (vst1q_u8_x3): Likewise.
3084 (vst1q_u16_x3): Likewise.
3085 (vst1q_u32_x3): Likewise.
3086 (vst1q_u64_x3): Likewise.
3087 (vst1q_f16_x3): Likewise.
3088 (vst1q_f32_x3): Likewise.
3089 (vst1q_f64_x3): Likewise.
3090 (vst1q_p64_x3): Likewise.
3091 (vst2_s64): Likewise.
3092 (vst2_u64): Likewise.
3093 (vst2_f64): Likewise.
3094 (vst2_s8): Likewise.
3095 (vst2_p8): Likewise.
3096 (vst2_s16): Likewise.
3097 (vst2_p16): Likewise.
3098 (vst2_s32): Likewise.
3099 (vst2_u8): Likewise.
3100 (vst2_u16): Likewise.
3101 (vst2_u32): Likewise.
3102 (vst2_f16): Likewise.
3103 (vst2_f32): Likewise.
3104 (vst2_p64): Likewise.
3105 (vst2q_s8): Likewise.
3106 (vst2q_p8): Likewise.
3107 (vst2q_s16): Likewise.
3108 (vst2q_p16): Likewise.
3109 (vst2q_s32): Likewise.
3110 (vst2q_s64): Likewise.
3111 (vst2q_u8): Likewise.
3112 (vst2q_u16): Likewise.
3113 (vst2q_u32): Likewise.
3114 (vst2q_u64): Likewise.
3115 (vst2q_f16): Likewise.
3116 (vst2q_f32): Likewise.
3117 (vst2q_f64): Likewise.
3118 (vst2q_p64): Likewise.
3119 (vst3_s64): Likewise.
3120 (vst3_u64): Likewise.
3121 (vst3_f64): Likewise.
3122 (vst3_s8): Likewise.
3123 (vst3_p8): Likewise.
3124 (vst3_s16): Likewise.
3125 (vst3_p16): Likewise.
3126 (vst3_s32): Likewise.
3127 (vst3_u8): Likewise.
3128 (vst3_u16): Likewise.
3129 (vst3_u32): Likewise.
3130 (vst3_f16): Likewise.
3131 (vst3_f32): Likewise.
3132 (vst3_p64): Likewise.
3133 (vst3q_s8): Likewise.
3134 (vst3q_p8): Likewise.
3135 (vst3q_s16): Likewise.
3136 (vst3q_p16): Likewise.
3137 (vst3q_s32): Likewise.
3138 (vst3q_s64): Likewise.
3139 (vst3q_u8): Likewise.
3140 (vst3q_u16): Likewise.
3141 (vst3q_u32): Likewise.
3142 (vst3q_u64): Likewise.
3143 (vst3q_f16): Likewise.
3144 (vst3q_f32): Likewise.
3145 (vst3q_f64): Likewise.
3146 (vst3q_p64): Likewise.
3147 (vst4_s64): Likewise.
3148 (vst4_u64): Likewise.
3149 (vst4_f64): Likewise.
3150 (vst4_s8): Likewise.
3151 (vst4_p8): Likewise.
3152 (vst4_s16): Likewise.
3153 (vst4_p16): Likewise.
3154 (vst4_s32): Likewise.
3155 (vst4_u8): Likewise.
3156 (vst4_u16): Likewise.
3157 (vst4_u32): Likewise.
3158 (vst4_f16): Likewise.
3159 (vst4_f32): Likewise.
3160 (vst4_p64): Likewise.
3161 (vst4q_s8): Likewise.
3162 (vst4q_p8): Likewise.
3163 (vst4q_s16): Likewise.
3164 (vst4q_p16): Likewise.
3165 (vst4q_s32): Likewise.
3166 (vst4q_s64): Likewise.
3167 (vst4q_u8): Likewise.
3168 (vst4q_u16): Likewise.
3169 (vst4q_u32): Likewise.
3170 (vst4q_u64): Likewise.
3171 (vst4q_f16): Likewise.
3172 (vst4q_f32): Likewise.
3173 (vst4q_f64): Likewise.
3174 (vst4q_p64): Likewise.
3175 (vtbx4_s8): Likewise.
3176 (vtbx4_u8): Likewise.
3177 (vtbx4_p8): Likewise.
3178 (vtrn_f32): Likewise.
3179 (vtrn_p8): Likewise.
3180 (vtrn_p16): Likewise.
3181 (vtrn_s8): Likewise.
3182 (vtrn_s16): Likewise.
3183 (vtrn_s32): Likewise.
3184 (vtrn_u8): Likewise.
3185 (vtrn_u16): Likewise.
3186 (vtrn_u32): Likewise.
3187 (vtrnq_f32): Likewise.
3188 (vtrnq_p8): Likewise.
3189 (vtrnq_p16): Likewise.
3190 (vtrnq_s8): Likewise.
3191 (vtrnq_s16): Likewise.
3192 (vtrnq_s32): Likewise.
3193 (vtrnq_u8): Likewise.
3194 (vtrnq_u16): Likewise.
3195 (vtrnq_u32): Likewise.
3196 (vrsqrte_f16): Likewise.
3197 (vrsqrteq_f16): Likewise.
3198 (vsqrt_f16): Likewise.
3199 (vsqrtq_f16): Likewise.
3200 (vabd_f16): Likewise.
3201 (vabdq_f16): Likewise.
3202 (vpadd_f16): Likewise.
3203 (vpaddq_f16): Likewise.
3204 (vpmax_f16): Likewise.
3205 (vpmaxq_f16): Likewise.
3206 (vpmaxnm_f16): Likewise.
3207 (vpmaxnmq_f16): Likewise.
3208 (vpmin_f16): Likewise.
3209 (vpminq_f16): Likewise.
3210 (vpminnm_f16): Likewise.
3211 (vpminnmq_f16): Likewise.
3212 (vrsqrts_f16): Likewise.
3213 (vrsqrtsq_f16): Likewise.
3215 2019-09-25 Richard Biener <rguenther@suse.de>
3217 PR tree-optimization/91896
3218 * tree-vect-loop.c (vectorizable_reduction): The single
3219 def-use cycle optimization cannot apply when there's more
3220 than one pattern stmt involved.
3222 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3224 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3225 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3226 (reload_macho_picbase_<mode>): Likewise.
3228 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3230 * config/rs6000/rs6000.md: Move darwin.md include until
3231 after the definition of the mode iterators.
3233 2019-09-23 Martin Sebor <msebor@redhat.com>
3235 PR tree-optimization/91570
3236 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3237 non-constant minlen, maxlen and maxbound.
3239 2019-09-24 Richard Biener <rguenther@suse.de>
3241 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3243 (_stmt_vec_info::cond_reduc_code): ... this.
3244 (_stmt_vec_info::induc_cond_initial_val): Add.
3245 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3246 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3247 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3248 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3249 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3251 (vect_create_epilog_for_reduction): Drop special
3252 induction condition reduction params, pass in reduction code
3254 (vectorizable_reduction): Perform condition reduction kind
3255 selection only at analysis time. Adjust passing on state.
3257 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3259 * config/aarch64/aarch64.md (mov<mode>): Don't call
3260 aarch64_split_dimode_const_store on volatile MEM.
3262 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3264 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3265 Update hwcap string for fp16fml.
3267 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3270 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3271 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3273 2019-09-24 Martin Liska <mliska@suse.cz>
3275 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3276 instead of if-elseif-elseif-...
3277 * gimple-expr.c (extract_ops_from_tree): Likewise.
3278 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3279 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3281 2019-09-24 Martin Jambor <mjambor@suse.cz>
3284 * ipa-param-manipulation.c (carry_over_param): Make a method of
3285 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3286 in case of a context mismatch.
3287 (ipa_param_body_adjustments::common_initialization): Adjust call to
3289 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3290 private method carry_over_param.
3292 2019-09-24 Martin Jambor <mjambor@suse.cz>
3295 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3297 2019-09-24 Richard Biener <rguenther@suse.de>
3299 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3302 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3304 * config/arm/t-arm (arm-builtins.o): Add dependency on
3305 arm_acle_builtins.def.
3307 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3310 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3311 canonical CONST_INTs. Use gen_rtvec.
3313 2019-09-23 Richard Biener <rguenther@suse.de>
3315 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3316 avoid adjusting by + 0 or * 1.
3317 (vect_create_epilog_for_reduction): Get reduction code only
3318 when necessary. Deal with adjustment_def only when necessary.
3320 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3322 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3325 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3328 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3331 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3333 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3334 code. Merge code blocks with common conditionals. Use declared
3335 macro instead of a magic number for PIC level.
3337 2019-09-21 Martin Sebor <msebor@redhat.com>
3340 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3341 Simplify computation of the offset of the referenced subobject.
3343 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3345 * config/darwin.c (machopic_legitimize_pic_address): Check
3348 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3350 * ira-conflicts.c (can_use_same_reg_p): New function.
3351 (process_reg_shuffles): Take an insn parameter. Ignore cases
3352 in which input operand op_num could seemingly never be allocated
3353 to the same register as the destination.
3354 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3356 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3358 * simplify-rtx.c (neg_const_int): Replace with...
3359 (neg_poly_int_rtx): ...this new function.
3360 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3361 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3362 (simplify_plus_minus): Likewise for constant terms here.
3364 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3366 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3367 HOST_WIDE_PRINT_UNSIGNED.
3369 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3371 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3374 2019-09-20 Maya Rashish <coypu@sdf.org>
3377 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3378 Define to speculation_safe_value_not_needed.
3380 2019-09-20 Richard Biener <rguenther@suse.de>
3381 Uros Bizjak <ubizjak@gmail.com>
3384 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3386 (general_scalar_chain::convert_op): Force not suitable memory
3387 operands to a register.
3389 2019-09-20 Richard Biener <rguenther@suse.de>
3391 PR tree-optimization/91821
3392 * tree-vect-loop.c (check_reduction_path): Check we can compute
3394 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3395 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3396 operands in canonical order.
3397 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3398 STMT_VINFO_REDUC_IDX.
3399 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3400 (STMT_VINFO_REDUC_IDX): Likewise.
3402 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3405 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3407 2019-09-20 Richard Biener <rguenther@suse.de>
3409 PR tree-optimization/91822
3410 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3412 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3413 for reduc_index in nested cycles, adjust vectorizable_condition
3415 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3417 (vect_analyze_stmt): Adjust.
3418 (vect_transform_stmt): Likewise.
3420 2019-09-20 Richard Biener <rguenther@suse.de>
3423 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3424 Ensure there's a sequence point between allocating the new register
3425 and passing a reference to a reg via regno_reg_rtx.
3427 2019-09-20 Martin Jambor <mjambor@suse.cz>
3429 * coretypes.h (cgraph_edge): Declare.
3430 * ipa-param-manipulation.c: Rewrite.
3431 * ipa-param-manipulation.h: Likewise.
3432 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3433 (OBJS): Added ipa-sra.o.
3434 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3435 and ref_p, added fields param_adjustments and performed_splits.
3436 (struct cgraph_clone_info): Remove ags_to_skip and
3437 combined_args_to_skip, new field param_adjustments.
3438 (cgraph_node::create_clone): Changed parameters to use
3439 ipa_param_adjustments.
3440 (cgraph_node::create_virtual_clone): Likewise.
3441 (cgraph_node::create_virtual_clone_with_body): Likewise.
3442 (tree_function_versioning): Likewise.
3443 (cgraph_build_function_type_skip_args): Removed.
3444 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3445 using ipa_param_adjustments.
3446 (clone_of_p): Likewise.
3447 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3448 (build_function_decl_skip_args): Likewise.
3449 (duplicate_thunk_for_node): Adjust parameters using
3450 ipa_param_body_adjustments, copy param_adjustments instead of
3452 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3453 (cgraph_node::create_virtual_clone): Likewise.
3454 (cgraph_node::create_version_clone_with_body): Likewise.
3455 (cgraph_materialize_clone): Likewise.
3456 (symbol_table::materialize_all_clones): Likewise.
3457 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3458 ipa_replace_map check.
3459 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3460 (initialize_node_lattices): Make aware that some parameters might have
3461 already been removed.
3462 (want_remove_some_param_p): New function.
3463 (create_specialized_node): Convert to using ipa_param_adjustments and
3464 deal with possibly pre-existing adjustments.
3465 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3466 (output_node_opt_summary): Do not stream removed fields. Stream
3467 parameter adjustments instead of argumetns to skip.
3468 (input_node_opt_summary): Likewise.
3469 (input_node_opt_summary): Likewise.
3470 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3471 * lto-streamer.h (lto_section_type): Likewise.
3472 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3474 (copy_decl_to_var): Declare.
3475 * tree-inline.c (update_clone_info): Do not remap old_tree.
3476 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3477 statements, walk all extra generated statements and remap their
3479 (redirect_all_calls): Add killed SSA names to a hash set.
3480 (remap_ssa_name): Do not remap killed SSA names.
3481 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3482 half of functionality moved to ipa_param_body_adjustments.
3483 (copy_decl_to_var): Make exported.
3484 (copy_body): Destroy killed_new_ssa_names hash set.
3485 (expand_call_inline): Remap performed splits.
3486 (update_clone_info): Likewise.
3487 (tree_function_versioning): Simplify tree_map processing. Updated to
3488 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3489 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3490 for the new interface.
3491 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3492 (simd_clone_compute_base_data_type): Likewise.
3493 (simd_clone_init_simd_arrays): Adjust for the new interface.
3494 (simd_clone_adjust_argument_types): Likewise.
3495 (struct modify_stmt_info): Likewise.
3496 (ipa_simd_modify_stmt_ops): Likewise.
3497 (ipa_simd_modify_function_body): Likewise.
3498 (simd_clone_adjust): Likewise.
3499 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3500 (type_internals_preclude_sra_p): Make public.
3501 * tree-sra.h: New file.
3502 * ipa-inline-transform.c (save_inline_function_body): Update to
3503 refelct new tree_function_versioning signature.
3504 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3505 ipa_param_adjustments to get current parameter indices.
3506 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3507 (ipcp_update_bits): Likewise.
3508 (ipcp_update_vr): Likewise.
3509 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3510 * ipa-sra.c: New file.
3511 * multiple_target.c (create_target_clone): Update to reflet new type
3512 of create_version_clone_with_body.
3513 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3514 tree_function_versioning.
3515 (modify_function): Update to reflect new type of
3516 tree_function_versioning.
3517 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3518 * passes.def: Remove old IPA-SRA and add new one.
3519 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3520 (make_pass_ipa_sra): Declare.
3521 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3523 * doc/invoke.texi (ipa-sra-max-replacements): New.
3525 2019-09-19 Martin Sebor <msebor@redhat.com>
3528 * builtins.c (component_size): Correct trailing array computation,
3529 rename to component_ref_size and move...
3530 (compute_objsize): Adjust.
3531 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3532 (builtin_access::strict): Do not consider memmove.
3533 (builtin_access::write_off): New function.
3534 (builtin_memref::builtin_memref): Initialize refsize.
3535 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3537 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3539 (builtin_access::builtin_access): Initialize dstoff to destination
3540 refeence offset here instead of in maybe_diag_overlap. Adjust
3541 referencess even to unrelated objects. Adjust sizrange of bounded
3542 string functions to reflect bound. For strcat, adjust destination
3543 sizrange by that of source.
3544 (builtin_access::strcat_overlap): Adjust offsets and sizes
3545 to reflect the increase in destination sizrange above.
3546 (builtin_access::overlap): Do not set dstoff here but instead
3547 in builtin_access::builtin_access.
3548 (check_bounds_or_overlap): Use builtin_access::write_off.
3549 (maybe_diag_access_bounds): Add argument. Add informational notes.
3550 (dump_builtin_memref, dump_builtin_access): New functions.
3551 * tree.c (component_ref_size): ...to here.
3552 * tree.h (component_ref_size): Declare.
3553 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3554 nul in the size of the source string.
3556 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3559 * doc/cpp.texi: Document support for extended characters in
3561 * doc/cppopts.texi: Likewise.
3563 2019-09-19 Richard Biener <rguenther@suse.de>
3565 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3566 (check_reduction_path): New overload having the path as result.
3567 (vect_is_simple_reduction): From the detected reduction
3568 path build a SLP reduction chain if possible.
3570 2019-09-19 Richard Biener <rguenther@suse.de>
3573 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3574 Force operand to a register if it isn't nonimmediate_operand.
3576 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3578 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3579 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3580 (logical_op): Remove code attribute.
3581 (logical_OP): Likewise.
3583 2019-09-19 Martin Liska <mliska@suse.cz>
3585 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3588 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3590 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3593 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3594 for NE comparison of TImode values.
3595 (aarch64_emit_load_exclusive): Add support for TImode.
3596 (aarch64_emit_store_exclusive): Likewise.
3597 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3598 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3599 Change iterator from ALLI to ALLI_TI.
3600 (@atomic_compare_and_swap<JUST_TI>): New.
3601 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3602 (aarch64_load_exclusive_pair): New.
3603 (aarch64_store_exclusive_pair): New.
3604 * config/aarch64/iterators.md (JUST_TI): New.
3606 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3607 strong_zero_p for aarch64_track_speculation; unify some code paths;
3608 use aarch64_gen_compare_reg instead of open-coding.
3610 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3611 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3612 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3613 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3614 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3615 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3616 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3617 (atomic_<atomic_op><ALLI>): Likewise.
3618 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3619 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3620 * doc/invoke.texi: Document -moutline-atomics.
3622 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3624 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3625 trivial predicate for condition branch.
3626 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3628 (compute_bb_predicates): Update predicate based on post-dominating
3630 (analyze_function_body): Calculate post-dominating information.
3632 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3634 * tree-vectorizer.h (vectorizable_condition): Take an int
3635 reduction index instead of a boolean flag.
3636 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3637 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3638 reductions if the reduction accumulator is the "then" rather
3639 than the "else" value.
3640 (vect_analyze_stmt): Update call accordingly.
3641 (vect_transform_stmt): Likewise.
3642 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3643 asserting that the index is > 0.
3645 2019-09-19 Martin Liska <mliska@suse.cz>
3647 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3648 (sort_congruence_classes_by_decl_uid): Likewise.
3649 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3651 (sem_item_optimizer::merge_classes): Likewise.
3653 2019-09-19 Richard Biener <rguenther@suse.de>
3655 PR tree-optimization/91812
3656 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3659 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3661 * defaults.h (TARGET_UNIT): New macro.
3662 (target_unit): New type.
3663 * rtl.h (native_encode_rtx, native_decode_rtx)
3664 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3665 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3666 * rtlanal.c (subreg_lsb_1): Delete.
3667 (subreg_size_lsb): New function.
3668 * simplify-rtx.c: Include rtx-vector-builder.h
3669 (simplify_immed_subreg): Delete.
3670 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3671 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3673 (simplify_subreg): Use them.
3674 (test_vector_subregs_modes, test_vector_subregs_repeating)
3675 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3676 (test_vector_subregs): New functions.
3677 (test_vector_ops): Call test_vector_subregs for integer vector
3678 modes with at least 2 elements.
3680 2019-09-19 Richard Biener <rguenther@suse.de>
3682 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3683 LOOP_VINFO_OPERANDS_SWAPPED.
3684 (parloops_is_simple_reduction): Likewise.
3685 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3686 initialize operands_swapped.
3687 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3688 (vect_is_slp_reduction): Do not swap operands.
3689 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3690 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3692 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3695 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3696 Add avx_partial_xmm_update.
3698 2019-09-18 Jim Wilson <jimw@sifive.com>
3701 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3702 (riscv_move_integer): Likewise.
3703 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3704 riscv_move_integer arg.
3705 (riscv_legitimize_move): Likewise.
3706 (riscv_force_temporary): New parameter in_splitter. Don't call
3708 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3710 (riscv_add_offset): Likewise.
3711 (riscv_split_symbol): New parameter in_splitter. Pass to
3712 riscv_force_temporary.
3713 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3715 (riscv_move_integer): New parameter in_splitter. New local
3716 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3718 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3719 riscv_split_symbol, and riscv_force_temporary args.
3720 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3721 riscv_move_integer arg.
3722 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3724 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3727 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3728 hard register store cost to 6.
3730 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3733 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3734 pseudo register store cost from 3 to 6 to make it the same as
3737 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3740 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3741 (one_cmpldi2): Likewise.
3742 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3743 of the constant parts is simple.
3744 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3745 (logical_op): Add new code attribute.
3746 (logical_OP): Likewise.
3747 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3748 (arm_iordi_operand): Add predicate.
3749 (arm_xordi_operand): Add predicate.
3751 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3753 * config/arm/arm.md (maddsidi4): Remove expander.
3754 (mulsidi3adddi): Remove pattern.
3755 (mulsidi3adddi_v6): Likewise.
3756 (mulsidi3_nov6): Likewise.
3757 (mulsidi3_v6): Likewise.
3758 (umulsidi3): Remove expander.
3759 (umulsidi3_nov6): Remove pattern.
3760 (umulsidi3_v6): Likewise.
3761 (umulsidi3adddi): Likewise.
3762 (umulsidi3adddi_v6): Likewise.
3763 (<Us>mulsidi3): Add combined expander.
3764 (<Us>maddsidi4): Likewise.
3765 (<US>mull): Add combined umull and smull pattern.
3766 (<US>mlal): Likewise.
3767 * config/arm/iterators.md (Us): Add new iterator.
3769 2019-09-18 Richard Biener <rguenther@suse.de>
3771 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3773 (vectorize_fold_left_reduction): Remove assert.
3774 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3775 operand in position 2. Remove assert.
3777 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3779 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3780 (smulsi3_highpart_nov6): Remove pattern.
3781 (smulsi3_highpart_v6): Likewise.
3782 (umulsi3_highpart): Likewise.
3783 (umulsi3_highpart_nov6): Likewise.
3784 (umulsi3_highpart_v6): Likewise.
3785 (<US>mull_high): Add new combined multiply pattern.
3787 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3789 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3790 (arm_mulsi3_v6): Likewise.
3791 (mulsi3addsi_v6): Likewise.
3792 (mulsi3subsi): Likewise.
3793 (mul): Add new multiply pattern.
3797 2019-09-18 Richard Biener <rguenther@suse.de>
3799 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3800 (parloops_valid_reduction_input_p): Copy from
3801 valid_reduction_input_p.
3802 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3803 (parloops_needs_fold_left_reduction_p): Copy from
3804 needs_fold_left_reduction_p.
3805 (parloops_is_simple_reduction): Copy from
3806 vect_is_simple_reduction.
3807 (parloops_force_simple_reduction): Copy from
3808 vect_force_simple_reduction.
3809 (gather_scalar_reductions): Adjust.
3810 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3811 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3813 2019-09-18 Richard Biener <rguenther@suse.de>
3815 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3816 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3818 (vect_create_epilog_for_reduction): Remove dead code.
3820 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3822 * varasm.c (assemble_real): Generate canonical const_ints.
3824 2019-09-18 Richard Biener <rguenther@suse.de>
3827 * lto-streamer-in.c (input_eh_regions): Move EH init to
3828 lto_materialize_function.
3829 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3832 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3834 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3837 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3839 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3840 of checking specifically for INTEGER_CST.
3842 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3844 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3845 sizes instead of uhwi sizes.
3847 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3849 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3850 (add_const_value_attribute): Handle CONST_POLY_INT.
3852 2019-09-18 Martin Liska <mliska@suse.cz>
3854 * dbgcnt.def (store_merging): New counter.
3855 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3856 Use it in store merging.
3858 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3860 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3862 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3863 * config/arm/arm.c (arm_sched_variable_issue): New function.
3864 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3866 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3868 * config/arm/types.md (no_reservation): New reservation.
3869 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3871 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3872 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3873 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3874 * config/arm/arm1020e.md (1020alu_op): Likewise.
3875 * config/arm/arm1026ejs.md (alu_op): Likewise.
3876 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3877 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3878 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3879 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3880 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3881 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3882 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3883 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3884 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3885 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3886 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3887 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3888 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3889 * config/arm/fa526.md (526_alu_op): Likewise.
3890 * config/arm/fa606te.md (606te_alu_op): Likewise.
3891 * config/arm/fa626te.md (626te_alu_op): Likewise.
3892 * config/arm/fa726te.md (726te_alu_op): Likewise.
3893 * config/arm/xgene1.md (xgene1_nop): Likewise.
3895 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3897 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3898 "no_insn" to "branch".
3900 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3902 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3904 2019-09-17 Richard Biener <rguenther@suse.de>
3907 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3908 was missing generate locations only once.
3910 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
3913 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3915 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3916 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3917 for switch default case using range analysis information.
3919 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
3922 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3923 mode attributed is supported by FDPIC.
3925 2019-09-17 Richard Biener <rguenther@suse.de>
3927 PR tree-optimization/91790
3928 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3929 use the correct DR for setting up realignment.
3931 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
3934 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3935 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3936 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3937 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3939 2019-09-16 Jason Merrill <jason@redhat.com>
3941 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3943 2019-09-16 Martin Liska <mliska@suse.cz>
3945 * gimple-fold.c (or_comparisons_1): Remove rules moved
3947 * match.pd: ... here.
3949 2019-09-16 Martin Liska <mliska@suse.cz>
3951 * gimple-fold.c (or_comparisons_1): Remove rules
3953 * match.pd: ... here.
3955 2019-09-16 Martin Liska <mliska@suse.cz>
3957 * genmatch.c (dt_node::append_simplify): Do not print
3958 warning when we have duplicate patterns belonging
3959 to a same simplify rule.
3960 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
3961 (maybe_fold_comparisons_from_match_pd): Handle
3962 tcc_comparison as a results.
3963 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
3965 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3966 Qi Feng <ffengqi@linux.ibm.com>
3969 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
3970 (x > y && x == XXX_MIN): Optimize into 'false'.
3971 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
3972 (x < y && x != XXX_MAX): Optimize into 'x < y'.
3973 (x < y && x == XXX_MAX): Optimize into 'false'.
3974 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
3975 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
3976 (x <= y || x != XXX_MIN): Optimize into 'true'.
3977 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
3978 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
3979 (x >= y || x != XXX_MAX): Optimize into 'true'.
3980 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
3982 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3983 Martin Liska <mliska@suse.cz>
3985 * gimple-fold.c (and_comparisons_1): Add type as first
3987 (and_var_with_comparison): Likewise.
3988 (and_var_with_comparison_1): Likewise.
3989 (or_comparisons_1): Likewise.
3990 (or_var_with_comparison): Likewise.
3991 (or_var_with_comparison_1): Likewise.
3992 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
3993 (maybe_fold_or_comparisons): Likewise.
3994 (maybe_fold_comparisons_from_match_pd): New.
3995 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
3996 (maybe_fold_or_comparisons): Likewise.
3997 * gimple.c (gimple_size): Make it public and add num_ops argument.
3998 (gimple_init): New function.
3999 (gimple_alloc): Call gimple_init.
4000 * gimple.h (gimple_size): New.
4001 (gimple_init): Likewise.
4002 * tree-if-conv.c (fold_or_predicates): Pass type.
4003 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4004 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4005 (optimize_vec_cond_expr): Likewise.
4006 (ovce_extract_ops): Return type of conditional expression.
4007 * tree-ssanames.c (init_ssa_name_imm_use): New.
4008 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4009 * tree-ssanames.h (init_ssa_name_imm_use): New.
4011 2019-09-16 Richard Biener <rguenther@suse.de>
4013 PR tree-optimization/91756
4014 PR tree-optimization/87132
4015 * tree-ssa-alias.h (enum translate_flags): New.
4016 (get_continuation_for_phi): Use it instead of simple bool flag.
4017 (walk_non_aliased_vuses): Likewise.
4018 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4019 (get_continuation_for_phi): When looking across backedges only
4020 disallow valueization.
4021 (walk_non_aliased_vuses): Adjust.
4022 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4025 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4028 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4029 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4030 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4031 * target.def (have_count_reg_decr_p): New hook.
4032 (doloop_cost_for_generic): Likewise.
4033 (doloop_cost_for_address): Likewise.
4034 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4035 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4036 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4037 * doc/tm.texi: Regenerate.
4038 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4040 (record_group): Init doloop_p.
4041 (add_candidate_1): Add optional argument doloop, change the handlings
4043 (add_candidate): Likewise.
4044 (generic_predict_doloop_p): Update attribute.
4045 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4046 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4047 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4049 (get_computation_cost): Update for doloop IV cand extra cost.
4050 (determine_group_iv_cost_cond): Update for doloop IV cand.
4051 (determine_iv_cost): Likewise.
4052 (ivopts_estimate_reg_pressure): Likewise.
4053 (may_eliminate_iv): Update handlings for doloop IV cand.
4054 (add_iv_candidate_for_doloop): New function.
4055 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4056 (iv_ca_set_no_cp): Update for doloop IV cand.
4057 (iv_ca_set_cp): Likewise.
4058 (iv_ca_dump): Dump register cost.
4059 (find_doloop_use): New function.
4060 (analyze_and_mark_doloop_use): Likewise.
4061 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4063 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4066 * cse.c (cse_insn): Do not replace anything with a
4069 2019-09-13 Ian Lance Taylor <iant@golang.org>
4071 * doc/invoke.texi (Optimize Options): Fix typo.
4073 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4075 PR tree-optimization/89386
4076 * config/i386/sse.md (smulhrs<mode>3): New expander.
4077 (smulhrsv4hi3): Ditto.
4079 2019-09-12 Richard Biener <rguenther@suse.de>
4081 PR tree-optimization/91750
4082 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4083 in the type of the evolution.
4085 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4087 PR tree-optimization/89386
4088 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4089 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4090 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4091 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4092 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4093 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4094 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4095 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4096 (su, r): Handle the unspecs above.
4097 (bt): New int attribute.
4098 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4099 * internal-fn.c (first_commutative_argument): Commutativity info for
4101 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4102 (umulhrs_optab): New optabs.
4103 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4104 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4105 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4107 (vect_vect_recog_func_ptrs): Add it.
4109 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4111 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4114 2019-09-11 Nathan Sidwell <nathan@acm.org>
4116 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4117 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4119 2019-09-11 Richard Biener <rguenther@suse.de>
4121 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4122 * lto-wrapper.c (merge_and_complain): Pick up -g.
4123 (append_compiler_options): Likewise.
4124 (run_gcc): Re-instantiate handling -g0 at link-time.
4125 * doc/invoke.texi (flto): Document debug info generation.
4127 2019-09-11 Richard Biener <rguenther@suse.de>
4129 PR tree-optimization/90387
4130 * vr-values.c (vr_values::extract_range_basic): After inlining
4131 simplify non-constant __builtin_constant_p to false.
4133 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4135 PR rtl-optimization/89795
4136 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4137 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4139 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4141 PR tree-optimization/91723
4142 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4143 instead of pointer equality when checking if argument vectypes are
4147 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4148 of get_nonzero_bits, only call it for integral types.
4150 2019-09-11 Richard Biener <rguenther@suse.de>
4153 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4155 * match.pd: Add flag_unsafe_math_optimizations check
4156 before deciding on the widest type in a binary math operation.
4158 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4160 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4161 and CALL_REALLY_USED_REGISTERS must be defined, and that
4162 CALL_REALLY_USED_REGISTERS is preferred.
4163 * doc/tm.texi: Regenerate.
4164 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4165 (call_really_used_regs): Likewise.
4166 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4167 CALL_REALLY_USED_REGISTERS are defined.
4168 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4169 initial value if defined.
4170 (initial_call_really_used_regs): Delete.
4171 (saved_call_really_used_regs): Likewise.
4172 (CALL_REALLY_USED_REGNO_P): Likewise.
4173 (init_reg_sets): Remove handling of call_really_used_regs.
4174 (save_register_info, restore_register_info, globalize_reg): Likewise.
4175 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4176 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4177 outside operand_reg_set.
4178 (fix_register): Don't change call_used_regs if
4179 CALL_REALLY_USED_REGISTERS is defined.
4180 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4181 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4182 instead of call_really_used_regs.
4183 (csky_conditional_register_usage): Remove the old handling of
4184 call_used_regs and change the handling of call_really_used_regs
4185 to use call_used_regs instead.
4186 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4187 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4188 making a register fixed.
4189 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4190 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4191 instead of call_really_used_regs.
4192 (m32r_conditional_register_usage): Don't set call_used_regs when
4193 making a register fixed.
4194 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4195 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4196 instead of call_really_used_regs.
4197 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4198 (mips_cfun_call_saved_reg_p): Likewise.
4199 (mips_swap_registers): Remove the old handling of call_used_regs
4200 and change the handling of call_really_used_regs to use call_used_regs
4202 (mips_conditional_register_usage): Likewise.
4203 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4204 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4205 instead of call_really_used_regs.
4206 (mn10300_get_live_callee_saved_regs): Likewise.
4207 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4208 (mn10300_conditional_register_usage): Don't set call_used_regs when
4209 making a register fixed.
4210 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4211 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4212 Remove the old handling of call_used_regs and change the handling
4213 of call_really_used_regs to use call_used_regs instead.
4214 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4215 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4216 instead of call_really_used_regs.
4217 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4218 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4219 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4220 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4221 (s390_conditional_register_usage): Remove the old handling of
4222 call_used_regs and change the handling of call_really_used_regs
4223 to use call_used_regs instead.
4224 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4225 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4226 (sh_fix_range, reg_unused_after): Likewise.
4227 (sh_conditional_register_usage): Remove the old handling of
4228 call_used_regs and change the handling of call_really_used_regs
4229 to use call_used_regs instead.
4230 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4231 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4232 call_used_regs when making a register fixed.
4233 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4234 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4235 call_used_regs when making a register fixed.
4236 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4237 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4238 set call_used_regs when making a register fixed.
4239 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4240 * config/visium/visium.c (visium_conditional_register_usage): Remove
4241 the old handling of call_used_regs and change the handling of
4242 call_really_used_regs to use call_used_regs instead.
4244 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4246 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4247 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4248 * reginfo.c (call_used_regs): New macro.
4250 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4252 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4254 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4255 (bpf_expand_epilogue): Likewise.
4256 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4257 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4258 (ft32_expand_epilogue): Likewise.
4259 * config/i386/i386.c (ix86_save_reg): Likewise.
4260 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4261 (moxie_expand_epilogue): Likewise.
4262 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4263 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4264 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4266 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4268 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4269 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4270 instead of testing call_used_regs directly.
4271 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4272 (aarch64_components_for_bb): Likewise.
4273 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4274 * config/arc/arc.c (arc_must_save_register): Likewise.
4275 (arc_epilogue_uses): Likewise.
4276 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4277 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4278 (arm_compute_save_reg0_reg12_mask): Likewise.
4279 (arm_compute_save_core_reg_mask): Likewise.
4280 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4281 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4282 (cmse_nonsecure_entry_clear_before_return): Likewise.
4283 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4284 (arm_expand_epilogue): Likewise.
4285 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4286 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4287 (_reg_unused_after): Likewise.
4288 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4289 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4290 (add_to_reg, hwloop_optimize): Likewise.
4291 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4292 (bpf_expand_epilogue): Likewise.
4293 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4294 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4295 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4296 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4297 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4298 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4299 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4300 * config/frv/frv.c (frv_stack_info): Likewise.
4301 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4302 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4303 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4304 (move_callee_saved_registers): Likewise.
4305 * config/h8300/h8300.c (byte_reg): Likewise.
4306 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4307 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4308 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4309 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4310 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4311 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4312 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4313 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4314 * config/m32c/m32c.c (need_to_save): Likewise.
4315 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4316 * config/mcore/mcore.c (calc_live_regs): Likewise.
4317 * config/microblaze/microblaze.c (microblaze_must_save_register):
4319 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4320 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4321 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4322 (mmix_expand_epilogue): Likewise.
4323 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4324 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4325 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4326 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4327 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4328 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4329 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4330 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4331 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4332 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4333 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4334 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4335 * config/rl78/rl78.c (need_to_save): Likewise.
4336 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4337 (rs6000_stack_info, generate_set_vrsave): Likewise.
4338 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4339 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4340 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4341 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4342 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4343 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4344 (save_local_or_in_reg_p): Likewise.
4345 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4346 (xstormy16_epilogue_uses): Likewise.
4347 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4348 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4349 * config/v850/v850.c (compute_register_save_size): Likewise.
4350 * config/vax/vax.c (vax_expand_prologue): Likewise.
4351 * config/visium/visium.c (visium_save_reg_p): Likewise.
4352 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4353 * cselib.c (cselib_process_insn): Likewise.
4354 * df-scan.c (df_get_entry_block_def_set): Likewise.
4355 * function.c (aggregate_value_p): Likewise.
4356 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4357 * ira-lives.c (process_bb_node_lives): Likewise.
4358 * ira.c (do_reload): Likewise.
4359 * lra-lives.c (process_bb_lives): Likewise.
4360 * lra-remat.c (lra_remat): Likewise.
4361 * lra.c (lra): Likewise.
4362 * postreload.c (reload_combine_recognize_pattern): Likewise.
4363 (reload_cse_move2add): Likewise.
4364 * recog.c (peep2_find_free_register): Likewise.
4365 * regrename.c (check_new_reg_p): Likewise.
4366 * reload.c (find_equiv_reg): Likewise.
4367 * reload1.c (reload, find_reg): Likewise.
4368 * sel-sched.c (init_hard_regs_data): Likewise.
4370 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4372 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4373 regs_invalidated_by_call & ~fixed_reg_set instead of
4374 call_used_or_fixed_regs & ~fixed_reg_set.
4375 * config/sh/sh.c (output_stack_adjust): Likewise.
4377 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4379 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4380 (call_used_reg_set): Delete.
4381 (call_used_or_fixed_regs): New macro.
4382 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4383 of call_used_reg_set.
4384 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4385 instead of call_used_regs.
4386 (save_call_clobbered_regs): Likewise.
4387 * cfgcleanup.c (old_insns_match_p): Likewise.
4388 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4389 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4391 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4392 * config/sh/sh.c (output_stack_adjust): Likewise.
4393 * final.c (collect_fn_hard_reg_usage): Likewise.
4394 * ira-build.c (ira_build): Likewise.
4395 * ira-color.c (calculate_saved_nregs): Likewise.
4396 (allocno_reload_assign, calculate_spill_cost): Likewise.
4397 * ira-conflicts.c (ira_build_conflicts): Likewise.
4398 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4399 * ira-lives.c (process_bb_node_lives): Likewise.
4400 * ira.c (setup_reg_renumber): Likewise.
4401 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4402 * lra-constraints.c (need_for_call_save_p): Likewise.
4403 (need_for_split_p, inherit_in_ebb): Likewise.
4404 * lra-lives.c (process_bb_lives): Likewise.
4405 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4406 * postreload.c (reload_combine): Likewise.
4407 * regrename.c (find_rename_reg): Likewise.
4408 * reload1.c (reload_as_needed): Likewise.
4409 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4410 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4411 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4413 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4415 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4416 (no_caller_save_reg_set): Delete.
4417 * caller-save.c (init_caller_save): Don't initialize it.
4418 * ira-conflicts.c (ira_build_conflicts): Calculate
4419 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4421 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4423 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4424 (target_hard_regs::x_savable_regs): New field.
4425 (call_fixed_reg_set): Delete.
4426 (savable_regs): New macro,
4427 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4428 (init_reg_sets_1): Likewise. Initialize savable_regs.
4429 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4430 for all registers. Set savable_regs instead of call_fixed_reg_set.
4431 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4432 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4433 * config/sh/sh.c (output_stack_adjust): Likewise.
4435 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4437 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4438 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4439 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4441 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4443 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4444 * rtlanal.c (get_call_rtx_from): Likewise.
4445 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4446 than the pattern to get_call_rtx_from.
4447 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4448 an rtx_insn * instead of an rtx.
4449 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4451 2019-09-10 Martin Liska <mliska@suse.cz>
4453 * common.opt: Use newly added WarnRemoved.
4454 * config/aarch64/aarch64.opt: Likewise.
4455 * config/arm/arm.opt: Likewise.
4456 * config/i386/i386.opt: Likewise.
4457 * config/ia64/ia64.opt: Likewise.
4458 * config/rs6000/rs6000.opt: Likewise.
4459 * doc/options.texi: Document WarnRemoved properly.
4460 * dwarf2out.c (gen_producer_string): Handle renamed
4461 OPT_SPECIAL_warn_removed.
4462 * lto-opts.c (lto_write_options): Likewise.
4463 * lto-wrapper.c (merge_and_complain): Likewise.
4464 * opts-common.c (decode_cmdline_option): Likewise.
4465 (prune_options): Likewise.
4466 (read_cmdline_option): Likewise.
4467 (control_warning_option): Likewise.
4468 * opts.c (print_filtered_help): Likewise.
4469 * optc-gen.awk: Parse for WarnRemoved and make usage
4470 of Deprecated an error.
4471 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4473 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4475 * doc/install.texi: Fix syntax for html generation.
4477 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4480 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4481 the shift type to type.
4483 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4485 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4487 (stack_protect_combined_test_insn): Likewise.
4489 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4490 Mickaël Guêné <mickael.guene@st.com>
4492 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4493 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4494 (load_tp_soft_fdpic): New pattern.
4495 (load_tp_soft): Disable in FDPIC mode.
4497 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4498 Mickaël Guêné <mickael.guene@st.com>
4500 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4501 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4502 (arm_call_tls_get_addr): Add FDPIC support.
4503 (legitimize_tls_address): Likewise.
4504 (arm_emit_tls_decoration): Likewise.
4506 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4507 Mickaël Guêné <mickael.guene@st.com>
4509 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4511 (arm_trampoline_init): Likewise.
4512 (arm_trampoline_adjust_address): Likewise.
4513 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4515 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4516 Mickaël Guêné <mickael.guene@st.com>
4518 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4519 (legitimize_pic_address): Enforce binding rules on function
4520 pointers in FDPIC mode.
4521 (arm_assemble_integer): Likewise.
4523 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4524 Mickaël Guêné <mickael.guene@st.com>
4526 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4527 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4530 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4531 Mickaël Guêné <mickael.guene@st.com>
4533 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4536 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4537 Mickaël Guêné <mickael.guene@st.com>
4539 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4541 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4543 * config/arm/arm.c (arm_option_override): Define pic register to
4545 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4546 have no decl or go through PLT.
4547 (calculate_pic_address_constant): New function.
4548 (legitimize_pic_address): Call calculate_pic_address_constant.
4549 (arm_load_pic_register): Handle TARGET_FDPIC.
4550 (arm_is_segment_info_known): New function.
4551 (arm_pic_static_addr): Add support for FDPIC.
4552 (arm_load_function_descriptor): New function.
4553 (arm_emit_call_insn): Add support for FDPIC.
4554 (arm_assemble_integer): Add support for FDPIC.
4555 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4556 Define. (FDPIC_REGNUM): New define.
4557 * config/arm/arm.md (call): Add support for FDPIC.
4558 (call_value): Likewise.
4559 (restore_pic_register_after_call): New pattern.
4560 (untyped_call): Disable if FDPIC.
4561 (untyped_return): Likewise.
4562 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4564 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4565 Mickaël Guêné <mickael.guene@st.com>
4567 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4568 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4569 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4570 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4571 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4572 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4573 * config/arm/uclinuxfdpiceabi.h: New file.
4575 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4577 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4579 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4580 Mickaël Guêné <mickael.guene@st.com>
4582 * config/arm/arm.opt: Add -mfdpic option.
4583 * doc/invoke.texi: Add documentation for -mfdpic.
4585 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4587 * expmed.c (extract_bit_field): Update function comment
4589 * expr.c (expand_expr_real): Update function comment
4591 (expand_misaligned_mem_ref): New helper function.
4592 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4593 Remove duplicate assignment to "base" at case MEM_REF.
4594 Remove a shadowed variable "unsignedp" at case VCE.
4596 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4598 * regset.h (regs_invalidated_by_call_regset): Delete.
4599 (fixed_reg_set_regset): Likewise.
4600 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4601 (fixed_reg_set_regset, persistent_obstack): Likewise.
4602 (init_reg_sets_1, globalize_reg): Update accordingly.
4603 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4604 instead of a bitmap.
4605 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4606 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4607 instead of regs_invalidated_by_call_regset.
4608 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4609 * df-scan.c (df_scan_start_dump): Likewise.
4610 * dse.c (copy_fixed_regs): Likewise.
4611 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4613 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4615 * array-traits.h: New file.
4616 * coretypes.h (array_traits, bitmap_view): New types.
4617 * bitmap.h: Include "array-traits.h"
4618 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4619 (base_bitmap_view, bitmap_view): New classes.
4620 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4621 * hard-reg-set.h: Include array-traits.h.
4622 (array_traits<HARD_REG_SET>): New struct.
4623 * regset.h (IOR_REG_SET_HRS): New macro.
4624 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4625 rather than iterating over each hard register.
4626 * sched-deps.c (sched_analyze_insn): Likewise.
4627 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4629 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4631 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4632 instead of a HARD_REG_SET *.
4633 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4634 (ira_build): Update call accordingly.
4635 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4637 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4639 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4640 (HARD_REG_SET::operator!=): Likewise.
4641 (hard_reg_set_equal_p): Delete.
4642 * cfgcleanup.c (old_insns_match_p): Use == instead of
4643 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4644 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4645 (add_allocno_hard_regs_to_forest): Likewise.
4646 (setup_allocno_available_regs_num): Likewise.
4647 * ira.c (setup_pressure_classes): Likewise.
4648 (setup_allocno_and_important_classes): Likewise.
4649 (setup_reg_class_relations): Likewise.
4650 * lra-lives.c (process_bb_lives): Likewise.
4651 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4653 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4655 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4656 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4657 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4658 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4660 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4661 * ira.c (setup_reg_renumber): Likewise.
4662 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4663 * regrename.c (regrename_find_superclass): Likewise.
4664 * reload1.c (find_reg): Likewise.
4666 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4668 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4669 * caller-save.c (setup_save_areas): Use "&~" instead of
4670 AND_COMPL_HARD_REG_SET.
4671 (save_call_clobbered_regs): Likewise.
4672 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4674 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4675 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4676 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4677 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4678 (mips_conditional_register_usage): Likewise.
4679 * config/sh/sh.c (output_stack_adjust): Likewise.
4680 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4681 (setup_profitable_hard_regs): Likewise.
4682 (get_conflict_and_start_profitable_regs): Likewise.
4683 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4684 (ira_build_conflicts): Likewise.
4685 * ira-costs.c (restrict_cost_classes): Likewise.
4686 (setup_regno_cost_classes_by_aclass): Likewise.
4687 * ira-lives.c (process_bb_node_lives): Likewise.
4688 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4689 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4690 (setup_allocno_and_important_classes, setup_class_translate_array)
4691 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4693 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4694 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4695 (process_alt_operands, inherit_in_ebb): Likewise.
4696 * lra-eliminations.c (update_reg_eliminate): Likewise.
4697 * lra-lives.c (process_bb_lives): Likewise.
4698 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4699 * resource.c (find_dead_or_set_registers): Likewise.
4700 (mark_target_live_regs): Likewise.
4701 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4702 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4703 (implicit_clobber_conflict_p): Likewise.
4704 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4705 (try_shrink_wrapping): Likewise.
4707 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4709 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4710 (HARD_REG_SET::operator|=): Likewise.
4711 (IOR_HARD_REG_SET): Delete.
4712 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4714 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4715 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4716 * final.c (collect_fn_hard_reg_usage): Likewise.
4717 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4718 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4719 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4720 (propagate_some_info_from_allocno): Likewise.
4721 (copy_info_to_removed_store_destinations): Likewise.
4722 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4723 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4724 (fast_allocation): Likewise.
4725 * ira-conflicts.c (ira_build_conflicts): Likewise.
4726 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4727 (process_bb_node_lives): Likewise.
4728 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4729 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4730 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4731 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4732 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4733 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4734 (process_bb_lives): Likewise.
4735 * lra-spills.c (assign_spill_hard_regs): Likewise.
4736 * postreload.c (reload_combine): Likewise.
4737 * reginfo.c (init_reg_sets_1): Likewise.
4738 * regrename.c (merge_overlapping_regs, find_rename_reg)
4739 (merge_chains): Likewise.
4740 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4741 (find_reload_regs, finish_spills, choose_reload_regs_init)
4742 (emit_reload_insns): Likewise.
4743 * reorg.c (redundant_insn): Likewise.
4744 * resource.c (find_dead_or_set_registers, mark_set_resources)
4745 (mark_target_live_regs): Likewise.
4746 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4747 * sched-deps.c (sched_analyze_insn): Likewise.
4748 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4749 (find_best_reg_for_expr): Likewise.
4750 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4752 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4754 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4755 (HARD_REG_SET::operator&): Likewise.
4756 (AND_HARD_REG_SET): Delete.
4757 * caller-save.c (setup_save_areas): Use "&" instead of
4759 (save_call_clobbered_regs): Likewise.
4760 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4761 * config/m32c/m32c.c (reduce_class): Likewise.
4762 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4763 * final.c (get_call_reg_set_usage): Likewise.
4764 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4765 (setup_left_conflict_sizes_p): Likewise.
4766 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4767 (ira_build_conflicts): Likewise.
4768 * ira-costs.c (restrict_cost_classes): Likewise.
4769 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4770 (setup_reg_class_relations): Likewise.
4771 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4772 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4773 * resource.c (find_dead_or_set_registers): Likewise.
4774 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4776 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4778 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4779 (COMPL_HARD_REG_SET): Delete.
4780 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4781 of COMPL_HARD_REG_SET.
4782 (try_rename_operands): Likewise.
4783 * config/sh/sh.c (push_regs): Likewise.
4784 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4785 * lra-constraints.c (contains_reg_p): Likewise.
4786 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4788 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4790 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4791 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4792 of COPY_HARD_REG_SET.
4793 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4794 (epiphany_conditional_register_usage): Likewise.
4795 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4796 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4797 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4798 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4799 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4800 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4801 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4802 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4803 * config/sh/sh.c (output_stack_adjust): Likewise.
4804 * final.c (collect_fn_hard_reg_usage): Likewise.
4805 (get_call_reg_set_usage): Likewise.
4806 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4807 (ira_flattening): Likewise.
4808 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4809 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4810 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4811 (ira_reassign_pseudos): Likewise.
4812 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4813 (ira_build_conflicts): Likewise.
4814 * ira-costs.c (restrict_cost_classes): Likewise.
4815 (setup_regno_cost_classes_by_aclass): Likewise.
4816 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4817 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4818 (setup_stack_reg_pressure_class, setup_pressure_classes)
4819 (setup_allocno_and_important_classes, setup_class_translate_array)
4820 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4821 (ira_setup_eliminable_regset): Likewise.
4822 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4823 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4824 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4825 (process_alt_operands, inherit_in_ebb): Likewise.
4826 * lra-lives.c (process_bb_lives): Likewise.
4827 * lra-spills.c (assign_spill_hard_regs): Likewise.
4828 * lra.c (lra): Likewise.
4829 * mode-switching.c (new_seginfo): Likewise.
4830 * postreload.c (reload_combine): Likewise.
4831 * reg-stack.c (straighten_stack): Likewise.
4832 * reginfo.c (save_register_info, restore_register_info): Likewise.
4833 (init_reg_sets_1, record_subregs_of_mode): Likewise
4834 * regrename.c (create_new_chain, rename_chains): Likewise.
4835 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4836 (find_reload_regs): Likewise.
4837 * resource.c (find_dead_or_set_registers): Likewise.
4838 (mark_target_live_regs): Likewise.
4839 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4841 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4843 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4844 (note_pattern_stores): Declare.
4845 (note_stores): Take an rtx_insn *.
4846 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4847 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4848 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4849 (note_stores): Take an rtx_insn * as argument and process
4850 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4851 (note_pattern_stores): ...this.
4852 (find_first_parameter_load): Pass the insn rather than
4853 its pattern to note_stores.
4854 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4855 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4856 (insert_one_insn): Likewise.
4857 * combine.c (combine_instructions): Likewise.
4858 (likely_spilled_retval_p): Likewise.
4859 (try_combine): Use note_pattern_stores instead of note_stores.
4860 (record_dead_and_set_regs): Pass the insn rather than its pattern
4862 (reg_dead_at_p): Likewise.
4863 * config/bfin/bfin.c (workaround_speculation): Likewise.
4864 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4866 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4867 instead of note_stores.
4868 (frv_optimize_membar_local): Pass the insn rather than its pattern
4870 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4871 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4872 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4873 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4874 (mips_reorg_process_insns): Likewise.
4875 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4876 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4878 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4879 its pattern to note_stores.
4880 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4882 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4883 the insn to note_stores.
4884 (prescan_insns_for_dce): Update call accordingly.
4885 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4887 * df-problems.c (can_move_insns_across): Likewise.
4888 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4889 * function.c (assign_parm_setup_reg): Likewise.
4890 * gcse-common.c (record_last_mem_set_info_common): Likewise.
4891 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4892 (single_set_gcse): Likewise.
4893 * ira.c (validate_equiv_mem): Likewise.
4894 (update_equiv_regs): Use note_pattern_stores rather than note_stores
4896 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4897 pattern to note_stores.
4898 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4899 * loop-iv.c (simplify_using_initial_values): Likewise.
4900 * mode-switching.c (optimize_mode_switching): Likewise.
4901 * optabs.c (emit_libcall_block_1): Likewise.
4902 (expand_atomic_compare_and_swap): Likewise.
4903 * postreload-gcse.c (load_killed_in_block_p): Likewise.
4904 (record_opr_changes): Likewise. Remove explicit handling of
4905 CALL_INSN_FUNCTION_USAGE.
4906 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4907 * regcprop.c (kill_clobbered_values): Likewise.
4908 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4910 * regrename.c (build_def_use): Likewise.
4911 * reload1.c (reload): Use note_pattern_stores instead of note_stores
4912 for mark_not_eliminable.
4913 (reload_as_needed): Pass the insn rather than its pattern
4915 (emit_output_reload_insns): Likewise.
4916 * resource.c (mark_target_live_regs): Likewise.
4917 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4918 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4919 instead of note_stores.
4920 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4921 its pattern to note_stores.
4922 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4923 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4925 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4927 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4928 than a #define. Use a structure rather than an array as the
4929 fallback definition. Remove special cases for low array sizes.
4930 (const_hard_reg_set): New typedef.
4931 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4932 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4933 (hard_reg_set_empty_p): Likewise.
4934 (SET_HARD_REG_BIT): Use a function rather than a macro to
4935 handle the case in which HARD_REG_SET is a structure.
4936 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4937 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4938 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4939 (IOR_COMPL_HARD_REG_SET): Likewise.
4940 (hard_reg_set_iterator::pset): Constify the pointer target.
4941 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4942 of a "const HARD_REG_SET". Update the handling of non-integer
4944 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4945 * reload.h: Likewise.
4946 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4947 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4948 of a "const HARD_REG_SET".
4949 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4950 (range_in_hard_reg_set_p): Likewise.
4951 * ira-costs.c (restrict_cost_classes): Likewise.
4952 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
4953 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4954 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
4955 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
4956 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
4957 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
4958 take an unsigned int and open-code the HARD_REG_SET operations.
4960 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4962 * Makefile.in (OBJS): Remove bt-load.o.
4963 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
4964 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4965 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
4966 document that the option no longer does anything.
4967 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4968 * target.def (branch_target_register_class): Delete.
4969 (branch_target_register_callee_saved): Likewise.
4970 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4971 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4972 * doc/tm.texi: Regenerate.
4973 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
4974 (make_pass_branch_target_load_optimize2): Likewise.
4975 * passes.def (pass_branch_target_load_optimize1): Likewise.
4976 (pass_branch_target_load_optimize2): Likewise.
4977 * targhooks.h (default_branch_target_register_class): Likewise.
4978 * targhooks.c (default_branch_target_register_class): Likewise.
4979 * opt-suggestions.c (test_completion_valid_options): Remove
4980 -fbtr-bb-exclusive from the list of test options.
4981 * bt-load.c: Remove.
4983 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4985 * match.pd: Add flag_unsafe_math_optimizations check
4986 before deciding on the widest type in a binary math operation.
4988 2019-09-09 Martin Liska <mliska@suse.cz>
4990 * config/i386/i386.opt: Update comment of removed
4991 options that are preserved only for backward
4994 2019-09-09 Jakub Jelinek <jakub@redhat.com>
4997 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5001 * config/i386/avxintrin.h (__v32qs): New typedef.
5002 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5005 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5007 * doc/invoke.texi (Option Summary): Cover eBPF.
5008 (eBPF Options): New section.
5009 * doc/extend.texi (BPF Built-in Functions): Likewise.
5010 (BPF Kernel Helpers): Likewise.
5012 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5014 * config.gcc: Support for bpf-*-* targets.
5015 * common/config/bpf/bpf-common.c: New file.
5016 * config/bpf/t-bpf: Likewise.
5017 * config/bpf/predicates.md: Likewise.
5018 * config/bpf/constraints.md: Likewise.
5019 * config/bpf/bpf.opt: Likewise.
5020 * config/bpf/bpf.md: Likewise.
5021 * config/bpf/bpf.h: Likewise.
5022 * config/bpf/bpf.c: Likewise.
5023 * config/bpf/bpf-protos.h: Likewise.
5024 * config/bpf/bpf-opts.h: Likewise.
5025 * config/bpf/bpf-helpers.h: Likewise.
5026 * config/bpf/bpf-helpers.def: Likewise.
5028 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5030 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5033 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5035 * opt-functions.awk (integer_range_info): Make sure values are in
5036 numeric context before operating with them.
5038 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5040 * genemit.c (gen_split): Print the filename and line number where the
5041 splitter (or peephole2) was defined, to the dump file.
5043 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5045 PR tree-optimization/91665
5046 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5047 incompatible with the type of PHI result.
5049 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5052 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5053 gen_unaligned_storedi for 4-byte aligned addresses.
5055 2019-09-06 Jim Wilson <jimw@sifive.com>
5057 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5060 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5062 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5064 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5066 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5067 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5069 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5072 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5073 cost of SSE->integer and integer->SSE moves from 2 to 6.
5076 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5078 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5079 before testing TYPE_TRANSPARENT_AGGR.
5080 * calls.c (initialize_argument_information, load_register_parameters):
5083 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5085 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5087 (cmp_ior): Likewise.
5089 2019-09-06 Martin Liska <mliska@suse.cz>
5091 * doc/match-and-simplify.texi: Separate tuples with ;.
5093 2019-09-06 Martin Liska <mliska@suse.cz>
5096 * Makefile.in: Remove tlink.o.
5097 * collect2.c (do_link): New function isolated
5100 * collect2.h (do_tlink): Remove declaration of do_tlink.
5101 * doc/extend.texi: Remove documentation of -frepo.
5102 * doc/invoke.texi: Likewise.
5103 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5106 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5107 Jim Wilson <jimw@sifive.com>
5110 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5111 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5112 paradoxical_subreg_p (operands[0]).
5113 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5114 use as intermediate value.
5116 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5118 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5119 (sync_compare_and_swap<mode>_insn): Likewise.
5121 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5124 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5125 without movmisalign optab.
5127 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5132 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5133 types, use type of their first field instead of type of
5136 2019-09-05 Richard Biener <rguenther@suse.de>
5138 PR rtl-optimization/91656
5139 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5142 2019-09-05 Richard Biener <rguenther@suse.de>
5145 * tree-inline.c (declare_return_variable): Mark the return
5146 slot as addressable after building an address of it.
5148 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5150 * doc/install.texi: Update and clarify requirements to build GNAT.
5152 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5155 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5156 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5157 call to be in memory.
5158 (pass_expand::execute): Call discover_nonconstant_array_refs before
5159 setting currently_expanding_to_rtl.
5161 2019-09-04 Caroline Tice <cmtice@google.com>
5163 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5166 2019-09-04 Marek Polacek <polacek@redhat.com>
5168 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5170 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5173 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5174 for QI and HImode moves between SSE and general registers.
5176 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5179 * doc/invoke.texi: Document -Wenum-conversion.
5181 2019-09-04 Richard Biener <rguenther@suse.de>
5183 PR rtl-optimization/36262
5184 * postreload-gcse.c: Include intl.h and gcse.h.
5185 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5186 to avoid linear list walk.
5187 (record_last_mem_set_info): Gate off if not computing transparentness.
5188 (get_bb_avail_insn): If transparentness isn't computed give up
5190 (gcse_after_reload_main): Skip compute_transp and extended PRE
5191 if gcse_or_cprop_is_too_expensive says so.
5193 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5195 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5197 (msp430_select_section): Handle decls with the "noinit" attribute with
5198 default_elf_select_section.
5199 Handle SECCAT_RODATA_MERGE_* section types with
5200 default_elf_select_section.
5201 Add comments about handling of unsupported section types.
5202 (msp430_section_type_flags): Remove handling of the noinit section.
5204 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5206 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5207 conflicting msp430-specific attributes.
5208 (msp430_section_attr): Likewise.
5209 Add warnings about conflicts with generic "noinit" and "section"
5211 Fix grammar in -mlarge error message.
5212 (msp430_data_attr): Rename to msp430_persist_attr.
5213 Add warnings about conflicts with generic "noinit" and "section"
5215 Add warning for when variable is not initialized.
5216 Chain conditionals which prevent the attribute being added.
5217 (ATTR_EXCL): New helper.
5218 (attr_reent_exclusions): New exclusion table.
5219 (attr_naked_exclusions): Likewise.
5220 (attr_crit_exclusions): Likewise.
5221 (attr_lower_exclusions): Likewise.
5222 (attr_upper_exclusions): Likewise.
5223 (attr_either_exclusions): Likewise.
5224 (attr_persist_exclusions): Likewise.
5225 (msp430_attribute_table): Update with exclusion rules.
5226 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5229 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5231 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5232 (msp430_handle_generic_attribute): New function.
5233 * doc/tm.texi: Regenerate.
5234 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5235 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5236 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5237 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5239 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5241 PR tree-optimization/91504
5242 * match.pd: Add ((~a & b) ^a) --> (a | b).
5244 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5247 * config/i386/i386-expand.c (split_double_mode): If there is more than
5248 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5249 already split matching MEM operand instead of calling adjust_address
5252 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5254 * config.gcc: Obsolete spu target. Remove references to spu.
5255 * configure.ac: Remove references to spu.
5256 * configure: Regenerate.
5257 * config/spu/: Remove directory.
5258 * common/config/spu/: Remove directory.
5260 * doc/extend.texi: Remove references to spu.
5261 * doc/invoke.texi: Likewise.
5262 * doc/md.texi: Likewise.
5263 * doc/sourcebuild.texi: Likewise.
5265 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5270 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5271 and SSA_NAME referring to CONSTANT_P correctly.
5273 2019-09-03 Richard Biener <rguenther@suse.de>
5275 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5276 (vn_nary_op_insert): Likewise.
5277 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5278 (vn_nary_op_lookup): Likewise.
5279 (vn_nary_op_insert): Likewise.
5281 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5283 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5284 (*op0, 1) instead of XEXP (*op1, 0).
5286 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5288 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5289 (aarch64_fjcvtzs): New define_insn.
5290 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5291 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5293 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5294 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5295 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5296 __ARM_FEATURE_JCVT where appropriate.
5297 * config/aarch64/arm_acle.h (__jcvt): Define.
5299 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5301 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5302 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5303 (aarch64_<frintnzs_op><mode>): New define_insn.
5304 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5305 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5306 __ARM_FEATURE_FRINT when appropriate.
5307 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5308 frint32x, frint64z, frint64x.
5309 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5310 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5311 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5312 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5313 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5314 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5315 * config/aarch64/iterators.md (VSFDF): Define.
5316 (FRINTNZX): Likewise.
5317 (frintnzs_op): Likewise.
5319 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5321 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5322 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5324 * config/aarch64/aarch64-tune.md: Regenerated.
5325 * doc/invoke.texi: Document the new processors.
5327 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5329 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5333 (sve2-sm4): Likewise.
5335 (svesha3): Likewise.
5336 (svebitperm): Likewise.
5338 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5339 Richard Biener <rguenther@suse.de>
5341 PR tree-optimization/91597
5342 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5343 BIT_AND_EXPR optimization for pointers, even if both operand
5344 ranges don't include NULL, the result can be NULL.
5346 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5349 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5350 (non_mem_decl_p): ...this.
5351 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5352 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5353 unconditionally as before.
5355 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5358 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5359 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5360 * tree.def (LTGT_EXPR): Likewise.
5361 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5363 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5366 * fold-const.c (range_check_type): For enumeral and boolean
5367 type, pass 1 to type_for_size langhook instead of
5368 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5369 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5370 (build_range_check): Don't call unsigned_type_for for pointer types.
5371 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5372 range_check_type result.
5374 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5376 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5377 (replace_ref): Do not replace a chain of only two candidates which are
5378 valid memory references.
5380 2019-09-02 Martin Liska <mliska@suse.cz>
5382 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5383 Bail out when we'll end up with the same number of clusters as
5385 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5386 (jump_table_cluster::can_be_handled): Remove the guard
5387 as it's already handled in ::is_enabled. Allocate output
5388 after early bail out.
5390 2019-09-02 Martin Liska <mliska@suse.cz>
5392 PR gcov-profile/91601
5393 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5394 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5395 also negative edges.
5396 (circuit): Handle also negative edges as they can happen
5399 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5402 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5403 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5404 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5406 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5409 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5410 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5411 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5415 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5416 GIMPLE_ASM TREE_LIST operands.
5418 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5420 * doc/generic.texi (Unary and Binary Expressions): Mark up
5421 an instance of TYPE_MIN.
5423 2019-08-31 Stafford Horne <shorne@gmail.com>
5425 * config/or1k/constraints.md (t): New constraint.
5426 * config/or1k/or1k.h (GOT_REGS): New register class.
5427 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5429 2019-08-30 Jim Wilson <jimw@sifive.com>
5431 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5432 and -fpic and -mplt then disable -msave-restore and warn.
5434 2019-08-30 Martin Sebor <msebor@redhat.com>
5437 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5438 the statement doesn't have one.
5439 * gimple-pretty-print.c (percent_G_format): Same.
5442 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5443 before using them to validate MEM_REF offset.
5445 2019-08-30 Marek Polacek <polacek@redhat.com>
5447 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5449 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5451 * config/arm/arm.md (unaligned_loaddi,
5452 unaligned_storedi): New unspec insn patterns.
5453 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5454 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5455 and unaligned_storedi for 4-byte aligned memory.
5456 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5457 4-byte aligned memory.
5459 2019-08-30 Martin Jambor <mjambor@suse.cz>
5461 tree-optimization/91579
5462 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5463 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5465 (arg_needs_copy_p): Removed.
5466 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5468 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5470 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5472 * config/i386/i386-features.c
5473 (general_scalar_chain::compute_convert_gain):
5474 Correct cost for double-word shifts.
5475 (general_scalar_to_vector_candidate_p): Reject count operands
5476 greater or equal to mode bitsize.
5478 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5480 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5481 for moves between SSE and non-general registers and between
5482 mask and non-general registers.
5483 (ix86_register_move_cost): Remove stalled comment.
5485 2019-08-29 Richard Biener <rguenther@suse.de>
5487 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5488 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5490 2019-08-29 Richard Biener <rguenther@suse.de>
5493 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5494 Do not emit scalar copies for debug-insns, instead replace
5495 their uses with the reg copy used in the chain or reset them
5496 if there is a reaching definition outside of the chain as well.
5498 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5501 * config/i386/i386-expand.c (expand_vec_perm_movs,
5502 expand_vec_perm_blend, expand_vec_perm_vpermil,
5503 expand_vec_perm_pshufb, expand_vec_perm_1,
5504 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5505 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5506 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5507 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5508 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5509 comments - replace ix86_expand_vec_perm_builtin_1 with
5510 ix86_expand_vec_perm_const_1.
5511 (expand_vec_perm2_vperm2f128_vblend): New function.
5512 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5513 expand_vec_perm2_vperm2f128_vblend as last resort.
5514 (canonicalize_perm): Formatting fix.
5516 PR tree-optimization/91351
5517 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5519 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5520 range_check_type returns NULL.
5521 * tree-switch-conversion.c (switch_conversion::build_one_array):
5522 Use range_check_type instead of unsigned_type_for, don't perform
5523 linear opt if it returns NULL.
5524 (bit_test_cluster::find_bit_tests): Formatting fix.
5525 (bit_test_cluster::emit): Use range_check_type instead of
5527 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5530 2019-08-29 Richard Biener <rguenther@suse.de>
5532 PR tree-optimization/91568
5533 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5534 (vect_update_max_nunits): Add overload for poly_uint64.
5535 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5536 (vect_build_slp_tree): Record max_nunits into the subtree
5537 and merge it upwards.
5538 (vect_print_slp_tree): Print max_nunits.
5540 2019-08-28 Marek Polacek <polacek@redhat.com>
5542 Implement P1152R4: Deprecating some uses of volatile.
5544 * doc/invoke.texi: Document -Wvolatile.
5546 2019-08-28 Marek Polacek <polacek@redhat.com>
5548 PR c++/91360 - Implement C++20 P1143R2: constinit.
5549 * doc/invoke.texi: Document -Wc++20-compat.
5551 2019-08-28 Martin Sebor <msebor@redhat.com>
5553 PR tree-optimization/91457
5554 * builtins.c (component_size): New function.
5555 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5556 * builtins.h (compute_objsize): Add argument.
5557 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5558 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5559 (vrp_prop::check_mem_ref): Same.
5560 (vrp_prop::search_for_addr_array): Set no-warning bit.
5561 (check_array_bounds): Same.
5563 2019-08-28 Martin Sebor <msebor@redhat.com>
5566 * opts-common.c (option_enabled): Correct checking for language
5569 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5571 * config/i386/i386.c (ix86_register_move_cost): Do not
5572 limit the cost of moves to/from XMM register to minimum 8.
5574 2019-08-28 Martin Jambor <mjambor@suse.cz>
5577 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5578 checking assert a normal assert to test it really is redundant.
5579 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5581 (update_jump_functions_after_inlining): Removed combining unary
5582 arithmetic operations with an ancestor jump function.
5583 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5586 2019-08-28 Richard Biener <rguenther@suse.de>
5588 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5591 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5592 Richard Biener <rguenther@suse.de>
5594 * expr.c (expand_assignment): Handle misaligned DECLs.
5595 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5596 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5598 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5599 * varasm.c (build_constant_desc): Align constants of misaligned types.
5600 * config/arm/predicates.md (aligned_operand): New predicate.
5601 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5602 aligned_operand to check restrictions on memory addresses.
5603 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5604 * config/arm/vec-common.md (mov<VALL>): Likewise.
5606 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5609 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5610 V_128 iterator instead of VI_128.
5612 2019-08-28 Martin Liska <mliska@suse.cz>
5614 PR tree-optimization/90970
5615 * builtins.c (check_access): Remove assignment to maxread
5616 as it hasn't been used since when it was introduced in r255755.
5618 2019-08-27 Martin Sebor <msebor@redhat.com>
5620 PR tree-optimization/91567
5621 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5623 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5626 2019-08-27 Jeff Law <law@redhat.com>
5628 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5629 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5631 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5634 * config/i386/i386-features.c (convert_scalars_to_vector):
5635 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5636 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5637 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5638 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5640 2019-08-27 Richard Biener <rguenther@suse.de>
5642 * config/i386/i386-features.h
5643 (general_scalar_chain::~general_scalar_chain): Add.
5644 (general_scalar_chain::insns_conv): New bitmap.
5645 (general_scalar_chain::n_sse_to_integer): New.
5646 (general_scalar_chain::n_integer_to_sse): Likewise.
5647 (general_scalar_chain::make_vector_copies): Adjust signature.
5648 * config/i386/i386-features.c
5649 (general_scalar_chain::general_scalar_chain): Outline,
5650 initialize new members.
5651 (general_scalar_chain::~general_scalar_chain): New.
5652 (general_scalar_chain::mark_dual_mode_def): Record insns
5653 we need to insert conversions at and count them.
5654 (general_scalar_chain::compute_convert_gain): Account
5655 for conversion instructions at chain boundary.
5656 (general_scalar_chain::make_vector_copies): Generate a single
5657 copy for a def by a specific insn.
5658 (general_scalar_chain::convert_registers): First populate
5659 defs_map, then make copies at out-of chain insns.
5661 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5663 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5665 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5667 2019-08-27 Martin Liska <mliska@suse.cz>
5669 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5671 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5672 Enclose in anonymous namespace.
5673 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5674 hard_register initialization in braces.
5675 * tree-vrp.h (value_range_base::supports_type_p): Return false
5676 for function with boolean return type.
5678 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5680 * config/i386/i386.c (emit_i387_cw_initialization)
5681 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5683 2019-08-26 Martin Sebor <msebor@redhat.com>
5686 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5687 (sprintf_dom_walker): Remove class.
5688 (get_int_range): Make argument const.
5689 (directive::fmtfunc, directive::set_precision): Same.
5690 (format_none): Same.
5691 (build_intmax_type_nodes): Same.
5692 (adjust_range_for_overflow): Same.
5693 (format_floating): Same.
5694 (format_character): Same.
5695 (format_string): Same.
5696 (format_plain): Same.
5697 (get_int_range): Cast away constness.
5698 (format_integer): Same.
5699 (get_string_length): Call get_range_strlen_dynamic. Handle
5700 null lendata.maxbound.
5701 (should_warn_p): Adjust argument scope qualifier.
5703 (format_directive): Same.
5704 (parse_directive): Same.
5705 (is_call_safe): Same.
5706 (try_substitute_return_value): Same.
5707 (sprintf_dom_walker::handle_printf_call): Rename...
5708 (handle_printf_call): ...to this. Initialize target to host charmap
5709 here instead of in pass_sprintf_length::execute.
5710 (struct call_info): Make global.
5711 (sprintf_dom_walker::compute_format_length): Make global.
5712 (sprintf_dom_walker::handle_gimple_call): Same.
5713 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5714 * print-rtl.c (print_pattern): Reduce the number of spaces to
5715 avoid -Wformat-truncation.
5716 * tree-pass.h (make_pass_warn_printf): New function.
5717 * tree-ssa-strlen.c (strlen_optimize): New variable.
5718 (get_string_length): Add comments.
5719 (get_range_strlen_dynamic): New function.
5720 (check_and_optimize_call): New function.
5721 (handle_integral_assign): New function.
5722 (strlen_check_and_optimize_stmt): Factor code out into
5723 strlen_check_and_optimize_call and handle_integral_assign.
5724 (strlen_dom_walker::evrp): New member.
5725 (strlen_dom_walker::before_dom_children): Use evrp member.
5726 (strlen_dom_walker::after_dom_children): Use evrp member.
5727 (printf_strlen_execute): New function.
5728 (pass_strlen::gate): Update to handle printf calls.
5729 (dump_strlen_info): New function.
5730 (pass_data_warn_printf): New variable.
5731 (pass_warn_printf): New class.
5732 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5733 (handle_printf_call): Same.
5734 * tree-vrp.c (value_range_base::type): Adjust assertion.
5735 * vr-values.c (vr_values::update_value_range): Use type of the first
5736 argument rather than the second.
5738 2019-08-26 Richard Biener <rguenther@suse.de>
5740 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5742 (convert_scalars_to_vector): Do not call it.
5744 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5745 Uros Bizjak <ubizjak@gmail.com>
5747 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5748 CASE_MATHFN_FLOATN for roundeven.
5749 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5751 (ix86_mode_needed): Likewise.
5752 (ix86_mode_after): Likewise.
5753 (ix86_mode_entry): Likewise.
5754 (ix86_mode_exit): Likewise.
5755 (ix86_emit_mode_set): Likewise.
5756 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5757 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5758 (ix86_entity): Add I387_ROUNDEVEN.
5759 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5760 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5761 (define_int_iterator): Likewise.
5762 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5763 (define_constant): Define ROUND_ROUNDEVEN mode.
5764 (define_attr): Add roundeven mode for i387_cw.
5765 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5766 * internal-fn.def (ROUNDEVEN): New builtin function.
5767 * optabs.def (roundeven_optab): New optab.
5769 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5771 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5773 * builtins.def: Added function definitions for roundeven function
5775 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5776 function call. Adjust condition for floor, ceil, trunc and round.
5777 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5778 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5779 (integer_valued_real_call_p): Added case for roundeven function.
5780 * real.c (is_even): New function. Returns true if real number is even,
5781 otherwise returns false.
5782 (is_halfway_below): New function. Returns true if real number is
5783 halfway between two integers, else return false.
5784 (real_roundeven): New function. Round real number to nearest integer,
5785 rounding halfway cases towards even.
5786 * real.h (real_value): Added descriptive comments. Added function
5787 declaration for roundeven function.
5788 * doc/extend.texi (Other Builtins): List roundeven variants among
5789 functions which can be handled as builtins.
5791 2019-08-26 Richard Biener <rguenther@suse.de>
5795 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5797 (general_scalar_chain::replace_with_subreg): Remove.
5798 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5799 (general_scalar_chain::convert_reg): Adjust signature.
5800 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5801 iterate over all defs of a reg.
5802 (general_scalar_chain::replace_with_subreg): Remove.
5803 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5804 (general_scalar_chain::make_vector_copies): Populate defs_map,
5805 place copy only after defs that are used as vectors in the chain.
5806 (general_scalar_chain::convert_reg): Emit a copy for a specific
5807 def in a specific instruction.
5808 (general_scalar_chain::convert_op): All reg uses are converted here.
5809 (general_scalar_chain::convert_insn): Emit copies for scalar
5810 uses of defs here. Replace uses with the copies we created.
5811 Replace and convert the def. Adjust REG_DEAD notes, remove
5812 REG_EQUIV/EQUAL notes.
5813 (general_scalar_chain::convert_registers): Only handle copies
5814 into the chain here.
5816 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5818 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5820 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5822 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5823 Add nop_convert case.
5824 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5825 Fold all statements if requested.
5826 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5827 Allow to fold all statements.
5828 * tree-vrp.c (class vrp_folder):
5829 Let substitute_and_fold_engine fold all statements.
5831 2019-08-26 Richard Biener <rguenther@suse.de>
5833 PR tree-optimization/91526
5834 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5835 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5836 TODO_update_address_taken.
5838 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5840 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5843 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5845 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5846 machine mode for unspec_volatile operand.
5848 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5850 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5851 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5852 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5853 (prefer_neon_for_64bits): Remove.
5854 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5855 (tune_params): Remove PREF_NEON_64_FALSE uses.
5856 (arm_option_override): Remove prefer_neon selection code.
5857 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5858 * gcc/config/arm/arm-protos.h (tune_params): Remove
5859 prefer_neon_for_64bits.
5860 (prefer_neon_for_64bits): Remove.
5862 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5865 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5866 and issue any diagnostics needed before collecting the pre-PCH
5869 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5872 * common.opt (fexcess-precision=): Add Optimization flag. Use
5873 flag_excess_precision variable instead of
5874 flag_excess_precision_cmdline.
5875 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5877 (flag_excess_precision): Don't define.
5878 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5879 flag_excess_precision_cmdline. Remove comment.
5880 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5881 and x_flag_excess_precision instead of
5882 frontend_set_flag_excess_precision_cmdline and
5883 x_flag_excess_precision_cmdline.
5884 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5885 x_flag_excess_precision_cmdline.
5886 * toplev.c (init_excess_precision): Remove.
5887 (lang_dependent_init_target): Don't call it.
5889 2019-08-23 Martin Liska <mliska@suse.cz>
5891 * lto-wrapper.c (run_gcc): When setting jobserver
5892 set also parallel to 1. This was done so before r273908.
5894 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
5896 * config/arm/arm-cpus.in (cortex-m35p): New entry.
5897 (cortex-a76ae): Likewise.
5898 (cortex-a77): Likewise
5899 * config/arm/arm-tables.opt: Regenerate.
5900 * config/arm/arm-tune.md: Likewise.
5901 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5902 cortex-a77 CPU options.
5904 2019-08-23 Martin Liska <mliska@suse.cz>
5906 * profile.c (instrument_values): Do not set
5908 * tree-profile.c (gimple_gen_interval_profiler): Remove
5910 (gimple_gen_pow2_profiler): Likewise.
5911 (gimple_gen_topn_values_profiler): Likewise.
5912 (gimple_gen_ic_profiler): Likewise.
5913 (gimple_gen_time_profiler): Likewise.
5914 (gimple_gen_average_profiler): Likewise.
5915 (gimple_gen_ior_profiler): Likewise.
5916 * value-prof.c (dump_histogram_value): Use default
5917 in switch statement instead of HIST_TYPE_MAX.
5918 (stream_in_histogram_value): Likewise.
5919 (gimple_duplicate_stmt_histograms): Do not
5920 use NULL for implicitly set arguments.
5921 (gimple_divmod_values_to_profile): Do not use
5923 (gimple_indirect_call_to_profile): Likewise.
5924 (gimple_find_values_to_profile): Use implicit
5925 function call arguments.
5926 * value-prof.h (gimple_alloc_histogram_value):
5928 (gimple_gen_interval_profiler): Remove last argument.
5929 (gimple_gen_pow2_profiler): Likewise.
5930 (gimple_gen_topn_values_profiler): Likewise.
5931 (gimple_gen_ic_profiler): Likewise.
5932 (gimple_gen_time_profiler): Likewise.
5933 (gimple_gen_average_profiler): Likewise.
5934 (gimple_gen_ior_profiler): Likewise.
5936 2019-08-22 Martin Sebor <msebor@redhat.com>
5939 * builtins.c (c_strlen): Rename argument and introduce new local.
5940 Set no-warning bit on original argument.
5941 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5942 Fold empty and zero constructors into empty strings.
5943 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5944 for missing initializers.
5945 * tree.c (build_string_literal): Handle optional argument.
5946 * tree.h (build_string_literal): Add defaulted argument.
5947 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5948 no-warning bit on original expression.
5950 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5953 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5954 and UNSPEC_DARN_RAW.
5955 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
5957 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
5958 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
5959 (darn): Use an unspec_volatile, and UNSPECV_DARN.
5961 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5963 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5964 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
5965 * config/rs6000/rs6000.md (unspec): ... here.
5966 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
5967 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5968 cmpeqb, *cmpeqb_internal): Delete, move to...
5969 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
5970 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5971 cmpeqb, *cmpeqb_internal): ... here.
5973 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5975 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
5976 intrinsics if __ARM_FP.
5977 Use __ARM_FEATURE_CRC32 ifdef guard.
5979 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5981 * config/arm/arm.md (neon_for_64bits): Remove.
5982 (avoid_neon_for_64bits): Remove.
5983 (arm_adddi3): Always split early.
5984 (arm_subdi3): Always split early.
5985 (negdi2): Remove Neon expansion.
5986 (split zero_extend): Split before reload.
5987 (split sign_extend): Split before reload.
5989 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5991 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
5992 (qhs_extenddi_cstr): Likewise.
5993 * config/arm/arm.md (ashldi3): Always expand early.
5994 (ashlsi3): Likewise.
5995 (ashrsi3): Likewise.
5996 (zero_extend<mode>di2): Remove Neon variants.
5997 (extend<mode>di2): Likewise.
5998 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
5999 (signed_shift_di3_neon): Likewise.
6000 (unsigned_shift_di3_neon): Likewise.
6001 (ashrdi3_neon_imm_noclobber): Likewise.
6002 (lshrdi3_neon_imm_noclobber): Likewise.
6003 (<shift>di3_neon): Likewise.
6004 (split extend): Remove DI extend split patterns.
6006 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6008 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6009 (split not): Add DImode not splitter.
6010 (anddi3): Remove pattern.
6011 (anddi3_insn): Likewise.
6012 (anddi_zesidi_di): Likewise.
6013 (anddi_sesdi_di): Likewise.
6014 (anddi_notdi_di): Likewise.
6015 (anddi_notzesidi_di): Likewise.
6016 (anddi_notsesidi_di): Likewise.
6018 (iordi3_insn): Likewise.
6019 (iordi_zesidi_di): Likewise.
6020 (iordi_sesidi_di): Likewise.
6022 (xordi3_insn): Likewise.
6023 (xordi_sesidi_di): Likewise.
6024 (xordi_zesidi_di): Likewise.
6025 (one_cmpldi2): Likewise.
6026 (one_cmpldi2_insn): Likewise.
6027 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6028 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6030 (iwmmxt_xordi3): Likewise.
6031 (iwmmxt_anddi3): Likewise.
6032 * config/arm/neon.md (orndi3_neon): Remove pattern.
6033 (anddi_notdi_di): Likewise.
6034 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6035 (arm_iordi_operand_neon): Likewise.
6036 (arm_xordi_operand_neon): Likewise.
6037 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6038 (iordi_notzesidi_di): Likewise.
6039 (iordi_notdi_zesidi): Likewise.
6040 (iordi_notsesidi_di): Likewise.
6042 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6044 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6046 (iorsi3_compare0_scratch): Likewise.
6048 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6050 * config/aarch64/aarch64-simd-builtins.def:
6053 * config/aarch64/aarch64-simd.md:
6054 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6055 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6056 (aarch64_ld1_x4_<mode>): Likewise.
6057 (aarch64_st1_x4_<mode>): Likewise.
6058 * config/aarch64/arm_neon.h:
6059 (vld1_s8_x4): New function.
6060 (vld1q_s8_x4): Likewise.
6061 (vld1_s16_x4): Likewise.
6062 (vld1q_s16_x4): Likewise.
6063 (vld1_s32_x4): Likewise.
6064 (vld1q_s32_x4): Likewise.
6065 (vld1_u8_x4): Likewise.
6066 (vld1q_u8_x4): Likewise.
6067 (vld1_u16_x4): Likewise.
6068 (vld1q_u16_x4): Likewise.
6069 (vld1_u32_x4): Likewise.
6070 (vld1q_u32_x4): Likewise.
6071 (vld1_f16_x4): Likewise.
6072 (vld1q_f16_x4): Likewise.
6073 (vld1_f32_x4): Likewise.
6074 (vld1q_f32_x4): Likewise.
6075 (vld1_p8_x4): Likewise.
6076 (vld1q_p8_x4): Likewise.
6077 (vld1_p16_x4): Likewise.
6078 (vld1q_p16_x4): Likewise.
6079 (vld1_s64_x4): Likewise.
6080 (vld1_u64_x4): Likewise.
6081 (vld1_p64_x4): Likewise.
6082 (vld1q_s64_x4): Likewise.
6083 (vld1q_u64_x4): Likewise.
6084 (vld1q_p64_x4): Likewise.
6085 (vld1_f64_x4): Likewise.
6086 (vld1q_f64_x4): Likewise.
6087 (vst1_s8_x4): Likewise.
6088 (vst1q_s8_x4): Likewise.
6089 (vst1_s16_x4): Likewise.
6090 (vst1q_s16_x4): Likewise.
6091 (vst1_s32_x4): Likewise.
6092 (vst1q_s32_x4): Likewise.
6093 (vst1_u8_x4): Likewise.
6094 (vst1q_u8_x4): Likewise.
6095 (vst1_u16_x4): Likewise.
6096 (vst1q_u16_x4): Likewise.
6097 (vst1_u32_x4): Likewise.
6098 (vst1q_u32_x4): Likewise.
6099 (vst1_f16_x4): Likewise.
6100 (vst1q_f16_x4): Likewise.
6101 (vst1_f32_x4): Likewise.
6102 (vst1q_f32_x4): Likewise.
6103 (vst1_p8_x4): Likewise.
6104 (vst1q_p8_x4): Likewise.
6105 (vst1_p16_x4): Likewise.
6106 (vst1q_p16_x4): Likewise.
6107 (vst1_s64_x4): Likewise.
6108 (vst1_u64_x4): Likewise.
6109 (vst1_p64_x4): Likewise.
6110 (vst1q_s64_x4): Likewise.
6111 (vst1q_u64_x4): Likewise.
6112 (vst1q_p64_x4): Likewise.
6113 (vst1_f64_x4): Likewise.
6114 (vst1q_f64_x4): Likewise.
6116 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6118 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6120 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6121 Richard Sandiford <richard.sandiford@arm.com>
6124 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6125 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6127 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6130 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6131 in reg if it fails aarch64_plus_operand predicate.
6133 2019-08-21 Richard Biener <rguenther@suse.de>
6135 PR tree-optimization/91482
6136 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6137 BUILT_IN_ASSUME_ALIGNED calls.
6139 2019-08-21 Richard Biener <rguenther@suse.de>
6143 * config/i386/i386-features.c
6144 (general_scalar_chain::make_vector_copies): Copy stack temporary
6145 rtx when using it multiple times.
6146 (general_scalar_chain::convert_reg): Likewise.
6148 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6150 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6152 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6154 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6155 catch more redundant zero initialization cases.
6156 (dse_dom_walker::dse_optimize_stmt): Likewise.
6158 2019-08-20 Richard Biener <rguenther@suse.de>
6161 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6162 by collect2 when targetm.have_ctors_dtors which avoids dragging
6163 in temporary filenames from LTO input objects.
6165 2019-08-20 Richard Biener <rguenther@suse.de>
6167 PR tree-optimization/37242
6168 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6169 to (T)a + (T)b if we know that a + b does not overflow.
6171 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6173 PR rtl-optimization/91347
6174 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6175 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6177 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6179 * calls.h (function_arg_info): Add a pass_by_reference field,
6180 defaulting to false.
6181 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6182 when applying pass-by-reference semantics.
6183 (initialize_argument_information): Likewise.
6184 (emit_library_call_value_1): Likewise.
6185 * function.c (assign_parm_data_one): Remove passed_pointer field.
6186 (assign_parm_find_data_types): Don't set it.
6187 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6188 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6189 arg.pass_by_reference instead of passed_pointer.
6191 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6193 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6194 into a single function_arg_info, updating its fields when we
6195 apply pass-by-reference and promotion semantics. Use the
6196 function_arg_info to track the mode rather than keeping it in
6197 a separate local variable.
6198 (initialize_argument_information): Likewise. Base the final
6199 arg_to_skip on this new function_arg_info rather than creating
6200 a new one from scratch.
6202 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6204 * function.c (assign_parm_data_one): Replace passed_type,
6205 promoted_mode and named_arg with a function_arg_info field.
6206 (assign_parm_find_data_types): Remove local variables and
6207 assign directly to "data". Make data->passed_mode shadow
6208 data->arg.mode until promotion, then assign the promoted
6209 mode to data->arg.mode.
6210 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6211 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6212 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6213 (assign_parm_setup_block, assign_parm_setup_reg)
6214 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6215 arg.mode instead of promoted_mode, arg.type instead of passed_type
6216 and arg.named instead of named_arg. Use data->arg for
6217 function_arg_info structures that had the field values passed_type,
6218 promoted_mode and named_arg. Base other function_arg_infos on
6219 data->arg, changing the necessary properties.
6221 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6223 * calls.h (apply_pass_by_reference_rules): Declare.
6224 * calls.c (apply_pass_by_reference_rules): New function.
6225 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6226 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6227 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6228 * function.c (assign_parm_find_data_types): Likewise.
6229 * var-tracking.c (prepare_call_arguments): Likewise.
6231 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6233 * target.def (must_pass_in_stack): Take a function_arg_info instead
6234 of a mode and a type.
6235 * doc/tm.texi: Regenerate.
6236 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6237 instead of a mode and a type.
6238 (must_pass_in_stack_var_size_or_pad): Likewise.
6239 * calls.c (must_pass_in_stack_var_size): Likewise.
6240 (must_pass_in_stack_var_size_or_pad): Likewise.
6241 (initialize_argument_information): Update call to
6242 targetm.calls.must_pass_in_stack.
6243 (must_pass_va_arg_on_stack): Likewise.
6244 * function.c (assign_parm_find_entry_rtl): Likewise.
6245 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6246 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6247 (alpha_function_arg_advance): Likewise.
6248 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6249 (cr16_function_arg_advance): Likewise.
6250 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6251 (cris_arg_partial_bytes): Likewise.
6252 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6253 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6254 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6255 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6256 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6257 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6258 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6259 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6260 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6261 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6262 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6263 instead of a mode and a type.
6264 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6265 (fr30_num_arg_regs): Likewise.
6266 (fr30_setup_incoming_varargs): Update calls accordingly.
6267 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6268 (fr30_function_arg_advance): Likewise.
6269 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6270 instead of a mode and a type.
6271 * config/gcn/gcn.c (num_arg_regs): Likewise.
6272 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6273 num_arg_regs and targetm.calls.must_pass_in_stack.
6274 (gcn_arg_partial_bytes): Likewise.
6275 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6276 function_arg_info instead of a mode and a type.
6277 (classify_argument): Update call accordingly.
6278 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6279 function_arg_info instead of a mode and a type.
6280 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6282 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6283 (rs6000_parm_needs_stack): Update call accordingly.
6284 (setup_incoming_varargs): Likewise.
6286 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6288 * target.def (callee_copies): Take a function_arg_info instead
6289 of a mode, type and named flag.
6290 * doc/tm.texi: Regenerate.
6291 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6292 instead of a mode, type and named flag.
6293 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6294 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6295 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6296 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6297 instead of a mode, type and named flag.
6298 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6299 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6300 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6301 * calls.h (reference_callee_copied): Take a function_arg_info
6302 instead of a mode, type and named flag.
6303 * calls.c (reference_callee_copied): Likewise.
6304 (initialize_argument_information): Update call accordingly.
6305 (emit_library_call_value_1): Likewise.
6306 * function.c (gimplify_parameters): Likewise.
6307 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6308 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6309 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6310 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6311 (TARGET_CALLEE_COPIES): Define to
6312 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6313 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6314 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6315 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6316 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6317 instead of a mode, type and named flag.
6318 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6319 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6320 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6321 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6322 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6323 (TARGET_CALLEE_COPIES): Define to
6324 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6325 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6326 instead of a mode, type and named flag.
6327 * config/sh/sh.c (sh_callee_copies): Likewise.
6328 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6329 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6330 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6332 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6334 * target.def (function_arg_advance): Take a function_arg_info instead
6335 of a mode, type and named flag.
6336 * doc/tm.texi: Regenerate.
6337 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6338 instead of a mode, type and named flag.
6339 * targhooks.c (default_function_arg_advance): Likewise.
6340 * calls.c (initialize_argument_information): Update call to
6341 targetm.calls.function_arg_advance.
6342 (emit_library_call_value_1): Likewise.
6343 * dse.c (get_call_args): Likewise.
6344 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6345 * function.c (assign_parms, gimplify_parameters): Likewise.
6346 * var-tracking.c (prepare_call_arguments): Likewise.
6347 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6348 function_arg_info instead of a mode, type and named flag.
6349 (aarch64_setup_incoming_varargs): Update call accordingly.
6350 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6351 function_arg_info instead of a mode, type and named flag.
6352 (alpha_setup_incoming_varargs): Update call accordingly.
6353 * config/arc/arc.c (arc_function_arg_advance): Take a
6354 function_arg_info instead of a mode, type and named flag.
6355 (arc_setup_incoming_varargs): Update call accordingly.
6356 * config/arm/arm.c (arm_function_arg_advance): Take a
6357 function_arg_info instead of a mode, type and named flag.
6358 (cmse_func_args_or_return_in_stack): Update call accordingly.
6359 (arm_function_ok_for_sibcall): Likewise.
6360 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6361 * config/avr/avr.c (avr_function_arg_advance): Take a
6362 function_arg_info instead of a mode, type and named flag.
6363 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6364 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6365 (c6x_call_saved_register_used): Update call accordingly.
6366 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6367 function_arg_info instead of a mode, type and named flag.
6368 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6369 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6370 (csky_setup_incoming_varargs): Update call accordingly.
6371 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6372 function_arg_info instead of a mode, type and named flag.
6373 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6374 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6375 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6376 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6377 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6378 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6379 (ix86_setup_incoming_varargs): Update call accordingly.
6380 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6381 function_arg_info instead of a mode, type and named flag.
6382 (ia64_setup_incoming_varargs): Update call accordingly.
6383 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6384 function_arg_info instead of a mode, type and named flag.
6385 (iq2000_expand_prologue): Update call accordingly.
6386 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6387 function_arg_info instead of a mode, type and named flag.
6388 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6389 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6390 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6391 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6392 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6394 (microblaze_expand_prologue): Update call accordingly.
6395 * config/mips/mips.c (mips_function_arg_advance): Take a
6396 function_arg_info instead of a mode, type and named flag.
6397 (mips_setup_incoming_varargs): Update call accordingly.
6398 (mips_output_args_xfer): Likewise.
6399 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6400 function_arg_info instead of a mode, type and named flag.
6401 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6402 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6403 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6404 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6405 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6406 (nios2_setup_incoming_varargs): Update call accordingly.
6407 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6408 function_arg_info instead of a mode, type and named flag.
6409 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6410 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6411 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6412 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6413 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6414 (riscv_setup_incoming_varargs): Update call accordingly.
6415 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6416 function_arg_info instead of a mode, type and named flag.
6417 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6419 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6420 (rs6000_parm_needs_stack): Update call accordingly.
6421 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6422 instead of a mode, type and named flag.
6423 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6424 (s390_call_saved_register_used): Update call accordingly.
6425 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6426 instead of a mode, type and named flag.
6427 (sh_output_mi_thunk): Update call accordingly.
6428 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6429 function_arg_info instead of a mode, type and named flag.
6430 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6431 (spu_setup_incoming_varargs): Update call accordingly.
6432 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6433 function_arg_info instead of a mode, type and named flag.
6434 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6435 (tilegx_setup_incoming_varargs): Update call accordingly.
6436 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6437 function_arg_info instead of a mode, type and named flag.
6438 (tilegx_setup_incoming_varargs): Update call accordingly.
6439 * config/v850/v850.c (v850_function_arg_advance): Take a
6440 function_arg_info instead of a mode, type and named flag.
6441 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6442 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6443 (visium_setup_incoming_varargs): Update call accordingly.
6444 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6445 function_arg_info instead of a mode, type and named flag.
6447 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6449 * target.def (function_arg, function_incoming_arg): Take a
6450 function_arg_info instead of a mode, tree and named flag.
6451 * doc/tm.texi: Regenerate.
6452 * targhooks.h (default_function_arg): Take a function_arg_info
6453 instead of a mode, tree and named flag.
6454 (default_function_incoming_arg): Likewise.
6455 * targhooks.c (default_function_arg): Likewise.
6456 (default_function_incoming_arg): Likewise.
6457 * calls.h (function_arg_info::end_marker_p): New function.
6458 (function_arg_info::end_marker): Likewise.
6459 * calls.c (prepare_call_address, initialize_argument_information)
6460 (expand_call, emit_library_call_value_1): Update calls to
6461 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6462 * dse.c: Include calls.h.
6463 (get_call_args): Update call to targetm.calls.function_arg.
6464 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6465 * var-tracking.c (prepare_call_arguments): Likewise.
6466 * function.c (assign_parm_find_entry_rtl): Update call to
6467 targetm.calls.function_incoming_arg.
6468 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6469 function_arg_info instead of a mode, tree and named flag.
6470 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6471 * config/arc/arc.c (arc_function_arg): Likewise.
6472 * config/arm/arm.c (arm_function_arg): Likewise.
6473 (cmse_func_args_or_return_in_stack): Update call accordingly.
6474 (arm_function_ok_for_sibcall): Likewise.
6475 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6476 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6477 instead of a mode, tree and named flag.
6478 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6479 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6480 (c6x_call_saved_register_used): Update call accordingly.
6481 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6482 instead of a mode, tree and named flag.
6483 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6484 (cris_function_arg_1): Likewise.
6485 * config/csky/csky.c (csky_function_arg): Likewise.
6486 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6487 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6488 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6489 (frv_function_arg_1): Likewise.
6490 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6491 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6492 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6493 * config/i386/i386.c (ix86_function_arg): Likewise.
6494 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6495 (ia64_function_arg_1): Likewise.
6496 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6497 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6499 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6500 instead of a mode, tree and named flag.
6501 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6502 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6503 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6504 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6505 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6506 (microblaze_expand_prologue): Update call accordingly.
6507 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6508 instead of a mode, tree and named flag.
6509 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6510 (mmix_function_arg_1): Likewise.
6511 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6512 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6513 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6514 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6515 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6516 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6517 (nvptx_function_incoming_arg): Likewise.
6518 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6519 * config/pa/pa.c (pa_function_arg): Likewise.
6520 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6521 * config/pru/pru.c (pru_function_arg): Likewise.
6522 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6523 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6524 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6525 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6526 (rs6000_parm_needs_stack): Update call accordingly.
6527 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6528 instead of a mode, tree and named flag.
6529 * config/s390/s390.c (s390_function_arg): Likewise.
6530 (s390_call_saved_register_used): Update call accordingly.
6531 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6532 instead of a mode, tree and named flag.
6533 (sh_output_mi_thunk): Update call accordingly.
6534 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6535 (sparc_function_incoming_arg): Take a function_arg_info instead of
6536 a mode, tree and named flag.
6537 * config/spu/spu.c (spu_function_arg): Likewise.
6538 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6539 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6540 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6541 * config/v850/v850.c (v850_function_arg): Likewise.
6542 * config/vax/vax.c (vax_function_arg): Likewise.
6543 * config/visium/visium.c (visium_function_arg): Likewise.
6544 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6545 (xtensa_function_incoming_arg): Likewise.
6547 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6549 * target.def (setup_incoming_varargs): Take a function_arg_info
6550 instead of a mode and tree.
6551 * doc/tm.texi: Regenerate.
6552 * targhooks.h (default_setup_incoming_varargs): Take a
6553 function_arg_info instead of a mode and tree.
6554 * targhooks.c (default_setup_incoming_varargs): Likewise.
6555 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6556 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6557 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6558 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6559 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6560 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6561 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6562 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6564 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6565 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6566 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6567 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6568 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6569 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6570 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6571 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6572 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6573 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6574 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6575 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6576 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6577 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6578 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6579 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6580 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6581 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6582 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6583 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6584 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6585 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6586 * function.c (assign_parms_setup_varargs): Update call to
6587 targetm.calls.setup_incoming_varargs.
6589 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6591 * target.def (pass_by_reference): Take a function_arg_info instead
6592 of a mode, type and named flag.
6593 * doc/tm.texi: Regenerate.
6594 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6596 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6597 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6598 function_arg_info instead of a mode, type and named flag.
6599 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6600 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6601 mode, type and named flag.
6602 * calls.c (pass_by_reference): Likewise.
6603 (pass_va_arg_by_reference): Update call accordingly.
6604 (initialize_argument_information): Likewise.
6605 (emit_library_call_value_1): Likewise.
6606 * function.c (assign_parm_find_data_types): Likewise.
6607 * var-tracking.c (prepare_call_arguments): Likewise.
6608 * stor-layout.c: Include calls.h.
6609 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6610 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6611 function_arg_info instead of a mode, type and named flag.
6612 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6613 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6614 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6615 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6616 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6617 (c6x_call_saved_register_used): Update call to pass_by_reference.
6618 * config/cris/cris.c (cris_pass_by_reference): Take a
6619 function_arg_info instead of a mode, type and named flag.
6620 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6621 function_arg_info instead of a mode, type and named flag.
6622 (epiphany_arg_partial_bytes): Update call accordingly.
6623 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6624 function_arg_info instead of a mode, type and named flag.
6625 (ft32_arg_partial_bytes): Update call accordingly.
6626 * config/i386/i386.c (ix86_pass_by_reference): Take a
6627 function_arg_info instead of a mode, type and named flag.
6628 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6629 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6630 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6631 (m32r_return_in_memory): Update call accordingly.
6632 * config/mips/mips.c (mips_pass_by_reference): Take a
6633 function_arg_info instead of a mode, type and named flag.
6634 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6635 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6636 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6637 (moxie_arg_partial_bytes): Update call accordingly.
6638 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6639 function_arg_info instead of a mode, type and named flag.
6640 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6641 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6642 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6643 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6644 (riscv_return_in_memory): Update call accordingly.
6645 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6646 function_arg_info instead of a mode, type and named flag.
6647 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6648 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6649 * config/s390/s390.c (s390_pass_by_reference): Take a
6650 function_arg_info instead of a mode, type and named flag.
6651 (s390_call_saved_register_used): Update call accordingly.
6652 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6653 instead of a mode, type and named flag.
6654 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6655 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6656 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6657 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6658 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6659 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6661 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6663 * target.def (arg_partial_bytes): Take a function_arg_info instead
6664 of a mode, type and named flag.
6665 * doc/tm.texi: Regenerate.
6666 * target.h (function_arg_info): Declare.
6667 * calls.h (function_arg_info): New class.
6668 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6669 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6670 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6671 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6672 * calls.c (initialize_argument_information): Update call to
6673 targetm.calls.partial_bytes.
6674 (emit_library_call_value_1): Likewise.
6675 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6676 * function.c (assign_parm_find_entry_rtl): Likewise.
6677 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6678 function_arg_info instead of a mode, type and named flag.
6679 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6680 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6681 (cmse_func_args_or_return_in_stack): Update accordingly.
6682 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6683 function_arg_info instead of a mode, type and named flag.
6684 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6685 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6686 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6687 * config/fr30/fr30.c: Include calls.h.
6688 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6689 type and named flag.
6690 * config/frv/frv.c: Include calls.h.
6691 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6692 type and named flag.
6693 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6694 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6695 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6696 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6697 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6698 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6699 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6701 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6702 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6703 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6704 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6705 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6706 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6707 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6708 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6709 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6710 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6711 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6712 (rs6000_parm_needs_stack): Update call accordingly.
6713 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6714 function_arg_info instead of a mode, type and named flag.
6715 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6716 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6718 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6720 * calls.h (must_pass_va_arg_in_stack): Declare.
6721 * calls.c (must_pass_va_arg_in_stack): New function.
6722 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6723 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6724 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6726 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6728 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6730 * calls.h (pass_va_arg_by_reference): Declare.
6731 * calls.c (pass_va_arg_by_reference): New function.
6732 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6733 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6734 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6735 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6736 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6737 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6738 (mips_gimplify_va_arg_expr): Likewise.
6739 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6740 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6741 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6742 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6743 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6744 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6745 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6746 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6747 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6748 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6749 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6751 2019-08-20 Richard Biener <rguenther@suse.de>
6754 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6755 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6756 (convert_scalars_to_vector): Add timode_p parameter and use it
6757 to guard TImode-only operation.
6758 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6759 (pass_stv::execute): Pass down timode_p.
6761 2019-08-20 Lili Cui <lili.cui@intel.com>
6763 * common/config/i386/i386-common.c
6764 (processor_names): Add tigerlake and cooperlake.
6765 (processor_alias_table): Add tigerlake and cooperlake.
6766 * config.gcc: Add -march=tigerlake and cooperlake.
6767 * config/i386/driver-i386.c
6768 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6769 Add "has_avx" to classify processor.
6770 * config/i386/i386-builtins.c (processor_model) :
6771 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6772 (arch_names_table): Add tigerlake and cooperlake.
6773 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6774 and PROCESSOR_COOPERLAKE.
6775 * config/i386/i386-c.c
6776 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6777 * config/i386/i386-options.c
6778 (m_TIGERLAKE) : Define.
6779 (m_COOPERLAKE) : Ditto.
6780 (m_CORE_AVX512): Ditto.
6781 (processor_cost_table): Add cascadelake.
6782 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6783 * config/i386/i386.h
6784 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6785 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6786 (PTA_MOVDIRI): Ditto.
6787 (PTA_MOVDIR64B): Ditto.
6788 (PTA_COOPERLAKE) : Ditto.
6789 (PTA_TIGERLAKE) : Ditto.
6790 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6791 * doc/extend.texi: Add tigerlake and cooperlake.
6792 * doc/invoke.texi: Add tigerlake and cooperlake.
6794 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6796 * doc/install.texi (Specific, alpha): Remove note to use
6797 binutils 2.11.2 or later.
6799 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6802 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6805 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6807 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6808 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6809 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6810 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6811 * config/aarch64/constraints.md (Dt): New constraint
6812 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6814 2019-08-19 Richard Biener <rguenther@suse.de>
6816 PR tree-optimization/91403
6817 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6818 cases we can handle with tail-recursion...
6819 (follow_ssa_edge_expr): ... here. Do so.
6821 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6824 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6825 implemented for -fsanitize=kernel-address, and merge check logic
6826 with -fsanitize=address.
6828 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6830 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6831 for cpu and machine. Factor 64/32b builtins.
6833 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6835 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6836 gone, point to sourceforge.net.
6838 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6840 * doc/ux.texi (User Experience Guidelines): Update reference.
6842 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6844 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6847 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6849 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6850 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6852 2019-08-16 Martin Sebor <msebor@redhat.com>
6854 * tree.def (TYPE_SIZE): Clarify.
6855 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6857 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6859 PR tree-optimization/91109
6860 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6861 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6862 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6864 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6866 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6867 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6868 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6869 (uavg<mode>3_ceil): New expander.
6870 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6871 mode iterator when creating CONST1_RTX.
6872 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6873 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6874 mode iterator for const1_operand predicate.
6876 2019-08-16 Richard Biener <rguenther@suse.de>
6878 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6879 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6881 (follow_ssa_edge_in_condition_phi_branch): Likewise.
6882 (analyze_evolution_in_loop): Likewise.
6883 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6884 (follow_ssa_edge_expr): ... here. Refactor code.
6886 2019-08-16 Richard Biener <rguenther@suse.de>
6889 * config/i386/i386-features.c
6890 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6892 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6895 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6896 only if subst_name matches curr_attr string.
6898 2019-08-16 Richard Biener <rguenther@suse.de>
6900 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6901 stmt at gsi_p, instead replace it with a NOP removed later.
6902 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6903 that became dead because of that.
6905 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
6907 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6908 for which we can't represent a range.
6909 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6911 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6912 Set VR_UNDEFINED if type is not supported.
6913 * tree-ssanames.c (get_range_info): Pass type to set_varying.
6914 * tree-vrp.c (value_range_base::check): Assert that a varying has
6916 (value_range_base::equal_p): Early bail for undefines.
6917 (value_range_base::set_varying): Accept a type.
6918 (value_range::set_varying): Same.
6919 (value_range_base::type): VARYING can have a type, while UNDEFINE
6921 (value_range_base::dump): Print type for VARYING nodes.
6922 (value_range_base::set): Add type to VARYING.
6923 (extract_range_from_multiplicative_op): Pass type to set_varying.
6924 (extract_range_from_binary_expr): Same.
6925 (value_range_base::intersect_helper): Same.
6926 (value_range_base::union_helper): Same.
6927 (value_range_base::normalize_symbolics): Same.
6928 (determine_value_range_1): Same.
6929 * tree-vrp.h (class value_range_base): Add type to set_varying.
6930 Add prototype for dump(void).
6931 Add prototype for supports_type_p.
6932 (class value_range): Add type to set_varying.
6933 Add prototype for dump(void).
6934 * vr-values.c (set_value_range_to_truthvalue): Pass type to
6936 (vr_values::get_lattice_entry): Set varying even if propagation
6938 Pass type to set_varying.
6939 (vr_values::get_value_range): Remove vr_const_varying.
6940 Reallocate the lattice if needed.
6941 (vr_values::update_value_range): Pass type to set_varying.
6942 (vr_values::extract_range_for_var_from_comparison_expr): Same.
6943 (vr_values::extract_range_from_binary_expr): Same.
6944 (vr_values::extract_range_from_unary_expr): Same.
6945 (vr_values::extract_range_from_cond_expr): Same.
6946 (vr_values::check_for_binary_op_overflow): Same.
6947 (vr_values::extract_range_basic): Same.
6948 (vr_values::extract_range_from_assignment): Same.
6949 (vr_values::vr_values): Increase size of num_vr_values.
6950 (vr_values::extract_range_from_phi_node): Pass type to
6953 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
6956 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
6957 for costs of hard register moves.
6958 (ix86_register_move_cost): Likewise.
6959 * config/i386/i386.h (processor_costs): Move costs of hard
6960 register moves to hard_register. Add int_load, int_store,
6961 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6962 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
6963 for costs of RTL expressions.
6964 * config/i386/x86-tune-costs.h: Move costs of hard register
6965 moves to hard_register. Duplicate int_load, int_store,
6966 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6967 sse_load, sse_store for costs of RTL expressions.
6969 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6971 * target.def (setup_incoming_vararg_bounds): Remove.
6972 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
6973 * doc/tm.texi: Regenerate.
6974 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
6975 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
6976 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6977 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6979 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6981 MSP430: Fix lines over 80 characters long in
6982 config/msp430/*.{c,h} files
6984 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
6985 specifier in string.
6986 (msp430_select_hwmult_lib): Split line more than 80 characters long.
6987 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
6988 redundant old comment.
6989 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
6990 Split line more than 80 characters long.
6991 * config/msp430/msp430.c (msp430_option_override): Likewise.
6992 (msp430_return_in_memory): Likewise.
6993 (msp430_gimplify_va_arg_expr): Likewise.
6994 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
6995 (msp430_legitimate_constant): Likewise.
6996 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
6997 (msp430_attr): Likewise.
6998 (msp430_data_attr): Likewise.
6999 (msp430_start_function): Likewise.
7000 (gen_prefix): Likewise.
7001 (msp430_init_sections): Likewise.
7002 (msp430_select_section): Likewise.
7003 (msp430_function_section): Likewise.
7004 (msp430_unique_section): Likewise.
7005 (msp430_output_aligned_decl_common): Likewise.
7006 (msp430_do_not_relax_short_jumps): Likewise.
7007 (msp430_init_builtins): Likewise.
7008 (msp430_expand_delay_cycles): Likewise.
7009 (msp430_expand_prologue): Likewise.
7010 (msp430_expand_epilogue): Likewise.
7011 (msp430_expand_helper): Likewise.
7012 (msp430_split_movsi): Likewise.
7013 (msp430_print_operand): Likewise.
7014 (msp430_return_addr_rtx): Likewise.
7015 (msp430x_extendhisi): Likewise.
7016 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7017 (ASM_SPEC): Likewise.
7018 Remove very obvious comments.
7019 (LIB_SPEC): Split line more than 80 characters long.
7020 (EH_RETURN_HANDLER_RTX): Likewise.
7021 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7023 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7025 MSP430: Fix whitespace errors and incorrect indentation in
7026 config/msp430/*.{c,h} files
7028 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7029 (msp430_select_hwmult_lib): Likewise.
7030 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7031 (msp430_extract_mcu_data): Likewise.
7032 (struct t_msp430_mcu_data): Likewise.
7033 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7034 before left square bracket.
7035 (msp430_option_override): Fix indentation.
7036 (msp430_hard_regno_nregs_with_padding): Likewise.
7037 (msp430_initial_elimination_offset): Likewise.
7038 (msp430_special_register_convention_p): Remove whitespace before left
7039 square bracket and after exclamation mark.
7040 (msp430_evaluate_arg): Likewise.
7041 (msp430_callee_copies): Fix indentation.
7042 (msp430_gimplify_va_arg_expr): Likewise.
7043 (msp430_function_arg_advance): Remove whitespace before left square
7045 (reg_ok_for_addr): Likewise.
7046 (msp430_preserve_reg_p): Likewise.
7047 (msp430_compute_frame_info): Likewise.
7048 (msp430_asm_output_addr_const_extra): Add space between function name
7049 and open parenthesis.
7050 (has_section_name): Fix indentation.
7051 (msp430_attr): Remove trailing whitespace.
7052 (msp430_section_attr): Likewise.
7053 (msp430_data_attr): Likewise.
7054 (struct msp430_attribute_table): Fix comment and whitespace.
7055 (msp430_start_function): Remove whitespace before left square bracket.
7056 Add space between function name and open parenthesis.
7057 (msp430_select_section): Remove trailing whitespace.
7058 (msp430_section_type_flags): Remove trailing whitespace.
7059 (msp430_unique_section): Remove space before closing parenthesis.
7060 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7061 (msp430_builtins): Remove whitespace before left square bracket.
7062 (msp430_init_builtins): Fix indentation.
7063 (msp430_expand_prologue): Remove whitespace before left square bracket.
7064 Remove space before closing parenthesis.
7065 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7066 (msp430_split_movsi): Remove space before closing parenthesis.
7067 (helper_function_name_mappings): Fix indentation.
7068 (msp430_use_f5_series_hwmult): Fix whitespace.
7069 (use_32bit_hwmult): Likewise.
7070 (msp430_no_hwmult): Likewise.
7071 (msp430_output_labelref): Remove whitespace before left square bracket.
7072 (msp430_print_operand_raw): Likewise.
7073 (msp430_print_operand_addr): Likewise.
7074 (msp430_print_operand): Add two spaces after '.' in comment.
7075 Fix trailing whitespace.
7076 (msp430x_extendhisi): Fix indentation.
7077 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7079 (PC_REGNUM): Likewise.
7080 (STACK_POINTER_REGNUM): Likewise.
7081 (CC_REGNUM): Likewise.
7083 2019-08-15 Richard Biener <rguenther@suse.de>
7086 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7088 (general_scalar_chain::make_vector_copies): Use it.
7090 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7092 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7094 2019-08-15 Martin Liska <mliska@suse.cz>
7096 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7097 operators with no arguments.
7098 (eliminate_unnecessary_stmts): Likewise here.
7100 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7102 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7103 <case COMPARE>: Revert 2019-08-14 change.
7104 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7105 for (TARGET_64BIT || mode != DImode).
7107 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7109 * tree-vrp.c (value_range_base::set): Merge in code from
7110 value_range_base::set_and_canonicalize.
7111 Enforce canonicalization at set time.
7112 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7113 (value_range_base::set_undefined): Inline call to set().
7114 (value_range_base::set_varying): Same.
7115 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7116 (vrp_val_max): New argument handle_pointers.
7117 (vrp_val_min): Same.
7118 (ranges_from_anti_range): Same.
7119 (extract_range_into_wide_ints): Use tree argument instead of sign
7121 (extract_range_from_multiplicative_op): Take in tree type instead
7122 of precision and sign. Adapt function for canonicalized ranges.
7123 (extract_range_from_binary_expr): Pass type to
7124 extract_range_from_multiplicative_op.
7125 Adapt for canonicalized ranges.
7126 (extract_range_from_unary_expr): Same.
7127 (value_range_base::intersect_helper): Adjust for canonicalized
7129 (value_range_base::union_helper): Same.
7130 (value_range_base::normalize_symbolics): New.
7131 * tree-vrp.h (class value_range_base): Remove
7132 set_and_canonicalize.
7133 New prototype for normalize_symbolics.
7134 (class value_range): Remove set_and_canonicalize.
7135 (vrp_val_min): Adjust prototype.
7136 (vrp_val_max): Same.
7138 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7139 instead of set_and_canonicalize.
7141 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7144 * tree-vect-stmts.c (vectorizable_call): Check that the function
7145 is a BUILT_IN_MD function before passing it to
7146 targetm.vectorize.builtin_md_vectorized_function.
7148 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7150 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7151 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7152 (aarch64_select_early_remat_modes): Use it.
7154 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7156 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7157 16 for SVE predicates even if they are fixed-length.
7159 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7161 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7162 operand order match the MOV /Z alias.
7164 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7166 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7167 the vector pattern as an aarch64_svpattern argument. Update the
7168 overloaded caller accordingly.
7169 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7170 (aarch64_output_sve_vector_inc_dec): Likewise.
7172 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7174 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7175 multiplication case, try to compute VG * (lowest set bit) directly
7176 rather than always basing the multiplication on VG. Use
7177 expand_mult for the multiplication if we can.
7179 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7181 * config/aarch64/aarch64-protos.h
7182 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7183 (aarch64_sve_inc_dec_immediate_p): Rename to...
7184 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7185 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7186 (aarch64_output_sve_scalar_inc_dec): Declare.
7187 (aarch64_output_sve_inc_dec_immediate): Rename to...
7188 (aarch64_output_sve_vector_inc_dec): ...this.
7189 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7190 (aarch64_output_sve_scalar_inc_dec): New functions.
7191 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7192 arguments. Only handle true ADDVL and ADDPL instructions;
7193 don't emit an INC or DEC.
7194 (aarch64_sve_inc_dec_immediate_p): Rename to...
7195 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7196 (aarch64_output_sve_inc_dec_immediate): Rename to...
7197 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7198 aarch64_sve_vector_inc_dec_immediate_p.
7199 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7200 (aarch64_sve_plus_immediate): New predicates.
7201 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7202 rather than aarch64_sve_addvl_addpl_immediate.
7203 (aarch64_sve_inc_dec_immediate): Rename to...
7204 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7205 aarch64_sve_vector_inc_dec_immediate_p.
7206 (aarch64_sve_add_operand): Update accordingly.
7207 * config/aarch64/constraints.md (Uai): New constraint.
7208 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7209 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7210 operand into a register if it satisfies aarch64_sve_plus_immediate.
7211 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7212 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7213 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7214 aarch64_output_sve_vector_inc_dec instead of
7215 aarch64_output_sve_inc_dec_immediate.
7217 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7219 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7220 (UNSPEC_REVW): New constants.
7221 (elem_bits): New mode attribute.
7222 (SVE_INT_UNARY): New int iterator.
7223 (optab): Handle UNSPEC_REV[BHW].
7224 (sve_int_op): New int attribute.
7225 (min_elem_bits): Handle VNx16QI and the predicate modes.
7226 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7227 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7228 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7229 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7230 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7231 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7232 unspecs based on the total width of the reversed data.
7233 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7234 reinterpret followed by a subreg on big-endian targets.
7236 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7237 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7239 * config/aarch64/aarch64-sve.md
7240 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7241 alternatives in which one of the inputs is in the same register
7244 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7246 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7247 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7249 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7251 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7252 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7254 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7255 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7257 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7258 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7259 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7261 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7262 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7264 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7265 Add an alternative that uses reversed shifts.
7267 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7269 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7272 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7274 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7275 a commutativity marker.
7277 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7278 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7280 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7281 (aarch64_prepare_sve_cond_int_fma): Declare.
7282 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7283 (aarch64_prepare_sve_int_fma): New functions.
7284 (aarch64_prepare_sve_cond_int_fma): Likewise.
7285 * config/aarch64/aarch64-sve.md
7286 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7287 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7288 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7289 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7290 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7291 (*madd<mode>): Rename to...
7292 (*fma<mode>4): ...this.
7293 (*msub<mode>): Rename to...
7294 (*fnma<mode>4): ...this.
7296 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7297 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7299 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7300 Print 2.0 naturally.
7301 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7302 * config/aarch64/predicates.md
7303 (aarch64_sve_float_negated_arith_immediate): New predicate,
7304 renamed from aarch64_sve_float_arith_with_sub_immediate.
7305 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7306 positive and negative constants.
7307 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7308 or an aarch64_sve_float_arith_with_sub_immediate.
7309 * config/aarch64/constraints.md (vsN): Use
7310 aarch64_sve_float_negated_arith_immediate.
7311 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7313 (sve_pred_fp_rhs2_immediate): New int attribute.
7314 * config/aarch64/aarch64-sve.md
7315 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7316 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7317 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7318 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7319 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7320 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7322 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7323 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7325 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7326 (*aarch64_cond_abd<SVE_F:mode>_3)
7327 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7329 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7330 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7332 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7333 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7335 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7336 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7338 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7339 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7340 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7341 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7343 * optabs.h (create_convert_operand_from): Expand comment.
7344 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7345 when mapping scalar rtxes to vector operands.
7346 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7347 ashiftrt and lshiftrt.
7348 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7349 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7350 (*cond_<optab><mode>_any_const): New patterns.
7352 2019-08-15 Martin Liska <mliska@suse.cz>
7355 * cgraph.c (cgraph_node::remove): When setting
7356 n->origin = NULL for all nested functions, reset
7359 2019-08-15 Martin Liska <mliska@suse.cz>
7361 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7364 2019-08-15 Martin Liska <mliska@suse.cz>
7367 * passes.c (order): Remove.
7368 (uid_hash_t): Likewise).
7369 (remove_cgraph_node_from_order): Remove from set
7370 of pointers (cgraph_node *).
7371 (insert_cgraph_node_to_order): New.
7372 (duplicate_cgraph_node_to_order): New.
7373 (do_per_function_toporder): Register all 3 cgraph hooks.
7374 Skip removed_nodes now as we know about all of them.
7376 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7378 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7379 <case E_V8QImode>: Use vector_set path for
7380 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7381 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7382 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7384 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7386 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7388 2019-08-14 Martin Sebor <msebor@redhat.com>
7390 PR tree-optimization/91294
7391 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7392 source length as exact.
7394 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7396 * doc/extend.texi: Add "noinit" attribute documentation.
7397 * doc/sourcebuild.texi: Add noinit effective target documentation.
7398 * varasm.c (default_section_type_flags): Add support for "noinit"
7400 (default_elf_select_section): Add support for "noinit" attribute.
7401 * config/msp430/msp430.c (msp430_attribute_table): Remove
7404 2019-08-14 Richard Biener <rguenther@suse.de>
7405 Uroš Bizjak <ubizjak@gmail.com>
7408 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7410 (scalar_chain::smode): New member.
7411 (scalar_chain::vmode): Likewise.
7412 (dimode_scalar_chain): Rename to...
7413 (general_scalar_chain): ... this.
7414 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7415 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7416 base with TImode and V1TImode.
7417 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7418 (general_scalar_chain::vector_const_cost): Adjust for SImode
7420 (general_scalar_chain::compute_convert_gain): Likewise. Add
7421 {S,U}{MIN,MAX} support.
7422 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7423 (general_scalar_chain::make_vector_copies): Likewise. Handle
7424 non-DImode chains appropriately.
7425 (general_scalar_chain::convert_reg): Likewise.
7426 (general_scalar_chain::convert_op): Likewise.
7427 (general_scalar_chain::convert_insn): Likewise. Add
7428 fatal_insn_not_found if the result is not recognized.
7429 (convertible_comparison_p): Pass in the scalar mode and use that.
7430 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7431 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7432 (scalar_to_vector_candidate_p): Remove by inlining into single
7434 (general_remove_non_convertible_regs): Rename from
7435 dimode_remove_non_convertible_regs.
7436 (remove_non_convertible_regs): Remove by inlining into single caller.
7437 (convert_scalars_to_vector): Handle SImode and DImode chains
7438 in addition to TImode chains.
7439 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7440 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7441 (*<maxmin>di3_doubleword): Likewise.
7443 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7444 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7446 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7447 (*cond_bic<mode>_any): New patterns.
7449 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7451 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7452 take the equivalent mask, as well as a bit count.
7453 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7454 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7455 (aarch64_sve_pred_and_operand): New predicates.
7456 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7458 * config/aarch64/aarch64-sve.md
7459 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7460 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7462 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7464 * config/aarch64/aarch64-sve.md
7465 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7466 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7469 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7470 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7472 * config/aarch64/aarch64-sve.md
7473 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7474 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7476 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7477 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7479 * config/aarch64/aarch64-sve.md
7480 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7481 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7483 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7485 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7486 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7489 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7490 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7492 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7494 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7495 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7497 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7498 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7499 (aarch64_print_operand): Add support for %I.
7500 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7501 Bitcast floating-point constants to the corresponding integer constant.
7502 (aarch64_float_const_representable_p): Handle vectors as well
7504 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7505 for the new vcond_mask_<mode><vpred> expander.
7506 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7507 test aarch64_float_const_representable_p.
7508 (aarch64_sve_reg_or_dup_imm): New predicate.
7509 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7510 gen_vcond_mask_<mode><vpred> instead of
7511 gen_aarch64_sve_dup<mode>_const.
7512 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7513 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7514 for operands 1 and 2 respectively. Force operand 2 into a
7515 register if operand 1 is a register. Fold old define_insn...
7516 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7517 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7518 floating-point constants that can be moved as integers. Add
7519 alternatives for MOV /M and FMOV /M.
7520 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7521 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7522 1 and 2 respectively.
7523 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7525 (vss): New constraint.
7527 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7529 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7530 (aarch64_sve_float_maxmin_operand): New predicates.
7531 * config/aarch64/constraints.md (vsB): New constraint.
7533 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7534 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7536 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7537 Use aarch64_sve_float_maxmin_operand for operand 2.
7538 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7539 Add alternatives for the constant forms.
7541 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7543 * config/aarch64/constraints.md (vsb): New constraint.
7544 (vsm): Generalize description.
7545 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7547 (sve_imm_con): Handle smax, smin, umax and umin.
7548 (sve_imm_prefix): New code attribute.
7549 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7550 (aarch64_sve_vsb_operand): New predicates.
7551 (aarch64_sve_mul_immediate): Rename to...
7552 (aarch64_sve_vsm_immediate): ...this.
7553 (aarch64_sve_mul_operand): Rename to...
7554 (aarch64_sve_vsm_operand): ...this.
7555 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7556 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7557 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7558 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7559 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7560 add movprfx support for the immediate alternatives.
7561 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7563 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7566 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7568 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7569 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7570 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7572 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7574 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7575 (optab, sve_int_op): Handle them.
7576 * config/aarch64/aarch64-sve.md: Expand comment.
7578 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7580 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7581 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7582 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7584 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7586 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7587 (aarch64_expand_sve_const_pred_trn): New functions.
7588 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7589 use the above functions when the parameter is true.
7590 (aarch64_expand_sve_const_pred): Update call accordingly.
7591 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7593 (@aarch64_sve_<perm_insn><mode>): ...this.
7595 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7597 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7599 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7600 (aarch64_sve_emit_int_cmp): New functions.
7601 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7602 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7603 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7604 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7605 (UNSPEC_PRED_Z): New unspec.
7606 (set_clobber_cc_nzc): Delete.
7607 * config/aarch64/aarch64-sve.md: Add a block comment about
7609 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7610 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7611 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7613 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7614 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7615 check for compatible predicates.
7616 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7617 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7618 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7621 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7623 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7624 * config/aarch64/aarch64-sve.md: Add a section describing it.
7625 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7626 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7627 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7628 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7629 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7630 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7631 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7632 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7633 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7634 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7635 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7636 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7637 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7638 (aarch64_evpc_rev_local): Update accordingly.
7640 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7642 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7644 (SVE_BHSI, SVE_SDI): Tweak comment.
7645 (SVE_HSDI): Likewise. Fix definition.
7646 (SVE_SDF): New mode iterator.
7647 (elem_bits): New mode attribute.
7648 (SVE_COND_FCVT): New int iterator.
7649 * config/aarch64/aarch64-sve.md
7650 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7651 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7652 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7653 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7654 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7655 ...these new patterns.
7656 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7657 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7658 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7660 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7661 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7662 ...these new patterns.
7663 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7664 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7665 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7666 ...this new pattern.
7667 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7668 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7669 ...this new pattern.
7670 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7672 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7674 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7675 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7676 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7678 (optab, su): Handle them.
7679 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7680 * config/aarch64/aarch64-sve.md
7681 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7682 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7683 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7684 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7685 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7686 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7687 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7688 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7689 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7691 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7692 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7693 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7694 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7695 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7696 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7697 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7698 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7699 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7700 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7701 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7702 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7703 of UNSPEC_FLOAT_CONVERT.
7704 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7705 aarch64_sve_extend<mode><Vwide>2.
7707 2019-08-14 Richard Biener <rguenther@suse.de>
7710 * config/i386/i386-features.c
7711 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7712 individual instruction gain. Fix reg-reg copy GRP cost. Use
7713 ix86_cost->sse_op for vector instruction costs.
7715 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7717 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7718 (cmp_op): Handle it.
7719 (SVE_COND_FP_CMP): Rename to...
7720 (SVE_COND_FP_CMP_I0): ...this.
7721 (SVE_FP_CMP): Remove.
7722 * config/aarch64/aarch64-sve.md
7723 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7724 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7725 using unspecs to represent the comparison.
7726 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7727 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7729 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7730 (aarch64_unspec_cond_code): Move after integer code. Handle
7732 (aarch64_emit_sve_predicated_cond): Replace with...
7733 (aarch64_emit_sve_fp_cond): ...this new function.
7734 (aarch64_emit_sve_or_conds): Replace with...
7735 (aarch64_emit_sve_or_fp_conds): ...this new function.
7736 (aarch64_emit_sve_inverted_cond): Replace with...
7737 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7738 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7740 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7742 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7743 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7744 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7745 SVE_HSD instead of SVE_SD.
7747 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7748 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7750 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7752 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7754 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7755 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7756 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7757 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7758 (*div<SVE_F:mode>3): Generalize to...
7759 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7761 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7762 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7764 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7766 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7768 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7770 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7772 * config/aarch64/aarch64-sve.md: Add a block comment about the
7773 handling of predicated FP operations.
7774 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7775 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7776 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7777 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7778 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7780 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7781 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7783 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7784 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7785 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7786 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7787 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7788 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7789 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7790 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7791 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7792 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7793 strictness operands. Use aarch64_sve_pred_dominates_p to check
7794 whether the predicate on the conditional operation is suitable
7795 for merging. Split patterns into the canonical equal-predicate form.
7796 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7797 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7799 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7800 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7802 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7803 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7804 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7806 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7807 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7810 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7811 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7813 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7814 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7815 actually has, rather than relying on REG_EQUAL notes.
7816 Make the insn operand order match the SVE operand order.
7817 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7818 the SVE operand order.
7820 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7822 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7823 (aarch64_emit_set_immediate): Likewise.
7824 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7825 (aarch64_pfalse_reg): Likewise.
7826 (aarch64_convert_sve_data_to_pred): New function.
7827 (aarch64_sve_move_pred_via_while): Take an optional target register
7828 and the required register mode.
7829 (aarch64_expand_sve_const_pred_1): New function.
7830 (aarch64_expand_sve_const_pred): Likewise.
7831 (aarch64_expand_mov_immediate): Build an all-true predicate
7832 if the significant bits of the immediate are all true. Use
7833 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7834 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7835 before register allocation.
7836 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7837 a VNx16BI PTRUE when splitting the memory alternative.
7838 (vec_duplicate<mode>): Update accordingly.
7839 (*pred_cmp<cmp_op><mode>): Rename to...
7840 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7842 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7844 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7845 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7846 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7847 (UNSPEC_PTEST): New unspec.
7848 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7849 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7850 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7851 * config/aarch64/aarch64-sve.md: Add a new section describing the
7852 handling of UNSPEC_PTEST.
7853 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7854 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7855 (ptest_ptrue<mode>): Replace with...
7856 (aarch64_ptest<mode>): ...this new pattern.
7857 (cbranch<mode>4): Update after above changes.
7858 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7860 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7861 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7862 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7864 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7867 * builtins.c (builtin_with_linkage_p): New function.
7868 * builtins.h (builtin_with_linkage_p): New function.
7869 * symtab.c (write_symbol): Remove redundant assert.
7870 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7871 Remove FIXME and use builtin_with_linkage_p.
7873 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7876 * tree-core.h (function_decl::function_code): Change type to
7878 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7879 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7880 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7881 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
7883 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7884 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7885 (fndecl_built_in_p): Change the type of the "name" argument to
7887 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7888 after check for DECL_BUILT_IN_CLASS.
7889 * cgraphclones.c (build_function_decl_skip_args): Use
7890 set_decl_built_in_function.
7891 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7892 * ipa-split.c (split_function): Likewise.
7893 * langhooks.c (add_builtin_function_common): Likewise.
7894 * omp-simd-clone.c (simd_clone_create): Likewise.
7895 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7896 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7897 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7899 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7900 instead of DECL_FUNCTION_CODE.
7901 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7902 instead of DECL_FUNCTION_CODE.
7903 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7904 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7905 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
7906 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7907 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7908 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7909 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7910 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7911 (alpha_gimple_fold_builtin): Likewise.
7912 * config/arc/arc.c (arc_expand_builtin): Likewise.
7913 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7914 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7915 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7916 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7917 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7918 * config/frv/frv.c (frv_expand_builtin): Likewise.
7919 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7920 (gcn_expand_builtin): Likewise.
7921 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7922 (fold_builtin_cpu): Likewise.
7923 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7924 * config/i386/i386.c (ix86_fold_builtin): Likewise.
7925 (ix86_gimple_fold_builtin): Likewise.
7926 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7927 (ia64_expand_builtin): Likewise.
7928 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7929 * config/mips/mips.c (mips_expand_builtin): Likewise.
7930 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7931 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7932 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7933 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7934 * config/pa/pa.c (pa_expand_builtin): Likewise.
7935 * config/pru/pru.c (pru_expand_builtin): Likewise.
7936 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7937 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7939 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7940 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7941 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7942 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7943 (rs6000_builtin_reciprocal): Likewise.
7944 * config/rx/rx.c (rx_expand_builtin): Likewise.
7945 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7946 * config/s390/s390.c (s390_expand_builtin): Likewise.
7947 * config/sh/sh.c (sh_expand_builtin): Likewise.
7948 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7949 (sparc_fold_builtin): Likewise.
7950 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7951 * config/spu/spu.c (spu_expand_builtin): Likewise.
7952 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
7953 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
7954 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
7955 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7956 (xtensa_expand_builtin): Likewise.
7958 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7961 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
7962 before the DECL_FUNCTION_CODE.
7963 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
7964 to check for a BUILT_IN_ALLOCA call.
7965 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
7966 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
7967 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
7968 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7969 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
7970 for BUILT_IN_NORMAL functions.
7971 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
7972 test for BUILT_IN_TM_ABORT.
7973 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
7974 to check for a BUILT_IN_STACK_RESTORE call.
7975 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
7976 * tree-ssa-threadedge.c
7977 (record_temporary_equivalences_from_stmts_at_dest): Check for a
7978 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
7979 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
7980 test for a BUILT_IN_NORMAL call instead of a negative test for
7981 an internal function call.
7983 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7985 * tree.h (build_vector_a_then_b): Declare.
7986 * tree.c (build_vector_a_then_b): New function.
7987 * fold-const-call.c (fold_while_ult): Likewise.
7988 (fold_const_call): Use it to handle IFN_WHILE_ULT.
7989 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
7990 (aarch64_svpattern): New enum.
7991 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
7992 constants through aarch64_expand_mov_immediate.
7993 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
7994 than general_operand as the predicate for operand 1.
7995 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
7996 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
7998 (simd_immediate_info::simd_immediate_info): New overload that
7999 takes a scalar_int_mode and an svpattern.
8000 (simd_immediate_info::u): Add a "pattern" field.
8001 (svpattern_token): New function.
8002 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8003 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8004 (aarch64_sve_move_pred_via_while): New functions.
8005 (aarch64_expand_mov_immediate): Try using
8006 aarch64_sve_move_pred_via_while for predicates that contain N ones
8007 followed by M zeros but that do not correspond to a VLnnn pattern.
8008 (aarch64_sve_pred_valid_immediate): New function.
8009 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8010 with PTRUE and PFALSE.
8011 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8014 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8016 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8018 (darwin_override_options): Likewise.
8019 * config/darwin.h: Likewise.
8020 * config/darwin.opt: Likewise.
8021 * config/i386/i386.c (output_pic_addr_const): Likewise.
8022 * config/rs6000/darwin.h: Likewise.
8023 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8024 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8025 ... this TARGET_MACHO_SYMBOL_STUBS.
8026 (FUNCTION_PROFILER):Likewise.
8027 * config/i386/i386.h: Likewise.
8029 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8031 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8032 <case E_V2SImode>: Use vec_extr path for
8033 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8034 <case E_V8QImode>: Ditto.
8035 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8036 Use SWI48 mode iterator. Use %k to output operand 0.
8037 (*mmx_pextrw): New insn pattern.
8038 (*mmx_pextrb): Ditto.
8039 (*mmx_pextrb_zext): Ditto.
8041 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8043 * target.def (libc_has_function, libc_has_fast_function): Improve
8044 documentation strings.
8045 * doc/tm.texi: Regenerate.
8047 2019-08-13 Caroline Tice <cmtice@google.com>
8050 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8051 vtv_end.o or vtv_end_preinit.o files if !static.
8053 2019-08-13 Olivier Hainque <hainque@adacore.com>
8055 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8057 2019-08-13 Olivier Hainque <hainque@adacore.com>
8059 * rtlanal.c (tablejump_casesi_pattern): New function, to
8060 determine if a tablejump insn is a casesi dispatcher. Extracted
8061 from patch_jump_insn.
8062 * rtl.h (tablejump_casesi_pattern): Declare.
8063 * cfgrtl.c (patch_jump_insn): Use it.
8064 * dwarf2cfi.c (create_trace_edges): Use it.
8066 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8069 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8070 operand is larger than a long int.
8072 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8074 * machmode.h (opt_mode::else_mode): New function.
8075 (opt_mode::else_blk): Use it.
8076 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8077 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8078 (aarch64_gen_stepped_int_parallel): Likewise.
8079 (aarch64_stepped_int_parallel_p): Likewise.
8080 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8082 * config/aarch64/aarch64.c
8083 (aarch64_expand_sve_widened_duplicate): Delete.
8084 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8085 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8086 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8087 argument. Use early returns in the !CONST_INT_P handling.
8088 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8089 than handling some inline.
8090 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8092 (aarch64_simd_container_mode): ...here.
8093 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8094 (aarch64_sve_ld1rq_operand_p): New functions.
8095 * config/aarch64/predicates.md (descending_int_parallel)
8096 (aarch64_sve_ld1rq_operand): New predicates.
8097 * config/aarch64/constraints.md (UtQ): New constraint.
8098 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8099 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8100 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8101 (@aarch64_sve_reinterpret<mode>): New expander.
8102 (*aarch64_sve_reinterpret<mode>): New pattern.
8103 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8104 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8105 (*sve_ld1rq<Vesize>): Replace with...
8106 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8108 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8110 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8113 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8115 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8116 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8117 (msp430_check_path_for_devices): New.
8118 (parse_devices_csv_1): New.
8119 (parse_devices_csv): New.
8120 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8121 MCU data in devices.csv before using the hard-coded data.
8122 Warn if devices.csv isn't found and the MCU wasn't found in the
8123 hard-coded data either.
8124 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8125 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8126 Search for devices.csv on -I and -L paths.
8127 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8128 msp430_set_driver_var.
8129 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8131 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8132 searched for devices.csv.
8133 (mwarn-devices-csv): Document option.
8135 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8137 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8138 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8139 Use a single Dn alternative instead of separate Dz and Dm
8140 alternatives. Use aarch64_output_sve_move_immediate.
8141 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8143 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8145 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8146 (aarch64_output_ptrue): Delete.
8148 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8150 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8152 (simd_immediate_info::value, simd_immediate_info::step)
8153 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8155 (simd_immediate_info::u): ...this new union.
8156 (simd_immediate_info::simd_immediate_info): Update accordingly.
8157 (aarch64_output_simd_mov_immediate): Likewise.
8158 (aarch64_output_sve_mov_immediate): Likewise.
8160 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8162 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8164 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8165 (msp430_select_cpu): New spec function.
8166 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8168 * config/msp430/msp430-devices.c: New file.
8169 * config/msp430/msp430-devices.h: New file.
8170 * config/msp430/msp430.c: Remove msp430_mcu_data.
8171 (msp430_option_override): Use msp430_extract_mcu_data to extract
8173 (msp430_use_f5_series_hwmult): Likewise.
8174 (use_32bit_hwmult): Likewise.
8175 (msp430_no_hwmult): Likewise.
8176 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8178 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8180 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8181 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8182 Remove hard-coded MCU multilib data.
8184 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8186 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8187 based on the mode instead of testing properties of it.
8189 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8191 * doc/md.texi: Document the x and y constraints for AArch64.
8192 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8193 (FP_LO8_REGS): New reg_class.
8194 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8195 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8196 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8197 * config/aarch64/predicates.md (aarch64_simd_register): Use
8198 FP_REGNUM_P instead of checking the classes manually.
8199 * config/aarch64/constraints.md (y): New constraint.
8201 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8203 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8204 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8205 * config/aarch64/aarch64-simd.md
8206 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8207 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8208 from the asm template.
8209 * config/aarch64/aarch64-sve.md
8210 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8211 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8212 from the asm template.
8213 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8214 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8215 from the asm template.
8216 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8218 2019-08-13 Martin Liska <mliska@suse.cz>
8220 * value-prof.c (gimple_ic_transform): Add new line.
8221 Print details with MSG_NOTE.
8223 2019-08-13 Martin Liska <mliska@suse.cz>
8225 * doc/invoke.texi: Document automatic detection of jobserver.
8226 * lto-wrapper.c (run_gcc): Detect jobserver always.
8228 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8230 * config/i386/i386-expand.c (ix86_expand_vector_set)
8231 <case E_V2SImode>: Use vec_merge path for
8232 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8233 <case E_V8QImode>: Ditto.
8234 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8235 (*mmx_pinsrb): Ditto.
8237 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8241 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8242 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8243 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8244 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8245 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8247 2019-08-12 Richard Biener <rguenther@suse.de>
8250 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8253 2019-08-12 Richard Biener <rguenther@suse.de>
8256 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8257 lang_mask option, always use CL_DRIVER.
8258 (get_options_from_collect_gcc_options): Adjust.
8259 (find_and_merge_options): Likewise.
8260 (run_gcc): Likewise.
8262 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8264 * ipa-predicate.c (add_condition): Restore inverted test.
8266 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8268 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8269 (enum omp_clause_device_type_kind): New enum.
8270 (struct tree_omp_clause): Add subcode.device_type_kind.
8271 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8272 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8273 for device_type clause.
8274 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8275 * tree-pretty-print.c (dump_omp_clause): Likewise.
8278 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8281 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8283 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8284 handling spilled pseudos.
8286 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8289 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8290 to preserve the contents of the original insns.
8292 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8294 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8295 (addsi3_compare_op2): Likewise.
8297 2019-08-09 Martin Liska <mliska@suse.cz>
8299 * alias.c (alias_ptr_types_compatible_p): Strengten
8300 type comparison in LTO mode.
8302 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8305 * tree-tailcall.c (find_tail_calls): Reject calls that might
8306 read from an escaped RESULT_DECL.
8308 2019-08-09 Martin Liska <mliska@suse.cz>
8310 * doc/invoke.texi: Document the option value.
8311 * lto-wrapper.c (run_gcc): Set auto_parallel
8312 only with -flto=auto.
8314 2019-08-09 Martin Liska <mliska@suse.cz>
8316 * opts.c (common_handle_option): Error for an invalid argument
8319 2019-08-09 Martin Liska <mliska@suse.cz>
8321 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8322 use dump_printf to report optimization.
8323 (sem_variable::merge): Likwise.
8324 (sem_item_optimizer::merge_classes): Use dump_printf to report
8327 2019-08-09 Martin Liska <mliska@suse.cz>
8329 * value-prof.c (gimple_divmod_fixed_value_transform):
8330 Use dump_printf_loc.
8331 (gimple_mod_pow2_value_transform): Likewise.
8332 (gimple_mod_subtract_transform): Likewise.
8333 (init_node_map): Likewise.
8334 (gimple_ic_transform): Likewise.
8335 (gimple_stringops_transform): Likewise.
8337 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8339 * doc/extend.texi: Add const qualifier to ld intrinsics.
8341 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8343 * config/rs6000/dfp.md (D64_D128): Rename to ...
8344 (DDTD): ... this, throughout.
8345 (dfp_suffix): Rename to ...
8346 (q): ... this, throughout.
8348 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8350 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8351 (dfp_suffix): Ditto.
8352 (adddd3, addtd3): Merge to ...
8353 (add<mode>3 for D64_D128): ... this.
8354 (subdd3, subtd3): Merge to ...
8355 (sub<mode>3 for D64_D128): ... this.
8356 (muldd3, multd3): Merge to ...
8357 (mul<mode>3 for D64_D128): ... this.
8358 (divdd3, divtd3): Merge to ...
8359 (div<mode>3 for D64_D128): ... this.
8360 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8361 (*cmp<mode>_internal1 for D64_D128): ... this.
8362 (ftruncdd2, ftrunctd2): Merge to ...
8363 (ftrunc<mode>2 for D64_D128): ... this.
8364 (fixdddi2, fixtddi2): Merge to ...
8365 (fix<mode>di2 for D64_D128): ... this.
8367 2019-08-08 Jim Wilson <jimw@sifive.com>
8370 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8371 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8372 Pass into recursive call.
8373 (riscv_flatten_aggregate_argument): New arg. Pass to
8374 riscv_flatten_aggregate_field.
8375 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8376 riscv_flatten_aggregate_argument twice, with false and true as last
8377 arg. Process result twice. Compare results and warn if different.
8378 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8380 2019-08-08 Martin Liska <mliska@suse.cz>
8383 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8384 * lto-wrapper.c (jobserver_active_p): Likewise.
8386 2019-08-08 Martin Liska <mliska@suse.cz>
8388 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8389 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8390 (create_version_clone_with_body): Likewise.
8392 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8394 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8395 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8396 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8397 GOVD_EXPLICIT flags.
8398 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8399 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8400 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8401 call install_var_field with mask 11 instead of 3.
8402 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8403 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8405 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8407 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8408 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8410 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8412 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8413 MOVPRFX alternatives. Make the GPR alternatives more expensive
8416 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8418 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8419 Disparage the GPR alternative relative to the FPR one.
8420 Fix handling of 8-bit and 16-bit FPR values.
8422 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8424 * config/aarch64/iterators.md (BITWISEV): Delete.
8425 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8426 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8427 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8428 UNSPEC_FMINNMV, UNSPEC_FMINV.
8429 (bit_reduc_op): Delete.
8430 (sve_int_op): New int attribute.
8431 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8432 UNSPEC_FMINNMV, UNSPEC_FMINV.
8433 * config/aarch64/aarch64-sve.md
8434 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8435 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8436 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8437 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8438 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8439 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8441 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8442 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8443 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8444 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8445 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8448 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8450 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8451 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8452 (fms<mode>4, *fms<mode>4): Replace with...
8453 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8454 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8455 Use unspecs instead of rtx codes.
8456 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8457 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8459 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8461 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8463 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8464 * config/aarch64/aarch64-sve.md
8465 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8466 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8467 use a single unspec for the rhs.
8468 (*<su><maxmin><mode>3): Delete.
8469 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8471 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8473 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8474 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8475 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8476 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8477 (optab, sve_fp_op): Handle them.
8478 (SVE_FP_UNARY): Delete.
8479 (optab): Remove sqrt entry.
8480 (sve_fp_op): Remove neg, abs and sqrt entries.
8481 (SVE_COND_FP_UNARY): New int iterator.
8482 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8483 (*<frint_pattern><mode>2): Delete.
8484 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8485 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8486 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8487 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8489 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8491 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8493 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8495 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8496 (UNSPEC_COND_FADD): ...this.
8497 (UNSPEC_COND_SUB): Rename to...
8498 (UNSPEC_COND_FSUB): ...this.
8499 (UNSPEC_COND_MUL): Rename to...
8500 (UNSPEC_COND_FMUL): ...this.
8501 (UNSPEC_COND_DIV): Rename to...
8502 (UNSPEC_COND_FDIV): ...this.
8503 (UNSPEC_COND_MAX): Rename to...
8504 (UNSPEC_COND_FMAXNM): ...this.
8505 (UNSPEC_COND_MIN): Rename to...
8506 (UNSPEC_COND_FMINNM): ...this.
8507 (UNSPEC_COND_LT): Rename to...
8508 (UNSPEC_COND_FCMLT): ...this.
8509 (UNSPEC_COND_LE): Rename to...
8510 (UNSPEC_COND_FCMLE): ...this.
8511 (UNSPEC_COND_EQ): Rename to...
8512 (UNSPEC_COND_FCMEQ): ...this.
8513 (UNSPEC_COND_NE): Rename to...
8514 (UNSPEC_COND_FCMNE): ...this.
8515 (UNSPEC_COND_GE): Rename to...
8516 (UNSPEC_COND_FCMGE): ...this.
8517 (UNSPEC_COND_GT): Rename to...
8518 (UNSPEC_COND_FCMGT): ...this.
8519 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8520 (sve_fp_op_rev): Update accordingly.
8521 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8523 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8525 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8527 * config/aarch64/check-sve-md.awk: New file.
8528 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8529 (insn-conditions.md): Depend on it.
8531 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8534 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8535 (*negsi2_cmpz_zext): Ditto.
8537 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8539 * config/aarch64/iterators.md (commutative): Remove.
8541 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8544 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8545 processing COLLECT_GCC_OPTIONS.
8546 (run_gcc): Likewise.
8548 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8550 PR tree-optimization/91109
8551 * lra-remat.c (update_scratch_ops): Remove assignment of the
8554 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8556 * data-streamer.h (streamer_write_poly_uint64): Declare.
8557 (streamer_read_poly_uint64): Likewise.
8558 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8559 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8560 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8561 (add_condition): Take a poly_int64 size.
8562 * ipa-predicate.c (add_condition): Likewise.
8563 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8564 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8565 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8566 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8567 condition::size as a poly_int64.
8568 (unmodified_parm_1): Take a poly_int64 size pointer.
8569 (unmodified_parm): Likewise.
8570 (unmodified_parm_or_parm_agg_item): Likewise.
8571 (set_cond_stmt_execution_predicate): Update accordingly.
8572 (set_switch_stmt_execution_predicate): Likewise.
8573 (will_be_nonconstant_expr_predicate): Likewise.
8574 (will_be_nonconstant_predicate): Likewise.
8575 (inline_read_section): Stream condition::size as a poly_int.
8576 (ipa_fn_summary_write): Likewise.
8578 2019-08-07 Martin Liska <mliska@suse.cz>
8580 * fold-const.c (twoval_comparison_p): Replace int
8581 with bool as a return type.
8582 (simple_operand_p): Likewise.
8583 (operand_equal_p): Replace int with bool as a return type.
8584 * fold-const.h (operand_equal_p): Likewise.
8586 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8588 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8589 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8590 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8591 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8592 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8593 * tree-pretty-print.c (dump_omp_clause): Likewise.
8594 * tree-nested.c (convert_nonlocal_omp_clauses,
8595 convert_local_omp_clauses): Likewise.
8596 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8598 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8599 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8600 clause with array or reference to array types, no matter what type
8601 except for reference it has.
8603 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8605 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8607 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8609 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8610 (arch_canonicalize): Support rv32g and rv64g and fix error
8613 2019-08-06 Martin Liska <mliska@suse.cz>
8615 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8616 and DECL_IS_OPERATOR_DELETE_P.
8618 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8620 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8621 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8622 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8623 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8624 (gimplify_omp_for): Don't do C++ random access iterator clause
8625 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8626 don't predetermine the artificial iterator in case of C++ random
8627 access iterators as lastprivate, but private. For OMP_LOOP, force
8628 bind expr around simd body and force for_pre_body before the
8629 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8630 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8631 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8632 diff var of C++ random access iterators. Handle
8633 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8634 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8635 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8636 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8637 * omp-low.c (lower_rec_input_clauses): For
8638 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8639 variables instead of default constructing them.
8640 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8641 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8642 is_taskloop_ctx check from the assert to the guarding condition.
8644 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8646 * config/riscv/multilib-generator: (canonical_order): New.
8647 (arch_canonicalize): Dito.
8648 Apply arch_canonicalize for alts.
8650 2019-08-05 Martin Sebor <msebor@redhat.com>
8652 * doc/extend.texi (Common Variable Attributes): Document alias
8655 2019-08-05 Marek Polacek <polacek@redhat.com>
8657 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8658 * doc/invoke.texi: Document -Wcomma-subscript.
8660 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8662 * tree-core.h (tree_function_decl): Make function_code an
8663 independent field. Group the remaining bitfields into bytes
8664 and move decl_type so that it contines to be at a byte boundary.
8665 Leave 12 bits for future expansion.
8667 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8669 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8670 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8671 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8674 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8676 * gimple.h (gimple_move_vops): Declare.
8677 * gimple.c (gimple_move_vops): New function
8678 * gimple-fold.c (replace_call_with_call_and_fold)
8679 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8680 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8681 (gimple_fold_call): Use it.
8682 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8683 * tree-call-cdce.c (use_internal_fn): Likewise.
8684 * tree-if-conv.c (predicate_load_or_store): Likewise.
8685 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8686 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8687 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8688 (update_call_from_tree): Likewise.
8689 * tree-vect-stmts.c (vectorizable_load): Likewise.
8690 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8692 2019-08-05 Martin Liska <mliska@suse.cz>
8695 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8697 (eliminate_unnecessary_stmts): Likewise.
8699 2019-08-05 Richard Biener <rguenther@suse.de>
8702 * fold-const.c (get_array_ctor_element_at_index): Create
8703 offset_ints according to the sign of the index type and treat
8704 that as signed if it is obviously so.
8706 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8709 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8710 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8711 _mm256_storeu2_m128i): New function.
8713 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8715 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8716 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8718 2019-08-05 Alan Modra <amodra@gmail.com>
8721 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8722 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8724 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8726 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8727 bug that was fixed in Tcl 8.6.1.
8729 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8731 * config/rs6000/future.md: New file.
8732 * config/rs6000/rs6000.md: Include future.md.
8733 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8735 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8737 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8738 check to use targetm.slow_unaligned_access instead.
8740 * function.c (assign_param_data_one): Remove unused data members.
8742 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8744 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8745 build_distinct_type_copy.
8746 (simd_clone_adjust_argument_types): Ditto.
8747 (simd_clone_adjust): Call build_distinct_type_copy here.
8748 (expand_simd_clones): Ditto.
8750 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8753 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8755 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8757 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8758 from 'const void *'.
8759 (sort_locs_in_loop_postorder_cmp): Likewise.
8761 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8763 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8764 (hot-bb-count-ws-permille): Likewise.
8765 (hot-bb-frequency-fraction): Likewise.
8766 (unlikely-bb-count-fraction): Likewise.
8767 * params.def (hot-bb-count-fraction): Rework description.
8768 (hot-bb-count-ws-permille): Likewise.
8769 (hot-bb-frequency-fraction): Likewise.
8770 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8771 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8773 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8776 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8779 2019-08-02 Richard Biener <rguenther@suse.de>
8781 * vec.h (vec::sort): Add gcc_qsort_r support.
8782 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8783 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8784 to gcc_qsort_r style callback.
8785 (sort_locs_in_loop_postorder_cmp): Likewise.
8786 (analyze_memory_references): Use gcc_sort_r interfaces.
8787 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8789 2019-08-02 Martin Liska <mliska@suse.cz>
8792 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8793 to detect working job server.
8794 (driver::detect_jobserver): Test whether jobserver
8795 is active from GCC driver. That will prevent situation where
8796 GCC is invoked from a LD plugin and the linker already uses
8797 file descriptors suggested by make. That leads to a wrong
8799 * gcc.h (driver): Add detect_jobserver.
8800 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8801 not scanning for --jobserver-auth prefix.
8803 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8805 PR tree-optimization/91201
8806 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8807 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8810 2019-08-01 Martin Sebor <msebor@redhat.com>
8813 * tree.c (type_initializer_zero_p): Define.
8814 * tree.h (type_initializer_zero_p): New function.
8816 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8818 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8820 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8822 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8823 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8824 * predict.c (maybe_hot_count_p): Likewise.
8825 (maybe_hot_bb_p): Tweak comment.
8826 (maybe_hot_edge_p): Likewise.
8827 (probably_never_executed): Likewise. Minor tweak.
8828 (probably_never_executed_bb_p): Likewise.
8829 (unlikely_executed_edge_p): Likewise.
8830 (probably_never_executed_edge_p): Likewise.
8831 (optimize_function_for_size_p): Likewise.
8832 (optimize_function_for_speed_p): Likewise.
8833 (function_optimization_type): Likewise.
8834 (optimize_bb_for_size_p): Likewise.
8835 (optimize_bb_for_speed_p): Likewise.
8836 (bb_optimization_type): Likewise.
8837 (optimize_edge_for_size_p): Likewise.
8838 (optimize_edge_for_speed_p): Likewise.
8839 (optimize_insn_for_size_p): Likewise.
8840 (optimize_insn_for_speed_p): Likewise.
8841 (optimize_loop_for_size_p): Likewise.
8842 (optimize_loop_for_speed_p): Likewise.
8843 (optimize_loop_nest_for_speed_p): Likewise.
8844 (optimize_loop_nest_for_size_p): Likewise.
8845 (predictable_edge_p): Likewise.
8846 (handle_missing_profiles): Minor tweak.
8848 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8850 * config/rs6000/predicates.md (pcrel_external_address): Update
8853 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8856 * config/i386/mmx.md (usadv8qi): New expander.
8858 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8861 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8862 with reserved names that are in a system header.
8864 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8866 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8867 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8868 (*vec_extractv2si_0_zext): Ditto.
8869 (*vec_extractv2si_1): Add (rm,x) alternative.
8870 (*vec_extractv2si_1_zext): New insn pattern.
8871 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8874 2019-08-01 Richard Biener <rguenther@suse.de>
8876 * domwalk.c (bb_postorder): Remove static variable.
8877 (cmp_bb_postorder): Adjust.
8878 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8879 (dom_walker::walk): Adjust.
8881 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
8883 * sort.cc (sort_r_ctx): New struct.
8884 (reorder23): Make templated on context type.
8886 (cmp1): Ditto. Adjust signature.
8889 [CHECKING_P] (cmp2to3): New static function. Use it...
8890 (gcc_qsort) [CHECKING_P]: ...here.
8891 (gcc_sort_r): New function.
8892 * system.h (sort_r_cmp_fn): New function typedef.
8893 (qsort_chk): Adjust signature.
8894 (gcc_sort_r): Declare.
8895 * vec.c (qsort_chk_error): Adjust.
8896 (qsort_chk): Adjust.
8898 2019-08-01 Richard Biener <rguenther@suse.de>
8900 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8901 (compute_antic): Localize it here.
8903 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
8905 * common/config/riscv/riscv-common.c: Check -march string ends
8908 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
8910 * ipa-devirt.c (type_warning_cmp): Make static.
8911 (decl_warning_cmp): Ditto.
8913 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
8916 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8917 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8918 use of deleted rs6000_dejagnu_cpu_index variable.
8919 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8920 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8921 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8922 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8923 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8924 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8926 2019-07-31 Richard Biener <rguenther@suse.de>
8928 PR tree-optimization/91280
8929 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8930 Decompose MEM_REF manually for offset handling.
8932 2019-07-31 Richard Biener <rguenther@suse.de>
8934 PR tree-optimization/91293
8935 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8938 2019-07-31 Matt Thomas <matt@3am-software.com>
8939 Nick Hudson <nick@nthcliff.demon.co.uk>
8940 Matthew Green <mrg@eterna.com.au>
8941 Maya Rashish <coypu@sdf.org>
8943 * config.gcc (hppa*-*-netbsd*): New target.
8944 * config/pa/pa-netbsd.h: New file.
8945 * config/pa/pa32-netbsd.h: New file.
8947 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8949 PR tree-optimization/91201
8950 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
8952 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
8954 * config/gcn/gcn-valu.md
8955 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
8956 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
8957 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8958 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
8959 struct ilist. Add nops for delayeduse insns.
8960 * config/gcn/gcn.md (delayeduse): New attribute.
8961 (*movbi): Remove s_waitcnt from stores.
8962 (*mov<mode>_insn): Likewise.
8963 (*movti_insn): Likewise. Add delayeduse attribute.
8964 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
8965 (atomic_store<mode>): Remove or adjust s_waitcnt.
8967 2019-07-31 Richard Biener <rguenther@suse.de>
8969 * vr-values.h (vr_values::swap_vr_value): New.
8970 (vr_values::free_value_range): likewise.
8971 * vr-values.c (vr_values::swap_vr_value): Implement.
8972 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
8973 Do not return a range or take a var.
8974 (evrp_range_analyzer::stack): Change back to recording a non-const
8976 * gimple-ssa-evrp-analyze.c
8977 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
8979 (evrp_range_analyzer::pop_to_marker): Adjust.
8980 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
8981 (evrp_range_analyzer::pop_value_range): Likewise. Free the
8982 no longer needed value-range.
8984 2019-07-31 Martin Liska <mliska@suse.cz>
8986 * tree-ssa-dce.c (propagate_necessity): Delete operator can
8987 have size and (or) alignment as 2nd and later arguments.
8988 Mark all of them as necessary.
8990 2019-07-31 Richard Biener <rguenther@suse.de>
8992 PR tree-optimization/91178
8993 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8996 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8998 PR tree-optimization/91201
8999 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9000 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9002 (reduc_plus_scal_<mode>): Improve formatting by introducing
9005 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9007 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9008 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9009 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9010 (aarch64_init_tme_builtins): New.
9011 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9012 (aarch64_expand_builtin_tme): New.
9013 (aarch64_expand_builtin): Handle TME builtins.
9014 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9015 __ARM_FEATURE_TME when enabled.
9016 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9017 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9019 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9020 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9022 (tstart, ttest, tcommit, tcancel): New instructions.
9023 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9024 (__tcancel, __ttest): New.
9025 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9026 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9027 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9028 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9029 * config/arm/types.md: Add new tme type attr.
9030 * doc/invoke.texi: Document "tme".
9032 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9034 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9035 warn_unused_result attribute.
9036 (cmse_check_address_range): Add warn_unused_result attribute.
9038 2019-07-31 Richard Biener <rguenther@suse.de>
9040 PR tree-optimization/91257
9041 * tree-vrp.c (union_ranges): Unify equality and less tests
9042 by using compare_values. Re-order cheap tests first.
9044 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9047 * gimplify.c (gimplify_omp_for): If for class iterator on
9048 distribute parallel for there is no data sharing clause
9049 on inner_for_stmt, look for private clause on combined
9050 parallel too and if found, move it to inner_for_stmt.
9052 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9054 * lra-int.h (lra_operand_data): Remove early_clobber field.
9055 (lra_insn_reg): Likewise.
9056 * lra.c (debug_operand_data): Update accordingly.
9057 (setup_operand_alternative): Likewise.
9058 (new_insn_reg): Likewise. Remove early_clobber parameter.
9059 (collect_non_operand_hard_regs): Update call accordingly.
9060 Don't assign to lra_insn_reg::early_clobber.
9061 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9062 and update calls to new_insn_reg.
9063 (lra_update_insn_regno_info): Update calls accordingly.
9064 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9065 alternative number as a parameter and test whether the operand
9066 is earlyclobbered in that particular alternative.
9067 (process_alt_operands): Update call accordingly. Use per-alternative
9068 checks for earyclobber here too.
9069 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9070 against zero for IRA_UNKNOWN_ALT.
9072 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9074 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9076 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9078 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9079 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9081 2019-07-30 Martin Liska <mliska@suse.cz>
9084 * cgraph.c (cgraph_edge::make_direct): Use
9085 edge->indirect_unknown_callee as edge->resolve_speculation can
9086 deallocate edge which is this pointer.
9088 2019-07-30 Richard Biener <rguenther@suse.de>
9090 PR tree-optimization/91257
9091 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9093 2019-07-30 Martin Liska <mliska@suse.cz>
9095 * doc/invoke.texi: Document new behavior.
9096 * lto-wrapper.c (cpuset_popcount): New function
9097 is a copy of libgomp/config/linux/proc.c.
9098 (init_num_threads): Likewise.
9099 (run_gcc): Automatically detect core count for -flto.
9100 (jobserver_active_p): New function.
9102 2019-07-30 Richard Biener <rguenther@suse.de>
9104 PR tree-optimization/91257
9105 * bitmap.h (bitmap_ior_into_and_free): Declare.
9106 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9107 whether to add the unliked element to the freelist.
9108 (bitmap_list_insert_element_after): Add defaulted param for
9109 an already allocated element.
9110 (bitmap_ior_into_and_free): New function.
9111 * tree-ssa-structalias.c (condense_visit): Reduce the
9112 ponts-to and edge bitmaps of the SCC members in a
9113 logarithmic fashion rather than all to one.
9115 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9117 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9118 parameter. When nonnull, make sure that the addition or subtraction
9119 has the same condition.
9120 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9121 for CFN_COND_MUL too.
9123 2019-07-30 Richard Biener <rguenther@suse.de>
9125 PR tree-optimization/91291
9126 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9129 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9132 * omp-low.c (global_nonaddressable_vars): New variable.
9133 (use_pointer_for_field): For global decls, if they are non-addressable,
9134 remember it in the global_nonaddressable_vars bitmap, if they are
9135 addressable and in the global_nonaddressable_vars bitmap, ignore their
9136 TREE_ADDRESSABLE bit.
9137 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9138 vars in global_nonaddressable_vars bitmap.
9139 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9142 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9143 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9144 comparison to unsigned HOST_WIDE_INT before shifting it left.
9146 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9148 * config/i386/i386.md (movstrict<mode>): Use register_operand
9149 predicate for operand 0. Add expander condition. Assert that
9150 operand 0 is a SUBREG RTX.
9151 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9152 Update operand constraints and insn condition.
9153 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9154 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9155 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9156 Update operand 0 constraints.
9157 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9159 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9161 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9162 when -m{code,data}-region are used without -mlarge.
9163 * config/msp430/msp430.c (msp430_option_override): Error when a
9164 non-default code or data region is used without -mlarge.
9165 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9166 attributes when they are used without -mlarge.
9168 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9171 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9173 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9176 * wide-int.h (generic_wide_int::sext_elt): New function.
9177 * inchash.h (hash::add_wide_int): Use it instead of elt.
9179 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9181 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9183 * config/arm/arm.md (<crc_variant>): Rename to...
9184 (arm_<crc_variant>): ... This.
9185 (<cdp>): Rename to...
9186 (arm_<cdp>): ... This.
9187 (<ldc>): Rename to...
9188 (arm_<ldc>): ... This.
9189 (<stc>): Rename to...
9190 (arm_<stc>): ... This.
9191 (<mcr>): Rename to...
9192 (arm_<mcr>): ... This.
9193 (<mrc>): Rename to...
9194 (arm_<mrc>): ... This.
9195 (<mcrr>): Rename to...
9196 (arm_<mcrr>): ... This.
9197 (<mrrc>): Rename to...
9198 (arm_<mrrc>): ... This.
9200 2019-07-29 Richard Biener <rguenther@suse.de>
9202 PR tree-optimization/91257
9203 * tree-ssa-sccvn.h (struct vn_avail): New.
9204 (struct vn_ssa_aux): Add avail member.
9205 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9206 member, add m_avail_freelist one.
9207 (rpo_elim::~rpo_elim): Remove.
9208 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9210 (rpo_elim::eliminate_push_avail): Likewise.
9211 (do_unwind): Likewise.
9212 (do_rpo_vn): Likewise.
9214 2019-07-29 Richard Biener <rguenther@suse.de>
9216 PR tree-optimization/91257
9217 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9218 most cases, instead call compare_values which handles the
9219 symbolic ranges we handle specially.
9220 (compare_values_warnv): Do not call operand_less_p but open-code
9221 the effective fold calls. Avoid converting so much.
9223 2019-07-29 Martin Liska <mliska@suse.cz>
9225 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9226 remove LHS of operator new call. It's handled latter.
9228 2019-07-29 Richard Biener <rguenther@suse.de>
9230 PR tree-optimization/91267
9231 * vr-values.c (vr_values::update_value_range): Add early return
9232 for effectively VARYING lattice entry.
9234 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9237 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9238 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9239 necessary if keep_all_vdefs_p is true.
9240 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9241 that keep_all_vdefs_p is false.
9242 (mark_all_reaching_defs_necessary): Likewise.
9243 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9245 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9247 * common.opt (Og): Change the initial value of flag_dse to 0.
9248 * opts.c (default_options_table): Move OPT_ftree_dse from
9249 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9250 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9251 entry before the OPT_ftree_sra entry.
9252 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9253 of flags disabled by Og.
9255 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9257 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9260 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9262 * doc/sourcebuild.texi (check-function-bodies): Document.
9264 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9266 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9267 VEC_DUPLICATE of a fixed-length vector even if the result
9268 is variable-length. Likewise fold a duplicate of a
9269 variable-length vector if the variable-length vector is
9270 itself a duplicate of a fixed-length sequence.
9271 (test_vector_ops_duplicate): Test more cases.
9273 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9275 * vector-builder.h (vector_builder): Add a shape template parameter.
9276 (vector_builder::new_unary_operation): New function, generalizing
9277 the old tree_vector_builder function.
9278 (vector_builder::new_binary_operation): Likewise.
9279 (vector_builder::binary_encoded_nelts): Likewise.
9280 * int-vector-builder.h (int_vector_builder): Update template
9281 parameters to vector_builder.
9282 (int_vector_builder::shape_nelts): New function.
9283 * rtx-vector-builder.h (rtx_vector_builder): Update template
9284 parameters to vector_builder.
9285 (rtx_vector_builder::shape_nelts): New function.
9286 (rtx_vector_builder::nelts_of): Likewise.
9287 (rtx_vector_builder::npatterns_of): Likewise.
9288 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9289 * tree-vector-builder.h (tree_vector_builder): Update template
9290 parameters to vector_builder.
9291 (tree_vector_builder::shape_nelts): New function.
9292 (tree_vector_builder::nelts_of): Likewise.
9293 (tree_vector_builder::npatterns_of): Likewise.
9294 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9295 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9296 (tree_vector_builder::new_binary_operation): Delete.
9297 (tree_vector_builder::binary_encoded_nelts): Likewise.
9298 * simplify-rtx.c: Include rtx-vector-builder.h.
9299 (distributes_over_addition_p): New function.
9300 (simplify_const_unary_operation)
9301 (simplify_const_binary_operation): Generalize handling of vector
9302 constants to include variable-length vectors.
9303 (test_vector_ops_series): Add more tests.
9305 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9308 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9309 than INDENTIFIER_POINTER.
9311 2019-07-28 Martin Liska <mliska@suse.cz>
9314 * cgraph.c (symbol_table::create_edge): Always allocate
9316 (symbol_table::free_edge): Store summary_id to
9317 edge_released_summary_ids if != -1;
9318 * cgraph.h (NEXT_FREE_NODE): Remove.
9319 (SET_NEXT_FREE_NODE): Likewise.
9320 (NEXT_FREE_EDGE): Likewise.
9321 (symbol_table::release_symbol): Store summary_id to
9322 cgraph_released_summary_ids if != -1;
9323 (symbol_table::allocate_cgraph_symbol): Always allocate
9326 2019-07-28 Alan Modra <amodra@gmail.com>
9328 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9331 2019-07-28 Alan Modra <amodra@gmail.com>
9334 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9336 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9337 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9338 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9340 2019-07-28 Alan Modra <amodra@gmail.com>
9343 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9344 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9345 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9346 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9347 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9348 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9349 in asm_default spec.
9350 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9351 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9353 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9355 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9357 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9360 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9361 * config/aarch64/aarch64-option-extensions.def: Add new comments
9362 and restore easier to read options.
9364 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9366 * convert.c (convert_to_real_1): Move part of conversion code...
9367 * match.pd: ...To here.
9369 2019-07-26 Martin Jambor <mjambor@suse.cz>
9372 * ipa-inline-transform.c (check_speculations_1): New function.
9373 (push_all_edges_in_set_to_vec): Likewise.
9374 (check_speculations): Use check_speculations_1, new parameter
9376 (inline_call): Pass new_edges to check_speculations.
9377 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9379 (speculation_useful_p): Early return true if edge is inlined, remove
9380 later checks for inline_failed.
9382 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9384 PR rtl-optimization/91223
9385 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9386 matching with INOUT operand.
9388 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9390 * stmt.c (expand_case): Try to narrow the index type if it's larger
9391 than a word. Tidy up.
9393 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9395 * cif-code.def (NEVER_CALL): New code.
9396 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9397 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9399 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9401 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9402 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9404 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9406 * ipa-devirt.c (add_type_duplicate): Fix return value.
9408 2019-07-25 Richard Biener <rguenther@suse.de>
9410 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9411 type parameter and use it instead of guessing expression
9412 type from the first operand.
9413 (extract_range_from_binary_expr): Pass expr_type down.
9415 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9417 * config/arm/arm.md (SATrev): Change to code attribute.
9418 (*satsi_<SAT:code>): Adjust for the above.
9419 (*satsi_<SAT:code>_shift): Likewise.
9421 2019-07-25 Richard Biener <rguenther@suse.de>
9423 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9424 Make value_range * temporary const.
9425 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9427 (evrp_range_analyzer::record_ranges_from_): Likewise.
9428 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9429 deal with having recorded a const one.
9430 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9431 Return a const value_range *.
9432 (evrp_range_analyzer::pop_value_range): Likewise.
9433 (evrp_range_analyzer::stack): Record const value_range *s.
9434 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9436 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9437 (format_integer): Likewise.
9438 (sprintf_dom_walker::handle_gimple_call): Likewise.
9439 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9440 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9441 (vrp_prop::get_value_range): Adjust.
9442 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9443 modifying the lattice in-place.
9444 (vrp_prop::visit_stmt): Likewise.
9445 * vr-values.c (vr_values::get_lattice_entry): New private method.
9446 (vr_values::get_value_range): Wrap it and return a const
9448 (vr_values::set_def_to_varying): New.
9449 (vr_values::set_defs_to_varying): Use it.
9450 (vr_values::update_value_range): Likewise.
9451 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9452 (values::op_with_constant_singleton_va): Likewise.
9453 (vr_values::extract_range_for_var_from_co): Likewise.
9454 (vr_values::extract_range_from_ssa_name): Likewise.
9455 (vr_values::extract_range_from_cond_expr): Likewise.
9456 (vr_values::extract_range_basic): Likewise.
9457 (compare_ranges): Take const value_range *, adjust.
9458 (compare_range_with_value): Likewise.
9459 (vrp_valueize): Adjust.
9460 (vrp_valueize_1): Likewise.
9461 (vr_values::get_vr_for_comparison): Return a const value_range *.
9462 (vr_values::compare_name_with_value): Adjust.
9463 (vr_values::compare_names): Likewise.
9464 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9466 (vr_values::vrp_evaluate_conditional): Likewise.
9467 (find_case_label_ranges): Take a const value_range *.
9468 (vr_values::vrp_visit_switch_stmt): Adjust.
9469 (vr_values::extract_range_from_phi_node): Likewise.
9470 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9471 (vr_values::simplify_abs_using_ranges): Likewise.
9472 (test_for_singularity): Take a const value_range *.
9473 (range_fits_type_p): Likewise.
9474 (vr_values::simplify_cond_using_ranges_1): Adjust.
9475 (vr_values::simplify_cond_using_ranges_2): Likewise.
9476 (vr_values::simplify_switch_using_ranges): Likewise.
9477 (vr_values::simplify_float_conversion_usi): Likewise.
9478 (vr_values::two_valued_val_range_p): Likewise.
9479 * vr-values.h (vr_values::get_value_range): Return a const
9481 (vr_values::set_def_to_varying): New.
9482 (vr_values::get_lattice_entry): New private method.
9483 (vr_values::get_vr_for_comparison): Return a const value_range *.
9485 2019-07-25 Martin Liska <mliska@suse.cz>
9486 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9489 * common.opt: Add -fallocation-dce
9490 * gimple.c (gimple_call_operator_delete_p): New.
9491 * gimple.h (gimple_call_operator_delete_p): Likewise.
9492 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9493 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9494 DECL_IS_OPERATOR_DELETE_P.
9495 (mark_all_reaching_defs_necessary_1): Likewise.
9496 (propagate_necessity): Likewise.
9497 (eliminate_unnecessary_stmts): Handle
9498 gimple_call_operator_delete_p.
9499 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9500 Add packing of OPERATOR_DELETE.
9501 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9503 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9504 (DECL_SET_IS_OPERATOR_DELETE): New.
9505 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9507 2019-07-25 Martin Liska <mliska@suse.cz>
9509 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9510 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9511 * coverage.c (coverage_begin_function): Likewise.
9512 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9513 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9514 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9515 (sem_item::hash_referenced_symbol_properties): Likewise.
9516 * lto-streamer-out.c (hash_tree): Likewise.
9517 * predict.c (expr_expected_value_1): Likewise.
9518 * tree-inline.c (expand_call_inline): Likewise.
9519 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9520 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9521 * tree-core.h (enum function_decl_type): New enum.
9522 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9523 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9524 (set_function_decl_type): Likewise.
9525 (DECL_IS_OPERATOR_NEW_P): New.
9526 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9527 (DECL_LAMBDA_FUNCTION): Likewise.
9528 (DECL_LAMBDA_FUNCTION_P): Likewise.
9529 (DECL_IS_OPERATOR_NEW): Remove.
9530 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9532 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9534 * ipa-profile.c (get_most_common_single_value): Use
9535 get_nth_most_common_value.
9536 * profile.c (sort_hist_value): New function.
9537 (compute_value_histograms): Call sort_hist_value to sort the
9538 values after loading from disk.
9539 * value-prof.c (get_most_common_single_value): Rename to ...
9540 get_nth_most_common_value. Add input params n, return
9541 the n_th value and count.
9542 (gimple_divmod_fixed_value_transform): Use
9543 get_nth_most_common_value.
9544 (gimple_ic_transform): Likewise.
9545 (gimple_stringops_transform): Likewise.
9546 * value-prof.h (get_most_common_single_value): Add input params
9549 2019-07-25 Richard Biener <rguenther@suse.de>
9551 PR tree-optimization/91236
9552 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9553 size of CONSTRUCTOR write. Fix buffer size we pass to
9556 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9558 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9559 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9562 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9564 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9565 explicitly disabled with --disable-initfini-array.
9567 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9569 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9572 2019-07-24 Martin Sebor <msebor@redhat.com>
9574 PR tree-optimization/91183
9575 PR tree-optimization/86688
9576 * builtins.c (compute_objsize): Handle MEM_REF.
9577 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9578 (get_min_string_length): Remove.
9579 (count_nonzero_bytes): New function.
9580 (handle_char_store): Rename...
9581 (handle_store): to this. Handle multibyte stores via integer types.
9582 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9585 2019-07-24 Martin Sebor <msebor@redhat.com>
9588 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9589 (diagnostic_report_diagnostic): Same.
9590 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9591 (diagnostic_context::lang_mask): New data member.
9592 * ipa-pure-const.c (suggest_attribute): Use
9593 lang_hooks.option_lang_mask ().
9594 * opts-common.c (option_enabled): Handle new argument.
9595 (get_option_state): Pass an additional argument.
9596 * opts.c (print_filtered_help): Print supported languages for
9597 unsupported options. Adjust printing of current state.
9598 * opts.h (option_enabled): Add argument.
9599 * toplev.c (print_switch_values): Use lang_mask.
9600 (general_init): Set global_dc->lang_mask.
9602 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9605 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9607 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9609 * cgraphunit.c (symbol_table::compile): Start and stop
9610 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9611 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9613 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9615 * gimplify.c (flag_instrument_functions_exclude_p): Include
9616 namespace/class information in the printable name.
9617 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9618 to tokens entered into the vector.
9620 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9622 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9623 (get_static_chain): Call it instead of build_simple_mem_ref.
9624 (get_frame_field): Likewise.
9625 (get_nonlocal_debug_decl): Likewise.
9626 (convert_nonlocal_reference_op): Likewise.
9628 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9630 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9632 (arc_compute_frame_size): Millicode is disabled when compiling
9634 (arc_return_address_register): Likewise.
9635 (arc_compute_function_type): Likewise.
9636 (arc_compute_frame_size): Likewise.
9637 (secondary_reload_info): Likewise.
9638 (arc_get_unalign): Likewise.
9639 (arc_can_use_return_insn): Declare.
9640 * config/arc/arc.c (AUX_LP_START): Define
9641 (AUX_LP_END): Likewise.
9642 (arc_frame_info): Update gmask member to 64-bit datum.
9643 (GMASK_LEN): Update.
9644 (arc_compute_function_type): Make it static, move it forward.
9645 (arc_must_save_register): Update, consider the extra regs.
9646 (arc_compute_millicode_save_restore_regs): Update to use the 64
9648 (arc_compute_frame_size): Likewise.
9649 (arc_enter_leave_p): Likewise.
9650 (arc_save_callee_saves): Likewise.
9651 (arc_restore_callee_saves): Likewise.
9652 (arc_save_callee_enter): Likewise.
9653 (arc_restore_callee_leave): Likewise.
9654 (arc_save_callee_milli): Likewise.
9655 (arc_restore_callee_milli): Likewise.
9656 (arc_expand_prologue): Add new interrupt handling.
9657 (arc_return_address_register): Make it static, move it forward.
9658 (arc_expand_epilogue): Add new interrupt handling.
9659 (arc_get_unalign): Delete.
9660 (arc_epilogue_uses): Make sure we do not remove the extra
9661 saved/restored registers when interrupt.
9662 (arc_can_use_return_insn): New function.
9663 (push_reg): Likewise.
9664 (pop_reg): Likewise.
9665 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9667 (arc_restore_callee_saves): Likewise, but restoring.
9668 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9669 (R33_REG): Likewise.
9670 (R34_REG): Likewise.
9671 (R35_REG): Likewise.
9672 (R36_REG): Likewise.
9673 (R37_REG): Likewise.
9674 (R38_REG): Likewise.
9675 (R39_REG): Likewise.
9676 (R45_REG): Likewise.
9677 (R46_REG): Likewise.
9678 (R47_REG): Likewise.
9679 (R48_REG): Likewise.
9680 (R49_REG): Likewise.
9681 (R50_REG): Likewise.
9682 (R51_REG): Likewise.
9683 (R52_REG): Likewise.
9684 (R53_REG): Likewise.
9685 (R54_REG): Likewise.
9686 (R55_REG): Likewise.
9687 (R56_REG): Likewise.
9688 (R58_REG): Likewise.
9689 (type): Add rtie attribute.
9690 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9691 (movsi_insn): Accept moves to lp_count.
9692 (rtie): Update pattern.
9693 (simple_return): Simplify it, don't use this pattern as a return
9695 (arc600_rtie): New pattern.
9696 (p_return_i): Clean up.
9698 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9700 * config/arc/predicates.md (move_src_operand): Consider lp_count
9703 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9705 * config/s390/predicates.md (addv_const_operand): New predicate.
9706 * config/s390/s390-modes.def (CCO): New condition code mode.
9707 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9708 (s390_branch_condition_mask): Likewise.
9709 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9710 ("mulv<mode>4"): New expanders.
9711 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9712 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9713 pattern definitions.
9715 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9718 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9719 (define_predicates): Add entry for uniform_vector_p.
9720 (vec_same_elem_p): New match pattern.
9722 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9725 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9726 * config/i386/darwin32-biarch.h .. to here.
9727 * config/i386/darwin64-biarch.h: Adjust comments.
9728 * config/rs6000/darwin32-biarch.h: Likewise.
9729 * config/rs6000/darwin64-biarch.h: Likewise.
9730 * config.gcc: Missed commit from r273746
9731 (*-*-darwin*): Don't include CPU t-darwin here.
9732 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9733 an error message if i686-darwin configuration is attempted for
9736 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9739 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9740 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9741 an error message if i686-darwin configuration is attempted for
9743 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9744 (powerpc-*-darwin*): Use biarch files where needed.
9745 (powerpc64-*-darwin*): Likewise.
9746 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9747 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9749 * config/i386/darwin32-biarch.h: New.
9750 * config/i386/darwin64.h: Rename.
9751 * config/i386/darwin64-biarch.h: To this.
9752 * config/i386/t-darwin: Rename.
9753 * config/i386/t-darwin32-biarch: To this.
9754 * config/i386/t-darwin64: Rename.
9755 * config/i386/t-darwin64-biarch: To this.
9756 * config/rs6000/darwin32-biarch.h: New.
9757 * config/rs6000/darwin64.h: Rename.
9758 * config/rs6000/darwin64-biarch.h: To this.
9759 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9761 * config/rs6000/t-darwin8: Rename.
9762 * config/rs6000/t-darwin32-biarch: To this.
9763 * config/rs6000/t-darwin64 Rename.
9764 * config/rs6000/t-darwin64-biarch: To this.
9766 2019-07-23 Martin Sebor <msebor@redhat.com>
9768 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9770 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9772 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9773 (rh): New alias for it.
9775 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9777 * gdbhooks.py: Pass replace=True to
9778 gdb.printing.register_pretty_printer.
9780 2019-07-23 Richard Biener <rguenther@suse.de>
9783 * lto-streamer-in.c (input_function): Drop inline-entry markers
9784 that ended up with an unknown location block.
9786 2019-07-23 Richard Biener <rguenther@suse.de>
9788 PR tree-optimization/83518
9789 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9790 init from a constant even when partial defs are already recorded.
9792 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9794 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9795 * config/i386/znver1.md: Enable patterns for znver2 and add store
9796 variants which use extra AGU unit.
9798 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9800 * config/i386/i386-options.c (ix86_option_override_internal): Default
9801 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9802 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9805 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9807 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9808 (znver2_costs): Update 256 bit SSE costs and multiplication.
9810 2019-07-23 Jan Beulich <jbeulich@suse.com>
9812 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9813 Require only AVX512F.
9814 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9815 alternative expanding to vpternlog.
9817 2019-07-23 Martin Liska <mliska@suse.cz>
9819 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9820 to -flto in dwarf producer string.
9822 2019-07-23 Richard Biener <rguenther@suse.de>
9824 * tree-cfg.c (label_for_bb): Remove global var.
9825 (main_block_label): Take label_for_bb as argument.
9826 (cleanup_dead_labels_eh): Likewise, adjust.
9827 (cleanup_dead_labels): Adjust.
9829 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9831 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9832 Configurations): Add documentation for __builtin_mtfsf.
9834 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9836 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9837 * config/riscv/riscv.c (riscv_constant_alignment): Use
9838 riscv_align_data_type.
9839 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9840 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9841 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9842 * config/riscv/riscv.opt (malign-data): New.
9843 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9845 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9847 * cgraph.c (dump_graphviz): New function.
9848 * cgraph.h (dump_graphviz): New function.
9849 * symtab.c (dump_graphviz): New function.
9851 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9853 * config/aarch64/aarch64-simd.md
9854 (*aarch64_simd_sra<mode>): New.
9855 * config/aarch64/iterators.md
9856 (SHIFTRT): New iterator.
9857 (sra_op): New attribute.
9859 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9861 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9862 callee-saved regs R4->R10 in an interrupt function that calls another
9865 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9867 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9868 (_mm_blendv_epi8): New.
9870 2019-07-22 Richard Biener <rguenther@suse.de>
9872 PR tree-optimization/91221
9873 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9874 restrict partial-def handling of empty constructors and
9875 memset to refs with known offset.
9877 2019-07-22 Jan Beulich <jbeulich@suse.com>
9879 * config/i386/sse.md (ternlogsuffix): New.
9880 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9882 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9884 2019-07-22 Martin Liska <mliska@suse.cz>
9886 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9888 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9890 2019-07-22 Martin Liska <mliska@suse.cz>
9892 * lto-section-in.c (lto_get_section_data):
9893 Use new function get_compression.
9894 * lto-streamer-out.c (produce_lto_section): Use
9895 set_compression to encode compression algorithm.
9896 * lto-streamer.h (struct lto_section): Do not
9897 use bitfields in the format.
9899 2019-07-22 Martin Liska <mliska@suse.cz>
9902 * opts-common.c (decode_cmdline_option): Decode
9903 argument of -Werror and check it for a wrong language.
9904 * opts-global.c (complain_wrong_lang): Remove such case.
9906 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
9908 * config/arc/arc.c (prepare_move_operands): Always use an
9909 intermediate register when storing a TLS symbols.
9911 2019-07-22 Stafford Horne <shorne@gmail.com>
9913 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9916 2019-07-22 Stafford Horne <shorne@gmail.com>
9918 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9919 and munordered-float validations.
9920 * config/or1k/constraints.md (d): New register constraint.
9921 * config/or1k/predicates.md (fp_comparison_operator): New.
9922 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9924 (or1k_expand_compare): Normalize unordered comparisons.
9925 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9926 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9927 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9928 * config/or1k/or1k.md (type): Add fpu.
9929 (fpu): New instruction reservation.
9930 (F, f, fr, fi, FI, FOP, fop): New.
9931 (<fop><F:mode>3): New ALU instruction definition.
9932 (float<fi><F:mode>2): New conversion instruction definition.
9933 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9934 (fpcmpcc): New code iterator.
9935 (*sf_fp_insn): New instruction definition.
9936 (cstore<F:mode>4): New expand definition.
9937 (cbranch<F:mode>4): New expand definition.
9938 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9939 munordered-float): New options.
9940 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9943 2019-07-22 Stafford Horne <shorne@gmail.com>
9945 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9946 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9947 documenation to be more clear.
9948 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9950 * config/or1k/or1k.opt (mrori): New option.
9951 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
9952 msfimm, mshftimm): Rewrite documentation to be more clear.
9953 * config/or1k/or1k.md (insn_support): Add ror and rori.
9954 (enabled): Add conditions for ror and rori.
9955 (rotrsi3): Replace condition for shftimm with ror and rori.
9957 2019-07-22 Stafford Horne <shorne@gmail.com>
9960 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
9961 (extend<mode>si2): Update predicate.
9962 * config/or1k/predicates.md (volatile_mem_operand): New.
9963 (reg_or_mem_operand): New.
9965 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
9967 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
9968 * config/rs6000/rs6000-call.c: ... to here.
9970 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9972 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
9975 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9977 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
9979 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9981 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
9983 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9985 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
9986 (any_memory_operand): New predicate.
9987 (reg_or_mem_operand): Use it.
9989 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9992 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
9994 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
9996 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
9997 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
9999 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10001 * tree.def (OMP_LOOP): New tree code.
10002 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10003 (enum omp_clause_bind_kind): New enum.
10004 (struct tree_omp_clause): Add subcode.bind_kind.
10005 * tree.h (OMP_LOOP_CHECK): Rename to ...
10006 (OMP_LOOPING_CHECK): ... this.
10007 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10008 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10009 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10010 (OMP_CLAUSE_BIND_KIND): Define.
10011 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10012 bind clause entries.
10013 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10014 * tree-pretty-print.c (dump_omp_clause): Likewise.
10015 (dump_generic_node): Handle OMP_LOOP.
10016 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10017 (in_omp_construct): New variable.
10018 (is_gimple_stmt): Handle OMP_LOOP.
10019 (gimplify_scan_omp_clauses): For lastprivate don't set
10020 check_non_private if code == OMP_LOOP. For reduction clause
10021 on OMP_LOOP combined with parallel or teams propagate as shared
10022 on the combined construct. Handle OMP_CLAUSE_BIND.
10023 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10024 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10025 for constructs from a loop construct to gimplify_scan_omp_clauses.
10026 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10027 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10028 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10029 to match the implicit ORT_TARGET construct around whole body.
10030 Temporarily clear in_omp_construct when processing body.
10031 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10032 etc. temporarily set in_omp_construct when processing body.
10033 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10034 * omp-low.c (struct omp_context): Add loop_p.
10035 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10036 in that the original var might be private.
10037 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10038 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10039 addition of loop construct.
10040 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10042 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10043 lastprivate non-addressable iterator of a collapse(1) simd.
10045 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10047 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10050 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10052 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10053 refer to default conditions. Warn for the 'y' spec which is ignored
10054 by current linkers.
10056 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10058 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10059 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10060 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10061 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10062 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10063 init_cumulative_args, rs6000_promote_function_mode,
10064 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10065 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10066 rs6000_function_arg_boundary, rs6000_parm_offset,
10067 rs6000_parm_start, rs6000_arg_size,
10068 rs6000_darwin64_record_arg_advance_flush,
10069 rs6000_darwin64_record_arg_advance_recurse,
10070 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10071 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10072 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10073 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10074 rs6000_finish_function_arg, rs6000_function_arg,
10075 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10076 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10077 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10078 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10079 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10080 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10081 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10082 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10083 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10084 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10085 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10086 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10087 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10088 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10089 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10090 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10091 get_element_number, altivec_expand_vec_set_builtin,
10092 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10093 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10094 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10095 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10096 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10097 rs6000_expand_builtin, rs6000_vector_type,
10098 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10099 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10100 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10102 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10103 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10104 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10105 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10106 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10107 init_cumulative_args, rs6000_promote_function_mode,
10108 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10109 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10110 rs6000_function_arg_boundary, rs6000_parm_offset,
10111 rs6000_parm_start, rs6000_arg_size,
10112 rs6000_darwin64_record_arg_advance_flush,
10113 rs6000_darwin64_record_arg_advance_recurse,
10114 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10115 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10116 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10117 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10118 rs6000_finish_function_arg, rs6000_function_arg,
10119 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10120 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10121 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10122 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10123 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10124 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10125 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10126 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10127 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10128 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10129 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10130 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10131 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10132 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10133 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10134 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10135 get_element_number, altivec_expand_vec_set_builtin,
10136 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10137 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10138 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10139 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10140 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10141 rs6000_expand_builtin, rs6000_vector_type,
10142 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10143 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10144 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10145 to here from rs6000.c.
10146 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10147 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10148 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10149 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10150 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10151 rs6000_return_in_memory, rs6000_return_in_msb,
10152 rs6000_pass_by_reference, setup_incoming_varargs,
10153 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10154 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10155 rs6000_function_arg_padding, rs6000_function_arg,
10156 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10157 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10158 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10159 rs6000_passes_long_double, rs6000_passes_vector,
10160 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10161 altivec_builtin_mask_for_load) Add declarations.
10162 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10163 * config/config.gcc: Add new source file rs6000-call.c to garbage
10164 collector and extra_objs.
10166 2019-07-19 Jeff Law <law@redhat.com>
10168 PR tree-optimization/86061
10169 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10170 strncpy. Drop some trivial dead code.
10171 (maybe_trim_memstar_call): Handle strncpy.
10173 2019-07-19 Richard Biener <rguenther@suse.de>
10175 PR tree-optimization/91211
10176 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10177 memset encoding size.
10179 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10182 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10184 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10187 * ipa-inline.c (recursive_inlining): Fix limits check.
10189 2019-07-19 Richard Biener <rguenther@suse.de>
10191 PR tree-optimization/91200
10192 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10193 no PHI nodes in middle-bb.
10195 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10197 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10199 * config/aarch64/aarch64-option-extensions.def: Likewise.
10201 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10203 PR middle-end/91190
10204 * function.c (insert_temp_slot_address): Store into the hash table
10205 a copy of address to avoid RTL sharing issues.
10207 2019-07-19 Richard Biener <rguenther@suse.de>
10209 PR tree-optimization/91207
10211 2019-07-17 Richard Biener <rguenther@suse.de>
10213 PR tree-optimization/91178
10214 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10215 loads with a gap larger than the vector size always use
10217 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10218 avoid loading vectors that are only contained in the gap
10219 and thus are not needed.
10221 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10223 * config/i386/i386.md (*addqi_2_slp): Remove.
10224 (*<code>qi_2_slp): Ditto.
10226 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10228 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10229 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10230 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10231 Rename function from rs6000_prefixed_address.
10232 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10234 (TARGET_TOC): Likewise.
10235 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10237 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10239 (TARGET_TOC): Likewise.
10240 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10242 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10244 (TARGET_TOC): Likewise.
10245 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10246 check to require -mcmodel=medium for pc-relative addressing.
10247 (create_TOC_reference): Add assertion for TARGET_TOC.
10248 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10250 (rs6000_emit_move): Likewise.
10251 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10252 to 'TOC_alias_set'.
10253 (get_TOC_alias_set): Likewise.
10254 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10256 (rs6000_can_eliminate): Likewise.
10257 (rs6000_prefixed_address_mode_p): Rename function from
10258 rs6000_prefixed_address.
10259 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10260 TARGET_HAS_TOC and not pc-relative.
10261 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10262 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10264 (TARGET_TOC): Likewise.
10265 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10268 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10271 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10272 for operand 0. Do not use (match_dup) to match operand 1 with
10273 operand 0. Add check in insn constraint that either input operand
10274 matches operand 0. Use SWI12 mode iterator to also handle
10276 (*and<mode>_1_slp): Ditto.
10277 (*<code>qi_1_slp): Ditto.
10278 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10279 Do not use (match_dup) to match operand 1 with operand 0. Add
10280 check in insn constraint that operand 1 matches operand 0.
10281 Use SWI12 mode iterator to also handle HImode operands.
10282 (*ashl<mode>3_1_slp): Ditto.
10283 (*<shift_insn><mode>3_1_slp): Ditto.
10284 (*<rotate_insn><mode>3_1_slp): Ditto.
10286 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10288 * config/arm/arm-builtins.c
10289 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10290 (arm_expand_unop_builtin): Likewise.
10291 * config/arm/crypto.md
10292 (crypto_sha1h): Convert from define_insn to define_expand.
10293 (crypto_<crypto_pattern>): Likewise.
10294 (crypto_sha1h_lb): New define_insn.
10295 (crypto_<crypto_pattern>_lb): Likewise.
10297 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10300 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10301 (vsha1cq_u32): Likewise.
10302 (vsha1pq_u32): Likewise.
10303 (vsha1mq_u32): Likewise.
10304 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10306 (crypto_sha1c): Correct vec select.
10307 (crypto_sha1m): Likewise.
10308 (crypto_sha1p): Likewise.
10310 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10312 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10313 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10314 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10315 (subdi_zesidi_zesidi): Likewise.
10316 (negdi2_compare, negdi2_insn): Likewise.
10317 (negdi_extensidi): Likewise.
10318 (negdi_zero_extendsidi): Likewise.
10319 (arm_cmpdi_insn): Likewise.
10320 (subsi3_carryin): Use arm_borrow_operation.
10321 (subsi3_carryin_const): Likewise.
10322 (subsi3_carryin_const0): Likewise.
10323 (subsi3_carryin_compare): Likewise.
10324 (subsi3_carryin_compare_const): Likewise.
10325 (subsi3_carryin_compare_const0): Likewise.
10326 (subsi3_carryin_shift): Likewise.
10327 (rsbsi3_carryin_shift): Likewise.
10328 (negsi2_carryin_compare): Likewise.
10330 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10332 PR tree-optimization/91137
10333 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10334 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10335 Init, use and fini the above new field.
10336 (determine_base_object_1): New function.
10337 (determine_base_object): Reimplement using walk_tree.
10339 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10341 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10342 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10343 CLEANUP_FORCE_FAST_DCE is set.
10344 * ifcvt.c (rest_of_handle_if_conversion): Pass
10345 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10346 if-conversion succeeded.
10348 2019-07-18 Richard Biener <rguenther@suse.de>
10350 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10351 branches to make code less indented.
10353 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10355 PR middle-end/81824
10356 * attribs.c (decls_mismatched_attributes): Simplify the logic
10357 that avoids duplicates and false positives.
10359 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10361 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10362 data into data section when generating PIC code.
10363 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10364 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10365 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10366 return 2 for SOM and 0 for other targets.
10368 2019-07-17 Jeff Law <law@redhat.com>
10370 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10371 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10372 avoid unexpected switch statement fallthru.
10374 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10376 * config/i386/i386.md (*add<dwi>3_doubleword):
10377 Remove redundant constraints.
10378 (*add<mode>_1): Ditto.
10381 (*addqi_1_slp): Ditto.
10382 (*add<mode>_2): Ditto.
10383 (*addv<mode>4): Ditto.
10384 (*sub<dwi>3_doubleword): Ditto.
10385 (*sub<mode>_1): Ditto.
10386 (*subqi_1_slp): Ditto.
10387 (*sub<mode>_2): Ditto.
10388 (*subv<mode>4): Ditto.
10389 (*sub<mode>_3): Ditto.
10390 (@add<mode>3_carry): Ditto.
10391 (@sub<mode>3_carry): Ditto.
10392 (*add<mode>3_cc_overflow_1): Ditto.
10393 (*add<mode>3_zext_cc_overflow_2): Ditto.
10395 (*and<mode>_1): Ditto.
10397 (*andqi_1_slp): Ditto.
10399 (*andqi_2_maybe_si): Ditto.
10400 (*and<mode>_2): Ditto.
10401 (*andqi_2_slp): Ditto.
10402 (*<code><mode>_1): Ditto.
10403 (*<code>qi_1): Ditto.
10404 (*<code>qi_1_slp): Ditto.
10405 (*<code><mode>_2): Ditto.
10406 (*<code>qi_2_slp): Ditto.
10408 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10410 * alias.c (record_component_aliases): Do not simplify pointed-to
10411 types of ODR types.
10413 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10415 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10416 partial reg stall on alternative 2.
10418 2019-07-17 Richard Biener <rguenther@suse.de>
10420 PR tree-optimization/91178
10421 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10422 lower SSA names to avoid quadratic behavior in the common case.
10423 * tree-data-ref.c (split_constant_offset): Add limit argument
10424 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10425 (split_constant_offset_1): Add limit argument and use it to
10426 limit SSA def walking. Optimize the common plus/minus case.
10428 2019-07-17 Richard Biener <rguenther@suse.de>
10430 PR tree-optimization/91178
10431 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10432 loads with a gap larger than the vector size always use
10434 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10435 avoid loading vectors that are only contained in the gap
10436 and thus are not needed.
10438 2019-07-17 Richard Biener <rguenther@suse.de>
10440 PR tree-optimization/91180
10441 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10442 computation for memset partial defs.
10444 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10446 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10447 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10448 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10449 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10450 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10451 * omp-grid.c (grid_process_grid_body,
10452 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10453 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10454 == GF_OMP_FOR_KIND_SIMD.
10455 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10456 check_omp_nesting_restrictions, scan_omp_1_stmt,
10457 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10458 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10459 omp_find_scan): Likewise.
10460 * omp-expand.c (expand_omp_for): Likewise.
10461 * omp-general.c (omp_extract_for_data): Likewise.
10463 PR tree-optimization/91157
10464 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10465 a vector boolean with scalar mode.
10466 (expand_vector_condition): Handle first operand being a vector boolean
10468 (expand_vector_operations_1): For comparisons, don't bail out early
10469 if the return type is vector boolean with scalar mode, but comparison
10470 operand type is not.
10472 2019-07-17 Richard Biener <rguenther@suse.de>
10474 PR tree-optimization/91181
10475 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10476 IFN_LOADs as calls.
10478 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10480 * config/i386/i386.md (*testdi_1): Match CCZmode for
10481 constants that might have the SImode sign bit set.
10482 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10483 Use correct constraints for pentium pairing.
10484 (*test<mode>_1): Ditto.
10486 2019-07-16 Jeff Law <law@redhat.com>
10488 PR rtl-optimization/91173
10489 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10490 SSA_NAME with a constant value, fold its value into the offset
10491 and clear the base before calling gen_addr_rtx.
10493 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10495 PR rtl-optimization/91164
10496 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10497 invalidate dominance info.
10499 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10501 * read-md.h (md_reader::record_potential_iterator_use): Add a
10502 file_location parameter.
10503 * read-rtl.c (attribute_use::loc): New field.
10504 (map_attr_string): Take a file_location parameter. Report cases
10505 in which attributes map to multiple distinct values.
10506 (apply_attribute_uses): Update call accordingly.
10507 (md_reader::handle_overloaded_name): Likewise.
10508 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10510 (record_attribute_use): Take a file_location parameter.
10511 Initialize attribute_use::loc.
10512 (md_reader::record_potential_iterator_use): Take a file_location
10513 parameter. Update call to record_attribute_use.
10514 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10515 (rtx_reader::read_rtx_code): Likewise.
10516 (rtx_reader::read_rtx_operand): Likewise. Record a location
10517 for implicitly-expanded empty strings.
10519 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10521 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10522 Use file_location instead of separate fields.
10523 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10524 separate filename and line number.
10525 * read-md.c (ptr_loc): As above.
10526 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10527 (md_reader::fprint_md_ptr_loc): Likewise.
10528 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10529 instead of a separate filename and line number.
10530 (md_reader::read_string): Update call accordingly.
10532 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10534 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10535 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10536 leaving the choice between SFDF and P implicit.
10537 (*mov<mode>_update2): Likewise.
10538 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10539 rather than leaving the choice betweem IBM128 and GPR implicit.
10540 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10541 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10543 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10544 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10545 * config/rs6000/vsx.md
10546 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10547 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10548 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10549 and VSX_EXTRACT_I implicit.
10551 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10553 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10554 Explicitly use <MOVEP1:MODE> for the mode attribute.
10556 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10559 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10561 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10564 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10565 .machine directive.
10567 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10569 * config/i386/i386.md (@test<mode>_ccno_1):
10570 Rename from test<mode>_ccno_1.
10571 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10572 (*testqi_1_maybe_si): Remove modrm attribute.
10573 (*test<mode>_1): Ditto.
10574 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10575 gen_test_ccno_1 and gen_extend_insn.
10577 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10579 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10582 2019-07-15 Richard Biener <rguenther@suse.de>
10584 PR middle-end/91162
10585 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10586 node make sure to replace all uses with something valid.
10588 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10590 PR tree-optimization/88497
10591 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10592 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10593 function undistribute_bitref_for_vector.
10594 (undistribute_bitref_for_vector): New function.
10595 (cleanup_vinfo_map): Likewise.
10596 (sort_by_mach_mode): Likewise.
10598 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10600 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10601 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10602 and testdi_ccno_1 using SWI48 mode attribute.
10603 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10604 x86_64_szext_general_operand.
10605 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10606 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10607 instead of genera_operand mode attribute.
10609 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10611 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10612 fopen and fclose to their respective types.
10613 (DotFn.invoke): Ditto.
10615 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10617 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10618 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10619 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10620 (array_index_predicate): Remove.
10621 (analyze_function_body): Account cost for variable ofsetted array
10623 (estimate_node_size_and_time): Do not compute array index hint.
10624 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10625 (inline_read_section): Do not read array index hint.
10626 (ipa_fn_summary_write): Do not write array index hint.
10627 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10628 * ipa-cp.c (hint_time_bonus): Remove.
10629 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10630 (ipa_fnsummary): Remove array_index.
10631 * ipa-inline.c (want_inline_small_function_p): Do not use
10633 (edge_badness): Likewise.
10634 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10636 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10639 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10640 superfluous "builtin function" phrasing.
10642 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10644 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10646 (aliasing_component_refs_walk): Break out from ...
10647 (aliasing_component_refs_p): ... here.
10649 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10652 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10653 "builtin function" phrasing.
10655 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10658 * recog.h (temporary_volatile_ok): New class.
10659 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10660 volatile_ok temporarily to true using temporary_volatile_ok.
10661 * expr.c (emit_block_move_via_cpymem): Likewise.
10662 * optabs.c (maybe_legitimize_operand): Likewise.
10664 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10666 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10667 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10668 uses inside of order(concurrent) constructs.
10669 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10670 OMP_CLAUSE_ORDER is seen.
10671 * omp-low.c (struct omp_context): Add order_concurrent member.
10672 (scan_sharing_clauses): Set ctx->order_concurrent if
10673 OMP_CLAUSE_ORDER is seen.
10674 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10675 of simd order(concurrent). Diagnose constructs not allowed inside of
10676 for order(concurrent).
10677 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10678 complaining about static double setjmp (double); or class static
10679 methods or non-global namespace setjmps.
10680 (omp_runtime_api_call): New function.
10681 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10682 order(concurrent) loops.
10684 2019-07-12 Martin Sebor <msebor@redhat.com>
10686 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10687 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10688 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10689 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10691 2019-07-12 Jan Hubicka <jh@suse.cz>
10693 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10694 (indirect_refs_may_alias_p): ... here.
10695 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10696 mem refs in the access paths.
10698 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10700 PR tree-optimization/89430
10701 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10702 store elimination for local variable without address escape.
10704 2019-07-12 Jeff Law <law@redhat.com>
10706 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10707 for the ".far" section.
10709 2019-07-12 Richard Biener <rguenther@suse.de>
10711 PR tree-optimization/91145
10712 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10715 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10717 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10718 rather than this_state as the lowering context for the ELSE
10719 seq in a GIMPLE_EH_ELSE.
10721 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10723 * vector-builder.h (vector_builder::elt): Allow already-supplied
10724 elements to be read back before building is complete.
10726 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10728 PR rtl-optimization/91136
10729 * df-core.c (ACCESSING REFS): Fix typos in comment.
10730 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10731 the beginning of the block to the initial set of live registers.
10733 2019-07-12 Richard Biener <rguenther@suse.de>
10735 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10736 * fold-const.c (get_array_ctor_element_at_index): Add
10737 ctor_idx output parameter informing the caller where in
10738 the constructor the element was (not) found. Add early exit
10739 for when the ctor is sorted.
10740 * gimple-fold.c (fold_array_ctor_reference): Support constant
10741 folding across multiple array elements.
10743 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10745 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10746 doesn't have location, set the current location to the function's end.
10748 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10750 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10751 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10752 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10753 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10754 * config/aarch64/aarch64-simd.md
10755 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10756 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10757 * config/aarch64/aarch64-sve.md
10758 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10759 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10761 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10763 * doc/md.texi: Document that @ patterns can have different
10764 numbers of operands.
10765 * genemit.c (handle_overloaded_gen): Handle this case.
10766 * genopinit.c (handle_overloaded_gen): Likewise.
10767 * gensupport.c (replace_operands_with_dups): Iterate over
10768 the new rtx's format rather than the old one's.
10770 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10772 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10773 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10774 order clause entries.
10775 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10776 * tree-pretty-print.c (dump_omp_clause): Likewise.
10777 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10779 * omp-low.c (scan_sharing_clauses): Likewise.
10780 * tree-nested.c (convert_nonlocal_omp_clauses,
10781 convert_local_omp_clauses): Likewise.
10783 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10785 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10786 fallthrough target of current basic block isn't the placed
10789 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10792 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10793 (_mm512_storeu_epi64): Likewise.
10794 (_mm512_loadu_epi32): Likewise.
10795 (_mm512_storeu_epi32): Likewise.
10796 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10797 (_mm_storeu_epi64): Likewise.
10798 (_mm256_storeu_epi32): Likewise.
10799 (_mm_storeu_epi32): Likewise.
10801 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10803 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10805 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10807 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10810 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10813 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10814 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10815 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10816 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10817 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10818 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10820 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10821 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10822 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10824 (sse2_cvttpd2dq<mask_name>): Change into ...
10825 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10826 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10827 (*sse2_cvtpd2dq<mask_name>): Change into ...
10828 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10829 Add "C" constraint to const0_operand.
10830 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10831 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10835 * config/i386/i386-builtin-types.def
10836 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10837 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10838 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10839 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10840 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10841 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10842 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10843 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10844 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10845 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10846 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10847 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10848 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10849 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10850 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10851 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10852 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10853 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10854 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10855 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10856 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10857 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10858 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10859 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10860 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10861 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10862 __builtin_ia32_vpdpbusd_v4si_maskz,
10863 __builtin_ia32_vpdpbusds_v16si_mask,
10864 __builtin_ia32_vpdpbusds_v16si_maskz,
10865 __builtin_ia32_vpdpbusds_v8si_mask,
10866 __builtin_ia32_vpdpbusds_v8si_maskz,
10867 __builtin_ia32_vpdpbusds_v4si_mask,
10868 __builtin_ia32_vpdpbusds_v4si_maskz,
10869 __builtin_ia32_vpdpwssd_v16si_mask,
10870 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10871 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10872 __builtin_ia32_vpdpwssd_v4si_maskz,
10873 __builtin_ia32_vpdpwssds_v16si_mask,
10874 __builtin_ia32_vpdpwssds_v16si_maskz,
10875 __builtin_ia32_vpdpwssds_v8si_mask,
10876 __builtin_ia32_vpdpwssds_v8si_maskz,
10877 __builtin_ia32_vpdpwssds_v4si_mask,
10878 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10879 suffixed types rather than *_INT.
10880 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10881 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10882 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10883 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10884 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10885 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10887 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
10889 * tree-vrp.c (intersect_ranges): If we know the intersection is
10890 empty, there is no need to conservatively add anything else to
10893 2019-07-11 Richard Biener <rguenther@suse.de>
10895 PR middle-end/91131
10896 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10897 when the object is volatile and we have not cleared it even though
10898 there are no nonzero elements.
10900 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
10902 * config/rs6000/predicates.md (cint34_operand): Update
10903 SIGNED_34BIT_OFFSET_P call.
10904 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10905 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10906 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10907 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10908 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10910 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10911 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10912 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10913 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10914 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10916 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
10918 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10919 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10920 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10921 (DEF_MIN_OSX_VERSION): New.
10923 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10925 * fold-const.c (fold_relational_const): Fix folding of
10926 vector-to-scalar NE_EXPRs.
10927 (test_vector_folding): Add more tests.
10929 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10932 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10933 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10934 (vec_setv2di_internal): Reexpress as...
10935 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10936 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10937 rather than gen_neon_vset_lane<mode>.
10939 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
10942 * lra-constraints.c (process_alt_operands): Don't match user
10943 defined regs only if they are early clobbers.
10945 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
10947 * wide-int.h (wi::lshift): Reject negative values for the fast path.
10949 2019-07-10 Richard Biener <rguenther@suse.de>
10951 PR tree-optimization/91126
10952 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
10953 native encoding offset for BYTES_BIG_ENDIAN.
10954 (vn_reference_lookup_3): Likewise.
10956 2019-07-10 Richard Biener <rguenther@suse.de>
10958 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
10959 LHS whenever possible.
10961 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
10963 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
10964 from ...; work also on duplicated types.
10965 (nonoverlapping_component_refs_since_match): ... here
10966 (ncr_type_uid): Break out from ...
10967 (ncr_compar): ... here; look for TYPE_UID of canonical type if
10969 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
10970 the types and nonoverlapping_component_refs_p_1 to disambiguate.
10972 2019-07-09 Martin Sebor <msebor@redhat.com>
10974 PR tree-optimization/90989
10975 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
10976 optimization to just single character stores.
10978 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
10980 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
10981 Swap operands only once.
10983 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10985 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
10986 for both call instructions.
10988 2019-07-09 John Darrington <john@darrington.wattle.id.au>
10990 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
10991 rather than GET_MODE_BITSIZE to better handle partial integer modes.
10993 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
10995 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
10996 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
10997 function from rs6000-logue.c back to rs6000.c.
10998 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11000 2019-07-09 Martin Sebor <msebor@redhat.com>
11003 * auto-profile.c: Change class-key of PODs to struct and others
11005 * basic-block.h: Same.
11006 * bitmap.c (bitmap_alloc): Same.
11008 * builtins.c (expand_builtin_prefetch): Same.
11009 (expand_builtin_interclass_mathfn): Same.
11010 (expand_builtin_strlen): Same.
11011 (expand_builtin_mempcpy_args): Same.
11012 (expand_cmpstr): Same.
11013 (expand_builtin___clear_cache): Same.
11014 (expand_ifn_atomic_bit_test_and): Same.
11015 (expand_builtin_thread_pointer): Same.
11016 (expand_builtin_set_thread_pointer): Same.
11017 * caller-save.c (setup_save_areas): Same.
11018 (replace_reg_with_saved_mem): Same.
11019 (insert_restore): Same.
11020 (insert_save): Same.
11021 (add_used_regs): Same.
11022 * cfg.c (get_bb_copy): Same.
11023 (set_loop_copy): Same.
11026 * cfgexpand.c (alloc_stack_frame_space): Same.
11027 (add_stack_var): Same.
11028 (add_stack_var_conflict): Same.
11029 (add_scope_conflicts_1): Same.
11030 (update_alias_info_with_stack_vars): Same.
11031 (expand_used_vars): Same.
11032 * cfghooks.c (redirect_edge_and_branch_force): Same.
11033 (delete_basic_block): Same.
11034 (split_edge): Same.
11035 (make_forwarder_block): Same.
11036 (force_nonfallthru): Same.
11037 (duplicate_block): Same.
11038 (lv_flush_pending_stmts): Same.
11039 * cfghooks.h: Same.
11040 * cfgloop.c (flow_loops_cfg_dump): Same.
11041 (flow_loop_nested_p): Same.
11042 (superloop_at_depth): Same.
11043 (get_loop_latch_edges): Same.
11044 (flow_loop_dump): Same.
11045 (flow_loops_dump): Same.
11046 (flow_loops_free): Same.
11047 (flow_loop_nodes_find): Same.
11048 (establish_preds): Same.
11049 (flow_loop_tree_node_add): Same.
11050 (flow_loop_tree_node_remove): Same.
11051 (flow_loops_find): Same.
11052 (find_subloop_latch_edge_by_profile): Same.
11053 (find_subloop_latch_edge_by_ivs): Same.
11054 (mfb_redirect_edges_in_set): Same.
11055 (form_subloop): Same.
11056 (merge_latch_edges): Same.
11057 (disambiguate_multiple_latches): Same.
11058 (disambiguate_loops_with_multiple_latches): Same.
11059 (flow_bb_inside_loop_p): Same.
11060 (glb_enum_p): Same.
11061 (get_loop_body_with_size): Same.
11062 (get_loop_body): Same.
11063 (fill_sons_in_loop): Same.
11064 (get_loop_body_in_dom_order): Same.
11065 (get_loop_body_in_custom_order): Same.
11066 (release_recorded_exits): Same.
11067 (get_loop_exit_edges): Same.
11068 (num_loop_branches): Same.
11069 (remove_bb_from_loops): Same.
11070 (find_common_loop): Same.
11071 (delete_loop): Same.
11072 (cancel_loop): Same.
11073 (verify_loop_structure): Same.
11074 (loop_preheader_edge): Same.
11075 (loop_exit_edge_p): Same.
11076 (single_exit): Same.
11077 (loop_exits_to_bb_p): Same.
11078 (loop_exits_from_bb_p): Same.
11079 (get_loop_location): Same.
11080 (record_niter_bound): Same.
11081 (get_estimated_loop_iterations_int): Same.
11082 (max_stmt_executions_int): Same.
11083 (likely_max_stmt_executions_int): Same.
11084 (get_estimated_loop_iterations): Same.
11085 (get_max_loop_iterations): Same.
11086 (get_max_loop_iterations_int): Same.
11087 (get_likely_max_loop_iterations): Same.
11088 * cfgloop.h (simple_loop_desc): Same.
11090 (loop_depth): Same.
11091 (loop_outer): Same.
11092 (loop_iterator::next): Same.
11093 (loop_outermost): Same.
11094 * cfgloopanal.c (mark_irreducible_loops): Same.
11095 (num_loop_insns): Same.
11096 (average_num_loop_insns): Same.
11097 (expected_loop_iterations_unbounded): Same.
11098 (expected_loop_iterations): Same.
11099 (mark_loop_exit_edges): Same.
11100 (single_likely_exit): Same.
11101 * cfgloopmanip.c (fix_bb_placement): Same.
11102 (fix_bb_placements): Same.
11103 (remove_path): Same.
11104 (place_new_loop): Same.
11106 (scale_loop_frequencies): Same.
11107 (scale_loop_profile): Same.
11108 (create_empty_if_region_on_edge): Same.
11109 (create_empty_loop_on_edge): Same.
11112 (fix_loop_placements): Same.
11113 (copy_loop_info): Same.
11114 (duplicate_loop): Same.
11115 (duplicate_subloops): Same.
11116 (loop_redirect_edge): Same.
11117 (can_duplicate_loop_p): Same.
11118 (duplicate_loop_to_header_edge): Same.
11119 (mfb_keep_just): Same.
11120 (has_preds_from_loop): Same.
11121 (create_preheader): Same.
11122 (create_preheaders): Same.
11123 (lv_adjust_loop_entry_edge): Same.
11124 (loop_version): Same.
11125 * cfgloopmanip.h: Same.
11127 * cgraphbuild.c: Same.
11128 * combine.c (make_extraction): Same.
11129 * config/i386/i386-features.c: Same.
11130 * config/i386/i386-features.h: Same.
11131 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11132 (ix86_emit_outlined_ms2sysv_restore): Same.
11133 (ix86_noce_conversion_profitable_p): Same.
11134 (ix86_init_cost): Same.
11135 (ix86_simd_clone_usable): Same.
11136 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11138 * coretypes.h: Same.
11139 * data-streamer-in.c (string_for_index): Change class-key of PODs
11140 to struct and others to class.
11141 (streamer_read_indexed_string): Same.
11142 (streamer_read_string): Same.
11143 (bp_unpack_indexed_string): Same.
11144 (bp_unpack_string): Same.
11145 (streamer_read_uhwi): Same.
11146 (streamer_read_hwi): Same.
11147 (streamer_read_gcov_count): Same.
11148 (streamer_read_wide_int): Same.
11149 * data-streamer.h (streamer_write_bitpack): Same.
11150 (bp_unpack_value): Same.
11151 (streamer_write_char_stream): Same.
11152 (streamer_write_hwi_in_range): Same.
11153 (streamer_write_record_start): Same.
11154 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11155 (add_cross_iteration_register_deps): Same.
11156 (build_intra_loop_deps): Same.
11157 * df-core.c (df_analyze): Same.
11158 (loop_post_order_compute): Same.
11159 (loop_inverted_post_order_compute): Same.
11160 * df-problems.c (df_rd_alloc): Same.
11161 (df_rd_simulate_one_insn): Same.
11162 (df_rd_local_compute): Same.
11163 (df_rd_init_solution): Same.
11164 (df_rd_confluence_n): Same.
11165 (df_rd_transfer_function): Same.
11166 (df_rd_free): Same.
11167 (df_rd_dump_defs_set): Same.
11168 (df_rd_top_dump): Same.
11169 (df_lr_alloc): Same.
11170 (df_lr_reset): Same.
11171 (df_lr_local_compute): Same.
11172 (df_lr_init): Same.
11173 (df_lr_confluence_n): Same.
11174 (df_lr_free): Same.
11175 (df_lr_top_dump): Same.
11176 (df_lr_verify_transfer_functions): Same.
11177 (df_live_alloc): Same.
11178 (df_live_reset): Same.
11179 (df_live_init): Same.
11180 (df_live_confluence_n): Same.
11181 (df_live_finalize): Same.
11182 (df_live_free): Same.
11183 (df_live_top_dump): Same.
11184 (df_live_verify_transfer_functions): Same.
11185 (df_mir_alloc): Same.
11186 (df_mir_reset): Same.
11187 (df_mir_init): Same.
11188 (df_mir_confluence_n): Same.
11189 (df_mir_free): Same.
11190 (df_mir_top_dump): Same.
11191 (df_word_lr_alloc): Same.
11192 (df_word_lr_reset): Same.
11193 (df_word_lr_init): Same.
11194 (df_word_lr_confluence_n): Same.
11195 (df_word_lr_free): Same.
11196 (df_word_lr_top_dump): Same.
11197 (df_md_alloc): Same.
11198 (df_md_simulate_one_insn): Same.
11199 (df_md_reset): Same.
11200 (df_md_init): Same.
11201 (df_md_free): Same.
11202 (df_md_top_dump): Same.
11203 * df-scan.c (df_insn_delete): Same.
11204 (df_insn_rescan): Same.
11205 (df_notes_rescan): Same.
11206 (df_sort_and_compress_mws): Same.
11207 (df_install_mws): Same.
11208 (df_refs_add_to_chains): Same.
11209 (df_ref_create_structure): Same.
11210 (df_ref_record): Same.
11211 (df_def_record_1): Same.
11212 (df_find_hard_reg_defs): Same.
11213 (df_uses_record): Same.
11214 (df_get_conditional_uses): Same.
11215 (df_get_call_refs): Same.
11216 (df_recompute_luids): Same.
11217 (df_get_entry_block_def_set): Same.
11218 (df_entry_block_defs_collect): Same.
11219 (df_get_exit_block_use_set): Same.
11220 (df_exit_block_uses_collect): Same.
11221 (df_mws_verify): Same.
11222 (df_bb_verify): Same.
11223 * df.h (df_scan_get_bb_info): Same.
11224 * doc/tm.texi: Same.
11225 * dse.c (record_store): Same.
11226 * dumpfile.h: Same.
11227 * emit-rtl.c (const_fixed_hasher::equal): Same.
11228 (set_mem_attributes_minus_bitpos): Same.
11229 (change_address): Same.
11230 (adjust_address_1): Same.
11231 (offset_address): Same.
11232 * emit-rtl.h: Same.
11233 * except.c (dw2_build_landing_pads): Same.
11234 (sjlj_emit_dispatch_table): Same.
11235 * explow.c (allocate_dynamic_stack_space): Same.
11236 (emit_stack_probe): Same.
11237 (probe_stack_range): Same.
11238 * expmed.c (store_bit_field_using_insv): Same.
11239 (store_bit_field_1): Same.
11240 (store_integral_bit_field): Same.
11241 (extract_bit_field_using_extv): Same.
11242 (extract_bit_field_1): Same.
11243 (emit_cstore): Same.
11244 * expr.c (emit_block_move_via_cpymem): Same.
11245 (expand_cmpstrn_or_cmpmem): Same.
11246 (set_storage_via_setmem): Same.
11247 (emit_single_push_insn_1): Same.
11248 (expand_assignment): Same.
11249 (store_constructor): Same.
11250 (expand_expr_real_2): Same.
11251 (expand_expr_real_1): Same.
11252 (try_casesi): Same.
11254 * function.c (try_fit_stack_local): Same.
11255 (assign_stack_local_1): Same.
11256 (assign_stack_local): Same.
11257 (cut_slot_from_list): Same.
11258 (insert_slot_to_list): Same.
11259 (max_slot_level): Same.
11260 (move_slot_to_level): Same.
11261 (temp_address_hasher::equal): Same.
11262 (remove_unused_temp_slot_addresses): Same.
11263 (assign_temp): Same.
11264 (combine_temp_slots): Same.
11265 (update_temp_slot_address): Same.
11266 (preserve_temp_slots): Same.
11267 * function.h: Same.
11269 * gcc-rich-location.h: Same.
11271 * genattrtab.c (check_attr_test): Same.
11272 (check_attr_value): Same.
11273 (convert_set_attr_alternative): Same.
11274 (convert_set_attr): Same.
11275 (check_defs): Same.
11276 (copy_boolean): Same.
11277 (get_attr_value): Same.
11278 (expand_delays): Same.
11279 (make_length_attrs): Same.
11281 (make_alternative_compare): Same.
11282 (simplify_test_exp): Same.
11283 (tests_attr_p): Same.
11284 (get_attr_order): Same.
11285 (clear_struct_flag): Same.
11287 (compares_alternatives_p): Same.
11290 (find_attrs_to_cache): Same.
11291 (write_test_expr): Same.
11292 (walk_attr_value): Same.
11293 (write_attr_get): Same.
11294 (eliminate_known_true): Same.
11295 (write_insn_cases): Same.
11296 (write_attr_case): Same.
11297 (write_attr_valueq): Same.
11298 (write_attr_value): Same.
11299 (write_dummy_eligible_delay): Same.
11300 (next_comma_elt): Same.
11302 (make_internal_attr): Same.
11303 (copy_rtx_unchanging): Same.
11304 (gen_insn_reserv): Same.
11305 (check_tune_attr): Same.
11306 (make_automaton_attrs): Same.
11307 (handle_arg): Same.
11308 * genextract.c (gen_insn): Same.
11309 (VEC_char_to_string): Same.
11310 * genmatch.c (print_operand): Same.
11312 (parser::parse_operation): Same.
11313 (parser::parse_capture): Same.
11314 (parser::parse_c_expr): Same.
11315 (parser::parse_simplify): Same.
11317 * genoutput.c (output_operand_data): Same.
11318 (output_get_insn_name): Same.
11319 (compare_operands): Same.
11320 (place_operands): Same.
11321 (process_template): Same.
11322 (validate_insn_alternatives): Same.
11323 (validate_insn_operands): Same.
11324 (gen_expand): Same.
11325 (note_constraint): Same.
11326 * genpreds.c (write_one_predicate_function): Same.
11327 (add_constraint): Same.
11328 (process_define_register_constraint): Same.
11329 (write_lookup_constraint_1): Same.
11330 (write_lookup_constraint_array): Same.
11331 (write_insn_constraint_len): Same.
11332 (write_reg_class_for_constraint_1): Same.
11333 (write_constraint_satisfied_p_array): Same.
11334 * genrecog.c (optimize_subroutine_group): Same.
11335 * gensupport.c (process_define_predicate): Same.
11336 (queue_pattern): Same.
11337 (remove_from_queue): Same.
11338 (process_rtx): Same.
11339 (is_predicable): Same.
11340 (change_subst_attribute): Same.
11341 (subst_pattern_match): Same.
11342 (alter_constraints): Same.
11343 (alter_attrs_for_insn): Same.
11344 (shift_output_template): Same.
11345 (alter_output_for_subst_insn): Same.
11346 (process_one_cond_exec): Same.
11348 (process_define_cond_exec): Same.
11349 (mnemonic_htab_callback): Same.
11350 (gen_mnemonic_attr): Same.
11351 (read_md_rtx): Same.
11352 * ggc-page.c: Same.
11353 * gimple-loop-interchange.cc (dump_reduction): Same.
11354 (dump_induction): Same.
11355 (loop_cand::~loop_cand): Same.
11356 (free_data_refs_with_aux): Same.
11357 (tree_loop_interchange::interchange_loops): Same.
11358 (tree_loop_interchange::map_inductions_to_loop): Same.
11359 (tree_loop_interchange::move_code_to_inner_loop): Same.
11360 (compute_access_stride): Same.
11361 (compute_access_strides): Same.
11362 (proper_loop_form_for_interchange): Same.
11363 (tree_loop_interchange_compute_ddrs): Same.
11364 (prune_datarefs_not_in_loop): Same.
11365 (prepare_data_references): Same.
11366 (pass_linterchange::execute): Same.
11367 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11368 (unroll_jam_possible_p): Same.
11369 (fuse_loops): Same.
11370 (adjust_unroll_factor): Same.
11371 (tree_loop_unroll_and_jam): Same.
11372 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11373 (loop_versioning::expensive_stmt_p): Same.
11374 (loop_versioning::version_for_unity): Same.
11375 (loop_versioning::dump_inner_likelihood): Same.
11376 (loop_versioning::find_per_loop_multiplication): Same.
11377 (loop_versioning::analyze_term_using_scevs): Same.
11378 (loop_versioning::record_address_fragment): Same.
11379 (loop_versioning::analyze_expr): Same.
11380 (loop_versioning::analyze_blocks): Same.
11381 (loop_versioning::prune_conditions): Same.
11382 (loop_versioning::merge_loop_info): Same.
11383 (loop_versioning::add_loop_to_queue): Same.
11384 (loop_versioning::decide_whether_loop_is_versionable): Same.
11385 (loop_versioning::make_versioning_decisions): Same.
11386 (loop_versioning::implement_versioning_decisions): Same.
11387 * gimple-ssa-evrp-analyze.c
11388 (evrp_range_analyzer::record_ranges_from_phis): Same.
11389 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11390 (count_multiple_uses): Same.
11391 (split_group): Same.
11392 (imm_store_chain_info::output_merged_store): Same.
11393 (pass_store_merging::process_store): Same.
11394 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11395 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11397 (alloca_call_type): Same.
11398 (pass_walloca::execute): Same.
11399 * gimple-streamer-in.c (input_phi): Same.
11400 (input_gimple_stmt): Same.
11401 * gimple-streamer.h: Same.
11402 * godump.c (go_force_record_alignment): Same.
11403 (go_format_type): Same.
11404 (go_output_type): Same.
11405 (go_output_fndecl): Same.
11406 (go_output_typedef): Same.
11407 (keyword_hash_init): Same.
11408 (find_dummy_types): Same.
11409 * graph.c (draw_cfg_nodes_no_loops): Same.
11410 (draw_cfg_nodes_for_loop): Same.
11411 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11412 * hsa-brig.c: Same.
11413 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11414 * hsa-dump.c (dump_hsa_cfun): Same.
11415 * hsa-gen.c (gen_function_def_parameters): Same.
11416 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11417 * input.c (dump_line_table_statistics): Same.
11418 (test_lexer): Same.
11420 * internal-fn.c (get_multi_vector_move): Same.
11421 (expand_load_lanes_optab_fn): Same.
11422 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11423 (expand_GOMP_SIMT_EXIT): Same.
11424 (expand_GOMP_SIMT_LAST_LANE): Same.
11425 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11426 (expand_GOMP_SIMT_VOTE_ANY): Same.
11427 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11428 (expand_GOMP_SIMT_XCHG_IDX): Same.
11429 (expand_addsub_overflow): Same.
11430 (expand_neg_overflow): Same.
11431 (expand_mul_overflow): Same.
11432 (expand_call_mem_ref): Same.
11433 (expand_mask_load_optab_fn): Same.
11434 (expand_scatter_store_optab_fn): Same.
11435 (expand_gather_load_optab_fn): Same.
11436 * ipa-cp.c (ipa_get_parm_lattices): Same.
11437 (print_all_lattices): Same.
11438 (ignore_edge_p): Same.
11439 (build_toporder_info): Same.
11440 (free_toporder_info): Same.
11441 (push_node_to_stack): Same.
11442 (ipcp_lattice<valtype>::set_contains_variable): Same.
11443 (set_agg_lats_to_bottom): Same.
11444 (ipcp_bits_lattice::meet_with): Same.
11445 (set_single_call_flag): Same.
11446 (initialize_node_lattices): Same.
11447 (ipa_get_jf_ancestor_result): Same.
11448 (ipcp_verify_propagated_values): Same.
11449 (propagate_scalar_across_jump_function): Same.
11450 (propagate_context_across_jump_function): Same.
11451 (propagate_bits_across_jump_function): Same.
11452 (ipa_vr_operation_and_type_effects): Same.
11453 (propagate_vr_across_jump_function): Same.
11454 (set_check_aggs_by_ref): Same.
11455 (set_chain_of_aglats_contains_variable): Same.
11456 (merge_aggregate_lattices): Same.
11457 (agg_pass_through_permissible_p): Same.
11458 (propagate_aggs_across_jump_function): Same.
11459 (call_passes_through_thunk_p): Same.
11460 (propagate_constants_across_call): Same.
11461 (devirtualization_time_bonus): Same.
11462 (good_cloning_opportunity_p): Same.
11463 (context_independent_aggregate_values): Same.
11464 (gather_context_independent_values): Same.
11465 (perform_estimation_of_a_value): Same.
11466 (estimate_local_effects): Same.
11467 (value_topo_info<valtype>::add_val): Same.
11468 (add_all_node_vals_to_toposort): Same.
11469 (value_topo_info<valtype>::propagate_effects): Same.
11470 (ipcp_propagate_stage): Same.
11471 (ipcp_discover_new_direct_edges): Same.
11472 (same_node_or_its_all_contexts_clone_p): Same.
11473 (cgraph_edge_brings_value_p): Same.
11474 (gather_edges_for_value): Same.
11475 (create_specialized_node): Same.
11476 (find_more_scalar_values_for_callers_subset): Same.
11477 (find_more_contexts_for_caller_subset): Same.
11478 (copy_plats_to_inter): Same.
11479 (intersect_aggregates_with_edge): Same.
11480 (find_aggregate_values_for_callers_subset): Same.
11481 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11482 (decide_about_value): Same.
11483 (decide_whether_version_node): Same.
11484 (spread_undeadness): Same.
11485 (identify_dead_nodes): Same.
11486 (ipcp_store_vr_results): Same.
11487 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11488 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11489 (redirect_to_unreachable): Same.
11490 (edge_set_predicate): Same.
11491 (evaluate_conditions_for_known_args): Same.
11492 (evaluate_properties_for_edge): Same.
11493 (ipa_fn_summary_t::duplicate): Same.
11494 (ipa_call_summary_t::duplicate): Same.
11495 (dump_ipa_call_summary): Same.
11496 (ipa_dump_fn_summary): Same.
11497 (eliminated_by_inlining_prob): Same.
11498 (set_cond_stmt_execution_predicate): Same.
11499 (set_switch_stmt_execution_predicate): Same.
11500 (compute_bb_predicates): Same.
11501 (will_be_nonconstant_expr_predicate): Same.
11502 (phi_result_unknown_predicate): Same.
11503 (analyze_function_body): Same.
11504 (compute_fn_summary): Same.
11505 (estimate_edge_devirt_benefit): Same.
11506 (estimate_edge_size_and_time): Same.
11507 (estimate_calls_size_and_time): Same.
11508 (estimate_node_size_and_time): Same.
11509 (remap_edge_change_prob): Same.
11510 (remap_edge_summaries): Same.
11511 (ipa_merge_fn_summary_after_inlining): Same.
11512 (ipa_fn_summary_generate): Same.
11513 (inline_read_section): Same.
11514 (ipa_fn_summary_read): Same.
11515 (ipa_fn_summary_write): Same.
11516 * ipa-fnsummary.h: Same.
11517 * ipa-hsa.c (ipa_hsa_read_section): Same.
11518 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11519 * ipa-icf.c (sem_function::param_used_p): Same.
11520 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11521 * ipa-inline.c (edge_badness): Same.
11522 (inline_small_functions): Same.
11523 * ipa-polymorphic-call.c
11524 (ipa_polymorphic_call_context::stream_out): Same.
11525 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11526 (predicate::remap_after_inlining): Same.
11527 (predicate::stream_out): Same.
11528 * ipa-predicate.h: Same.
11529 * ipa-profile.c (ipa_profile_read_summary): Same.
11530 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11531 (count_formal_params): Same.
11532 (ipa_dump_param): Same.
11533 (ipa_alloc_node_params): Same.
11534 (ipa_print_node_jump_functions_for_edge): Same.
11535 (ipa_print_node_jump_functions): Same.
11536 (ipa_load_from_parm_agg): Same.
11537 (get_ancestor_addr_info): Same.
11538 (ipa_compute_jump_functions_for_edge): Same.
11539 (ipa_analyze_virtual_call_uses): Same.
11540 (ipa_analyze_stmt_uses): Same.
11541 (ipa_analyze_params_uses_in_bb): Same.
11542 (update_jump_functions_after_inlining): Same.
11543 (try_decrement_rdesc_refcount): Same.
11544 (ipa_impossible_devirt_target): Same.
11545 (update_indirect_edges_after_inlining): Same.
11546 (combine_controlled_uses_counters): Same.
11547 (ipa_edge_args_sum_t::duplicate): Same.
11548 (ipa_write_jump_function): Same.
11549 (ipa_write_indirect_edge_info): Same.
11550 (ipa_write_node_info): Same.
11551 (ipa_read_edge_info): Same.
11552 (ipa_prop_read_section): Same.
11553 (read_replacements_section): Same.
11554 * ipa-prop.h (ipa_get_param_count): Same.
11555 (ipa_get_param): Same.
11556 (ipa_get_type): Same.
11557 (ipa_get_param_move_cost): Same.
11558 (ipa_set_param_used): Same.
11559 (ipa_get_controlled_uses): Same.
11560 (ipa_set_controlled_uses): Same.
11561 (ipa_get_cs_argument_count): Same.
11562 * ipa-pure-const.c (analyze_function): Same.
11563 (pure_const_read_summary): Same.
11565 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11566 * ipa-split.c (test_nonssa_use): Same.
11567 (dump_split_point): Same.
11568 (dominated_by_forbidden): Same.
11569 (split_part_set_ssa_name_p): Same.
11570 (find_split_points): Same.
11571 * ira-build.c (finish_loop_tree_nodes): Same.
11572 (low_pressure_loop_node_p): Same.
11573 * ira-color.c (ira_reuse_stack_slot): Same.
11575 * ira.c (setup_reg_equiv): Same.
11576 (print_insn_chain): Same.
11578 * loop-doloop.c (doloop_condition_get): Same.
11580 (record_reg_sets): Same.
11581 (doloop_optimize): Same.
11582 * loop-init.c (loop_optimizer_init): Same.
11583 (fix_loop_structure): Same.
11584 * loop-invariant.c (merge_identical_invariants): Same.
11585 (compute_always_reached): Same.
11586 (find_exits): Same.
11587 (may_assign_reg_p): Same.
11588 (find_invariants_bb): Same.
11589 (find_invariants_body): Same.
11590 (replace_uses): Same.
11591 (can_move_invariant_reg): Same.
11592 (free_inv_motion_data): Same.
11593 (move_single_loop_invariants): Same.
11594 (change_pressure): Same.
11595 (mark_ref_regs): Same.
11596 (calculate_loop_reg_pressure): Same.
11597 * loop-iv.c (biv_entry_hasher::equal): Same.
11598 (iv_extend_to_rtx_code): Same.
11599 (check_iv_ref_table_size): Same.
11600 (clear_iv_info): Same.
11601 (latch_dominating_def): Same.
11602 (iv_get_reaching_def): Same.
11603 (iv_constant): Same.
11609 (get_biv_step): Same.
11611 (analyzed_for_bivness_p): Same.
11612 (record_biv): Same.
11613 (iv_analyze_biv): Same.
11614 (iv_analyze_expr): Same.
11615 (iv_analyze_def): Same.
11616 (iv_analyze_op): Same.
11617 (iv_analyze): Same.
11618 (iv_analyze_result): Same.
11620 (eliminate_implied_conditions): Same.
11621 (simplify_using_initial_values): Same.
11622 (shorten_into_mode): Same.
11623 (canonicalize_iv_subregs): Same.
11624 (determine_max_iter): Same.
11625 (check_simple_exit): Same.
11626 (find_simple_exit): Same.
11627 (get_simple_loop_desc): Same.
11628 * loop-unroll.c (report_unroll): Same.
11629 (decide_unrolling): Same.
11630 (unroll_loops): Same.
11631 (loop_exit_at_end_p): Same.
11632 (decide_unroll_constant_iterations): Same.
11633 (unroll_loop_constant_iterations): Same.
11634 (compare_and_jump_seq): Same.
11635 (unroll_loop_runtime_iterations): Same.
11636 (decide_unroll_stupid): Same.
11637 (unroll_loop_stupid): Same.
11638 (referenced_in_one_insn_in_loop_p): Same.
11639 (reset_debug_uses_in_loop): Same.
11640 (analyze_iv_to_split_insn): Same.
11641 * lra-eliminations.c (lra_debug_elim_table): Same.
11642 (setup_can_eliminate): Same.
11644 (lra_get_elimination_hard_regno): Same.
11645 (lra_eliminate_regs_1): Same.
11646 (eliminate_regs_in_insn): Same.
11647 (update_reg_eliminate): Same.
11648 (init_elimination): Same.
11649 (lra_eliminate): Same.
11651 * lra-lives.c (initiate_live_solver): Same.
11652 * lra-remat.c (create_remat_bb_data): Same.
11653 * lra-spills.c (lra_spill): Same.
11654 * lra.c (lra_set_insn_recog_data): Same.
11655 (lra_set_used_insn_alternative_by_uid): Same.
11656 (init_reg_info): Same.
11657 (expand_reg_info): Same.
11658 * lto-cgraph.c (output_symtab): Same.
11659 (read_identifier): Same.
11660 (get_alias_symbol): Same.
11661 (input_node): Same.
11662 (input_varpool_node): Same.
11664 (input_edge): Same.
11665 (input_cgraph_1): Same.
11666 (input_refs): Same.
11667 (input_symtab): Same.
11668 (input_offload_tables): Same.
11669 (output_cgraph_opt_summary): Same.
11670 (input_edge_opt_summary): Same.
11671 (input_cgraph_opt_section): Same.
11672 * lto-section-in.c (lto_free_raw_section_data): Same.
11673 (lto_create_simple_input_block): Same.
11674 (lto_free_function_in_decl_state_for_node): Same.
11675 * lto-streamer-in.c (lto_tag_check_set): Same.
11676 (lto_location_cache::revert_location_cache): Same.
11677 (lto_location_cache::input_location): Same.
11678 (lto_input_location): Same.
11679 (stream_input_location_now): Same.
11680 (lto_input_tree_ref): Same.
11681 (lto_input_eh_catch_list): Same.
11682 (input_eh_region): Same.
11683 (lto_init_eh): Same.
11684 (make_new_block): Same.
11686 (fixup_call_stmt_edges): Same.
11687 (input_struct_function_base): Same.
11688 (input_function): Same.
11689 (lto_read_body_or_constructor): Same.
11690 (lto_read_tree_1): Same.
11691 (lto_read_tree): Same.
11692 (lto_input_scc): Same.
11693 (lto_input_tree_1): Same.
11694 (lto_input_toplevel_asms): Same.
11695 (lto_input_mode_table): Same.
11696 (lto_reader_init): Same.
11697 (lto_data_in_create): Same.
11698 * lto-streamer-out.c (output_cfg): Same.
11699 * lto-streamer.h: Same.
11700 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11701 (generate_prolog_epilog): Same.
11702 (mark_loop_unsched): Same.
11703 (dump_insn_location): Same.
11704 (loop_canon_p): Same.
11705 (sms_schedule): Same.
11706 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11707 (expand_omp_for_generic): Same.
11708 (expand_omp_for_static_nochunk): Same.
11709 (expand_omp_for_static_chunk): Same.
11710 (expand_omp_simd): Same.
11711 (expand_omp_taskloop_for_inner): Same.
11712 (expand_oacc_for): Same.
11713 (expand_omp_atomic_pipeline): Same.
11714 (mark_loops_in_oacc_kernels_region): Same.
11715 * omp-offload.c (oacc_xform_loop): Same.
11716 * omp-simd-clone.c (simd_clone_adjust): Same.
11717 * optabs-query.c (get_traditional_extraction_insn): Same.
11718 * optabs.c (expand_vector_broadcast): Same.
11719 (expand_binop_directly): Same.
11720 (expand_twoval_unop): Same.
11721 (expand_twoval_binop): Same.
11722 (expand_unop_direct): Same.
11723 (emit_indirect_jump): Same.
11724 (emit_conditional_move): Same.
11725 (emit_conditional_neg_or_complement): Same.
11726 (emit_conditional_add): Same.
11727 (vector_compare_rtx): Same.
11728 (expand_vec_perm_1): Same.
11729 (expand_vec_perm_const): Same.
11730 (expand_vec_cond_expr): Same.
11731 (expand_vec_series_expr): Same.
11732 (maybe_emit_atomic_exchange): Same.
11733 (maybe_emit_sync_lock_test_and_set): Same.
11734 (expand_atomic_compare_and_swap): Same.
11735 (expand_atomic_load): Same.
11736 (expand_atomic_store): Same.
11737 (maybe_emit_op): Same.
11738 (valid_multiword_target_p): Same.
11739 (create_integer_operand): Same.
11740 (maybe_legitimize_operand_same_code): Same.
11741 (maybe_legitimize_operand): Same.
11742 (create_convert_operand_from_type): Same.
11743 (can_reuse_operands_p): Same.
11744 (maybe_legitimize_operands): Same.
11745 (maybe_gen_insn): Same.
11746 (maybe_expand_insn): Same.
11747 (maybe_expand_jump_insn): Same.
11748 (expand_insn): Same.
11749 * optabs.h (create_expand_operand): Same.
11750 (create_fixed_operand): Same.
11751 (create_output_operand): Same.
11752 (create_input_operand): Same.
11753 (create_convert_operand_to): Same.
11754 (create_convert_operand_from): Same.
11756 * poly-int.h: Same.
11757 * predict.c (optimize_insn_for_speed_p): Same.
11758 (optimize_loop_for_size_p): Same.
11759 (optimize_loop_for_speed_p): Same.
11760 (optimize_loop_nest_for_speed_p): Same.
11761 (get_base_value): Same.
11762 (predicted_by_loop_heuristics_p): Same.
11763 (predict_extra_loop_exits): Same.
11764 (predict_loops): Same.
11765 (predict_paths_for_bb): Same.
11766 (predict_paths_leading_to): Same.
11767 (propagate_freq): Same.
11768 (pass_profile::execute): Same.
11770 * profile-count.c (profile_count::differs_from_p): Same.
11771 (profile_probability::differs_lot_from_p): Same.
11772 * profile-count.h: Same.
11773 * profile.c (branch_prob): Same.
11774 * regrename.c (free_chain_data): Same.
11775 (mark_conflict): Same.
11776 (create_new_chain): Same.
11777 (merge_overlapping_regs): Same.
11778 (init_rename_info): Same.
11779 (merge_chains): Same.
11780 (regrename_analyze): Same.
11781 (regrename_do_replace): Same.
11782 (scan_rtx_reg): Same.
11783 (record_out_operands): Same.
11784 (build_def_use): Same.
11785 * regrename.h: Same.
11787 * reload1.c (init_reload): Same.
11788 (maybe_fix_stack_asms): Same.
11789 (copy_reloads): Same.
11790 (count_pseudo): Same.
11791 (count_spilled_pseudo): Same.
11793 (find_reload_regs): Same.
11794 (select_reload_regs): Same.
11795 (spill_hard_reg): Same.
11796 (fixup_eh_region_note): Same.
11797 (set_reload_reg): Same.
11798 (allocate_reload_reg): Same.
11799 (compute_reload_subreg_offset): Same.
11800 (reload_adjust_reg_for_icode): Same.
11801 (emit_input_reload_insns): Same.
11802 (emit_output_reload_insns): Same.
11803 (do_input_reload): Same.
11804 (inherit_piecemeal_p): Same.
11806 * sanopt.c (maybe_get_dominating_check): Same.
11807 (maybe_optimize_ubsan_ptr_ifn): Same.
11808 (can_remove_asan_check): Same.
11809 (maybe_optimize_asan_check_ifn): Same.
11810 (sanopt_optimize_walker): Same.
11811 * sched-deps.c (add_dependence_list): Same.
11812 (chain_to_prev_insn): Same.
11813 (add_insn_mem_dependence): Same.
11814 (create_insn_reg_set): Same.
11815 (maybe_extend_reg_info_p): Same.
11816 (sched_analyze_reg): Same.
11817 (sched_analyze_1): Same.
11818 (get_implicit_reg_pending_clobbers): Same.
11819 (chain_to_prev_insn_p): Same.
11820 (deps_analyze_insn): Same.
11821 (deps_start_bb): Same.
11822 (sched_free_deps): Same.
11824 (init_deps_reg_last): Same.
11826 * sched-ebb.c: Same.
11827 * sched-int.h: Same.
11828 * sched-rgn.c (add_branch_dependences): Same.
11829 (concat_insn_mem_list): Same.
11831 (sched_rgn_compute_dependencies): Same.
11832 * sel-sched-ir.c (reset_target_context): Same.
11833 (copy_deps_context): Same.
11834 (init_id_from_df): Same.
11835 (has_dependence_p): Same.
11836 (change_loops_latches): Same.
11837 (bb_top_order_comparator): Same.
11838 (make_region_from_loop_preheader): Same.
11839 (sel_init_pipelining): Same.
11840 (get_loop_nest_for_rgn): Same.
11841 (make_regions_from_the_rest): Same.
11842 (sel_is_loop_preheader_p): Same.
11843 * sel-sched-ir.h (inner_loop_header_p): Same.
11844 (get_all_loop_exits): Same.
11845 * selftest.h: Same.
11846 * sese.c (sese_build_liveouts): Same.
11847 (sese_insert_phis_for_liveouts): Same.
11848 * sese.h (defined_in_sese_p): Same.
11849 * sreal.c (sreal::stream_out): Same.
11851 * streamer-hooks.h: Same.
11852 * target-globals.c (save_target_globals): Same.
11853 * target-globals.h: Same.
11854 * target.def: Same.
11856 * targhooks.c (default_has_ifunc_p): Same.
11857 (default_empty_mask_is_expensive): Same.
11858 (default_init_cost): Same.
11859 * targhooks.h: Same.
11861 * tree-affine.c (aff_combination_mult): Same.
11862 (aff_combination_expand): Same.
11863 (aff_combination_constant_multiple_p): Same.
11864 * tree-affine.h: Same.
11865 * tree-cfg.c (build_gimple_cfg): Same.
11866 (replace_loop_annotate_in_block): Same.
11867 (replace_uses_by): Same.
11869 (dump_cfg_stats): Same.
11870 (gimple_duplicate_sese_region): Same.
11871 (gimple_duplicate_sese_tail): Same.
11872 (move_block_to_fn): Same.
11873 (replace_block_vars_by_duplicates): Same.
11874 (move_sese_region_to_fn): Same.
11875 (print_loops_bb): Same.
11876 (print_loop): Same.
11877 (print_loops): Same.
11879 (debug_loops): Same.
11880 * tree-cfg.h: Same.
11881 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11882 (chrec_fold_multiply_poly_poly): Same.
11883 (chrec_evaluate): Same.
11884 (chrec_component_in_loop_num): Same.
11885 (reset_evolution_in_loop): Same.
11886 (is_multivariate_chrec): Same.
11887 (chrec_contains_symbols): Same.
11888 (nb_vars_in_chrec): Same.
11889 (chrec_convert_1): Same.
11890 (chrec_convert_aggressive): Same.
11891 * tree-chrec.h: Same.
11892 * tree-core.h: Same.
11893 * tree-data-ref.c (dump_data_dependence_relation): Same.
11894 (canonicalize_base_object_address): Same.
11895 (data_ref_compare_tree): Same.
11896 (prune_runtime_alias_test_list): Same.
11897 (get_segment_min_max): Same.
11898 (create_intersect_range_checks): Same.
11899 (conflict_fn_no_dependence): Same.
11900 (object_address_invariant_in_loop_p): Same.
11901 (analyze_ziv_subscript): Same.
11902 (analyze_siv_subscript_cst_affine): Same.
11903 (analyze_miv_subscript): Same.
11904 (analyze_overlapping_iterations): Same.
11905 (build_classic_dist_vector_1): Same.
11906 (add_other_self_distances): Same.
11907 (same_access_functions): Same.
11908 (build_classic_dir_vector): Same.
11909 (subscript_dependence_tester_1): Same.
11910 (subscript_dependence_tester): Same.
11911 (access_functions_are_affine_or_constant_p): Same.
11912 (get_references_in_stmt): Same.
11913 (loop_nest_has_data_refs): Same.
11914 (graphite_find_data_references_in_stmt): Same.
11915 (find_data_references_in_bb): Same.
11916 (get_base_for_alignment): Same.
11917 (find_loop_nest_1): Same.
11918 (find_loop_nest): Same.
11919 * tree-data-ref.h (dr_alignment): Same.
11920 (ddr_dependence_level): Same.
11921 * tree-if-conv.c (fold_build_cond_expr): Same.
11922 (add_to_predicate_list): Same.
11923 (add_to_dst_predicate_list): Same.
11924 (phi_convertible_by_degenerating_args): Same.
11925 (idx_within_array_bound): Same.
11926 (all_preds_critical_p): Same.
11927 (pred_blocks_visited_p): Same.
11928 (predicate_bbs): Same.
11929 (build_region): Same.
11930 (if_convertible_loop_p_1): Same.
11931 (is_cond_scalar_reduction): Same.
11932 (predicate_scalar_phi): Same.
11933 (remove_conditions_and_labels): Same.
11934 (combine_blocks): Same.
11935 (version_loop_for_if_conversion): Same.
11936 (versionable_outer_loop_p): Same.
11937 (ifcvt_local_dce): Same.
11938 (tree_if_conversion): Same.
11939 (pass_if_conversion::gate): Same.
11940 * tree-if-conv.h: Same.
11941 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11942 * tree-loop-distribution.c (bb_top_order_cmp): Same.
11944 (stmt_has_scalar_dependences_outside_loop): Same.
11945 (copy_loop_before): Same.
11946 (create_bb_after_loop): Same.
11947 (const_with_all_bytes_same): Same.
11948 (generate_memset_builtin): Same.
11949 (generate_memcpy_builtin): Same.
11950 (destroy_loop): Same.
11951 (build_rdg_partition_for_vertex): Same.
11952 (compute_access_range): Same.
11953 (data_ref_segment_size): Same.
11954 (latch_dominated_by_data_ref): Same.
11955 (compute_alias_check_pairs): Same.
11956 (fuse_memset_builtins): Same.
11957 (finalize_partitions): Same.
11958 (find_seed_stmts_for_distribution): Same.
11959 (prepare_perfect_loop_nest): Same.
11960 * tree-parloops.c (lambda_transform_legal_p): Same.
11961 (loop_parallel_p): Same.
11962 (reduc_stmt_res): Same.
11963 (add_field_for_name): Same.
11964 (create_call_for_reduction_1): Same.
11965 (replace_uses_in_bb_by): Same.
11966 (transform_to_exit_first_loop_alt): Same.
11967 (try_transform_to_exit_first_loop_alt): Same.
11968 (transform_to_exit_first_loop): Same.
11970 (gen_parallel_loop): Same.
11971 (gather_scalar_reductions): Same.
11972 (get_omp_data_i_param): Same.
11973 (try_create_reduction_list): Same.
11974 (oacc_entry_exit_single_gang): Same.
11975 (parallelize_loops): Same.
11976 * tree-pass.h: Same.
11977 * tree-predcom.c (determine_offset): Same.
11978 (last_always_executed_block): Same.
11979 (split_data_refs_to_components): Same.
11980 (suitable_component_p): Same.
11981 (valid_initializer_p): Same.
11982 (find_looparound_phi): Same.
11983 (insert_looparound_copy): Same.
11984 (add_looparound_copies): Same.
11985 (determine_roots_comp): Same.
11986 (predcom_tmp_var): Same.
11987 (initialize_root_vars): Same.
11988 (initialize_root_vars_store_elim_1): Same.
11989 (initialize_root_vars_store_elim_2): Same.
11990 (finalize_eliminated_stores): Same.
11991 (initialize_root_vars_lm): Same.
11992 (remove_stmt): Same.
11993 (determine_unroll_factor): Same.
11994 (execute_pred_commoning_cbck): Same.
11995 (base_names_in_chain_on): Same.
11996 (combine_chains): Same.
11997 (pcom_stmt_dominates_stmt_p): Same.
11998 (try_combine_chains): Same.
11999 (prepare_initializers_chain_store_elim): Same.
12000 (prepare_initializers_chain): Same.
12001 (prepare_initializers): Same.
12002 (prepare_finalizers_chain): Same.
12003 (prepare_finalizers): Same.
12004 (insert_init_seqs): Same.
12005 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12006 (compute_overall_effect_of_inner_loop): Same.
12007 (add_to_evolution_1): Same.
12008 (add_to_evolution): Same.
12009 (follow_ssa_edge_binary): Same.
12010 (follow_ssa_edge_expr): Same.
12011 (backedge_phi_arg_p): Same.
12012 (follow_ssa_edge_in_condition_phi_branch): Same.
12013 (follow_ssa_edge_in_condition_phi): Same.
12014 (follow_ssa_edge_inner_loop_phi): Same.
12015 (follow_ssa_edge): Same.
12016 (analyze_evolution_in_loop): Same.
12017 (analyze_initial_condition): Same.
12018 (interpret_loop_phi): Same.
12019 (interpret_condition_phi): Same.
12020 (interpret_rhs_expr): Same.
12021 (interpret_expr): Same.
12022 (interpret_gimple_assign): Same.
12023 (analyze_scalar_evolution_1): Same.
12024 (analyze_scalar_evolution): Same.
12025 (analyze_scalar_evolution_for_address_of): Same.
12026 (get_instantiated_value_entry): Same.
12027 (loop_closed_phi_def): Same.
12028 (instantiate_scev_name): Same.
12029 (instantiate_scev_poly): Same.
12030 (instantiate_scev_binary): Same.
12031 (instantiate_scev_convert): Same.
12032 (instantiate_scev_not): Same.
12033 (instantiate_scev_r): Same.
12034 (instantiate_scev): Same.
12035 (resolve_mixers): Same.
12036 (initialize_scalar_evolutions_analyzer): Same.
12037 (scev_reset_htab): Same.
12038 (scev_reset): Same.
12039 (derive_simple_iv_with_niters): Same.
12040 (simple_iv_with_niters): Same.
12041 (expression_expensive_p): Same.
12042 (final_value_replacement_loop): Same.
12043 * tree-scalar-evolution.h (block_before_loop): Same.
12044 * tree-ssa-address.h: Same.
12045 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12046 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12047 (record_edge_info): Same.
12048 * tree-ssa-live.c (var_map_base_fini): Same.
12049 (remove_unused_locals): Same.
12050 * tree-ssa-live.h: Same.
12051 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12052 (pass_ch_vect::execute): Same.
12053 (pass_ch::process_loop_p): Same.
12054 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12055 (movement_possibility): Same.
12056 (outermost_invariant_loop): Same.
12058 (determine_max_movement): Same.
12059 (invariantness_dom_walker::before_dom_children): Same.
12060 (move_computations): Same.
12061 (may_move_till): Same.
12062 (force_move_till_op): Same.
12063 (force_move_till): Same.
12064 (memref_free): Same.
12065 (record_mem_ref_loc): Same.
12066 (set_ref_stored_in_loop): Same.
12067 (mark_ref_stored): Same.
12068 (sort_bbs_in_loop_postorder_cmp): Same.
12069 (sort_locs_in_loop_postorder_cmp): Same.
12070 (analyze_memory_references): Same.
12071 (mem_refs_may_alias_p): Same.
12072 (find_ref_loc_in_loop_cmp): Same.
12073 (rewrite_mem_ref_loc::operator): Same.
12074 (first_mem_ref_loc_1::operator): Same.
12075 (sm_set_flag_if_changed::operator): Same.
12076 (execute_sm_if_changed_flag_set): Same.
12077 (execute_sm): Same.
12078 (hoist_memory_references): Same.
12079 (ref_always_accessed::operator): Same.
12080 (refs_independent_p): Same.
12081 (record_dep_loop): Same.
12082 (ref_indep_loop_p_1): Same.
12083 (ref_indep_loop_p): Same.
12084 (can_sm_ref_p): Same.
12085 (find_refs_for_sm): Same.
12086 (loop_suitable_for_sm): Same.
12087 (store_motion_loop): Same.
12088 (store_motion): Same.
12089 (fill_always_executed_in): Same.
12090 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12091 (estimated_unrolled_size): Same.
12092 (loop_edge_to_cancel): Same.
12093 (remove_exits_and_undefined_stmts): Same.
12094 (remove_redundant_iv_tests): Same.
12095 (unloop_loops): Same.
12096 (estimated_peeled_sequence_size): Same.
12097 (try_peel_loop): Same.
12098 (canonicalize_loop_induction_variables): Same.
12099 (canonicalize_induction_variables): Same.
12100 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12102 (stmt_after_inc_pos): Same.
12103 (contains_abnormal_ssa_name_p): Same.
12104 (niter_for_exit): Same.
12107 (find_givs_in_bb): Same.
12108 (find_induction_variables): Same.
12109 (find_interesting_uses_cond): Same.
12110 (outermost_invariant_loop_for_expr): Same.
12111 (idx_find_step): Same.
12112 (add_candidate_1): Same.
12113 (add_iv_candidate_derived_from_uses): Same.
12114 (alloc_use_cost_map): Same.
12115 (prepare_decl_rtl): Same.
12116 (generic_predict_doloop_p): Same.
12117 (computation_cost): Same.
12118 (determine_common_wider_type): Same.
12119 (get_computation_aff_1): Same.
12120 (get_use_type): Same.
12121 (determine_group_iv_cost_address): Same.
12123 (difference_cannot_overflow_p): Same.
12124 (may_eliminate_iv): Same.
12125 (determine_set_costs): Same.
12126 (cheaper_cost_pair): Same.
12127 (compare_cost_pair): Same.
12128 (iv_ca_cand_for_group): Same.
12129 (iv_ca_recount_cost): Same.
12130 (iv_ca_set_remove_invs): Same.
12131 (iv_ca_set_no_cp): Same.
12132 (iv_ca_set_add_invs): Same.
12133 (iv_ca_set_cp): Same.
12134 (iv_ca_add_group): Same.
12135 (iv_ca_cost): Same.
12136 (iv_ca_compare_deps): Same.
12137 (iv_ca_delta_reverse): Same.
12138 (iv_ca_delta_commit): Same.
12139 (iv_ca_cand_used_p): Same.
12140 (iv_ca_delta_free): Same.
12142 (iv_ca_free): Same.
12143 (iv_ca_dump): Same.
12144 (iv_ca_extend): Same.
12145 (iv_ca_narrow): Same.
12146 (iv_ca_prune): Same.
12147 (cheaper_cost_with_cand): Same.
12148 (iv_ca_replace): Same.
12149 (try_add_cand_for): Same.
12150 (get_initial_solution): Same.
12151 (try_improve_iv_set): Same.
12152 (find_optimal_iv_set_1): Same.
12153 (create_new_iv): Same.
12154 (rewrite_use_compare): Same.
12155 (remove_unused_ivs): Same.
12156 (determine_scaling_factor): Same.
12157 * tree-ssa-loop-ivopts.h: Same.
12158 * tree-ssa-loop-manip.c (create_iv): Same.
12159 (compute_live_loop_exits): Same.
12160 (add_exit_phi): Same.
12161 (add_exit_phis): Same.
12162 (find_uses_to_rename_use): Same.
12163 (find_uses_to_rename_def): Same.
12164 (find_uses_to_rename_in_loop): Same.
12165 (rewrite_into_loop_closed_ssa): Same.
12166 (check_loop_closed_ssa_bb): Same.
12167 (split_loop_exit_edge): Same.
12168 (ip_end_pos): Same.
12169 (ip_normal_pos): Same.
12170 (copy_phi_node_args): Same.
12171 (gimple_duplicate_loop_to_header_edge): Same.
12172 (can_unroll_loop_p): Same.
12173 (determine_exit_conditions): Same.
12174 (scale_dominated_blocks_in_loop): Same.
12175 (niter_for_unrolled_loop): Same.
12176 (tree_transform_and_unroll_loop): Same.
12177 (rewrite_all_phi_nodes_with_iv): Same.
12178 * tree-ssa-loop-manip.h: Same.
12179 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12180 (number_of_iterations_ne): Same.
12181 (assert_no_overflow_lt): Same.
12182 (assert_loop_rolls_lt): Same.
12183 (number_of_iterations_lt): Same.
12184 (adjust_cond_for_loop_until_wrap): Same.
12185 (tree_simplify_using_condition): Same.
12186 (simplify_using_initial_conditions): Same.
12187 (simplify_using_outer_evolutions): Same.
12188 (loop_only_exit_p): Same.
12189 (ssa_defined_by_minus_one_stmt_p): Same.
12190 (number_of_iterations_popcount): Same.
12191 (number_of_iterations_exit): Same.
12192 (find_loop_niter): Same.
12193 (finite_loop_p): Same.
12194 (chain_of_csts_start): Same.
12195 (get_val_for): Same.
12196 (loop_niter_by_eval): Same.
12197 (derive_constant_upper_bound_ops): Same.
12198 (do_warn_aggressive_loop_optimizations): Same.
12199 (record_estimate): Same.
12200 (get_cst_init_from_scev): Same.
12201 (record_nonwrapping_iv): Same.
12202 (idx_infer_loop_bounds): Same.
12203 (infer_loop_bounds_from_ref): Same.
12204 (infer_loop_bounds_from_array): Same.
12205 (infer_loop_bounds_from_pointer_arith): Same.
12206 (infer_loop_bounds_from_signedness): Same.
12207 (bound_index): Same.
12208 (discover_iteration_bound_by_body_walk): Same.
12209 (maybe_lower_iteration_bound): Same.
12210 (estimate_numbers_of_iterations): Same.
12211 (estimated_loop_iterations): Same.
12212 (estimated_loop_iterations_int): Same.
12213 (max_loop_iterations): Same.
12214 (max_loop_iterations_int): Same.
12215 (likely_max_loop_iterations): Same.
12216 (likely_max_loop_iterations_int): Same.
12217 (estimated_stmt_executions_int): Same.
12218 (max_stmt_executions): Same.
12219 (likely_max_stmt_executions): Same.
12220 (estimated_stmt_executions): Same.
12221 (stmt_dominates_stmt_p): Same.
12222 (nowrap_type_p): Same.
12223 (loop_exits_before_overflow): Same.
12224 (scev_var_range_cant_overflow): Same.
12225 (scev_probably_wraps_p): Same.
12226 (free_numbers_of_iterations_estimates): Same.
12227 * tree-ssa-loop-niter.h: Same.
12228 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12229 (idx_analyze_ref): Same.
12230 (analyze_ref): Same.
12231 (gather_memory_references_ref): Same.
12232 (mark_nontemporal_store): Same.
12233 (emit_mfence_after_loop): Same.
12234 (may_use_storent_in_loop_p): Same.
12235 (mark_nontemporal_stores): Same.
12236 (should_unroll_loop_p): Same.
12237 (volume_of_dist_vector): Same.
12238 (add_subscript_strides): Same.
12239 (self_reuse_distance): Same.
12240 (insn_to_prefetch_ratio_too_small_p): Same.
12241 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12242 (patch_loop_exit): Same.
12243 (find_or_create_guard_phi): Same.
12244 (easy_exit_values): Same.
12245 (connect_loop_phis): Same.
12246 (connect_loops): Same.
12247 (compute_new_first_bound): Same.
12248 (split_loop): Same.
12249 (tree_ssa_split_loops): Same.
12250 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12251 (is_maybe_undefined): Same.
12252 (tree_may_unswitch_on): Same.
12253 (simplify_using_entry_checks): Same.
12254 (tree_unswitch_single_loop): Same.
12255 (tree_unswitch_loop): Same.
12256 (tree_unswitch_outer_loop): Same.
12257 (empty_bb_without_guard_p): Same.
12258 (used_outside_loop_p): Same.
12259 (get_vop_from_header): Same.
12260 (hoist_guard): Same.
12261 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12262 (get_lsm_tmp_name): Same.
12263 * tree-ssa-loop.h: Same.
12264 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12265 (build_and_add_sum): Same.
12266 (no_side_effect_bb): Same.
12268 (linearize_expr): Same.
12269 (should_break_up_subtract): Same.
12270 (linearize_expr_tree): Same.
12271 * tree-ssa-scopedtables.c: Same.
12272 * tree-ssa-scopedtables.h: Same.
12273 * tree-ssa-structalias.c (condense_visit): Same.
12274 (label_visit): Same.
12275 (dump_pred_graph): Same.
12276 (perform_var_substitution): Same.
12277 (move_complex_constraints): Same.
12278 (remove_preds_and_fake_succs): Same.
12279 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12280 (determine_bb_domination_status): Same.
12281 (duplicate_thread_path): Same.
12282 (thread_through_all_blocks): Same.
12283 * tree-ssa-threadupdate.h: Same.
12284 * tree-streamer-in.c (streamer_read_string_cst): Same.
12285 (input_identifier): Same.
12286 (unpack_ts_type_common_value_fields): Same.
12287 (unpack_ts_block_value_fields): Same.
12288 (unpack_ts_translation_unit_decl_value_fields): Same.
12289 (unpack_ts_omp_clause_value_fields): Same.
12290 (streamer_read_tree_bitfields): Same.
12291 (streamer_alloc_tree): Same.
12292 (lto_input_ts_common_tree_pointers): Same.
12293 (lto_input_ts_vector_tree_pointers): Same.
12294 (lto_input_ts_poly_tree_pointers): Same.
12295 (lto_input_ts_complex_tree_pointers): Same.
12296 (lto_input_ts_decl_minimal_tree_pointers): Same.
12297 (lto_input_ts_decl_common_tree_pointers): Same.
12298 (lto_input_ts_decl_non_common_tree_pointers): Same.
12299 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12300 (lto_input_ts_field_decl_tree_pointers): Same.
12301 (lto_input_ts_function_decl_tree_pointers): Same.
12302 (lto_input_ts_type_common_tree_pointers): Same.
12303 (lto_input_ts_type_non_common_tree_pointers): Same.
12304 (lto_input_ts_list_tree_pointers): Same.
12305 (lto_input_ts_vec_tree_pointers): Same.
12306 (lto_input_ts_exp_tree_pointers): Same.
12307 (lto_input_ts_block_tree_pointers): Same.
12308 (lto_input_ts_binfo_tree_pointers): Same.
12309 (lto_input_ts_constructor_tree_pointers): Same.
12310 (lto_input_ts_omp_clause_tree_pointers): Same.
12311 (streamer_read_tree_body): Same.
12312 * tree-streamer.h: Same.
12313 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12314 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12315 (vect_analyze_possibly_independent_ddr): Same.
12316 (vect_analyze_data_ref_dependence): Same.
12317 (vect_compute_data_ref_alignment): Same.
12318 (vect_enhance_data_refs_alignment): Same.
12319 (vect_analyze_data_ref_access): Same.
12320 (vect_check_gather_scatter): Same.
12321 (vect_find_stmt_data_reference): Same.
12322 (vect_create_addr_base_for_vector_ref): Same.
12323 (vect_setup_realignment): Same.
12324 (vect_supportable_dr_alignment): Same.
12325 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12326 (adjust_phi_and_debug_stmts): Same.
12327 (vect_set_loop_mask): Same.
12328 (add_preheader_seq): Same.
12329 (vect_maybe_permute_loop_masks): Same.
12330 (vect_set_loop_masks_directly): Same.
12331 (vect_set_loop_condition_masked): Same.
12332 (vect_set_loop_condition_unmasked): Same.
12333 (slpeel_duplicate_current_defs_from_edges): Same.
12334 (slpeel_add_loop_guard): Same.
12335 (slpeel_can_duplicate_loop_p): Same.
12336 (create_lcssa_for_virtual_phi): Same.
12338 (vect_update_ivs_after_vectorizer): Same.
12339 (vect_gen_vector_loop_niters_mult_vf): Same.
12340 (slpeel_update_phi_nodes_for_loops): Same.
12341 (slpeel_update_phi_nodes_for_guard1): Same.
12342 (find_guard_arg): Same.
12343 (slpeel_update_phi_nodes_for_guard2): Same.
12344 (slpeel_update_phi_nodes_for_lcssa): Same.
12345 (vect_do_peeling): Same.
12346 (vect_create_cond_for_alias_checks): Same.
12347 (vect_loop_versioning): Same.
12348 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12349 (vect_inner_phi_in_double_reduction_p): Same.
12350 (vect_analyze_scalar_cycles_1): Same.
12351 (vect_fixup_scalar_cycles_with_patterns): Same.
12352 (vect_get_loop_niters): Same.
12353 (bb_in_loop_p): Same.
12354 (vect_get_max_nscalars_per_iter): Same.
12355 (vect_verify_full_masking): Same.
12356 (vect_compute_single_scalar_iteration_cost): Same.
12357 (vect_analyze_loop_form_1): Same.
12358 (vect_analyze_loop_form): Same.
12359 (vect_active_double_reduction_p): Same.
12360 (vect_analyze_loop_operations): Same.
12361 (neutral_op_for_slp_reduction): Same.
12362 (vect_is_simple_reduction): Same.
12363 (vect_model_reduction_cost): Same.
12364 (get_initial_def_for_reduction): Same.
12365 (get_initial_defs_for_reduction): Same.
12366 (vect_create_epilog_for_reduction): Same.
12367 (vectorize_fold_left_reduction): Same.
12368 (vectorizable_reduction): Same.
12369 (vectorizable_induction): Same.
12370 (vectorizable_live_operation): Same.
12371 (loop_niters_no_overflow): Same.
12372 (vect_get_loop_mask): Same.
12373 (vect_transform_loop_stmt): Same.
12374 (vect_transform_loop): Same.
12375 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12376 (vect_determine_precisions): Same.
12377 (vect_pattern_recog_1): Same.
12378 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12379 * tree-vect-stmts.c (stmt_vectype): Same.
12380 (process_use): Same.
12381 (vect_init_vector_1): Same.
12382 (vect_truncate_gather_scatter_offset): Same.
12383 (get_group_load_store_type): Same.
12384 (vect_build_gather_load_calls): Same.
12385 (vect_get_strided_load_store_ops): Same.
12386 (vectorizable_simd_clone_call): Same.
12387 (vectorizable_store): Same.
12388 (permute_vec_elements): Same.
12389 (vectorizable_load): Same.
12390 (vect_transform_stmt): Same.
12391 (supportable_widening_operation): Same.
12392 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12393 (vec_info::free_stmt_vec_info): Same.
12394 (vect_free_loop_info_assumptions): Same.
12395 (vect_loop_vectorized_call): Same.
12396 (set_uid_loop_bbs): Same.
12397 (vectorize_loops): Same.
12398 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12399 * tree.c (add_tree_to_fld_list): Same.
12400 (fld_type_variant_equal_p): Same.
12401 (fld_decl_context): Same.
12402 (fld_incomplete_type_of): Same.
12403 (free_lang_data_in_binfo): Same.
12404 (need_assembler_name_p): Same.
12405 (find_decls_types_r): Same.
12406 (get_eh_types_for_runtime): Same.
12407 (find_decls_types_in_eh_region): Same.
12408 (find_decls_types_in_node): Same.
12409 (assign_assembler_name_if_needed): Same.
12410 * value-prof.c (stream_out_histogram_value): Same.
12411 * value-prof.h: Same.
12412 * var-tracking.c (use_narrower_mode): Same.
12413 (prepare_call_arguments): Same.
12414 (vt_expand_loc_callback): Same.
12415 (resolve_expansions_pending_recursion): Same.
12416 (vt_expand_loc): Same.
12417 * varasm.c (const_hash_1): Same.
12418 (compare_constant): Same.
12419 (tree_output_constant_def): Same.
12420 (simplify_subtraction): Same.
12421 (get_pool_constant): Same.
12422 (output_constant_pool_2): Same.
12423 (output_constant_pool_1): Same.
12424 (mark_constants_in_pattern): Same.
12425 (mark_constant_pool): Same.
12426 (get_section_anchor): Same.
12427 * vr-values.c (compare_range_with_value): Same.
12428 (vr_values::extract_range_from_phi_node): Same.
12429 * vr-values.h: Same.
12430 * web.c (unionfind_union): Same.
12431 * wide-int.h: Same.
12433 2019-07-09 Martin Sebor <msebor@redhat.com>
12436 * align.h: Change class-key from class to struct and vice versa
12437 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12438 * alloc-pool.h: Same.
12439 * asan.c (shadow_mem_size): Same.
12440 * auto-profile.c: Same.
12441 * basic-block.h: Same.
12443 * cfgexpand.c (set_rtl): Same.
12444 (expand_one_stack_var_at): Same.
12445 * cfghooks.h: Same.
12448 * config/i386/i386.h: Same.
12449 * df-problems.c (df_print_bb_index): Same.
12451 * df.h (df_single_use): Same.
12452 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12453 (layout::annotation_line_showed_range_p): Same.
12454 (get_printed_columns): Same.
12455 (correction::ensure_terminated): Same.
12456 (line_corrections::~line_corrections): Same.
12459 * dump-context.h: Same.
12460 * dumpfile.h: Same.
12461 * dwarf2out.c: Same.
12462 * edit-context.c: Same.
12463 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12465 * function.c (assign_stack_local): Same.
12466 * function.h: Same.
12468 * gcov.c (block_info::block_info): Same.
12469 * genattrtab.c: Same.
12470 * genextract.c: Same.
12471 * genmatch.c (comparison_code_p): Same.
12472 (id_base::id_base): Same.
12473 (decision_tree::print): Same.
12474 * genoutput.c: Same.
12475 * genpreds.c (write_one_predicate_function): Same.
12476 * genrecog.c (validate_pattern): Same.
12477 (find_operand_positions): Same.
12478 (optimize_subroutine_group): Same.
12479 (merge_pattern_transition::merge_pattern_transition): Same.
12480 (merge_pattern_info::merge_pattern_info): Same.
12481 (merge_state_result::merge_state_result): Same.
12482 (merge_into_state): Same.
12483 * gensupport.c: Same.
12484 * gensupport.h: Same.
12485 * ggc-common.c (init_ggc_heuristics): Same.
12486 * ggc-tests.c (test_union): Same.
12487 * gimple-loop-interchange.cc (dump_induction): Same.
12488 * gimple-loop-versioning.cc: Same.
12489 * gimple-match.h (gimple_match_cond::any_else): Same.
12490 * gimple-ssa-backprop.c: Same.
12491 * gimple-ssa-sprintf.c: Same.
12492 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12494 (store_immediate_info::store_immediate_info): Same.
12495 (merged_store_group::apply_stores): Same.
12496 (get_location_for_stmts): Same.
12497 * gimple-ssa-strength-reduction.c: Same.
12498 * gimple-ssa-warn-alloca.c: Same.
12499 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12500 * godump.c (go_type_decl): Same.
12501 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12502 * hash-map.h: Same.
12503 * hash-set-tests.c (test_set_of_strings): Same.
12504 * hsa-brig.c: Same.
12505 * hsa-common.h: Same.
12506 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12507 * input.c (assert_loceq): Same.
12510 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12511 * ipa-fnsummary.h: Same.
12512 * ipa-inline.h: Same.
12513 * ipa-prop.h: Same.
12514 * ipa-split.c (visit_bb): Same.
12515 * ira-int.h (minmax_set_iter_next): Same.
12516 * loop-invariant.c: Same.
12518 * lra-eliminations.c: Same.
12520 * lra-lives.c (mark_regno_dead): Same.
12521 * lra-remat.c: Same.
12522 * lra-spills.c: Same.
12523 * lto-streamer.h: Same.
12524 * mem-stats.h: Same.
12525 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12526 * omp-low.c (omp_clause_aligned_alignment): Same.
12527 * optabs-query.h (get_vcond_eq_icode): Same.
12529 * opts.c (wrap_help): Same.
12530 * poly-int.h: Same.
12531 * predict.c (predict_paths_leading_to_edge): Same.
12532 * pretty-print.h: Same.
12533 * profile-count.h: Same.
12535 * read-rtl-function.c: Same.
12538 * regrename.c: Same.
12539 * regrename.h: Same.
12541 * rtl-iter.h: Same.
12542 * rtl.h (costs_add_n_insns): Same.
12544 * sched-int.h: Same.
12545 * sel-sched-ir.h: Same.
12546 * selftest.h: Same.
12547 * sese.h (vec_find): Same.
12549 * target-globals.h: Same.
12550 * tree-affine.c (aff_combination_find_elt): Same.
12551 * tree-affine.h: Same.
12552 * tree-data-ref.h: Same.
12553 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12554 * tree-predcom.c: Same.
12555 * tree-scalar-evolution.c (find_var_scev_info): Same.
12556 * tree-ssa-alias.h: Same.
12557 * tree-ssa-ccp.c: Same.
12558 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12559 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12560 (rewrite_mem_refs): Same.
12561 (execute_sm_if_changed): Same.
12562 (hoist_memory_references): Same.
12563 * tree-ssa-loop-ivopts.c (operator<=): Same.
12564 * tree-ssa-loop.h: Same.
12565 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12566 * tree-ssa-structalias.c: Same.
12567 * tree-switch-conversion.h (cluster::cluster): Same.
12568 (simple_cluster::simple_cluster): Same.
12569 * tree-vect-patterns.c (type_conversion_p): Same.
12570 * tree-vectorizer.c (dump_stmt_cost): Same.
12571 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12572 * tree.c (protected_set_expr_location): Same.
12573 * tree.h (desired_pro_or_demotion_p): Same.
12574 (fndecl_built_in_p): Same.
12575 * unique-ptr-tests.cc: Same.
12576 * var-tracking.c (delete_variable_part): Same.
12577 * varasm.c (assemble_real): Same.
12578 (tree_output_constant_def): Same.
12580 * wide-int-bitmask.h: Same.
12581 * wide-int.h (decompose): Same.
12583 2019-07-09 Richard Biener <rguenther@suse.de>
12585 PR tree-optimization/91114
12586 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12587 find a vector type isn't fatal.
12589 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12591 * config/aarch64/aarch64-simd.md
12592 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12593 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12594 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12595 (*aarch64_crypto_aese_fused,
12596 *aarch64_crypto_aesd_fused): Update to new definition.
12597 * config/aarch64/aarch64.c
12598 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12600 2019-07-09 Richard Biener <rguenther@suse.de>
12602 * gimple-match.h (gimple_match_op::resimplify): New.
12603 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12604 gimple_resimplify4, gimple_resimplify5): Remove.
12605 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12606 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12608 (gimple_match_op::resimplify): New.
12609 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12610 according to availability. Use gimple_match_op::resimplify.
12612 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12614 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12616 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12618 * config/arm/crypto.md:
12619 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12620 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12621 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12622 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12624 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12625 * config/arm/aarch-common-protos.h
12626 (aarch_crypto_can_dual_issue): Remove.
12627 * config/arm/aarch-common.c
12628 (aarch_crypto_can_dual_issue): Likewise.
12629 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12630 * config/arm/cortex-a53.md: Likewise.
12631 * config/arm/cortex-a57.md: Likewise.
12632 * config/arm/iterators.md:
12633 (CRYPTO_BINARY): Redefine.
12634 (CRYPTO_UNARY): Removed.
12635 (CRYPTO_AES, CRYPTO_AESMC): New.
12637 2019-07-09 Richard Biener <rguenther@suse.de>
12639 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12640 (vn_reference_lookup_3): If the main ref has no access path recorded
12641 but orig_ref has use it to do access-path based disambiguation.
12642 (vn_reference_lookup_pieces): Adjust.
12643 (vn_reference_lookup): Pass down original ref if we valueized.
12645 2019-07-09 Martin Liska <mliska@suse.cz>
12647 * doc/extend.texi: Document influence on loop
12650 2019-07-09 Martin Liska <mliska@suse.cz>
12652 * lto-compress.c (lto_normalized_zstd_level): Do not use
12653 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12654 of libzstd. One can use 0 as a default compression level.
12656 2019-07-09 Martin Liska <mliska@suse.cz>
12658 * doc/invoke.texi: Add link from -fprofile-dir option.
12659 Use better wording for 'gcno filename'.
12661 2019-07-08 Martin Sebor <msebor@redhat.com>
12663 PR middle-end/71924
12664 PR middle-end/90549
12665 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12667 (args_loc_t): New type.
12668 (args_loc_t, locmap_t): same.
12669 (diag_returned_locals): New function.
12670 (is_addr_local): Same.
12671 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12672 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12673 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12675 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12677 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12678 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12679 and casts in offset when different, both through gimple stmts
12680 and through trees. Rewritten using loops to minimize code duplication
12683 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12685 * emit-rtl.c (set_insn_locations): New function moved from...
12686 * function.c (set_insn_locations): ...here.
12687 * ira-emit.c (emit_moves): Propagate location of the first instruction
12688 to the inserted move instructions.
12689 * reg-stack.c (compensate_edge): Set the location if the sequence is
12690 inserted on the edge.
12691 * rtl.h (set_insn_locations): Declare.
12693 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12695 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12696 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12699 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12701 PR rtl-optimization/88233
12702 * common.opt (fsplit-wide-types-early): New option.
12703 * common/config/rs6000/rs6000-common.c
12704 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12706 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12707 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12708 flag_split_wide_types_early.
12709 (pass_data_lower_subreg3): New.
12710 (pass_lower_subreg3): New.
12711 (make_pass_lower_subreg3): New.
12712 * passes.def (pass_lower_subreg2): Move after the loop passes.
12713 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12714 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12715 the pass pipeline; its previous place is taken by ...
12716 (make_pass_lower_subreg3): ... this.
12718 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12720 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12721 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12723 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12725 * config/s390/constraints.md: Add new jsc constraint.
12726 * config/s390/predicates.md: New predicates.
12727 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12728 * config/s390/s390.c (s390_valid_shift_count): New function.
12729 (print_shift_count_operand): Use s390_valid_shift_count.
12730 (print_operand): Likewise.
12731 * config/s390/s390.md: Use new predicate.
12732 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12733 * config/s390/vector.md: Use new predicate.
12735 2019-07-08 Andrew Waterman <andrew@sifive.com>
12736 Jim Wilson <jimw@sifive.com>
12738 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12739 bitsize instead of BITS_PER_WORD.
12741 2019-07-08 Martin Liska <mliska@suse.cz>
12743 * collect2.c (defined): Revert to before r254460.
12744 (scan_prog_file): Revert to before r254460.
12746 2019-07-08 Richard Biener <rguenther@suse.de>
12748 PR tree-optimization/83518
12749 * tree-ssa-sccvn.c: Include splay-tree.h.
12750 (struct pd_range, struct pd_data): New.
12751 (struct vn_walk_cb_data): Add data to track partial definitions.
12752 (vn_walk_cb_data::~vn_walk_cb_data): New.
12753 (vn_walk_cb_data::push_partial_def): New.
12754 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12755 (vn_reference_lookup_2): When partial defs are registered give up.
12756 (vn_reference_lookup_3): Track partial defs for memset and
12757 constructor zeroing and for defs from constants.
12759 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12761 * doc/install.texi (bootstrap-Og): Document.
12763 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12765 * config/riscv/pic.md (*local_pic_load_s<mode>)
12766 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12767 referenced by <mode>, giving...
12768 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12769 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12770 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12771 use <X:MODE> for the mode attribute.
12773 2019-07-07 Jeff Law <law@redhat.com>
12775 PR tree-optimization/91090
12776 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12777 in handling of ranges to simplify switch statements.
12779 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12781 * config/darwin.c (darwin_override_options): Make a final check on PIC
12784 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12786 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12787 on for kernel code.
12789 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12792 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12793 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12794 instead of matching them to "l" output operands.
12796 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12798 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12799 and check whether addr.reg is nonnull before using it.
12801 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12803 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12804 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12805 variable(s). For conditional lastprivate look through outer
12806 GIMPLE_OMP_SCAN context.
12807 (lower_omp_1): For conditional lastprivate look through outer
12808 GIMPLE_OMP_SCAN context.
12810 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12811 member to combined_into_simd_safelen1.
12812 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12813 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12814 clauses if ctx->combined_into_simd_safelen1 put statements after the
12815 predicate conditionalized block rather than into it.
12817 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12819 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12821 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12822 Make the choice of <mode> explicit, giving...
12823 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12825 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12827 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12828 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12830 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12831 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12832 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12833 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12834 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12835 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12836 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12837 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12838 (*avx512f_scatterdi<mode>): Likewise.
12839 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12841 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12843 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12844 specify the mode iterator referenced by <mode>, giving...
12845 (*push1_h8300hs_<QHI:mode>): ...this.
12847 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12849 * config/gcn/gcn-valu.md
12850 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12851 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12852 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12853 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12854 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12855 but using the _exec comparison patterns.
12856 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12857 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12858 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12859 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12860 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12861 but using the _exec comparison patterns.
12863 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12865 * config/arm/sync.md
12866 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12867 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12868 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12869 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12870 <SIDI:cas_cmp_str>.
12872 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12874 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12875 (maybe_lookup_ctx): Add forward declaration.
12876 (omp_find_scan): Likewise. Walk into body of simd if composited
12877 with worksharing loop.
12878 (scan_omp_simd_scan): New function.
12879 (scan_omp_1_stmt): Call it.
12880 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12881 ctx->for_simd_scan_phase.
12882 (lower_rec_input_clauses): Do much less work for inscan reductions
12883 in ctx->for_simd_scan_phase is_simd regions.
12884 (lower_omp_scan): Set is_simd also on simd constructs composited
12885 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
12886 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
12887 emit their body after in simd constructs composited with worksharing
12889 (lower_omp_for_scan): Handle worksharing loop composited with simd.
12891 * omp-low.c (omp_find_scan): Make static.
12892 (lower_omp_for_scan): Fix order of merge arguments in input phase of
12893 the second loop, var2 represents the first partial sum and so needs
12894 to go before rprivb[ivar].
12896 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
12898 * config/rs6000/rs6000-logue.c: Remove unused code.
12900 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12902 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12904 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
12907 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12908 check with a frame laid out check.
12910 2019-07-05 Richard Biener <rguenther@suse.de>
12912 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12913 when comparing against a store with possibly the same value.
12915 2019-07-05 Richard Biener <rguenther@suse.de>
12917 PR tree-optimization/91091
12918 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12919 (walk_non_aliased_vuses): Likewise.
12920 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12921 (get_continuation_for_phi): New tbaa_p parameter and pass
12923 (walk_non_aliased_vuses): Likewise.
12924 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12925 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12926 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12928 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12929 (adjust_offsets_for_equal_base_address): New function.
12930 (vn_reference_lookup_3): Use it to catch more base equivalences.
12931 Handle and pass down tbaa_p flag.
12932 (vn_reference_lookup_pieces): Adjust.
12933 (vn_reference_lookup): Remove alias-set altering, instead pass
12934 down false as tbaa_p.
12936 2019-07-05 Richard Biener <rguenther@suse.de>
12938 PR tree-optimization/91091
12939 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12940 accesses can happen with -fno-strict-aliasing.
12942 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
12944 * tree-ssa-alias.c (alias_stats): Add
12945 nonoverlapping_component_refs_since_match_p_must_overlap.
12946 (dump_alias_stats): Print it.
12947 (nonoverlapping_component_refs_since_match_p): Add early exit.
12948 (nonoverlapping_component_refs_p): Do not account early exit.
12950 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12952 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
12953 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
12954 (emit_eh_dispatch): Delete.
12955 (lower_catch): Emit the eh_dispatch manually and set the location of
12956 the first catch statement onto it.
12957 (lower_eh_filter): Emit the eh_dispatch manually and set location.
12958 (lower_eh_dispatch): Propagate location.
12959 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
12960 (eliminate_build): Likewise.
12962 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12964 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
12965 phi nodes if possible.
12966 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
12967 location info on the newly created statement.
12968 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
12969 newly created increment if needed.
12971 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12973 PR middle-end/78884
12974 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
12975 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
12976 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
12977 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
12978 ctx->add_safelen1 is set.
12980 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
12981 GOMP_loop_start at the start of second worksharing loop in a scan.
12982 For nowait, don't emit GOMP_loop_end_nowait at the end of first
12983 worksharing loop in a scan even if there are conditional lastprivates,
12984 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
12986 2019-07-04 Jan Hubicka <jh@suse.cz>
12988 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
12989 Fix check for match in the ref walk.
12991 2019-07-04 Martin Liska <mliska@suse.cz>
12993 * tree-ssa-loop-niter.c
12994 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
12995 (estimate_numbers_of_iterations):
12996 Support __builtin_expect_with_probability for analysis
12997 of # of loop iterations.
12999 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13001 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13002 * except.c: Likewise.
13003 * expr.c (expand_expr_real_1): Reject it.
13004 * gimplify.c (gimplify_expr): Gimplify it, within
13006 * tree-dump.c (dequeue_and_dump): Dump it.
13007 * tree-pretty-print.c (dump_generic_node): Likewise.
13008 * tree.c (block_may_fallthru): Handle it.
13009 * tree.def (EH_ELSE_EXPR): Introduce it.
13010 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13011 with GIMPLE_EH_ELSE as try/finally/else.
13013 2019-07-04 Richard Biener <rguenther@suse.de>
13016 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13017 parameter whether to disable GC collection.
13018 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13020 (execute_all_ipa_transforms): Likewise and pass it down.
13021 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13022 collection from applying IPA transforms.
13023 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13024 from applying IPA transforms.
13026 2019-07-04 Richard Biener <rguenther@suse.de>
13028 PR tree-optimization/90911
13029 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13030 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13031 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13032 scalar_loop_scaling.
13033 (vect_transform_loop): Scale scalar loop profile if needed.
13034 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13035 the loop copy from if-conversion adjust edge probabilities
13036 and scale the vectorized loop body profile, queue the scalar
13037 profile for updating after peeling.
13039 2019-07-04 Jan Hubicka <jh@suse.cz>
13041 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13042 parameters; return early for must-alias.
13043 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13044 outer types match, try nonoverlapping_component_refs
13045 if must-alias is not obvious.
13046 (indirect_refs_may_alias_p): Likewise.
13047 (refs_may_alias_p_2): Likewise.
13049 2019-07-04 Richard Biener <rguenther@suse.de>
13051 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13053 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13055 (struct vn_walk_cb_data): New callback data struct.
13056 (vn_reference_lookup_2): Adjust.
13057 (vn_reference_lookup_3): Likewise.
13058 (vn_reference_lookup_pieces): Likewise.
13059 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13060 (visit_reference_op_load): Adjust.
13062 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13064 PR tree-optimization/91063
13065 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13066 stmt from stmts sequence before calling vect_init_vector_1.
13069 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13072 * fwprop.c (reg_single_def_p): New function.
13073 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13074 (forward_propagate_into): New parameter reg_prop_only
13075 with default value false.
13076 Propagate def's src into loop only if SET_SRC and SET_DEST
13077 of def_set have single definitions.
13078 Likewise if reg_prop_only is set to true.
13079 (fwprop): New param fwprop_addr_p.
13080 Integrate fwprop_addr into fwprop.
13081 (fwprop_addr): Remove.
13082 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13084 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13085 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13086 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13088 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13090 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13091 in worksharing loop scans.
13093 PR tree-optimization/91074
13094 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13097 PR rtl-optimization/90756
13098 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13101 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13103 * config/aarch64/aarch64.md: Remove redundant constraints from
13104 define_expand but keep some patterns untouched if they are
13105 specially selected by TARGET_SECONDARY_RELOAD hook.
13106 * config/aarch64/aarch64-sve.md: Likewise.
13107 * config/aarch64/atomics.md: Remove redundant constraints from
13109 * config/aarch64/aarch64-simd.md: Likewise.
13111 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13113 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13114 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13115 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13117 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13120 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13122 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13123 (STARTFILE_SPEC): Split crt3 into a separate spec.
13124 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13125 (DARWIN_CRT2_SPEC): New.
13126 (DARWIN_CRT3_SPEC): New.
13127 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13128 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13129 (DARWIN_CRT3_SPEC): New.
13131 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13133 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13134 Change the RTL attribute "length" from "4" to "*" to allow the
13135 length attribute to be adjusted automatically for prefixed load,
13136 store, and add immediate instructions.
13137 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13139 (extendsi<mode>2, EXTSI iterator): Likewise.
13140 (movsi_internal1): Likewise.
13141 (movsi_from_sf): Likewise.
13142 (movdi_from_sf_zero_ext): Likewise.
13143 (mov<mode>_internal): Likewise.
13144 (movcc_internal1, QHI iterator): Likewise.
13145 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13146 (movsf_from_si): Likewise.
13147 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13148 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13149 (mov<mode>, FMOVE128 iterator): Likewise.
13150 (movdi_internal64): Likewise.
13151 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13153 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13154 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13155 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13156 (vsx_splat_v4sf): Likewise.
13158 2019-07-03 Mark Wielaard <mark@klomp.org>
13161 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13162 DW_AT_addr_base if there is actually a .debug_addr section with
13164 (output_addr_table): Add DWARF5 table header generation here after
13165 checking there are actually any addresses from...
13166 (dwarf2out_finish): ...here.
13168 2019-07-03 Richard Biener <rguenther@suse.de>
13170 PR middle-end/91069
13171 * match.pd (vec_perm -> bit_insert): Fix element read from
13174 2019-07-03 Martin Liska <mliska@suse.cz>
13176 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13177 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13179 * generic-match-head.c: Include dbgcnt.h.
13180 * gimple-match-head.c: Likewise.
13182 2019-07-03 Martin Liska <mliska@suse.cz>
13184 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13185 (GCOV_COUNTER_V_TOPN): New.
13186 (GCOV_COUNTER_V_INDIR): Use _topn.
13187 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13188 (GCOV_TOPN_VALUES): New.
13189 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13190 (GCOV_TOPN_VALUES_COUNTERS): New.
13191 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13193 (gimple_init_gcov_profiler): Rename variables from one_value
13195 (gimple_gen_one_value_profiler): Remove.
13196 (gimple_gen_topn_values_profiler): New function.
13197 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13198 names instead of SINGLE_VALUE.
13199 (stream_out_histogram_value): Likewise.
13200 (stream_in_histogram_value): Likewise.
13201 (get_most_common_single_value): Likewise.
13202 (gimple_divmod_fixed_value_transform): Likewise.
13203 (gimple_stringops_transform): Likewise.
13204 (gimple_divmod_values_to_profile): Likewise.
13205 (gimple_stringops_values_to_profile): Likewise.
13206 (gimple_find_values_to_profile): Likewise.
13207 * value-prof.h (enum hist_type): Rename to TOPN.
13208 (gimple_gen_one_value_profiler): Remove.
13209 (gimple_gen_topn_values_profiler): New.
13211 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13213 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13214 if it has the DW_AT_data_member_location attribute.
13216 2019-07-03 Richard Biener <rguenther@suse.de>
13218 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13221 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13223 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13224 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13225 (tlsdesc_small_sve_<mode>): Likewise.
13227 2019-07-03 Martin Liska <mliska@suse.cz>
13229 * Makefile.in: Define ZSTD_LIB.
13230 * common.opt: Adjust compression level
13231 to support also zstd levels.
13232 * config.in: Regenerate.
13233 * configure: Likewise.
13234 * configure.ac: Add --with-zstd and --with-zstd-include options
13236 * doc/install.texi: Mention zstd dependency.
13237 * gcc.c: Print supported LTO compression algorithms.
13238 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13239 (lto_compression_zstd): Likewise.
13240 (lto_uncompression_zstd): Likewise.
13241 (lto_end_compression): Dispatch in between zlib and zstd.
13242 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13243 (lto_uncompression_zlib): Make it static.
13244 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13245 * lto-section-in.c (lto_get_section_data): Pass info
13246 about used compression.
13247 * lto-streamer-out.c: By default use zstd when possible.
13248 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13249 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13251 2019-07-03 Martin Liska <mliska@suse.cz>
13253 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13254 * lto-section-out.c (lto_destroy_simple_output_block): Never
13255 compress LTO_section_lto section.
13256 * lto-streamer-out.c (produce_asm): Do not set major_version
13258 (lto_output_toplevel_asms): Likewise.
13259 (produce_lto_section): New function.
13260 (lto_output): Call produce_lto_section.
13261 (lto_write_mode_table): Do not set major_version and
13263 (produce_asm_for_decls): Likewise.
13264 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13266 (struct lto_header): Remove.
13267 (struct lto_section): New struct.
13268 (struct lto_simple_header): Do not inherit from lto_header.
13269 (struct lto_file_decl_data): Add lto_section_header field.
13271 2019-07-03 Martin Liska <mliska@suse.cz>
13273 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13275 * reg-stack.c (check_asm_stack_operands): Likewise.
13276 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13277 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13278 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13279 force_expand_binop.
13281 2019-07-03 Martin Liska <mliska@suse.cz>
13283 PR tree-optimization/90892
13284 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13285 in string constants.
13287 2019-07-03 Martin Liska <mliska@suse.cz>
13289 PR middle-end/90899
13290 * multiple_target.c (create_dispatcher_calls): Add to comdat
13291 group only if set for ifunc.
13293 2019-07-03 Martin Liska <mliska@suse.cz>
13296 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13297 Define local_object_name in outer scope in order to handle
13298 use-after-scope issue.
13300 2019-07-03 Martin Liska <mliska@suse.cz>
13302 * common.opt: Add fprofile-note.
13303 * coverage.c (coverage_init): Append the option
13305 * doc/invoke.texi: Document -fprofile-note.
13307 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13309 PR tree-optimization/91033
13310 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13311 vect_analyze_data_refs): Add bool * arguments.
13312 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13313 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13314 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13315 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13316 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13317 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13318 vect_analyze_data_refs caller.
13320 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13322 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13323 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13324 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13325 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13326 OMP_CLAUSE__SCANTEMP_ entry.
13327 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13328 * tree-pretty-print.c (dump_omp_clause): Likewise.
13329 * tree-nested.c (convert_nonlocal_omp_clauses,
13330 convert_local_omp_clauses): Likewise.
13331 * omp-general.h (struct omp_for_data): Add have_scantemp and
13332 have_nonctrl_scantemp members.
13333 * omp-general.c (omp_extract_for_data): Initialize them.
13334 * omp-low.c (struct omp_context): Add scan_exclusive member.
13335 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13336 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13337 ctx->scan_exclusive.
13338 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13339 of !ctx->scan_inclusive.
13340 (lower_rec_input_clauses): Simplify gimplification of dtors using
13341 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13342 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13343 loops. Don't add barrier for reduction_omp_orig_ref if
13344 ctx->scan_??xclusive.
13345 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13346 (lower_omp_scan): Use ctx->scan_exclusive instead
13347 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13348 reductions. Use new_vard != new_var instead of repeated
13349 omp_is_reference calls.
13350 (omp_find_scan, lower_omp_for_scan): New functions.
13351 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13353 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13354 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13355 and fd->have_scantemp.
13357 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13358 on worksharing loop propagate it as shared clause to containing
13361 * omp-expand.c (expand_omp_for_static_nochunk,
13362 expand_omp_for_static_chunk): For nowait worksharing loop with
13363 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13366 2019-07-02 qing zhao <qing.zhao@oracle.com>
13368 PR preprocessor/90581
13369 * doc/cppopts.texi: Add document for -fmax-include-depth.
13370 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13372 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13374 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13375 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13376 (mmx_packssdw): Ditto.
13377 (mmx_punpckhbw): Ditto.
13378 (mmx_punpcklbw): Ditto.
13379 (mmx_punpckhwd): Ditto.
13380 (mmx_punpcklwd): Ditto.
13381 (mmx_punpckhdq): Ditto.
13382 (mmx_punpckldq): Ditto.
13383 (*vec_dupv4hi): Ditto.
13384 (*vec_dupv2si): Ditto.
13385 (mmx_pmovmskb): Ditto.
13386 * config/i386/sse.md (sse_cvtpi2ps): Use
13387 TARGET_SSE2 && SSE_REG_P in split condition.
13388 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13389 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13390 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13391 (ssse3_pshufbv8qi3): Ditto.
13392 (ssse3_palignrdi): Ditto.
13394 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13396 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13397 with inlined save and restore.
13399 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13401 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13402 to be inserted on single successor edge of the entry block. Then call
13403 commit_edge_insertions instead of inserting the instructions manually.
13404 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13405 RTL expansion and rebuild jump labels chain.
13407 2019-07-02 Richard Biener <rguenther@suse.de>
13409 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13411 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13413 * tree.c (build_common_tree_nodes): Initialize them.
13414 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13415 Make declarations comments.
13416 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13417 chrec_known): Remove definitions.
13418 (initialize_scalar_evolutions_analyzer): Remove.
13419 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13420 * tree-streamer.c (preload_common_nodes): Do not preload
13421 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13423 2019-07-02 Jan Hubicka <jh@suse.cz>
13425 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13428 2019-07-02 Jan Hubicka <jh@suse.cz>
13430 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13432 (nonoverlapping_component_refs_since_match_p): ... this one;
13433 handle also non-decl bases; return -1 if search gave up.
13434 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13435 nonoverlapping_component_refs_of_decl_p_no_alias to
13436 nonoverlapping_component_refs_since_match_p_may_alias,
13437 nonoverlapping_component_refs_since_match_p_no_alias.
13438 (dump_alias_stats): Update dumping.
13439 (aliasing_matching_component_refs_p): Break out from ...;
13440 dispatch to nonoverlapping_component_refs_for_decl_p
13441 and nonoverlapping_component_refs_since_match_p.
13442 (aliasing_component_refs_p): ... here; call
13443 nonoverlapping_component_refs_p in scenarios where we can not
13444 precisely determine base match.
13445 (decl_refs_may_alias_p): Use
13446 nonoverlapping_component_refs_since_match_p.
13447 (indirect_ref_may_alias_decl_p): Do not call
13448 nonoverlapping_component_refs_p.
13449 (indirect_refs_may_alias_p): Likewise.
13451 2019-07-02 Jan Hubicka <jh@suse.cz>
13453 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13454 to clobber of return value.
13456 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13458 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13459 for is_neon_type instructions that have not already been categorized.
13461 2019-07-02 Richard Biener <rguenther@suse.de>
13463 PR tree-optimization/58483
13464 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13465 for MEM_REF base hashing.
13466 (equal_mem_array_ref_p): Likewise for base comparison.
13468 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13470 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13471 parameterized name.
13472 (signbit<mode>2): Use that name. Simplify.
13474 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13476 PR middle-end/66726
13477 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13478 Tune heuristic from PR71016 to allow MIN / MAX.
13480 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13482 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13483 parameterized name.
13484 (abs<mode>2): Use that name. Simplify.
13486 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13488 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13489 parameterized name.
13490 (neg<mode>2): Use that name. Simplify.
13492 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13494 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13496 (abs<mode>2): Use that name. Simplify.
13498 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13500 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13502 (neg<mode>2): Use that name. Simplify.
13504 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13506 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13507 ("enabled" attribute): Handle sse_noavx isa attribute.
13508 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13509 Use TARGET_SSE && SSE_REGNO_P in split condition.
13510 (*vec_dupv2sf): Ditto.
13512 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13514 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13516 (floatsi<mode>2): Use that name. Simplify.
13518 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13520 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13521 parameterized name.
13522 (extenddf<mode>2_vsx): Make this a parameterized name.
13523 (extenddf<mode>2): Use those names. Simplify.
13525 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13527 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13529 (eh_return): Use that name. Simplify.
13531 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13533 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13534 (doloop_end): Use that name. Simplify.
13536 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13538 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13539 parameterized name.
13540 (indirect_jump): Use that name. Simplify.
13542 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13544 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13545 parameterized name.
13546 (abs<mode>2): Use that name. Simplify.
13548 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13550 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13551 parameterized name.
13552 (fix_trunc<mode>si2): Use that name. Simplify.
13554 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13556 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13557 (allocate_stack): Use that name. Simplify.
13559 2019-07-01 Martin Sebor <msebor@redhat.com>
13561 PR middle-end/90923
13562 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13563 (hash_map::get_or_insert): Same. Reformat comment.
13564 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13565 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13566 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13567 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13568 (hash_table::hash_table (const hash_table&)): Use copy ctor
13569 instead of assignment to copy elements.
13571 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13572 John David Anglin <danglin@gcc.gnu.org>
13575 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13576 using saved frame pointer.
13578 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13580 PR middle-end/64242
13581 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13582 Add frame clobber and schedule blockage.
13584 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13586 * doc/invoke.texi (Link Options): Further editorial changes to
13587 -flinker-output docs.
13589 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13591 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13592 Load both operands of a PLUS into registers separately.
13594 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13596 * config/s390/vector.md: Fix shift count operand printing.
13598 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13600 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13602 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13604 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13605 Use recog_data to test for an output operand.
13607 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13609 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13610 exclude any others that are disparaged or that are bound to need
13612 (ira_get_dup_out_num): Expand comment.
13614 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13616 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13617 constraint string for each operand/alternative combo. Only handle
13618 '%' at the start of constraint strings, and look for it outside
13621 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13623 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13624 alternative_mask instead of HARD_REG_SET to represent a
13625 bitmask of alternatives.
13626 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13627 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13629 2019-07-01 Martin Liska <mliska@suse.cz>
13631 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13632 use () for a constructor call.
13633 (test_applying_fixits_line_out_of_range): Likewise.
13634 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13636 (free_page): Likewise.
13638 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13640 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13641 parameter names to match usage (no functional change).
13642 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13644 2019-07-01 Richard Biener <rguenther@suse.de>
13646 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13648 (pass_fre::execute): Honor it.
13649 * passes.def: Adjust pass_fre invocations to allow iterating,
13650 add non-iterating pass_fre before late threading/dom.
13652 2019-07-01 Richard Biener <rguenther@suse.de>
13654 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13655 TARGET_MEM_REF handling to also handle address-taken ones.
13657 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13659 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13660 hardware attributes): Document avx512vp2intersect.
13662 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13664 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13665 (abs<mode>2): New expander.
13666 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13667 Use CODE_FOR_ssse3_absv8qi2.
13668 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13669 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13671 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13673 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13674 to sse, sse_noavx and avx. Update all uses.
13676 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13678 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13679 (*mmx_<plusminus_insn><mode>3): Ditto.
13680 (*mmx_mulv4hi3"): Ditto.
13681 (*mmx_smulv4hi3_highpart): Ditto.
13682 (*mmx_umulv4hi3_highpart): Ditto.
13683 (*mmx_pmaddwd): Ditto.
13684 (*sse2_umulv1siv1di3): Ditto.
13685 (*mmx_<code>v4hi3): Ditto.
13686 (*mmx_<code>v8qi3): Ditto.
13687 (mmx_ashr<mode>3): Ditto.
13688 ("mmx_<shift_insn><mode>3): Ditto.
13689 (*mmx_eq<mode>3): Ditto.
13690 (mmx_gt<mode>3): Ditto.
13691 (mmx_andnot<mode>3): Ditto.
13692 (*mmx_<code><mode>3): Ditto.
13693 (*mmx_pinsrw): Ditto.
13694 (*mmx_pextrw): Ditto.
13695 (mmx_pshufw_1): Ditto.
13696 (*mmx_uavgv8qi3): Ditto.
13697 (*mmx_uavgv4hi3): Ditto.
13698 ("mmx_psadbw): Ditto.
13699 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13700 (sse_cvttps2pi): Ditto.
13701 (ssse3_pmaddubsw): Ditto.
13702 (*ssse3_pmulhrswv4hi3): Ditto.
13703 (ssse3_psign<mode>3): Ditto.
13705 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13707 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13708 adjustment for bit-fields to all aggregate types.
13710 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13712 * config/rs6000/predicates.md (pcrel_address): Use
13713 SYMBOL_REF_LOCAL_P to determine if a label is local.
13714 (pcrel_external_address): New predicate.
13715 (non_prefixed_mem_operand): Delete, predicate not used.
13716 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13717 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13719 (SYMBOL_REF_PCREL_P): Likewise.
13722 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13724 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13725 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13726 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13728 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13730 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13731 override on extra_headers.
13733 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13735 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13736 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13738 (darwin_driver_init): Likewise.
13740 2019-06-28 Jan Beulich <jbeulich@suse.com>
13742 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13743 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13744 Eliminate redundant alternative.
13746 2019-06-28 Jan Beulich <jbeulich@suse.com>
13748 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13749 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13750 Use vector_operand.
13752 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13754 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13755 having a lower cost regardless of the speed option.
13757 2019-06-28 Jan Beulich <jbeulich@suse.com>
13759 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13760 vector_operand plus, on both alternatives, "Bm" constraint.
13762 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13764 * config/arm/arm.md: Remove redundant constraints from
13765 define_expand but leave reload_inm and reload_outm patterns
13766 untouched since they need special constraints to work.
13767 * config/arm/arm-fixed.md: Remove redundant constraints from
13769 * config/arm/iwmmxt.md: Likewise.
13770 * config/arm/neon.md: Likewise.
13771 * config/arm/sync.md: Likewise.
13772 * config/arm/thumb1.md: Likewise.
13773 * config/arm/vec-common.md: Likewise.
13775 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13777 * doc/install.texi: Document --disable-tm-clone-registry.
13779 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13782 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13785 PR tree-optimization/91010
13786 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13787 return true. Otherwise, don't call operand_equal_p if offset1 or
13788 offset2 is NULL and just return false.
13790 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13792 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13793 user-specified float mode choice for kernel mode code.
13795 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13797 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13800 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13802 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13803 use longcall for 64b code.
13805 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13807 * builtins.c (get_memory_rtx): Fix comment.
13808 * optabs.def (movmem_optab): Change to cpymem_optab.
13809 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13810 (emit_block_move_hints): Change movmem to cpymem.
13811 * defaults.h: Change movmem to cpymem.
13812 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13813 (default_use_by_pieces_infrastructure_p): Ditto.
13814 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13815 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13817 * config/aarch64/aarch64.h: Change movmem to cpymem.
13818 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13819 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13820 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13822 * config/arc/arc-protos.h: Change movmem to cpymem.
13823 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13824 * config/arc/arc.h: Change movmem to cpymem in comment.
13825 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13826 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13827 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13828 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13829 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13830 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13831 * config/avr/avr-protos.h: Change movmem to cpymem.
13832 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13833 avr_out_movmem): Change movmem to cpymem.
13834 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13835 Change movmem to cpymem.
13836 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13837 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13838 Change movmem to cpymem.
13839 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13840 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13841 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13842 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13843 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13844 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13845 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13846 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13847 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13848 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13849 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13850 expand_small_cpymem_or_setmem,
13851 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13852 expand_set_or_cpymem_constant_prologue,
13853 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13854 * config/i386/i386-protos.h: Change movmem to cpymem.
13855 * config/i386/i386.h: Change movmem to cpymem in comment.
13856 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13857 (setmem<mode>): Change expansion function name.
13858 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13859 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13860 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13861 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13862 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13863 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13864 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13866 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13867 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13868 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13869 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13870 Change movmem to cpymem.
13871 * config/mips/mips.h: Change movmem to cpymem.
13872 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13873 * config/nds32/nds32-memory-manipulation.c
13874 (nds32_expand_movmemsi_loop_unknown_size,
13875 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13876 nds32_expand_movmemsi_unroll,
13877 nds32_expand_movmemsi): Change movmem to cpymem.
13878 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13879 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13880 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13881 (pa_adjust_insn_length): Change call to compute_movmem_length.
13882 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13883 movmemdi, movmemdi_prereload,
13884 movmemdi_postreload): Change movmem to cpymem.
13885 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13886 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13887 * config/riscv/riscv.c: Change movmem to cpymem in comment.
13888 * config/riscv/riscv.h: Change movmem to cpymem.
13889 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13890 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13891 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13893 * config/s390/s390-protos.h: Change movmem to cpymem.
13894 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13895 s390_expand_insv): Change movmem to cpymem.
13896 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13897 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13898 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13899 * config/sparc/sparc.h: Change movmem to cpymem in comment.
13900 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13901 for nonexistent function.
13902 * config/vax/vax.h: Change movmem to cpymem in comment.
13903 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13904 * config/visium/visium.h: Change movmem to cpymem in comment.
13905 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13906 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13907 * doc/md.texi: Change movmem to cpymem and update description to match.
13908 * doc/rtl.texi: Change movmem to cpymem.
13909 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13910 * doc/tm.texi: Regenerate.
13912 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
13914 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13915 -fvariable-expansion-in-unroller by default.
13916 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13919 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
13922 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13923 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13925 * config.gcc(rs6000-*-*): Define target_gtfiles.
13927 2019-06-27 Jan Hubicka <jh@suse.cz>
13929 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13930 (add_type_duplicate): When odr hash is not allocated, to nothing.
13931 (odr_based_tbaa_p): New function.
13932 (set_type_canonical_for_odr_type): New function.
13933 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13934 set_type_canonical_for_odr_type): New.
13935 * tree.c (gimple_canonical_types_compatible_p): ODR types with
13936 ODR based TBAA are not equivalent to non-ODR types.
13938 2019-06-27 Martin Liska <mliska@suse.cz>
13940 PR tree-optimization/90974
13941 PR rtl-optimization/90975
13942 PR rtl-optimization/90976
13944 PR tree-optimization/91017
13945 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13947 * lra.c (lra_set_insn_recog_data): Remove a leftover from
13948 initial commit of IRA.
13949 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13951 * tree-vect-loop.c (vect_create_epilog_for_reduction):
13952 Remove unused mode1.
13953 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
13956 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13959 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
13960 instead of register_operand for operands[1], add m to its constraints
13961 if operands[2] uses "C" constraint. Ensure in condition that if
13962 operands[2] is not 0, then operands[1] is not a MEM. For last two
13963 alternatives, use unaligned loads instead of aligned if operands[1] is
13964 misaligned_operand.
13966 2019-06-27 Martin Liska <mliska@suse.cz>
13968 * asan.c (asan_emit_allocas_unpoison): Remove obviously
13970 * bt-load.c (move_btr_def): Likewise.
13971 * builtins.c (expand_builtin_apply_args_1): Likewise.
13972 (expand_builtin_apply): Likewise.
13973 * cfgexpand.c (expand_asm_stmt): Likewise.
13974 (construct_init_block): Likewise.
13975 * cfghooks.c (verify_flow_info): Likewise.
13976 * cfgloopmanip.c (remove_path): Likewise.
13977 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
13978 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
13979 * combine.c (simplify_if_then_else): Likewise.
13980 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13981 (choose_basereg): Likewise.
13982 (ix86_expand_prologue): Likewise.
13983 (ix86_preferred_output_reload_class): Likewise.
13984 * cselib.c (cselib_record_sets): Likewise.
13985 * df-scan.c (df_scan_alloc): Likewise.
13986 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
13987 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
13988 * emit-rtl.c (try_split): Likewise.
13989 * graphite-scop-detection.c (assign_parameter_index_in_region):
13991 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
13992 * ira-color.c (setup_profitable_hard_regs): Likewise.
13993 * ira.c (rtx_moveable_p): Likewise.
13994 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
13995 * read-rtl.c (read_subst_mapping): Likewise.
13996 * regrename.c (scan_rtx): Likewise.
13997 * reorg.c (fill_slots_from_thread): Likewise.
13998 * tree-inline.c (tree_function_versioning): Likewise.
13999 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14000 * tree-ssa-sink.c (statement_sink_location): Likewise.
14001 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14002 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14003 (vect_create_epilog_for_reduction): Likewise.
14004 * tree.c (build_nonstandard_integer_type): Likewise.
14006 2019-06-27 Richard Biener <rguenther@suse.de>
14008 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14010 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14012 PR tree-optimization/89772
14013 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14014 out-of-bound accesses checking.
14016 2019-06-27 Martin Liska <mliska@suse.cz>
14018 PR tree-optimization/91014
14019 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14020 when LHS is NULL_TREE.
14022 2019-06-27 Martin Liska <mliska@suse.cz>
14024 * symbol-summary.h (traverse): Pass
14025 argument a to the call of callback.
14026 (gt_ggc_mx): Mark arguments as unused.
14027 (gt_pch_nx): Likewise.
14029 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14032 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14035 2019-06-26 Jeff Law <law@redhat.com>
14037 PR tree-optimization/90883
14038 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14039 (delete_dead_or_redundant_assignment): Likewise.
14041 PR tree-optimization/90883
14042 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14043 * tree-ssa-dse.c: Update various comments to distinguish between
14044 dead and redundant stores.
14045 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14046 (dse_optimize_redundant_stores): New function.
14047 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14048 Distinguish between dead and redundant calls in dump output. All
14050 (delete_dead_or_redundant_assignment): Similarly for assignments.
14051 (dse_optimize_stmt): Handle _CHK variants. For statements which
14052 store 0 into multiple memory locations, try to prove a subsequent
14053 store is redundant.
14055 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14058 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14059 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14061 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14063 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14064 (branch_islands): New extern.
14065 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14066 * config/rs6000/rs6000.c: .. here.
14068 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14070 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14071 (powerpc*-*-*) ... to here.
14073 2019-06-26 Jeff Law <law@redhat.com>
14075 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14076 memcpy, memmove and memset builtins.
14077 (maybe_trim_memstar_call): Likewise.
14079 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14081 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14083 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14085 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14087 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14089 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14091 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14093 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14096 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14098 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14100 2019-06-26 Richard Biener <rguenther@suse.de>
14103 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14105 2019-06-26 Richard Biener <rguenther@suse.de>
14107 * lto-streamer.h (lto_bitmap_alloc): Remove.
14108 (lto_bitmap_free): Likewise.
14109 * lto-streamer.c (lto_bitmap_alloc): Remove.
14110 (lto_bitmap_free): Likewise.
14111 (lto_obstack): Likewise.
14112 (lto_obstack_initialized): Likewise.
14113 * lto-streamer-out.c (lto_output): Use own obstack for local
14114 bitmap, free it consistently.
14116 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14119 * config/i386/sse.md
14120 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14121 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14122 insns if operands[2] is misaligned_operand.
14124 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14126 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14128 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14131 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14133 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14135 2019-06-26 Martin Liska <mliska@suse.cz>
14137 PR tree-optimization/90973
14138 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14139 epilogue_cost_vec instead of prologue_cost_vec for
14142 2019-06-26 Martin Liska <mliska@suse.cz>
14144 * bb-reorder.c (connect_better_edge_p): Add missing else
14145 statement in the middle of if-else statements.
14147 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14148 H.J. Lu <hongjiu.lu@intel.com>
14149 Olga Makhotina <olga.makhotina@intel.com>
14151 * common/config/i386/i386-common.c
14152 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14153 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14154 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14155 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14156 (ix86_handle_option): Handle -mavx512vp2intersect.
14157 * config/i386/avx512vp2intersectintrin.h: New.
14158 * config/i386/avx512vp2intersectvlintrin.h: New.
14159 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14160 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14161 AVX512VP2INTERSECT.
14162 * config/i386/i386-builtin-types.def: Add new types.
14163 * config/i386/i386-builtin.def: Add new builtins.
14164 * config/i386/i386-builtins.c: (enum processor_features): Add
14165 F_AVX512VP2INTERSECT.
14166 (static const _isa_names_table isa_names_table): Ditto.
14167 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14168 __AVX512VP2INTERSECT__.
14169 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14170 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14171 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14172 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14173 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14174 * config/i386/i386-options.c (ix86_target_string): Add
14175 -mavx512vp2intersect.
14176 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14177 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14178 P2HImode and P2QImode.
14179 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14180 number for P2QImode and P2HImode.
14181 (ix86_regmode_natural_size): New function.
14182 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14183 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14184 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14185 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14186 * config/i386/i386.opt: Add -mavx512vp2intersect.
14187 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14188 avx512vp2intersectvlintrin.h.
14189 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14190 (define_mode_iterator VI48_AVX512VP2VL): New.
14191 (avx512vp2intersect_2intersect<mode>,
14192 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14193 * config.gcc: Add avx512vp2intersectvlintrin.h and
14194 avx512vp2intersectintrin.h to extra_headers.
14195 * doc/invoke.texi: Document -mavx512vp2intersect.
14197 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14199 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14201 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14203 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14204 savres_routine_syms, savres_routine_name, morestack_ref,
14205 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14206 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14207 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14208 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14209 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14210 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14211 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14212 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14213 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14214 get_stack_clash_protection_probe_interval,
14215 get_stack_clash_protection_guard_size,
14216 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14217 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14218 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14219 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14220 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14221 gen_frame_mem_offset, rs6000_savres_routine_name,
14222 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14223 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14224 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14225 rs6000_global_entry_point_prologue_needed_p,
14226 rs6000_get_separate_components, rs6000_components_for_bb,
14227 rs6000_disqualify_components, rs6000_emit_prologue_components,
14228 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14229 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14230 rs6000_output_savres_externs, rs6000_output_function_prologue,
14231 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14232 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14233 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14234 rs6000_output_function_epilogue, gen_add3_const,
14235 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14236 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14238 (machine_function): Moved to rs6000.h.
14239 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14241 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14242 savres_routine_syms, savres_routine_name, morestack_ref,
14243 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14244 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14245 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14246 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14247 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14248 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14249 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14250 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14251 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14252 get_stack_clash_protection_probe_interval,
14253 get_stack_clash_protection_guard_size,
14254 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14255 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14256 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14257 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14258 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14259 gen_frame_mem_offset, rs6000_savres_routine_name,
14260 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14261 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14262 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14263 rs6000_global_entry_point_prologue_needed_p,
14264 rs6000_get_separate_components, rs6000_components_for_bb,
14265 rs6000_disqualify_components, rs6000_emit_prologue_components,
14266 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14267 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14268 rs6000_output_savres_externs, rs6000_output_function_prologue,
14269 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14270 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14271 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14272 rs6000_output_function_epilogue, gen_add3_const,
14273 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14274 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14275 to here from rs6000.c.
14276 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14277 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14278 quad_address_offset_p) Moved to here from rs6000.c.
14279 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14280 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14283 2019-06-25 Martin Liska <mliska@suse.cz>
14285 * hash-table.c (hashtab_chk_error): Move here from ...
14286 * hash-table.h (hashtab_chk_error): ... here.
14288 2019-06-25 Martin Liska <mliska@suse.cz>
14290 PR tree-optimization/90978
14291 * df-scan.c (df_update_entry_block_defs): Remove dead else
14293 (df_update_exit_block_uses): Likewise.
14295 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14296 Andrew Stubbs <ams@codesourcery.com>
14298 * config.gcc (thread_file): Set to gcn for AMD GCN.
14299 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14300 (TARGET_EMUTLS_VAR_INIT): New hook.
14302 2019-06-25 Martin Jambor <mjambor@suse.cz>
14305 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14307 2019-06-25 Richard Biener <rguenther@suse.de>
14309 PR tree-optimization/90930
14310 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14311 into parallel form in the last pass instance.
14313 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14315 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14316 (arc_legitimize_pic_address): Simplify and cleanup the function.
14317 (SYMBOLIC_CONST): Remove.
14318 (prepare_pic_move): Likewise.
14319 (prepare_move_operands): Handle complex mov cases here.
14320 (arc_legitimize_address_0): Remove call to
14321 arc_legitimize_pic_address.
14322 (arc_legitimize_address): Remove call to
14323 arc_legitimize_tls_address.
14324 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14325 (movhi_insn): Likewise.
14327 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14329 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14331 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14332 format of "__intN" types for UINTMAX_TYPE.
14333 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14334 format of "__intN" types for SIZETYPE.
14335 * tree.c (build_common_tree_nodes): Accept "__intN__"
14336 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14337 * doc/invoke.texi: Document that __intN__ disables pedantic
14340 2019-06-25 Jan Hubicka <jh@suse.cz>
14342 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14343 base2_alias_set is non-zero before doing TBAA based disambiguation.
14345 2019-06-25 Martin Liska <mliska@suse.cz>
14347 PR tree-optimization/90973
14348 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14349 of prologue and epilogue.
14351 2019-06-24 Jan Hubicka <jh@suse.cz>
14353 * ipa-utils.h (type_with_linkage_p): Verify that type is
14355 (odr_type_p): Remove extra return.
14356 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14357 hash STRING_FLAG only for arrays and integers.
14358 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14359 Update analogously.
14360 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14362 * print-tree.c (print_node): Print cxx-odr-p
14364 * tree.c (need_assembler_name_p): Also check that type
14366 (verify_type_variant): Update verification of SRING_FLAG;
14367 also check CXX_ODR_P.
14368 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14369 (TYPE_STRING_FLAG): Use it.
14370 (TYPE_CXX_ODR_P): New macro.
14371 * dwarf2out.c (gen_array_type_die): First check that type
14372 is an array and then test string flag.
14374 2019-06-24 Richard Biener <rguenther@suse.de>
14376 PR tree-optimization/90972
14377 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14378 in common code, dealing with STRING_CST properly.
14380 2019-06-24 Richard Biener <rguenther@suse.de>
14382 PR tree-optimization/90930
14383 PR tree-optimization/90316
14384 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14385 decrement of limit.
14387 2019-06-24 Martin Sebor <msebor@redhat.com>
14389 * tree-pretty-print.h: Remove unnecessary punctuation characters
14391 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14393 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14395 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14396 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14397 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14399 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14401 * config/rs6000/darwin.h: Handle GCC target pragma.
14403 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14405 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14407 2019-06-22 Jeff Law <law@redhat.com>
14409 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14411 2019-06-22 Jan Hubicka <jh@suse.cz>
14413 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14414 give up on bitfields; continue searching for different refs
14417 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14419 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14420 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14421 containing the offset as possible simd lane access. Look through
14422 widening conversion. Move the
14423 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14425 2019-06-21 Richard Biener <rguenther@suse.de>
14427 PR tree-optimization/90930
14428 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14429 flag on new stmts to avoid re-processing them.
14431 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14433 PR c++/90875 - added -Wswitch-outside-range option
14434 * doc/invoke.texi (Wswitch-outside-range): Document.
14436 2019-06-21 Jeff Law <law@redhat.com>
14438 PR tree-optimization/90949
14439 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14440 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14442 2019-06-21 Richard Biener <rguenther@suse.de>
14445 * dwarf2out.c (prune_unused_types_walk): Always consider
14446 function-local extern declarations as used.
14448 2019-06-21 Richard Biener <rguenther@suse.de>
14450 PR tree-optimization/90913
14451 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14452 the scalar variant of if-conversion versioning.
14454 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14456 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14457 create another "omp scan inscan exclusive" array if
14458 !ctx->scan_inclusive.
14459 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14460 (lower_omp_scan): Likewise.
14461 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14462 2-bit bitfield for simd_lane_access_p member.
14463 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14464 aux == (void *)-4 as simd lane access.
14465 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14466 comment with permutations to show the canonical permutation order.
14467 (vectorizable_scan_store): Handle exclusive scan.
14468 (vectorizable_store): Call vectorizable_scan_store even for
14469 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14471 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14472 "omp simd array" arrays with one byte elements.
14474 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14476 * config/alpha/alpha.md (@unaligned_store<mode>):
14477 Rename from unaligned_store<mode>.
14478 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14479 * config/alpha/sync.md (@load_locked_<mode>): Rename
14480 from load_locked_<mode>.
14481 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14482 (@atomic_compare_and_swap<mode>_1): Rename
14483 from atomic_compare_and_swap<mode>_1.
14484 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14485 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14486 Use gen_reload_in_aligned and gen_unaligned_store.
14487 (emit_load_locked): Remove.
14488 (emit_store_conditional): Ditto.
14489 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14490 (alpha_split_compare_and_swap): Ditto.
14491 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14492 (alpha_split_compare_and_swap_12): Use gen_load_locked
14493 and gen_store_conditional.
14494 (alpha_split_atomic_exchange): Ditto.
14495 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14496 (alpha_split_atomic_exchange_12): Use gen_load_locked
14497 and gen_store_conditional.
14499 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14501 * config/aarch64/aarch64-errata.h: New file.
14502 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14503 (CA53_ERR_843419_SPEC): Delete.
14504 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14505 * config/aarch64/aarch64-linux.h: Likewise.
14506 * config/aarch64/aarch64-netbsd.h: Likewise.
14507 * config/aarch64/aarch64-freebsd.h: Likewise.
14509 2019-06-20 Marek Polacek <polacek@redhat.com>
14511 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14513 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14515 * config/rs6000/rs6000.md (isa attribute): Add support for
14516 for a future processor.
14518 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14521 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14522 standard scalar operation pattern for V2DF.
14523 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14524 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14525 (*ieee_<ieee_maxmin><mode>3): Likewise.
14526 (vec_setv2df_0): Likewise.
14528 2019-06-20 Jan Hubicka <jh@suse.cz>
14530 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14531 parameter; it has no use in gimple memory model.
14532 (indirect_ref_may_alias_decl_p): Update.
14534 2019-06-20 Martin Liska <mliska@suse.cz>
14536 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14539 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14541 * tree-vect-stmts.c (enum scan_store_kind): New type.
14542 (scan_store_can_perm_p): Change last argument from int * to
14543 vec<enum scan_store_kind> *, record precisely which permutations
14544 need whole vector left shift or that plus VEC_COND_EXPR.
14545 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14546 and additional VEC_COND_EXPR only for those iterations that need it.
14548 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14550 * config.gcc: Fix ARM --with-fpu checking and error message.
14552 2019-06-19 Marek Polacek <polacek@redhat.com>
14554 PR c++/60364 - noreturn after first decl not diagnosed.
14555 * attribs.c (get_attribute_namespace): No longer static.
14556 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14558 (attr_noreturn_exclusions): Make it extern.
14559 * attribs.h (get_attribute_namespace): Declare.
14560 * tree-inline.c (function_attribute_inlinable_p): Use
14561 get_attribute_name.
14563 2019-06-19 Martin Sebor <msebor@redhat.com>
14565 PR tree-optimization/90626
14566 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14568 PR tree-optimization/90626
14569 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14570 (handle_builtin_string_cmp): Call it.
14572 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14574 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14575 and DARWIN_NOPIE_SPEC.
14576 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14577 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14578 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14579 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14580 (DARWIN_EXPORT_DYNAMIC): Delete.
14581 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14582 and pie options processing to darwin.h.
14583 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14585 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14587 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14588 in computing the number of options to be moved.
14590 2019-06-19 Maya Rashish <coypu@sdf.org>
14592 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14593 (CLEAR_INSN_CACHE) Use it.
14595 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14597 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14599 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14601 PR middle-end/84521
14602 * builtins.c (expand_builtin_setjmp_setup): Save
14603 hard_frame_pointer_rtx.
14604 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14606 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14608 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14610 (remove_reg_equal_offset_note): Remove unused function.
14611 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14613 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14614 (arc_builtin_setjmp_frame_value): Remove function.
14615 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14616 (avr_builtin_setjmp_frame_value): Remove function.
14617 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14618 (ix86_builtin_setjmp_frame_value): Remove function.
14619 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14620 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14621 (sparc_builtin_setjmp_frame_value): Remove function.
14622 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14623 (vax_builtin_setjmp_frame_value): Remove function.
14624 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14625 pointer if has_nonlocal_label.
14627 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14629 * doc/md.texi: Document vec_shl_<mode> pattern.
14630 * optabs.def (vec_shl_optab): New optab.
14631 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14632 argument, if == vec_shl_optab, check for left whole vector shift
14633 pattern rather than right shift.
14634 (expand_vec_perm_const): Add vec_shl_optab support.
14635 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14637 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14638 can be handled by vec_shl_optab.
14639 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14640 (check_scan_store): Use it.
14641 (vectorizable_scan_store): If target can't do normal permutations,
14642 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14644 * config/i386/sse.md (vec_shl_<mode>): New expander.
14646 * omp-low.c (lower_rec_input_clauses): Handle references properly
14648 (lower_omp_scan): Likewise.
14650 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14652 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14653 mem_mode is BLKmode.
14655 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14658 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14659 pointer adjustment for the case of no callee-saved registers and
14660 stack frame bigger than 128 bytes.
14662 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14664 PR middle-end/90862
14665 * omp-low.c (check_omp_nesting_restrictions): Handle
14666 GF_OMP_TARGET_KIND_OACC_DECLARE.
14668 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14670 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14671 (@add<mode>3_carry): Rename from add<mode>3_carry.
14672 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14673 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14674 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14675 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14676 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14677 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14678 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14679 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14680 (cmpstrnsi): Use gen_cmp_1.
14681 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14682 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14683 (@umonitor_<mode>): Rename from umonitor_<mode>.
14684 * config/i386/i386-expand.c (ix86_expand_copysign):
14685 Use gen_copysign3_const and gen_copysign3_var.
14686 (ix86_expand_xorsign): Use gen_xorsign3_1.
14687 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14688 gen_sub3_carry_ccgz and gen_cmp1.
14689 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14690 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14691 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14692 (ix86_split_lshr): Ditto.
14693 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14695 2019-06-18 Jason Merrill <jason@redhat.com>
14697 * tree.c (build_constructor): Add MEM_STAT_DECL.
14699 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14701 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14702 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14703 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14704 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14705 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14706 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14707 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14708 Use CC_NZC instead of CC.
14709 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14710 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14711 (aarch64_print_operand): Handle E_CC_NZCmode.
14712 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14713 of gen_set_clobber_cc.
14715 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14717 * config/aarch64/aarch64-sve.md: Tabify file.
14719 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14721 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14722 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14723 * config/aarch64/aarch64-sve.md: Use it.
14725 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14727 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14728 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14729 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14730 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14731 (aarch64_expand_sve_vec_cmp_int): Use it.
14732 (aarch64_expand_sve_vec_cmp_float): Likewise.
14733 * config/aarch64/aarch64-sve.md: Likewise throughout.
14735 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14736 Kugan Vivekanandarajah <kuganv@linaro.org>
14738 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14739 (*cond_<optab><mode>_z): Fold into...
14740 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14741 operand 4 can be tied to operand 0 (either inherently or via RA).
14743 2019-06-18 Richard Biener <rguenther@suse.de>
14746 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14747 as if optimized away.
14749 2019-06-18 Tom de Vries <tdevries@suse.de>
14751 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14752 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14753 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14755 (define_insn "@set_softstack_<mode>"): ... this.
14756 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14757 (define_insn "@omp_simt_enter_<mode>"): ... this.
14758 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14759 (define_insn "@omp_simt_exit_<mode>"): ... this.
14761 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14763 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14764 vf parameter. Restore the previous iv step of nscalars_step,
14765 but give it iv_type rather than compare_type. Tweak code order
14766 to match the comments.
14767 (vect_set_loop_condition_masked): Update accordingly.
14768 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14769 for iv_precision. Tweak comment formatting.
14771 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14773 * config/darwin.c: Strip trailing whitespace.
14775 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14777 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14778 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14780 2019-06-18 Martin Jambor <mjambor@suse.cz>
14783 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14784 caller does not have flag_ipa_cp set.
14786 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14788 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14789 from "*fold_left_plus_<mode>", updated operands order.
14790 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14791 * internal-fn.c (mask_fold_left_direct): New define.
14792 (expand_mask_fold_left_optab_fn): Likewise.
14793 (direct_mask_fold_left_optab_supported_p): Likewise.
14794 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14795 * optabs.def (mask_fold_left_plus_optab): New optab.
14796 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14797 masked internal_fn for a reduction ifn.
14798 (vectorize_fold_left_reduction): Add support for masking reductions.
14800 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14802 PR middle-end/80791
14803 * target.def (predict_doloop_p): New hook.
14804 * targhooks.h (default_predict_doloop_p): New declaration.
14805 * targhooks.c (default_predict_doloop_p): New function.
14806 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14807 * doc/tm.texi: Regenerate.
14808 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14809 (TARGET_PREDICT_DOLOOP_P): New macro.
14810 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14812 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14814 * omp-low.c (struct omp_context): Add scan_inclusive field.
14815 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14817 (struct omplow_simd_context): Add lastlane member.
14818 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14819 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14821 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14822 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14823 (lower_omp_scan): New function.
14824 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14825 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14826 check 3rd argument if present rather than 2nd.
14827 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14828 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14830 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14831 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14833 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14834 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14835 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14837 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14838 IFN_GOMP_SIMD_LANE argument.
14839 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14840 encoded ->aux value.
14841 * tree-vect-stmts.c: Include attribs.h.
14842 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14843 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14845 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14846 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14848 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14851 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14852 (*nabs<mode>2_1): Ditto.
14853 (nabs sse-reg splitter): New splitter.
14854 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14856 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14858 PR bootstrap/90873.
14859 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14862 2019-06-17 Tom de Vries <tdevries@suse.de>
14864 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14865 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14866 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14868 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14870 (define_insn "omp_simt_enter_insn"): Rename to ...
14871 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14872 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14873 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14874 gen_omp_simt_enter_si.
14875 (define_expand "omp_simt_exit"): New.
14876 (define_insn "omp_simt_exit"): Rename to ...
14877 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14880 2019-06-17 Matthew Green <mrg@eterna.com.au>
14881 Maya Rashish <coypu@sdf.org>
14883 * config.gcc (aarch64*-*-netbsd*): New target.
14884 * config/aarch64/aarch64-netbsd.h: New file.
14885 * config/aarch64/t-aarch64-netbsd: Likewise.
14887 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14889 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14890 the access path from base to first VIEW_CONVERT_EXPR or
14893 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14895 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14896 access path on BIT_FIELD_REFs.
14898 2019-06-17 Martin Liska <mliska@suse.cz>
14901 * ipa-utils.h (odr_type_p): Remove dead code.
14903 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14905 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14906 alternative Solaris 11.4 format.
14907 * configure: Regenerate.
14909 2019-06-17 Tom de Vries <tdevries@suse.de>
14911 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14912 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
14914 (define_insn "call_value_insn"): Rename to ...
14915 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
14917 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14920 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
14922 PR middle-end/64242
14923 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
14924 frame clobbers and schedule block.
14925 (builtin_longjmp): Likewise.
14927 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14929 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14930 describe how to perform MSPABI compliant 64-bit shift.
14931 * config/msp430/msp430.md (ashldi3): New define_expand.
14932 (ashrdi3): New define_expand.
14933 (lshrdi3): New define_expand.
14935 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14937 * doc/sourcebuild.texi: Document new effective target keyword
14940 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14942 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14943 indirect_refs_may_alias_p): Revert accidental commits.
14945 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14946 at the end of structures.
14948 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14950 * config/darwin.c (machopic_indirect_call_target): Use renamed
14951 darwin_picsymbol_stubs to decide on output.
14952 (darwin_override_options): Handle darwin_picsymbol_stubs.
14953 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
14954 (LD64_VERSION): Revise default.
14955 * config/darwin.opt: (mpic-symbol-stubs): New option.
14956 (darwin_picsymbol_stubs): New variable.
14957 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
14958 rename to TARGET_MACHO_PICSYM_STUBS.
14959 * config/i386/i386.c (output_pic_addr_const): Likewise.
14960 * config/i386/i386.h Likewise.
14961 * config/rs6000/darwin.h: Likewise.
14962 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
14963 darwin_picsymbol_stubs.
14965 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14967 * config/darwin.opt (prebind, noprebind, seglinkedit,
14968 noseglinkedit): Add RejectNegative.
14970 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14972 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
14973 in my previous patch.
14975 2019-06-16 Tom de Vries <tdevries@suse.de>
14977 PR tree-optimization/89376
14978 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
14980 2019-06-15 Maya Rashish <coypu@sdf.org>
14982 * doc/invoke.texi (Spec Files): Update location of the
14985 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
14987 * doc/extend.texi (Common Function Attributes): Clarify
14988 no_sanitize. Fix grammar.
14990 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
14992 * tree-ssa-alias.c (alias_stats): Add
14993 nonoverlapping_component_refs_p_may_alias,
14994 nonoverlapping_component_refs_p_no_alias,
14995 nonoverlapping_component_refs_of_decl_p_may_alias,
14996 nonoverlapping_component_refs_of_decl_p_no_alias.
14997 (dump_alias_stats): Dump them.
14998 (nonoverlapping_component_refs_of_decl_p): Add stats.
14999 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15002 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15004 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15005 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15007 (*anddi3_doubleword): Split before reload. Merge with
15008 anddi->zext pre-reload splitter.
15009 (*andndi3_doubleword): Split before reload.
15010 (*<code>di3_doubleword): Ditto.
15011 (*one_cmpldi2_doubleword): Ditto.
15013 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15015 PR middle-end/90779
15016 * gimplify.c: Include omp-offload.h and context.h.
15017 (gimplify_bind_expr): Add "omp declare target" attributes
15018 to static block scope variables inside of target region or target
15021 2019-06-15 Tom de Vries <tdevries@suse.de>
15023 PR tree-optimization/90009
15024 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15025 Return NULL if bb contains IFN_UNIQUE.
15027 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15029 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15030 (un): New define_mode_attr.
15031 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15032 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15033 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15035 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15037 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15039 * config/darwin.opt: Add RejectNegative where needed, reorder
15040 and add minimal functional descriptions.
15042 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15044 PR rtl-optimization/90765
15045 * calls.c (update_stack_alignment_for_call): New function.
15046 (expand_call): Call update_stack_alignment_for_call when
15047 outgoing parameter is passed in the stack.
15048 (emit_library_call_value_1): Likewise.
15049 * function.c (locate_and_pad_parm): Don't update
15050 stack_alignment_needed and preferred_stack_boundary.
15052 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15055 * config/i386/i386-features.c
15056 (dimode_scalar_chain::compute_convert_gain): Replace
15057 mmxsse_to_integer with sse_to_integer.
15058 * config/i386/i386.c (ix86_register_move_cost): Verify that
15059 moves between MMX and non-MMX units require secondary memory.
15060 Correct costs of moves between SSE and integer units.
15061 * config/i386/i386.h (processor_costs): Rename cost of moving
15062 SSE register to integer to sse_to_integer. Rename cost of
15064 2019-06-14 Matt Thomas <matt@3am-software.com>
15065 Matthew Green <mrg@eterna.com.au>
15066 Nick Hudson <skrll@netbsd.org>
15067 Maya Rashish <coypu@sdf.org>
15068 Richard Earnshaw <rearnsha@arm.com>
15070 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15071 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15072 * config/arm/netbsd-eabi.h: New file.
15073 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15075 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15076 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15077 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15078 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15080 2019-06-14 Richard Biener <rguenther@suse.de>
15082 * tree-loop-distribution.c (classify_partition): Return
15083 whether a reduction appeared in all partitions and do not
15084 stop builtin detection because of this.
15085 (distribute_loop): Sort a non-builtin partition last if
15086 there's a reduction in all partitions and make sure the
15087 partition prevailing as last is not a builtin.
15089 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15092 * ipa-prop.c (add_to_agg_contents_list): New function.
15093 (clobber_by_agg_contents_list_p): Likewise.
15094 (extract_mem_content): Likewise.
15095 (get_place_in_agg_contents_list): Delete.
15096 (determine_known_aggregate_parts): Renamed from
15097 determine_locally_known_aggregate_parts. New parameter
15100 2019-06-13 Martin Sebor <msebor@redhat.com>
15102 PR tree-optimization/90662
15103 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15106 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15109 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15110 dbase is not TARGET_MEM_REF.
15112 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15114 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15116 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15117 Do not generate DImode extends for 32bit targets.
15118 (and->zext post-reload splitter): Use gen_extend_insn
15119 instead of indirect functions.
15120 (anddi->zext pre-reload splitter): New.
15121 (*zext<mode>_doubleword_and): Remove.
15122 (*zext<mode>_doubleword): Ditto.
15123 (*zextsi_doubleword): Dittto.
15125 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15127 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15128 Use gen_sub3_insn instead of indirect function.
15129 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15131 (ix86_adjust_counter): Ditto.
15133 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15134 Lijia He <helijia@linux.ibm.com>
15136 PR tree-optimization/77820
15137 * tree-ssa-threadedge.c
15138 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15140 (thread_across_edge): Add call to
15141 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15143 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15145 * config/darwin-driver.c (validate_macosx_version_min): New.
15146 (darwin_default_min_version): Cleanup and validate supplied version.
15147 (darwin_driver_init): Likewise and push cleaned version into opts.
15149 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15151 PR tree-optimization/90869
15152 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15153 converts in MEM_REF referencing decl rather than view converts
15154 from decl type to MEM_REF type.
15156 2019-06-13 Richard Biener <rguenther@suse.de>
15158 PR tree-optimization/90856
15159 * tree-sra.c (build_ref_for_model): Only use
15160 build_reconstructed_reference when address-spaces are the same.
15162 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15164 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15165 wrap ei variable name in the declaration in ()s.
15166 (nvptx_single): Actually use mode_label variable. Formatting fix.
15168 2019-06-13 Richard Biener <rguenther@suse.de>
15170 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15171 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15172 also return the condition stmt.
15173 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15174 loop we can version and version that, reusing the loop version
15175 created by if-conversion instead of versioning again.
15177 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15179 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15181 * tree-vrp (value_range_base::may_contain_p): Call into
15182 value_inside_range.
15183 (value_inside_range): Make private inside value_range_base class.
15184 Take min/max from *this.
15185 (range_includes_p): Remove.
15186 * tree-vrp.h (value_range_base): Add value_inside_range.
15187 (range_includes_p): Remove.
15188 (range_includes_zero_p): Call may_contain_p.
15189 * vr-values.c (compare_range_with_value): Same.
15191 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15193 * doc/extend.texi (ARC Function Attributes): Update info.
15195 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15197 PR tree-optimization/89713
15198 * doc/invoke.texi (-ffinite-loops): Document new option.
15199 * common.opt (-ffinite-loops): New option.
15200 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15201 IFN_GOACC_LOOP calls as necessary.
15202 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15204 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15205 IFN_GOACC_LOOP call is not used.
15206 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15208 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15211 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15212 compare_type is not with Pmode size, we will create an IV with
15213 Pmode size with truncated use (i.e. converted to the correct type).
15214 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15215 (vect_iv_limit_for_full_masking): New. Factored out of
15216 vect_set_loop_condition_masked.
15217 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15218 (vect_iv_limit_for_full_masking): Declare.
15220 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15223 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15224 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15225 (get_alias_ptr_type_for_ptr_address): Likewise.
15226 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15227 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15228 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15231 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15233 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15235 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15237 * common/config/pru/pru-common.c: New file.
15238 * config.gcc: Add PRU target.
15239 * config/pru/alu-zext.md: New file.
15240 * config/pru/constraints.md: New file.
15241 * config/pru/predicates.md: New file.
15242 * config/pru/pru-opts.h: New file.
15243 * config/pru/pru-passes.c: New file.
15244 * config/pru/pru-pragma.c: New file.
15245 * config/pru/pru-protos.h: New file.
15246 * config/pru/pru.c: New file.
15247 * config/pru/pru.h: New file.
15248 * config/pru/pru.md: New file.
15249 * config/pru/pru.opt: New file.
15250 * config/pru/t-pru: New file.
15251 * doc/extend.texi: Document PRU pragmas.
15252 * doc/invoke.texi: Document PRU-specific options.
15253 * doc/md.texi: Document PRU asm constraints.
15255 2019-06-12 Martin Sebor <msebor@redhat.com>
15257 PR middle-end/90676
15258 * tree-pretty-print.c (dump_mem_ref): New function. Include
15259 MEM_REF type in output when different size than operand.
15260 (dump_generic_node): Move code to dump_mem_ref and call it.
15262 2019-06-12 Martin Sebor <msebor@redhat.com>
15264 PR tree-optimization/90662
15265 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15268 2019-06-12 Tom de Vries <tdevries@suse.de>
15270 PR tree-optimization/90009
15271 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15273 2019-06-12 Martin Liska <mliska@suse.cz>
15275 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15277 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15278 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15279 Do not sanitize created maps.
15281 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15283 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15284 value_range::singleton_p.
15285 * tree-vrp.c (value_range_constant_singleton): Remove.
15286 * tree-vrp.h (value_range_constant_singleton): Remove.
15287 * vr-values.c (vr_values::singleton): Use
15288 value_range::singleton_p.
15290 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15293 * cfgexpand.c (align_local_variable): Add really_expand argument,
15294 don't SET_DECL_ALIGN if it is false.
15295 (add_stack_var): Add really_expand argument, pass it through to
15296 align_local_variable.
15297 (expand_one_stack_var_1): Pass true as really_expand to
15298 align_local_variable.
15299 (expand_one_ssa_partition): Pass true as really_expand to
15301 (expand_one_var): Pass really_expand through to add_stack_var.
15303 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15305 * config/arm/iterators.md (VABAL): New int iterator.
15306 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15307 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15308 UNSPEC_VABAL_U values.
15310 2019-06-12 Martin Liska <mliska@suse.cz>
15312 * value-prof.c (stream_out_histogram_value): Only first value
15315 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15318 * symtab.c (symtab_node::set_section): Allow being called on aliases
15319 as long as they aren't analyzed yet.
15321 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15323 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15324 to `mips_set_text_contents_type' to indicate whether a
15325 non-debug insn follows.
15327 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15329 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15330 enabling -mpcrel by default.
15331 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15332 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15333 that the test against -mcpu=future is done first. Then test if
15334 -mprefixed-addr is on for -mpcrel.
15335 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15337 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15340 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15341 instead of and.u%d.
15343 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15345 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15347 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15349 PR c++/90449 - add -Winaccessible-base option.
15350 * doc/invoke.texi (Winaccessible-base): Document.
15352 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15354 PR tree-optimization/62041
15355 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15357 2019-06-11 Jason Merrill <jason@redhat.com>
15359 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15360 * tree.c (get_tree_code_name): Likewise.
15361 * print-tree.c (print_node): Only briefly print a node with an
15364 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15367 * trans-mem.c (tm_memopt_compute_available): Add assertion
15368 that blocks is not empty. Formatting fix.
15370 2019-06-11 Martin Liska <mliska@suse.cz>
15373 * hash-table.h: Extend create_gcc, add one parameter
15374 that is passed into hash_table::hash_table.
15376 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15378 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15380 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15381 Emit clobber also for non-sse operations.
15382 (ix86_split_fp_absneg_operator): New function.
15383 * config/i386/i386.md (SSEMODEF): New mode iterator.
15384 (ssevecmodef): New mode attribute.
15385 (<code>tf2): Use absneg code iterator.
15386 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15387 Add three-operand AVX alternatives.
15388 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15389 Use absneg code iterator and X87MODEF mode iterator.
15390 (absneg fp_reg non-sse splitter): Call absneg code iterator
15391 and X87MODEF mode iterator.
15392 (absneg general_reg non-sse splitter): Use absneg code iterator
15393 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15394 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15395 code iterator. Add three-operand AVX alternative.
15396 (absneg sse_reg splitter): Use absneg code iterator
15397 and SSEMODEF mode iterator. Handle AVX operands.
15398 (absneg fp_reg splitter): Use absneg code iterator
15399 and MODEF mode iterator.
15400 (absneg general_reg splitter): Merge splitters using MODEF mode
15401 iterator. Use absneg code iterator. Call
15402 ix86_split_fp_absneg_operator.
15403 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15404 Do not enable for non-sse modes before reload.
15405 (CSGNMODE): Remove.
15406 (CSGNVMODE): Ditto.
15407 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15408 ssevecmodef mode attribute instaed of CSGNVMODE.
15409 (copysign<mode>3_const): Ditto.
15410 (copysign<mode>3_var): Ditto.
15411 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15412 Use absneg code iterator. Simplify code using std::swap.
15413 * config/i386/predicates.md (absneg_operator): Remove.
15415 2019-06-10 Martin Sebor <msebor@redhat.com>
15417 * gimple-fold.c (get_range_strlen): Update comment that didn't
15418 make it into r267503 or related commits.
15420 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15422 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15423 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15425 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15427 * tree.def (OMP_SCAN): New tree code.
15428 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15429 OMP_CLAUSE_EXCLUSIVE.
15430 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15431 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15432 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15433 OMP_CLAUSE_{IN,EX}CLUSIVE.
15434 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15435 * tree-nested.c (convert_nonlocal_reference_stmt,
15436 convert_local_reference_stmt, convert_gimple_call): Handle
15438 * tree-pretty-print.c (dump_omp_clause): Handle
15439 OMP_CLAUSE_{IN,EX}CLUSIVE.
15440 (dump_generic_node): Handle OMP_SCAN.
15441 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15442 * gimple.h (gomp_scan): New type.
15443 (is_a_helper <gomp_scan *>::test,
15444 is_a_helper <const gomp_scan *>::test): New templates.
15445 (gimple_build_omp_scan): Declare.
15446 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15447 gimple_omp_scan_set_clauses): New inline functions.
15448 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15449 * gimple.c (gimple_build_omp_scan): New function.
15450 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15451 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15452 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15453 GIMPLE_OMP_TASKGROUP.
15454 (dump_gimple_omp_scan): New function.
15455 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15456 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15457 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15458 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15459 (is_gimple_stmt): Handle OMP_SCAN.
15460 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15461 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15462 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15463 mentioned in nested #pragma omp scan. Handle
15464 OMP_CLAUSE_{IN,EX}CLUSIVE.
15465 (gimplify_expr): Handle OMP_SCAN.
15466 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15467 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15469 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15472 2019-06-10 Martin Liska <mliska@suse.cz>
15474 * ipa-cp.c (ignore_edge_p): New function.
15475 (build_toporder_info): Use it.
15476 * ipa-inline.c (ignore_edge_p): New function.
15477 (inline_small_functions): Use it.
15478 * ipa-pure-const.c (ignore_edge_for_nothrow):
15479 Verify opt_for_fn for caller and callee.
15480 (ignore_edge_for_pure_const): Likewise.
15481 * ipa-reference.c (ignore_edge_p): Extend to check
15483 * ipa-utils.c (searchc): Refactor.
15484 * ipa-utils.h: Fix coding style.
15486 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15488 * config/arc/arc.c (arc_rtx_costs): Update costs.
15490 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15492 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15493 (arc_split_ior): Likewise.
15494 (arc_check_mov_const): Likewise.
15495 (arc_split_mov_const): Likewise.
15496 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15497 (arc_rtx_costs): Replace check Crr with Cax constraint.
15498 (prepare_move_operands): Cleanup, remove unused code.
15499 (arc_split_ior): New function.
15500 (arc_check_ior_const): Likewise.
15501 (arc_split_mov_const): Likewise.
15502 (arc_check_mov_const): Likewise.
15503 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15504 in define_insn_and_split pattern.
15505 (iorsi3): Likewise.
15506 (mulsi3_v2): Add new matching variant.
15507 (andsi3_i): Cleanup pattern.
15508 (rotrsi3_cnt1): Update pattern.
15509 (rotrsi3_cnt8): New pattern.
15510 (ashlsi2_cnt8): Likewise.
15511 (ashlsi2_cnt16): Likewise.
15512 * config/arc/constraints.md (C0p): Update constraint.
15514 (C0x): New pattern.
15515 (Cax): New pattern.
15517 2019-06-10 Martin Liska <mliska@suse.cz>
15519 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15520 Update coding style.
15521 (sem_item_optimizer::dump_cong_classes):
15522 Print how many items are in a non-singular class. Improve
15525 2019-06-10 Martin Liska <mliska@suse.cz>
15527 * value-prof.c (dump_histogram_value): Change dump format.
15528 (gimple_mod_subtract_transform): Remove legacy comment.
15530 2019-06-10 Martin Liska <mliska@suse.cz>
15532 * value-prof.c (dump_histogram_value): Print histogram values
15535 2019-06-10 Martin Liska <mliska@suse.cz>
15537 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15538 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15539 * ipa-profile.c (ipa_profile_generate_summary):
15540 Use get_most_common_single_value.
15541 * tree-profile.c (gimple_init_gcov_profiler):
15542 Instrument with __gcov_one_value_profiler_v2
15543 and __gcov_indirect_call_profiler_v4.
15544 * value-prof.c (dump_histogram_value):
15545 Print all values for HIST_TYPE_SINGLE_VALUE.
15546 (stream_out_histogram_value): Update assert for
15548 (stream_in_histogram_value): Set number of
15549 counters for HIST_TYPE_SINGLE_VALUE.
15550 (get_most_common_single_value): New.
15551 (gimple_divmod_fixed_value_transform):
15552 Use get_most_common_single_value.
15553 (gimple_ic_transform): Likewise.
15554 (gimple_stringops_transform): Likewise.
15555 (gimple_find_values_to_profile): Set number
15556 of counters for HIST_TYPE_SINGLE_VALUE.
15557 * value-prof.h (get_most_common_single_value): New.
15559 2019-06-10 Martin Liska <mliska@suse.cz>
15561 * hash-map.h: Pass default value to hash_table ctor.
15562 * hash-table.h: Add default value to call of a ctor.
15564 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15566 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15567 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15569 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15572 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15573 Call pa_output_function_label.
15574 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15575 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15576 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15578 (pa_linux_output_function_prologue): Declare.
15579 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15580 (pa_output_function_label): New.
15581 (pa_output_function_prologue): Revise to use pa_output_function_label.
15582 (pa_linux_output_function_prologue): New.
15583 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15585 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15587 * tree-vrp.h (value_range_base::intersect): New.
15588 (value_range::intersect_helper): Move from here...
15589 (value_range_base::intersect_helper): ...to here.
15590 * tree-vrp.c (value_range::intersect_helper): Rename to...
15591 (value_range_base::intersect_helper): ...this, and rewrite to
15592 return a value instead of modifying THIS in place.
15593 Also, move equivalence handling...
15594 (value_range::intersect): ...here, while calling intersect_helper.
15595 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15597 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15599 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15601 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15603 * Makefile.in (genprogerr): Add condmd.
15604 (genprog): Remove it here.
15606 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15608 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15610 2019-06-07 Richard Biener <rguenther@suse.de>
15613 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15614 that appear after user labels.
15616 2019-06-07 Martin Liska <mliska@suse.cz>
15618 * cselib.c (cselib_init): Disable hash table
15620 * hash-set.h: Pass new default argument to m_table.
15621 * hash-table.c: Add global variable with hash table
15622 sanitization limit.
15623 * hash-table.h (Allocator>::hash_table): Add new argument
15625 (hashtab_chk_error): New.
15626 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15627 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15628 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15630 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15632 * common.opt (flto-odr-type-merging): Ignore.
15633 * invoke.texi (-flto-odr-type-merging): Remove.
15634 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15635 (can_be_vtable_hashed_p): Remove.
15636 (hash_odr_vtable): Remove.
15637 (odr_vtable_hasher::hash): Remove.
15638 (types_same_for_odr): Remove.
15639 (types_odr_comparable): Remove.
15640 (odr_vtable_hasher::equal): Remove.
15641 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15642 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15643 (get_odr_type): Do not use vtable hash.
15644 (dump_odr_type): Remove commented out code.
15645 (build_type_inheritance_graph): Do not allocate vtable hash.
15646 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15647 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15648 (odr_type_p): Likewise.
15649 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15652 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15654 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15655 immediately after same_types_for_tbaa_p returns -1 and continue
15656 looking for possible exact match; if matching types are arrays
15657 watch for partial overlaps.
15658 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15659 (indirect_refs_may_alias_p): Do type based disambiguation first;
15662 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15664 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15666 2019-06-07 Martin Liska <mliska@suse.cz>
15668 * doc/invoke.texi: Remove param.
15669 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15671 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15672 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15673 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15674 * profile.c (instrument_values): Remove
15675 HIST_TYPE_INDIR_CALL_TOPN.
15676 * tree-profile.c (init_ic_make_global_vars):
15677 Always build __gcov_indirect_call only.
15678 (gimple_init_gcov_profiler): Remove usage
15679 of PARAM_INDIR_CALL_TOPN_PROFILE.
15680 (gimple_gen_ic_profiler): Likewise.
15681 * value-prof.c (dump_histogram_value): Likewise.
15682 (stream_in_histogram_value): Likewise.
15683 (gimple_indirect_call_to_profile): Likewise.
15684 (gimple_find_values_to_profile): Likewise.
15685 * value-prof.h (enum hist_type): Likewise.
15687 2019-06-07 Martin Liska <mliska@suse.cz>
15689 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15692 2019-06-07 Martin Liska <mliska@suse.cz>
15694 PR tree-optimization/78902
15695 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15696 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15697 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15698 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15699 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15700 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15701 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15702 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15703 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15704 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15705 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15706 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15707 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15709 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15710 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15711 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15712 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15713 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15714 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15715 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15716 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15717 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15718 warn_unused_result attribute.
15719 (BUILT_IN_STRDUP): Likewise.
15720 (BUILT_IN_STRNDUP): Likewise.
15721 (BUILT_IN_ALLOCA): Likewise.
15722 (BUILT_IN_CALLOC): Likewise.
15723 (BUILT_IN_MALLOC): Likewise.
15724 (BUILT_IN_REALLOC): Likewise.
15726 2019-06-06 Jim Wilson <jimw@sifive.com>
15729 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15730 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15731 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15733 2019-06-06 Martin Sebor <msebor@redhat.com>
15735 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15736 (handle_builtin_malloc): Remove trailing spaces.
15737 (handle_builtin_memset): Same.
15738 (handle_builtin_memcmp): Same.
15739 (compute_string_length): Same.
15740 (determine_min_objsize): Same.
15741 (handle_builtin_string_cmp): Same.
15742 (handle_char_store): Same. Break up excessively long line.
15744 2019-06-06 Martin Jambor <mjambor@suse.cz>
15746 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15749 2019-06-06 Martin Jambor <mjambor@suse.cz>
15751 * tree-sra.c (struct access): New field grp_same_access_path.
15752 (dump_access): Dump it.
15753 (build_reconstructed_reference): New function.
15754 (build_ref_for_model): Use it if possible.
15755 (path_comparable_for_same_access): New function.
15756 (same_access_path_p): Likewise.
15757 (sort_and_splice_var_accesses): Set the new flag.
15758 (analyze_access_subtree): Likewise.
15759 (propagate_subaccesses_across_link): Propagate zero value of the new
15760 flag down the access tree.
15762 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15764 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15765 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15766 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15767 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15770 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15772 PR tree-optimization/90332
15773 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15774 Handle VALS containing two vectors.
15775 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15777 (@aarch64_combinez<mode>): ... This.
15778 (*aarch64_combinez_be<mode>): Rename to...
15779 (@aarch64_combinez_be<mode>): ... This.
15780 (vec_init<mode><Vhalf>): New define_expand.
15781 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15783 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15785 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15786 library functions only when not optimizing for size.
15787 (ashlsi3): Likewise.
15788 (ashrhi3): Likewise.
15789 (ashrsi3): Likewise.
15790 (lshrhi3): Likewise.
15791 (lshrsi3): Likewise.
15793 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15795 PR rtl-optimization/88751
15796 * ira.c (ira): Use the number of the actually referenced registers
15797 when calculating the threshold.
15799 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15801 * configure: Regenerate.
15803 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15805 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15806 register if it is in memory, so the shift can be emulated with a rotate
15808 (ashrhi3): Likewise.
15809 (lshrhi3): Likewise.
15811 2019-06-06 Martin Liska <mliska@suse.cz>
15813 PR tree-optimization/87954
15814 * match.pd: Simplify mult where both arguments are 0 or 1.
15816 2019-06-06 Richard Biener <rguenther@suse.de>
15818 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15819 put equivalences on UNDEFINED ranges.
15820 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15821 Make sure to drop defs of stmts added during simplification
15824 2019-06-06 Richard Biener <rguenther@suse.de>
15826 * tree-ssa-structalias.c: Include tree-cfg.h.
15827 (make_heapvar): Do not make heap vars artificial.
15828 (find_func_aliases_for_builtin_call): Handle stack allocation
15830 (find_func_aliases): Delay processing of simple enough returns
15832 (set_uids_in_ptset): Adjust.
15833 (find_what_var_points_to): Likewise.
15834 (solve_constraints): Do not dump points-to sets here.
15835 (compute_points_to_sets): Post-process return statements,
15836 amending the escaped solution. Dump points-to sets afterwards.
15837 (ipa_pta_execute): Dump points-to sets.
15839 2019-06-06 Martin Liska <mliska@suse.cz>
15842 * doc/install.texi: Fix HTML headers and
15843 titles for 'Installing GCC' pages.
15845 2019-06-06 Martin Liska <mliska@suse.cz>
15847 * ipa-icf-gimple.h (dump_message_1): Remove.
15848 (dump_message): Likewise.
15849 (return_false_with_message_1): Print also file.
15850 (return_false_with_msg): Likewise.
15851 (return_with_result): Likewise.
15852 (return_with_debug): Likewise.
15853 * ipa-icf.c (sem_function::equals_private): Remove call
15856 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15858 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15859 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15860 memory operand for it.
15861 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15863 2019-06-05 Martin Sebor <msebor@redhat.com>
15865 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15866 Adjust quoting and hyphenation.
15867 * convert.c (convert_to_real_1): Same.
15868 * gcc.c (driver_wrong_lang_callback): Same.
15869 (driver::handle_unrecognized_options): Same.
15870 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15871 * opts-common.c (cmdline_handle_error): Same.
15872 (read_cmdline_option): Same.
15873 * opts-global.c (complain_wrong_lang): Same.
15874 (print_ignored_options): Same.
15875 (handle_common_deferred_options): Same.
15876 * pretty-print.h: Same.
15877 * print-rtl.c (debug_bb_n_slim): Same.
15878 * sched-rgn.c (make_pass_sched_fusion): Same.
15879 * tree-cfg.c (verify_gimple_assign_unary): Same.
15880 (verify_gimple_label): Same.
15881 * tree-ssa-operands.c (verify_ssa_operands): Same.
15882 * varasm.c (do_assemble_alias): Same.
15883 (assemble_alias): Same.
15885 2019-06-05 Richard Henderson <rth@twiddle.net>
15887 * config/alpha/alpha.c (direct_return): Move down after
15888 struct machine_function definition; use saved frame_size;
15890 (struct machine_function): Add sa_mask, sa_size, frame_size.
15891 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15892 (alpha_compute_frame_layout): ... new function.
15893 (TARGET_COMPUTE_FRAME_LAYOUT): New.
15894 (alpha_initial_elimination_offset): Use saved sa_size.
15895 (alpha_vms_initial_elimination_offset): Likewise.
15896 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15897 (alpha_expand_prologue): Use saved frame data. Merge integer
15898 and fp register save loops.
15899 (alpha_expand_epilogue): Likewise.
15900 (alpha_start_function): Use saved frame data.
15901 * config/alpha/alpha-protos.h (direct_return): Update.
15902 (alpha_sa_size): Remove.
15904 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
15906 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15907 multiplication by a power-of-two value.
15908 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15909 and turn the modulo operation into a masking operation.
15911 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15914 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15915 with VOIDmode inner operands.
15917 2019-06-05 Richard Biener <rguenther@suse.de>
15919 PR middle-end/90726
15920 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15921 turn an expression graph into a tree.
15923 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15925 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15927 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15928 treat it like explicit monotonic schedule modifier.
15929 (expand_omp_for): Initialize has_lastprivate_conditional.
15930 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15933 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15934 references, lookup in in hash map MEM_REF operand instead of the
15936 (lower_omp_1): When looking for lastprivate conditional assignments,
15937 handle MEM_REFs with REFERENCE_TYPE operands.
15939 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15940 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15941 and references a VLA. Handle references to non-VLAs if is_simd
15942 all privatization clauses like reductions.
15943 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15944 If omp_is_reference, use always omp simd arrays and set
15945 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15946 fails, emit reference initialization.
15948 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15951 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
15952 _mm_mask_fpclass_sd_mask): New intrinsics.
15953 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
15954 * config/i386/i386-builtin.def
15955 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
15957 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
15958 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
15959 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
15960 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
15961 case QI_FTYPE_V2SF_INT): Ditto.
15962 * config/i386/sse.md
15963 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
15964 Extended to insnstructions with mask operands.
15966 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15968 * config/rs6000/constraints.md (define_register_constraint "wp"):
15970 (define_register_constraint "wq"): Delete.
15971 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15972 (rs6000_init_hard_regno_mode_ok): Adjust.
15973 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15974 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
15975 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
15976 (define_mode_attr VSa): Delete.
15977 (define_mode_attr VSisa): New.
15978 (rest of file): Adjust.
15979 * doc/md.texi (Machine Constraints): Adjust.
15981 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15983 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
15984 (define_attr "enabled"): Handle those new isa values.
15986 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15988 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
15989 (define_mode_attr VSr5): Delete.
15990 (define_mode_attr VStype_sqrt): Delete.
15991 (define_mode_iterator VSX_SPDP): Delete.
15992 (define_mode_attr VS_spdp_res): Delete.
15993 (define_mode_attr VS_spdp_insn): Delete.
15994 (define_mode_attr VS_spdp_type): Delete.
15995 (*vsx_sqrt<mode>2): Adjust.
15996 (vsx_<VS_spdp_insn>): Delete, split to...
15997 (vsx_xscvdpsp): ... this. New. And...
15998 (vsx_xvcvspdp): ... this. New. And...
15999 (vsx_xvcvdpsp): ... this. New.
16001 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16003 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16005 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16006 (rest of file): Adjust.
16008 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16010 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16011 (vsx_extract_<mode>_var): Ditto.
16013 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16015 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16018 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16020 * config/rs6000/constraints.md (define_register_constraint "ww"):
16022 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16023 (rs6000_init_hard_regno_mode_ok): Adjust.
16024 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16025 RS6000_CONSTRAINT_ww.
16026 * config/rs6000/rs6000.md: Adjust.
16027 * config/rs6000/vsx.md: Adjust.
16028 * doc/md.texi (Machine Constraints): Adjust.
16030 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16032 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16033 (define_mode_attr sd): New.
16034 (define_mode_attr s): New.
16035 (define_mode_attr Ftrad): Delete.
16036 (define_mode_attr Fvsx): Delete.
16037 (define_mode_attr Fs): Delete.
16038 (rest of file): Use the new mode attributes.
16039 * config.rs6000/vsx.md: Use the new mode attributes.
16041 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16043 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16046 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16048 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16049 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16050 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16052 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16055 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16056 C++ with strict ANSI requirements.
16058 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16060 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16061 computations when step is 1.
16063 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16065 * config/rs6000/constraints.md (define_register_constraint "wf"):
16067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16068 (rs6000_init_hard_regno_mode_ok): Adjust.
16069 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16070 RS6000_CONSTRAINT_wf.
16071 * config/rs6000/rs6000.md: Adjust.
16072 * config/rs6000/vsx.md: Adjust.
16073 * doc/md.texi (Machine Constraints): Adjust.
16075 2019-06-04 Andrew Pinski <apinski@marvell.com>
16077 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16080 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16082 * config/rs6000/constraints.md (define_register_constraint "wd"):
16084 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16085 (rs6000_init_hard_regno_mode_ok): Adjust.
16086 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16087 RS6000_CONSTRAINT_wd.
16088 * config/rs6000/rs6000.md: Adjust.
16089 * config/rs6000/vsx.md: Adjust.
16090 * doc/md.texi (Machine Constraints): Adjust.
16092 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16094 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16095 (rest of file): Adjust.
16097 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16099 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16100 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16101 (vsx_splat_<mode>_reg): Adjust.
16103 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16105 * config/rs6000/constraints.md (define_register_constraint "ws"):
16107 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16108 (rs6000_init_hard_regno_mode_ok): Adjust.
16109 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16110 RS6000_CONSTRAINT_ws.
16111 * config/rs6000/rs6000.md: Adjust.
16112 * config/rs6000/vsx.md: Adjust.
16113 * doc/md.texi (Machine Constraints): Adjust.
16115 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16117 * config/rs6000/constraints.md (define_register_constraint "wv"):
16119 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16120 (rs6000_init_hard_regno_mode_ok): Adjust.
16121 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16122 RS6000_CONSTRAINT_wv.
16123 * config/rs6000/rs6000.md: Adjust.
16124 * config/rs6000/vsx.md: Adjust.
16125 * doc/md.texi (Machine Constraints): Adjust.
16127 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16129 * config/rs6000/constraints.md (define_register_constraint "wi"):
16131 (define_register_constraint "wt"): Delete.
16132 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16133 (rs6000_init_hard_regno_mode_ok): Adjust.
16134 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16135 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16136 * config/rs6000/rs6000.md: Adjust.
16137 * config/rs6000/vsx.md: Adjust.
16138 * doc/md.texi (Machine Constraints): Adjust.
16140 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16142 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16144 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16145 default_elf_asm_output_external.
16147 2019-06-04 Martin Liska <mliska@suse.cz>
16149 * ipa-icf.c (INCLUDE_LIST): Remove.
16150 (sem_item_optimizer::execute): Remove call to init_wpa.
16151 * ipa-icf.h (init_wpa): Remove.
16153 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16155 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16156 conditional on combined for simd.
16157 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16159 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16160 constructs, don't remove lastprivate_conditional_map, but instead set
16161 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16162 to parent construct temporaries.
16163 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16164 like !ctx->lastprivate_conditional_map.
16165 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16166 use up->outer context instead of up.
16167 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16168 gimple_omp_for_combined_p.
16169 (expand_omp_for_static_nochunk): Likewise.
16170 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16171 probably moved over into expand_omp_for_generic rather than being copied
16174 2019-06-04 Martin Liska <mliska@suse.cz>
16176 * value-prof.c (dump_histogram_value): Fix typo.
16177 (gimple_mod_subtract_transform): Likewise.
16179 2019-06-04 Richard Biener <rguenther@suse.de>
16181 PR middle-end/90726
16182 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16183 (tree_contains_chrecs): Likewise.
16184 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16185 exponential behaivor from ...
16186 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16188 (expression_expensive_p): Avoid exponential behavior and compute
16189 expanded size, rejecting any expansion.
16190 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16191 (idx_contains_abnormal_ssa_name_p): Likewise.
16192 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16193 (contains_abnormal_ssa_name_p): Simplify and use
16194 walk_tree_without_duplicates.
16196 2019-06-04 Richard Biener <rguenther@suse.de>
16198 PR tree-optimization/90738
16200 2019-06-03 Richard Biener <rguenther@suse.de>
16202 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16203 full reference tree and record in ref->ref.
16204 (vn_reference_lookup_3): Pass in original ref to
16205 ao_ref_init_from_vn_reference.
16206 (vn_reference_lookup): Likewise.
16207 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16208 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16209 Handle non-decl bases in the original reference.
16211 2019-06-04 Martin Liska <mliska@suse.cz>
16213 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16214 number of references.
16215 (sem_item_optimizer::do_congruence_step):
16216 (sem_item_optimizer::worklist_push): Dump how references
16218 (sem_item_optimizer::worklist_pop): Use heap.
16219 (sem_item_optimizer::process_cong_reduction): Likewise.
16220 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16222 2019-06-04 Martin Liska <mliska@suse.cz>
16224 * ipa-icf.h (struct sem_usage_pair_hash): New.
16225 (sem_usage_pair_hash::hash): Likewise.
16226 (sem_usage_pair_hash::equal): Likewise.
16227 (struct sem_usage_hash): Likewise.
16228 * ipa-icf.c (sem_item::sem_item): Initialize
16229 referenced_by_count.
16230 (sem_item::add_reference): Register a reference
16231 in ref_map and not in target->usages.
16232 (sem_item::setup): Remove initialization of
16234 (sem_item::~sem_item): Remove usage of dead vectors.
16235 (sem_item::dump): Remove dump of references.
16236 (sem_item_optimizer::sem_item_optimizer): Initialize
16238 (sem_item_optimizer::read_section): Remove useless
16240 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16241 (sem_item_optimizer::build_graph): Pass m_references
16242 to ::add_reference.
16243 (sem_item_optimizer::verify_classes): Remove usage of dead
16245 (sem_item_optimizer::traverse_congruence_split): Return true
16246 when a class is split.
16247 (sem_item_optimizer::do_congruence_step_for_index): Use
16248 hash_map for look up of (sem_item *, index). That brings
16249 significant speed up.
16250 (sem_item_optimizer::do_congruence_step): Return true
16251 when a split is done.
16252 (congruence_class::is_class_used): Use referenced_by_count.
16254 2019-06-04 Alan Modra <amodra@gmail.com>
16257 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16260 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16262 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16263 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16264 (rs6000_secondary_reload_simple_move): Adjust.
16265 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16266 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16267 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16270 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16271 (floatunssi<mode>2_lfiwzx): Adjust.
16272 (fix_trunc<mode>si2_stfiwx): Adjust.
16273 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16274 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16275 (mfpgpr): Mark as deprecated.
16276 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16277 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16278 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16280 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16282 * config/rs6000/constraints.md (define_register_constraint "wg"):
16284 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16285 RS6000_CONSTRAINT_wg.
16286 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16287 (rs6000_init_hard_regno_mode_ok): Adjust.
16288 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16289 Delete "wg" alternatives.
16290 * doc/md.texi (Machine Constraints): Adjust.
16292 2019-06-03 Alan Modra <amodra@gmail.com>
16294 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16295 (get_uncond_jump_length): Assert length less than INT_MAX and
16298 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16300 PR middle-end/64242
16301 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16303 (expand_builtin_nonlocal_goto): Likewise.
16305 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16307 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16308 (aarch64_asm_output_external): Declare.
16309 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16310 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16311 (aarch64_asm_output_alias): New.
16312 (aarch64_asm_output_external): New.
16313 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16314 (ASM_OUTPUT_EXTERNAL): Define.
16316 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16317 * tree-vrp.h (value_range_base::nonzero_p): New.
16318 (value_range_base::set_nonnull): Rename to...
16319 (value_range_base::set_nonzero): ...this.
16320 (value_range_base::set_null): Rename to...
16321 (value_range_base::set_zero): ...this.
16322 (value_range::set_nonnull): Remove.
16323 (value_range::set_null): Remove.
16324 * tree-vrp.c (range_is_null): Remove.
16325 (range_is_nonnull): Remove.
16326 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16327 instead of range_is_*null.
16328 (extract_range_from_unary_expr): Same.
16329 (value_range_base::set_nonnull): Rename to...
16330 (value_range_base::set_nonzero): ...this.
16331 (value_range::set_nonnull): Remove.
16332 (value_range_base::set_null): Rename to...
16333 (value_range_base::set_zero): ...this.
16334 (value_range::set_null): Remove.
16335 (extract_range_from_binary_expr): Rename set_*null uses to
16337 (extract_range_from_unary_expr): Same.
16338 (union_helper): Same.
16339 * vr-values.c (get_value_range): Use set_*zero instead of
16341 (vr_values::extract_range_from_binary_expr): Same.
16342 (vr_values::extract_range_basic): Same.
16344 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16347 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16349 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16351 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16352 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16354 (aarch64_<su>abd<mode>_3): ... This.
16355 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16357 2019-06-03 Richard Biener <rguenther@suse.de>
16359 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16360 full reference tree and record in ref->ref.
16361 (vn_reference_lookup_3): Pass in original ref to
16362 ao_ref_init_from_vn_reference.
16363 (vn_reference_lookup): Likewise.
16364 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16365 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16366 Handle non-decl bases in the original reference.
16368 2019-06-03 Martin Liska <mliska@suse.cz>
16370 * doc/generic.texi: Remove Java Trees.
16372 2019-06-03 Martin Liska <mliska@suse.cz>
16374 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16375 returns 0 when operands are equal.
16377 2019-06-03 Richard Biener <rguenther@suse.de>
16379 PR tree-optimization/90716
16380 * tree-loop-distribution.c (destroy_loop): Process blocks in
16383 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16386 * vector-builder.h (vector_builder::count_dups): New method.
16387 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16389 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16390 (vec_init<mode><Vel>): New pattern.
16391 * config/aarch64/aarch64.c (emit_insr): New function.
16392 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16393 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16394 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16395 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16397 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16399 PR tree-optimization/90681
16400 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16401 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16402 special case for SLP, but fail on non-groupped loads.
16404 2019-06-03 Martin Liska <mliska@suse.cz>
16406 * cfg.c (debug): Use TDF_DETAILS for debug and
16407 print edge info only once.
16409 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16412 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16414 2019-06-01 Martin Sebor <msebor@redhat.com>
16416 PR middle-end/90694
16417 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16419 2019-05-31 Jan Hubicka <jh@suse.cz>
16421 * alias.c: Include ipa-utils.h.
16422 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16423 * ipa-devirt.c (prevailing_odr_type): New.
16424 * ipa-utils.h (previaling_odr_type): Declare.
16426 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16427 Hongtao Liu <hongtao.liu@intel.com>
16430 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16431 NOTE_INSN_DELETED_LABEL check.
16433 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16434 Robert Suchanek <robert.suchanek@mips.com>
16436 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16437 and 3rd operands of the fmadd/fmsub/maddv builtin.
16439 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16441 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16442 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16443 on OMP_SIMD if not nested inside of worksharing loop that also has
16444 lastprivate conditional clause for the same decl.
16445 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16446 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16448 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16450 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16452 (lower_lastprivate_clauses): Likewise.
16453 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16454 calling lower_rec_input_clauses.
16455 (lower_omp_for): Likewise.
16456 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16457 clause on simd construct.
16458 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16459 OMP_CLAUSE__CONDTEMP_ clause is present.
16461 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16464 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16467 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16468 TEX_D32, TEX_D64 or TEX_D128.
16470 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16472 * match.pd (~(vec?cst1:cst2)): New transformation.
16474 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16476 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16477 ((size_t)(A /[ex] B) CMP C): New transformation.
16479 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16481 * doc/md.texi: Document define_insn_and_rewrite.
16482 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16483 * gensupport.c (queue_elem): Update comment.
16484 (replace_operands_with_dups): New function.
16485 (gen_rewrite_sequence): Likewise.
16486 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16487 * read-rtl.c (apply_subst_iterator): Likewise.
16488 (add_condition_to_rtx, named_rtx_p): Likewise.
16489 (rtx_reader::read_rtx_operand): Likewise.
16490 * config/aarch64/aarch64-sve.md
16491 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16492 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16493 define_insn_and_rewrite.
16494 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16495 Remove separate define_split.
16497 2019-05-31 Jan Hubicka <jh@suse.cz>
16499 * tree-ssa-alias.c (type_has_components_p): New function.
16500 (aliasing_component_refs_p): Use it.
16502 2019-05-31 Martin Liska <mliska@suse.cz>
16504 * gdbhooks.py: Add const_tree to TreePrinter.
16506 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16509 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16510 * doc/invoke.texi (Debugging Options): Document new default of
16511 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16513 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16515 PR tree-optimization/90671
16516 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16517 template_block used to be empty on the first call, don't use
16518 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16519 seq with bb_seq and set it with set_bb_seq.
16521 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16523 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16525 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16526 Michael Meissner <meissner@linux.ibm.com>
16528 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16529 (prefixed_mem_operand): Likewise.
16530 (non_prefixed_mem_operand): Likewise.
16531 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16533 * config/rs6000/rs6000.c (print_operand_address): Handle
16534 PC-relative addresses.
16535 (mode_supports_prefixed_address_p): New function.
16536 (rs6000_prefixed_address): New function.
16537 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16538 (SYMBOL_REF_PCREL_P): Likewise.
16540 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16542 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16543 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16544 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16545 is nested inside of parallel region, add _condtemp_ clause to both.
16546 * tree-nested.c (convert_nonlocal_omp_clauses,
16547 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16549 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16551 * omp-general.c (omp_extract_for_data): Compute it.
16552 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16553 (lower_rec_input_clauses): Likewise.
16554 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16555 clause is already present, just add one further one after it.
16556 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16557 (lower_send_shared_vars): Clear _condtemp_ vars.
16558 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16559 or section or taskgroup.
16560 * omp-expand.c (determine_parallel_type): Disallow combining only if
16561 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16562 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16563 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16564 expand_omp_for_static_chunk, expand_omp_for): Use
16565 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16566 determine if a special set of API routines are needed and if condtemp
16567 needs to be initialized, while always initialize cond_var if
16568 fd->lastprivate_conditional is non-zero.
16570 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16571 Michael Meissner <meissner@linux.ibm.com>
16573 * config/rs6000/constraints.md (eI): New constraint.
16574 * config/rs6000/predicates.md (cint34_operand): New predicate.
16575 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16576 (SIGNED_34BIT_OFFSET_P): Likewise.
16577 * doc/md.texi (eI): Document constraint.
16579 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16581 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16583 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16584 Michael Meissner <meissner@linux.ibm.com>
16586 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16587 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16588 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16589 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16590 (OTHER_FUTURE_MASKS): Likewise.
16591 (POWERPC_MASKS): Likewise.
16592 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16593 specified without -mprefixed-addr or -mcpu=future. Error if
16594 -mprefixed-addr is specified without -mcpu=future.
16595 (rs6000_opt_masks): Add entry for prefixed-addr.
16596 * rs6000.opt (mprefixed-addr): New option.
16598 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16600 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16601 cfun->is_thunk check.
16603 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16605 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16608 2019-05-30 Martin Liska <mliska@suse.cz>
16610 * gdbinit.in: Fix 'ptc' command. Add trt
16611 that prints TREE_TYPE($).
16613 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16614 Alan Modra <amodra@gmail.com>
16616 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16618 (rs6000_indirect_call_template_1): ...and here.
16619 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16620 plt16_ha, plt16_lo, mtctr indirect calls. Use
16621 rs6000_pltseq_enum.
16622 (rs6000_decl_ok_for_sibcall): New function.
16623 (rs6000_function_ok_for_sibcall): Refactor.
16624 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16625 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16626 when pcrel. Reorganize.
16627 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16628 * rs6000.h (rs6000_pltseq_enum): New enum.
16629 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16630 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16631 (*pltseq_plt16_ha): Likewise.
16632 (*pltseq_plt16_lo): Likewise.
16633 (*pltseq_mtctr): Likewise.
16634 (*pltseq_plt_pcrel): New insn.
16635 (*call_local_aix): Handle @notoc calls.
16636 (*call_value_local_aix): Likewise.
16637 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16638 (*call_value_nonlocal_aix): Likewise.
16639 (*call_indirect_pcrel): New insn.
16640 (*call_value_indirect_pcrel): Likewise.
16642 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16644 * config/i386/sse.md (*save_multiple<mode>): Rename from
16645 save_multiple<mode>.
16646 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16647 (*restore_multiple_and_return<mode>): Rename from
16648 restore_multiple_and_return<mode>.
16649 (*restore_multiple_leave_return<mode>): Rename from
16650 restore_multiple_leave_return<mode>.
16652 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16654 * config.gcc (rx-*-linux*): New target.
16655 * config/rx/elf.opt: New file.
16656 * config/rx/linux.h: Likewise.
16657 * config/rx/t-linux: Likewise.
16658 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16660 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16661 (ASM_APP_OFF): Likewise.
16662 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16665 2019-05-29 Jan Hubicka <jh@suse.cz>
16667 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16668 variants are pointer equivalent.
16670 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16672 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16673 * config/aarch64/aarch64-sve2.md: New file.
16674 (<u>avg<mode>3_floor): New pattern.
16675 (<u>avg<mode>3_ceil): Likewise.
16676 (*<sur>h<addsub><mode>): Likewise.
16677 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16678 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16680 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16683 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16684 for var_opt_string printing. In cl_optimization_print_diff, print
16685 (null) instead of invoking undefined behavior if one of the
16686 var_opt_string pointers is NULL and use && instead of first || in the
16687 guarding condition. For var_target_other options, handle const char *
16688 target variables similarly to const char * optimize node variables.
16690 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16692 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16693 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16694 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16695 Add autib1716 and pacib1716 initialisation.
16696 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16697 for autib1716 and pacib1716.
16698 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16699 aarch64_post_cfi_startproc): Define.
16700 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16701 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16702 aarch64_handle_pac_ret_protection): Set default sign key to A.
16703 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16704 aarch64_expand_prologue): Add check for b-key.
16705 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16706 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16707 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16708 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16709 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16710 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16711 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16712 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16713 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16714 pauth_hint_num_a with pauth_hint_num.
16715 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16716 pauth_hint_num_a with pauth_hint_num.
16717 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16718 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16719 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16720 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16721 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16722 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16723 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16724 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16725 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16726 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16727 UNSPEC_AUTIA1716 respectively.
16728 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16729 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16730 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16731 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16732 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16733 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16735 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16737 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16738 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16739 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16740 explicit clause on combined parallel into implicit shared clause.
16741 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16742 and firstprivate if the decl has one too from combined parallel to
16743 the worksharing construct.
16745 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16746 Michael Meissner <meissner@linux.ibm.com>
16748 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16750 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16752 * rtl.h (LABEL_REF_P): New #define.
16754 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16756 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16758 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16760 * internal-fn.c: Marked mask_load_direct as vectorizable.
16761 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16762 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16763 combined even if masks different with allow_slp_p param.
16764 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16765 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16766 dissolve SLP-only vectorizable groups when SLP has been discarded.
16767 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16768 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16770 (vect_build_slp_tree_1): Fixed comment typo.
16771 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16772 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16773 loads for SLP only.
16774 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16776 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16778 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16780 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16781 Remove obsolete use_thunk reference.
16782 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16783 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16784 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16785 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16786 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16787 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16788 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16789 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16790 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16792 2019-05-28 Nathan Sidwell <nathan@acm.org>
16794 * tree.h (IDENTIFIER_ANON_P): New.
16795 (anon_aggrname_format, anon_aggname_p): Don't declare.
16796 (make_anon_name): Declare.
16797 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16798 (hash_tree): Likewise.
16799 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16800 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16801 (anon_cnt, make_anon_name): New.
16803 2019-05-28 Martin Liska <mliska@suse.cz>
16806 * opts-global.c (decode_options): Print help for all
16807 help_option_arguments.
16808 * opts.c (print_help): Add new argument.
16809 (common_handle_option): Remember all values into
16810 help_option_arguments.
16811 * opts.h (print_help): Add new argument.
16813 2019-05-28 Martin Liska <mliska@suse.cz>
16816 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16817 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16818 (func_checker::compare_bb): Call compare_loops.
16820 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16822 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16823 on sections construct.
16824 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16826 (lower_omp_sections): Handle lastprivate conditional.
16827 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16828 lastprivate_conditional_map.
16829 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16831 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16832 critical, taskgroup and section regions when looking for a region
16833 with non-NULL lastprivate_conditional_map.
16835 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16837 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16838 (*ix86_gen_sub3): Ditto.
16839 (*ix86_gen_sub3_carry): Ditto.
16840 (*ix86_gen_one_cmpl2): Ditto.
16841 (*ix86_gen_andsp): Ditto.
16842 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16843 (gen_and2_insn): New static function.
16844 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16845 Use gen_add3_insn instead of ix86_gen_add3.
16846 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16847 instead of ix86_gen_add3.
16848 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16849 Use gen_sub3_insn instead of ix86_gen_sub3.
16850 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16851 instead of ix86_gen_add3.
16852 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16853 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16854 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16855 * config/i386/i386-options.c (ix86_option_override_internal):
16856 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16857 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16859 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16861 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16862 and DW_OP_GNU_const_index opcodes.
16864 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16866 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16868 2019-05-27 Richard Biener <rguenther@suse.de>
16870 PR tree-optimization/90637
16871 * tree-ssa-sink.c (statement_sink_location): Honor the
16872 computed sink location for single-uses.
16874 2019-05-27 Richard Biener <rguenther@suse.de>
16876 PR middle-end/90610
16877 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16880 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16882 * config/i386/i386.md (@sub<mode>3_carry): Rename
16883 from sub<mode>3_carry.
16884 (@leave_<mode>): New expander.
16885 (*leave): Rename from leave.
16886 (*leave_rex64): Rename from leave_rex64.
16887 (@monitorx_<mode>): Rename from monitorx_<mode>.
16888 (@clzero_<mode>): Rename from clzero_<mode>.
16889 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16890 from sse3_monitor_<mode>.
16891 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16892 (*ix86_gen_leave): Ditto.
16893 (*ix86_gen_monitor): Ditto.
16894 (*ix86_gen_monitorx): Ditto.
16895 (*ix86_gen_clzero): Ditto.
16896 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16897 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16898 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16899 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16900 Use gen_sse3_monitor instead of ix86_gen_monitor.
16901 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16902 instead of ix86_gen_monitorx.
16903 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16904 instead of ix86_gen_clzero.
16905 * config/i386/i386-options.c (ix86_option_override_internal):
16906 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16907 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16909 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16911 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16912 Rename from tls_global_dynamic_64_<mode>.
16913 (@tls_local_dynamic_base_64_<mode>): Rename from
16914 tls_local_dynamic_base_64_<mode>.
16915 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16916 Remove indirect function.
16917 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16918 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16919 instead of ix86_gen_tls_global_dynamic_64.
16920 Use gen_tls_local_dynamic_base_64 instead of
16921 ix86_gen_tls_local_dynamic_base_64.
16922 * config/i386/i386-options.c (ix86_option_override_internal):
16923 Do not initialize ix86_gen_tls_global_dynamic_64 and
16924 ix86_gen_tls_local_dynamic_base_64.
16926 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16928 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16929 Rename from pro_epilogue_adjust_stack_<mode>_add.
16930 (@pro_epilogue_adjust_stack_sub_<mode>)
16931 Rename from pro_epilogue_adjust_stack_<mode>_sub.
16932 (@allocate_stack_worker_probe_<mode>):
16933 Rename from allocate_stack_worker_probe_<mode>.
16934 (allocate_stack): Use gen_allocate_stack_worker_probe.
16935 (probe_stack): Use gen_probe_stack_1.
16936 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16937 (@adjust_stack_and_probe_<mode>): Rename from
16938 adjust_stack_and_probe<mode>.
16939 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16940 (stack_protect_set): Use gen_stack_protect_set_1.
16941 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16942 (stack_protect_test): Use gen_stack_protect_test_1.
16943 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16944 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16945 Remove indirect function.
16946 (*ix86_gen_adjust_stack_and_probe): Ditto.
16947 (*ix86_gen_probe_stack_range): Ditto.
16948 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16949 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16950 (ix86_adjust_stack_and_probe_stack_clash): Use
16951 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
16952 (ix86_adjust_stack_and_probe): Ditto.
16953 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
16954 of ix86_gen_probe_stack_range.
16955 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
16956 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
16957 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
16958 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
16959 CODE_FOR_stack_protect_test_{si,di}.
16960 * config/i386/i386-options.c (ix86_option_override_internal):
16961 Do not initialize ix86_gen_allocate_stack_worker,
16962 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16964 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
16966 * doc/invoke.texi (Link Options): Many editorial changes around
16969 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16971 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
16972 pre-Solaris 11 referene and most Studio compiler details.
16974 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
16977 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
16978 DImode to SImode in floating-point registers on 64-bit target.
16979 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
16980 register_operand in xmpyu patterns.
16982 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16984 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
16985 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
16986 OMP_CLAUSE__REDUCTEMP_.
16987 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16988 OMP_CLAUSE__CONDTEMP_.
16989 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
16990 * tree-pretty-print.c (dump_omp_clause): Likewise.
16991 * tree-nested.c (convert_nonlocal_omp_clauses,
16992 convert_local_omp_clauses): Likewise.
16993 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
16994 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
16995 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
16997 (gimplify_omp_for): Warn and disable conditional modifier from
16998 lastprivate on loop iterators.
16999 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17001 * omp-general.c (omp_extract_for_data): Initialize it.
17002 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17004 (delete_omp_context): Delete it.
17005 (lower_lastprivate_conditional_clauses): New function.
17006 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17007 handle lastprivate conditional clauses.
17008 (lower_reduction_clauses): Add CLIST argument, emit it into
17009 the critical section if any.
17010 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17011 lower_reduction_clauses callers.
17012 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17013 to lower_lastprivate_clauses.
17014 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17015 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17016 clist into a critical section if not emitted there already by
17017 lower_reduction_clauses.
17018 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17020 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17021 conditional variables.
17022 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17024 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17025 expand_omp_for_static_chunk): Handle lastprivate conditional.
17026 (expand_omp_for): Handle fd.lastprivate_conditional like
17029 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17031 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17032 kernel does not exit cleanly.
17033 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17035 2019-05-24 Jason Merrill <jason@redhat.com>
17038 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17040 2019-05-24 Richard Biener <rguenther@suse.de>
17043 * tree-loop-distribution.c (struct partition): Add location
17045 (partition_alloc): Initialize all fields.
17046 (generate_memset_builtin): Use the location recorded in the
17047 partition for the generated call.
17048 (generate_memcpy_builtin): Likewise.
17049 (classify_partition): Record the location of a single store
17050 as location for the partition.
17052 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17054 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17057 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17060 * common/config/aarch64/aarch64-common.c
17061 (aarch64_rewrite_selected_cpu): Change local temporary variable
17062 type from unsigned long to uint64_t.
17063 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17064 aarch64_get_extension_string_for_isa_flags): Change declaration to
17065 match new definition by replacing unsigned long with uint64_t.
17067 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17070 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17071 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17072 Handle stack_protect_test_<mode> codegen similarly to corresponding
17075 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17077 * config/i386/darwin.h: Reject -mfentry*.
17078 * doc/sourcebuild.texi: Document mfentry target support.
17080 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17082 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17083 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17084 false for PC-relative functions.
17085 (rs6000_output_function_prologue): Change called function name to
17086 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17087 name,1" for PC-relative functions.
17088 (rs6000_elf_declare_function_name): Change called function name to
17089 rs6000_global_entry_point_prologue_needed_p.
17091 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17094 * config/i386/i386.c (gen_rtx_cost):
17095 Use ix86_tune_cost instead of ix86_cost.
17097 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17098 Michael Meissner <meissner@linux.ibm.com>
17099 Segher Boessenkool <segher@kernel.crashing.org>
17101 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17103 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17104 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17105 (rs6000_fndecl_pcrel_p): Likewise.
17106 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17107 error if -mpcrel is requested without -mcpu=future.
17108 (rs6000_opt_masks): Add entry for pcrel.
17109 (rs6000_fndecl_pcrel_p): New function.
17110 (rs6000_pcrel_p): Likewise.
17111 * config/rs6000/rs6000.opt (mpcrel): New option.
17112 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17114 2019-05-23 Jan Hubicka <jh@suse.cz>
17115 Martin Liska <mliska@suse.cz>
17117 PR tree-optimization/90576
17118 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17120 (aliasing_component_refs_p): Fix three way size compare conditional;
17121 give up earlier in case we can not decide on equivalence.
17123 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17124 Michael Meissner <meissner@linux.ibm.com>
17125 Segher Boessenkool <segher@kernel.crashing.org>
17127 * config.gcc: Add future cpu.
17128 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17129 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17131 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17132 (RS6000_CPU): New instantiation for future cpu.
17133 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17135 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17136 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17137 * config/rs6000/rs6000-tables.opt: Regenerate.
17138 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17139 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17140 (rs6000_machine_from_flags): Handle future cpu.
17141 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17142 PROCESSOR_POWER9 for now.
17143 (rs6000_adjust_cost): Likewise.
17144 (rs6000_issue_rate): Likewise.
17145 (rs6000_register_move_cost): Likewise.
17146 (rs6000_opt_masks): Add entry for future.
17147 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17148 (MASK_FUTURE): New #define.
17149 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17150 * config/rs6000/rs6000.opt (mfuture): New target option.
17151 * doc/invoke.texi (mcpu): Add future cpu.
17153 2019-05-23 Martin Liska <mliska@suse.cz>
17156 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17157 operation points to a temporary (pointed via tree_to_wide_ref)
17158 that is out of scope after the &.
17160 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17163 * doc/extend.texi (Function Names): Add missing word.
17165 2019-05-23 Richard Biener <rguenther@suse.de>
17167 PR tree-optimization/88440
17168 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17170 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17172 (generate_memcpy_builtin): Likewise.
17173 (distribute_loop): Pass in whether to only distribute patterns.
17174 (prepare_perfect_loop_nest): Also allow size optimization.
17175 (pass_loop_distribution::execute): When optimizing a loop
17176 nest for size allow pattern replacement.
17178 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17181 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17184 2019-05-23 Martin Liska <mliska@suse.cz>
17187 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17188 expression similarly to gimplify_decl_expr.
17190 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17192 * cse.c (cse_dump_path): s/dump_file/f.
17194 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17197 * diagnostic-format-json.cc: Include "selftest.h".
17198 (json_from_expanded_location): Only add "file" key for non-NULL
17200 (json_from_location_range): Don't add "start" and "finish"
17201 children if they are UNKNOWN_LOCATION.
17202 (selftest::test_unknown_location): New selftest.
17203 (selftest::test_bad_endpoints): New selftest.
17204 (selftest::diagnostic_format_json_cc_tests): New function.
17205 * json.cc (json::object::get): New function.
17206 (selftest::test_object_get): New selftest.
17207 (selftest::json_cc_tests): Call it.
17208 * json.h (json::object::get): New decl.
17209 * selftest-run-tests.c (selftest::run_tests): Call
17210 selftest::diagnostic_format_json_cc_tests.
17211 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17214 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17215 Andrew Stubbs <amd@codesourcery.com>
17217 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17218 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17219 (kernel): Rename to...
17220 (main_kernel): ... this.
17221 (load_image): Load _init_array and _fini_array kernels.
17222 (run): Add argument for kernel to run.
17223 (main): Run init_array_kernel before main_kernel, and
17224 fini_array_kernel after.
17225 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17226 amdgpu_hsa_kernel attribute on functions.
17227 (gcn_disable_constructors): Delete.
17228 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17229 * config/gcn/crt0.c (size_t): Define.
17230 (_init_array, _fini_array): New.
17231 (__preinit_array_start, __preinit_array_end,
17232 __init_array_start, __init_array_end,
17233 __fini_array_start, __fini_array_end): Declare weak references.
17235 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17237 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17239 2019-05-22 Jason Merrill <jason@redhat.com>
17241 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17243 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17246 * config/i386/i386-options.c (ix86_init_machine_status): Set
17247 stack_frame_required to true.
17248 * config/i386/i386.c (ix86_get_frame_size): New function.
17249 (ix86_frame_pointer_required): Replace get_frame_size with
17250 ix86_get_frame_size.
17251 (ix86_compute_frame_layout): Likewise.
17252 (ix86_find_max_used_stack_alignment): Changed to void. Set
17253 stack_frame_required.
17254 (ix86_finalize_stack_frame_flags): Always call
17255 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17256 ix86_get_frame_size.
17257 * config/i386/i386.h (machine_function): Add stack_frame_required.
17259 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17261 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17263 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17265 * common/config/aarch64/aarch64-common.c
17266 (struct aarch64_option_extension, struct processor_name_to_arch,
17267 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17268 aarch64_contains_opt,
17269 aarch64_get_extension_string_for_isa_flags): Change type of
17270 variables storing flags to uint64_t.
17271 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17272 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17273 * config/aarch64/aarch64.c (struct processor,
17274 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17275 aarch64_validate_march, aarch64_override_options,
17276 aarch64_option_print, aarch64_handle_attr_isa_flags,
17277 aarch64_declare_function_name, aarch64_start_file): Make flag
17278 variables uint64_t.
17279 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17280 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17281 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17282 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17283 * config/aarch64/driver-aarch64.c
17284 (struct aarch64_arch_extension, struct aarch64_core_data,
17285 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17286 flag variables uint64_t.
17287 * doc/invoke.texi: Add documentation for new arguments.
17289 2019-05-22 Richard Biener <rguenther@suse.de>
17291 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17293 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17295 2019-05-22 Martin Liska <mliska@suse.cz>
17298 * doc/extend.texi: Document the change.
17300 2019-05-22 Richard Biener <rguenther@suse.de>
17302 PR tree-optimization/90450
17303 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17304 (mem_ref_hasher::equal): Check it.
17305 (mem_ref_alloc): Initialize it.
17306 (gather_mem_refs_stmt): Set it.
17308 2019-05-22 Richard Biener <rguenther@suse.de>
17310 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17312 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17315 2019-05-22 Alan Modra <amodra@gmail.com>
17317 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17318 (ASM_CPU_SPEC): Conditionally add -many.
17319 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17320 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17321 (rs6000_file_start): ..extracted from here, and modified to
17323 (rs6000_output_function_prologue): Emit .machine as necessary.
17325 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17327 PR middle-end/90553
17328 * ira-lives.c (process_bb_node_lives): Consider defs
17329 for a call insn to be die before the call, not after.
17331 * function.c (assign_parm_setup_block): Raise alignment of
17332 stacked parameter only for STRICT_ALIGNMENT targets.
17334 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17336 * config/rs6000/constraints.md (define_register_constraint "wz"):
17338 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17339 RS6000_CONSTRAINT_wz.
17340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17341 (rs6000_init_hard_regno_mode_ok): Adjust.
17342 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17343 * doc/md.texi (Machine Constraints): Adjust.
17345 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17347 * config/rs6000/constraints.md (define_register_constraint "wl"):
17349 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17350 RS6000_CONSTRAINT_wl.
17351 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17352 (rs6000_init_hard_regno_mode_ok): Adjust.
17353 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17354 * doc/md.texi (Machine Constraints): Adjust.
17356 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17358 * config/rs6000/constraints.md (define_register_constraint "wm"):
17360 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17361 RS6000_CONSTRAINT_wm.
17362 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17363 (rs6000_init_hard_regno_mode_ok): Adjust.
17364 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17365 * doc/md.texi (Machine Constraints): Adjust.
17367 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17369 * config/rs6000/constraints.md (define_register_constraint "wk"):
17371 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17372 RS6000_CONSTRAINT_wk.
17373 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17374 (rs6000_init_hard_regno_mode_ok): Adjust.
17375 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17376 * doc/md.texi (Machine Constraints): Adjust.
17378 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17380 * config/rs6000/constraints.md (define_register_constraint "wj"):
17382 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17383 RS6000_CONSTRAINT_wj.
17384 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17385 (rs6000_init_hard_regno_mode_ok): Adjust.
17386 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17388 * config/rs6000/vsx.md: Ditto.
17389 * doc/md.texi (Machine Constraints): Adjust.
17391 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17393 * config/rs6000/constraints.md (define_register_constraint "wh"):
17395 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17396 RS6000_CONSTRAINT_wh.
17397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17398 (rs6000_init_hard_regno_mode_ok): Adjust.
17399 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17400 * doc/md.texi (Machine Constraints): Adjust.
17402 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17405 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17406 Avoid calling gen_lowpart with CONST operand.
17408 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17410 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17411 field template_last_to_copy.
17412 (ssa_create_duplicates): Set it, and use it. Attempt to
17413 preserve more debug stmts.
17415 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17417 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17418 (signbit<mode>2): New expander
17420 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17423 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17424 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17426 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17428 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17429 %ebx and %ecx bafore calling cpuid with leaf 1 or
17430 non-constant leaf argument.
17432 2019-05-21 Alan Modra <amodra@gmail.com>
17435 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17436 power9 direct move cost.
17438 2019-05-21 Richard Biener <rguenther@suse.de>
17440 PR middle-end/90510
17441 * fold-const.c (fold_read_from_vector): New function.
17442 * fold-const.h (fold_read_from_vector): Declare.
17443 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17444 single-element insert permutations. Canonicalize selector
17445 further and fix issue with last commit.
17447 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17449 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17450 parameter with default value false to declaration.
17451 (split_edges_for_insertion): New inline function. Wrapper for
17452 split_critical_edges with for_edge_insertion_p = true.
17453 * tree-cfg.c (split_critical_edges): Don't split non-critical
17454 edges if for_edge_insertion_p is false. Fix whitespace.
17455 * tree-ssa-pre.c (pass_pre::execute): Call
17456 split_edges_for_insertion instead of split_critical_edges.
17457 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17458 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17459 (pass_data_sink_code): Update function name in the comment.
17461 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17463 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17464 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17465 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17466 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17469 2019-05-21 Martin Liska <mliska@suse.cz>
17471 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17473 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17474 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17476 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17478 (rs6000_function_arg): Likewise.
17479 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17480 (rs6000_expand_ternop_builtin): Use interval syntax.
17481 (get_element_number): Likewise.
17482 (altivec_expand_builtin): Likewise.
17483 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17485 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17489 * function.h (struct function): Add calls_eh_return member.
17490 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17491 gimplifying __builtin_eh_return call.
17492 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17494 (expand_call_inline): Or in src_cfun->calls_eh_return into
17495 dst_cfun->calls_eh_return.
17496 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17497 cfun->calls_eh_return.
17498 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17499 * lto-streamer-out.c (output_struct_function_base): Write
17502 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17504 PR rtl-optimization/43147
17505 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17506 IX86_BUILTIN_SHUFPD.
17508 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17510 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17511 (refs_may_alias_p_1): ... here; update stats.
17512 (refs_may_alias_p): Do not update stats here.
17514 2019-05-20 Richard Biener <rguenther@suse.de>
17516 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17517 doesn't produce pointers.
17518 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17519 the first operand points to.
17521 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17523 * tree-ssa-alias.c (compare_sizes): New function.
17524 (sompare_type_sizes): New function
17525 (aliasing_component_refs_p): Use it.
17526 (indirect_ref_may_alias_decl_p): Likewise.
17528 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17530 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17532 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17534 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17535 (LIBLSAN_EARLY_SPEC): Likewise.
17536 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17538 2019-05-20 Martin Liska <mliska@suse.cz>
17540 * config/i386/i386.c (ix86_libc_has_fast_function):
17541 Add ATTRIBUTE_UNUSED for the argument.
17543 2019-05-20 Richard Biener <rguenther@suse.de>
17545 * gimple-match-head.c: Include vec-perm-indices.h.
17546 * generic-match-head.c: Likewise.
17547 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17549 * fold-const.c (fold_vec_perm): Export.
17550 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17551 (match.pd): ...here.
17553 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17555 * cfgloop.h (struct loop): Add simdlen member.
17556 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17557 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17558 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17559 as new argument to autovectorize_vector_sizes target hook. If
17560 loop->simdlen, pick up vector size where the vectorization factor
17561 is equal to loop->simd, and if there is none, fall back to the first
17563 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17565 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17566 * omp-general.c (omp_max_vf): Likewise.
17567 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17568 * tree-vect-slp.c (vect_slp_bb): Likewise.
17569 * target.def (autovectorize_vector_sizes): Add ALL argument and
17571 * doc/tm.texi: Adjust documentation.
17572 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17573 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17574 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17576 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17577 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17578 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17579 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17580 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17581 preferred vector size is not 512-bit or 256-bit, just put those
17582 unpreferred ones last.
17584 2019-05-20 Martin Liska <mliska@suse.cz>
17586 * targhooks.c (default_libc_has_fast_function): New function.
17587 * targhooks.h (default_libc_has_fast_function): Likewise.
17589 2019-05-20 Martin Liska <mliska@suse.cz>
17591 PR middle-end/90263
17592 * builtins.c (expand_builtin_memory_copy_args): When having a
17593 target with fast mempcpy implementation do now use memcpy.
17594 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17595 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17596 * doc/tm.texi: Likewise.
17597 * doc/tm.texi.in: Likewise.
17599 * expr.c (emit_block_move_hints): Add 2 new arguments.
17600 * expr.h (emit_block_move_hints): Bail out when libcall
17601 to memcpy would be used.
17603 2019-05-20 Martin Liska <mliska@suse.cz>
17605 * profile-count.c: Add vertical spacing in order
17606 to separate functions.
17607 * profile-count.h: Likewise.
17609 2019-05-20 Martin Liska <mliska@suse.cz>
17611 * profile-count.h: Do not use full qualified
17613 * profile-count.c (profile_count::to_frequency): Likewise.
17615 2019-05-20 Martin Liska <mliska@suse.cz>
17617 * profile-count.h (enum profile_quality): Use capital letters
17618 for enum value names. Use the adjusted names.
17619 * profile-count.c: Use the adjusted names.
17621 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17623 * config/rs6000/constraints.md (define_register_constraint "wH"):
17625 (define_register_constraint "wI"): Delete.
17626 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17627 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17628 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17629 (rs6000_init_hard_regno_mode_ok): Adjust.
17630 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17631 resp. "d", or with "wa" as appropriate, all with "p8v".
17632 * config/rs6000/vsx.md: Ditto.
17633 * doc/md.texi (Machine Constraints): Adjust.
17635 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17637 * config/rs6000/constraints.md (define_register_constraint "wy"):
17639 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17640 RS6000_CONSTRAINT_wy.
17641 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17642 (rs6000_init_hard_regno_mode_ok): Adjust.
17643 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17644 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17645 (define_mode_attr Fisa): New.
17646 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17647 * doc/md.texi (Machine Constraints): Adjust.
17649 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17651 * config/rs6000/constraints.md (define_register_constraint "wu"):
17653 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17654 RS6000_CONSTRAINT_wu.
17655 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17656 (rs6000_init_hard_regno_mode_ok): Adjust.
17657 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17659 (define_mode_attr Fa): Delete.
17660 * config/rs6000/vsx.md: Ditto.
17661 * doc/md.texi (Machine Constraints): Adjust.
17663 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17665 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17667 (define_register_constraint "wK"): Delete.
17668 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17669 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17670 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17671 (rs6000_init_hard_regno_mode_ok): Adjust.
17672 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17673 Replace "wK" constraint by "wH" with "p9v".
17674 * config/rs6000/vsx.md: Ditto.
17675 * doc/md.texi (Machine Constraints): Adjust.
17677 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17679 * config/rs6000/constraints.md (define_register_constraint "wb"):
17681 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17682 RS6000_CONSTRAINT_wb.
17683 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17684 (rs6000_init_hard_regno_mode_ok): Adjust.
17685 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17686 * config/rs6000/vsx.md: Ditto.
17687 * doc/md.texi (Machine Constraints): Adjust.
17689 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17691 * config/rs6000/constraints.md (define_register_constraint "wo"):
17693 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17694 RS6000_CONSTRAINT_wo.
17695 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17696 (rs6000_init_hard_regno_mode_ok): Adjust.
17697 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17698 * config/rs6000/altivec.md: Ditto.
17699 * doc/md.texi (Machine Constraints): Adjust.
17701 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17703 * config/darwin-c.c (darwin_register_objc_includes): Do not
17704 prepend the sysroot when building gnu-runtime header search
17707 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17709 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17710 instead of direct output of the asm.
17712 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17714 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17715 argument to be type bool (was int before).
17716 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17717 at first use. Use type bool for some variables. Fix a theoretical
17718 eh_return bug for svr4.
17720 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17722 * config/rs6000/rs6000.md (isa): New attribute.
17723 (enabled): New attribute.
17725 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17727 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17728 assemble_start_function and assemble_end_function.
17730 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17732 PR middle-end/89433
17733 * omp-general.c (oacc_verify_routine_clauses): Change formal
17734 parameters. Add checking if already marked with an OpenACC
17735 'routine' directive. Adjust all users.
17737 PR middle-end/89433
17738 * omp-general.c (oacc_build_routine_dims): Move some of its
17740 (oacc_verify_routine_clauses): ... this new function.
17741 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17743 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17745 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17746 formating of picbase labels to match other ports.
17748 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17750 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17751 in the generated code.
17753 2019-05-16 Martin Sebor <msebor@redhat.com>
17755 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17756 identifiers, keywords, operators, and types in diagnostics. Correct
17757 quoting, spelling, and sentence capitalization issues.
17758 (expand_builtin_atomic_is_lock_free): Same.
17759 (fold_builtin_next_arg): Same.
17760 * cfgexpand.c (expand_one_var): Same.
17761 (tree_conflicts_with_clobbers_p): Same.
17762 (expand_asm_stmt): Same.
17763 (verify_loop_structure): Same.
17764 * cgraphunit.c (process_function_and_variable_attributes): Same.
17765 * collect-utils.c (collect_execute): Same.
17766 * collect2.c (maybe_run_lto_and_relink): Same.
17767 (is_lto_object_file): Same.
17768 (scan_prog_file): Same.
17769 * convert.c (convert_to_real_1): Same.
17770 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17771 * except.c (verify_eh_tree): Same.
17772 * gcc.c (execute): Same.
17773 (eval_spec_function): Same.
17774 (run_attempt): Same.
17775 (driver::set_up_specs): Same.
17776 (compare_debug_auxbase_opt_spec_function): Same.
17777 * gcov-tool.c (unlink_gcda_file): Same.
17779 (do_rewrite): Same.
17780 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17781 * gimplify.c (gimplify_asm_expr): Same.
17782 (gimplify_adjust_omp_clauses): Same.
17783 * hsa-gen.c (gen_hsa_addr_insns): Same.
17784 (gen_hsa_insns_for_load): Same.
17785 (gen_hsa_cmp_insn_from_gimple): Same.
17786 (gen_hsa_insns_for_operation_assignment): Same.
17787 (gen_get_level): Same.
17788 (gen_hsa_alloca): Same.
17789 (omp_simple_builtin::generate): Same.
17790 (gen_hsa_atomic_for_builtin): Same.
17791 (gen_hsa_insns_for_call): Same.
17792 * input.c (dump_location_info): Same.
17793 * ipa-devirt.c (compare_virtual_tables): Same.
17794 * ira.c (ira_setup_eliminable_regset): Same.
17795 * lra-assigns.c (lra_assign): Same.
17796 * lra-constraints.c (lra_constraints): Same.
17797 * lto-streamer-in.c (lto_input_mode_table): Same.
17798 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17799 (merge_and_complain): Same.
17800 (compile_offload_image): Same.
17801 (compile_images_for_offload_targets): Same.
17802 (debug_objcopy): Same.
17805 * opts.c (print_specific_help): Same.
17806 (parse_no_sanitize_attribute): Same.
17807 (print_help): Same.
17808 (handle_param): Same.
17809 * plugin.c (add_new_plugin): Same.
17810 (parse_plugin_arg_opt): Same.
17811 (try_init_one_plugin): Same.
17812 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17813 operators, and types in diagnostics. Correct quoting and spelling
17815 * read-rtl-function.c (parse_edge_flag_token): Same.
17816 (function_reader::parse_enum_value): Same.
17817 * reg-stack.c (check_asm_stack_operands): Same.
17818 * regcprop.c (validate_value_data): Same.
17819 * sched-rgn.c (make_pass_sched_fusion): Same.
17820 * stmt.c (check_unique_operand_names): Same.
17821 * targhooks.c (default_target_option_pragma_parse): Same.
17822 * tlink.c (recompile_files): Same.
17823 * toplev.c (process_options): Same.
17824 (do_compile): Same.
17825 * trans-mem.c (diagnose_tm_1): Same.
17826 (ipa_tm_scan_irr_block): Same.
17827 (ipa_tm_diagnose_transaction): Same.
17828 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17829 format a tree code name in a diagnostic.
17830 (verify_types_in_gimple_min_lval): Same.
17831 (verify_types_in_gimple_reference): Same.
17832 (verify_gimple_call): Same.
17833 (verify_gimple_assign_unary): Same.
17834 (verify_gimple_assign_binary): Same.
17835 (verify_gimple_assign_ternary): Same.
17836 (verify_gimple_assign_single): Same.
17837 (verify_gimple_switch): Same.
17838 (verify_gimple_label): Same.
17839 (verify_gimple_phi): Same.
17840 (verify_gimple_in_seq): Same.
17841 (verify_eh_throw_stmt_node): Same.
17842 (collect_subblocks): Same.
17843 (gimple_verify_flow_info): Same.
17844 (do_warn_unused_result): Same.
17845 * tree-inline.c (expand_call_inline): Same.
17846 * tree-into-ssa.c (update_ssa): Same.
17847 * tree.c (tree_int_cst_elt_check_failed): Same.
17848 (tree_vec_elt_check_failed): Same.
17849 (omp_clause_operand_check_failed): Same.
17850 (verify_type_variant): Same.
17851 (verify_type): Same.
17852 * value-prof.c (verify_histograms): Same.
17853 * varasm.c (assemble_start_function): Same.
17855 2019-05-16 Martin Sebor <msebor@redhat.com>
17857 * config/i386/i386-expand.c (get_element_number): Quote keywords
17858 and other internal names in diagnostics. Adjust other diagnostic
17859 formatting issues noted by -Wformat-diag.
17860 * config/i386/i386-features.c
17861 (ix86_mangle_function_version_assembler_name): Same.
17862 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17863 * config/i386/i386.c (ix86_function_type_abi): Same.
17864 (ix86_function_ms_hook_prologue): Same.
17865 (classify_argument): Same.
17866 (ix86_expand_prologue): Same.
17867 (ix86_md_asm_adjust): Same.
17868 (ix86_memmodel_check): Same.
17870 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17872 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17873 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17876 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17879 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17880 intrinsics without SSE/SSE2/SSSE3.
17881 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17883 (*mmx_uavgv8qi3): Likewise.
17885 2019-05-17 Richard Biener <rguenther@suse.de>
17887 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17888 VEC_PERM_EXPR as __VEC_PERM with -gimple.
17890 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
17892 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17893 vec_sldw insn pattern.
17895 2019-05-17 Richard Biener <rguenther@suse.de>
17897 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17899 2019-05-17 Martin Liska <mliska@suse.cz>
17902 * toplev.c (output_stack_usage): With LTO and sanitizer it
17903 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17904 has no file location.
17906 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17909 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17910 sz0 is equal to sz1, instead return false in that case.
17912 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17913 has non-constant expression, force sctx.lane and use two
17914 argument IFN_GOMP_SIMD_LANE instead of single argument.
17915 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17916 two argument IFN_GOMP_SIMD_LANE without lhs.
17917 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17919 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17921 (LOOP_REQUIRES_VERSIONING): Or in
17922 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17923 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17925 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17926 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17927 from simd if clause if needed.
17929 2019-05-16 Richard Biener <rguenther@suse.de>
17931 * tree-affine.c (expr_to_aff_combination): New function split
17933 (tree_to_aff_combination): ... here.
17934 (aff_combination_expand): Avoid building a GENERIC tree.
17936 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
17938 * cgraphunit.c (cgraph_node::expand_thunk): Remove
17939 assemble_start_function and assemble_end_function calls.
17940 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17941 assemble_start_function and assemble_end_function.
17942 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17943 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17944 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17945 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17946 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17947 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17948 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17949 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17950 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17951 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17952 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17953 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
17955 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17956 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
17957 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
17958 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
17959 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17960 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17961 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
17962 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
17963 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17964 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17965 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17966 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17967 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
17968 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
17970 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17971 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17972 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
17974 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
17976 * tree-ssa-alias.c (alias_stats): Add
17977 aliasing_component_refs_p_may_alias and
17978 aliasing_component_refs_p_no_alias.
17979 (dump_alias_stats): Print aliasing_component_refs_p stats.
17980 (aliasing_component_refs_p): Update stats.
17982 2019-05-16 Martin Liska <mliska@suse.cz>
17985 * multiple_target.c (expand_target_clones): Do not allow
17986 target_clones being used with a symbol that is an alias.
17988 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
17990 PR tree-optimization/90394
17991 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
17992 positives rather than ICE for cases where (code2 == NE_EXPR
17993 && code1 == BIT_AND_EXPR).
17995 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17998 * tree-core.h (struct tree_decl_common): Document
17999 decl_nonshareable_flag for PARM_DECLs.
18000 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18001 * calls.c (expand_call): Don't try tail call if caller
18002 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18003 passed on the stack and callee needs to pass any arguments on the
18005 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18006 else if instead of series of mutually exclusive ifs. Handle
18007 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18008 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18010 * lto-streamer.h (LTO_major_version): Bump to 9.
18012 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18014 PR tree-optimization/90106
18015 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18016 new parameter as new internal function call, also move it to new
18018 (use_internal_fn): Pass internal function call to
18019 shrink_wrap_one_built_in_call_with_conds.
18021 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18023 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18025 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18026 safelen_int and set loop->dont_vectorize.
18028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18031 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18033 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18035 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18036 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18037 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18043 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18044 define_insn_and_split to support SSE emulation.
18045 (*vec_extractv2sf_0): Likewise.
18046 (*vec_extractv2sf_1): Likewise.
18047 (*vec_extractv2si_0): Likewise.
18048 (*vec_extractv2si_1): Likewise.
18049 (*vec_extractv2si_zext_mem): Likewise.
18050 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18051 (vec_extractv2sf_1 splitter): Likewise.
18052 (vec_extractv2sfsf): Likewise.
18053 (vec_setv2si): Likewise.
18054 (vec_extractv2si_1 splitter): Likewise.
18055 (vec_extractv2sisi): Likewise.
18056 (vec_setv4hi): Likewise.
18057 (vec_extractv4hihi): Likewise.
18058 (vec_setv8qi): Likewise.
18059 (vec_extractv8qiqi): Likewise.
18060 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18061 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18062 (vec_extractv2sisi): Likewise.
18063 (vec_extractv4hihi): Likewise.
18064 (vec_extractv8qiqi): Likewise.
18065 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18066 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18067 (vec_initv2sisi): Likewise.
18068 (vec_initv4hihi): Likewise.
18069 (vec_initv8qiqi): Likewise.
18070 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18071 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18072 (vec_setv4hi): Likewise.
18073 (vec_setv8qi): Likewise.
18075 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18078 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18079 TARGET_MMX_WITH_SSE.
18080 (MMXMODE:*mov<mode>_internal): Likewise.
18081 (MMXMODE:movmisalign<mode>): Likewise.
18083 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18086 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18087 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18088 (sse2_cvtpd2pi): Ditto.
18089 (sse2_cvttpd2pi): Ditto.
18090 (*vec_concatv2sf_sse4_1): Ditto.
18091 (*vec_concatv2sf_sse): Ditto.
18092 (*vec_concatv2si_sse4_1): Ditto.
18093 (*vec_concatv2si): Ditto.
18094 (*vec_concatv4si_0): Ditto.
18095 (*vec_concatv2di_0): Ditto.
18097 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18100 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18102 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18105 * config/i386/sse.md (ssse3_palignrdi): Changed to
18106 define_insn_and_split to support SSE emulation.
18108 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18111 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18113 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18116 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18117 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18120 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18123 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18124 or TARGET_MMX_WITH_SSE.
18125 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18127 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18130 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18132 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18135 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18136 Changed to define_insn_and_split to support SSE emulation.
18138 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18141 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18142 Changed to define_insn_and_split to support SSE emulation.
18144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18147 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18148 (*mmx_<emms>): This.
18149 (mmx_<emms>): New expander.
18151 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18154 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18156 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18158 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18161 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18163 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18166 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18168 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18171 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18172 TARGET_MMX_WITH_SSE.
18173 (*mmx_uavgv4hi3): Add SSE emulation.
18175 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18178 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18179 and TARGET_MMX_WITH_SSE.
18180 (*mmx_uavgv8qi3): Add SSE emulation.
18182 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18185 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18186 maskmovdqu for __MMX_WITH_SSE__.
18188 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18191 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18192 TARGET_MMX and TARGET_MMX_WITH_SSE.
18193 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18195 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18198 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18199 define_insn_and_split to support SSE emulation.
18201 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18204 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18205 and TARGET_MMX_WITH_SSE.
18206 (mmx_<code>v8qi3): Likewise.
18207 (smaxmin:<code>v4hi3): New.
18208 (umaxmin:<code>v8qi3): Likewise.
18209 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18210 (umaxmin:*mmx_<code>v8qi3): Likewise.
18212 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18215 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18216 TARGET_MMX_WITH_SSE.
18217 (*mmx_pinsrw): Add SSE emulation.
18219 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18222 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18224 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18227 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18228 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18231 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18234 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18235 (sse_cvttps2pi): Likewise.
18237 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18240 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18241 TARGET_MMX_WITH_SSE.
18242 (mmx_pshufw_1): Add SSE emulation.
18243 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18244 TARGET_MMX_WITH_SSE to support SSE emulation.
18246 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18249 * config/i386/constraints.md (Yw): New constraint.
18250 * config/i386/mmx.md (*vec_dupv2si): Changed to
18251 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18252 support SSE emulation.
18254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18257 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18258 TARGET_MMX_WITH_SSE.
18259 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18261 (mmx_gt<mode>3): Likewise.
18263 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18266 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18267 TARGET_MMX_WITH_SSE. Add SSE support.
18269 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18272 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18273 TARGET_MMX_WITH_SSE.
18274 (any_logic:<code><mode>3): New.
18275 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18278 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18281 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18282 TARGET_MMX_WITH_SSE. Add SSE emulation.
18283 (mmx_<shift_insn><mode>3): Likewise.
18284 (ashr<mode>3): New.
18285 (<shift_insn><mode>3): Likewise.
18287 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18290 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18291 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18293 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18296 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18297 TARGET_MMX_WITH_SSE.
18298 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18301 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18304 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18305 TARGET_MMX_WITH_SSE.
18307 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18310 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18313 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18314 (plusminus:mmx_<plusminus_insn><mode>3): Check
18315 TARGET_MMX_WITH_SSE.
18316 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18317 (<plusminus_insn><mode>3): New.
18318 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18319 (*mmx_<plusminus_insn><mode>3): Likewise.
18321 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18324 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18325 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18327 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18328 define_insn_and_split to support SSE emulation.
18329 (mmx_punpcklbw): Likewise.
18330 (mmx_punpckhwd): Likewise.
18331 (mmx_punpcklwd): Likewise.
18332 (mmx_punpckhdq): Likewise.
18333 (mmx_punpckldq): Likewise.
18335 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18336 Uros Bizjak <ubizjak@gmail.com>
18339 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18341 (ix86_split_mmx_pack): Likewise.
18342 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18344 (ix86_split_mmx_pack): Likewise.
18345 * config/i386/i386.md (mmx_isa): New.
18346 (enabled): Also check mmx_isa.
18347 * config/i386/mmx.md (any_s_truncate): New code iterator.
18348 (s_trunsuffix): New code attr.
18349 (mmx_packsswb): Removed.
18350 (mmx_packssdw): Likewise.
18351 (mmx_packuswb): Likewise.
18352 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18353 MMX packsswb/packuswb with SSE2.
18354 (mmx_packssdw): Likewise.
18355 * config/i386/predicates.md (register_mmxmem_operand): New.
18357 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18360 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18361 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18362 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18363 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18364 (ix86_vector_mode_supported_p): Likewise.
18365 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18367 2019-05-15 Martin Liska <mliska@suse.cz>
18369 PR middle-end/90478
18370 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18371 Check for overflow.
18373 2019-05-15 Richard Biener <rguenther@suse.de>
18375 * tree-into-ssa.c (pass_build_ssa::execute): Run
18376 update_address_taken before going into SSA.
18378 2019-05-15 Richard Biener <rguenther@suse.de>
18380 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18381 as __BIT_FIELD_REF with type with -gimple.
18383 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18385 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18386 semantically equivalent branches (left over after prior refactorings).
18388 2019-05-15 Richard Biener <rguenther@suse.de>
18390 PR tree-optimization/88828
18391 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18394 2019-05-14 Richard Biener <rguenther@suse.de>
18396 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18397 as __VIEW_CONVERT with -gimple.
18399 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18402 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18405 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18407 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18408 define_split to become a define_insn_and_split.
18410 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18412 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18414 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18415 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18416 (sibcall_epilogue): Adjust.
18417 (epilogue): Adjust.
18419 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18421 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18422 to unsupported ones.
18423 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18424 * config.host: Likewise.
18425 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18426 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18427 __svr4__]: Remove "brand" fallback.
18428 [!KSTAT_DATA_STRING]: Remove.
18429 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18431 (comdat_group): Likewise.
18432 (set_have_as_tls): Likewise.
18433 (gcc_cv_target_dl_iterate_phdr): Likewise.
18434 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18435 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18436 * configure: Regenerate.
18437 * doc/install.texi: Simplify Solaris target triplets.
18438 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18439 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18440 Remove Solaris 10 references.
18441 Remove obsolete Solaris bug reference.
18442 (Specific, sparc-sun-solaris2.10): Remove.
18444 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18446 * config/i386/i386.md (any_div): New code iterator.
18447 (paired_mod): New code attribute.
18448 (sgnprefix): Handle DIV and UDIV RTXes.
18450 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18451 and udivmod<mode>4 patterns using any_div code iterator.
18452 (divmod splitters): Macroize splitters using any_div code iterator.
18453 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18454 (*udivmodsi4_pow2_zext_2): Ditto.
18455 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18456 and *udivmod<mode>4_noext patterns using any_div code iterator.
18457 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18458 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18459 patterns using any_div code iterator.
18460 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18461 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18462 patterns using any_div code iterator.
18463 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18464 udivmodhiqi3 patterns using any_extend code iterator.
18466 2019-05-14 Richard Biener <rguenther@suse.de>
18467 H.J. Lu <hongjiu.lu@intel.com>
18469 PR tree-optimization/88828
18470 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18471 permuting in a single non-constant element not extracted
18474 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18476 * internal-fn.def (SIGNBIT): New.
18477 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18479 (signbitv4sf2): Likewise.
18481 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18484 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18485 next insn when the SRC reg is dead.
18487 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18489 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18490 (alloc_cand_and_find_basis): Ditto.
18491 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18492 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18493 (create_add_imm_cand, slsr_process_cast): Ditto.
18494 (slsr_process_copy, replace_mult_candidate): Ditto.
18495 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18496 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18497 (pass_strength_reduction::execute): Init the first NULL element.
18499 2019-05-13 Nathan Sidwell <nathan@acm.org>
18501 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18502 (run_attempt): Reformat line break.
18504 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18507 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18508 data registers in sibcall epilogues.
18509 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18511 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18514 * configure.ac (--enable-frame-pointer):
18515 Disable by default for cygwin and mingw.
18516 * configure: Regenerate.
18518 2019-05-13 Nathan Sidwell <nathan@acm.org>
18520 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18522 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18523 (gen_member_die): Move abstract origin check earlier. Only VARs
18524 can be static_inline_p. Simplify splicing control flow.
18526 2019-05-13 Richard Biener <rguenther@suse.de>
18528 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18530 (vect_build_slp_tree_1): Likewise.
18532 2019-05-13 Richard Biener <rguenther@suse.de>
18534 PR tree-optimization/90402
18535 * tree-if-conv.c (tree_if_conversion): Value number only
18536 the loop body by making the latch an exit of the region
18538 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18540 (do_rpo_vn): Deal with multiple edges into the entry block
18541 that are not backedges inside the region by skipping PHIs
18542 of the entry block.
18544 2019-05-13 Richard Biener <rguenther@suse.de>
18546 PR tree-optimization/90316
18547 * tree-ssa-pre.c (insert_aux): Fold into ...
18548 (insert): ... this function. Use a RPO walk to reduce the
18549 number of required iterations.
18551 2019-05-13 Martin Liska <mliska@suse.cz>
18553 PR tree-optimization/90416
18554 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18555 string instead of passing the second part as va_arg argument.
18557 2019-05-13 Martin Liska <mliska@suse.cz>
18559 PR gcov-profile/90380
18560 * gcov.c (handle_cycle): Do not support zero cycle count,
18561 it should not be possible.
18562 (path_contains_zero_cycle_arc): New function.
18563 (circuit): Ignore zero cycle arc counts.
18565 2019-05-13 Martin Liska <mliska@suse.cz>
18567 PR gcov-profile/90380
18568 * gcov.c (enum loop_type): Remove the enum and
18570 (handle_cycle): Assert that we should not reach
18572 (circuit): Use loop_found instead of a tri-state loop_type.
18573 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18576 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18579 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18580 (ix86_output_indirect_branch_via_reg): Use output mechanism
18581 accounting for __USER_LABEL_PREFIX__.
18582 (ix86_output_indirect_branch_via_push): Likewise.
18583 (ix86_output_function_return): Likewise.
18584 (ix86_output_indirect_function_return): Likewise.
18586 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18588 * doc/md.texi: Document use of code attributes in rtx patterns.
18589 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18590 * read-rtl.c (find_code): Split out search loops into...
18591 (maybe_find_code): ...this new function.
18592 (check_code_iterator): Make the error message more informative.
18593 (check_code_attribute): New function.
18594 (rtx_reader::rtx_alloc_for_name): Likewise.
18595 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18596 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18597 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18598 <max_opp> directly as an rtx code instead of via a match_operator.
18599 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18600 (<su>abd<mode>_3): Update accordingly.
18602 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18604 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18605 is given, print the state of the EH "save world" computation for
18608 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18611 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18612 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18614 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18616 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18617 Use pinsrd for TARGET_SSE4_1.
18618 * config/i386/sse.md (movdi_to_sse): Ditto.
18620 2019-05-10 Richard Biener <rguenther@suse.de>
18622 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18623 (do_rpo_vn): Initialize next_value_id.
18625 2019-05-10 Martin Liska <mliska@suse.cz>
18627 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18630 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18632 PR tree-optimization/90385
18633 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18634 arguments of the exit phis.
18637 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18638 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18640 (copy_tree_body_r): Likewise.
18641 (copy_fn): Set id.do_not_fold to true.
18643 2019-05-10 Martin Liska <mliska@suse.cz>
18645 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18646 Reapply changes from r269790.
18648 2019-05-10 Martin Liska <mliska@suse.cz>
18650 PR middle-end/90340
18651 * doc/invoke.texi: New params.
18652 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18653 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18654 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18656 * tree-switch-conversion.h (struct jump_table_cluster):
18659 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18661 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18663 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18665 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18667 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18669 PR rtl-optimization/88879
18670 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18672 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18675 * config/arm/arm.c (callee_saved_reg_p): Move before
18676 thumb_find_work_register.
18677 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18678 thumb_find_work_register. Only call df_get_live_out once.
18679 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18680 (thumb_find_work_register): Use
18681 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18682 algorithms to locate a spare call clobbered reg.
18684 2019-05-09 Martin Liska <mliska@suse.cz>
18686 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18687 and MAX_EXPR in GIMPLE FE format.
18689 2019-05-09 Martin Liska <mliska@suse.cz>
18691 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18692 * gimple-pretty-print.c (dump_gimple_bb_header):
18694 (pp_cfg_jump): Dump edge probability.
18695 * profile-count.c (profile_quality_as_string): Simplify
18696 with a static array.
18697 (parse_profile_quality): New function.
18698 (profile_count::dump): Simplify with a static array.
18699 (profile_count::from_gcov_type): Add new argument.
18700 * profile-count.h (parse_profile_quality): Likewise.
18701 * predict.h (set_hot_bb_threshold): New.
18702 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18704 * predict.c (get_hot_bb_threshold): Set from the new param.
18705 (set_hot_bb_threshold): New.
18707 2019-05-09 Richard Biener <rguenther@suse.de>
18709 PR tree-optimization/90395
18710 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18711 rewrite vector stores that throw internally.
18713 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18715 * cif-code.def (CHKP): Remove.
18718 * configure.ac (--enable-frame-pointer): Disable by default for
18720 * configure: Regenerate.
18722 2019-05-09 Alan Modra <amodra@gmail.com>
18725 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18726 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18727 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18728 cost for general <-> vsx when direct moves are available.
18729 Cost union classes at minimal cost for any reg in the class.
18730 Correct calculation for moves between vsx, float, and altivec.
18731 Don't return a low cost for moves between special regs. Don't
18732 use hard coded register numbers.
18733 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18734 (rs6000_ira_change_pseudo_allocno_class): New function.
18735 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18736 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18738 (movsi_internal1): Don't disparage vector alternatives.
18739 (mov<mode>_internal): Likewise, excepting alternative that
18741 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18742 we <- b alternative.
18744 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18747 PR tree-optimization/89060
18748 * tree-ssa-live.h (live_vars_map): New typedef.
18749 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18750 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18751 (struct compute_live_vars_data): New type.
18752 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18753 live_vars_at_stmt, destroy_live_vars): New functions.
18754 * tree-tailcall.c: Include tree-ssa-live.h.
18755 (live_vars, live_vars_vec): New global variables.
18756 (find_tail_calls): Perform variable life analysis before punting.
18757 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18758 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18760 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18761 Perform variable life analysis to select variables that really need
18763 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18764 instead set id->eh_landing_pad_dest and assert it is the same.
18765 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18767 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18768 Richard Earnshaw <rearnsha@arm.com>
18771 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18773 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18774 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18775 register if both the epilogue and prologue can use call-clobbered
18777 (thumb1_unexpanded_epilogue): Use
18778 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18779 picking temporaries for restoring high regs to match that of the
18780 prologue where possible.
18781 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18782 the list of work registers. Detect if the return address is still live
18783 at the end of the prologue and avoid using it for a work register if so.
18784 If the return address is not live, add LR to the list of pushable regs
18785 after the first pass.
18787 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18789 PR tree-optimization/90078
18790 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18791 (INFTY): Increase the value for infinite cost.
18792 (struct comp_cost): Promote type of members to int64_t.
18793 (infinite_cost): Don't set complexity in initialization.
18794 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18795 overflows to infinite_cost.
18796 (adjust_setup_cost): Promote type of parameter and cost computation
18798 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18800 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18801 cost computation to int64_t.
18802 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18803 int64_t's format specifier in dump.
18805 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18807 PR tree-optimization/90240
18808 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18809 with respect to scaling factor pre-computed for each basic block.
18810 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18811 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18812 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18813 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18814 live range for array of loop's basic blocks. Cleanup aux field of
18815 loop's basic blocks.
18817 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18819 PR tree-optimization/90356
18820 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18822 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18824 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18825 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18826 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18827 (ix86_handle_option): Handle -mavx512bf16.
18828 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18830 * config/i386/avx512bf16vlintrin.h: New.
18831 * config/i386/avx512bf16intrin.h: New.
18832 * config/i386/cpuid.h (bit_AVX512BF16): New.
18833 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18834 * config/i386/i386-builtin-types.def: Add new types.
18835 * config/i386/i386-builtin.def: Add new builtins.
18836 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18838 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18839 (ix86_option_override_internal): Handle BF16.
18840 (ix86_valid_target_attribute_inner_p): Ditto.
18841 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18842 * config/i386/i386-builtin.c (enum processor_features): Add
18844 (static const _isa_names_table isa_names_table): Ditto.
18845 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18846 (PTA_AVX512BF16): Ditto.
18847 * config/i386/i386.opt: Add -mavx512bf16.
18848 * config/i386/immintrin.h: Include avx512bf16intrin.h
18849 and avx512bf16vlintrin.h.
18850 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18851 avx512f_cvtneps2bf16_<mode><mask_name>,
18852 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18853 * config/i386/subst.md (mask_half): Add new subst.
18854 * doc/invoke.texi: Document -mavx512bf16.
18856 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18858 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18859 Delete declaration.
18860 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18861 (rs6000_debug_legitimize_reload_address): Delete.
18862 (rs6000_legitimize_reload_address_ptr): Delete.
18863 (rs6000_option_override_internal): Adjust.
18864 (mem_operand_gpr): Adjust comment.
18865 (legitimate_lo_sum_address_p): Ditto.
18866 (rs6000_legitimize_reload_address): Delete.
18867 (rs6000_debug_legitimize_reload_address): Delete.
18868 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18870 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18873 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18874 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18875 to compute vector element selector for both constant and variable
18878 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18880 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18881 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18882 ashrdi3_cvt using SWI48 mode iterator.
18884 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18886 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18887 (aarch64_<su>abd<mode>_3): Likewise.
18888 (*aarch64_<su>abd<mode>_3): New define_insn.
18889 (<sur>sad<vsi2qi>): New define_expand.
18890 * config/aarch64/iterators.md: Added MAX_OPP attribute.
18891 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18892 (build_vect_cond_expr): Likewise.
18894 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18896 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18897 clobbers outside of accessible_reg_set.
18898 * config/i386/i386.c (ix86_conditional_register_usage):
18899 Disable register sets by clearing corresponding bits in
18900 accessible_reg_set. Do not set corresponding bits in fixed_regs,
18901 call_used_regs and don't clear corresponding reg_names array members.
18903 2019-05-07 Richard Biener <rguenther@suse.de>
18905 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18906 not specified still compute a comp_vectype for invariant
18909 2019-05-07 Richard Biener <rguenther@suse.de>
18911 PR tree-optimization/90316
18912 * tree-ssa-pre.c (translate_vuse_through_block): When
18913 same_valid is NULL do not bother to search for a virtual
18915 (phi_translate_1): When operands changed we cannot keep
18916 the same value-number so do not bother to ask whether
18917 that's possible from translate_vuse_through_block.
18919 2019-05-07 Martin Liska <mliska@suse.cz>
18921 * bitmap.c (bitmap_register): Come up with
18922 alloc_descriptor_max_uid and assign it for
18924 (register_overhead): Use get_descriptor as
18926 (release_overhead): New.
18927 (bitmap_elem_to_freelist): Call it.
18928 (bitmap_elt_clear_from): Likewise.
18929 (bitmap_obstack_free): Likewise.
18930 (bitmap_move): Sensitively release memory.
18931 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18932 (bitmap_initialize): Initialize alloc_descriptor to zero.
18933 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18935 2019-05-07 Richard Biener <rguenther@suse.de>
18937 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18938 we build a SLP node. Remove max_size and limiting.
18939 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18941 2019-05-07 Richard Biener <rguenther@suse.de>
18943 PR tree-optimization/90316
18944 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18945 limit by reference.
18946 (walk_non_aliased_vuses): Take walking limit argument.
18947 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18948 walking if it is reached instead of just counting.
18949 (get_continuation_for_phi): Likewise.
18950 (walk_non_aliased_vuses): Likewise, instead of leaving counter
18951 limiting to the callback.
18952 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
18953 (vn_reference_lookup_3): Likewise.
18954 (vn_reference_lookup_pieces): Likewise.
18955 (vn_reference_lookup): Likewise.
18956 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
18957 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
18958 (avail_exprs_stack::lookup_avail_expr): Likewise.
18960 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
18962 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
18963 for comparaible types in the second direction even if first one
18964 hits incomparable type.
18966 2019-05-07 Richard Biener <rguenther@suse.de>
18969 * lto-wrapper.c (debug_objcopy): Use the original filename
18970 including archive offset for the filename used for -save-temps.
18972 2019-05-07 Li Jia He <helijia@linux.ibm.com>
18974 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
18977 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
18978 Hongtao Liu <hongtao.liu@intel.com>
18982 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
18983 Modified, original implementation isn't correct.
18985 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18987 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
18988 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
18989 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
18990 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
18991 (FRAME_POINTER_REGNUM): Change numbering.
18992 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
18993 (alt_reg_names): Adjust.
18994 (rs6000_conditional_register_usage): Don't mark hard register 64 as
18996 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18997 (DWARF_FRAME_REGISTERS): Delete.
18998 (DWARF2_FRAME_REG_OUT): Fix whitespace.
18999 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19001 (REG_ALLOC_ORDER): Adjust.
19002 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19003 (REG_CLASS_CONTENTS): Adjust.
19004 (RETURN_ADDR_RTX): Change comment.
19005 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19007 (REGISTER_NAMES): Adjust.
19008 (ADDITIONAL_REGISTER_NAMES): Adjust.
19009 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19011 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19013 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19015 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19016 (DWARF_FRAME_REGISTERS): Adjust.
19017 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19019 (REG_ALLOC_ORDER): Adjust.
19020 (enum reg_class): Delete SPR_REGS.
19021 (REG_CLASS_NAMES): Delete SPR_REGS.
19022 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19023 (REGISTER_NAMES): Adjust.
19024 (ADDITIONAL_REGISTER_NAMES): Adjust.
19025 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19026 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19027 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19028 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19029 (htm_spr_regno): Delete.
19030 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19032 (rs6000_dbx_register_number): Adjust.
19034 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19036 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19038 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19040 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19041 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19043 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19045 PR tree-optimization/88709
19046 PR tree-optimization/90271
19047 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19048 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19049 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19051 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19052 of the store merging group is larger than
19053 PARAM_STORE_MERGING_MAX_SIZE parameter.
19054 (split_group): Add bzero_first argument. If set, always emit first
19055 the first store which must be = {} of the whole area and then for the
19056 rest of the stores consider all zero bytes as paddings.
19057 (imm_store_chain_info::output_merged_store): Check if first store
19058 is = {} of the whole area and if yes, determine which setting of
19059 bzero_first for split_group gives smaller number of stores. Adjust
19060 split_group callers.
19061 (lhs_valid_for_store_merging_p): Allow decls.
19062 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19064 (pass_store_merging::process_store): Likewise.
19066 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19069 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19070 handling of V1TImode.
19072 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19075 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19076 and enable_frame_pointer ...
19077 * configure.ac: ... here. Update help strings for
19078 --enable-frame-pointer.
19079 * configure: Regenerate.
19080 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19081 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19082 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19083 (USE_X86_64_FRAME_POINTER): Ditto.
19085 2019-05-06 Martin Liska <mliska@suse.cz>
19087 * config.gcc: Append to target_gtfiles and fix indentation.
19089 2019-05-06 Richard Biener <rguenther@suse.de>
19091 PR tree-optimization/90358
19092 * tree-vect-stmts.c (get_group_load_store_type): Properly
19093 detect unused upper half of load.
19094 (vectorizable_load): Likewise.
19096 2019-05-06 Richard Biener <rguenther@suse.de>
19098 PR tree-optimization/88828
19099 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19100 (simplify_vector_constructor): ...here. Handle constants in
19103 2019-05-06 Richard Biener <rguenther@suse.de>
19105 PR tree-optimization/90328
19106 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19107 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19108 is valid in the loop nest before using it.
19109 (initialize_data_dependence_relation): Adjust.
19110 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19111 loop as loop-nest to dr_may_alias_p.
19113 2019-05-06 Richard Biener <rguenther@suse.de>
19115 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19117 2019-05-06 Richard Biener <rguenther@suse.de>
19119 PR tree-optimization/90316
19120 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19121 compute target on demand.
19122 (get_continuation_for_phi): Remove code walking stmts to
19123 get to a target virtual operand which could end up being
19126 2019-05-06 Martin Liska <mliska@suse.cz>
19129 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19130 when -mabi is selected to a non-default version.
19132 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19133 Martin Liska <mliska@suse.cz>
19135 * Makefile.in: Add lto-dump.texi.
19136 * cgraph.h: Add new functions get_visibility_string and
19137 get_symtab_type_string.
19138 * doc/gcc.texi: Include lto-dump section.
19139 * doc/lto-dump.texi: New file.
19140 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19141 (parse_dump_option): Factor out this function.
19142 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19143 (parse_dump_option): Export the function.
19144 * symtab.c (symtab_node::get_visibility_string): New function.
19145 (symtab_node::get_symtab_type_string): Likewise.
19147 2019-05-06 Martin Liska <mliska@suse.cz>
19149 * config/i386/i386-builtins.c: New file.
19150 * config/i386/i386-builtins.h: New file.
19151 * config/i386/i386-expand.c: New file.
19152 * config/i386/i386-expand.h: New file.
19153 * config/i386/i386-features.c: New file.
19154 * config/i386/i386-features.h: New file.
19155 * config/i386/i386-options.c: New file.
19156 * config/i386/i386-options.h: New file.
19157 * config.gcc: Add new files into extra_objs and
19159 * config/i386/i386.c: Split content of the file
19160 into newly introduced files.
19161 * config/i386/i386.h: Declare common variables
19163 * config/i386/t-i386: Define dependencies for new files.
19165 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19168 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19169 Restrict 'all' variant to 32-bit configurations.
19170 (unaligned_loadhiu): Likewise.
19171 (unaligned_storehi): Likewise.
19172 (unaligned_storesi): Likewise.
19173 (unaligned_loadhis): Disable when compiling for thumb1.
19175 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19177 PR tree-optimization/90269
19178 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19181 2019-05-03 Martin Liska <mliska@suse.cz>
19183 * hash-map.h: Add is_empty function.
19184 * hash-set.h: Likewise.
19185 * hash-table.h: Likewise.
19186 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19187 elements () == 0 (and similar usages).
19188 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19189 * gimplify.c (gimplify_bind_expr): Likewise.
19190 (gimplify_switch_expr): Likewise.
19191 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19192 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19193 * postreload-gcse.c (dump_hash_table): Likewise.
19194 (gcse_after_reload_main): Likewise.
19195 * predict.c (combine_predictions_for_bb): Likewise.
19196 * tree-parloops.c (reduction_phi): Likewise.
19197 (separate_decls_in_region): Likewise.
19198 (transform_to_exit_first_loop): Likewise.
19199 (gen_parallel_loop): Likewise.
19200 (gather_scalar_reductions): Likewise.
19201 (try_create_reduction_list): Likewise.
19202 * var-tracking.c (dump_vars): Likewise.
19203 (emit_notes_for_changes): Likewise.
19204 (vt_emit_notes): Likewise.
19206 2019-05-03 Richard Biener <rguenther@suse.de>
19208 PR tree-optimization/90316
19209 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19212 2019-05-03 Richard Biener <rguenther@suse.de>
19214 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19215 peeling for gaps by loading only lower halves of vectors
19217 (vectorizable_load): Likewise.
19219 2019-05-03 Richard Biener <rguenther@suse.de>
19221 PR middle-end/89518
19222 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19224 2019-05-03 Richard Biener <rguenther@suse.de>
19226 PR middle-end/87314
19227 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19228 Handle STRING_CST vs DECL or STRING_CST.
19230 2019-05-03 Richard Biener <rguenther@suse.de>
19232 PR tree-optimization/88963
19233 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19234 vector loads feeding only BIT_FIELD_REFs to component
19235 loads. Rewrite stores fed by CONSTRUCTORs to component
19238 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19240 * opts.h (finish_options): Remove lang_mask argument.
19241 (print_help, help_option_argument): Declare.
19242 * opts.c (print_help): Remove forward declaration, no longer static.
19243 (finish_options): Remove lang_mask argument, don't call print_help
19245 * opts-global.c (decode_options): Adjust finish_option caller, call
19248 PR tree-optimization/90303
19249 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19250 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19252 2019-05-03 Richard Biener <rguenther@suse.de>
19254 PR tree-optimization/89698
19255 * gimple-fold.c (canonicalize_constructor_val): Early out
19256 for constants, handle unfolded INTEGER_CSTs as they appear in
19257 C++ virtual table ctors.
19259 2019-05-03 Richard Biener <rguenther@suse.de>
19261 * passes.c (execute_function_todo): Remove dead code.
19263 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19265 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19266 the internal register number, for any "real" register.
19268 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19270 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19271 correct numbers for TFHAR, TFIAR, TEXASR.
19273 2019-05-02 Richard Biener <rguenther@suse.de>
19275 PR tree-optimization/89653
19276 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19277 update-address-taken before the pass.
19278 * passes.def (pass_tree_loop_init): Put comment before it.
19280 2019-05-02 Richard Biener <rguenther@suse.de>
19282 PR tree-optimization/89509
19283 * tree-ssa-structalias.c (compute_dependence_clique): Look
19284 at the first subvar when determining whether it is restrict.
19286 2019-05-02 Richard Biener <rguenther@suse.de>
19288 PR tree-optimization/90273
19289 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19290 useless debug stmts.
19292 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19294 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19296 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19298 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19299 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19300 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19301 (vectorizable_reduction): Use the functions above to vectorize in a
19302 fully masked loop codes that don't have a conditional internal
19305 2019-05-02 Martin Liska <mliska@suse.cz>
19307 * cgraphclones.c: Call valid_attribute_p with 1 for
19309 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19310 it's for target attribute.
19311 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19312 Add new boolean argument.
19313 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19315 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19316 to ix86_valid_target_attribute_inner_p.
19317 (ix86_valid_target_attribute_p): Pass flags argument to
19318 ix86_valid_target_attribute_inner_p.
19319 (get_builtin_code_for_version): Use 0 as it's target attribute.
19321 2019-05-02 Martin Liska <mliska@suse.cz>
19323 * gcc.c (process_command): Add dummy file only
19325 * opts-global.c (decode_options): Pass lang_mask.
19326 * opts.c (print_help): New function.
19327 (finish_options): Print --help if help_option_argument
19329 (common_handle_option): Factor out content of OPT__help_
19331 * opts.h (finish_options): Add new argument.
19333 2019-05-02 Martin Liska <mliska@suse.cz>
19336 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19337 With -minline-all-stringops use inline expansion using 4B loop.
19338 * doc/invoke.texi: Document the change of
19339 -minline-all-stringops.
19341 2019-05-01 Jeff Law <law@redhat.com>
19343 PR tree-optimization/88797
19344 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19345 PHI feeds a conditional on the RHS of an assignment.
19347 2019-04-30 Andrew Waterman <andrew@sifive.com>
19348 Jim Wilson <jimw@sifive.com>
19350 * config/riscv/constraints.md (L): New.
19351 * config/riscv/predicates.md (lui_operand): New.
19352 (sfb_alu_operand): New.
19353 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19354 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19355 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19356 * config/riscv/risc.md (type): Add sfb_alu.
19357 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19358 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19359 (branch_zero<mode>): Delete.
19360 (mov<mode>cc): New.
19361 (mov<GPR:mode><X:mode>cc): Likewise.
19362 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19364 2019-04-30 Nathan Sidwell <nathan@acm.org>
19366 * tree.h (MARK_TS_EXP): New.
19368 2019-04-30 Martin Liska <mliska@suse.cz>
19370 * opts.c (enable_warning_as_error): Provide hints
19371 for unknown options.
19373 2019-04-30 Martin Liska <mliska@suse.cz>
19376 * doc/invoke.texi: Add missing dash for gas-locview-support
19377 and gno-as-locview-support.
19379 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19382 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19383 whitespace at the start of target attribute string.
19385 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19388 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19389 Define __ARM_FEATURE_ATOMICS.
19391 2019-04-30 Martin Liska <mliska@suse.cz>
19393 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19394 into built_in_function enum. Remove code for endp == 2 and
19395 use BUILT_IN_* constants.
19396 (gimple_fold_builtin): Call the function with fcode.
19398 2019-04-30 Martin Liska <mliska@suse.cz>
19400 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19401 DECL_FUNCTION_CODE into ix86_builtins enum before
19402 the switch statement.
19404 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19406 PR tree-optimization/89475
19407 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19410 2019-04-30 Martin Liska <mliska@suse.cz>
19412 PR translation/90274
19413 * opts.c (print_filtered_help): Wrap string in _(...).
19415 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19417 PR tree-optimization/90240
19419 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19421 PR tree-optimization/90078
19422 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19423 checks for infinite_cost overflow.
19425 2019-04-29 Jeff Law <law@redhat.com>
19427 * passes.def: Move -Wrestrict pass after copy propagation.
19429 2019-04-29 Maya Rashish <coypu@sdf.org>
19431 * config.gcc (default_gnu_indirect_function): Default to yes
19432 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19433 sparc*-*-netbsd*, x86_64-*-netbsd*.
19435 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19437 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19438 where cond2 is NE_EXPR.
19439 (is_value_included_in): Update comment.
19441 2019-04-29 Richard Biener <rguenther@suse.de>
19443 PR tree-optimization/90278
19444 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19445 EH on comparison simplification.
19447 2019-04-29 Jason Merrill <jason@redhat.com>
19449 PR c++/82081 - tail call optimization breaks noexcept
19450 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19451 nothrow function to a might-throw function into a tail call.
19453 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19455 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19456 (DDR_INNER_LOOP): Likewise.
19457 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19458 (initialize_data_dependence_relation): Likewise.
19459 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19461 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19463 PR rtl-optimization/90257
19464 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19468 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19472 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19475 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19478 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19480 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19482 2019-04-29 Richard Biener <rguenther@suse.de>
19484 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19487 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19489 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19490 varasm.h, and netbsd-protos.h.
19492 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19495 * config/i386/i386-protos.h (ix86_data_alignment): Change
19496 the second argument type to unsigned int.
19497 * config/i386/i386.c (ix86_data_alignment): Change "align"
19498 argument type to unsigned int.
19500 2019-04-27 Martin Liska <mliska@suse.cz>
19502 PR middle-end/90258
19503 * opt-suggestions.c (option_proposer::build_option_suggestions):
19504 When get_valid_option_values returns empty values, add the
19505 misspelling candidate.
19507 2019-04-26 Jim Wilson <jimw@sifive.com>
19509 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19511 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19512 Pass orig_mode to riscv_build_integer.
19513 (riscv_split_integer): Pass mode to riscv_move_integer.
19514 (riscv_legitimize_const_move): Likewise.
19515 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19516 promoted_mode. Replace force_reg call with code to load constant into
19517 promoted reg and then subreg it for the store.
19518 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19519 riscv_move_integer.
19521 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19523 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19526 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19528 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19529 commentary about the encoding of precision.
19531 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19533 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19534 * config/i386/t-freebsd64: New file.
19535 * config.gcc: Add the t-freebsd64 for multilib support.
19537 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19539 * doc/extend.texi (vector_size): Add missing comma after @xref.
19541 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19543 * BASE-VER: Set to 10.0.0.
19545 2019-04-25 Richard Biener <rguenther@suse.de>
19547 PR middle-end/89765
19548 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19549 VIEW_CONVERT_EXPR into one operating on an rvalue.
19551 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19554 * config/i386/i386.c (feature_priority): Moved to file scope.
19555 (processor_features): Likewise.
19556 (processor_model): Likewise.
19557 (_arch_names_table): Likewise.
19558 (arch_names_table): Likewise.
19559 (_feature_list): Removed.
19560 (feature_list): Likewise.
19561 (_isa_names_table): Moved to file scope. Add priority.
19562 (isa_names_table): Likewise.
19563 (get_builtin_code_for_version): Replace feature_list with
19564 isa_names_table. Update error message for P_ZERO priority.
19566 2019-04-25 Richard Biener <rguenther@suse.de>
19568 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19569 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19571 2019-04-24 Jeff Law <law@redhat.com>
19573 PR tree-optimization/90037
19574 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19575 * passes.def: Replace all instance of phi-only cprop with the
19576 lattice propagator. Move propagation pass from after erroneous
19577 path isolation to before erroneous path isolation.
19578 * tree-ssa-phionlycprop.c: Remove.
19580 2019-04-24 Richard Biener <rguenther@suse.de>
19582 PR middle-end/90213
19583 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19584 by size and BITS_PER_UNIT on poly-wide-ints.
19586 2019-04-25 Richard Biener <rguenther@suse.de>
19588 PR middle-end/90194
19589 * match.pd: Add pattern to simplify view-conversion of an
19592 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19594 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19595 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19596 for Go on 32 bit AIX.
19597 * config/rs6000/aix72.h: Likewise.
19599 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19602 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19603 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19605 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19608 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19609 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19610 for restored hard frame pointer.
19611 (s390_sched_dependencies_evaluation): Implement new target hook.
19612 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19614 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19616 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19617 * config/arc/arc.c (arc_init): Cleanup warning message.
19618 (arc_override_options): Likewise.
19620 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19623 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19624 a register if both if_true and if_false are MEMs.
19626 PR tree-optimization/90208
19627 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19628 after labels of new_bb, not before them.
19630 PR tree-optimization/90211
19631 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19632 which are not SSA_NAMEs.
19634 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19636 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19638 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19640 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19642 PR rtl-optimization/87979
19643 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19646 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19648 PR rtl-optimization/84032
19649 * modulo-sched.c (ps_insn_find_column): Change condition so that
19650 branch will always be the last insn in a row inside partial
19653 2019-04-23 Richard Biener <rguenther@suse.de>
19656 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19657 dest_single_pred_p argument.
19658 (remove_forwarder_block): Adjust.
19659 (remove_forwarder_block_with_phi): Likewise.
19661 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19662 Bernd Edlinger <bernd.edlinger@hotmail.de>
19663 Jakub Jelinek <jakub@redhat.com>
19666 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19667 if used with general-regs-only.
19668 (arm_conditional_register_usage): Don't add non-general regs if
19670 (arm_valid_target_attribute_rec): Handle general-regs-only.
19671 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19673 (TARGET_HARD_FLOAT_SUB): Define.
19674 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19675 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19676 (TARGET_REALLY_IWMMXT2): Likewise.
19677 * config/arm/arm.opt: Add -mgeneral-regs-only.
19678 * doc/extend.texi: Document ARM general-regs-only target.
19679 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19681 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19683 PR tree-optimization/90078
19684 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19685 checks for infinite_cost overflow.
19687 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19689 PR tree-optimization/90021
19690 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19691 and check univariate against it.
19692 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19693 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19695 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19699 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19702 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19705 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19707 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19709 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19711 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19712 names using operand format, rather than hard-wired.
19713 (speculation_barrier): Likewise.
19715 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19717 PR tree-optimization/88055
19718 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19719 (gen_one_condition): Use it if !HONOR_NANS.
19721 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19723 PR middle-end/90139
19724 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19725 assign_temp instead of gen_reg_rtx.
19727 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19729 PR translation/90118
19730 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19731 Add missing space before %<.
19733 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19735 PR rtl-optimization/87871
19736 * ira-lives.c (make_object_dead): Don't add conflicts to
19737 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19739 2019-04-18 Martin Sebor <msebor@redhat.com>
19741 PR middle-end/89797
19742 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19743 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19744 assuming type size fits in SHWI.
19746 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19749 * ipa-inline.c (flatten_function): New parameter UPDATE.
19750 (ipa_inline, early_inliner): Use it.
19752 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19754 * fold-const.c (int_const_binop): Return early on failure.
19756 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19758 PR middle-end/85164
19759 * combine.c (force_int_to_mode): Cast the argument rather than
19760 the result of known_alignment.
19761 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19763 2019-04-18 Richard Biener <rguenther@suse.de>
19766 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19768 (remove_forwarder_block): ... here.
19769 (remove_forwarder_block_with_phi): Also move debug stmts here.
19771 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19773 PR translation/79183
19774 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19775 inform where appropriate.
19777 2019-04-18 Richard Biener <rguenther@suse.de>
19779 * tree.c (get_qualified_type): Put found type variants at the
19780 head of the variant list.
19782 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19784 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19786 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19789 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19790 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19791 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19792 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19793 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19795 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19797 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19798 even for allocno's with no conflicts.
19799 (print_conflicts): Print an extra newline.
19801 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19803 * auto-inc-dec.c (attempt_change): Set the alignment of the
19804 temporary memory to that of the original.
19806 2019-04-17 Joao Moreira <jmoreira@suse.de>
19808 * targhooks.c (default_print_patchable_function_entry): Emit
19809 __patchable_function_entries section with writable flags to allow
19810 relocation resolution.
19812 2019-04-17 Jonny Grant <jg@jguk.org>
19814 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19816 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19818 PR middle-end/90095
19819 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19820 on lowpart SUBREGs.
19822 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19824 * config/arc/arc.c (arc_init): Format diagnostic string.
19825 (arc_override_options): Likewise.
19826 (check_if_valid_regno_const): Likewise.
19827 (arc_reorg): Likewise.
19829 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19832 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19834 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19836 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19837 (*movdi_update1): Use Pmode.
19838 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19839 (movdi_<mode>_update_stack): Rename to ...
19840 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19842 (*movsi_update1): Use Pmode.
19843 (*movsi_update2): Use Pmode.
19844 (movsi_update): Rename to ...
19845 (movsi_<mode>_update): ... this. Use Pmode.
19846 (movsi_update_stack): Fix condition.
19847 (*movhi_update1): Use Pmode. Fix argument to
19848 avoiding_indexed_address_p.
19849 (*movhi_update2): Ditto.
19850 (*movhi_update3): Ditto.
19851 (*movhi_update4): Ditto.
19852 (*movqi_update1): Ditto.
19853 (*movqi_update2): Ditto.
19854 (*movqi_update3): Ditto.
19855 (*movsf_update1, *movdf_update1): Merge, rename to...
19856 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19857 avoiding_indexed_address_p. Add "size" attribute.
19858 (*movsf_update2, *movdf_update2): Merge, rename to...
19859 (*mov<mode>_update2): This. Ditto.
19860 (*movsf_update3): Use Pmode. Fix argument to
19861 avoiding_indexed_address_p.
19862 (*movsf_update4): Ditto.
19863 (allocate_stack): Simplify condition. Adjust pattern names.
19865 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19868 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19869 whitespace at the start of target attribute string.
19871 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19874 * config/rs6000/power9.md: Add store forwarding bypass.
19876 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19879 * valtrack.c (dead_debug_insert_temp): Reset debug references
19880 to the return value of a call being removed.
19882 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19884 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19885 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19886 implement target hook.
19887 (arc_memory_move_cost): New function.
19888 (TARGET_REGISTER_MOVE_COST): Define.
19889 (TARGET_MEMORY_MOVE_COST): Likewise.
19890 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19891 (MEMORY_MOVE_COST): Likewise.
19893 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19895 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19896 (sibcall_value_insn): Likewise.
19897 * config/arc/constraints.md (Rs5): Remove.
19899 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19901 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19902 for last two fake registers.
19903 (arc_conditional_register_usage): Make sure fake frame and arg
19904 pointer regs are in general regs class.
19905 (FRAME_POINTER_MASK): Remove.
19906 (RETURN_ADDR_MASK): Remove.
19907 (arc_must_save_register): Use hard frame regnum.
19908 (frame_restore_reg): Use hard_frame_pointer_rtx.
19909 (arc_save_callee_saves): Likewise.
19910 (arc_restore_callee_saves): Likewise.
19911 (arc_save_callee_enter): Likewise.
19912 (arc_restore_callee_leave): Likewise.
19913 (arc_save_callee_milli): Likewise.
19914 (arc_eh_return_address_location): Likewise.
19915 (arc_check_multi): Use hard frame regnum.
19916 (arc_can_eliminate): Likewise.
19917 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19918 for register allocator.
19919 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19920 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19921 (FRAME_POINTER_REGNUM): Change it to a fake register.
19922 (HARD_FRAME_POINTER_REGNUM): Defined.
19923 (ARG_POINTER_REGNUM): Change it to a new fake register.
19924 (ELIMINABLE_REGS): Update.
19925 (REGISTER_NAMES): Update names.
19926 * config/arc/arc.md (LP_START): Remove.
19927 (LP_END): Likewise.
19928 (shift_si3_loop): Update pattern.
19930 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19932 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19933 to avoid delay slot scheduling.
19934 (arc_must_save_register): Don't save SP.
19935 * config/arc/arc.md (stack_tie): Remove.
19936 (UNSPEC_ARC_STKTIE): Likewise.
19938 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
19939 Shiva Chen <shiva0217@gmail.com>
19941 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19942 code gen with large shift amount.
19944 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
19946 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19949 2019-04-16 Jakub Jelinek <jakub@redhat.com>
19952 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
19953 print -m64/-mx32/-m32 if it is true.
19954 (ix86_debug_options, ix86_function_specific_print): Pass true as
19955 ADD_ABI_P to ix86_target_string.
19956 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
19957 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
19958 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
19960 PR rtl-optimization/90082
19961 * dce.c (can_delete_call): New function.
19962 (deletable_insn_p, mark_insn): Use it.
19964 PR tree-optimization/90090
19965 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
19967 (is_division_by_square): Likewise. Formatting fix.
19969 2019-04-16 Richard Biener <rguenther@suse.de>
19971 PR tree-optimization/56049
19972 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
19973 equality check if alias-set zero will prevail.
19975 2019-04-15 Jeff Law <law@redhat.com>
19977 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
19978 size and alignment as unsigned.
19980 2019-04-15 Richard Biener <rguenther@suse.de>
19983 * tree-loop-distribution.c (destroy_loop): Preserve correct
19986 2019-04-15 Richard Biener <rguenther@suse.de>
19988 PR tree-optimization/90071
19989 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
19990 abnormal operands from def stmts.
19992 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
19994 PR rtl-optimization/89794
19995 * combine.c (count_auto_inc): New function.
19996 (try_combine): Count how many auto_inc expressions there were in the
19997 original instructions. Ensure we have the same number in the new
19998 instructions. Remove the code that tried to ensure auto_inc side
19999 effects on i1 and i0 are not lost.
20001 2019-04-15 Richard Biener <rguenther@suse.de>
20004 * tree.h (auto_var_p): Declare.
20005 * tree.c (auto_var_p): New function, split out from ...
20006 (auto_var_in_fn_p): ... here.
20007 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20009 (new_var_info): Initialize it.
20010 (set_uids_in_ptset): Also set the shadow variable uid if required.
20011 (ipa_pta_execute): Postprocess points-to solutions assigning
20012 shadow variable uids for locals that may reach their containing
20013 function recursively.
20014 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20015 assert but instead check whether the points-to solution is
20018 2019-04-15 Martin Jambor <mjambor@suse.cz>
20021 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20024 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20026 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20028 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20029 Kito Cheng <kito.cheng@gmail.com>
20030 Shiva Chen <shiva0217@gmail.com>
20032 * config/nds32/nds32-md-auxiliary.c
20033 (nds32_legitimize_pic_address): Use new PIC pattern.
20034 (nds32_legitimize_tls_address): Use new TLS pattern.
20035 (nds32_output_symrel): New.
20036 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20037 (nds32_alloc_relax_group_id): Ditto.
20038 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20039 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20041 (nds32_group_tls_insn): Ditto.
20042 (nds32_group_float_insns): Ditto.
20043 * config/nds32/nds32.md (tls_le): New.
20046 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20048 * configure: Add nds32 target for dwarf2 debug_line checking.
20049 * configure.ac: Regenerated.
20051 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20054 * ipa-devirt.c (skip_in_fields_list_p): New.
20055 (odr_types_equivalent_p): Use it.
20057 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20060 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20061 instead of strncmp when checking for thumb and arm. Formatting fixes.
20063 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20065 * doc/install.texi: Document --with-target-system-zlib.
20067 2019-04-12 Martin Sebor <msebor@redhat.com>
20073 * targhooks.c (default_vector_alignment): Avoid assuming
20074 argument fits in SHWI.
20075 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20076 a shift expression.
20077 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20079 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20081 PR rtl-optimization/89965
20082 * dce.c: Include rtl-iter.h.
20083 (struct check_argument_load_data): New type.
20084 (check_argument_load): New function.
20085 (find_call_stack_args): Check for loads from stack slots still tracked
20086 in sp_bytes and punt if any is found.
20088 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20090 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20092 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20093 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20095 2019-04-12 Martin Liska <mliska@suse.cz>
20097 PR middle-end/89970
20098 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20100 (separate_attrs): Handle multiple 'default's.
20101 (expand_target_clones): Rework error handling code.
20103 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20106 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20107 mode of vector rather than mode of destination for move instruction.
20108 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20109 Use QI inner mode with V16QI vector mode.
20111 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20114 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20115 "invalid %%t operand" in output_operand_lossage message.
20117 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20119 * config/s390/predicates.md (permute_pattern_operand): New
20121 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20122 operand for the permute pattern.
20123 ("*vec_perm<mode>"): New insn definition.
20124 ("bswap<mode>"): Generate the permute pattern operand in the
20125 expander and perform the operand reloads for pre arch13 level
20127 ("*bswap<mode>_emu"): Rename to ...
20128 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20129 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20130 Add the USE operand for the permute pattern.
20131 ("*vec_set_bswap_vec<mode>"): Likewise.
20133 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20136 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20137 and gcc_unreachable if it fails, just call tree_to_uhwi which
20138 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20139 Start warning message with a lower-case letter. Formatting fixes.
20141 PR rtl-optimization/90026
20142 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20143 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20144 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20145 in cfglayout mode, use emit_barrier_after_bb.
20147 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20149 PR rtl-optimization/87763
20150 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20153 2019-04-11 Tom de Vries <tdevries@suse.de>
20155 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20156 max macro using statement expression.
20158 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20160 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20161 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20162 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20163 read_only_private_data_section using xcoff_private_rodata_section_name.
20164 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20166 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20169 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20171 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20173 PR rtl-optimization/89965
20174 * dce.c (sp_based_mem_offset): New function.
20175 (find_call_stack_args): Use sp_based_mem_offset.
20177 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20179 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20181 2019-04-11 Richard Biener <rguenther@suse.de>
20183 PR tree-optimization/90020
20184 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20185 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20186 * tree-ssa-pre.c (compute_avail): Use it to not put
20187 possibly trapping references after a call that might not
20188 return into EXP_GEN.
20189 * gcse.c (compute_hash_table_work): Do not elide
20190 marking a block containing a call if the call might not
20193 2019-04-11 Richard Biener <rguenther@suse.de>
20195 PR tree-optimization/90018
20196 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20197 Test both SLP and interleaving variants.
20199 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20201 * config/s390/8561.md: New file.
20202 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20203 Add arch13 cpu model.
20204 * config/s390/s390-opts.h (enum processor_type): Likewise.
20205 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20206 (s390_get_unit_mask): Likewise.
20207 (s390_is_fpd): Likewise.
20208 (s390_is_fxd): Likewise.
20209 * config/s390/s390.h (s390_tune_attr): Likewise.
20210 * config/s390/s390.md: Include arch13 pipeline description.
20211 * config/s390/s390.opt: Add arch13.
20213 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20215 PR rtl-optimization/87763
20216 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20218 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20220 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20222 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20223 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20224 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20225 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20227 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20229 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20230 "Although" in -fipa-icf documentation.
20232 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20233 of using multiple -g options.
20235 2019-04-10 Martin Liska <mliska@suse.cz>
20237 PR gcov-profile/89959
20238 * doc/gcov.texi: Make documentation of -x option
20241 2019-04-10 Richard Biener <rguenther@suse.de>
20243 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20245 (DR_GROUP_SAME_DR_STMT): Remove.
20246 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20247 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20248 replace with assert.
20249 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20250 (vect_record_grouped_load_vectors): Remove unreachable code.
20252 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20255 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20256 obsolete reference to N.
20258 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20260 PR middle-end/90025
20261 * expr.c (store_expr): Set properly size on the MEM passed to
20265 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20266 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20267 translation is needed, and when translation is needed, only append
20268 ... if the string length is hostsz or more bytes long. Avoid using
20271 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20274 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20275 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20277 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20278 differences directly.
20279 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20281 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20283 PR translation/90011
20284 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20286 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20288 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20289 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20290 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20291 trailing space from -gsplit-dwarf diagnostics.
20293 PR tree-optimization/89998
20294 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20295 instead of integer_type_node if possible, don't add ranges if return
20296 type is not compatible with int.
20297 * gimple-fold.c (gimple_fold_builtin_sprintf,
20298 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20301 2019-04-09 Martin Liska <mliska@suse.cz>
20303 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20304 * doc/install.texi: Document the new config.
20306 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20308 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20309 use gimple_expr_type for load and store calls. Skip over the
20310 condition argument in a conditional internal function.
20311 Protect use of TREE_INT_CST_LOW.
20313 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20316 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20317 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20318 trailing period from it too.
20320 2019-04-08 wu yuan <wuyuan5@huawei.com>
20322 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20323 * config/aarch64/aarch64.md : Add "tsv110.md"
20324 * config/aarch64/tsv110.md: New file.
20326 2019-04-08 Richard Biener <rguenther@suse.de>
20328 PR tree-optimization/90006
20329 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20332 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20335 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20337 (fma_root_node): Likewise.
20338 (func_fma_steering): Likewise.
20340 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20342 PR rtl-optimization/89865
20343 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20345 PR rtl-optimization/89865
20346 * config/i386/i386.md
20347 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20348 numbers not to clash with the additional operands[4].
20349 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20350 with extra register copy in the middle.
20352 2019-04-08 Martin Liska <mliska@suse.cz>
20354 PR gcov-profile/89961
20355 * doc/gcov.texi: Document data_file.
20356 * gcov.c (generate_results): Add data_info into JSON output.
20358 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20360 PR tree-optimization/89725
20361 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20362 loop's chrec as invariant symbol.
20363 * tree-chrec.h (chrec_contains_symbols): New parameter.
20364 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20365 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20366 function of loops not in DDR's loop_nest.
20367 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20369 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20372 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20375 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20378 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20379 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20381 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20383 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20384 targetm.fixed_condition_code_regs.
20386 2019-04-05 Richard Biener <rguenther@suse.de>
20390 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20391 debug bind stmts but reset them if they are not valid at the
20394 2019-04-05 Martin Liska <mliska@suse.cz>
20396 PR translation/89936
20397 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20398 order to wrap keywords or arguments.
20399 * collect2.c (main): Likewise.
20400 (scan_prog_file): Likewise.
20401 (scan_libraries): Likewise.
20402 * common/config/riscv/riscv-common.c
20403 (riscv_subset_list::parsing_subset_version): Likewise.
20404 (riscv_subset_list::parse_std_ext): Likewise.
20405 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20407 * config/arm/arm.c (arm_option_override): Likewise.
20408 * config/cris/cris.c (cris_print_operand): Likewise.
20409 * config/darwin-c.c (darwin_pragma_options): Likewise.
20410 (darwin_pragma_unused): Likewise.
20411 (darwin_pragma_ms_struct): Likewise.
20412 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20413 * config/i386/i386.c (print_reg): Likewise.
20414 (ix86_print_operand): Likewise.
20415 * config/i386/xm-djgpp.h: Likewise.
20416 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20417 * config/m32c/m32c.c (m32c_option_override): Likewise.
20418 * config/msp430/msp430.c (msp430_option_override): Likewise.
20419 * config/nds32/nds32.c (nds32_option_override): Likewise.
20420 * config/nvptx/mkoffload.c (main): Likewise.
20421 * config/rx/rx.c (rx_print_operand): Likewise.
20422 (valid_psw_flag): Likewise.
20423 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20424 (vms_pragma_nomember_alignment): Likewise.
20425 (vms_pragma_extern_model): Likewise.
20426 * lto-wrapper.c (compile_offload_image): Likewise.
20427 * omp-offload.c (oacc_parse_default_dims): Likewise.
20428 * symtab.c (symtab_node::verify_base): Likewise.
20429 * tlink.c (recompile_files): Likewise.
20430 (start_tweaking): Likewise.
20431 * tree-profile.c (parse_profile_filter): Likewise.
20433 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20435 PR tree-optimization/89956
20436 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20437 multiple negates of the same value.
20439 2019-04-04 Martin Sebor <msebor@redhat.com>
20441 PR middle-end/89957
20442 PR middle-end/89911
20443 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20444 have the same precision since the function crashes otherwise.
20445 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20446 has non-zero arguments.
20448 2019-04-04 Martin Sebor <msebor@redhat.com>
20450 PR middle-end/89934
20451 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20452 out if the number of arguments is less than expected.
20454 2019-04-04 Jeff Law <law@redhat.com>
20456 PR rtl-optimization/89399
20457 * ree.c (combine_set_extension): Use single_set rather than
20458 digging into PATTERN for items on the candidate list.
20459 (combine_reaching_defs): Likewise.
20461 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20463 PR rtl-optimization/46590
20464 * loop-invariant.c (find_defs): Move df_remove_problem and
20465 df_process_deferred_rescans to move_invariants.
20466 Move df_live_add_problem and df_live_set_all_dirty calls
20467 to move_invariants.
20468 (move_invariants): Likewise.
20469 (move_loop_invariants): Likewise, making the df_live calls
20470 conditional on -O. Remove the problem again if we added it
20473 2019-04-03 qing zhao <qing.zhao@oracle.com>
20475 PR tree-optimization/89730
20476 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20477 -flive-patching=inline-only-static.
20478 (can_inline_edge_by_limits_p): Add the checking for
20479 -flive-patching=inline-only-static and grant always_inline
20480 even when -flive-patching=inline-only-static is specified.
20482 2019-04-03 Jeff Law <law@redhat.com>
20484 PR rtl-optimization/81025
20485 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20487 2019-04-03 Richard Biener <rguenther@suse.de>
20489 PR tree-optimization/84101
20490 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20491 regs.h for hard_regno_nregs.
20492 (cfun_returns): New helper.
20493 (vect_model_store_cost): When vectorizing a store to a decl
20494 we return and the function ABI returns in a multi-reg location
20495 account for the possible spilling that will happen.
20497 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20499 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20500 displacement addresses for vector mode operands.
20502 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20504 * config/arc/arc.c (GMASK_LEN): Define.
20505 (arc_restore_callee_saves): Restore first blink when
20508 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20510 * doc/extend.texi: Add deprecated comment on sign-return-address
20511 function attribute and add mbranch-protection.
20512 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20514 2019-04-03 Richard Biener <rguenther@suse.de>
20517 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20518 the all target phony.
20520 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20524 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20525 Return false for variable DImode shifts.
20526 (dimode_scalar_chain::compute_convert_gain): Do not handle
20527 register count operand in variable DImode shifts.
20528 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20529 count argument of a variable shift instruction to a vector register.
20530 (dimode_scalar_chain::convert_reg): Remove support to convert
20531 count argument of a variable shift instruction.
20533 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20535 PR rtl-optimization/84206
20536 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20537 iterating over loop headers.
20539 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20541 PR rtl-optimization/85876
20542 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20543 beyond the original fence.
20545 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20547 * config.gcc: Mark spu* targets as deprecated/obsolete.
20549 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20551 * config/s390/s390-builtin-types.def: New builtin function type
20552 definitions. Remove unused types.
20553 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20554 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20555 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20556 overloaded builtins.
20557 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20558 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20559 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20560 (vec_double, vec_signed, vec_unsigned): Define to use the new
20561 overloaded builtins.
20562 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20565 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20567 * config/s390/s390-builtin-types.def: New builtin function type
20569 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20570 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20571 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20572 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20573 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20574 constant definitions.
20575 * config/s390/vecintrin.h (vec_search_string_cc)
20576 (vec_search_string_until_zero_cc): New builtin name definitions.
20577 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20579 ("vec_vstrs<mode>"): New insn definition.
20581 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20583 * config/s390/s390-builtin-types.def: Add new builtin function
20585 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20586 New overloaded builtins.
20587 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20589 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20590 (UNSPEC_VEC_SLDBYTE): ... this.
20591 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20592 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20594 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20595 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20596 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20598 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20600 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20601 New insn definition.
20602 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20603 * config/s390/vector.md (V_HW_HSD): ... here.
20605 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20607 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20608 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20609 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20610 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20611 New insn definitions.
20613 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20615 * config/s390/s390-builtin-types.def: Add new builtin function type.
20616 * config/s390/s390-builtins.def: Add overloaded builtin
20617 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20618 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20619 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20620 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20621 ("eltswap<mode>"): New expander.
20622 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20625 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20627 * config/s390/s390-builtin-types.def: Add new builtin function types.
20628 * config/s390/s390-builtins.def: Add overloaded builtin
20629 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20631 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20632 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20633 ("bswap<mode>"): New expander.
20634 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20636 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20638 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20639 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20640 vector builtin version number in __VEC__.
20642 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20644 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20646 (SFSI): New mode attribute.
20647 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20648 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20650 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20651 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20652 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20653 ("floatsi<mode>2"): Add wcefb instruction.
20655 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20657 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20658 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20660 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20661 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20662 support 32 bit fp-int conversions. Rename to ...
20663 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20664 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20665 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20666 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20669 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20671 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20672 if-then-else constructs if we can use the select instruction.
20673 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20675 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20677 * config/s390/s390.md ("*popcountdi_arch13_cc")
20678 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20680 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20681 Append _z196 to make it ...
20682 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20683 ("popcounthi2_z196"): ... this.
20684 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20685 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20687 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20689 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20690 certain compares for arch13 in order to make use of the condition
20691 code result produced by the new instructions.
20692 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20693 nxrk, and nxgrk instruction patterns.
20694 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20695 (inv_no): Add new code iterator together with some attributes.
20696 ("*andc_split_<mode>"): Disable splitter for arch13.
20697 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20698 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20699 ("*<ANDOR:bitops_name>c<GPR:mode>")
20700 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20701 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20702 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20703 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20705 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20707 * common/config/s390/s390-common.c (processor_flags_table): New
20709 * config.gcc: Support arch13 with the --with-arch= configure flag.
20710 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20711 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20712 * config/s390/s390.c (s390_get_sched_attrmask)
20713 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20714 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20715 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20716 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20717 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20719 * config/s390/s390.opt: Support arch13 as processor type in
20720 command line options.
20722 2019-04-02 Martin Liska <mliska@suse.cz>
20724 PR translation/89912
20725 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20726 Fix param description of graphite-max-arrays-per-scop.
20728 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20730 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20731 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20732 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20734 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20736 PR rtl-optimization/85412
20737 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20738 sel_sched_region_1, not after.
20740 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20742 PR rtl-optimization/86928
20743 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20744 compute_live if necessary.
20745 (sel_redirect_edge_and_branch): Likewise.
20747 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20749 PR rtl-optimization/89865
20750 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20751 register if it is a part of small class.
20753 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20755 PR rtl-optimization/87273
20756 * sel-sched-ir.c (merge_fences): Remove assert.
20758 2019-04-01 Richard Biener <rguenther@suse.de>
20760 PR tree-optimization/46590
20761 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20762 (dom_walker::m_reachability): Add in place of...
20763 (dom_walker::m_skip_unreachable_blocks): ...this.
20764 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20765 Move complex initialization ...
20766 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20767 lazily and initialize edge flags on each invocation.
20768 (dom_walker::bb_reachable): Use m_reachability.
20770 2019-04-01 Martin Liska <mliska@suse.cz>
20773 * opt-suggestions.c (option_proposer::build_option_suggestions):
20774 Add variant without any argument in order to provide better
20777 2019-04-01 Richard Biener <rguenther@suse.de>
20780 * gimple.c: Include langhooks.h.
20781 (gimple_get_alias_set): Treat enumeral types as the underlying
20784 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20785 Eric Botcazou <ebotcazou@adacore.com>
20787 PR rtl-optimization/89862
20788 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20789 that operates on the full registers for WORD_REGISTER_OPERATIONS
20792 2019-03-29 Jim Wilson <jimw@sifive.com>
20794 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20795 Clear MASK_RVC and then set if C subset supported.
20797 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20800 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20801 non-addressable complit into its initializer if it is volatile.
20803 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20805 * opts-common.c (integral_argument): Set errno properly in one case.
20807 2019-03-29 Martin Liska <mliska@suse.cz>
20809 * doc/invoke.texi: Remove -Wchkp from documentation.
20811 2019-03-29 Martin Liska <mliska@suse.cz>
20813 * dbgcnt.c (print_limit_reach): New function.
20816 2019-03-29 Martin Liska <mliska@suse.cz>
20818 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20819 (dbg_cnt_process_opt): Parse first tokens aas
20820 dbg_cnt_process_single_pair is also using strtok.
20822 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20824 PR rtl-optimization/87485
20825 * function.c (expand_function_end): Move stack_protect_epilogue
20826 before loading of return value into hard register(s).
20828 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20830 PR middle-end/89621
20831 * tree-inline.h (struct copy_body_data): Add
20832 dont_remap_vla_if_no_change flag.
20833 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20834 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20835 and remap_type_2 returns false.
20836 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20837 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20838 only from where it is copied to nested contexts.
20840 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20843 * config/i386/i386.md (RMW operation with LEA peephole):
20844 Use LEAMODE mode attribute instead of SWI mode iterator for
20847 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20850 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20851 Also process XEXP (src, 0) of a shift insn.
20853 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20855 PR middle-end/89725
20856 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20857 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20859 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20861 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20863 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20864 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20865 immediately after first one with df_analyze in between, but rather
20866 process all bbs, queueing ones that need second pass in a worklist,
20867 df_analyze, process queued debug insn changes and if second pass is
20868 needed, process bbs from worklist, df_analyze, process queued debug
20871 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20872 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20873 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20875 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20878 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20881 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
20884 * config/i386/i386.c (ix86_function_value_1): Call the newly added
20885 function for 32-bit MS_ABI.
20886 (function_value_ms_32): New function.
20888 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
20890 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20891 (movdi): Call gen_movdi_symbol_save_scc.
20892 (gen_movdi_symbol_save_scc): New insn and split.
20894 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
20896 PR rtl-optimization/89313
20897 * function.c (matching_constraint_num): New static function.
20898 (match_asm_constraints_1): Use it. Fixup white space and comment.
20899 Don't replace inputs with non-matching constraints which conflict
20900 with early clobber outputs.
20902 2019-03-27 Jeff Law <law@redhat.com>
20904 PR rtl-optimization/87761
20905 PR rtl-optimization/89826
20906 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20908 (pass_cprop_hardreg::execute): Call df_analyze after adding the
20909 note problem to get REG_DEAD/REG_UNUSED notes updated.
20911 2019-03-27 Richard Biener <rguenther@suse.de>
20913 PR tree-optimization/89463
20914 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20915 queue edges to remove.
20916 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20917 dead stmts. Delay edge removal until PHIs are removed to
20918 make debug-stmt creation not confused by seemingly degenerate
20921 2019-03-27 Alan Modra <amodra@gmail.com>
20923 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20925 * config/rs6000/darwin.h: Likewise.
20926 * config/rs6000/rs6000.c: Likewise.
20928 2019-03-27 Alan Modra <amodra@gmail.com>
20930 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20931 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
20933 2019-03-26 Andrew Waterman <andrew@sifive.com>
20934 Jim Wilson <jimw@sifive.com>
20936 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20937 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20938 (generic_idivdi, generic_fmul_single, generic_fmul_double)
20939 (generic_fdiv, generic_fsqrt): Add check for generic tune.
20940 (generic_alu): Add auipc to type list.
20941 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20942 (riscv_microarchitecture): Declare.
20943 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20944 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20946 (riscv_microarchitecture): New.
20947 (sifive_7_tune_info): New.
20948 (riscv_cpu_info_table): Add microarchitecture value for rocket and
20949 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
20951 (riscv_store_data_bypass_p): New.
20952 (riscv_option_override): Set riscv_microarchitecture from
20953 cpu->microarchitecture.
20954 * config/riscv/riscv.md: Include sifive-7.md.
20957 (auipc<mode>): Change type to auipc.
20958 (restore_stack_nonlocal): New.
20959 * config/riscv/sifive-7.md: New.
20960 * doc/invoke.texi (RISC-V Options): Update mtune docs.
20962 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
20965 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
20966 Also process XEXP (src, 0) of a shift insn.
20968 2019-03-26 Richard Biener <rguenther@suse.de>
20970 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
20971 (copy_debug_stmt): Likewise.
20972 (expand_call_inline): Likewise.
20973 (copy_bb): Avoid redundant lookup & set of gimple_block.
20974 * gimple-low.c (lower_gimple_return): Likewise.
20975 (lower_builtin_setjmp): Likewise.
20977 2019-03-26 Jakub Jelinek <jakub@redhat.com>
20979 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
20980 is constant 0, turn into static const data member initialized to false.
20981 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
20982 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
20984 2019-03-26 Jason Merrill <jason@redhat.com>
20985 Jakub Jelinek <jakub@redhat.com>
20987 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
20989 (mem_alloc_description::release_object_overhead): Fix comment typos.
20990 * hash-table.h (hash_table::~hash_table): Call
20991 release_instance_overhead only if m_entries is non-NULL, otherwise
20992 call unregister_descriptor.
20994 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
20996 PR tree-optimization/81740
20997 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20998 In case of outer loop vectorization, check for backward dependence
20999 at the inner loop if outer loop dependence is reversed.
21001 2019-03-26 Alan Modra <amodra@gmail.com>
21003 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21004 rs6000_vector_mem init. Correct wI and wJ comment.
21006 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21008 PR rtl-optimization/88347
21009 PR rtl-optimization/88423
21010 * sched-deps.c (sched_analyze_insn): Take into account that for
21011 tablejumps the barrier appears after a label and a jump_table_data.
21013 2019-03-25 Martin Sebor <msebor@redhat.com>
21016 * c-common.c (check_user_alignment): Rename local. Correct maximum
21017 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21018 convert it to UHWI when it fits.
21020 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21023 * dwarf2out.c (premark_used_variables): New function.
21024 (prune_unused_types_walk): Do not mark not premarked external
21026 (prune_unused_types): Call premark_used_variables.
21028 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21030 PR rtl-optimization/89676
21031 * lra-constraints.c (curr_insn_transform): Do match reload for
21032 early clobbers when the match was successful only for different
21035 2019-03-25 Martin Sebor <msebor@redhat.com>
21037 * doc/extend.texi (Common Type Attributes): Document vector_size.
21038 (Common Variable Attributes): Mention size constraint. Correct
21040 (Vector Extensions): Use @dfn when defining bas type. Clarify
21041 base type and size constraints.
21043 2019-03-25 Richard Biener <rguenther@suse.de>
21045 PR tree-optimization/89789
21046 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21047 changes from non-undefined back to undefined.
21049 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21051 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21052 heap string and a gc string, but since this variable is unknown to
21053 ggc the gc string might get reused and corrupted. Fixed by always
21054 using a heap string.
21056 2019-03-25 Richard Biener <rguenther@suse.de>
21058 PR tree-optimization/89779
21059 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21060 to remove IV defs, delay actual removal.
21061 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21062 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21063 very end, properly also reset loop control IV information.
21065 2019-03-25 Richard Biener <rguenther@suse.de>
21067 PR tree-optimization/89802
21068 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21069 move EH data to folded stmt.
21071 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21073 * config/s390/s390-builtin-types.def: Remove few unused types and
21074 fix sort order for others.
21076 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21078 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21079 expected and found types with -mdebug during builtin matching.
21081 2019-03-25 Richard Biener <rguenther@suse.de>
21083 PR middle-end/89790
21084 * fold-const.c (operand_equal_p): Revert last change with
21087 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21089 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21090 notes for the result of the __tls_get_addr calls.
21091 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21093 2019-03-24 Jeff Law <law@redhat.com>
21095 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21097 PR rtl-optimization/87761
21098 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21099 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21101 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21102 rescans. Reprocess blocks as needed, calling df_analyze before
21103 reprocessing. Always call df_analyze before fixing up debug bind
21106 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21108 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21111 2019-03-22 Andrew Pinski <apinski@marvell.com>
21113 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21114 attrribute for uxtw.
21116 2019-03-26 Jeff Law <law@redhat.com>
21118 PR rtl-optimization/87761
21119 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21120 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21121 (mips_split_move): Accept new INSN argument. Try to forward SRC
21122 into the next instruction.
21123 (mips_split_move_insn): Pass INSN through to mips_split_move.
21125 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21127 PR rtl-optimization/89676
21128 * lra-constraints.c (curr_insn_transform): Do match reload for
21129 early clobbers even if the match was successful.
21131 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21134 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21136 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21138 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21140 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21142 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21143 <avx512>_fmsub_<mode>_mask3<round_name>,
21144 <avx512>_fnmadd_<mode>_mask3<round_name>,
21145 <avx512>_fnmsub_<mode>_mask3<round_name>,
21146 avx512f_vmfmadd_<mode>_mask3<round_name>,
21147 avx512f_vmfmsub_<mode>_mask3<round_name>,
21148 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21149 instead of register_operand and %v instead of v for match_operand 1.
21150 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21151 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21152 <round_nimm_predicate> instead of register_operand and %v instead of v
21153 for match_operand 1.
21155 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21156 <avx512>_fmadd_<mode>_mask3<round_name>,
21157 <avx512>_fmsub_<mode>_mask<round_name>,
21158 <avx512>_fmsub_<mode>_mask3<round_name>,
21159 <avx512>_fnmadd_<mode>_mask<round_name>,
21160 <avx512>_fnmadd_<mode>_mask3<round_name>,
21161 <avx512>_fnmsub_<mode>_mask<round_name>,
21162 <avx512>_fnmsub_<mode>_mask3<round_name>,
21163 <avx512>_fmaddsub_<mode>_mask<round_name>,
21164 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21165 <avx512>_fmsubadd_<mode>_mask<round_name>,
21166 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21167 <round_nimm_predicate> instead of nonimmediate_operand.
21168 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21169 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21170 Use register_operand instead of <round_nimm_predicate> for the
21171 operand that needs to match output.
21172 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21173 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21174 Likewise. Formatting fixes.
21177 * config/i386/i386.c (enum ix86_builtins): Remove
21178 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21179 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21180 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21181 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21182 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21183 __builtin_ia32_vfmsubss3_mask3): New builtins.
21184 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21185 avx512f_vmfmadd_<mode>_mask3<round_name>,
21186 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21187 *avx512f_vmfmsub_<mode>_mask<round_name>,
21188 avx512f_vmfmsub_<mode>_mask3<round_name>,
21189 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21190 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21191 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21192 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21193 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21194 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21195 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21196 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21197 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21198 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21199 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21200 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21201 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21202 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21203 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21204 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21205 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21206 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21207 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21208 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21209 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21210 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21211 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21212 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21213 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21214 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21215 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21216 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21218 2019-03-21 Martin Sebor <msebor@redhat.com>
21220 PR tree-optimization/89350
21221 * builtins.c (compute_objsize): Also ignore offsets whose upper
21223 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21224 (builtin_memref::builtin_memref): Initialize new member.
21225 Allow EXPR to be null.
21226 (builtin_memref::extend_offset_range): Replace local with a member.
21227 Avoid assuming pointer offsets are unsigned.
21228 (builtin_memref::set_base_and_offset): Determine base object
21229 before computing offset range.
21230 (builtin_access::builtin_access): Handle memset.
21231 (builtin_access::generic_overlap): Replace local with a member.
21232 (builtin_access::strcat_overlap): Same.
21233 (builtin_access::overlap): Same.
21234 (maybe_diag_overlap): Same.
21235 (maybe_diag_access_bounds): Same.
21236 (wrestrict_dom_walker::check_call): Handle memset.
21237 (check_bounds_or_overlap): Same.
21239 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21240 Jakub Jelinek <jakub@redhat.com>
21243 * tree.c (fld_type_variant, fld_incomplete_type_of,
21244 fld_process_array_type): Call fld->pset.add and don't call
21245 add_tree_to_fld_list if it returns true.
21246 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21247 non-marked types from TYPE_NEXT_VARIANT list.
21248 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21250 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21252 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21253 to false, if true, don't alloc_entries during construction, but defer
21254 it to the first method that needs m_entries allocated.
21255 (hash_table::hash_table, hash_table::~hash_table,
21256 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21257 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21258 hash_table::clear_slot, hash_table::traverse_noresize,
21259 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21260 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21262 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21263 NO_INSERT instead of find_with_hash.
21264 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21265 hash_set::m_table): Add Lazy to template params of hash_table.
21266 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21267 * attribs.c (test_attribute_exclusions): Likewise.
21268 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21269 hash_set. Add tests for hash_set with Lazy = true.
21271 2019-03-21 Richard Biener <rguenther@suse.de>
21273 PR tree-optimization/89779
21274 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21275 checks with respect to released SSA names now having error_mark_node
21277 * fold-const.c (operand_equal_p): Likewise.
21279 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21282 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21284 (s390_optimize_register_info): Use global_not_special_regno_p to
21285 check for global regs.
21287 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21290 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21291 update this_alternative nor this_alternative_set.
21293 2019-03-19 Jim Wilson <jimw@sifive.com>
21296 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21297 align, size, offset. Use them to handle a BLKmode reference. Update
21299 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21301 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21303 PR rtl-optimization/89768
21304 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21305 instead of GEN_INT.
21306 (unroll_loop_runtime_iterations): Likewise.
21308 2019-03-19 Martin Sebor <msebor@redhat.com>
21310 PR tree-optimization/89644
21311 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21312 rather than endptr as an indicator of nul-termination.
21314 PR tree-optimization/89644
21315 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21316 arrays in determining sequence sizes in strncpy and stpncpy.
21318 2019-03-19 Martin Liska <mliska@suse.cz>
21320 PR middle-end/89737
21321 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21322 unlikely_edges if there's an edge that belongs to both these sets.
21324 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21327 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21328 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21329 go via a stack temporary.
21331 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21334 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21335 instead of gen_rtx_SUBREG.
21336 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21338 2019-03-19 Richard Biener <rguenther@suse.de>
21341 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21343 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21347 * tree.c (free_lang_data_in_decl): Do not free context of C++
21350 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21353 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21354 subs for the first alternative except when operands[3] is 1.
21357 * gimplify.c (gimplify_asm_expr): For output argument with
21358 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21361 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21363 PR rtl-optimization/89753
21364 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21365 explicit unrolling factor even more robust.
21367 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21370 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21371 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21372 signed zeros, do another copysign after the compensation.
21374 2019-03-18 Martin Sebor <msebor@redhat.com>
21376 PR tree-optimization/89720
21377 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21378 more conservatively, the same as anti-range.
21380 2019-03-18 Richard Biener <rguenther@suse.de>
21382 PR middle-end/88945
21383 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21384 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21385 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21386 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21388 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21390 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21391 Extend queue to 1024 entries.
21392 Add "consumed" field.
21393 (gomp_print_output): Remove print_index parameter.
21394 Add final parameter.
21395 Change limit to unsigned.
21396 Use consumed field to implement circular buffer.
21397 Detect interrupted print in final pass.
21398 Flush output at the end.
21399 (run): Update gomp_print_output usage.
21400 (main): Initialize kernargs->output_data.consumed.
21402 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21404 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21405 calculation of the minimum number of scalar iterations for
21406 fully-predicated loops.
21408 2019-03-18 Martin Jambor <mjambor@suse.cz>
21410 PR tree-optimization/89546
21411 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21412 any propagation to its children took place.
21414 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21417 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21418 parameter, and make use of it.
21419 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21421 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21423 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21424 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21425 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21426 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21427 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21428 match what the ops is doing.
21429 (push_multi_fp_blink): Likewise.
21430 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21431 compiling for size and elf target.
21432 (arc_save_callee_enter): Adjust note to match what enter/leave
21435 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21437 * config/arc/arc.md (tst_movb): Fix constraint.
21439 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21441 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21443 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21445 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21446 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21447 reg_alloc_order references.
21448 (size_alloc_order): Define.
21449 (arc_adjust_reg_alloc_order): New function.
21450 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21452 (ADJUST_REG_ALLOC_ORDER): Define.
21453 (HONOR_REG_ALLOC_ORDER): Likewise.
21455 2019-03-18 Richard Biener <rguenther@suse.de>
21458 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21459 loads and stores a bit more.
21461 2019-03-18 Richard Biener <rguenther@suse.de>
21464 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21465 load pessimization to stores as well.
21467 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21469 PR middle-end/86979
21470 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21471 successor, use NULL as its av set.
21473 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21475 PR rtl-optimization/89721
21476 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21478 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21481 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21482 When handling vec_extract, use modular arithmetic to allow
21483 constant selectors greater than vector length.
21484 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21485 V1TImode vectors to have constant selector values greater than 0.
21486 Use modular arithmetic to compute vector index.
21487 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21488 index for in-memory vectors. Correct code generation for
21489 in-register vectors.
21490 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21493 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21497 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21500 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21503 * tree.c (inchash::add_expr): Strip any location wrappers.
21504 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21505 after hash verification.
21508 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21509 SIGN_EXTEND and ZERO_EXTEND.
21511 2019-03-14 Jason Merrill <jason@redhat.com>
21512 Jakub Jelinek <jakub@redhat.com>
21514 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21515 than if is_empty (*slot).
21516 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21517 existing elt and for elt removal.
21518 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21519 of already removed elt.
21521 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21524 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21525 REG_EH_REGION note.
21527 2019-03-14 Martin Liska <mliska@suse.cz>
21530 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21532 2019-03-14 Richard Biener <rguenther@suse.de>
21535 * config/i386/i386.c (make_resolver_func): Properly set
21536 DECL_CONTEXT on the RESULT_DECL.
21537 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21539 2019-03-14 Richard Biener <rguenther@suse.de>
21541 * gimple-pretty-print.c: Include cfgloop.h.
21542 (dump_gimple_phi): Adjust.
21543 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21544 (pp_cfg_jump): Adjust.
21545 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21546 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21547 (lower_phi_internal_fn): Remove.
21548 (verify_gimple_call): Remove IFN_PHI special-casing.
21549 (dump_function_to_file): Dump IL state.
21550 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21551 done to deal with PHI nodes being present in non-SSA state.
21553 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21556 * multiple_target.c (create_dispatcher_calls): Change
21557 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21558 In the node->iterate_referring loop, push *ref rather than ref, call
21559 ref->remove_reference () and always pass 0 to iterate_referring.
21561 PR rtl-optimization/89679
21562 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21563 would contain a paradoxical SUBREG.
21565 2019-03-14 Richard Biener <rguenther@suse.de>
21567 PR tree-optimization/89710
21568 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21571 2019-03-14 Martin Liska <mliska@suse.cz>
21573 * coverage.c (coverage_begin_function): Stream also
21575 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21576 documentation about function declaration location.
21577 * gcov-dump.c (tag_function): Print whole range
21578 of function declaration.
21579 * gcov.c (struct function_info): Add end_column field.
21580 (function_info::function_info): Initialize it.
21581 (output_json_intermediate_file): Output {start,end}_column
21583 (read_graph_file): Read end_column.
21585 2019-03-14 Richard Biener <rguenther@suse.de>
21587 PR middle-end/89698
21588 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21589 that the access types are similar.
21591 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21593 PR tree-optimization/89703
21594 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21595 aren't compatible also with builtin_decl_explicit. Check pure
21596 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21597 and BUILT_IN_STPNCPY{,_CHK}.
21599 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21602 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21603 addr32 prefix to VSIB address for X32.
21604 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21606 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21607 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21608 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21609 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21610 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21611 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21612 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21613 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21614 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21615 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21616 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21617 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21618 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21619 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21620 (*avx512f_scatterdi<mode>): Likewise.
21622 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21625 * lra-constraints.c (inherit_in_ebb): Update
21626 potential_reload_hard_regs along with live_hard_regs.
21628 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21631 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21633 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21635 2019-03-13 Martin Sebor <msebor@redhat.com>
21637 PR tree-optimization/89662
21638 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21641 2019-03-13 Richard Biener <rguenther@suse.de>
21643 PR middle-end/89677
21644 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21645 throw FP expressions at tree-affine.
21647 2019-03-14 Richard Biener <rguenther@suse.de>
21649 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21650 dump negative integer constants using _Literal (type) -num.
21652 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21654 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21655 nonlocal_value member.
21657 PR middle-end/88588
21658 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21659 (ipa_simd_modify_function_body): Handle PHIs.
21661 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21663 * config/s390/s390.c (s390_option_override_internal): Use more
21664 aggressive inlining parameters.
21666 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21668 * config/s390/3906.md: New file.
21669 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21670 (LONGRUNNING_THRESHOLD): Remove.
21671 (MAX_SCHED_MIX_SCORE): Decrease.
21672 (MAX_SCHED_MIX_DISTANCE): Decrease.
21673 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21674 (struct s390_sched_state): New struct to hold scheduling state.
21675 (S390_SCHED_STATE_NORMAL): Remove.
21676 (S390_SCHED_STATE_CRACKED): Remove.
21677 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21678 (s390_get_sched_attrmask): Use new attribute.
21679 (s390_get_unit_mask): Use new units.
21680 (s390_is_fpd): New function.
21681 (s390_is_fxd): New function.
21682 (s390_is_longrunning): New function.
21683 (s390_sched_score): Use new functions.
21684 (s390_sched_reorder): Likewise.
21685 (s390_sched_variable_issue): Rework and use new functions.
21686 (s390_sched_init): Use new functions.
21687 * config/s390/s390.h (s390_tune_attr): Add z14.
21688 * config/s390/s390.md: Add z14.
21690 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21692 * config/s390/2964.md: Update pipeline description.
21693 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21694 (LONGRUNNING_THRESHOLD): Remove.
21695 (LATENCY_FACTOR): Remove.
21696 (s390_get_unit_mask): Add unit.
21697 (s390_sched_score): Use fxd/fpd.
21698 (s390_sched_variable_issue): Use fxd/fpd.
21700 2019-03-12 Martin Liska <mliska@suse.cz>
21702 * config/i386/i386.c: Reword an error message.
21704 2019-03-12 Martin Jambor <mjambor@suse.cz>
21706 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21707 terminate with newline.
21709 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21712 * config/s390/s390.md (tabort): Use %wd instead of
21713 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21714 letters and periods.
21715 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21716 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21719 PR middle-end/89663
21720 * builtins.c (expand_builtin_int_roundingfn,
21721 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21722 gcc_unreachable if validate_arglist fails.
21724 2019-03-12 Richard Biener <rguenther@suse.de>
21726 PR tree-optimization/89664
21727 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21728 free the occurance tree after the early out.
21730 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21732 PR middle-end/89655
21734 * vr-values.c (vr_values::update_value_range): If
21735 old_vr->varying_p (), don't update it, make new_vr also VARYING
21738 2019-03-11 Martin Liska <mliska@suse.cz>
21740 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21741 Fix double string quoting.
21743 2019-03-11 Martin Liska <mliska@suse.cz>
21745 * collect-utils.c (collect_wait): Wrap apostrophes
21746 in gcc internal format with %'.
21747 * collect2.c (main): Likewise.
21748 (scan_prog_file): Likewise.
21749 (scan_libraries): Likewise.
21750 * config/i386/i386.c (ix86_expand_call): Likewise.
21751 (ix86_handle_interrupt_attribute): Likewise.
21752 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21753 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21754 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21755 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21756 * symtab.c (symtab_node::verify_base): Likewise.
21757 * tree-cfg.c (verify_gimple_label): Likewise.
21758 * tree.c (verify_type_variant): Likewise.
21760 2019-03-11 Martin Liska <mliska@suse.cz>
21762 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21763 in a string format message and fix GNU coding style.
21764 (expand_builtin_set_thread_pointer): Likewise.
21765 * common/config/aarch64/aarch64-common.c
21766 (aarch64_rewrite_selected_cpu): Likewise.
21767 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21768 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21769 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21770 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21771 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21772 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21773 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21774 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21775 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21776 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21778 * common/config/riscv/riscv-common.c
21779 (riscv_subset_list::parsing_subset_version): Likewise.
21780 (riscv_subset_list::parse_std_ext): Likewise.
21781 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21782 (riscv_subset_list::parse): Likewise.
21783 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21784 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21785 (aarch64_override_options_internal): Likewise.
21786 (aarch64_validate_mcpu): Likewise.
21787 (aarch64_validate_march): Likewise.
21788 (aarch64_validate_mtune): Likewise.
21789 (aarch64_override_options): Likewise.
21790 * config/alpha/alpha.c (alpha_option_override): Likewise.
21791 * config/arc/arc.c (arc_init): Likewise.
21792 (parse_mrgf_banked_regs_option): Likewise.
21793 (arc_override_options): Likewise.
21794 (arc_expand_builtin_aligned): Likewise.
21795 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21796 (arm_expand_builtin): Likewise.
21797 * config/arm/arm.c (arm_option_check_internal): Likewise.
21798 (arm_configure_build_target): Likewise.
21799 (arm_option_override): Likewise.
21800 (arm_options_perform_arch_sanity_checks): Likewise.
21801 (arm_handle_cmse_nonsecure_entry): Likewise.
21802 (arm_handle_cmse_nonsecure_call): Likewise.
21803 (arm_tls_referenced_p): Likewise.
21804 (thumb1_expand_prologue): Likewise.
21805 * config/avr/avr.c (avr_option_override): Likewise.
21806 * config/bfin/bfin.c (bfin_option_override): Likewise.
21807 * config/c6x/c6x.c (c6x_option_override): Likewise.
21808 * config/cr16/cr16.c (cr16_override_options): Likewise.
21809 * config/cris/cris.c (cris_option_override): Likewise.
21810 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21811 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21812 * config/darwin.c (darwin_override_options): Likewise.
21813 * config/frv/frv.c (frv_expand_builtin): Likewise.
21814 * config/h8300/h8300.c (h8300_option_override): Likewise.
21815 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21816 (ix86_option_override_internal): Likewise.
21817 (warn_once_call_ms2sysv_xlogues): Likewise.
21818 (ix86_expand_prologue): Likewise.
21819 (split_stack_prologue_scratch_regno): Likewise.
21820 (ix86_warn_parameter_passing_abi): Likewise.
21821 * config/ia64/ia64.c (fix_range): Likewise.
21822 * config/m68k/m68k.c (m68k_option_override): Likewise.
21823 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21824 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21825 (mips_set_compression_mode): Likewise.
21826 * config/mmix/mmix.c (mmix_option_override): Likewise.
21827 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21828 * config/msp430/msp430.c (msp430_option_override): Likewise.
21829 * config/nds32/nds32.c (nds32_option_override): Likewise.
21830 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21831 (nios2_option_override): Likewise.
21832 (nios2_expand_custom_builtin): Likewise.
21833 * config/nvptx/mkoffload.c (main): Likewise.
21834 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21835 * config/pa/pa.c (fix_range): Likewise.
21836 (pa_option_override): Likewise.
21837 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21838 (riscv_option_override): Likewise.
21839 * config/rl78/rl78.c (rl78_option_override): Likewise.
21840 * config/rs6000/aix61.h: Likewise.
21841 * config/rs6000/aix71.h: Likewise.
21842 * config/rs6000/aix72.h: Likewise.
21843 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21844 * config/rs6000/freebsd64.h: Likewise.
21845 * config/rs6000/linux64.h: Likewise.
21846 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21847 (rs6000_expand_zeroop_builtin): Likewise.
21848 (rs6000_expand_mtfsb_builtin): Likewise.
21849 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21850 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21851 (rs6000_invalid_builtin): Likewise.
21852 (rs6000_expand_split_stack_prologue): Likewise.
21853 * config/rs6000/rtems.h: Likewise.
21854 * config/rx/rx.c (valid_psw_flag): Likewise.
21855 (rx_expand_builtin): Likewise.
21856 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21857 * config/s390/s390.c (s390_expand_builtin): Likewise.
21858 (s390_function_profiler): Likewise.
21859 (s390_option_override_internal): Likewise.
21860 (s390_option_override): Likewise.
21861 * config/sh/sh.c (sh_option_override): Likewise.
21862 (sh_builtin_saveregs): Likewise.
21863 (sh_fix_range): Likewise.
21864 * config/sh/vxworks.h: Likewise.
21865 * config/sparc/sparc.c (sparc_option_override): Likewise.
21866 * config/spu/spu.c (spu_option_override): Likewise.
21867 (fix_range): Likewise.
21868 * config/visium/visium.c (visium_option_override): Likewise.
21869 (visium_handle_interrupt_attr): Likewise.
21870 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21871 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21872 (dbg_cnt_process_opt): Likewise.
21873 * dwarf2out.c (output_dwarf_version): Likewise.
21874 * except.c (expand_eh_return): Likewise.
21875 * gcc.c (defined): Likewise.
21876 (driver_handle_option): Likewise.
21877 (process_command): Likewise.
21878 (compare_files): Likewise.
21879 (driver::prepare_infiles): Likewise.
21880 (driver::do_spec_on_infiles): Likewise.
21881 (driver::maybe_run_linker): Likewise.
21882 * omp-offload.c (oacc_parse_default_dims): Likewise.
21883 * opts-global.c (handle_common_deferred_options): Likewise.
21884 * opts.c (parse_sanitizer_options): Likewise.
21885 (common_handle_option): Likewise.
21886 (enable_warning_as_error): Likewise.
21887 * passes.c (enable_disable_pass): Likewise.
21888 * plugin.c (parse_plugin_arg_opt): Likewise.
21889 (default_plugin_dir_name): Likewise.
21890 * targhooks.c (default_expand_builtin_saveregs): Likewise.
21891 (default_pch_valid_p): Likewise.
21892 * toplev.c (init_asm_output): Likewise.
21893 (process_options): Likewise.
21894 (toplev::run_self_tests): Likewise.
21895 * tree-cfg.c (verify_gimple_call): Likewise.
21896 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21897 (tree_inlinable_function_p): Likewise.
21898 * var-tracking.c (vt_find_locations): Likewise.
21900 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
21902 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21903 only on the else branch.
21905 2019-03-11 Martin Liska <mliska@suse.cz>
21907 * gcov.c (output_intermediate_json_line): Print function
21909 (output_json_intermediate_file): Add new argument.
21910 * doc/gcov.texi: Document the change.
21912 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
21914 PR rtl-optimization/89588
21915 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21916 explicit unrolling factor more robust.
21918 2019-03-11 Richard Biener <rguenther@suse.de>
21920 PR tree-optimization/89649
21921 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21922 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21923 on the prolog and epilog loops.
21924 (vect_loop_versioning): Return copy of loop.
21925 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21926 on the non-vectorized version of the loop.
21928 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
21931 * config/i386/sse.md (*vec_extractv2di_0_sse):
21932 Add (=r,x) alternative and corresponding splitter.
21934 2019-03-10 Martin Jambor <mjambor@suse.cz>
21936 PR tree-optimization/85762
21937 PR tree-optimization/87008
21938 PR tree-optimization/85459
21939 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21940 it points to if there is a type changing MEM_REF. Adjust all callers.
21941 (build_accesses_from_assign): Disable total scalarization if
21942 contains_vce_or_bfcref_p returns true through the new parameter, for
21945 2019-03-09 Jakub Jelinek <jakub@redhat.com>
21948 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21949 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21952 * common.opt (fdiagnostics-show-labels,
21953 fdiagnostics-show-line-numbers, fdiagnostics-format=,
21954 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
21955 gas-locview-support, ginline-points, ginternal-reset-location-views):
21956 Terminate description text with a dot.
21957 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
21958 * config/mcore/mcore.opt (m210, m340): Likewise.
21959 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
21960 mnops=): Start description text with a capital letter.
21961 * config/arc/arc.opt (msize-level=): Likewise.
21962 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
21963 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
21964 mnewlib): Likewise.
21965 * config/ft32/ft32.opt (msim): Likewise.
21966 (mft32b, mcompress): Likewise. Terminate description text with a dot.
21967 (mnodiv, mnopm): Terminate description text with a dot.
21968 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
21970 * config/i386/i386.opt (prefer_vector_width, instrument_return):
21972 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
21975 PR rtl-optimization/89634
21976 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
21977 are modified in BB_END (e->src) instruction.
21979 2019-03-08 David Malcolm <dmalcolm@redhat.com>
21982 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
21983 messages more amenable to translation, and improve wording.
21985 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
21987 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
21988 ud- and du-chains between phases.
21990 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
21993 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
21994 instead of POLY_INT_CST.
21996 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
21998 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22001 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22006 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22007 (_mm_storeu_si64): Ditto.
22009 2019-03-08 Martin Liska <mliska@suse.cz>
22012 * config/i386/i386.c (ix86_option_override_internal): Disable
22013 jump tables when retpolines are used.
22015 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22018 * ipa-split.c (execute_split_functions): Do not split
22019 'noinline' or 'section' function.
22021 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22024 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22025 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22026 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22029 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22030 from diagnostics. Formatting fixes.
22033 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22034 warn_odr diagnostics.
22037 * lra-constraints.c (process_alt_operands): Avoid one space before
22038 " at the end of line and another after " on another line in a string
22040 * attribs.c (handle_dll_attribute): Likewise.
22041 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22043 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22044 warning_at or inform messages in G_() if there is no ?:.
22046 PR tree-optimization/89550
22047 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22048 returned true. Formatting fixes.
22049 (expand_builtin_strnlen): Formatting fixes.
22050 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22051 if warning_at returned true.
22052 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22054 2019-03-08 Richard Biener <rguenther@suse.de>
22056 PR middle-end/89578
22057 * cfgloop.h (struct loop): Add owned_clique field.
22058 * cfgloopmanip.c (copy_loop_info): Copy it.
22059 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22061 * tree-inline.c (copy_loops): Remap owned_clique.
22062 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22063 * lto-streamer-out.c (output_cfg): Likewise.
22065 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22068 * config/darwin.c: Include intl.h.
22069 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22070 composing the message out of two separate parts.
22072 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22075 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22076 doesn't start with a capital letter and doesn't end with a dot.
22077 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22078 with a capital letter.
22079 (ix86_mangle_function_version_assembler_name): Likewise.
22080 (ix86_generate_version_dispatcher_body): Likewise.
22081 (fold_builtin_cpu): Likewise.
22082 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22083 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22084 translators, wrap full type name in %qs.
22086 PR translation/79999
22087 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22088 depend clause with source (or sink) modifier.
22089 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22092 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22093 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22094 (avx512f_load<mode>_mask): New define_expand.
22095 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22096 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22097 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22098 __builtin_ia32_movess_mask): New builtins.
22099 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22100 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22101 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22102 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22104 2019-03-07 Martin Jambor <mjambor@suse.cz>
22107 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22108 for extern inline functions.
22110 2019-03-07 Martin Jambor <mjambor@suse.cz>
22113 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22114 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22115 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22116 have multiple callees. At the end check if declarations match as
22117 opposed to cgraph_nodes.
22119 2019-03-07 Martin Liska <mliska@suse.cz>
22121 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22122 which is equivalent to searching for this in clones chain.
22123 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22124 names with a neighbour and special case first node in a chain.
22126 2019-01-25 Jason Merrill <jason@redhat.com>
22128 PR c++/80916 - spurious "static but not defined" warning.
22129 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22130 for an internal symbol with DECL_EXTERNAL.
22132 2019-04-07 Richard Biener <rguenther@suse.de>
22134 PR middle-end/89618
22135 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22136 * tree-inline.c (copy_loops): Simplify.
22138 2019-03-07 Martin Liska <mliska@suse.cz>
22140 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22142 2019-03-07 Richard Biener <rguenther@suse.de>
22144 PR tree-optimization/89595
22145 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22146 stmt iterator as reference, take boolean output parameter to
22147 indicate whether the stmt was removed and thus the iterator
22149 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22150 stmts created by folding.
22152 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22155 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22158 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22160 PR rtl-optimization/88845
22161 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22163 * lra.c (remove_scratches_1): New function.
22164 (remove_scratches): Use it.
22165 (lra_emit_move): Likewise.
22167 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22169 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22170 unaligned_access variable.
22171 * config/arc/arc.c (arc_override_options): Set unaligned access
22172 default on for HS CPUs.
22173 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22175 2019-03-06 Martin Liska <mliska@suse.cz>
22177 PR gcov-profile/89577
22178 * doc/gcov.texi: Prefer to use --coverage.
22179 * doc/sourcebuild.texi: Likewise.
22181 2019-03-02 Jason Merrill <jason@redhat.com>
22183 PR c++/86485 - -Wmaybe-unused with empty class ?:
22184 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22186 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22189 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22192 PR middle-end/89590
22193 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22194 exactly one argument.
22196 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22197 Richard Sandiford <richard.sandiford@arm.com>
22199 PR tree-optimization/89570
22200 * match.pd (vec_cond into cond_op simplification): Don't use
22201 get_conditional_internal_fn, use as_internal_fn (cond_op).
22203 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22206 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22207 to decide when to split off a non-zero offset from a symbol.
22208 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22209 in function symbols.
22211 2019-03-05 Richard Biener <rguenther@suse.de>
22213 PR tree-optimization/89594
22214 * tree-if-conv.c (pass_if_conversion::execute): Handle
22215 case where .LOOP_VECTORIZED_FUNCTION was removed.
22217 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22220 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22221 instead alloca it only when needed with the needed size.
22223 PR tree-optimization/89570
22224 * match.pd (vec_cond into cond_op simplification): Guard with
22225 vectorized_internal_fn_supported_p test and #if GIMPLE.
22227 PR tree-optimization/89566
22228 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22229 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22230 Punt if get_user_idx_format succeeds, but idx_format argument is
22231 not provided or doesn't have pointer type, or if idx_args is above
22232 number of provided arguments.
22234 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22236 PR tree-optimization/89437
22237 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22239 2019-03-04 Richard Biener <rguenther@suse.de>
22241 PR middle-end/89572
22242 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22245 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22247 PR tree-optimization/89487
22248 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22249 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22250 (distribute_loop): Don't do runtime alias check if there is non-
22251 addressable data reference.
22252 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22253 is a register variable.
22255 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22258 * config/arm/arm.md (cmpsi2_addneg): Use
22259 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22260 If operands[2] is 0 or INT_MIN, force use of subs.
22261 (*compare_scc splitter): Use gen_int_mode.
22262 (*negscc): Likewise.
22263 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22265 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22266 Monk Chiang <sh.chiang04@gmail.com>
22268 * common/config/riscv/riscv-common.c: Include sstream.
22269 (riscv_subset_list::to_string): New.
22270 (riscv_arch_str): Likewise.
22271 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22272 * config.in: Regen.
22273 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22274 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22275 (riscv_emit_attribute): New.
22276 (riscv_file_start): Emit attribute if needed.
22277 (riscv_option_override): Init riscv_emit_attribute_p.
22278 * config/riscv/riscv.opt (mriscv-attribute): New option.
22279 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22280 * configure: Regen.
22281 * doc/install.texi: Document --with-riscv-attribute.
22282 * doc/invoke.texi: Document -mriscv-attribute.
22284 * common/config/riscv/riscv-common.c:
22285 Include config/riscv/riscv-protos.h.
22286 (INCLUDE_STRING): Defined.
22287 (RISCV_DONT_CARE_VERSION): Defined.
22288 (riscv_subset_t): Declare.
22289 (riscv_subset_t::riscv_subset_t): New.
22290 (riscv_subset_list): Declare.
22291 (riscv_subset_list::riscv_subset_list): New.
22292 (riscv_subset_list::~riscv_subset_list): Likewise.
22293 (riscv_subset_list::parsing_subset_version): Likewise.
22294 (riscv_subset_list::parse_std_ext): Likewise.
22295 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22296 (riscv_subset_list::add): Likewise.
22297 (riscv_subset_list::lookup): Likewise.
22298 (riscv_subset_list::xlen): Likewise.
22299 (riscv_subset_list::parse): Likewise.
22300 (riscv_supported_std_ext): Likewise.
22301 (current_subset_list): Likewise.
22302 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22305 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22307 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22308 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22309 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22311 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22313 PR rtl-optimization/85899
22314 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22315 fallthru edges leading to the exit block.
22317 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22320 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22321 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22323 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22325 PR tree-optimization/89535
22326 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22327 for each operand. Calculate the fallback choice for mask operands
22328 and pass it to vect_get_vec_def_for_operand.
22330 2019-03-01 Richard Biener <rguenther@suse.de>
22332 PR middle-end/89541
22333 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22334 get virtual operands.
22335 (get_expr_operands): Handle CONST_DECL like other decls.
22337 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22339 PR middle-end/89503
22340 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22341 on DECL_P and EXPR_P.
22343 2019-03-01 Richard Biener <rguenther@suse.de>
22345 PR middle-end/89497
22346 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22347 argument, defaulted to zero.
22348 * passes.c (execute_function_todo): Pass down SSA update flags
22349 to cleanup_tree_cfg.
22350 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22351 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22353 (cleanup_tree_cfg): Get and pass down SSA update flags.
22355 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22358 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22359 early_lto_debug argument.
22361 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22363 PR tree-optimization/89536
22364 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22365 only whether bit #0 of the value is 0 instead of the entire value.
22367 2019-02-28 Marek Polacek <polacek@redhat.com>
22369 PR c++/87068 - missing diagnostic with fallthrough statement.
22370 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22371 at the end of a seq, save its location to walk_stmt_info.
22372 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22375 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22378 * tree.c (find_atomic_core_type): Move ahead in file.
22379 (check_base_type): Correctly compare alignments of atomic types.
22381 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22384 * config/i386/i386.c (get_builtin_code_for_version): Identify
22385 Westmere from PCLMUL, instead of AES.
22387 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22390 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22391 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22394 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22397 * config/aarch64/aarch64-option-extensions.def: Document it.
22398 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22401 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22404 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22405 builtins if they don't have a single scalar floating point argument.
22408 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22410 PR rtl-optimization/89490
22411 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22412 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22413 block section is not mergeable.
22415 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22418 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22419 old define_insn to ...
22420 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22421 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22422 Rename old define_insn to ...
22423 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22424 (thumb2_casesi_internal_pic): New define_expand. Rename old
22426 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22427 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22428 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22430 2019-02-27 Richard Biener <rguenther@suse.de>
22433 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22435 2019-02-27 Richard Biener <rguenther@suse.de>
22437 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22440 2019-02-27 Richard Biener <rguenther@suse.de>
22443 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22444 parameter, prefix section name with .gnu.debuglto_ if true.
22445 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22446 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22448 2019-02-27 Richard Biener <rguenther@suse.de>
22451 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22452 rather than on use_debug_types, doing what output_die does.
22453 (value_format): Likewise.
22455 2019-02-27 Martin Jambor <mjambor@suse.cz>
22456 Martin Sebor <msebor@redhat.com>
22458 * doc/invoke.texi (Warning Options): Reword description of
22459 -Wno-absolute-value.
22461 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22463 PR tree-optimization/89280
22464 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22465 builtin_setjmp_setup_bb): New functions.
22466 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22467 When visiting __builtin_setjmp_setup block, queue in special
22468 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22469 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22470 from visited after the loop if they don't have any visited successor
22473 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22475 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22477 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22479 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22482 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22483 with types other than sizetype/ssizetype.
22485 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22487 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22488 (enum sparc_processor_type): ...this.
22489 (enum sparc_code_model_type): New enumeration type.
22490 (enum sparc_memory_model_type): Tweak comments.
22491 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22493 (mcmodel): Use sparc_code_model enumeration and variable.
22494 (sparc_code_model): New enumeration.
22495 (mdebug): Add Undocumented marker.
22496 * config/sparc/sparc.h (enum cmodel): Delete.
22497 (sparc_cmodel): Likewise.
22498 (TARGET_CM_MEDLOW): Adjust to above renaming.
22499 (TARGET_CM_MEDMID): Likewise.
22500 (TARGET_CM_MEDANY): Likewise.
22501 (TARGET_CM_EMBMEDANY): Likewise.
22502 * config/sparc/sparc.c (sparc_cmodel): Delete.
22503 (sparc_option_override): Remove string/value mapping support for the
22504 code model. Move code and memory model support to after the handling
22505 of target flags. Do private machine setup last.
22506 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22507 (sparc_legitimize_reload_address): Likewise.
22508 (sparc_output_mi_thunk): Likewise.
22509 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22511 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22513 PR tree-optimization/89500
22514 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22515 (handle_builtin_strlen): Remove noncst_bound variable. Always
22516 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22517 cst if the first cst bytes starting at x are known to be non-zero,
22518 even if the string is not zero terminated. Don't try to modify
22519 *si for strnlen. Update strlen_to_stridx only for strlen or if
22520 we can prove strnlen returns the same value as strlen would.
22522 2019-02-26 Martin Liska <mliska@suse.cz>
22524 * alloc-pool.h (struct pool_usage): Remove extra
22526 * bitmap.h (struct bitmap_usage): Likewise.
22527 * ggc-common.c (struct ggc_usage): Likewise.
22528 * mem-stats.h (struct mem_usage): Likewise.
22529 (mem_alloc_description::dump): Print dash lines
22530 here and repeat header at the end of a table report.
22531 It's then more readable.
22532 * tree-phinodes.c (phinodes_print_statistics): Make
22533 horizontal alignment.
22534 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22535 * vec.c (struct vec_usage): Remove extra print_dash_line.
22536 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22538 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22540 * doc/extend.texi (__builtin_object_size):
22541 Use @pxref instead of @xref inside parenthesis.
22542 (__builtin_has_attribute): Add missing comma after @xref.
22543 (__builtin_object_size): Ditto.
22544 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22546 2019-02-26 Jeff Law <law@redhat.com>
22548 PR rtl-optimization/87761
22549 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22550 detect obviously dead insns and delete them.
22552 2019-02-26 Richard Biener <rguenther@suse.de>
22554 PR tree-optimization/89505
22555 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22556 to handle restrict pointed-to vars with multiple subvars
22559 2019-02-26 Richard Biener <rguenther@suse.de>
22561 PR tree-optimization/89489
22562 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22564 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22566 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22567 and move around comment.
22568 <BIT_AND_EXPR>: Likewise.
22569 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22571 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22574 * config/i386/i386.c (remove_partial_avx_dependency): Call
22575 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22576 after changing possibly many instructions to use that pseudo. Fix up
22577 insertion of v4sf_const0 setter at the start of bb.
22579 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22582 * doc/extend.texi (Variadic Pointer Args): New section.
22584 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22585 Martin Sebor <msebor@gmail.com>
22587 * common.opt (Wattribute-alias): Likewise.
22588 * doc/invoke.texi (Option Summary): List general form of
22589 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22590 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22591 Add cross-references.
22592 (-Wattribute-alias): Rewrite and correct default. Mention
22593 considered attributes (same as for -Wmissing-attributes).
22595 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22597 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22598 (_mm_cvtpd_ps): Likewise.
22599 (_mm_cvttpd_epi32): Likewise.
22602 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22603 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22606 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22608 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22611 * common/config/aarch64/aarch64-common.c
22612 (struct aarch64_option_extension): Add is_synthetic.
22613 (all_extensions): Use it.
22614 (TARGET_OPTION_INIT_STRUCT): Define hook.
22615 (struct gcc_targetm_common): Moved to end.
22616 (all_extensions_by_on): New.
22617 (opt_ext_cmp, typedef opt_ext): New.
22618 (aarch64_option_init_struct): New.
22619 (aarch64_contains_opt): New.
22620 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22621 * config/aarch64/aarch64-option-extensions.def
22622 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22623 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22624 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22625 Set is_synthetic to false.
22626 (crypto): Set is_synthetic to true.
22627 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22630 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22632 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22633 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22634 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22635 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22636 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22637 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22638 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22639 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22641 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22642 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22643 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22644 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22645 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22646 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22647 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22648 vfmlsl_laneq_high_f16): ... To this.
22649 * config/arm/neon.md: Update comments.
22651 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22653 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22654 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22655 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22656 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22657 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22658 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22659 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22660 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22662 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22663 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22664 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22665 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22666 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22667 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22668 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22669 vfmlslq_laneq_high_f16): ... To this.
22671 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22673 PR rtl-optimization/86096
22674 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22675 comparing mw_order values.
22677 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22680 * config/arm/arm.md (*subsi3_carryin_const): Use
22681 arm_neg_immediate_operand predicate instead of
22682 arm_not_immediate_operand, "L" constraint instead of "K" and
22683 print it using %n2 instead of %B2.
22684 (*subsi3_carryin_const0): New define_insn.
22685 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22686 instead of arm_not_operand and "I" constraint instead of "K" and
22687 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22688 another match_operand and in the condition check that it is negation
22690 (*subsi3_carryin_compare_const0): New define_ins.
22691 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22692 *subsi3_carryin_const.
22693 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22694 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22697 * config/arm.vfp.md (*negdf2_vfp): Use
22698 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22699 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22701 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22703 PR rtl-optimization/89445
22704 * simplify-rtx.c (simplify_ternary_operation): Don't use
22705 simplify_merge_mask on operands that may trap.
22706 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22707 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22708 second operand is CONST_VECTOR, check if any element could be zero.
22709 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22710 their operands can trap.
22712 2019-02-23 Martin Sebor <msebor@redhat.com>
22714 * gimple-ssa-sprintf.c (target_strtol): Rename...
22715 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22716 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22717 check for range error.
22719 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22722 * opts-common.c (prune_options): Also prune joined switches
22723 with Negative and RejectNegative.
22724 * config/i386/i386.opt (march=): Add Negative(march=).
22725 (mtune=): Add Negative(mtune=).
22726 * doc/options.texi: Document Negative used together with Joined
22727 and RejectNegative.
22729 2019-02-22 Martin Sebor <msebor@redhat.com>
22731 * doc/extend.texi (Other Builtins): Add
22732 __builtin_is_constant_evaluated.
22734 2019-02-22 Richard Biener <rguenther@suse.de>
22736 PR tree-optimization/87609
22737 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22739 2019-02-22 Jeff Law <law@redhat.com>
22741 PR rtl-optimization/87761
22742 * config/mips/mips.md: Add new combiner pattern to recognize
22743 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22745 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22748 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22749 destination register in peepholes generating patterns for ADDS/SUBS.
22750 (add<mode>3_compare0,
22751 *addsi3_compare0_uxtw, add<mode>3_compareC,
22752 add<mode>3_compareV_imm, add<mode>3_compareV,
22753 *adds_<optab><ALLX:mode>_<GPI:mode>,
22754 *subs_<optab><ALLX:mode>_<GPI:mode>,
22755 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22756 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22757 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22758 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22759 sub<mode>3_compare1): Allow stack pointer for source register.
22760 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22762 2019-02-22 Martin Sebor <msebor@redhat.com>
22764 PR tree-optimization/88993
22765 PR tree-optimization/88853
22766 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22768 (sprintf_dom_walker::call_info::is_string_func): New helper.
22769 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22770 for formatted string functions.
22771 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22773 2019-02-22 Martin Sebor <msebor@redhat.com>
22776 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22777 unreachable subexpressions.
22779 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22780 Hongtao Liu <hongtao.liu@intel.com>
22781 Sunil K Pandey <sunil.k.pandey@intel.com>
22784 * config/i386/i386-passes.def: Add
22785 pass_remove_partial_avx_dependency.
22786 * config/i386/i386-protos.h
22787 (make_pass_remove_partial_avx_dependency): New.
22788 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22790 (pass_data_remove_partial_avx_dependency): New.
22791 (pass_remove_partial_avx_dependency): Likewise.
22792 (make_pass_remove_partial_avx_dependency): Likewise.
22793 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22794 (*extendsfdf2): Add avx_partial_xmm_update.
22795 (truncdfsf2): Likewise.
22796 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22797 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22799 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22801 PR middle-end/85598
22802 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22805 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22808 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22809 (PTA_SKYLAKE): Add PTA_AES.
22810 (PTA_GOLDMONT): Likewise.
22812 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22814 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22815 instruction if enabled.
22816 (aarch64_override_options): Remove reference to return address key.
22818 2019-02-22 Richard Biener <rguenther@suse.de>
22820 PR tree-optimization/89440
22821 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22822 not necessary assert.
22824 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22827 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22828 (oacc_replace_fn_attrib_attr): ... this new function.
22829 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22830 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22832 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22834 * config/arm/arm-cpus.in (ares): Rename to...
22835 (neoverse-n1): ... This. Add ares as alias.
22836 * config/arm/arm-tables.opt: Regenerate.
22837 * config/arm/arm-tune.md: Likewise.
22838 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22840 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22842 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22843 * config/aarch64/aarch64-tune.md: Regenerate.
22844 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22846 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22848 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22849 (neoversen1_tunings): ... This.
22850 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22851 (neoverse-n1): New CPU.
22852 * config/aarch64/aarch64-tune.md: Regenerate.
22853 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22855 2019-02-22 Richard Biener <rguenther@suse.de>
22857 PR middle-end/87609
22858 * cfghooks.h (dependence_hash): New typedef.
22859 (struct copy_bb_data): New type.
22860 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22861 (duplicate_block): Likewise.
22862 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22863 (copy_bbs): Create and pass down copy_bb_data.
22864 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22865 (rtl_duplicate_bb): Likewise.
22866 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22867 remap dependence info.
22869 2019-02-22 Richard Biener <rguenther@suse.de>
22871 PR tree-optimization/87609
22872 * tree-core.h (tree_base): Document special clique values.
22873 * tree-inline.c (remap_dependence_clique): Do not use the
22874 special clique value of one.
22875 (maybe_set_dependence_info): Use clique one.
22876 (clear_dependence_clique): New callback.
22877 (compute_dependence_clique): Clear clique one from all refs
22878 before assigning it (again).
22880 2019-02-21 Martin Sebor <msebor@redhat.com>
22882 * doc/extend.texi (__clear_cache): Correct signature.
22884 2019-02-21 Ian Lance Taylor <iant@golang.org>
22887 * varasm.c (decode_addr_const): Call lookup_constant_def rather
22888 than output_constant_def.
22889 (add_constant_to_table): New static function.
22890 (output_constant_def): Call add_constant_to_table.
22891 (tree_output_constant_def): Likewise.
22893 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22896 * builtins.c (fold_builtin_arith_overflow): If first two args are
22897 INTEGER_CSTs, set intres and ovfres to constants rather than calls
22900 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
22903 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22904 error for -mindirect-branch/-mfunction-return with incompatible
22907 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22910 * constraints.md (q): Remove.
22911 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22914 2019-02-21 Martin Jambor <mjambor@suse.cz>
22917 * omp-general.c (omp_extract_for_data): Removed a duplicate call
22918 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22919 (omp_adjust_for_condition): ...here. Added necessary parameters.
22920 * omp-general.h (omp_adjust_for_condition): Updated declaration.
22921 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22922 proper values to new parameters of omp_adjust_for_condition.
22924 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22926 PR middle-end/89412
22927 * expr.c (expand_assignment): If result is a MEM, use change_address
22928 instead of simplify_gen_subreg.
22930 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22931 David Malcolm <dmalcolm@redhat.com>
22933 PR middle-end/89091
22934 * fold-const.c (decode_field_reference): Return NULL_TREE if
22935 lang_hooks.types.type_for_size returns NULL. Check it before
22936 overwriting *exp_. Use return NULL_TREE instead of return 0.
22938 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22940 PR middle-end/88074
22941 PR middle-end/89415
22942 * toplev.c (do_compile): Double the emin/emax exponents to workaround
22945 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
22948 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22949 TARGET_SSE in addition to TARGET_SSE_MATH.
22951 (ix86_excess_precision): Ditto.
22952 (ix86_float_exceptions_rounding_supported_p): Ditto.
22953 (use_rsqrt_p): Ditto.
22954 * config/i386/sse.md (rsqrt<mode>2): Ditto.
22956 2019-02-20 David Malcolm <dmalcolm@redhat.com>
22959 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
22960 linenum_arith_t when determining if two adjacent line spans are
22961 close enough to merge.
22962 (diagnostic_show_locus): Use linenum_arith_t when iterating over
22963 lines within each line_span.
22965 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22968 * lra-constraints.c(uses_hard_regs_p): Fix handling of
22969 paradoxical SUBREGS.
22971 2019-02-20 Li Jia He <helijia@linux.ibm.com>
22974 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
22975 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
22976 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
22979 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
22981 * config/gcn/gcn.c (print_operand): Fix typo.
22983 2019-02-19 Richard Biener <rguenther@suse.de>
22985 PR middle-end/88074
22986 * toplev.c (do_compile): Initialize mpfr's exponent range
22987 based on available float modes.
22989 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
22991 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
22992 as long as the epilogue isn't completed.
22994 2019-02-18 Martin Sebor <msebor@redhat.com>
22996 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
22997 __has_cpp_attribute, and __has_include.
22999 2019-02-18 Martin Sebor <msebor@redhat.com>
23001 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23003 2019-02-18 Martin Sebor <msebor@redhat.com>
23005 PR middle-end/89294
23006 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23008 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23010 2019-02-18 Richard Biener <rguenther@suse.de>
23012 PR tree-optimization/89296
23013 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23014 of no-warning flag to cases that might emit the bogus warning.
23016 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23019 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23021 * config/arm/vfp.md (*movdi_vfp): Likewise.
23022 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23023 "q" constraint for operands[0].
23026 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23027 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23028 pattern in a temporary buffer.
23029 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23030 than 64-operands[2].
23033 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23034 s390_indirect_branch_settings): Define unconditionally.
23035 (s390_set_current_function): Likewise, but guard the whole body except
23036 the s390_indirect_branch_settings call with
23037 #if S390_USE_TARGET_ATTRIBUTE.
23038 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23040 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23041 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23042 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23043 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23044 HOST_WIDE_INT_1U instead of 1ULL.
23045 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23046 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23047 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23048 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23050 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23053 2019-02-18 Martin Jambor <mjambor@suse.cz>
23055 PR tree-optimization/89209
23056 * tree-sra.c (create_access_replacement): New optional parameter
23057 reg_tree. Use it as a type if non-NULL and access type is not of
23059 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23060 to create_access_replacement.
23061 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23062 Check lacc is non-NULL before attempting to re-create it on the RHS.
23064 2019-02-18 Martin Liska <mliska@suse.cz>
23067 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23069 (symbol_table::free_edge): Recycle m_summary_id.
23070 * cgraph.h (get_summary_id): New.
23071 (symbol_table::release_symbol): Set m_summary_id to -1
23073 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23074 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23075 function_summary to fast_function_summary.
23076 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23077 * ipa-pure-const.c (class funct_state_summary_t):
23078 Switch from function_summary to fast_function_summary.
23079 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23080 (class ipa_ref_opt_summary_t): Switch from function_summary
23081 to fast_function_summary.
23082 * symbol-summary.h (class function_summary_base): New class
23083 that is created from base of former function_summary.
23084 (function_summary_base::unregister_hooks): New.
23085 (class function_summary): Inherit from function_summary_base.
23086 (class call_summary_base): New class
23087 that is created from base of former call_summary.
23088 (class call_summary): Inherit from call_summary_base.
23089 (struct is_same): New.
23090 (class fast_function_summary): New summary class.
23091 (class fast_call_summary): New summary class.
23092 * vec.h (vec_safe_grow_cleared): New function.
23094 2019-02-18 Martin Liska <mliska@suse.cz>
23096 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23097 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23098 * doc/tm.texi: Document new target hook.
23099 * doc/tm.texi.in: Likewise.
23100 * target.def: Add new target macro.
23101 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23104 2019-02-17 Alan Modra <amodra@gmail.com>
23107 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23108 output reg on add insn.
23109 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23111 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23114 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23115 (PMULHRSW): Likewise.
23116 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23118 (ssse3_pmulhrswv4hi3): New expander.
23120 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23122 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23123 MMX. Add isa attribute.
23125 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23127 PR rtl-optimization/66152
23128 * builtins.h (c_readstr): Declare.
23129 * builtins.c (c_readstr): Remove forward declaration. Add
23130 null_terminated_p argument, if false, read all bytes from the
23131 string instead of stopping after '\0'.
23132 * expr.c (string_cst_read_str): New function.
23133 (store_expr): Use string_cst_read_str instead of
23134 builtin_strncpy_read_str. Try to store by pieces the whole
23135 exp_len first, and only if that fails, split it up into
23136 store by pieces followed by clear_storage. Formatting fix.
23138 * config/i386/i386.md (*movqi_internal): Remove static from
23139 buf variable. Use output_asm_insn (buf, operands); return "";
23140 instead of return buf;.
23141 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23142 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23143 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23145 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23147 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23148 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23149 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23150 (CC1_SPEC): Likewise.
23151 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23153 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23155 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23156 the base address on 64-bit strict-alignment platforms.
23158 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23160 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23162 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23164 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23166 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23168 PR rtl-optimization/88308
23169 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23170 on copied instruction.
23172 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23174 * final.c (insn_current_reference_address): Replace test on JUMP_P
23175 with test on jump_to_label_p.
23176 * config/visium/visium-passes.def: New file.
23177 * config/visium/t-visium (PASSES_EXTRA): Define.
23178 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23179 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23180 (TRAMPOLINE_ALIGNMENT): Define.
23181 * config/visium/visium.c (visium_option_override): Do not register
23182 the machine-specific reorg pass here.
23183 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23185 (output_branch): Adjust threshold for long branch instruction.
23186 * config/visium/visium.md (cpu): Move around.
23187 (length): Adjust for the GR6.
23189 2019-02-15 Richard Biener <rguenther@suse.de>
23190 Jakub Jelinek <jakub@redhat.com>
23192 PR tree-optimization/89278
23193 * tree-loop-distribution.c: Include tree-eh.h.
23194 (generate_memset_builtin, generate_memcpy_builtin): Call
23195 rewrite_to_non_trapping_overflow on builtin->size before passing it
23196 to force_gimple_operand_gsi.
23198 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23201 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23203 * opth-gen.awk: Likewise.
23205 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23207 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23208 Enable MMX, SSE and SSE2 by default.
23209 * config/i386/i386.c (ix86_option_override_internal): Do not
23210 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23212 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23214 PR rtl-optimization/89354
23215 * combine.c (make_extraction): Punt if extraction_mode is narrower
23218 2019-02-14 Maya Rashish <coypu@sdf.org>
23220 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23221 * config/netbsd-d.c: New file.
23222 * config/t-netbsd: Add netbsd-d.o
23224 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23226 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23227 affects_type_identity to true for aarch64_vector_pcs.
23228 (aarch64_comp_type_attributes): New function.
23229 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23231 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23234 * config/arm/iterators.md (ANY64): Add V4HF.
23236 2019-02-14 Martin Liska <mliska@suse.cz>
23238 PR rtl-optimization/89242
23239 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23240 process a transformation.
23242 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23244 PR tree-optimization/89314
23245 * fold-const.c (fold_binary_loc): Cast strlen argument to
23246 const char * before dereferencing it. Formatting fixes.
23248 PR middle-end/89284
23249 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23251 2019-02-13 Ian Lance Taylor <iant@golang.org>
23253 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23254 and set current index for other optimizations.
23256 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23258 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23259 nonimmediate_operand as operand 2 predicate.
23260 (vec_set<VF2_512_256:mode>_0): Ditto.
23261 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23262 (*vec_concatv2si): Remove alternative 2.
23263 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23264 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23265 (vec_concatv2di): Split alternatives 4,5,6 to ...
23266 (*vec_concatv2di_0) ... new pattern.
23268 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23271 * config/arm/arm.c (ldm_stm_operation_p) Set
23272 addr_reg_in_reglist correctly for first register.
23273 (load_multiple_sequence): Remove dead base check.
23274 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23276 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23279 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23280 Expose as @aarch64_pred_mov.
23281 * config/aarch64/aarch64.c (aarch64_classify_address):
23282 Use expand_insn which legitimizes operands.
23284 2019-02-13 Martin Liska <mliska@suse.cz>
23286 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23287 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23288 and pointer_offset fields.
23289 (initialize_argument_information): Remove usage of dead
23291 * cgraph.h (struct cgraph_thunk_info): Remove
23292 add_pointer_bounds_args.
23293 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23295 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23297 * config/i386/i386.c (ix86_function_arg_advance): Remove
23299 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23300 (def_builtin): Remove usage of dead fields.
23301 (ix86_add_new_builtins): Likewise.
23302 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23303 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23304 (sem_function::init): Likewise.
23305 (sem_variable::merge): Likewise.
23306 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23307 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23308 * lto-cgraph.c (lto_output_node): Likewise.
23309 (lto_output_varpool_node): Likewise.
23310 (input_node): Likewise.
23311 (input_varpool_node): Likewise.
23312 * lto-streamer-out.c (lto_output): Likewise.
23313 * tree-inline.c (expand_call_inline): Remove usage of
23315 * tree-inline.h (struct copy_body_data): Likewise.
23316 * varpool.c (varpool_node::dump): Likewise.
23318 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23320 PR middle-end/89303
23321 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23322 into pt->vars_contains_escaped_heap instead of setting
23323 pt->vars_contains_escaped_heap to it.
23325 PR middle-end/89281
23326 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23327 INTVAL (size), compare it to GET_MODE_MASK instead of
23328 1 << GET_MODE_BITSIZE.
23331 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23332 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23335 2019-02-13 Martin Liska <mliska@suse.cz>
23338 * cfgrtl.c (remove_barriers_from_footer): New function.
23339 (try_redirect_by_replacing_jump): Use it.
23340 (cfg_layout_redirect_edge_and_branch): Likewise.
23342 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23344 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23345 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23346 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23347 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23348 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23349 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23351 * config/rs6000/rs6000.c (builtin_function_type)
23352 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23353 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23354 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23355 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23356 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23358 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23360 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23361 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23363 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23366 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23367 268678 and revision 268657.
23368 (*movti_internal): Likewise.
23370 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23373 * config/s390/s390.c (s390_decompose_address): Update comment.
23374 (s390_check_qrst_address): Reject invalid address forms after
23377 2019-02-12 Martin Liska <mliska@suse.cz>
23380 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23381 we need default values of funct_state for a function that
23384 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23386 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23387 the object to pick the size of stores on strict-alignment platforms.
23389 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23390 (*movdi_insn_sp32): Likewise.
23391 (*movdi_insn_sp64): Likewise.
23393 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23396 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23397 types that needs constructiong.
23398 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23400 2019-02-12 Richard Biener <rguenther@suse.de>
23402 PR tree-optimization/89253
23403 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23404 duplicate the loop.
23406 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23409 * input.c (selftest::test_line_offset_overflow): New selftest.
23410 (selftest::input_c_tests): Call it.
23412 2019-02-11 Martin Sebor <msebor@redhat.com>
23414 PR tree-optimization/88771
23415 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23416 when -Wstringop-overflow is set.
23417 (builtin_memref::builtin_memref): Adjust excessive upper bound
23418 only when lower bound is not excessive.
23419 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23420 -Wstringop-ovefflow.
23421 (maybe_diag_offset_bounds): Rename...
23422 (maybe_diag_access_bounds): ...to this.
23423 (check_bounds_or_overlap): Adjust for name change above.
23425 2019-02-11 Martin Sebor <msebor@redhat.com>
23428 * builtins.c (max_object_size): Move from here...
23429 * builtins.h (max_object_size): ...and here...
23430 * tree.c (max_object_size): ...to here...
23431 * tree.h (max_object_size): ...and here.
23433 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23435 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23436 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23437 for correct semantics.
23439 2019-02-11 Alan Modra <amodra@gmail.com>
23441 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23442 -mlongcall and -mpltseq.
23443 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23444 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23445 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23446 * config/rs6000/sysv4.opt (mpltseq): New option.
23447 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23448 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23449 support is lacking. Don't allow -mpltseq with -mbss-plt.
23450 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23451 -mpltseq given for ELFv1.
23452 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23453 Only use UNSPEC_PLTSEQ for inline PLT calls.
23454 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23455 use UNSPEC_PLTSEQ for inline PLT calls.
23456 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23457 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23458 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23459 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23460 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23461 (pltseq_mtctr_<mode>): Likewise.
23463 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23465 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23467 * configure: Regenerate.
23469 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23472 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23475 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23477 * function.c (assign_parm_setup_block): Use the stored
23478 size, not the passed size, when allocating stack-space,
23479 also for a parameter with alignment larger than
23480 MAX_SUPPORTED_STACK_ALIGNMENT.
23482 2019-02-11 Martin Liska <mliska@suse.cz>
23485 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23486 * ipa-inline.c (inline_small_functions): Likewise.
23487 * ipa-pure-const.c (propagate_pure_const): Likewise.
23488 (propagate_nothrow): Likewise.
23489 * ipa-reference.c (propagate): Likewise.
23490 * ipa-utils.c (struct searchc_env): Remove unused field.
23491 (searchc): Always search across AVAIL_INTERPOSABLE.
23492 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23493 the only called IPA pure const can properly not propagate
23494 across interposable boundary.
23495 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23497 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23499 * config/nds32/nds32.md (call_internal, call_value_internal,
23500 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23502 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23504 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23507 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23509 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23512 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23514 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23516 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23518 PR tree-optimization/89268
23519 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23520 if preds is non-NULL.
23522 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23525 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23528 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23530 * config/nds32/nds32.md (trap): New pattern.
23532 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23534 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23537 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23539 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23542 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23544 * ipa-visibility.c (localize_node): Also do not localize
23545 LDPR_PREVAILING_DEF_IRONLY_EXP.
23547 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23550 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23551 instead of type_with_linkage.
23553 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23556 * params.def (uninlined-function-insns, uninlined-function-time,
23557 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23558 bound so we don't get overflows.
23560 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23562 * config/rs6000/rs6000-string.c (expand_compare_loop,
23563 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23566 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23568 PR middle-end/89246
23569 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23570 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23571 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23573 2019-02-09 Alan Modra <amodra@gmail.com>
23576 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23577 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23580 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23582 PR middle-end/88560
23583 * lra-constraints.c (process_alt_operands): Don't increase reject
23584 for memory when offset memory is required.
23586 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23588 * config/s390/vector.md: Implement vector copysign.
23590 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23592 * expr.c (expand_constructor): Correct indentations.
23594 2019-02-08 Richard Biener <rguenther@suse.de>
23596 PR tree-optimization/89247
23597 * tree-if-conv.c: Include tree-cfgcleanup.h.
23598 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23599 (tree_if_conversion): Pass through predicate vector.
23600 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23601 inline, see if any if-converted loops we refrece in
23602 LOOP_VECTORIZED calls vanished and fixup.
23603 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23605 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23607 * config/s390/constraints.md (jdd): New constraint.
23609 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23612 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23613 upper 16 vector registers without TARGET_AVX512VL.
23614 (*movti_internal): Likewise.
23616 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23618 PR rtl-optimization/89234
23619 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23620 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23621 (copy_reg_eh_region_note_backward): Likewise.
23623 2019-02-08 Richard Biener <rguenther@suse.de>
23625 PR middle-end/89223
23626 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23627 doesn't fit in HWI.
23628 (analyze_subscript_affine_affine): Handle failure from
23629 initialize_matrix_A.
23631 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23633 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23636 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23638 PR tree-optimization/86637
23639 PR tree-optimization/89235
23640 * tree-vect-loop.c (optimize_mask_stores): Add an
23641 auto_purge_vect_location sentinel to ensure that vect_location is
23643 * tree-vectorizer.c
23644 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23645 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23646 to ensure that vect_location is purged on exit.
23647 (pass_slp_vectorize::execute): Likewise, replacing the manual
23649 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23651 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23653 * config/aarch64/iterators.md (max_opp): New code_attr.
23654 (USMAX): New code iterator.
23655 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23656 (aarch64_smax): Likewise.
23657 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23658 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23661 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23664 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23665 for TARGET_AVX512VL.
23666 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23668 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23670 * config/s390/s390-builtin-types.def: Add new types.
23671 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23672 (s390_vec_xlw4): Make the memory operand into a const pointer.
23673 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23675 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23676 a new vector type with the alignment of the scalar memory operand.
23678 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23679 Jakub Jelinek <jakub@redhat.com>
23682 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23683 arm_count_ldrdstrd_insns): New declarations.
23684 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23686 (valid_operands_ldrd_strd): New function.
23687 (arm_count_ldrdstrd_insns): New function.
23688 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23689 sets instead of single DImode set and define new insns to match this.
23691 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23693 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23694 Make it a C initializer.
23696 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23699 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23701 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23703 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23704 Use neon_dot<q> for type.
23705 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23707 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23709 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23710 Use neon_dot<q> for type.
23711 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23712 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23714 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23716 PR rtl-optimization/89225
23717 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23720 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23722 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23723 after restoring registers saved to allocate the frame on Windows.
23725 2019-02-06 Richard Biener <rguenther@suse.de>
23727 PR tree-optimization/89182
23728 * graphite.h (cached_scalar_evolution_in_region): Declare.
23729 * graphite.c (struct seir_cache_key): New.
23730 (struct sese_scev_hash): Likewise.
23731 (seir_cache): New global.
23732 (cached_scalar_evolution_in_region): New function.
23733 (graphite_transform_loops): Allocate and release seir_cache.
23734 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23735 cached_scalar_evolution_in_region.
23736 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23738 (scop_detection::graphite_can_represent_expr: Use
23739 cached_scalar_evolution_in_region.
23740 (scop_detection::stmt_simple_for_scop_p): Likewise.
23741 (find_params_in_bb): Likewise.
23742 (gather_bbs::before_dom_children): Likewise.
23743 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23744 (add_loop_constraints): Likewise.
23746 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23748 PR middle-end/89210
23749 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23750 operand to new_unary_operation only if both element types are integral
23751 and it isn't a widening conversion. Return NULL_TREE if
23752 new_unary_operation failed.
23754 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23757 * config/s390/s390.md: Remove load and test FP splitter.
23759 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23762 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23763 expand_compare_loop, expand_block_compare_gpr,
23764 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23765 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23766 #include "profile-count.h" and "predict.h" for types and functions
23767 needed to work with REG_BR_PROB notes.
23769 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23772 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23773 for the long branch case.
23775 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23778 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23779 can throw, non-call exceptions are enabled and we can't delete
23780 dead exceptions or alter cfg. Set must_clean if
23781 delete_insn_and_edges returns true, don't set it blindly for calls.
23782 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23784 PR rtl-optimization/89195
23785 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23786 of the original MEM.
23788 2019-02-05 Martin Liska <mliska@suse.cz>
23790 PR gcov-profile/89000
23791 * gcov.c (function_summary): Remove argument.
23792 (file_summary): New function.
23793 (print_usage): Replace tabs with spaces.
23794 (generate_results): Use new function file_summary.
23796 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23799 * optabs.c (prepare_cmp_insn): Pass x and y to
23800 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23802 2019-02-05 Richard Biener <rguenther@suse.de>
23804 PR middle-end/89150
23805 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23806 (struct bitmap_element): Drop chain_prev so we properly recurse on
23807 the prev member, supporting tree views.
23808 (struct bitmap_head): GTY skip the obstack member.
23810 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23813 * doc/extend.texi (Vector Extensions): Add an example of using vector
23814 types together with x86 intrinsics.
23816 2019-02-04 Alan Modra <amodra@gmail.com>
23818 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23819 str[] size to 160, and comment.
23821 2019-02-04 Alan Modra <amodra@gmail.com>
23823 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23824 (rs6000_pltseq_template): Guard output of TLS markers with
23825 TARGET_TLS_MARKERS.
23826 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23827 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23828 to use inline PLT sequences.
23829 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23830 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23831 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23833 2019-02-04 Martin Liska <mliska@suse.cz>
23836 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23837 out when ipa_fn_summaries does not contain entry for callee.
23839 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23841 * config/sparc/sparc.h: Remove superfluous blank lines.
23842 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23843 (got_register_rtx): ...this.
23844 (sparc_got): Adjust to above renaming.
23845 (sparc_tls_got): Likewise.
23846 (sparc_delegitimize_address): Likewise.
23847 (sparc_output_mi_thunk): Likewise.
23848 (sparc_init_pic_reg): Likewise.
23849 (save_local_or_in_reg_p): Fix test on the GOT register.
23850 (USE_HIDDEN_LINKONCE): Move around.
23851 (get_pc_thunk_name): Likewise.
23852 (gen_load_pcrel_sym): Likewise.
23853 (load_got_register): Likewise.
23855 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23857 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23858 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23860 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23862 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23863 into consideration.
23865 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23867 * config.gcc (with_nds32_lib, glibc):
23868 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23869 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23870 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23872 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23875 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23876 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23877 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23878 (*rcpsf2_sse): Ditto.
23879 (*rsqrtsf2_sse): Ditto.
23880 (sse4_1_round<mode<2): Ditto.
23882 2019-02-03 Richard Biener <rguenther@suse.de>
23885 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23888 2019-02-02 Jakub Jelinek <jakub@redhat.com>
23890 PR middle-end/87887
23891 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23892 Punt with warning on aggregate return or argument types. Ignore
23893 type/mode checking for uniform arguments.
23895 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
23897 * combine.c (try_combine): Do not print "Can't combine" messages unless
23898 printing failed combination attempts.
23900 2019-02-01 Martin Jambor <mjambor@suse.cz>
23903 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23904 segment and global segment variables before making them static.
23906 2019-02-01 Martin Jambor <mjambor@suse.cz>
23908 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23909 missed optimization dump with dump_enabled_p.
23911 2019-02-01 Richard Biener <rguenther@suse.de>
23913 PR middle-end/88597
23914 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23915 the instantiate cache.
23916 (instantiate_scev_binary): Elide second operand procesing
23917 if equal to the first.
23918 * tree-chrec.c (chrec_contains_symbols): Add visited set.
23919 (chrec_contains_undetermined): Likewise.
23920 (tree_contains_chrecs): Likewise.
23922 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
23924 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23926 2019-02-01 Jakub Jelinek <jakub@redhat.com>
23928 PR tree-optimization/89143
23929 * wide-int-range.h (wide_int_range_absu): Declare.
23930 * wide-int-range.cc (wide_int_range_absu): New function.
23931 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23933 PR tree-optimization/88107
23934 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23935 instead of assertion that eh_region_outermost is non-NULL, if it
23936 is NULL, set *ALL to true and return NULL.
23937 (move_sese_region_to_fn): Adjust caller, if all is set, call
23938 duplicate_eh_regions with NULL region.
23940 2019-02-01 Richard Biener <rguenth@suse.de>
23942 PR rtl-optimization/88593
23943 * mode-switching.c (optimize_mode_switching): Free dominators before
23944 calling cleanup_cfg.
23946 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
23948 PR tree-optimization/88932
23949 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23951 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23953 PR middle-end/89137
23954 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
23955 bogus clang warning.
23957 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
23960 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
23961 alternative to avoid partial SSE register stall for TARGET_AVX.
23962 (truncdfsf2): Ditto.
23963 (sse4_1_round<mode>2): Ditto.
23965 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
23967 PR tree-optimization/89008
23968 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
23969 process anything of the form X * 0.
23971 2019-01-31 Richard Biener <rguenther@suse.de>
23973 PR tree-optimization/89135
23974 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
23975 with abnormal preds.
23977 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23980 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
23981 always_inline callees into no_sanitize_address callers.
23983 2019-01-31 Richard Biener <rguenther@suse.de>
23985 PR rtl-optimization/89115
23986 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
23988 2019-01-30 Martin Sebor <msebor@redhat.com>
23991 * doc/extend.texi (cast to a union): Correct and expand.
23993 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
23995 PR rtl-optimization/87246
23996 * lra-constraints.c (simplify_operand_subreg): Reload memory
23997 in subreg if the address became invalid.
23999 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24002 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24003 Disable for little-endian.
24005 2019-01-30 Richard Biener <rguenther@suse.de>
24007 PR rtl-optimization/89115
24008 * opts.c (default_options_optimization): Reduce
24009 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24010 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24013 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24015 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24016 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24017 type of vector element when vec_extract is implemented by direct
24020 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24022 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24024 2019-01-30 Richard Biener <rguenther@suse.de>
24026 PR tree-optimization/89111
24027 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24028 canonicalization to appropriately sized access types.
24030 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24033 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24034 for arguments to functions that are TU-local and shouldn't be
24035 referenced by assembly.
24037 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24039 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24042 2019-01-29 Martin Sebor <msebor@redhat.com>
24045 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24047 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24051 * omp-simd-clone.c (simd_clone_clauses_extract)
24052 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24053 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24055 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24057 * config.gcc: Force .init_array for ARC.
24059 2019-01-29 Richard Biener <rguenther@suse.de>
24062 * dwarf2out.c (collect_skeleton_dies): New helper.
24063 (copy_decls_for_unworthy_types): Call it.
24064 (build_abbrev_table): Assert we do not try to replace
24065 DW_AT_signature refs with local refs.
24067 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24069 PR middle-end/89002
24070 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24071 for lastprivate/linear IV, push gimplify context around gimplify_assign
24072 and, if it needed any temporaries, pop it into a gimple bind around the
24075 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24077 * common.opt (-Wattribute-alias): Remove "no-" from name.
24078 Make -Wattribute-alias command line option and
24079 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24081 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24084 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24085 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24087 (bmi2): Add missing @opindex.
24088 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24089 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24090 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24091 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24092 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24093 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24094 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24095 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24096 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24097 xsavec, xsaveopt and xsaves options.
24099 2019-01-28 Richard Biener <rguenther@suse.de>
24102 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24105 2019-01-28 Richard Biener <rguenther@suse.de>
24107 PR tree-optimization/88739
24108 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24109 BIT_FIELD_REFs only are applied to mode-precision operands
24110 when they are integral.
24111 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24112 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24113 BIT_FIELD_REFs of non-mode-precision integral operands.
24115 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24118 * config/i386/sse.md
24119 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24120 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24121 first constants in pairs are multiples of 2. Formatting fixes.
24122 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24123 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24124 first constants in each quadruple are multiples of 4. Formatting fixes.
24126 2019-01-26 Martin Jambor <mjambor@suse.cz>
24129 * tree-inline.c: Include tree-cfgcleanup.h.
24130 (delete_unreachable_blocks_update_callgraph): Move...
24131 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24132 ...here, make externally visible, make second argument bool, adjust
24134 * tree-cfgcleanup.c: Include cgraph.h.
24135 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24137 * ipa-prop.c: Include tree-cfgcleanup.h.
24138 (ipcp_transform_function): Call
24139 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24141 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24143 PR rtl-optimization/88846
24144 * ira.c (process_set_for_memref_referenced_p): New.
24145 (memref_referenced_p): Add new param. Use
24146 process_set_for_memref_referenced_p. Add new switch cases.
24147 (memref_used_between_p): Pass new arg to memref_referenced_p.
24149 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24152 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24153 argument ABI_BREAK. Set to true if the calculated alignment has
24154 changed in gcc-9. Check bit-fields for their base type alignment.
24155 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24156 (aarch64_function_arg_boundary): Likewise.
24157 (aarch64_gimplify_va_arg_expr): Likewise.
24159 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24161 PR middle-end/89037
24162 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24163 instead of accessing TREE_INT_CST_ELT directly.
24165 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24167 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24168 fenv_exceptions description.
24170 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24172 PR rtl-optimization/87763
24173 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24174 Allow SUBREG when matching CC_NZmode compare.
24176 2019-01-25 Richard Biener <rguenther@suse.de>
24178 PR tree-optimization/89049
24179 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24180 Look at the pattern stmt to determine if the stmt is vectorized.
24182 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24184 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24185 (pred_mov<mode>): Handle all-register forms using both a new
24186 alternative and a split.
24188 2019-01-25 Richard Biener <rguenther@suse.de>
24190 PR tree-optimization/86865
24191 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24192 Reject non-do-while loops.
24194 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24196 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24197 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24198 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24199 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24200 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24201 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24202 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24203 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24204 vlogical_operand, gpc_reg_operand, int_reg_operand,
24205 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24206 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24207 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24208 (save_world_operation, restore_world_operation, lmw_operation,
24209 stmw_operation): Use MEM_P and REG_P.
24210 (tie_operand): Use MEM_P.
24211 (vrsave_operation, crsave_operation): Use REG_P.
24212 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24213 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24214 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24215 (call_operand): Use HARD_REGISTER_P.
24216 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24218 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24219 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24220 quad_aligned_load_p, replace_swapped_aligned_store,
24221 recombine_lvx_pattern, replace_swapped_aligned_load,
24222 recombine_stvx_pattern): Use MEM_P.
24223 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24224 Use MEM_P and SYMBOL_REF_P.
24225 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24226 (insn_is_swappable_p): Use REG_P and MEM_P.
24227 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24228 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24230 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24231 Use CONST_DOUBLE_P.
24232 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24234 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24235 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24236 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24237 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24239 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24240 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24241 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24242 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24243 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24244 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24245 rs6000_split_logical_di): Use CONST_INT_P.
24246 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24247 REG_P and SYMBOL_REF_P.
24248 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24249 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24250 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24251 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24252 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24253 (small_data_operand, print_operand_address): Use CONST_INT_P and
24255 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24256 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24257 Use HARD_REGISTER_NUM_P.
24258 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24259 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24260 SUBREG_P and SYMBOL_REF_P.
24261 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24262 and HARD_REGISTER_NUM_P.
24263 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24265 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24266 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24268 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24269 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24270 find_addr_reg): Use REG_P.
24271 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24272 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24273 (offsettable_ok_by_alignment, constant_pool_expr_p,
24274 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24275 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24276 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24277 rs6000_assemble_integer, create_TOC_reference,
24278 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24279 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24280 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24281 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24282 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24283 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24284 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24285 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24286 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24287 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24288 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24289 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24290 and cbranch<mode>4): Use CONST_INT_P.
24291 (multiple define_splits): Use REG_P and SUBREG_P.
24292 (define_expands call, call_value): Use MEM_P.
24293 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24294 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24295 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24296 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24297 and HARD_REGISTER_NUM_P.
24298 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24300 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24302 PR rtl-optimization/88948
24303 * rtl.h (prepare_copy_insn): New prototype.
24304 * gcse.c (prepare_copy_insn): New function, split out from
24305 process_insert_insn.
24306 (process_insert_insn): Use prepare_copy_insn.
24307 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24308 instead of gen_move_insn.
24310 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24313 * config/i386/i386.c (ix86_pic_register_p): Return true for
24314 UNSPEC_SET_GOT too.
24316 PR tree-optimization/88964
24317 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24318 punt if HONOR_SNANS (chrec).
24320 PR middle-end/89015
24321 * tree-nested.c (convert_nonlocal_reference_stmt,
24322 convert_local_reference_stmt, convert_tramp_reference_stmt,
24323 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24324 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24325 or GIMPLE_OMP_TASK.
24327 PR tree-optimization/89027
24328 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24329 for "omp simd array" variables.
24331 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24334 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24335 force the alignment of m_val.
24337 2019-01-24 Richard Biener <rguenther@suse.de>
24340 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24341 When in "legacy" debug mode make sure to reset self-origins.
24343 2019-01-24 Martin Liska <mliska@suse.cz>
24345 PR gcov-profile/88994
24346 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24347 result will be always smaller or equal to the original.
24348 * gcov.c (mangle_name): Fix else branch where we should
24349 also copy to PTR and shift the pointer.
24351 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24353 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24354 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24356 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24358 * common/config/i386/i386-common.c
24359 (OPTION_MASK_ISA_ENQCMD_SET,
24360 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24361 (ix86_handle_option): Handle -menqcmd.
24362 * config.gcc (enqcmdintrin.h): New header file.
24363 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24364 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24366 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24368 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24369 __builtin_ia32_enqcmds): New builtins.
24370 * config/i386/i386-c.c (__ENQCMD__): New macro.
24371 * config/i386/i386-option.c (ix86_target_string): Add
24373 (ix86_valid_target_attribute_inner_p): Likewise.
24374 * config/i386/i386-expand.c
24375 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24376 IX86_BUILTIN_ENQCMDS.
24377 * config/i386/i386.h (TARGET_ENQCMD): New.
24378 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24379 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24380 (movdir64b_<mode>): Parameterize to enable share expansion code
24381 with ENQCMD in function ix86_expand_builtin.
24382 * config/i386/i386.opt: Add -menqcmd.
24383 * config/i386/immintrin.h: Include enqcmdintrin.h.
24384 * config/i386/enqcmdintrin.h: New intrinsic file.
24385 * doc/invoke.texi: Add -menqcmd.
24387 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24388 Steve Ellcey <sellcey@marvell.com>
24391 * recog.c (address_operand): Return false on wrong mode for address.
24392 (constrain_operands): Check for mode with 'p' constraint.
24394 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24397 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24398 Disparage MMX alternative.
24399 (sse2_cvtpd2pi): Ditto.
24400 (sse2_cvttpd2pi): Ditto.
24402 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24405 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24406 use-after-free of the result of
24407 aarch64_get_extension_string_for_isa_flags.
24409 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24412 * doc/extend.texi: Document break and continue behavior in
24413 statement expressions.
24415 2019-01-23 Richard Biener <rguenther@suse.de>
24417 PR tree-optimization/89008
24418 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24419 not leave another stray operand.
24421 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24423 * BASE-VER: Bump to 9.0.1.
24425 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24427 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24428 thunk that returns by reference, use the type of the return object
24429 of the thunk instead of that of the alias to build the dereference.
24431 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24433 * config/arc/atomic.md: Add operand to DMB instruction.
24435 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24437 PR tree-optimization/88964
24438 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24439 build_zero_cst instead of build_int_cst. Return false for loop
24440 invariants which honor signed zeros.
24442 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24444 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24446 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24449 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24450 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24451 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24453 PR middle-end/88968
24454 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24455 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24458 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24459 Disable for little endian.
24461 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24464 * config/arm/arm.c (arm_needs_double_word_align): Check
24465 DECL_BIT_FIELD_TYPE.
24467 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24468 H.J. Lu <hongjiu.lu@intel.com>
24471 * config/i386/i386-builtin.def: Add mask2 to all builtin
24472 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24474 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24475 (BDESC_FIRST): Likewise.
24476 (define_builtin): Add an argument for mask2. Updated to handle
24477 both ix86_isa_flags and ix86_isa_flags2.
24478 (define_builtin_const): Likewise.
24479 (define_builtin_pure): Likewise.
24480 (define_builtin2): Deleted.
24481 (define_builtin_const2): Likewise.
24482 (builtin_description): Add a member, mask2.
24483 (bdesc_*): Add mask2 to builtin initializations.
24484 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24485 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24487 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24489 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24492 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24495 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24498 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24499 alignment is dominated by a bitfield with 64-bit aligned base type.
24500 (arm_function_arg): Emit a warning if the alignment has changed since
24501 earlier GCC releases.
24502 (arm_function_arg_boundary): Likewise.
24503 (arm_setup_incoming_varargs): Likewise.
24505 2019-01-22 Richard Biener <rguenther@suse.de>
24507 PR tree-optimization/88862
24508 * graphite-scop-detection.c
24509 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24511 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24513 * doc/extend.tex (AMD GCN Function Attributes): New section.
24514 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24515 * doc/invoke.texi (AMD GCN Options): New section.
24516 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24518 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24520 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24521 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24523 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24525 PR tree-optimization/88044
24526 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24527 is false in the first iteration, but !every_iteration, return false
24528 instead of true with niter->niter zero.
24530 PR rtl-optimization/88904
24531 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24532 any nonequal registers before processing BB_END (b).
24535 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24537 (expand_binop_directly, expand_doubleword_clz,
24538 expand_doubleword_popcount, expand_ctz, expand_ffs,
24539 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24541 PR rtl-optimization/49429
24543 PR rtl-optimization/86334
24545 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24546 addressable from here...
24547 (emit_block_op_via_libcall): ... to here.
24549 2019-01-22 Richard Biener <rguenther@suse.de>
24551 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24552 auto_vec for cost vector to fix memleak.
24553 (vectorize_fold_left_reduction): Properly gather SLP defs.
24554 (vectorizable_comparison): Do not swap operands to properly
24557 2019-01-22 Alan Modra <amodra@gmail.com>
24560 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24561 stays a reg. Allow a const_int.
24562 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24563 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24564 (IS_NOMARK_TLSGETADDR): Define.
24565 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24566 (rs6000_output_tlsargs): New function.
24567 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24568 __tls_get_addr call takes an arg.
24569 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24570 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24572 (call_value_nonlocal_sysv): ..or here, delete split.
24573 (tls_gdld_nomark): Delete.
24574 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24575 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24576 (call_value_nonlocal_sysv): Likewise.
24577 (call_value_nonlocal_sysv_secure): Likewise.
24578 (call_value_nonlocal_aix): Likewise.
24579 (call_value_indirect_aix): Likewise.
24580 (call_value_indirect_elfv2): Likewise.
24581 (call_value_local32, call_value_local64): Disable for no-mark tls.
24582 (call_value_local_aix): Likewise.
24584 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24587 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24588 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24590 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24592 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24593 string contents as hash_map keys.
24595 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24598 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24599 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24600 instead of TYPE_ALIGN.
24601 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24602 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24603 pointer from TYPE_STUB_DECL.
24605 2019-01-21 Richard Biener <rguenther@suse.de>
24607 PR tree-optimization/88934
24608 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24609 at the possibly non-constant operand.
24610 (vect_get_constant_vectors): Adjust.
24612 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24615 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24616 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24617 instead of _X86INTRIN_H_INCLUDED.
24618 * onfig/i386/clwbintrin.h: Likewise.
24619 * config/i386/pkuintrin.h: Likewise.
24620 * config/i386/prfchwintrin.h: Likewise.
24621 * config/i386/rdseedintrin.h: Likewise.
24622 * config/i386/wbnoinvdintrin.h: Likewise.
24623 * config/i386/xsavecintrin.h: Likewise.
24624 * config/i386/xsavesintrin.h: Likewise.
24625 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24626 * config/i386/xsaveintrin.h: Likewise.
24627 * config/i386/xsaveoptintrin.h: Likewise.
24628 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24629 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24630 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24631 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24632 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24633 * config/i386/immintrin.h: Here.
24635 2019-01-20 Martin Jambor <mjambor@suse.cz>
24638 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24639 with aa_walk_budget.
24640 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24641 aa_walk_budget_p parameter.
24642 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24643 walk. Updated all callers.
24644 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24645 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24647 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24648 parameter info. Extract info from fbi. Pass fbi to recursive calls
24649 and to unmodified_parm.
24650 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24651 info, updated call to will_be_nonconstant_expr_predicate.
24652 (param_change_prob): New parameter fbi, limit AA walking.
24653 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24654 calls to various above functions.
24655 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24656 parameter. Use it to limit AA walking.
24657 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24658 fbi, limit AA walk.
24659 (detect_type_change): New parameter fbi, pass it on to
24660 detect_type_change_from_memory_writes.
24661 (detect_type_change_ssa): Likewise.
24662 (aa_overwalked): Removed.
24663 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24664 accordingly, adjust to the neew AA limiting scheme.
24665 (parm_ref_data_preserved_p): Likewise.
24666 (ipa_compute_jump_functions_for_edge): Adjust call to
24668 (ipa_analyze_call_uses): Likewise.
24669 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24670 (ipa_analyze_node): Initialize aa_walk_budget.
24671 (ipcp_transform_function): Likewise.
24672 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24673 to get_dynamic_type.
24675 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24677 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24678 outside of #if CHECKING_P code.
24680 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24682 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24683 New function, split out from...
24684 (loop_versioning::analyze_stride): ...here.
24685 (loop_versioning::find_per_loop_multiplication): Use gassign.
24686 (loop_versioning::analyze_term_using_scevs): Return a success code.
24687 (loop_versioning::analyze_arbitrary_term): New function.
24688 (loop_versioning::analyze_address_fragment): Use
24689 analyze_arbitrary_term if all else fails.
24691 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24694 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24697 2019-01-18 Richard Biener <rguenther@suse.de>
24699 PR tree-optimization/88903
24700 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24701 scalar stmts a SLP shift amount is composed of when detecting
24704 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24707 * config/arm/arm-cpus.in (mp): New feature.
24708 (sec): New feature.
24709 (fgroup ARMv7ve): Add mp and sec features.
24710 (arch armv7-a): Add options to allow mp and sec extensions.
24711 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24712 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24713 extenstions to the base architecture.
24714 (cpu cortex-a8): Add sec extension to the base architecture.
24715 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24716 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24717 variants down to the base v7-a varaint.
24718 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24719 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24720 of permitted extensions for -march=armv7-a and for
24721 -mcpu=generic-armv7-a.
24723 2019-01-18 Martin Liska <mliska@suse.cz>
24725 * params.def: Fix comment.
24726 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24728 (gimple_gen_ic_func_profiler): Likewise.
24730 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24732 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24733 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24734 and put in error checks for stack protector guard options.
24735 (aarch64_stack_protect_guard): New.
24736 (TARGET_STACK_PROTECT_GUARD): Define.
24737 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24738 (reg_stack_protect_address<mode>): New.
24739 (stack_protect_set): Adjust for SSP_GLOBAL.
24740 (stack_protect_test): Likewise.
24741 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24742 (-mstack-protector-guard): Likewise.
24743 (-mstack-protector-guard-offset): Likewise.
24745 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24747 PR tree-optimization/86214
24748 * tree-inline.h (struct copy_body_data): Add
24749 add_clobbers_to_eh_landing_pads member.
24750 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24751 (copy_edges_for_bb): Call it if EH edge destination is <
24752 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24753 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24754 if flag_stack_reuse != SR_NONE and clear it afterwards.
24756 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24759 * doc/install.texi (with-multilib-list): Document for aarch64.
24761 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24764 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24765 (("..."))) with ("...").
24767 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24769 * doc/extend.texi (Built-in Functions for Memory Model Aware
24770 Atomic Operations): Document atomic fetch and nand.
24772 2019-01-18 Martin Liska <mliska@suse.cz>
24773 Richard Biener <rguenther@suse.de>
24775 PR middle-end/88587
24776 * cgraph.h (create_version_clone_with_body): Add new argument
24778 * cgraphclones.c (cgraph_node::create_version_clone): Add
24779 DECL_ATTRIBUTES to a newly created decl. And call
24780 valid_attribute_p so that proper cl_target_optimization_node
24781 is set for the newly created declaration.
24782 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24784 (expand_target_clones): Do not call valid_attribute_p, it must
24786 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24789 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24792 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24793 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24794 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24796 2019-01-17 Martin Sebor <msebor@redhat.com>
24798 PR middle-end/88273
24799 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24800 Handle anti-ranges the same as no range at all.
24802 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24804 * config/aarch64/aarch64.c (cgraph.h): New include.
24805 (intl.h): New include.
24806 (supported_simd_type): New function.
24807 (currently_supported_simd_type): Ditto.
24808 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24809 (aarch64_simd_clone_adjust): Ditto.
24810 (aarch64_simd_clone_usable): Ditto.
24811 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24812 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24813 (TARGET_SIMD_CLONE_USABLE): Ditto.
24814 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24815 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24818 2019-01-17 Martin Sebor <msebor@redhat.com>
24820 PR tree-optimization/88800
24821 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24822 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24823 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24824 redundant argument. Add new argument and issue diagnostics under
24825 its control. Detect out-of-bounds access even with warnings
24827 (check_bounds_or_overlap): Change return type. Add argument.
24828 (wrestrict_dom_walker::check_call): Adjust.
24829 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24830 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24831 check_bounds_or_overlap's return value.
24832 (handle_builtin_stxncpy): Same.
24833 (handle_builtin_strcat): Same.
24835 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24836 Kwok Cheung Yeung <kcy@codesourcery.com>
24837 Julian Brown <julian@codesourcery.com>
24838 Tom de Vries <tom@codesourcery.com>
24840 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24842 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24844 * doc/sourcebuild.texi: Document dg-require-effective-target
24845 llvm_binutils and offload_gcn.
24847 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24848 Kwok Cheung Yeung <kcy@codesourcery.com>
24849 Julian Brown <julian@codesourcery.com>
24850 Tom de Vries <tom@codesourcery.com>
24852 * doc/sourcebuild.texi: Document dg-required-effective-target
24855 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24856 Kwok Cheung Yeung <kcy@codesourcery.com>
24857 Julian Brown <julian@codesourcery.com>
24858 Tom de Vries <tom@codesourcery.com>
24859 Jan Hubicka <hubicka@ucw.cz>
24860 Martin Jambor <mjambor@suse.cz>
24862 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24863 * configure.ac: Check for dlopen.
24864 * configure: Regenerate.
24866 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24867 Kwok Cheung Yeung <kcy@codesourcery.com>
24868 Julian Brown <julian@codesourcery.com>
24869 Tom de Vries <tom@codesourcery.com>
24870 Jan Hubicka <hubicka@ucw.cz>
24871 Martin Jambor <mjambor@suse.cz>
24873 * common/config/gcn/gcn-common.c: New file.
24874 * config/gcn/driver-gcn.c: New file.
24875 * config/gcn/gcn-builtins.def: New file.
24876 * config/gcn/gcn-hsa.h: New file.
24877 * config/gcn/gcn-modes.def: New file.
24878 * config/gcn/gcn-opts.h: New file.
24879 * config/gcn/gcn-passes.def: New file.
24880 * config/gcn/gcn-protos.h: New file.
24881 * config/gcn/gcn-run.c: New file.
24882 * config/gcn/gcn-tree.c: New file.
24883 * config/gcn/gcn.c: New file.
24884 * config/gcn/gcn.h: New file.
24885 * config/gcn/gcn.opt: New file.
24886 * config/gcn/t-gcn-hsa: New file.
24888 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24889 Kwok Cheung Yeung <kcy@codesourcery.com>
24890 Julian Brown <julian@codesourcery.com>
24891 Tom de Vries <tom@codesourcery.com>
24892 Jan Hubicka <hubicka@ucw.cz>
24893 Martin Jambor <mjambor@suse.cz>
24895 * config/gcn/constraints.md: New file.
24896 * config/gcn/gcn-valu.md: New file.
24897 * config/gcn/gcn.md: New file.
24898 * config/gcn/predicates.md: New file.
24900 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
24902 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24903 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24904 (stmt_uses_0_or_null_in_undefined_way): Likewise.
24905 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24907 2019-01-17 Tamar Christina <tamar.christina@arm.com>
24910 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24911 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24912 it and document registers.
24914 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24916 * config/aarch64/aarch64.c (ares_tunings): Define.
24917 * config/aarch64/aarch64-cores.def (ares): Use the above.
24919 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24923 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
24925 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24926 (_mm512_fixupimm_round_pd): Update parameters and builtin.
24927 (_mm512_maskz_fixupimm_round_pd): Ditto.
24928 (_mm512_fixupimm_round_ps): Ditto.
24929 (_mm512_maskz_fixupimm_round_ps): Ditto.
24930 (_mm_fixupimm_round_sd): Ditto.
24931 (_mm_maskz_fixupimm_round_sd): Ditto.
24932 (_mm_fixupimm_round_ss): Ditto.
24933 (_mm_maskz_fixupimm_round_ss): Ditto.
24934 (_mm512_fixupimm_pd): Ditto.
24935 (_mm512_maskz_fixupimm_pd): Ditto.
24936 (_mm512_fixupimm_ps): Ditto.
24937 (_mm512_maskz_fixupimm_ps): Ditto.
24938 (_mm_fixupimm_sd): Ditto.
24939 (_mm_maskz_fixupimm_sd): Ditto.
24940 (_mm_fixupimm_ss): Ditto.
24941 (_mm_maskz_fixupimm_ss): Ditto.
24942 (_mm512_mask_fixupimm_round_pd): Update builtin.
24943 (_mm512_mask_fixupimm_round_ps): Ditto.
24944 (_mm_mask_fixupimm_round_sd): Ditto.
24945 (_mm_mask_fixupimm_round_ss): Ditto.
24946 (_mm512_mask_fixupimm_pd): Ditto.
24947 (_mm512_mask_fixupimm_ps): Ditto.
24948 (_mm_mask_fixupimm_sd): Ditto.
24949 (_mm_mask_fixupimm_ss): Ditto.
24950 * config/i386/avx512vlintrin.h:
24951 (_mm256_fixupimm_pd): Update parameters and builtin.
24952 (_mm256_maskz_fixupimm_pd): Ditto.
24953 (_mm256_fixupimm_ps): Ditto.
24954 (_mm256_maskz_fixupimm_ps): Ditto.
24955 (_mm_fixupimm_pd): Ditto.
24956 (_mm_maskz_fixupimm_pd): Ditto.
24957 (_mm_fixupimm_ps): Ditto.
24958 (_mm_maskz_fixupimm_ps): Ditto.
24959 (_mm256_mask_fixupimm_pd): Update builtin.
24960 (_mm256_mask_fixupimm_ps): Ditto.
24961 (_mm_mask_fixupimm_pd): Ditto.
24962 (_mm_mask_fixupimm_ps): Ditto.
24963 * config/i386/i386-builtin-types.def: Add new types and remove
24965 * config/i386/i386-builtin.def: Update builtin definitions.
24966 * config/i386/i386.c: Handle new builtin types and remove useless ones.
24967 * config/i386/sse.md: Update VFIXUPIMM* patterns.
24968 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24969 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24970 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
24971 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24972 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24973 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
24974 * config/i386/subst.md:
24975 (round_saeonly_sd_mask_operand4): Add new subst_attr.
24976 (round_saeonly_sd_mask_op4): Ditto.
24977 (round_saeonly_expand_operand5): Ditto.
24978 (round_saeonly_expand): Update.
24980 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24984 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
24986 * config/i386/sse.md: Combine VFIXUPIMM* patterns
24987 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24988 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24989 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
24990 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24991 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24992 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
24994 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24998 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25001 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25002 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25003 instead of UNSPEC_FIXUPIMM.
25005 2019-01-17 Richard Biener <rguenther@suse.de>
25008 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25009 and friends for the LTO part of debug info.
25011 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25013 PR tree-optimization/86214
25014 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25017 PR rtl-optimization/88870
25018 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25019 throw if we can't alter the cfg or delete dead exceptions.
25020 (mark_insn): Don't call find_call_stack_args for such calls.
25022 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25024 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25025 prototypes for vec_st.
25026 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25027 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25028 mainly on signed/unsigned long long and double.
25030 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25033 * combine.c (delete_noop_moves): Convert to "bool" return,
25034 returning true if any edges are eliminated.
25035 (combine_instructions): Also return true if delete_noop_moves
25038 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25040 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25041 correct max nunits for endian swap.
25042 (aarch64_expand_fcmla_builtin): Correct subreg code.
25043 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25044 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25047 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25049 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25050 Handle split indirect COMPLEX_TYPE arguments.
25052 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25055 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25056 bit is set by add and compare.
25057 (CC_ADC): New CC_MODE.
25058 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25059 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25060 comparison. Add detection for CC_ADCmode.
25061 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25063 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25064 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25065 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25066 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25067 to eliminate the need for zero-extending the operands.
25068 (add<mode>3_compareC_imm): Delete. Merge into ...
25069 (add<mode>3_compareC): ... this. Restructure the comparison to
25070 eliminate the need for zero-extending the operands.
25071 (add<mode>3_carryin): Use LTU for the overflow detection.
25072 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25073 Reexpress comparison for overflow.
25074 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25075 (add<mode>3_carryinC): Likewise.
25076 (add<mode>3_carryinV): Use LTU for carry between partials.
25077 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25078 handling of CC_Cmode and add CC_ADCmode.
25079 (aarch64_borrow_operation): Likewise.
25081 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25083 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25084 Remove patternmode.
25085 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25086 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25087 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25088 Remove endianness conversion.
25090 2019-01-16 Martin Liska <mliska@suse.cz>
25092 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25094 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25096 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25097 (path_prefix_reset): Move up in the source file.
25098 (find_fortran_preinclude_file): Make complex search for the
25099 fortran header files.
25101 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25103 * godump.c (go_output_typedef): When outputting a typedef, refer
25104 to the underlying type by its name and not its structure.
25106 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25109 * tree.c (build_function_type): Assert that arg_types is not
25112 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25114 PR inline-asm/52813
25115 * doc/extend.texi: Document that listing the stack pointer in the
25116 clobber list of an asm is a deprecated feature.
25117 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25118 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25119 warning instead of an error for clobbers of the stack pointer.
25120 Add a note explaining why.
25122 2019-01-15 Richard Biener <rguenther@suse.de>
25125 * dwarf2out.c (gen_member_die): Do not generate inheritance
25128 2019-01-15 Richard Biener <rguenther@suse.de>
25130 PR tree-optimization/88855
25131 * tree-if-conv.c (combine_blocks): Collect
25132 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25134 2019-01-15 Tom de Vries <tdevries@suse.de>
25137 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25138 lhs == NULL_TREE for gang-level reduction.
25140 2019-01-15 Richard Biener <rguenther@suse.de>
25141 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25144 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25145 return true if SSA_NAME is already marked in visited bitmap.
25146 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25148 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25150 PR tree-optimization/88775
25151 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25152 equal == 0 equality pointer comparisons some more if compared in
25153 integral types and either one points to an automatic var and the
25154 other to a global, or we can prove at least one points to the middle
25155 or both point to start or both point to end.
25157 2019-01-14 Andi Kleen <ak@linux.intel.com>
25159 * Makefile.in: Lower autofdo sampling rate by 10x.
25160 * Makefile.tpl: Dito.
25162 2019-01-14 Tom Honermann <tom@honermann.net>
25164 * defaults.h: Define CHAR8_TYPE.
25166 2019-01-14 Martin Sebor <msebor@redhat.com>
25169 * doc/extend.texi (Darwin Format Checks): Clarify.
25171 2019-01-14 Richard Biener <rguenther@suse.de>
25173 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25174 whether we are in (simplify ...) or (match ...) context.
25176 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25178 PR rtl-optimization/88796
25179 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25180 * cfgexpand.c (stack_protect_prologue): Initialize
25181 crtl->stack_protect_guard_decl.
25182 * function.c (stack_protect_epilogue): Use it instead of calling
25183 targetm.stack_protect_guard again.
25184 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25185 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25186 crtl->stack_protect_guard_decl.
25187 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25188 on the returned MEM_EXPR.
25190 2019-01-12 Tom de Vries <tdevries@suse.de>
25192 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25193 vector length using -fopenacc-dim.
25195 2019-01-12 Tom de Vries <tdevries@suse.de>
25197 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25198 lengths into account.
25200 2019-01-12 Svante Signell <svante.signell@gmail.com>
25202 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25203 (TARGET_CAN_SPLIT_STACK): Define.
25204 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25206 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25208 * params.def (inline-unit-growth): Set to 40.
25210 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25212 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25214 2019-01-12 Tom de Vries <tdevries@suse.de>
25216 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25217 region calling vector-partitionable routine, set default_vector_length
25220 2019-01-12 Tom de Vries <tdevries@suse.de>
25222 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25223 variable default_vector_length.
25225 2019-01-12 Tom de Vries <tdevries@suse.de>
25227 PR middle-end/88703
25228 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25229 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25232 2019-01-12 Tom de Vries <tdevries@suse.de>
25234 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25235 (nvptx_goacc_validate_dims): Add used parameter.
25236 * doc/tm.texi: Regenerate.
25237 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25238 argument to call to targetm.goacc.validate_dims.
25239 (default_goacc_validate_dims): Add used
25241 * target.def (validate_dims): Add used parameter in DEFHOOK.
25242 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25244 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25246 PR middle-end/85956
25248 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25250 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25251 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25252 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25253 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25255 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25257 PR rtl-optimization/87305
25259 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25260 for little endian pseudos used as paradoxical subreg.
25262 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25264 PR tree-optimization/88693
25265 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25266 for STRING_CSTs that don't contain any NUL characters in the first
25267 TREE_STRING_LENGTH bytes.
25269 2019-01-11 Alan Modra <amodra@gmail.com>
25273 * genattrtab.c (min_fn): Don't translate values.
25274 (min_attr_value): Return INT_MAX when the value can't be calculated.
25275 Return minimum among any values that can be calculated.
25276 (max_attr_value): Adjust.
25278 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25280 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25282 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25284 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25285 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25286 (aarch64_return_call_with_max_clobbers): New function.
25287 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25288 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25290 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25291 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25292 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25293 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25294 * cselib.c (cselib_process_insn): Add argument to
25295 targetm.hard_regno_call_part_clobbered call.
25296 * ira-conflicts.c (ira_build_conflicts): Ditto.
25297 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25298 * lra-constraints.c (inherit_reload_reg): Ditto.
25299 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25300 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25301 argument. Call targetm.return_call_with_max_clobbers.
25302 Add argument to targetm.hard_regno_call_part_clobbered call.
25303 (calls_have_same_clobbers_p): New function.
25304 (process_bb_lives): Add call_insn and last_call_insn variables.
25305 Pass call_insn to check_pseudos_live_through_calls.
25306 Modify if stmt to check targetm.return_call_with_max_clobbers.
25307 Update setting of flush variable.
25308 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25310 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25311 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25312 targetm.hard_regno_call_part_clobbered call.
25313 * reginfo.c (choose_hard_reg_mode): Ditto.
25314 * regrename.c (check_new_reg_p): Ditto.
25315 * reload.c (find_equiv_reg): Ditto.
25316 * reload1.c (emit_reload_insns): Ditto.
25317 * sched-deps.c (deps_analyze_insn): Ditto.
25318 * sel-sched.c (init_regs_for_mode): Ditto.
25319 (mark_unavailable_hard_regs): Ditto.
25320 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25321 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25322 (return_call_with_max_clobbers): New target function.
25323 * doc/tm.texi: Regenerate.
25324 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25325 * hooks.c (hook_bool_uint_mode_false): Change to
25326 hook_bool_insn_uint_mode_false.
25327 * hooks.h (hook_bool_uint_mode_false): Ditto.
25329 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25331 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25332 (aarch64_remove_extra_call_preserved_regs): New function.
25333 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25334 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25335 * doc/tm.texi: Regenerate.
25336 * final.c (get_call_reg_set_usage): Call new hook.
25337 * target.def (remove_extra_call_preserved_regs): New hook.
25338 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25339 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25341 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25344 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25345 inside of pass_combine_1 dump rather than pass_profile_1.
25347 2019-01-11 Tom de Vries <tdevries@suse.de>
25349 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25350 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25351 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25352 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25355 2019-01-11 Tom de Vries <tdevries@suse.de>
25357 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25359 2019-01-11 Jan Beulich <jbeulich@suse.com>
25361 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25362 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25363 sse2_cvtsi2sd): Add {l}.
25364 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25367 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25370 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25372 (*float<floatunssuffix>v2div2sf2): New define_insn.
25373 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25374 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25375 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25376 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25377 match_operands with "const0_operand" "C".
25379 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25381 * config/aarch64/aarch64-builtins.c
25382 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25383 (aarch64_init_simd_builtins): ...Here
25385 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25387 PR rtl-optimization/87305
25389 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25390 allocation for big endian pseudos used as paradoxical subregs and
25391 spill them if it is wrong.
25392 * lra-constraints.c (lra_constraints): Add a comment.
25394 2019-01-10 Richard Biener <rguenther@suse.de>
25396 PR tree-optimization/88792
25397 * tree-ssa-pre.c (get_representative_for): Do not return a
25400 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25402 PR middle-end/84877
25404 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25405 (assign_parm_setup_block): Do the argument slot realignment here
25408 2019-01-10 Stefan Agner <stefan@agner.ch>
25411 * config/arm/arm.c (arm_option_override_internal): Force
25412 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25414 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25417 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25420 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25422 * config/arm/arm-builtins.c
25423 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25424 (MAC_LANE_PAIR_QUALIFIERS): New.
25425 (arm_expand_builtin_args): Use it.
25426 (arm_expand_builtin_1): Likewise.
25427 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25428 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25429 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25430 * config/arm/arm_neon.h:
25431 (vcadd_rot90_f16): New.
25432 (vcaddq_rot90_f16): New.
25433 (vcadd_rot270_f16): New.
25434 (vcaddq_rot270_f16): New.
25437 (vcmla_lane_f16): New.
25438 (vcmla_laneq_f16): New.
25439 (vcmlaq_lane_f16): New.
25440 (vcmlaq_laneq_f16): New.
25441 (vcmla_rot90_f16): New.
25442 (vcmlaq_rot90_f16): New.
25443 (vcmla_rot90_lane_f16): New.
25444 (vcmla_rot90_laneq_f16): New.
25445 (vcmlaq_rot90_lane_f16): New.
25446 (vcmlaq_rot90_laneq_f16): New.
25447 (vcmla_rot180_f16): New.
25448 (vcmlaq_rot180_f16): New.
25449 (vcmla_rot180_lane_f16): New.
25450 (vcmla_rot180_laneq_f16): New.
25451 (vcmlaq_rot180_lane_f16): New.
25452 (vcmlaq_rot180_laneq_f16): New.
25453 (vcmla_rot270_f16): New.
25454 (vcmlaq_rot270_f16): New.
25455 (vcmla_rot270_lane_f16): New.
25456 (vcmla_rot270_laneq_f16): New.
25457 (vcmlaq_rot270_lane_f16): New.
25458 (vcmlaq_rot270_laneq_f16): New.
25459 (vcadd_rot90_f32): New.
25460 (vcaddq_rot90_f32): New.
25461 (vcadd_rot270_f32): New.
25462 (vcaddq_rot270_f32): New.
25465 (vcmla_lane_f32): New.
25466 (vcmla_laneq_f32): New.
25467 (vcmlaq_lane_f32): New.
25468 (vcmlaq_laneq_f32): New.
25469 (vcmla_rot90_f32): New.
25470 (vcmlaq_rot90_f32): New.
25471 (vcmla_rot90_lane_f32): New.
25472 (vcmla_rot90_laneq_f32): New.
25473 (vcmlaq_rot90_lane_f32): New.
25474 (vcmlaq_rot90_laneq_f32): New.
25475 (vcmla_rot180_f32): New.
25476 (vcmlaq_rot180_f32): New.
25477 (vcmla_rot180_lane_f32): New.
25478 (vcmla_rot180_laneq_f32): New.
25479 (vcmlaq_rot180_lane_f32): New.
25480 (vcmlaq_rot180_laneq_f32): New.
25481 (vcmla_rot270_f32): New.
25482 (vcmlaq_rot270_f32): New.
25483 (vcmla_rot270_lane_f32): New.
25484 (vcmla_rot270_laneq_f32): New.
25485 (vcmlaq_rot270_lane_f32): New.
25486 (vcmlaq_rot270_laneq_f32): New.
25487 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25488 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25489 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25490 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25491 vcmlaq_lane270): New.
25492 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25493 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25494 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25495 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25496 (arm_option_reconfigure_globals): Use them.
25497 * config/arm/iterators.md (VDF, VQ_HSF): New.
25498 (VCADD, VCMLA): New.
25499 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25500 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25502 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25503 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25505 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25507 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25508 Add qualifier_lane_pair_index.
25509 (emit-rtl.h): Include.
25510 (TYPES_QUADOP_LANE_PAIR): New.
25511 (aarch64_simd_expand_args): Use it.
25512 (aarch64_simd_expand_builtin): Likewise.
25513 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25515 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25516 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25517 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25518 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25519 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25520 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25521 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25522 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25523 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25524 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25525 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25526 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25527 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25528 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25529 Add __ARM_FEATURE_COMPLEX.
25530 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25531 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25532 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25533 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25534 fcmlaq_lane270): New.
25535 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25536 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25537 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25538 * config/aarch64/arm_neon.h:
25539 (vcadd_rot90_f16): New.
25540 (vcaddq_rot90_f16): New.
25541 (vcadd_rot270_f16): New.
25542 (vcaddq_rot270_f16): New.
25545 (vcmla_lane_f16): New.
25546 (vcmla_laneq_f16): New.
25547 (vcmlaq_lane_f16): New.
25548 (vcmlaq_rot90_lane_f16): New.
25549 (vcmla_rot90_laneq_f16): New.
25550 (vcmla_rot90_lane_f16): New.
25551 (vcmlaq_rot90_f16): New.
25552 (vcmla_rot90_f16): New.
25553 (vcmlaq_laneq_f16): New.
25554 (vcmla_rot180_laneq_f16): New.
25555 (vcmla_rot180_lane_f16): New.
25556 (vcmlaq_rot180_f16): New.
25557 (vcmla_rot180_f16): New.
25558 (vcmlaq_rot90_laneq_f16): New.
25559 (vcmlaq_rot270_laneq_f16): New.
25560 (vcmlaq_rot270_lane_f16): New.
25561 (vcmla_rot270_laneq_f16): New.
25562 (vcmlaq_rot270_f16): New.
25563 (vcmla_rot270_f16): New.
25564 (vcmlaq_rot180_laneq_f16): New.
25565 (vcmlaq_rot180_lane_f16): New.
25566 (vcmla_rot270_lane_f16): New.
25567 (vcadd_rot90_f32): New.
25568 (vcaddq_rot90_f32): New.
25569 (vcaddq_rot90_f64): New.
25570 (vcadd_rot270_f32): New.
25571 (vcaddq_rot270_f32): New.
25572 (vcaddq_rot270_f64): New.
25576 (vcmla_lane_f32): New.
25577 (vcmla_laneq_f32): New.
25578 (vcmlaq_lane_f32): New.
25579 (vcmlaq_laneq_f32): New.
25580 (vcmla_rot90_f32): New.
25581 (vcmlaq_rot90_f32): New.
25582 (vcmlaq_rot90_f64): New.
25583 (vcmla_rot90_lane_f32): New.
25584 (vcmla_rot90_laneq_f32): New.
25585 (vcmlaq_rot90_lane_f32): New.
25586 (vcmlaq_rot90_laneq_f32): New.
25587 (vcmla_rot180_f32): New.
25588 (vcmlaq_rot180_f32): New.
25589 (vcmlaq_rot180_f64): New.
25590 (vcmla_rot180_lane_f32): New.
25591 (vcmla_rot180_laneq_f32): New.
25592 (vcmlaq_rot180_lane_f32): New.
25593 (vcmlaq_rot180_laneq_f32): New.
25594 (vcmla_rot270_f32): New.
25595 (vcmlaq_rot270_f32): New.
25596 (vcmlaq_rot270_f64): New.
25597 (vcmla_rot270_lane_f32): New.
25598 (vcmla_rot270_laneq_f32): New.
25599 (vcmlaq_rot270_lane_f32): New.
25600 (vcmlaq_rot270_laneq_f32): New.
25601 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25602 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25603 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25604 (FCADD, FCMLA): New.
25606 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25608 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25612 * config/pa/pa.c: Change "can not" to "cannot".
25613 * gimple-ssa-evrp-analyze.c: Likewise.
25614 * ipa-icf.c: Likewise.
25615 * ipa-polymorphic-call.c: Likewise.
25616 * ipa-pure-const.c: Likewise.
25617 * lra-constraints.c: Likewise.
25618 * lra-remat.c: Likewise.
25619 * reload1.c: Likewise.
25620 * reorg.c: Likewise.
25621 * tree-ssa-uninit.c: Likewise.
25623 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25627 * Makefile.in: Mechanically replace "can not" with "cannot".
25628 * alias.c: Likewise.
25629 * builtins.c: Likewise.
25630 * calls.c: Likewise.
25631 * cgraph.c: Likewise.
25632 * cgraph.h: Likewise.
25633 * cgraphclones.c: Likewise.
25634 * cgraphunit.c: Likewise.
25635 * combine-stack-adj.c: Likewise.
25636 * combine.c: Likewise.
25637 * common/config/i386/i386-common.c: Likewise.
25638 * config/aarch64/aarch64.c: Likewise.
25639 * config/alpha/sync.md: Likewise.
25640 * config/arc/arc.c: Likewise.
25641 * config/arc/predicates.md: Likewise.
25642 * config/arm/arm-c.c: Likewise.
25643 * config/arm/arm.c: Likewise.
25644 * config/arm/arm.h: Likewise.
25645 * config/arm/arm.md: Likewise.
25646 * config/arm/cortex-r4f.md: Likewise.
25647 * config/csky/csky.c: Likewise.
25648 * config/csky/csky.h: Likewise.
25649 * config/darwin-f.c: Likewise.
25650 * config/epiphany/epiphany.md: Likewise.
25651 * config/i386/i386.c: Likewise.
25652 * config/i386/sol2.h: Likewise.
25653 * config/m68k/m68k.c: Likewise.
25654 * config/mcore/mcore.h: Likewise.
25655 * config/microblaze/microblaze.md: Likewise.
25656 * config/mips/20kc.md: Likewise.
25657 * config/mips/sb1.md: Likewise.
25658 * config/nds32/nds32.c: Likewise.
25659 * config/nds32/predicates.md: Likewise.
25660 * config/pa/pa.c: Likewise.
25661 * config/rs6000/e300c2c3.md: Likewise.
25662 * config/rs6000/rs6000.c: Likewise.
25663 * config/s390/s390.h: Likewise.
25664 * config/sh/sh.c: Likewise.
25665 * config/sh/sh.md: Likewise.
25666 * config/spu/vmx2spu.h: Likewise.
25667 * cprop.c: Likewise.
25668 * dbxout.c: Likewise.
25669 * df-scan.c: Likewise.
25670 * doc/cfg.texi: Likewise.
25671 * doc/extend.texi: Likewise.
25672 * doc/fragments.texi: Likewise.
25673 * doc/gty.texi: Likewise.
25674 * doc/invoke.texi: Likewise.
25675 * doc/lto.texi: Likewise.
25676 * doc/md.texi: Likewise.
25677 * doc/objc.texi: Likewise.
25678 * doc/rtl.texi: Likewise.
25679 * doc/tm.texi: Likewise.
25681 * emit-rtl.c: Likewise.
25682 * emit-rtl.h: Likewise.
25683 * except.c: Likewise.
25684 * expmed.c: Likewise.
25685 * expr.c: Likewise.
25686 * fold-const.c: Likewise.
25687 * genautomata.c: Likewise.
25688 * gimple-fold.c: Likewise.
25689 * hard-reg-set.h: Likewise.
25690 * ifcvt.c: Likewise.
25691 * ipa-comdats.c: Likewise.
25692 * ipa-cp.c: Likewise.
25693 * ipa-devirt.c: Likewise.
25694 * ipa-fnsummary.c: Likewise.
25695 * ipa-icf.c: Likewise.
25696 * ipa-inline-transform.c: Likewise.
25697 * ipa-inline.c: Likewise.
25698 * ipa-polymorphic-call.c: Likewise.
25699 * ipa-profile.c: Likewise.
25700 * ipa-prop.c: Likewise.
25701 * ipa-pure-const.c: Likewise.
25702 * ipa-reference.c: Likewise.
25703 * ipa-split.c: Likewise.
25704 * ipa-visibility.c: Likewise.
25706 * ira-build.c: Likewise.
25707 * ira-color.c: Likewise.
25708 * ira-conflicts.c: Likewise.
25709 * ira-costs.c: Likewise.
25710 * ira-int.h: Likewise.
25711 * ira-lives.c: Likewise.
25714 * loop-invariant.c: Likewise.
25715 * loop-unroll.c: Likewise.
25716 * lower-subreg.c: Likewise.
25717 * lra-assigns.c: Likewise.
25718 * lra-constraints.c: Likewise.
25719 * lra-eliminations.c: Likewise.
25720 * lra-lives.c: Likewise.
25721 * lra-remat.c: Likewise.
25722 * lra-spills.c: Likewise.
25724 * lto-cgraph.c: Likewise.
25725 * lto-streamer-out.c: Likewise.
25726 * postreload-gcse.c: Likewise.
25727 * predict.c: Likewise.
25728 * profile-count.h: Likewise.
25729 * profile.c: Likewise.
25730 * recog.c: Likewise.
25732 * reload.c: Likewise.
25733 * reload1.c: Likewise.
25734 * reorg.c: Likewise.
25735 * resource.c: Likewise.
25736 * rtl.def: Likewise.
25738 * rtlanal.c: Likewise.
25739 * sched-deps.c: Likewise.
25740 * sched-ebb.c: Likewise.
25741 * sched-rgn.c: Likewise.
25742 * sel-sched-ir.c: Likewise.
25743 * sel-sched.c: Likewise.
25744 * shrink-wrap.c: Likewise.
25745 * simplify-rtx.c: Likewise.
25746 * symtab.c: Likewise.
25747 * target.def: Likewise.
25748 * toplev.c: Likewise.
25749 * tree-call-cdce.c: Likewise.
25750 * tree-cfg.c: Likewise.
25751 * tree-complex.c: Likewise.
25752 * tree-core.h: Likewise.
25753 * tree-eh.c: Likewise.
25754 * tree-inline.c: Likewise.
25755 * tree-loop-distribution.c: Likewise.
25756 * tree-nrv.c: Likewise.
25757 * tree-profile.c: Likewise.
25758 * tree-sra.c: Likewise.
25759 * tree-ssa-alias.c: Likewise.
25760 * tree-ssa-dce.c: Likewise.
25761 * tree-ssa-dom.c: Likewise.
25762 * tree-ssa-forwprop.c: Likewise.
25763 * tree-ssa-loop-im.c: Likewise.
25764 * tree-ssa-loop-ivcanon.c: Likewise.
25765 * tree-ssa-loop-ivopts.c: Likewise.
25766 * tree-ssa-loop-niter.c: Likewise.
25767 * tree-ssa-phionlycprop.c: Likewise.
25768 * tree-ssa-phiopt.c: Likewise.
25769 * tree-ssa-propagate.c: Likewise.
25770 * tree-ssa-threadedge.c: Likewise.
25771 * tree-ssa-threadupdate.c: Likewise.
25772 * tree-ssa-uninit.c: Likewise.
25773 * tree-ssanames.c: Likewise.
25774 * tree-streamer-out.c: Likewise.
25775 * tree.c: Likewise.
25776 * tree.h: Likewise.
25777 * vr-values.c: Likewise.
25779 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25781 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25782 (ix86_split_xorsign): Ditto.
25783 * config/i386/i386.c (ix86_expand_xorsign): New function.
25784 (ix86_split_xorsign): Ditto.
25785 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25786 (xorsign<mode>3): New expander.
25787 (xorsign<mode>3_1): New insn_and_split pattern.
25788 * config/i386/sse.md (xorsign<mode>3): New expander.
25790 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25792 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25793 (*tablejump_sp64): Likewise.
25794 (*tablejump<P:mode>): ...this.
25795 (*call_address_sp32): Merge into...
25796 (*call_address_sp64): Likewise.
25797 (*call_address<P:mode>): ...this.
25798 (*call_symbolic_sp32): Merge into...
25799 (*call_symbolic_sp64): Likewise.
25800 (*call_symbolic<P:mode>): ...this.
25801 (call_value): Remove constraint and add predicate.
25802 (*call_value_address_sp32): Merge into...
25803 (*call_value_address_sp64): Likewise.
25804 (*call_value_address<P:mode>): ...this.
25805 (*call_value_symbolic_sp32): Merge into...
25806 (*call_value_symbolic_sp64): Likewise.
25807 (*call_value_symbolic<P:mode>): ...this.
25808 (*sibcall_symbolic_sp32): Merge into...
25809 (*sibcall_symbolic_sp64): Likewise.
25810 (*sibcall_symbolic<P:mode>): ...this.
25811 (sibcall_value): Remove constraint and add predicate.
25812 (*sibcall_value_symbolic_sp32): Merge into...
25813 (*sibcall_value_symbolic_sp64): Likewise.
25814 (*sibcall_value_symbolic<P:mode>): ...this.
25815 (window_save): Minor tweak.
25816 (*branch_sp32): Merge into...
25817 (*branch_sp64): Likewise.
25818 (*branch<P:mode>): ...this.
25820 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25821 James Clarke <jrtc27@jrtc27.com>
25824 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25825 consistently in TLS address generation and adjust code to the renaming
25826 of patterns. Mark calls to __tls_get_addr as const.
25827 * config/sparc/sparc.md (tgd_hi22): Turn into...
25828 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25829 (tgd_lo10): Turn into...
25830 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25831 (tgd_add32): Merge into...
25832 (tgd_add64): Likewise.
25833 (tgd_add<P:mode>): ...this and use Pmode throughout.
25834 (tldm_hi22): Turn into...
25835 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25836 (tldm_lo10): Turn into...
25837 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25838 (tldm_add32): Merge into...
25839 (tldm_add64): Likewise.
25840 (tldm_add<P:mode>): ...this and use Pmode throughout.
25841 (tldm_call32): Merge into...
25842 (tldm_call64): Likewise.
25843 (tldm_call<P:mode>): ...this and use Pmode throughout.
25844 (tldo_hix22): Turn into...
25845 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25846 (tldo_lox10): Turn into...
25847 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25848 (tldo_add32): Merge into...
25849 (tldo_add64): Likewise.
25850 (tldo_add<P:mode>): ...this and use Pmode throughout.
25851 (tie_hi22): Turn into...
25852 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25853 (tie_lo10): Turn into...
25854 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25855 (tie_ld64): Use DImode throughout.
25856 (tie_add32): Merge into...
25857 (tie_add64): Likewise.
25858 (tie_add<P:mode>): ...this and use Pmode throughout.
25859 (tle_hix22_sp32): Merge into...
25860 (tle_hix22_sp64): Likewise.
25861 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25862 (tle_lox22_sp32): Merge into...
25863 (tle_lox22_sp64): Likewise.
25864 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25865 (*tldo_ldub_sp32): Merge into...
25866 (*tldo_ldub_sp64): Likewise.
25867 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25868 (*tldo_ldub1_sp32): Merge into...
25869 (*tldo_ldub1_sp64): Likewise.
25870 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25871 (*tldo_ldub2_sp32): Merge into...
25872 (*tldo_ldub2_sp64): Likewise.
25873 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25874 (*tldo_ldsb1_sp32): Merge into...
25875 (*tldo_ldsb1_sp64): Likewise.
25876 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25877 (*tldo_ldsb2_sp32): Merge into...
25878 (*tldo_ldsb2_sp64): Likewise.
25879 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25880 (*tldo_ldub3_sp64): Use DImode throughout.
25881 (*tldo_ldsb3_sp64): Likewise.
25882 (*tldo_lduh_sp32): Merge into...
25883 (*tldo_lduh_sp64): Likewise.
25884 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25885 (*tldo_lduh1_sp32): Merge into...
25886 (*tldo_lduh1_sp64): Likewise.
25887 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25888 (*tldo_ldsh1_sp32): Merge into...
25889 (*tldo_ldsh1_sp64): Likewise.
25890 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25891 (*tldo_lduh2_sp64): Use DImode throughout.
25892 (*tldo_ldsh2_sp64): Likewise.
25893 (*tldo_lduw_sp32): Merge into...
25894 (*tldo_lduw_sp64): Likewise.
25895 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25896 (*tldo_lduw1_sp64): Use DImode throughout.
25897 (*tldo_ldsw1_sp64): Likewise.
25898 (*tldo_ldx_sp64): Likewise.
25899 (*tldo_stb_sp32): Merge into...
25900 (*tldo_stb_sp64): Likewise.
25901 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25902 (*tldo_sth_sp32): Merge into...
25903 (*tldo_sth_sp64): Likewise.
25904 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25905 (*tldo_stw_sp32): Merge into...
25906 (*tldo_stw_sp64): Likewise.
25907 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25908 (*tldo_stx_sp64): Use DImode throughout.
25910 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25912 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25913 check configure option to set BTI and Return Address Signing.
25914 * configure.ac: Add --enable-standard-branch-protection and
25915 --disable-standard-branch-protection.
25916 * configure: Regenerated.
25917 * doc/install.texi: Document the same.
25919 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25920 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25922 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25923 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25924 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25926 * config/aarch64/aarch64-bti-insert.c: New file.
25927 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25929 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25931 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25932 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25933 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25934 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25936 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25938 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25939 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25940 Disable bti for -mbranch-protection=none.
25941 (aarch64_handle_standard_branch_protection): Enable bti for
25942 -mbranch-protection=standard.
25943 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25944 -mbranch-protection.
25945 (aarch64_bti_enabled): Check if bti is enabled.
25946 * config/aarch64/aarch64.opt: Declare target variable.
25947 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25949 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25951 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
25952 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
25953 (aarch64_expand_epilogue): Likewise.
25954 (aarch64_output_mi_thunk): Likewise.
25955 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
25956 TAILCALL_ADDR_REGS to x16 and x17.
25957 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
25959 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25961 * config/aarch64/aarch64-option-extensions.def: Define
25962 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
25963 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
25964 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
25965 (AARCH64_FL_PREDRES): New.
25966 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
25967 AARCH64_FL_PREDRES by default.
25968 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
25970 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25972 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
25974 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
25975 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
25976 * doc/invoke.texi: Document ARMv8.5-A.
25978 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25980 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
25981 (xorsign<mode>3): Likewise.
25983 2019-01-09 Jelinek <jakub@redhat.com>
25985 PR middle-end/88758
25986 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
25987 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
25989 PR rtl-optimization/88331
25990 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
25991 not currently_expanding_to_rtl.
25993 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25995 * doc/invoke.texi (-Os): Remove trailing spaces.
25996 (-finline-functions): Remove reference to -O2.
25998 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26000 PR rtl-optimization/79593
26001 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26003 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26004 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26006 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26009 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26013 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26014 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26016 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26019 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26020 ix86_avx_u128_mode_entry.
26022 2019-01-08 Martin Liska <mliska@suse.cz>
26024 PR tree-optimization/88753
26025 * tree-switch-conversion.c (switch_conversion::build_one_array):
26026 Come up with local variable constructor. Convert first to
26027 type of constructor values.
26029 2019-01-08 Richard Biener <rguenther@suse.de>
26031 PR tree-optimization/86554
26032 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26033 rpo_avail): Move earlier.
26034 (visit_nary_op): When value-numbering to expressions
26035 with different overflow behavior make sure there's an
26036 available expression on the path.
26038 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26040 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26041 aarch64_parse_branch_protection,
26042 struct aarch64_branch_protect_type,
26043 aarch64_handle_no_branch_protection,
26044 aarch64_handle_standard_branch_protection,
26045 aarch64_validate_mbranch_protection,
26046 aarch64_handle_pac_ret_protection,
26047 aarch64_handle_attr_branch_protection,
26048 accepted_branch_protection_string,
26049 aarch64_pac_ret_subtypes,
26050 aarch64_branch_protect_types,
26051 aarch64_handle_pac_ret_leaf): Define.
26052 (aarch64_override_options_after_change_1, aarch64_override_options):
26053 Add check for accepted_branch_protection_string.
26054 (aarch64_option_save): Save accepted_branch_protection_string.
26055 (aarch64_option_restore): Save accepted_branch_protection_string.
26056 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26057 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26058 msign-return-address.
26059 * doc/invoke.texi: Add mbranch-protection.
26061 2019-01-08 Alan Modra <amodra@gmail.com>
26064 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26065 Delete "unknownp" parameter. Adjust callers. Handle
26066 CONST_INT, PLUS, MINUS, and MULT.
26067 (attr_value_aligned): Renamed from or_attr_value.
26068 (min_attr_value): Return INT_MIN for unhandled rtl case..
26069 (min_fn): ..and translate to INT_MAX here.
26070 (write_length_unit_log): Modify to cope without "unknown".
26071 (write_attr_value): Handle IF_THEN_ELSE.
26073 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26075 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26076 optimization for masked stores.
26078 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26080 PR middle-end/88567
26081 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26082 output vector directly to duplicate_and_interleave instead of
26083 going through a temporary. Postpone insertion of ctor_seq to
26084 the end of the loop.
26086 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26089 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26090 unsigned_p. Handle signed and unsigned overflow correction as
26092 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26094 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26096 (add<mode>3_compareV_imm): Make this callable for expanding.
26097 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26098 aarch64_plus_operand for operand 2.
26099 (subv<GPI:mode>_insn): New insn pattern.
26100 (subv<GPI:mode>_imm): Likewise.
26101 (negv<GPI:mode>3): New expand pattern.
26102 (negv<GPI:mode>_insn): New insn pattern.
26103 (negv<GPI:mode>_cmp_only): Likewise.
26104 (cmpv<GPI:mode>_insn): Likewise.
26105 (subvti4): Use register_operand for operand 1. Update call to
26106 aarch64_expand_subvti.
26107 (usubvti4): Likewise.
26108 (negvti3): New expand pattern.
26109 (negdi_carryout): New insn pattern.
26110 (negvdi_carryinV): New insn pattern.
26111 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26112 version the named version.
26113 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26115 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26117 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26119 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26120 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26121 (sub<mode>3_carryinCV): Delete.
26122 (sub<GPI:mode>3_carryinV): New expand pattern.
26123 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26125 2019-01-07 Richard Biener <rguenther@suse.de>
26127 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26128 of tree_operand_hash.
26130 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26132 PR tree-optimization/88598
26133 * tree.h (single_nonzero_element): Declare.
26134 * tree.c (single_nonzero_element): New function.
26135 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26136 if I is the only nonzero element of CST.
26138 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26140 PR tree-optimization/88598
26141 * tree.h (initializer_each_zero_or_onep): Declare.
26142 * tree.c (initializer_each_zero_or_onep): New function.
26143 (signed_or_unsigned_type_for): Handle float types too.
26144 (unsigned_type_for, signed_type_for): Update comments accordingly.
26145 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26146 x & { 0 or -1, 0 or -1, ... }.
26148 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26150 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26151 with x86_64-pc-linux-gnu.
26153 2019-01-07 Tom de Vries <tdevries@suse.de>
26156 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26158 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26161 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26163 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26164 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26165 TARGET_AVX512F as condition.
26168 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26169 const_not_ok_for_debug_p target hook.
26170 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26171 on UNSPEC and subexpressions thereof if all subexpressions of the
26172 UNSPEC are CONSTANT_P.
26174 PR tree-optimization/88676
26175 * tree-ssa-phiopt.c (two_value_replacement): New function.
26176 (tree_ssa_phiopt_worker): Call it.
26179 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26180 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26183 * tree-vect-generic.c: Include insn-config.h and recog.h.
26184 (expand_vector_piecewise): Add defaulted ret_type argument,
26185 if non-NULL, use that in preference to type for the result type.
26186 (expand_vector_parallel): Formatting fix.
26187 (do_vec_conversion, do_vec_narrowing_conversion,
26188 expand_vector_conversion): New functions.
26189 (expand_vector_operations_1): Call expand_vector_conversion
26190 for VEC_CONVERT ifn calls.
26191 * internal-fn.def (VEC_CONVERT): New internal function.
26192 * internal-fn.c (expand_VEC_CONVERT): New function.
26193 * fold-const-call.c (fold_const_vec_convert): New function.
26194 (fold_const_call): Use it for CFN_VEC_CONVERT.
26195 * doc/extend.texi (__builtin_convertvector): Document.
26197 2019-01-07 Tom de Vries <tdevries@suse.de>
26199 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26200 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26201 vector_red_partition, vector_red_sym): New global variables.
26202 (nvptx_option_override): Initialize vector_red_sym.
26203 (nvptx_declare_function_name): Restore red_partition register.
26204 (nvptx_file_end): Emit code to declare the vector reduction variables.
26205 (nvptx_output_red_partition): New function.
26206 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26207 large vector reductions.
26208 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26209 (nvptx_init_builtins): Add VECTOR_ADDR.
26210 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26211 Handle nvptx_expand_shared_addr.
26212 (nvptx_get_shared_red_addr): Add vector argument and handle large
26214 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26216 (nvptx_goacc_reduction_init): Likewise.
26217 (nvptx_goacc_reduction_fini): Likewise.
26218 (nvptx_goacc_reduction_teardown): Likewise.
26219 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26220 init,fini,teardown}.
26221 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26222 (nvptx_set_current_function): Init vector_red_partition.
26223 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26224 (nvptx_red_partition): New insn.
26225 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26227 2019-01-07 Tom de Vries <tdevries@suse.de>
26230 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26233 2019-01-07 Tom de Vries <tdevries@suse.de>
26235 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26236 (nvptx_option_override): Init oacc_bcast_partition.
26237 (nvptx_init_oacc_workers): New function.
26238 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26239 (nvptx_needs_shared_bcast): New function.
26240 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26241 to propagate state.
26242 (nvptx_shared_propagate): Initialize vector bcast partition and
26243 synchronization state.
26244 (nvptx_single): Generalize to enable vectors to use shared-memory
26245 to propagate state.
26246 (nvptx_process_pars): Likewise.
26247 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26248 * config/nvptx/nvptx.h (struct machine_function): Add
26249 bcast_partition and sync_bar members.
26251 2019-01-07 Tom de Vries <tdevries@suse.de>
26253 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26254 (nvptx_apply_dim_limits): New function.
26255 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26258 2019-01-07 Tom de Vries <tdevries@suse.de>
26260 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26261 as late as possible.
26263 2019-01-07 Tom de Vries <tdevries@suse.de>
26265 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26266 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26267 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26268 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26269 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26271 2019-01-07 Tom de Vries <tdevries@suse.de>
26273 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26275 2019-01-07 Tom de Vries <tdevries@suse.de>
26277 * omp-offload.c (oacc_get_min_dim): New function.
26278 * omp-offload.h (oacc_get_min_dim): Declare.
26280 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26283 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26284 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26286 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26290 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26292 * ipa-inline.c (edge_badness): Use inlined_time instead of
26293 inline_summaries->get.
26295 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26297 * opts.c (enable_fdo_optimizations): Enable
26298 version-loops-for-strides, loop-interchange, unrol-and-jam
26299 and tree-loop-distribution.
26300 * invoke.texi: Document newly enabled options.
26302 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26304 * doc/invoke.texi (max-inline-insns-small): New parameters.
26305 * ipa-inline.c (want_early_inline_function_p): simplify.
26306 (want_inline_small_function_p): Fix pasto from previous patch;
26307 use max-inline-insns-small bound.
26308 * params.def (max-inline-insns-small): New param.
26309 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26310 variables correctly.
26312 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26314 * doc/invoke.texi: Document max-inline-insns-size,
26315 uninlined-function-insns, uninlined-function-time,
26316 uninlined-thunk-insns and uninlined-thunk-time.
26317 * params.def: Add max-inline-insns-size,
26318 uninlined-function-insns, uninlined-function-time,
26319 uninlined-thunk-insns and uninlined-thunk-time.
26320 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26322 * ipa-inline.c (can_inline_edge_by_limits_p,
26323 want_inline_small_function_p): Use new parameters.
26325 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26327 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26329 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26331 PR middle-end/82564
26333 * expr.c (expand_assignment): For calls returning VLA structures
26334 if to_rtx is not a MEM, force it into a stack temporary.
26337 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26338 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26339 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26340 subexpressions of both operands.
26341 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26342 subrtxes are CONSTANT_P.
26343 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26344 2018-11-09 changes.
26346 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26348 * params.def (hot-bb-count-ws-permille): Set to 990.
26350 2019-01-04 Martin Sebor <msebor@redhat.com>
26353 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26356 2019-01-04 Martin Sebor <msebor@redhat.com>
26359 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26361 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26363 * gdbinit.in: Turn off pagination for the skip commands, restore
26364 it to previous state afterwards.
26366 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26369 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26370 of GET_MODE (opN) as modes of the libcall arguments.
26372 2019-01-04 Jan Beulich <jbeulich@suse.com>
26374 * config/i386/sse.md
26375 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26376 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26377 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26378 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26379 avx512f_vmcmp<mode>3<round_saeonly_name>,
26380 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26381 avx512f_maskcmp<mode>3,
26382 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26383 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26384 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26385 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26386 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26387 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26388 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26389 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26390 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26391 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26392 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26393 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26394 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26395 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26396 avx512cd_maskb_vec_dup<mode>,
26397 avx512cd_maskw_vec_dup<mode>,
26398 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26399 avx512dq_vmfpclass<mode>,
26400 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26403 2019-01-03 Martin Sebor <msebor@redhat.com>
26405 PR tree-optimization/88659
26406 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26408 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26410 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26411 unaligned vsx and avoid lxvd2x/stxvd2x.
26412 (gen_lvx_v4si_move): New function.
26414 2019-01-03 Tom de Vries <tdevries@suse.de>
26416 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26417 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26419 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26421 2019-01-03 Tom de Vries <tdevries@suse.de>
26423 * config/nvptx/nvptx.c (struct offload_attrs): New.
26424 (populate_offload_attrs): New function. Factor mask extraction out of
26425 nvptx_reorg. Add extraction of dimensions.
26426 (nvptx_reorg): Use populate_offload_attrs.
26428 2019-01-03 Tom de Vries <tdevries@suse.de>
26430 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26431 cases for oacc_min_dims_p and routine_p. Add asserts for
26432 oacc_default_dims_p and offload_region_p.
26434 2019-01-03 Tom de Vries <tdevries@suse.de>
26436 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26437 factored out of ...
26438 (nvptx_goacc_validate_dims): ... here.
26440 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26442 PR tree-optimization/85574
26443 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26445 (struct ssa_equip_hash_traits): Declare.
26446 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26448 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26451 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26452 change it to qualified_type.
26454 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26456 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26457 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26459 2019-01-02 Martin Sebor <msebor@redhat.com>
26460 Jeff Law <law@redhat.com>
26462 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26463 (get_range_strlen_tree): Update appropriately.
26465 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26467 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26468 rather than set_range_info.
26469 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26470 maybe_set_strlen_range. Handle potentially boundary crossing
26471 cases more conservatively.
26472 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26473 Call set_strlen_range.
26474 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26476 PR middle-end/88663
26477 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26478 need the flexp argument.
26479 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26480 from calls to get_range_strlen. Update comments. Just update
26481 VAL for an unterminated const char array and let the reset of the
26482 code handle it normally. No longer try to set *flexp. Adjust
26484 (get_range_strlen): Update for the new get_range_strlen API.
26485 (get_maxval_strlen): Similarly.
26486 (gimple_fold_builtin_strlen): Handle update meaning of return value
26487 from get_range_strlen.
26488 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26489 get_range_strlen API.
26491 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26494 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26495 false at WPA time when body was removed.
26497 2019-01-02 Martin Liska <mliska@suse.cz>
26499 PR tree-optimization/88650
26500 * predict.c (set_even_probabilities): Calculate probability
26501 remainer only when really used.
26503 2019-01-02 Richard Biener <rguenther@suse.de>
26505 PR middle-end/88651
26506 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26507 widest_ints when mangling max_stmt_execution results.
26509 2019-01-02 Richard Biener <rguenther@suse.de>
26511 PR tree-optimization/88621
26512 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26513 bitfields when canoncalizing.
26515 2019-01-02 Richard Biener <rguenther@suse.de>
26518 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26519 cost of cheap SSE instruction.
26521 2019-01-02 Richard Biener <rguenther@suse.de>
26524 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26525 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26527 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26528 set after UIDs before splitting them.
26530 2019-01-01 Martin Sebor <msebor@redhat.com>
26531 Jeff Law <law@redhat.com>
26533 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26534 length is optimistic. If it is, then arrange to compute the
26535 conservative length as well.
26537 * gimple-fold.h (get_range_strlen): Update prototype.
26538 * builtins.c (check_access): Update call to get_range_strlen to use
26539 c_strlen_data pointer. Change various variable accesses to instead
26540 pull data from the c_strlen_data structure.
26541 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26542 * calls.c (maybe_warn_nonstring_arg): Likewise.
26543 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26544 minimum length if maximum lengh is unknown.
26545 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26546 that used c_strlen, it's no longer needed. Restructure slightly.
26547 (format_string): Set unlikely range appropriately.
26548 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26550 (get_range_strlen): Accept c_strlen_data pointer for external
26551 call sites as well. Pass through to call to internal get_range_strlen.
26552 Adjust minlen, maxlen and maxbound as needed.
26553 (get_maxval_strlen): Update comments.
26554 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26555 to use c_strlen_data pointer. Change variable accesses to instead
26556 use c_strlen_data data members.
26558 * gimple-fold.c (get_range_strlen): Update prototype.
26559 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26560 local variables. Use pdata to return information to caller.
26561 Update calls to get_range_strlen. Update pdata->maxbound.
26562 (get_range_strlen -- static version): Similarly.
26563 (get_range_strlen -- extern version): Update for internal
26564 get_range_strlen API change. Convert to external data format.
26565 (get_maxval_strlen): Similarly.
26567 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26569 * coverage.c (get_coverage_counts): Use current_function_decl.
26570 * profile.c (read_thunk_profile): New function.
26571 (branch_prob): Add THUNK parameter.
26572 * tree-profile.c (tree_profiling): Handle thunks.
26573 * value-prof.c (init_node_map): Handle thunks.
26574 * value-prof.h (branch_prob): Upate prototype.
26575 (read_thunk_profile): Declare.
26577 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26579 Update copyright years.
26581 * gcc.c (process_command): Update copyright notice dates.
26582 * gcov-dump.c (print_version): Ditto.
26583 * gcov.c (print_version): Ditto.
26584 * gcov-tool.c (print_version): Ditto.
26585 * gengtype.c (create_file): Ditto.
26586 * doc/cpp.texi: Bump @copying's copyright year.
26587 * doc/cppinternals.texi: Ditto.
26588 * doc/gcc.texi: Ditto.
26589 * doc/gccint.texi: Ditto.
26590 * doc/gcov.texi: Ditto.
26591 * doc/install.texi: Ditto.
26592 * doc/invoke.texi: Ditto.
26594 Copyright (C) 2019 Free Software Foundation, Inc.
26596 Copying and distribution of this file, with or without modification,
26597 are permitted in any medium without royalty provided the copyright
26598 notice and this notice are preserved.