]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Extend subst to simplify CONST_INT inside SIGN_EXTEND.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-11 Jim Wilson <jimw@sifive.com>
2
3 PR rtl-optimization/91860
4 * combine.c (subst): If new_rtx is a constant, also check for
5 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
6
7 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8
9 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
10 INTVAL when calling store_bit_field.
11
12 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
13
14 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
15 size.
16
17 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18
19 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
20 vectorizable_live_operation.
21 (vectorizable_live_operation): Adjust parameters.
22 * tree-vect-stmts.c (vect_init_vector,
23 vect_gen_widened_results_half): Fix typo in function comment.
24 (can_vectorize_live_stmts): Adjust function comment.
25 Adjust parameters. Adjust call to vectorizable_live_operation.
26 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
27 (vect_transform_stmt): Adjust function comment. Adjust call to
28 can_vectorize_live_stmts.
29 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
30
31 2019-10-11 Richard Biener <rguenther@suse.de>
32
33 PR tree-optimization/90883
34 PR tree-optimization/91091
35 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
36 alias-sets both for recording VN table entries and continuing
37 walking after translating through copies. Handle same-sized
38 reads from SSA names by returning the plain SSA name.
39 (eliminate_dom_walker::eliminate_stmt): Properly handle
40 non-size precision stores in redundant store elimination.
41
42 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
43
44 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
45 (ggc_collect): Dump later to not interfere with release_page dump.
46 (ggc_trim): New function.
47 * ggc-none.c (ggc_trim): New.
48 * ggc.h (ggc_trim): Declare.
49
50 2019-10-11 Richard Biener <rguenther@suse.de>
51
52 PR tree-optimization/92066
53 PR tree-optimization/92046
54 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
55 Fix bogus cost model check.
56
57 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
58
59 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
60 (LANG_HOOKS_DECLS): Add it.
61 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
62 update comment for omp_is_optional_argument.
63 * omp-general.c (omp_is_allocatable_or_ptr): New.
64 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
65 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
66 Fortran's optional arguments and allocatable/pointer scalars
67 with use_device_addr.
68
69 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
70
71 PR target/77918
72 * config/s390/2827.md: Add new opcodes.
73 * config/s390/2964.md: Likewise.
74 * config/s390/3906.md: Likewise.
75 * config/s390/8561.md: Likewise.
76 * config/s390/s390-builtins.def (s390_vfchesb): Use
77 the new vec_cmpgev4sf_quiet_nocc.
78 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
79 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
80 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
81 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
82 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
83 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
84 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
85 * config/s390/s390-modes.def (CCSFPS): New mode.
86 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
87 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
88 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
89 (s390_expand_vec_compare): Use non-signaling patterns where
90 necessary.
91 (s390_reverse_condition): Support CCSFPS.
92 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
93 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
94 (asm_fcmp_op): Likewise.
95 (*smaxv2df3_vx): Use pattern for quiet comparison.
96 (*sminv2df3_vx): Likewise.
97 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
98 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
99 (vec_cmpgt<mode>_quiet_nocc): Likewise.
100 (vec_cmplt<mode>_quiet_nocc): New expander.
101 (vec_cmpge<mode>_quiet_nocc): New pattern.
102 (vec_cmple<mode>_quiet_nocc): New expander.
103 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
104 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
105 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
106 (*vec_cmpge<mode>_signaling_nocc): Likewise.
107 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
108 (vec_cmpungt<mode>): New expander.
109 (vec_cmpunge<mode>): Likewise.
110 (vec_cmpuneq<mode>): Use quiet patterns.
111 (vec_cmpltgt<mode>): Allow only on z14+.
112 (vec_cmpordered<mode>): Use quiet patterns.
113 (vec_cmpunordered<mode>): Likewise.
114 (VEC_CMP_EXPAND): Add ungt and unge.
115
116 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
117
118 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
119 parameter.
120 * lto-streamer-out.c: Include tree-dfa.h.
121 (output_cfg): Do not use cfun.
122 (lto_prepare_function_for_streaming): New.
123 (output_function): Do not push cfun; do not initialize loop optimizer.
124 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
125 * passes.c (ipa_write_summaries): Use it.
126 (ipa_write_optimization_summaries): Do not modify bodies.
127 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
128 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
129 * tree-ssa-dse.c (pass_dse::execute): Update use of
130 renumber_gimple_stmt_uids.
131 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
132
133 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
134
135 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
136 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
137
138 2019-10-10 Joseph Myers <joseph@codesourcery.com>
139
140 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
141 macros.
142 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
143 Also define DFP macros for these conditions.
144 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
145 DEC128_SUBNORMAL_MIN): Do not define.
146 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
147 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
148
149 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
150 Sandra Loosemore <sandra@codesourcery.com>
151
152 PR middle-end/26241
153 * doc/lto.texi (IPA): Reference to the IPA passes.
154 * doc/passes.texi (Pass manager): Add node IPA passes and
155 description for each IPA pass.
156
157 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
158
159 * ipa-reference.c: Do not include splay-tree.h
160 (reference_vars_to_consider): Turn to hash map.
161 (get_static_name, ipa_init, analyze_function, propagate,
162 stream_out_bitmap, ipa_reference_write_optimization_summary,
163 ipa_reference_write_optimization_summary): Update.
164
165 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
166
167 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
168
169 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
170
171 * config/darwin.c: Lookup Objective C metadata and force indirection
172 for IVAR refs.
173
174 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
175
176 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
177 addresses.
178 (mem_operand_gpr): Add check for prefixed addresses.
179 (mem_operand_ds_form): Add check for prefixed addresses.
180 (rs6000_legitimate_offset_address_p): If we support prefixed
181 addresses, check for a 34-bit offset instead of 16-bit.
182 (rs6000_legitimate_address_p): Add check for prefixed addresses.
183 Do not allow load/store with update if the address is prefixed.
184 (rs6000_mode_dependent_address): If we support prefixed
185 addresses, check for a 34-bit offset instead of 16-bit.
186
187 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
188
189 PR target/77918
190 * config/s390/vector.md (vcond_comparison_operator): New
191 predicate.
192 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
193
194 2019-10-10 David Malcolm <dmalcolm@redhat.com>
195
196 PR 87488
197 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
198 -D.
199 * configure.ac (--with-documentation-root-url): New option.
200 * configure: Regenerate.
201 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
202 option URL, add it as a new string field of the diagnostic option.
203 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
204 (print_option_information): If get_option_url is non-NULL, call
205 it, and if the result is non-NULL, potentially emit an escape
206 sequence to markup the option text with the resulting URL.
207 * diagnostic.h (diagnostic_context::get_option_url): New callback.
208 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
209 example of JSON output.
210 * opts-diagnostic.h (get_option_url): New decl.
211 * opts.c (get_option_url): New function.
212 * toplev.c (general_init): Initialize the get_option_url callback.
213
214 2019-10-10 David Malcolm <dmalcolm@redhat.com>
215
216 PR 87488
217 * common.opt (fdiagnostics-urls=): New option.
218 (diagnostic-url.h): Add SourceInclude.
219 (diagnostic_url_rule): New enum.
220 * diagnostic-color.c: Include "diagnostic-url.h".
221 (diagnostic_urls_enabled_p): New function.
222 * diagnostic-url.h: New file.
223 * diagnostic.c: Include "diagnostic-url.h".
224 (diagnostic_urls_init): New function.
225 * diagnostic.h (diagnostic_urls_init): New decl.
226 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
227 -fdiagnostics-urls to the list.
228 (-fdiagnostics-urls): New option.
229 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
230 (driver::global_initializations): Call diagnostic_urls_init.
231 * opts-global.c (init_options_once): Likewise.
232 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
233 * pretty-print.c (pretty_printer::pretty_printer): Initialize
234 show_urls.
235 (pp_begin_url): New function.
236 (pp_end_url): New function.
237 (selftest::test_urls): New selftest.
238 (selftest::pretty_print_c_tests): Call it.
239 * pretty-print.h (pretty_printer::show_urls): New field.
240 (pp_begin_url): New decl.
241 (pp_end_url): New decl.
242
243 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
244
245 PR target/92022
246 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
247
248 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
249
250 PR target/88630
251 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
252 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
253 also for TARGET_FPU_SH4_300.
254 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
255 TARGET_SH4_300.
256 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
257 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
258 (*negsf2_i): Split into ...
259 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
260 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
261 (**abssf2_i): Split into ...
262 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
263 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
264 (*negdf2_i): Split into ...
265 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
266 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
267 (**abssf2_i): Split into ...
268 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
269
270 2019-10-10 Richard Biener <rguenther@suse.de>
271
272 PR middle-end/92046
273 * opts.c (finish_options): Do not influence global --params
274 from options that are adjustable per function.
275 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
276 Apply --param adjustment based on active cost-model.
277 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
278 further store-sinking when vectorization or if-conversion
279 are not enabled.
280
281 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
282
283 PR middle-end/92037
284 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
285 rather than ggc_alloc_cleared to alloc symbol table.
286 * toplev.c (general_init): Likewise.
287 * cgraph.h (symbol_table): Explicitly construct every field.
288
289 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
290
291 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
292 (PF_Z15): ... this.
293 * config.gcc: Add z15 as option for --with-arch and --with-tune
294 configure switches.
295 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
296 error reporting for unsupported builtins.
297 * config/s390/s390-opts.h (enum processor_type): Rename
298 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
299 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
300 * config/s390/driver-native.c (s390_host_detect_local_cpu):
301 Likewise.
302 * config/s390/s390-builtins.def: Likewise.
303 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
304 (s390_expand_builtin): Add missing check for unsupported builtins.
305 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
306 (s390_rtx_costs): Likewise.
307 (s390_get_sched_attrmask): Rename arch13 to z15.
308 (s390_get_unit_mask): Likewise.
309 (s390_is_fpd): Likewise.
310 (s390_is_fxd): Likewise.
311 * config/s390/s390.h (enum processor_flags): Likewise.
312 * config/s390/s390.md: Likewise.
313 * config/s390/vector.md: Likewise.
314 * config/s390/vx-builtins.md: Likewise.
315 * config/s390/s390.opt: Add z15 to processor_type value.
316
317 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
318
319 PR target/91035
320 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
321 prototype.
322 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
323 ("split_stack_data", "split_stack_call")
324 ("split_stack_call_<mode>", "split_stack_cond_call")
325 ("split_stack_cond_call_<mode>"): Remove.
326 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
327 insn definition.
328 * config/s390/s390.c (s390_output_split_stack_data): New function.
329 (s390_expand_split_stack_prologue): Use the merged expander.
330
331 2019-10-09 Martin Sebor <msebor@redhat.com>
332
333 PR tree-optimization/90879
334 * builtins.c (check_access): Avoid using maxbound when null.
335 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
336 * doc/invoke.texi (-Wstring-compare): Document new warning option.
337 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
338 conditional.
339 (get_range_strlen): Overwrite initial maxbound when non-null.
340 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
341 changes.
342 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
343 (used_only_for_zero_equality): New function.
344 (handle_builtin_memcmp): Call it.
345 (determine_min_objsize): Return an integer instead of tree.
346 (get_len_or_size, strxcmp_eqz_result): New functions.
347 (maybe_warn_pointless_strcmp): New function.
348 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
349 between a longer string and a smaller array.
350 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
351
352 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
353
354 * config/darwin.c (darwin_override_options): Make the check for
355 Objective-C ABI version more specific for 64bit code.
356
357 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
358
359 * config/darwin.c (machopic_indirect_data_reference): Set flag to
360 indicate that the new symbol is an indirection.
361 (machopic_indirect_call_target): Likewise.
362 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
363 (MACHO_SYMBOL_INDIRECTION_P): New.
364 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
365
366 2019-10-08 Jason Merrill <jason@redhat.com>
367
368 * doc/invoke.texi: Document -fconcepts-ts.
369
370 2019-10-09 Richard Biener <rguenther@suse.de>
371
372 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
373 allow stmts other than GIMPLE_ASSIGN in nested cycles.
374
375 2019-10-08 Richard Biener <rguenther@suse.de>
376
377 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
378 (_stmt_vec_info::force_single_cycle): Likewise.
379 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
380 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
381 * tree-vect-loop.c (vectorizable_reduction): Set
382 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
383 (vect_transform_reduction): Use them to remove redundant code.
384 (vect_transform_cycle_phi): Likewise.
385
386 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
387
388 PR tree-optimization/90836
389 * gcc/match.pd (popcount): New pattern.
390
391 2019-10-08 Martin Sebor <msebor@redhat.com>
392
393 PR middle-end/92026
394 PR middle-end/92014
395 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
396 again once nbytes has been set. Set the access size when not yet set.
397
398 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
399
400 * config/darwin.c (machopic_select_section): Remove dead code for
401 old Objective-C section selection method, replace with unreachable.
402
403 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
404
405 * config/darwin.c (machopic_indirect_data_reference): Check for
406 required indirections before making direct access to defined
407 values.
408 (machopic_output_indirection): Place the indirected pointes for
409 required indirections into the non-lazy symbol pointers section.
410 (darwin_encode_section_info):
411 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
412 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
413
414 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
415
416 PR target/91994
417 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
418 instead of ALL_SSE_REG to check if function call preserves some
419 256-bit SSE registers.
420
421 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
422
423 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
424 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
425 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
426
427 2019-10-08 Richard Biener <rguenther@suse.de>
428
429 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
430 (_stmt_vec_info::is_reduc_info): Add.
431 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
432 (vectorizable_condition): Remove.
433 (vectorizable_shift): Likewise.
434 (vectorizable_reduction): Adjust.
435 (info_for_reduction): New.
436 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
437 (vect_analyze_scalar_cycles_1): ... here.
438 (vect_analyze_loop_operations): Adjust.
439 (needs_fold_left_reduction_p): Simplify for single caller.
440 (vect_is_simple_reduction): Likewise. Remove stmt restriction
441 for nested cycles not part of double reductions.
442 (vect_model_reduction_cost): Pass in the reduction type.
443 (info_for_reduction): New function.
444 (vect_create_epilog_for_reduction): Use it, access reduction
445 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
446 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
447 (vectorize_fold_left_reduction): Remove pointless assert.
448 (vectorizable_reduction): Analyze the full reduction when
449 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
450 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
451 stmt code-generation to vectorizable_* in most cases. Verify
452 code-generation only for cases handled by
453 vect_transform_reductuon.
454 (vect_transform_reduction): Use info_for_reduction to get at
455 reduction meta. Simplify.
456 (vect_transform_cycle_phi): Likewise.
457 (vectorizable_live_operation): Likewise.
458 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
459 at the PHI node for STMT_VINFO_REDUC_TYPE.
460 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
461 longer necessary code.
462 * tree-vect-stmts.c (vectorizable_shift): Make static again.
463 (vectorizable_condition): Likewise. Get at reduction related
464 info via info_for_reduction.
465 (vect_analyze_stmt): Adjust.
466 (vect_transform_stmt): Likewise.
467 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
468 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
469
470 2019-10-08 Joseph Myers <joseph@codesourcery.com>
471
472 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
473 -fno-fp-int-builtin-inexact default for C2X.
474
475 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
476 Richard Biener <rguenther@suse.de>
477
478 PR tree-optimization/91532
479 * tree-if-conv.c: Include tree-ssa-dse.h.
480 (ifcvt_local_dce): Change param from bb to loop,
481 and call dse_classify_store.
482 (tree_if_conversion): Pass loop instead of loop->header as arg
483 to ifcvt_local_dce.
484 * tree-ssa-dse.c: Include tree-ssa-dse.h.
485 (delete_dead_or_redundant_assignment): Remove static qualifier from
486 declaration, and add prototype in tree-ssa-dse.h.
487 (dse_store_status): Move to tree-ssa-dse.h.
488 (dse_classify_store): Remove static qualifier and add new tree param
489 stop_at_vuse, and add prototype in tree-ssa-dse.h.
490 * tree-ssa-dse.h: New header.
491
492 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
493
494 * config/darwin.c (machopic_output_indirection): Don't put
495 hidden symbol indirections into the .data section, use the
496 non-lazy symbol pointers section as normal.
497 (darwin_encode_section_info): Record if a symbol is hidden.
498 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
499 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
500
501 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
502
503 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
504 predicates instead of accessing bits directly.
505 (machopic_indirect_call_target): Likewise.
506 (machopic_output_indirection): Likewise.
507 (darwin_encode_section_info): Improve description. Use renamed
508 symbol flags. Use predicate macros for variables and functions.
509 * config/darwin.h:
510 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
511 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
512 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
513 (MACHO_SYMBOL_VARIABLE_P): New.
514 (MACHO_SYMBOL_DEFINED_P):New.
515 (MACHO_SYMBOL_STATIC_P): New.
516 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
517 (SYMBOL_FLAG_SUBT_DEP): New.
518 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
519
520 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
521
522 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
523 (msp430_expand_epilogue): Likewise.
524 * config/msp430/predicates.md: Likewise.
525 * config/msp430/msp430.md: Likewise.
526 Replace blocks of 8 spaces with tabs.
527
528 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
529
530 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
531 * config/msp430/msp430.c (msp430_split_addsi): New.
532 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
533 a block of C code for splitting addsi.
534
535 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
536
537 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
538 ix86_expand_rounddf_32): Reorder functions.
539 * config/i386/i386-protos.h: Update.
540
541 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
542
543 * config.in: Regenerate.
544 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
545 Add new "Yx" constraint.
546 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
547 function.
548 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
549 prototype.
550 * config/msp430/msp430.c (msp430_option_override): Allow the lower
551 code/data region to be selected in the small memory model.
552 (msp430_section_attr): Don't warn if the "section" and "lower"
553 attributes are used together.
554 (msp430_handle_generic_attribute): Likewise.
555 (msp430_var_in_low_mem): New function.
556 (TARGET_ENCODE_SECTION_INFO): Define.
557 (msp430_encode_section_info): New function.
558 (gen_prefix): Return early in the small memory model.
559 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
560 ".lower" prefix if -m{code,data}-region=lower have been passed.
561 (msp430_output_aligned_decl_common): Emit common symbols when
562 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
563 set.
564 (TARGET_ASM_FILE_END): Define.
565 (msp430_file_end): New function.
566 (msp430_do_not_relax_short_jumps): Allow relaxation when
567 function will be in the lower region.
568 (msp430_op_not_in_high_mem): New function.
569 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
570 the 'X' operand selector.
571 Clarify comment for 'x' operand selector.
572 * config/msp430/msp430.h (LINK_SPEC): Propagate
573 -m{code,data}-region to the linker via spec function
574 msp430_propagate_region_opt.
575 (msp430_propagate_region_opt): New prototype.
576 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
577 (SYMBOL_FLAG_LOW_MEM): Define.
578 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
579 selector.
580 (zero_extendqihi2): Fix operand number used by "%X" selector.
581 (zero_extendqisi2): Likewise.
582 (zero_extendhisi2): Likewise.
583 (movqi): Use "Yx" constraint in place of "%X" operand selector.
584 (movhi): Likewise.
585 (addqi3): Likewise.
586 (addhi3): Likewise.
587 (addsi3): Likewise.
588 (addhi3_cy): Likewise.
589 (addchi4_cy): Likewise.
590 (subqi3): Likewise.
591 (subhi3): Likewise.
592 (subsi3): Likewise.
593 (bic<mode>3): Likewise.
594 (and<mode>3): Likewise.
595 (ior<mode>3): Likewise.
596 (xor<mode>3): Likewise.
597 (slli_1): Add missing "%X" operand selector.
598 (slll_1): Likewise.
599 (slll_2): Likewise.
600 (srai_1): Likewise.
601 (sral_1): Likewise.
602 (sral_2): Likewise.
603 (srli_1): Likewise.
604 (srll_1): Likewise.
605 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
606 selector.
607 (cbranchhi4_real): Likewise.
608 (cbranchqi4_reversed): Likewise.
609 (cbranchhi4_reversed): Likewise.
610 (*bitbranch<mode>4): Likewise.
611 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
612 * config/msp430/msp430.opt (mcode-region=): Set default to
613 MSP430_REGION_LOWER. Improve docstring.
614 (mdata-region=): Likewise.
615 (muse-lower-region-prefix): New option.
616 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
617 mdata-region=none multilib.
618 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
619 mdata-region=none multilib.
620 MULTILIB_EXCEPTIONS: Remove.
621 MULTILIB_REQUIRED: Define.
622 * configure: Regenerate.
623 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
624 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
625 * doc/extend.texi: Clarify comment for {upper,lower,either}
626 function attributes.
627 Add separate description for "lower" variable attribute.
628
629 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
630
631 PR target/77918
632 * optabs-tree.c (vcond_icode_p): New function.
633 (vcond_eq_icode_p): Likewise.
634 (expand_vec_cond_expr_p): Use vcond_icode_p and
635 vcond_eq_icode_p.
636 * optabs.c (can_vcond_compare_p): New function.
637 * optabs.h (can_vcond_compare_p): Likewise.
638
639 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
640
641 PR target/77918
642 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
643 caller passes a non-trapping condition.
644 (is_gimple_condexpr): Allow trapping conditions.
645 (is_gimple_condexpr_1): New helper function.
646 (is_gimple_condexpr_for_cond): New function, acts like old
647 is_gimple_condexpr.
648 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
649 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
650 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
651 * gimplify.c (gimplify_cond_expr): Use
652 is_gimple_condexpr_for_cond.
653 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
654 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
655 VEC_COND_EXPR.
656 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
657 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
658 is_gimple_condexpr_for_cond, remove pointless tmp check
659 (forward_propagate_into_cond): Remove pointless tmp check.
660
661 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
662
663 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
664 match that of other gsi_next_* functions. Adjust the comment.
665 (gsi_start_nonvirtual_phis): New function.
666 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
667 gsi_next_nonvirtual_phi accordingly. (No functional change.)
668
669 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
670
671 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
672 setjmp situation here. Fix a verb's ending: "the exact variables or
673 elements for which there are warnings depends" -> "... depend".
674
675 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
676
677 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
678
679 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
680
681 * ipa-prop.c (ipa_vr::nonzero_p): New.
682 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
683 non-zero range.
684 * ipa-prop.h (class ipa_vr): Add nonzero_p.
685 * tree-vrp.c (range_has_numeric_bounds_p): New.
686 (range_int_cst_p): Use range_has_numeric_bounds_p.
687 (get_range_op_handler): New.
688 (supported_types_p): New.
689 (defined_ranges_p): New.
690 (drop_undefines_to_varying): New.
691 (range_fold_binary_symbolics_p): New.
692 (range_fold_unary_symbolics_p): New.
693 (range_fold_unary_expr): Extract out into above functions.
694 (range_fold_binary_expr): Same.
695 (value_range_base::normalize_addresses): New.
696 (value_range_base::normalize_symbolics): Normalize addresses.
697 * tree-vrp.h (class value_range_base): Add normalize_addresses.
698
699 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
700
701 * tree-vrp.c (value_range_base::singleton_p): Use
702 value_range_base::num_pairs instead of vrp_val_is* to check
703 if a range has one sub-range.
704
705 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
706
707 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
708 DEF is not a true earlyclobber but is tied to a specific input
709 operand, and so is effectively earlyclobber wrt inputs that have
710 different values.
711 (make_early_clobber_and_input_conflicts): Pass this case to the above.
712
713 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
714
715 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
716 (pod_mode): Mark operators likewise.
717 (scalar_int_mode): Mark non-default constructors and
718 operators with CONSTEXPR.
719 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
720 (fixed_size_mode): Likewise.
721
722 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
723
724 PR target/91994
725 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
726 and wrap the unspec_volatile in a parallel.
727 (*avx_vzeroupper): New define_insn. Use a match_parallel around
728 the unspec_volatile.
729 * config/i386/predicates.md (vzeroupper_pattern): Expect the
730 unspec_volatile to be wrapped in a parallel.
731 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
732 (ix86_add_reg_usage_to_vzerouppers): New functions.
733 (rest_of_handle_insert_vzeroupper): Use them to add register
734 usage information to the vzeroupper instructions.
735
736 2019-10-07 Richard Biener <rguenther@suse.de>
737
738 PR tree-optimization/91975
739 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
740 handle invariants.
741
742 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
743
744 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
745 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
746
747 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
748
749 * config/darwin.c (darwin_override_options): Adjust objective-c
750 ABI version error messages to avoid punctuation and contracted
751 negations.
752
753 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
754
755 * ipa-inline.c: Fix type; compute size rather than self_size
756 for size of caller function.
757
758 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
759
760 PR target/59888
761 * config/darwin.c (darwin_rodata_section): Add relocation flag,
762 choose const_data section for constants with relocations.
763 (machopic_select_section): Pass relocation flag to
764 darwin_rodata_section ().
765
766 2019-10-05 Jakub Jelinek <jakub@redhat.com>
767
768 PR tree-optimization/91734
769 * generic-match-head.c: Include fold-const-call.h.
770 * match.pd (sqrt(x) cmp c): Check the boundary value and
771 in case inexact computation of c*c affects comparison of the boundary,
772 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
773 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
774 for -frounding-math. For c2, try the next smaller or larger floating
775 point constant depending on comparison code and if it has the same
776 sqrt as c2, use it instead of c2.
777
778 2019-10-04 Martin Sebor <msebor@redhat.com>
779
780 PR middle-end/91977
781 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
782 MEM_REF right operand. Avoid failing for MEM_REF assignments from
783 uninitialized objects.
784
785 2019-10-04 Martin Sebor <msebor@redhat.com>
786
787 * builtins.c (compute_objsize): Add an argument.
788 * tree-object-size.c (addr_object_size): Same.
789 (compute_builtin_object_size): Same.
790 * tree-object-size.h (compute_builtin_object): Same.
791
792 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
793
794 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
795
796 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
797
798 * match.pd (sinh (x) / cosh (x)): New simplification rule.
799
800 2019-10-04 Martin Jambor <mjambor@suse.cz>
801
802 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
803 fntype when switching to calling memcpy instead of memset.
804
805 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
806
807 * hash-table.h (hash_table::empty_slow): Don't assign
808 size_t values to int variables.
809
810 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
811
812 * expr.c (convert_mode_scalar): Remove shadowing local var.
813 (emit_block_move): Rename local vars.
814 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
815 (emit_push_insn): Rename local vars.
816 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
817 shadowing local vars.
818 (store_constructor): Remove shadowing local vars. Rename local var.
819 (store_field, expand_cond_expr_using_cmove,
820 expand_expr_real_2): Remove shadowing local vars.
821 (expand_expr_real_1,
822 do_store_flag): Remove shadowing local vars. Rename local vars.
823
824 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
825
826 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
827
828 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
829
830 * genmatch.c (commutate): Rename local var.
831 (lower_cond): Reuse local var.
832 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
833 dt_operand::gen, dt_operand::gen_gimple_expr,
834 dt_simplify::gen): Add a param. Rename generated vars.
835 (decision_tree::insert_operand,
836 (capture_info::walk_match, capture_info::walk_result,
837 capture_info::walk_c_expr): Rename local vars.
838 (expr::gen_transform): Rename generated vars.
839 Use snprintf. Rename local vars.
840 (capture::gen_transform, dt_operand::get_name,
841 dt_operand::gen_opname): Rename generated vars.
842 (write_predicate): Adjust call to gen_kids.
843 (parser::get_internal_capture_id): Rename generated vars.
844 (parser::parse_expr): Rename local vars.
845 (parser::parse_if): Remove local var.
846 (parser::parse_pattern, add_operator): Rename local vars.
847
848 2019-10-04 Joseph Myers <joseph@codesourcery.com>
849
850 * builtins.def (DEF_C2X_BUILTIN): New macro.
851 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
852 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
853 (strndup): Use DEF_C2X_BUILTIN.
854 * coretypes.h (enum function_class): Add function_c2x_misc.
855
856 2019-10-04 Maya Rashish <coypu@sdf.org>
857
858 * ira-color.c (update_costs_from_allocno): Call
859 ira_init_register_move_cost_if_necessary.
860
861 2019-10-04 Jeff Law <law@redhat.com>
862
863 * config/h8300/h8300.md (cpymemsi): Disable.
864 (movmd, movmd_internal_<mode>, movstr, movsd):
865 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
866 (movmd splitter, movsd splitter): Likewise.
867
868 * range-op.cc (range_tests): Avoid two tests when ints and
869 shorts are the same size.
870
871 2019-10-04 Richard Biener <rguenther@suse.de>
872
873 PR lto/91968
874 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
875 BLOCK_VARS.
876
877 2019-10-04 Richard Biener <rguenther@suse.de>
878
879 PR tree-optimization/91982
880 * tree-vect-loop.c (vectorizable_live_operation): Also guard
881 against EXTRACT_LAST_REDUCTION.
882 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
883
884 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
885
886 * range-op.o (value_range_from_overflowed_bounds): Rename from
887 adjust_overflow_bound.
888 (value_range_with_overflow): Rename from
889 create_range_with_overflow.
890 (create_possibly_reversed_range): Adjusted for above renames.
891 (operator_*::wi_fold): Same.
892 (cross_product_operator::wi_cross_productor): Same.
893
894 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
895
896 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
897 -Wshadow=compatible-local): Fix description.
898 Add an example where -Wshadow=compatible-local does not
899 warn.
900
901 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
902
903 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
904
905 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
906 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
907
908 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
909
910 * expr.c (emit_block_move_hints): Slightly cleaner fix to
911 can_move_by_pieces issue.
912
913 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
914
915 PR target/87243
916 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
917 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
918 is available and the user has not set one on the command line.
919
920 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
921
922 PR target/91769
923 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
924 instead of REGNO equality check on addr.reg.
925
926 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
927
928 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
929 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
930 * doc/invoke.texi (inline-heuristics-hint-percent,
931 inline-heuristics-hint-percent-O2): Document.
932 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
933 hint attribute.
934 (can_inline_edge_by_limits_p): Use it.
935
936 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
937
938 * config/arm/arm.c (arm_print_value): Use real_to_decimal
939 to print CONST_DOUBLEs.
940
941 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
942
943 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
944 * ipa-prop.c (ipcp_free_transformation_sum): New function.
945 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
946
947 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
948
949 * Makefile.in (OBJS): Add range.o and range-op.o.
950 Remove wide-int-range.o.
951 * function-tests.c (test_ranges): New.
952 (function_tests_c_tests): Call test_ranges.
953 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
954 range_fold_unary_expr instead of extract_range_from_unary_expr.
955 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
956 * range-op.cc: New file.
957 * range-op.h: New file.
958 * range.cc: New file.
959 * range.h: New file.
960 * selftest.h (range_tests): New prototype.
961 * ssa.h: Include range.h.
962 * tree-vrp.c (value_range_base::value_range_base): New
963 constructors.
964 (value_range_base::singleton_p): Do not call
965 ranges_from_anti_range until sure we will need to.
966 (value_range_base::type): Rename gcc_assert to
967 gcc_checking_assert.
968 (vrp_val_is_max): New argument.
969 (vrp_val_is_min): Same.
970 (wide_int_range_set_zero_nonzero_bits): Move from
971 wide-int-range.cc.
972 (extract_range_into_wide_ints): Remove.
973 (extract_range_from_multiplicative_op): Remove.
974 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
975 from extract_range_from_binary_expr.
976 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
977 from extract_range_from_binary_expr.
978 (extract_range_from_binary_expr): Remove.
979 (normalize_for_range_ops): New.
980 (range_fold_binary_expr): New.
981 (range_fold_unary_expr): New.
982 (value_range_base::num_pairs): New.
983 (value_range_base::lower_bound): New.
984 (value_range_base::upper_bound): New.
985 (value_range_base::upper_bound): New.
986 (value_range_base::contains_p): New.
987 (value_range_base::invert): New.
988 (value_range_base::union_): New.
989 (value_range_base::intersect): New.
990 (range_compatible_p): New.
991 (value_range_base::operator==): New.
992 (determine_value_range_1): Call range_fold_*expr instead of
993 extract_range_from_*expr.
994 * tree-vrp.h (class value_range_base): Add new constructors.
995 Add methods for union_, intersect, operator==, contains_p,
996 num_pairs, lower_bound, upper_bound, invert.
997 (vrp_val_is_min): Add handle_pointers argument.
998 (vrp_val_is_max): Same.
999 (extract_range_from_unary_expr): Remove.
1000 (extract_range_from_binary_expr): Remove.
1001 (range_fold_unary_expr): New.
1002 (range_fold_binary_expr): New.
1003 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1004 range_fold_binary_expr instead of extract_range_from_binary_expr.
1005 (vr_values::extract_range_basic): Same.
1006 (vr_values::extract_range_from_unary_expr): Call
1007 range_fold_unary_expr instead of extract_range_from_unary_expr.
1008 * wide-int-range.cc: Remove.
1009 * wide-int-range.h: Remove.
1010
1011 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1012
1013 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1014 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1015 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1016 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1017 macro.
1018
1019 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1020
1021 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1022 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1023 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1024 * glimits.h: Likewise.
1025
1026 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1027
1028 PR rtl-optimization/91976
1029 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1030 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1031 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1032
1033 2019-10-02 Martin Sebor <msebor@redhat.com>
1034
1035 PR tree-optimization/80936
1036 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1037
1038 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1039
1040 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1041 instead of reg_class_contents[ALL_REGS].
1042
1043 2019-09-30 Jason Merrill <jason@redhat.com>
1044
1045 Add some hash_map_safe_* functions like vec_safe_*.
1046 * hash-map.h (default_hash_map_size): New variable.
1047 (create_ggc): Use it as default argument.
1048 (hash_map_maybe_create, hash_map_safe_get)
1049 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1050
1051 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1052
1053 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1054 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1055 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1056 (can_inline_edge_by_limits_p): Use it.
1057 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1058 (want_inline_small_function_p): Use O2 bounds.
1059 (edge_badness): LIkewise.
1060 * opts.c (default_options): Add OPT_finline_functions.
1061 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1062 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1063 New parameters.
1064 * doc/invoke.texi (-finline-functions): Update documentation.
1065 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1066 inline-min-speedup-O2): Document.
1067 (early-inlining-insns-O2): Simplify docs.
1068
1069 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1070
1071 PR rtl-optimization/87047
1072 * ifcvt.c (average_cost): New static function. Use it...
1073 (noce_process_if_block): ... here.
1074
1075 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1076
1077 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1078 * config/rs6000/rs6000-string.c (expand_block_move): Add
1079 might_overlap parm.
1080 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1081 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1082
1083 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1084
1085 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1086 (expand_builtin_memcpy): Use might_overlap parm.
1087 (expand_builtin_mempcpy_args): Use might_overlap parm.
1088 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1089 (expand_builtin_memory_copy_args): Add might_overlap parm.
1090 * expr.c (emit_block_move_via_cpymem): Rename to
1091 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1092 or movmem optab as appropriate.
1093 (emit_block_move_hints): Add might_overlap parm, do the right
1094 thing for might_overlap==true.
1095 * expr.h (emit_block_move_hints): Update prototype.
1096
1097 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1098
1099 * tree-eh.h (unsplit_eh_edges): Declare.
1100 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1101 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1102 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1103 (struct store_immediate_info): Add lp_nr field.
1104 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1105 initialize lp_nr with it.
1106 (struct merged_store_group): Add lp_nr and only_constants fields.
1107 (merged_store_group::merged_store_group): Initialize them.
1108 (merged_store_group::can_be_merged_into): Deal with them.
1109 (pass_store_merging): Rename terminate_and_release_chain into
1110 terminate_and_process_chain.
1111 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1112 renaming and remove useless assertions.
1113 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1114 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1115 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1116 instead of always recomputing it and compare lp_nr.
1117 (imm_store_chain_info::output_merged_store): If the group is in an
1118 active EH region, register new stores if they can throw. Moreover,
1119 if the insertion has created new basic blocks, adjust the PHI nodes
1120 of the post landing pad.
1121 (imm_store_chain_info::output_merged_stores): If the original stores
1122 are in an active EH region, deregister them.
1123 (lhs_valid_for_store_merging_p): Prettify.
1124 (adjust_bit_pos): New function extracted from...
1125 (mem_valid_for_store_merging): ...here. Use it for the base address
1126 and also for the offset if it is the addition of a constant.
1127 (lp_nr_for_store): New function.
1128 (pass_store_merging::process_store): Change return type to bool.
1129 Call lp_nr_for_store to initialize the store info. Propagate the
1130 return status of various called functions to the return value.
1131 (store_valid_for_store_merging_p): New predicate.
1132 (enum basic_block_status): New enumeration.
1133 (get_status_for_store_merging): New function.
1134 (pass_store_merging::execute): If the function can throw and catch
1135 non-call exceptions, unsplit the EH edges on entry and clean up the
1136 CFG on exit if something changed. Call get_status_for_store_merging
1137 for every basic block and keep the chains open across basic blocks
1138 when possible. Terminate and process open chains at the end, if any.
1139
1140 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1141
1142 * reginfo.c (globalize_reg): Fix shadowed variable in
1143 function_abis walk.
1144
1145 2019-10-02 Martin Jambor <mjambor@suse.cz>
1146
1147 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1148 do not compute some stuff when set.
1149 (cgraph_node::create_edge): Likewise.
1150 (cgraph_node::create_indirect_edge): Renamed last parameter to
1151 coning_p and flipped its meaning, don't even calculate
1152 inline_failed when set.
1153 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1154 (symbol_table::::create_edge): Likewise.
1155 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1156 the default value.
1157 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1158 call graph edge creating functions.
1159
1160 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1161
1162 PR c++/91222
1163 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1164 namespace types.
1165
1166 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1167
1168 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1169
1170 2019-10-02 Richard Biener <rguenther@suse.de>
1171
1172 * tree-vectorizer.h (vect_transform_reduction): Declare.
1173 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1174 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1175 stmt transform to ...
1176 (vect_transform_reduction): ... this.
1177
1178 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1179
1180 * omp-low.c (lower_omp_target): Dereference optional argument
1181 to work with the right pointer.
1182
1183 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1184
1185 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1186 false.
1187 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1188 * langhooks.h (omp_is_optional_argument): New hook.
1189 * omp-general.c (omp_is_optional_argument): New.
1190 * omp-general.h (omp_is_optional_argument): New declaration.
1191 * omp-low.c (lower_omp_target): Create temporary for received value
1192 and take the address for new_var if the original variable was a
1193 DECL_BY_REFERENCE. Use size of referenced object when a
1194 pass-by-reference optional argument used as argument to firstprivate.
1195
1196 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1197
1198 PR tree-optimization/91940
1199 * tree-vect-patterns.c: Include tree-vector-builder.h and
1200 vec-perm-indices.h.
1201 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1202 unpromoting the argument back to uint16_t, or by converting into a
1203 rotate, or into shifts plus ior.
1204
1205 2019-10-02 Richard Biener <rguenther@suse.de>
1206
1207 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1208 New.
1209 (vect_transform_cycle_phi): Declare.
1210 * tree-vect-stmts.c (vect_transform_stmt): Call
1211 vect_transform_cycle_phi.
1212 * tree-vect-loop.c (vectorizable_reduction): Split out
1213 PHI transformation stage to ...
1214 (vect_transform_cycle_phi): ... here.
1215
1216 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1217
1218 PR middle-end/91957
1219 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1220 eliminable registers.
1221 (make_hard_regno_live): Likewise, and don't make them live.
1222
1223 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1224
1225 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1226 Call pp_emit_prefix.
1227 (layout::print_source_line): Likewise.
1228 (layout::start_annotation_line): Likewise.
1229 (diagnostic_show_locus): Remove call to temporarily clear the
1230 prefix.
1231 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1232 interaction of pp_set_prefix with rulers and fix-it hints.
1233 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1234 prefix when calling diagnostic_show_locus, rather than destroying
1235 it afterwards.
1236 (print_parseable_fixits): Temporarily clear prefix.
1237 * pretty-print.c (pp_format): Save and restore line_length, rather
1238 than assuming it is zero.
1239 (pp_output_formatted_text): Remove assertion that line_length is
1240 zero.
1241
1242 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1243
1244 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1245 Rename to ...
1246 (nonoverlapping_refs_since_match_p): ... this; handle also
1247 ARRAY_REFs.
1248 (alias_stats): Update stats.
1249 (dump_alias_stats): Likewise.
1250 (cheap_array_ref_low_bound): New function.
1251 (aliasing_matching_component_refs_p): Add partial_overlap
1252 argument;
1253 pass it to nonoverlapping_refs_since_match_p.
1254 (aliasing_component_refs_walk): Update call of
1255 aliasing_matching_component_refs_p
1256 (nonoverlapping_array_refs_p): New function.
1257 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1258 indirect_refs_may_alias_p): Update calls of
1259 nonoverlapping_refs_since_match_p.
1260
1261 2019-10-01 Maya Rashish <coypu@sdf.org>
1262
1263 PR target/85401
1264 * ira-color.c (allocno_copy_cost_saving): Call
1265 ira_init_register_move_cost_if_necessary.
1266
1267 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1268
1269 * Makefile.in (gnat_install_lib): New variable.
1270 * configure.ac: Substitute it.
1271 * configure: Regenerate.
1272
1273 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1274
1275 PR lto/91222
1276 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1277 is matched with non-C++ type
1278
1279 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1280
1281 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1282 after local CSE.
1283
1284 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1285
1286 * doc/invoke.texi (early-inlining-insns-O2): Document.
1287 (early-inlining-insns): Update.
1288 * params.def (early-inlining-insns-O2): New bound.
1289 (early-inlining-insns): Update docs.
1290 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1291
1292 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1293
1294 PR target/88562
1295 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1296 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1297 a memory access insn.
1298
1299 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1300
1301 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1302 vpmsumd.
1303
1304 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1305
1306 PR target/77918
1307 * config/s390/s390.c (s390_expand_vec_compare): Use
1308 gen_vec_cmpordered and gen_vec_cmpunordered.
1309 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1310 vec_unordered): Delete.
1311 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1312 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1313 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1314 (vec_cmp<code>): Generic dispatcher.
1315
1316 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1317
1318 PR target/77918
1319 * config/s390/vector.md (V_HW): Add V1TI in order to make
1320 vcond$a$b generate vcondv1tiv1tf.
1321
1322 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1323
1324 PR rtl-optimization/91948
1325 * ira-build.c (ira_create_allocno): Initialize
1326 ALLOCNO_CROSSED_CALLS_ABIS.
1327 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1328 than regno to ira_need_caller_save_p.
1329
1330 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1331
1332 * config/i386/i386-options.c
1333 (ix86_recompute_optlev_based_flags): New, moved out of...
1334 (ix86_option_override_internal): ... this. Call it.
1335 (ix86_override_options_after_change): Call it here too.
1336
1337 PR debug/91507
1338 * dwarf2out.c (override_type_for_decl_p): New.
1339 (gen_variable_die): Use it.
1340
1341 2019-10-01 Richard Biener <rguenther@suse.de>
1342
1343 * tree-vect-loop.c (vectorizable_reduction): Move variables
1344 to where they are used.
1345
1346 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1347
1348 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1349 (build_def_use): Use PC instead of CC0 in a comment.
1350
1351 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1352
1353 * rtl.def (CLOBBER_HIGH): Delete.
1354 * doc/rtl.texi (clobber_high): Remove documentation.
1355 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1356 (reg_is_clobbered_by_clobber_high): Delete.
1357 (gen_hard_reg_clobber_high): Likewise.
1358 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1359 * cfgexpand.c (expand_gimple_stmt): Likewise.
1360 * combine-stack-adj.c (single_set_for_csa): Likewise.
1361 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1362 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1363 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1364 * cse.c (invalidate_reg): Remove clobber_high parameter.
1365 (invalidate): Update call accordingly.
1366 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1367 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1368 (count_reg_usage, insn_live_p): Likewise.
1369 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1370 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1371 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1372 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1373 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1374 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1375 (mark_nonreg_stores_2): Likewise.
1376 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1377 (df_get_call_refs): Likewise.
1378 * dwarf2out.c (mem_loc_descriptor): Likewise.
1379 * emit-rtl.c (verify_rtx_sharing): Likewise.
1380 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1381 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1382 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1383 * genemit.c (gen_exp, gen_insn): Likewise.
1384 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1385 * haifa-sched.c (haifa_classify_rtx): Likewise.
1386 * ira-build.c (create_insn_allocnos): Likewise.
1387 * ira-costs.c (scan_one_insn): Likewise.
1388 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1389 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1390 * jump.c (mark_jump_label_1): Likewise.
1391 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1392 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1393 handling.
1394 (mark_not_eliminable): Likewise.
1395 * lra-lives.c (process_bb_lives): Likewise.
1396 * lra.c (new_insn_reg): Remove clobber_high parameter.
1397 (collect_non_operand_hard_regs): Likewise. Update call to new
1398 insn_reg. Remove CLOBBER_HIGH handling.
1399 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1400 to collect_non_operand_hard_regs.
1401 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1402 Update call to new_insn_reg.
1403 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1404 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1405 (move2add_note_store): Likewise.
1406 * print-rtl.c (print_pattern): Likewise.
1407 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1408 (if_test_bypass_p): Likewise.
1409 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1410 * reginfo.c (reg_scan_mark_refs): Likewise.
1411 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1412 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1413 (forget_old_reloads_1): Likewise.
1414 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1415 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1416 (dbr_schedule): Likewise.
1417 * resource.c (update_live_status, mark_referenced_resources)
1418 (mark_set_resources): Likewise.
1419 * rtl.c (copy_rtx): Likewise.
1420 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1421 (note_pattern_stores): Likewise.
1422 (reg_is_clobbered_by_clobber_high): Delete.
1423 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1424 CLOBBER_HIGH handling.
1425
1426 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1427
1428 PR target/91452
1429 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1430 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1431 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1432 Handle ARM_PCS_TLSDESC.
1433 (aarch64_tlsdesc_abi_id): New function.
1434 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1435 rtx instead of a list of clobbers and clobber_highs.
1436 (tlsdesc_small_<mode>): Update accordingly.
1437
1438 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1439
1440 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1441 extra callee_abi argument.
1442 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1443 Insert a CALLEE_ABI unspec into the call pattern as the second
1444 element in the PARALLEL.
1445 (aarch64_simd_call_p): Delete.
1446 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1447 the new CALLEE_ABI element of the PARALLEL.
1448 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1449 from the function type, if given.
1450 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1451 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1452 when passed the function_arg_info end marker.
1453 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1454 final argument of gen_sibcall.
1455 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1456 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1457 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1458 pattern.
1459 (call_value): Likewise operand 3.
1460 (sibcall): Likewise operand 2. Place the unspec before rather than
1461 after the return.
1462 (sibcall_value): Likewise operand 3.
1463 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1464 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1465 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1466 constraint strings.
1467 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1468
1469 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1470
1471 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1472 choose_hard_reg_mode.
1473 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1474
1475 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1476
1477 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1478 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1479 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1480
1481 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1482
1483 * diagnostic-show-locus.c (line_label::line_label): Initialize
1484 m_has_vbar.
1485 (line_label::comparator): Reverse the sort order by m_state_idx,
1486 so that when the list is walked backwards the labels appear in
1487 order of insertion into the rich_location.
1488 (line_label::m_has_vbar): New field.
1489 (layout::print_any_labels): When dealing with multiple labels at
1490 the same line and column, only print vertical bars for the one
1491 with the highest label_line.
1492 (selftest::test_one_liner_labels): Update test for multiple labels
1493 to expect the labels to be in the order of insertion into the
1494 rich_location. Add a test for many such labels, where the column
1495 numbers are out-of-order relative to the insertion order.
1496
1497 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1498
1499 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1500 (ix86_frame::expensive_count): Likewise.
1501 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1502 of use_fast_prologue_epilogue robust against incidental changes
1503 in function size.
1504
1505 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1506
1507 PR target/77918
1508 * config/s390/vector.md (vec_unordered<mode>): Call
1509 gen_vec_ordered<mode>.
1510
1511 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1512
1513 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1514 New pattern for ASRD.
1515 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1516 * internal-fn.def (IFN_DIV_POW2): New internal function.
1517 * optabs.def (sdiv_pow2_optab): New optab.
1518 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1519 Modify pattern to support new operation.
1520 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1521 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1522 Document new target selector.
1523
1524 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1525
1526 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1527 to test whether we're compiling a vector PCS function and to test
1528 whether the function needs to save a particular register.
1529 Remove the vector PCS handling of df_set_regs_ever_live.
1530 (aarch64_components_for_bb): Use crtl->abi to test whether
1531 the function needs to save a particular register.
1532 (aarch64_process_components): Use crtl->abi to test whether
1533 we're compiling a vector PCS function.
1534 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1535 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1536
1537 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1538
1539 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1540 Delete.
1541 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1542 whether the block calls a function that clobbers more registers
1543 than the current function is allowed to.
1544 (aarch64_use_simple_return_insn_p): Delete.
1545 * config/aarch64/aarch64.md (simple_return): Remove condition.
1546
1547 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1548
1549 * function-abi.h (function_abi_aggregator): New class.
1550 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1551 function.
1552 * ira.c (update_equiv_regs_prescan): New function. Call
1553 set_paradoxical_subreg here rather than...
1554 (update_equiv_regs): ...here.
1555 (ira): Call update_equiv_regs_prescan.
1556
1557 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1558
1559 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1560 IN_TARGET_CODE.
1561 (call_used_or_fixed_regs): Likewise.
1562 (call_used_or_fixed_reg_p): Likewise.
1563 * reginfo.c (regs_invalidated_by_call): New macro.
1564
1565 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1566
1567 * shrink-wrap.c: Include function-abi.h.
1568 (requires_stack_frame_p): Use crtl->abi to test whether the
1569 current function can use a register without saving it first.
1570
1571 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1572
1573 * sel-sched-ir.h (_def::crosses_call): Replace with...
1574 (_def::crossed_call_abis): ..this new field.
1575 (def_list_add): Take a mask of ABIs instead of a crosses_call
1576 boolean.
1577 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1578 of _def accordingly.
1579 * sel-sched.c: Include function-abi.h.
1580 (hard_regs_data::regs_for_call_clobbered): Delete.
1581 (reg_rename::crosses_call): Replace with...
1582 (reg_rename::crossed_call_abis): ...this new field.
1583 (fur_static_params::crosses_call): Replace with...
1584 (fur_static_params::crossed_call_abis): ...this new field.
1585 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1586 (init_hard_regs_data): Use crtl->abi to test which registers the
1587 current function would need to save before it uses them.
1588 (mark_unavailable_hard_regs): Update handling of call-clobbered
1589 registers, using call_clobbers_in_region to find out which registers
1590 might be call-clobbered (but without taking -fipa-ra into account
1591 for now). Remove separate handling of partially call-clobbered
1592 registers.
1593 (verify_target_availability): Use crossed_call_abis instead of
1594 crosses_call.
1595 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1596 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1597
1598 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1599
1600 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1601 function to test whether a register is fully or partly clobbered.
1602
1603 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1604
1605 * rtlanal.c: Include function-abi.h.
1606 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1607 function and clobbers_reg_p to test whether the register
1608 is call-clobbered.
1609 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1610 to get the ABI of the called function and full_reg_clobbers to
1611 get the set of fully call-clobbered registers. Warn about the
1612 pitfalls of using this mode.
1613
1614 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1615
1616 * reload.c: Include function-abi.h.
1617 (find_equiv_reg): Use clobbers_reg_p to test whether either
1618 of the equivalent registers is clobbered by a call.
1619 * reload1.c: Include function-abi.h.
1620 (reg_reloaded_call_part_clobbered): Delete.
1621 (reload): Use crtl->abi to test which registers would need
1622 saving in the prologue before use.
1623 (find_reg): Likewise.
1624 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1625 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1626 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1627
1628 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1629
1630 * regrename.h (du_head::call_clobber_mask): New field.
1631 (du_head::need_caller_save_reg): Replace with...
1632 (du_head::call_abis): ...this new field.
1633 * regrename.c: Include function-abi.h.
1634 (call_clobbered_in_chain_p): New function.
1635 (check_new_reg_p): Use crtl->abi when deciding whether a register
1636 is free for use after RA. Use call_clobbered_in_chain_p to test
1637 whether a candidate register would be clobbered by a call.
1638 (find_rename_reg): Don't add call-clobber conflicts here.
1639 (rename_chains): Check call_abis instead of need_caller_save_reg.
1640 (merge_chains): Update for changes to du_head.
1641 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1642 target. Record the ABI identifier in call_abis and the set of
1643 fully or partially clobbered registers in call_clobber_mask.
1644 Add fully-clobbered registers to hard_conflicts here rather
1645 than in find_rename_reg.
1646 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1647 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1648 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1649 function-abi.h.
1650 * config/c6x/c6x.c: Likewise.
1651
1652 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1653
1654 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1655 mode of the register when deciding whether it is no longer
1656 available after a call.
1657
1658 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1659
1660 * recog.c: Include function-abi.h.
1661 (peep2_find_free_register): Use crtl->abi when deciding whether
1662 a register is free for use after RA.
1663
1664 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1665
1666 * postreload-gcse.c: Include regs.h and function-abi.h.
1667 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1668 call insn target. Conservatively assume that partially-clobbered
1669 registers are altered.
1670
1671 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1672
1673 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1674 when deciding whether a register is free for use after RA.
1675 (reload_combine): Remove unnecessary use of fixed_reg_set.
1676 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1677 call insn target. Use reg_mode when testing whether a register
1678 is no longer available.
1679
1680 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1681
1682 * target.def (return_call_with_max_clobbers): Delete.
1683 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1684 * doc/tm.texi: Regenerate.
1685 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1686 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1687 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1688 (lra_reg::call_insn): Delete.
1689 * lra.c: Include function-abi.h.
1690 (initialize_lra_reg_info_element): Don't initialize the fields above.
1691 (lra): Use crtl->abi to test whether the current function needs to
1692 save a register in the prologue. Remove special pre-inheritance
1693 lra_create_live_ranges pass for flag_ipa_ra.
1694 * lra-assigns.c: Include function-abi.h
1695 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1696 function needs to save a register in the prologue.
1697 (lra_assign): Assert that registers aren't allocated to a
1698 conflicting register, rather than checking only for overlaps
1699 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1700 and for registers that are not live across a call.
1701 * lra-constraints.c (last_call_for_abi): New variable.
1702 (full_and_partial_call_clobbers): Likewise.
1703 (setup_next_usage_insn): Remove the register from
1704 full_and_partial_call_clobbers.
1705 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1706 whether the register needs a caller save.
1707 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1708 of call_used_or_fixed_regs.
1709 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1710 full_and_partial_call_clobbers.
1711 * lra-lives.c (check_pseudos_live_through_calls): Replace
1712 last_call_used_reg_set and call_insn arguments with an abi argument.
1713 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1714 as the set of conflicting registers.
1715 (calls_have_same_clobbers_p): Delete.
1716 (process_bb_lives): Track the ABI of the last call instead of an
1717 insn/HARD_REG_SET pair. Update calls to
1718 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1719 the set of registers that could be clobbered by an EH edge.
1720 Include partially-clobbered as well as fully-clobbered registers.
1721 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1722 * lra-remat.c: Include function-abi.h.
1723 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1724 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1725 registers and bitmap_view to combine them into dead_regs.
1726 (call_used_input_regno_present_p): Take a function_abi argument
1727 and use it to test whether a register is call-clobbered.
1728 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1729 call insn target. Update tje call to call_used_input_regno_present_p.
1730 (do_remat): Likewise.
1731 (lra_remat): Remove the initialization of call_used_regs_arr_len
1732 and call_used_regs_arr.
1733
1734 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1735
1736 * loop-iv.c: Include regs.h and function-abi.h.
1737 (simplify_using_initial_values): Use insn_callee_abi to get the
1738 ABI of the call insn target. Conservatively assume that
1739 partially-clobbered registers are altered.
1740
1741 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1742
1743 * function-abi.h (call_clobbers_in_region): Declare.
1744 (call_clobbered_in_region_p): New function.
1745 * function-abi.cc (call_clobbers_in_region): Likewise.
1746 * ira-int.h: Include function-abi.h.
1747 (ira_allocno::crossed_calls_abis): New field.
1748 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1749 (ira_need_caller_save_regs): New function.
1750 (ira_need_caller_save_p): Likewise.
1751 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1752 of call_used_or_fixed_regs.
1753 (do_reload): Use crtl->abi to test whether the current function
1754 needs to save a register in the prologue. Count registers that
1755 need to be saved rather than registers that don't.
1756 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1757 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1758 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1759 (propagate_some_info_from_allocno): Likewise.
1760 (copy_info_to_removed_store_destinations): Likewise.
1761 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1762 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1763 (ira_build): Use ira_need_caller_save_regs instead of
1764 call_used_or_fixed_regs.
1765 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1766 whether the current function would need to save a register
1767 before using it.
1768 (calculate_spill_cost): Likewise.
1769 (allocno_reload_assign): Use ira_need_caller_save_regs and
1770 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1771 * ira-conflicts.c (ira_build_conflicts): Use
1772 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1773 as the set of call-clobbered registers. Remove the
1774 call_used_or_fixed_regs mask from the calculation of
1775 temp_hard_reg_set and mask its use instead. Remove special
1776 handling of partially-clobbered registers.
1777 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1778 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1779 calculate the set of conflicting registers for calls that
1780 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1781 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1782 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1783 Use eh_edge_abi to calculate the set of registers that could
1784 be clobbered by an EH edge. Include partially-clobbered as
1785 well as fully-clobbered registers.
1786
1787 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1788
1789 * haifa-sched.c: Include function-abi.h.
1790 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1791 the function would need to save a register before using it.
1792
1793 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1794
1795 * gcse.c: Include function-abi.h.
1796 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1797 the call insn target. Invalidate partially call-clobbered
1798 registers as well as fully call-clobbered ones.
1799
1800 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1801
1802 * function.c (aggregate_value_p): Work out which ABI the
1803 function is using before testing which registers are at least
1804 partly preserved by a call.
1805
1806 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1807
1808 * early-remat.c: Include regs.h and function-abi.h.
1809 (early_remat::maybe_add_candidate): Don't check for call-clobbered
1810 registers here.
1811 (early_remat::restrict_remat_for_unavail_regs): New function.
1812 (early_remat::restrict_remat_for_call): Likewise.
1813 (early_remat::process_block): Before calling emit_remat_insns
1814 for a previous call in the block, invalidate any candidates
1815 that would clobber call-preserved registers.
1816 (early_remat::emit_remat_insns_for_block): Likewise for the
1817 final call in a block. Do the same thing for live-in registers
1818 when calling emit_remat_insns at the head of a block.
1819
1820 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1821
1822 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1823 whether the current function needs to save at least part of a
1824 register before using it.
1825 (df_get_exit_block_use_set): Likewise for epilogue restores.
1826
1827 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1828
1829 * df-problems.c: Include regs.h and function-abi.h.
1830 (df_rd_problem_data): Rename sparse_invalidated_by_call to
1831 sparse_invalidated_by_eh and dense_invalidated_by_call to
1832 dense_invalidated_by_eh.
1833 (df_print_bb_index): Update accordingly.
1834 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1835 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1836 that are clobbered by an EH edge. Clobber partially-clobbered
1837 registers as well as fully-clobbered ones.
1838 (df_md_confluence_n): Likewise.
1839 (df_rd_local_compute): Likewise. Update for changes to
1840 df_rd_problem_data.
1841 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1842 of registers that are clobbered by an EH edge. Includde partially-
1843 clobbered registers as well as fully-clobbered ones.
1844
1845 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1846
1847 * cselib.c (cselib_process_insn): If we know what mode a
1848 register was set in, check whether it is clobbered in that
1849 mode by a call. Only fall back to reg_raw_mode if that fails.
1850
1851 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1852
1853 * cse.c: Include regs.h and function-abi.h.
1854 (invalidate_for_call): Take the call insn as an argument.
1855 Use insn_callee_abi to get the ABI of the call and invalidate
1856 partially clobbered registers as well as fully clobbered ones.
1857 (cse_insn): Update call accordingly.
1858
1859 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1860
1861 * combine.c: Include function-abi.h.
1862 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1863 of the target of call insns. Invalidate partially-clobbered
1864 registers as well as fully-clobbered ones.
1865
1866 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1867
1868 * cfgloopanal.c: Include regs.h and function-abi.h.
1869 (init_set_costs): Use default_function_abi to test whether
1870 a general register is call-clobbered.
1871
1872 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1873
1874 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
1875 instead of the call-clobbered sets.
1876
1877 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1878
1879 * caller-save.c (setup_save_areas): Remove redundant |s of
1880 fixed_reg_set.
1881 (save_call_clobbered_regs): Likewise. Use the call ABI rather
1882 than call_used_or_fixed_regs to decide whether a REG_RETURNED
1883 value is useful.
1884
1885 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1886
1887 * rtl.h (predefined_function_abi): Declare.
1888 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1889 instead of a boolean call_save flag.
1890 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
1891 accordingly.
1892 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1893 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1894 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
1895 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1896 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1897 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
1898 * reginfo.c (init_reg_modes_target): Likewise.
1899 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1900 instead of a boolean call_save flag.
1901 * targhooks.c: Include function-abi.h.
1902 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
1903 using eh_edge_abi to choose the mode.
1904
1905 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1906
1907 * target.def (hard_regno_call_part_clobbered): Take an ABI
1908 identifier instead of an rtx_insn.
1909 * doc/tm.texi: Regenerate.
1910 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
1911 (hook_bool_uint_uint_mode_false): New function.
1912 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
1913 (hook_bool_uint_uint_mode_false): New function.
1914 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1915 Take an ABI identifier instead of an rtx_insn.
1916 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
1917 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
1918 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
1919 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
1920 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
1921 Likewise.
1922 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
1923 * cselib.c: Include function-abi.h.
1924 (cselib_process_insn): Update call to
1925 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1926 to get the appropriate ABI identifier.
1927 * function-abi.cc (predefined_function_abi::initialize): Update call
1928 to targetm.hard_regno_call_part_clobbered.
1929 * ira-conflicts.c (ira_build_conflicts): Likewise.
1930 * ira-costs.c (ira_tune_allocno_costs): Likewise.
1931 * lra-constraints.c: Include function-abi.h.
1932 (need_for_call_save_p): Update call to
1933 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1934 to get the appropriate ABI identifier.
1935 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1936 * regcprop.c (copyprop_hardreg_forward_1): Update call
1937 to targetm.hard_regno_call_part_clobbered.
1938 * reginfo.c (choose_hard_reg_mode): Likewise.
1939 * regrename.c (check_new_reg_p): Likewise.
1940 * reload.c (find_equiv_reg): Likewise.
1941 * reload1.c (emit_reload_insns): Likewise.
1942 * sched-deps.c: Include function-abi.h.
1943 (deps_analyze_insn): Update call to
1944 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
1945 to get the appropriate ABI identifier.
1946 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
1947 call to targetm.hard_regno_call_part_clobbered.
1948 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
1949
1950 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1951
1952 * config/i386/i386.c: Include function-abi.h.
1953 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
1954 if they preserve some 256-bit or 512-bit SSE registers.
1955
1956 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1957
1958 * target.def (insn_callee_abi): New hook.
1959 (remove_extra_call_preserved_regs): Delete.
1960 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
1961 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1962 * doc/tm.texi: Regenerate.
1963 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
1964 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
1965 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
1966 insn argument.
1967 (aarch64_remove_extra_call_preserved_regs): Delete.
1968 (aarch64_insn_callee_abi): New function.
1969 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
1970 (TARGET_INSN_CALLEE_ABI): New macro.
1971 * rtl.h (get_call_fndecl): Declare.
1972 (cgraph_rtl_info): Fix formatting. Tweak comment for
1973 function_used_regs. Remove function_used_regs_valid.
1974 * rtlanal.c (get_call_fndecl): Moved from final.c
1975 * function-abi.h (insn_callee_abi): Declare.
1976 (target_function_abi_info): Mention insn_callee_abi.
1977 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
1978 way to get_call_reg_set_usage did.
1979 (insn_callee_abi): New function.
1980 * regs.h (get_call_reg_set_usage): Delete.
1981 * final.c: Include function-abi.h.
1982 (collect_fn_hard_reg_usage): Add fixed and stack registers to
1983 function_used_regs before the main loop rather than afterwards.
1984 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
1985 if function_used_regs ends up not being useful.
1986 (get_call_fndecl): Move to rtlanal.c
1987 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
1988 * caller-save.c: Include function-abi.h.
1989 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
1990 instead of get_call_reg_set_usage.
1991 * cfgcleanup.c: Include function-abi.h.
1992 (old_insns_match_p): Use insn_callee_abi instead of
1993 get_call_reg_set_usage.
1994 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
1995 a tree.
1996 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
1997 function_used_regs.
1998 * df-scan.c: Include function-abi.h.
1999 (df_get_call_refs): Use insn_callee_abi instead of
2000 get_call_reg_set_usage.
2001 * ira-lives.c: Include function-abi.h.
2002 (process_bb_node_lives): Use insn_callee_abi instead of
2003 get_call_reg_set_usage.
2004 * lra-lives.c: Include function-abi.h.
2005 (process_bb_lives): Use insn_callee_abi instead of
2006 get_call_reg_set_usage.
2007 * postreload.c: Include function-abi.h.
2008 (reload_combine): Use insn_callee_abi instead of
2009 get_call_reg_set_usage.
2010 * regcprop.c: Include function-abi.h.
2011 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2012 get_call_reg_set_usage.
2013 * resource.c: Include function-abi.h.
2014 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2015 instead of get_call_reg_set_usage.
2016 * var-tracking.c: Include function-abi.h.
2017 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2018 get_call_reg_set_usage.
2019
2020 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2021
2022 * target.def (fntype_abi): New target hook.
2023 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2024 * doc/tm.texi: Regenerate.
2025 * target.h (predefined_function_abi): Declare.
2026 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2027 if defined.
2028 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2029 * config/aarch64/aarch64.c: Include function-abi.h.
2030 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2031 (TARGET_FNTYPE_ABI): Define.
2032
2033 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2034
2035 * Makefile.in (OBJS): Add function-abi.o.
2036 (GTFILES): Add function-abi.h.
2037 * function-abi.cc: New file.
2038 * function-abi.h: Likewise.
2039 * emit-rtl.h (rtl_data::abi): New field.
2040 * function.c: Include function-abi.h.
2041 (prepare_function_start): Initialize crtl->abi.
2042 * read-rtl-function.c: Include regs.h and function-abi.h.
2043 (read_rtl_function_body): Initialize crtl->abi.
2044 (read_rtl_function_body_from_file_range): Likewise.
2045 * reginfo.c: Include function-abi.h.
2046 (init_reg_sets_1): Initialize default_function_abi.
2047 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2048 when making a register global.
2049 * target-globals.h (this_target_function_abi_info): Declare.
2050 (target_globals::function_abi_info): New field.
2051 (restore_target_globals): Copy it.
2052 * target-globals.c: Include function-abi.h.
2053 (default_target_globals): Initialize the function_abi_info field.
2054 (target_globals): Allocate it.
2055 (save_target_globals): Free it.
2056
2057 2019-09-30 Nick Clifton <nickc@redhat.com>
2058
2059 PR target/85978
2060 * config/frv/frv.c (frv_register_move_cost): Add break statements
2061 to avoid falling through to the wrong cases. Tidy code.
2062
2063 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2064
2065 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2066 For multi-registers modes, test how big each register part is.
2067
2068 2019-09-30 Nick Clifton <nickc@redhat.com>
2069
2070 PR target/59205
2071 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2072 (TARGET_ASM_SELECT_SECTION): Remove definition.
2073 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2074
2075 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2076
2077 * emit-rtl.c (init_raw_REG): New function.
2078 (gen_raw_REG): Use init_raw_REG.
2079 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2080 macros.
2081 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2082 * rtl.h (rtx_init): New function.
2083 (rtx_alloca): New function.
2084 (init_raw_REG): New function.
2085 (alloca_raw_REG): New macro.
2086
2087 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2088
2089 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2090 (pcrel_local_address): Replace pcrel_address predicate, use the
2091 new function address_to_insn_form.
2092 (pcrel_external_address): Replace with new implementation using
2093 address_to_insn_form..
2094 (prefixed_mem_operand): Delete predicate which is now unused.
2095 (pcrel_external_mem_operand): Delete predicate which is now
2096 unused.
2097 * config/rs6000/rs6000-protos.h (enum insn_form): New
2098 enumeration.
2099 (enum non_prefixed_form): New enumeration.
2100 (address_to_insn_form): New declaration.
2101 (prefixed_load_p): New declaration.
2102 (prefixed_store_p): New declaration.
2103 (prefixed_paddi_p): New declaration.
2104 (rs6000_asm_output_opcode): New declaration.
2105 (rs6000_final_prescan_insn): Move declaration and update calling
2106 signature.
2107 (address_is_prefixed): New helper inline function.
2108 * config/rs6000/rs6000.c(print_operand_address): Check for either
2109 PC-relative local symbols or PC-relative external symbols.
2110 (rs6000_emit_move): Support loading PC-relative addresses.
2111 (mode_supports_prefixed_address_p): Delete, no longer used.
2112 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2113 (address_to_insn_form): New function to decode an address format.
2114 (reg_to_non_prefixed): New function to identify what the
2115 non-prefixed memory instruction format is for a register.
2116 (prefixed_load_p): New function to identify prefixed loads.
2117 (prefixed_store_p): New function to identify prefixed stores.
2118 (prefixed_paddi_p): New function to identify prefixed load
2119 immediates.
2120 (next_insn_prefixed_p): New static state variable.
2121 (rs6000_final_prescan_insn): New function to determine if an insn
2122 uses a prefixed instruction.
2123 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2124 prefixed instruction.
2125 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2126 (ASM_OUTPUT_OPCODE): New target hook.
2127 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2128 prefixed instructions.
2129 (prefixed_length): New insn attribute for the size of prefixed
2130 instructions.
2131 (non_prefixed_length): New insn attribute for the size of
2132 non-prefixed instructions.
2133 (pcrel_local_addr): New insn to load up a local PC-relative
2134 address.
2135 (pcrel_extern_addr): New insn to load up an external PC-relative
2136 address.
2137 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2138 GPR and loading a 128-bit floating point type to a GPR.
2139
2140 2019-09-30 Richard Biener <rguenther@suse.de>
2141
2142 * gimple.c (gimple_get_lhs): For PHIs return the result.
2143 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2144 SLP instance as argument.
2145 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2146 double-reduction PHIs with vectorizable_lc_phi.
2147 (vect_analyze_loop_operations): Adjust.
2148 (vect_create_epilog_for_reduction): Remove all code not dealing
2149 with reduction LC PHI or epilogue generation.
2150 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2151 for live stmts of reductions.
2152 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2153 do not handle defs that are not vect_internal_def.
2154 (can_vectorize_live_stmts): Adjust.
2155 (vect_analyze_stmt): When the vectorized stmt defined a value
2156 used on backedges adjust the backedge uses of vectorized PHIs.
2157
2158 2019-09-30 Martin Jambor <mjambor@suse.cz>
2159
2160 PR ipa/91853
2161 * tree-inline.c (force_value_to_type): New function.
2162 (setup_one_parameter): Use force_value_to_type to convert type.
2163 * tree-inline.c (force_value_to_type): Declare.
2164 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2165 with register type mismatches.
2166
2167 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2168
2169 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2170 32-bit PowerPC.
2171 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2172 * config/rs6000/t-freebsd64: Make use of the above define and build
2173 the 32-bit libraries with secure-plt.
2174
2175 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2176
2177 PR target/91931
2178 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2179 gen_int_mode instead of GEN_INT.
2180
2181 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2182
2183 * config/darwin.c (gen_macho_low): Amend to include the mode
2184 argument.
2185 (machopic_indirect_data_reference): Amend gen_macho_low call
2186 to include mode argument
2187 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2188 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2189 the macho_high expander and two define_insn entries.
2190
2191 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2192
2193 PR bootstrap/90543
2194 * optc-save-gen.awk: Fix up printing string option differences.
2195
2196 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2197
2198 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2199 vec_perm cost to 1 for non-Power7 VSX architectures.
2200
2201 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2202
2203 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2204 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2205 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2206
2207 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2208
2209 * config/darwin.c (gen_macho_high): Amend to include the mode
2210 argument.
2211 (machopic_indirect_data_reference): Amend gen_macho_high call
2212 to include mode argument.
2213 (machopic_legitimize_pic_address): Likewise.
2214 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2215 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2216 the macho_high expander and two define_insn entries.
2217
2218 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2219
2220 PR target/86805
2221 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2222
2223 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2224
2225 PR target/80672
2226 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2227 std::string::compare instead of std::string::find.
2228
2229 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2230
2231 * configure: Regenerate.
2232
2233 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2234
2235 PR middle-end/91920
2236 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2237 variables as shared.
2238
2239 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2240
2241 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2242 replaces the expander and two define_insn entries.
2243 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2244 call.
2245 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2246
2247 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2248
2249 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2250 (fibonacci_heap::nodes): Likewise.
2251 (fibonacci_heap::min_key): Likewise.
2252 (fibonacci_heap::min): Likewise.
2253
2254 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2255
2256 * cgraph.c (cgraph_node::get_fun): Make const.
2257 * cgraph.h (cgraph_node::get_fun): Likewise.
2258
2259 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2260
2261 PR target/91919
2262 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2263 of SImode MULT.
2264
2265 2019-09-27 Richard Biener <rguenther@suse.de>
2266
2267 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2268 (STMT_VINFO_REDUC_FN): Likewise.
2269 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2270 STMT_VINFO_REDUC_FN.
2271 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2272 for condition reductions.
2273 (vect_create_epilog_for_reduction): Compute all required state
2274 from the stmt to be vectorized.
2275 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2276 invocation and remove then dead code. For single def-use chains
2277 record only a single vector stmt.
2278
2279 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2280
2281 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2282 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2283 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2284 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2285 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2286 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2287 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2288 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2289 (aarch64_general_builtin_rsqrt): Declare.
2290 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2291 New function.
2292 (aarch64_mangle_builtin_type): Rename to...
2293 (aarch64_general_mangle_builtin_type): ...this.
2294 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2295 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2296 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2297 aarch64_general_add_builtin instead of add_builtin_function.
2298 (aarch64_init_builtins): Rename to...
2299 (aarch64_general_init_builtins): ...this. Use
2300 aarch64_general_add_builtin instead of add_builtin_function.
2301 (aarch64_builtin_decl): Rename to...
2302 (aarch64_general_builtin_decl): ...this and remove the unused
2303 arguments.
2304 (aarch64_expand_builtin): Rename to...
2305 (aarch64_general_expand_builtin): ...this and remove the unused
2306 arguments.
2307 (aarch64_builtin_rsqrt): Rename to...
2308 (aarch64_general_builtin_rsqrt): ...this.
2309 (aarch64_fold_builtin): Rename to...
2310 (aarch64_general_fold_builtin): ...this. Take the function subcode
2311 and return type as arguments. Remove the "ignored" argument.
2312 (aarch64_gimple_fold_builtin): Rename to...
2313 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2314 subcode and gcall as arguments, and return the new function call.
2315 * config/aarch64/aarch64.c (aarch64_init_builtins)
2316 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2317 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2318 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2319 instead of aarch64_builtin_rsqrt.
2320 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2321 instead of aarch64_mangle_builtin_type.
2322
2323 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2324
2325 * target.def (check_builtin_call): New target hook.
2326 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2327 * doc/tm.texi: Regenerate.
2328
2329 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2330
2331 PR tree-optimization/91909
2332 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2333 reduc_index parameter. When handling COND_REDUCTION, make sure
2334 that the reduction phi operand is in the correct arm of the
2335 VEC_COND_EXPR.
2336 (vectorizable_reduction): Pass reduc_index to the above.
2337
2338 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2339
2340 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2341 New combine pattern.
2342
2343 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2344
2345 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2346 loop instruction into new basic block before the loop when basic
2347 block that precedes the loop is empty.
2348
2349 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2350
2351 * function.c (gimplify_parameters): Use build_clobber function.
2352 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2353 * tree-inline.c (expand_call_inline): Likewise.
2354 * tree-sra.c (clobber_subtree): Likewise.
2355 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2356 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2357 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2358 lower_omp_target): Likewise.
2359 * omp-expand.c (expand_omp_for_generic): Likewise.
2360 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2361
2362 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2363
2364 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2365 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2366 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2367 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2368 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2369 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2370 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2371 LD_ELEMREV_V16QI): Use the PURE attribute.
2372
2373 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2374
2375 * config/rs6000/darwin.md: Replace the expanders for
2376 load_macho_picbase and reload_macho_picbase with use of '@'
2377 and <mode> in their respective define_insns.
2378 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2379 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2380 Pmode to gen_load_macho_picbase.
2381 * config/rs6000/rs6000.md: Likewise.
2382
2383 2019-09-25 Richard Biener <rguenther@suse.de>
2384
2385 PR tree-optimization/91896
2386 * tree-vect-loop.c (vectorizable_reduction): The single
2387 def-use cycle optimization cannot apply when there's more
2388 than one pattern stmt involved.
2389
2390 2019-09-26 Richard Biener <rguenther@suse.de>
2391
2392 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2393 loop-closed PHIs that are vect_internal_def.
2394 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2395 Simplify.
2396 (vectorizable_lc_phi): New.
2397 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2398 (vect_transform_stmt): Likewise.
2399 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2400 (vectorizable_lc_phi): Declare.
2401
2402 2019-09-26 Richard Biener <rguenther@suse.de>
2403
2404 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2405 vectorizable_reduction for vect_double_reduction_def.
2406 (vect_transform_loop): Likewise.
2407 (vect_create_epilog_for_reduction): Move double-reduction
2408 PHI creation and preheader argument setting of PHIs ...
2409 (vectorizable_reduction): ... here. Also process
2410 vect_double_reduction_def PHIs, creating the vectorized
2411 PHI nodes, remembering the scalar adjustment computed for
2412 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2413 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2414 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2415 Initialize STMT_VINFO_REDUC_CODE.
2416 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2417 (_stmt_vec_info::reduc_code): Likewise.
2418 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2419 (STMT_VINFO_REDUC_CODE): Likewise.
2420
2421 2019-09-26 Matt Turner <mattst88@gmail.com>
2422
2423 PR driver/69471
2424 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2425 (mtune=): Add Negative(mtune=).
2426 (mcpu=): Add Negative(mcpu=).
2427 * config/arm/arm.opt: Likewise.
2428
2429 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2430
2431 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2432 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2433 Define.
2434 * config/arm/arm_acle.h: Define builtins for the above.
2435 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2436 (simd32_op): Handle the above.
2437 * config/arm/unspecs.md: Define unspecs for the above.
2438
2439 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2440
2441 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2442 (arm_<sup>xtb16): Likewise.
2443 (arm_usada8): Likewise.
2444 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2445 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2446 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2447 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2448 __sxtb16, __uxtab16, __uxtb16): Define.
2449 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2450 * config/arm/unspecs.md: Define unspecs for the above.
2451 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2452 (USXTB16): Likewise.
2453 (simd32_op): New int_attribute.
2454 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2455 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2456
2457 2019-09-26 Martin Jambor <mjambor@suse.cz>
2458
2459 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2460 internal_error.
2461
2462 2019-09-26 Martin Jambor <mjambor@suse.cz>
2463
2464 * ipa-sra.c (process_scan_results): Fix continue condition.
2465
2466 2019-09-26 Martin Liska <mliska@suse.cz>
2467
2468 PR tree-optimization/91885
2469 * tree-vectorizer.c (try_vectorize_loop_1): Add
2470 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2471
2472 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2473
2474 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2475 aarch64_plus_immediate rather than aarch64_uimm12_shift
2476 to test for valid PLUS immediates.
2477
2478 2019-09-25 Martin Jambor <mjambor@suse.cz>
2479
2480 * tree-sra.c (no_accesses_p): Remove.
2481 (no_accesses_representant): Likewise.
2482
2483 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2484
2485 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2486 consistenly.
2487 (vaba_s16): Likewise.
2488 (vaba_s32): Likewise.
2489 (vaba_u8): Likewise.
2490 (vaba_u16): Likewise.
2491 (vaba_u32): Likewise.
2492 (vabal_high_s8): Likewise.
2493 (vabal_high_s16): Likewise.
2494 (vabal_high_s32): Likewise.
2495 (vabal_high_u8): Likewise.
2496 (vabal_high_u16): Likewise.
2497 (vabal_high_u32): Likewise.
2498 (vabal_s8): Likewise.
2499 (vabal_s16): Likewise.
2500 (vabal_s32): Likewise.
2501 (vabal_u8): Likewise.
2502 (vabal_u16): Likewise.
2503 (vabal_u32): Likewise.
2504 (vabaq_s8): Likewise.
2505 (vabaq_s16): Likewise.
2506 (vabaq_s32): Likewise.
2507 (vabaq_u8): Likewise.
2508 (vabaq_u16): Likewise.
2509 (vabaq_u32): Likewise.
2510 (vabd_s8): Likewise.
2511 (vabd_s16): Likewise.
2512 (vabd_s32): Likewise.
2513 (vabd_u8): Likewise.
2514 (vabd_u16): Likewise.
2515 (vabd_u32): Likewise.
2516 (vabdl_high_s8): Likewise.
2517 (vabdl_high_s16): Likewise.
2518 (vabdl_high_s32): Likewise.
2519 (vabdl_high_u8): Likewise.
2520 (vabdl_high_u16): Likewise.
2521 (vabdl_high_u32): Likewise.
2522 (vabdl_s8): Likewise.
2523 (vabdl_s16): Likewise.
2524 (vabdl_s32): Likewise.
2525 (vabdl_u8): Likewise.
2526 (vabdl_u16): Likewise.
2527 (vabdl_u32): Likewise.
2528 (vabdq_s8): Likewise.
2529 (vabdq_s16): Likewise.
2530 (vabdq_s32): Likewise.
2531 (vabdq_u8): Likewise.
2532 (vabdq_u16): Likewise.
2533 (vabdq_u32): Likewise.
2534 (vaddlv_s8): Likewise.
2535 (vaddlv_s16): Likewise.
2536 (vaddlv_u8): Likewise.
2537 (vaddlv_u16): Likewise.
2538 (vaddlvq_s8): Likewise.
2539 (vaddlvq_s16): Likewise.
2540 (vaddlvq_s32): Likewise.
2541 (vaddlvq_u8): Likewise.
2542 (vaddlvq_u16): Likewise.
2543 (vaddlvq_u32): Likewise.
2544 (vcvtx_f32_f64): Likewise.
2545 (vcvtx_high_f32_f64): Likewise.
2546 (vcvtxd_f32_f64): Likewise.
2547 (vmla_n_f32): Likewise.
2548 (vmla_n_s16): Likewise.
2549 (vmla_n_s32): Likewise.
2550 (vmla_n_u16): Likewise.
2551 (vmla_n_u32): Likewise.
2552 (vmla_s8): Likewise.
2553 (vmla_s16): Likewise.
2554 (vmla_s32): Likewise.
2555 (vmla_u8): Likewise.
2556 (vmla_u16): Likewise.
2557 (vmla_u32): Likewise.
2558 (vmlal_high_n_s16): Likewise.
2559 (vmlal_high_n_s32): Likewise.
2560 (vmlal_high_n_u16): Likewise.
2561 (vmlal_high_n_u32): Likewise.
2562 (vmlal_high_s8): Likewise.
2563 (vmlal_high_s16): Likewise.
2564 (vmlal_high_s32): Likewise.
2565 (vmlal_high_u8): Likewise.
2566 (vmlal_high_u16): Likewise.
2567 (vmlal_high_u32): Likewise.
2568 (vmlal_n_s16): Likewise.
2569 (vmlal_n_s32): Likewise.
2570 (vmlal_n_u16): Likewise.
2571 (vmlal_n_u32): Likewise.
2572 (vmlal_s8): Likewise.
2573 (vmlal_s16): Likewise.
2574 (vmlal_s32): Likewise.
2575 (vmlal_u8): Likewise.
2576 (vmlal_u16): Likewise.
2577 (vmlal_u32): Likewise.
2578 (vmlaq_n_f32): Likewise.
2579 (vmlaq_n_s16): Likewise.
2580 (vmlaq_n_s32): Likewise.
2581 (vmlaq_n_u16): Likewise.
2582 (vmlaq_n_u32): Likewise.
2583 (vmlaq_s8): Likewise.
2584 (vmlaq_s16): Likewise.
2585 (vmlaq_s32): Likewise.
2586 (vmlaq_u8): Likewise.
2587 (vmlaq_u16): Likewise.
2588 (vmlaq_u32): Likewise.
2589 (vmls_n_f32): Likewise.
2590 (vmls_n_s16): Likewise.
2591 (vmls_n_s32): Likewise.
2592 (vmls_n_u16): Likewise.
2593 (vmls_n_u32): Likewise.
2594 (vmls_s8): Likewise.
2595 (vmls_s16): Likewise.
2596 (vmls_s32): Likewise.
2597 (vmls_u8): Likewise.
2598 (vmls_u16): Likewise.
2599 (vmls_u32): Likewise.
2600 (vmlsl_high_n_s16): Likewise.
2601 (vmlsl_high_n_s32): Likewise.
2602 (vmlsl_high_n_u16): Likewise.
2603 (vmlsl_high_n_u32): Likewise.
2604 (vmlsl_high_s8): Likewise.
2605 (vmlsl_high_s16): Likewise.
2606 (vmlsl_high_s32): Likewise.
2607 (vmlsl_high_u8): Likewise.
2608 (vmlsl_high_u16): Likewise.
2609 (vmlsl_high_u32): Likewise.
2610 (vmlsl_n_s16): Likewise.
2611 (vmlsl_n_s32): Likewise.
2612 (vmlsl_n_u16): Likewise.
2613 (vmlsl_n_u32): Likewise.
2614 (vmlsl_s8): Likewise.
2615 (vmlsl_s16): Likewise.
2616 (vmlsl_s32): Likewise.
2617 (vmlsl_u8): Likewise.
2618 (vmlsl_u16): Likewise.
2619 (vmlsl_u32): Likewise.
2620 (vmlsq_n_f32): Likewise.
2621 (vmlsq_n_s16): Likewise.
2622 (vmlsq_n_s32): Likewise.
2623 (vmlsq_n_u16): Likewise.
2624 (vmlsq_n_u32): Likewise.
2625 (vmlsq_s8): Likewise.
2626 (vmlsq_s16): Likewise.
2627 (vmlsq_s32): Likewise.
2628 (vmlsq_u8): Likewise.
2629 (vmlsq_u16): Likewise.
2630 (vmlsq_u32): Likewise.
2631 (vmovl_high_s8): Likewise.
2632 (vmovl_high_s16): Likewise.
2633 (vmovl_high_s32): Likewise.
2634 (vmovl_high_u8): Likewise.
2635 (vmovl_high_u16): Likewise.
2636 (vmovl_high_u32): Likewise.
2637 (vmovl_s8): Likewise.
2638 (vmovl_s16): Likewise.
2639 (vmovl_s32): Likewise.
2640 (vmovl_u8): Likewise.
2641 (vmovl_u16): Likewise.
2642 (vmovl_u32): Likewise.
2643 (vmovn_high_s16): Likewise.
2644 (vmovn_high_s32): Likewise.
2645 (vmovn_high_s64): Likewise.
2646 (vmovn_high_u16): Likewise.
2647 (vmovn_high_u32): Likewise.
2648 (vmovn_high_u64): Likewise.
2649 (vmovn_s16): Likewise.
2650 (vmovn_s32): Likewise.
2651 (vmovn_s64): Likewise.
2652 (vmovn_u16): Likewise.
2653 (vmovn_u32): Likewise.
2654 (vmovn_u64): Likewise.
2655 (vmull_high_n_s16): Likewise.
2656 (vmull_high_n_s32): Likewise.
2657 (vmull_high_n_u16): Likewise.
2658 (vmull_high_n_u32): Likewise.
2659 (vmull_high_p8): Likewise.
2660 (vmull_high_s8): Likewise.
2661 (vmull_high_s16): Likewise.
2662 (vmull_high_s32): Likewise.
2663 (vmull_high_u8): Likewise.
2664 (vmull_high_u16): Likewise.
2665 (vmull_high_u32): Likewise.
2666 (vmull_n_s16): Likewise.
2667 (vmull_n_s32): Likewise.
2668 (vmull_n_u16): Likewise.
2669 (vmull_n_u32): Likewise.
2670 (vmull_p8): Likewise.
2671 (vmull_s8): Likewise.
2672 (vmull_s16): Likewise.
2673 (vmull_s32): Likewise.
2674 (vmull_u8): Likewise.
2675 (vmull_u16): Likewise.
2676 (vmull_u32): Likewise.
2677 (vpadal_s8): Likewise.
2678 (vpadal_s16): Likewise.
2679 (vpadal_s32): Likewise.
2680 (vpadal_u8): Likewise.
2681 (vpadal_u16): Likewise.
2682 (vpadal_u32): Likewise.
2683 (vpadalq_s8): Likewise.
2684 (vpadalq_s16): Likewise.
2685 (vpadalq_s32): Likewise.
2686 (vpadalq_u8): Likewise.
2687 (vpadalq_u16): Likewise.
2688 (vpadalq_u32): Likewise.
2689 (vpaddl_s8): Likewise.
2690 (vpaddl_s16): Likewise.
2691 (vpaddl_s32): Likewise.
2692 (vpaddl_u8): Likewise.
2693 (vpaddl_u16): Likewise.
2694 (vpaddl_u32): Likewise.
2695 (vpaddlq_s8): Likewise.
2696 (vpaddlq_s16): Likewise.
2697 (vpaddlq_s32): Likewise.
2698 (vpaddlq_u8): Likewise.
2699 (vpaddlq_u16): Likewise.
2700 (vpaddlq_u32): Likewise.
2701 (vpaddq_s8): Likewise.
2702 (vpaddq_s16): Likewise.
2703 (vpaddq_s32): Likewise.
2704 (vpaddq_s64): Likewise.
2705 (vpaddq_u8): Likewise.
2706 (vpaddq_u16): Likewise.
2707 (vpaddq_u32): Likewise.
2708 (vpaddq_u64): Likewise.
2709 (vqdmulh_n_s16): Likewise.
2710 (vqdmulh_n_s32): Likewise.
2711 (vqdmulhq_n_s16): Likewise.
2712 (vqdmulhq_n_s32): Likewise.
2713 (vqmovn_high_s16): Likewise.
2714 (vqmovn_high_s32): Likewise.
2715 (vqmovn_high_s64): Likewise.
2716 (vqmovn_high_u16): Likewise.
2717 (vqmovn_high_u32): Likewise.
2718 (vqmovn_high_u64): Likewise.
2719 (vqmovun_high_s16): Likewise.
2720 (vqmovun_high_s32): Likewise.
2721 (vqmovun_high_s64): Likewise.
2722 (vqrdmulh_n_s16): Likewise.
2723 (vqrdmulh_n_s32): Likewise.
2724 (vqrdmulhq_n_s16): Likewise.
2725 (vqrdmulhq_n_s32): Likewise.
2726 (vrsqrte_u32): Likewise.
2727 (vrsqrteq_u32): Likewise.
2728 (vtst_p8): Likewise.
2729 (vtst_p16): Likewise.
2730 (vtst_p64): Likewise.
2731 (vtstq_p8): Likewise.
2732 (vtstq_p16): Likewise.
2733 (vtstq_p64): Likewise.
2734 (vaddlv_s32): Likewise.
2735 (vaddlv_u32): Likewise.
2736 (vqtbl1_p8): Likewise.
2737 (vqtbl1_s8): Likewise.
2738 (vqtbl1_u8): Likewise.
2739 (vqtbl1q_p8): Likewise.
2740 (vqtbl1q_s8): Likewise.
2741 (vqtbl1q_u8): Likewise.
2742 (vqtbx1_s8): Likewise.
2743 (vqtbx1_u8): Likewise.
2744 (vqtbx1_p8): Likewise.
2745 (vqtbx1q_s8): Likewise.
2746 (vqtbx1q_u8): Likewise.
2747 (vqtbx1q_p8): Likewise.
2748 (vtbl1_s8): Likewise.
2749 (vtbl1_u8): Likewise.
2750 (vtbl1_p8): Likewise.
2751 (vtbl2_s8): Likewise.
2752 (vtbl2_u8): Likewise.
2753 (vtbl2_p8): Likewise.
2754 (vtbl3_s8): Likewise.
2755 (vtbl3_u8): Likewise.
2756 (vtbl3_p8): Likewise.
2757 (vtbl4_s8): Likewise.
2758 (vtbl4_u8): Likewise.
2759 (vtbl4_p8): Likewise.
2760 (vtbx2_s8): Likewise.
2761 (vtbx2_u8): Likewise.
2762 (vtbx2_p8): Likewise.
2763 (vld1_f32): Likewise.
2764 (vld1_f64): Likewise.
2765 (vld1_p8): Likewise.
2766 (vld1_p16): Likewise.
2767 (vld1_p64): Likewise.
2768 (vld1_s8): Likewise.
2769 (vld1_s16): Likewise.
2770 (vld1_s32): Likewise.
2771 (vld1_s64): Likewise.
2772 (vld1_u8): Likewise.
2773 (vld1_u16): Likewise.
2774 (vld1_u32): Likewise.
2775 (vld1_u64): Likewise.
2776 (vld1q_f32): Likewise.
2777 (vld1q_f64): Likewise.
2778 (vld1q_p8): Likewise.
2779 (vld1q_p16): Likewise.
2780 (vld1q_p64): Likewise.
2781 (vld1q_s8): Likewise.
2782 (vld1q_s16): Likewise.
2783 (vld1q_s32): Likewise.
2784 (vld1q_s64): Likewise.
2785 (vld1q_u8): Likewise.
2786 (vld1q_u16): Likewise.
2787 (vld1q_u32): Likewise.
2788 (vld1q_u64): Likewise.
2789 (vpmax_s8): Likewise.
2790 (vpmax_s16): Likewise.
2791 (vpmax_s32): Likewise.
2792 (vpmax_u8): Likewise.
2793 (vpmax_u16): Likewise.
2794 (vpmax_u32): Likewise.
2795 (vpmaxq_s8): Likewise.
2796 (vpmaxq_s16): Likewise.
2797 (vpmaxq_s32): Likewise.
2798 (vpmaxq_u8): Likewise.
2799 (vpmaxq_u16): Likewise.
2800 (vpmaxq_u32): Likewise.
2801 (vpmax_f32): Likewise.
2802 (vpmaxq_f32): Likewise.
2803 (vpmaxq_f64): Likewise.
2804 (vpmaxqd_f64): Likewise.
2805 (vpmaxs_f32): Likewise.
2806 (vpmaxnm_f32): Likewise.
2807 (vpmaxnmq_f32): Likewise.
2808 (vpmaxnmq_f64): Likewise.
2809 (vpmaxnmqd_f64): Likewise.
2810 (vpmaxnms_f32): Likewise.
2811 (vpmin_s8): Likewise.
2812 (vpmin_s16): Likewise.
2813 (vpmin_s32): Likewise.
2814 (vpmin_u8): Likewise.
2815 (vpmin_u16): Likewise.
2816 (vpmin_u32): Likewise.
2817 (vpminq_s8): Likewise.
2818 (vpminq_s16): Likewise.
2819 (vpminq_s32): Likewise.
2820 (vpminq_u8): Likewise.
2821 (vpminq_u16): Likewise.
2822 (vpminq_u32): Likewise.
2823 (vpmin_f32): Likewise.
2824 (vpminq_f32): Likewise.
2825 (vpminq_f64): Likewise.
2826 (vpminqd_f64): Likewise.
2827 (vpmins_f32): Likewise.
2828 (vpminnm_f32): Likewise.
2829 (vpminnmq_f32): Likewise.
2830 (vpminnmq_f64): Likewise.
2831 (vpminnmqd_f64): Likewise.
2832 (vpminnms_f32): Likewise.
2833 (vmla_f32): Likewise.
2834 (vmlaq_f32): Likewise.
2835 (vmlaq_f64): Likewise.
2836 (vmls_f32): Likewise.
2837 (vmlsq_f32): Likewise.
2838 (vmlsq_f64): Likewise.
2839 (vqtbl2_s8): Likewise.
2840 (vqtbl2_u8): Likewise.
2841 (vqtbl2_p8): Likewise.
2842 (vqtbl2q_s8): Likewise.
2843 (vqtbl2q_u8): Likewise.
2844 (vqtbl2q_p8): Likewise.
2845 (vqtbl3_s8): Likewise.
2846 (vqtbl3_u8): Likewise.
2847 (vqtbl3_p8): Likewise.
2848 (vqtbl3q_s8): Likewise.
2849 (vqtbl3q_u8): Likewise.
2850 (vqtbl3q_p8): Likewise.
2851 (vqtbl4_s8): Likewise.
2852 (vqtbl4_u8): Likewise.
2853 (vqtbl4_p8): Likewise.
2854 (vqtbl4q_s8): Likewise.
2855 (vqtbl4q_u8): Likewise.
2856 (vqtbl4q_p8): Likewise.
2857 (vqtbx2_s8): Likewise.
2858 (vqtbx2_u8): Likewise.
2859 (vqtbx2_p8): Likewise.
2860 (vqtbx2q_s8): Likewise.
2861 (vqtbx2q_u8): Likewise.
2862 (vqtbx2q_p8): Likewise.
2863 (vqtbx3_s8): Likewise.
2864 (vqtbx3_u8): Likewise.
2865 (vqtbx3_p8): Likewise.
2866 (vqtbx3q_s8): Likewise.
2867 (vqtbx3q_u8): Likewise.
2868 (vqtbx3q_p8): Likewise.
2869 (vqtbx4_s8): Likewise.
2870 (vqtbx4_u8): Likewise.
2871 (vqtbx4_p8): Likewise.
2872 (vqtbx4q_s8): Likewise.
2873 (vqtbx4q_u8): Likewise.
2874 (vqtbx4q_p8): Likewise.
2875 (vrev16_p8): Likewise.
2876 (vrev16_s8): Likewise.
2877 (vrev16_u8): Likewise.
2878 (vrev16q_p8): Likewise.
2879 (vrev16q_s8): Likewise.
2880 (vrev16q_u8): Likewise.
2881 (vrev32_p8): Likewise.
2882 (vrev32_p16): Likewise.
2883 (vrev32_s8): Likewise.
2884 (vrev32_s16): Likewise.
2885 (vrev32_u8): Likewise.
2886 (vrev32_u16): Likewise.
2887 (vrev32q_p8): Likewise.
2888 (vrev32q_p16): Likewise.
2889 (vrev32q_s8): Likewise.
2890 (vrev32q_s16): Likewise.
2891 (vrev32q_u8): Likewise.
2892 (vrev32q_u16): Likewise.
2893 (vrev64_f32): Likewise.
2894 (vrev64_p8): Likewise.
2895 (vrev64_p16): Likewise.
2896 (vrev64_s8): Likewise.
2897 (vrev64_s16): Likewise.
2898 (vrev64_s32): Likewise.
2899 (vrev64_u8): Likewise.
2900 (vrev64_u16): Likewise.
2901 (vrev64_u32): Likewise.
2902 (vrev64q_f32): Likewise.
2903 (vrev64q_p8): Likewise.
2904 (vrev64q_p16): Likewise.
2905 (vrev64q_s8): Likewise.
2906 (vrev64q_s16): Likewise.
2907 (vrev64q_s32): Likewise.
2908 (vrev64q_u8): Likewise.
2909 (vrev64q_u16): Likewise.
2910 (vrev64q_u32): Likewise.
2911 (vsha1cq_u32): Likewise.
2912 (vsha1mq_u32): Likewise.
2913 (vsha1pq_u32): Likewise.
2914 (vsha1h_u32): Likewise.
2915 (vsha1su0q_u32): Likewise.
2916 (vsha1su1q_u32): Likewise.
2917 (vsha256hq_u32): Likewise.
2918 (vsha256h2q_u32): Likewise.
2919 (vsha256su0q_u32): Likewise.
2920 (vsha256su1q_u32): Likewise.
2921 (vmull_p64): Likewise.
2922 (vmull_high_p64): Likewise.
2923 (vsqrt_f32): Likewise.
2924 (vsqrtq_f32): Likewise.
2925 (vsqrt_f64): Likewise.
2926 (vsqrtq_f64): Likewise.
2927 (vst1_f32): Likewise.
2928 (vst1_f64): Likewise.
2929 (vst1_p8): Likewise.
2930 (vst1_p16): Likewise.
2931 (vst1_p64): Likewise.
2932 (vst1_s8): Likewise.
2933 (vst1_s16): Likewise.
2934 (vst1_s32): Likewise.
2935 (vst1_s64): Likewise.
2936 (vst1_u8): Likewise.
2937 (vst1_u16): Likewise.
2938 (vst1_u32): Likewise.
2939 (vst1_u64): Likewise.
2940 (vst1q_f32): Likewise.
2941 (vst1q_f64): Likewise.
2942 (vst1q_p8): Likewise.
2943 (vst1q_p16): Likewise.
2944 (vst1q_p64): Likewise.
2945 (vst1q_s8): Likewise.
2946 (vst1q_s16): Likewise.
2947 (vst1q_s32): Likewise.
2948 (vst1q_s64): Likewise.
2949 (vst1q_u8): Likewise.
2950 (vst1q_u16): Likewise.
2951 (vst1q_u32): Likewise.
2952 (vst1q_u64): Likewise.
2953 (vst1_s64_x2): Likewise.
2954 (vst1_u64_x2): Likewise.
2955 (vst1_f64_x2): Likewise.
2956 (vst1_s8_x2): Likewise.
2957 (vst1_p8_x2): Likewise.
2958 (vst1_s16_x2): Likewise.
2959 (vst1_p16_x2): Likewise.
2960 (vst1_s32_x2): Likewise.
2961 (vst1_u8_x2): Likewise.
2962 (vst1_u16_x2): Likewise.
2963 (vst1_u32_x2): Likewise.
2964 (vst1_f16_x2): Likewise.
2965 (vst1_f32_x2): Likewise.
2966 (vst1_p64_x2): Likewise.
2967 (vst1q_s8_x2): Likewise.
2968 (vst1q_p8_x2): Likewise.
2969 (vst1q_s16_x2): Likewise.
2970 (vst1q_p16_x2): Likewise.
2971 (vst1q_s32_x2): Likewise.
2972 (vst1q_s64_x2): Likewise.
2973 (vst1q_u8_x2): Likewise.
2974 (vst1q_u16_x2): Likewise.
2975 (vst1q_u32_x2): Likewise.
2976 (vst1q_u64_x2): Likewise.
2977 (vst1q_f16_x2): Likewise.
2978 (vst1q_f32_x2): Likewise.
2979 (vst1q_f64_x2): Likewise.
2980 (vst1q_p64_x2): Likewise.
2981 (vst1_s64_x3): Likewise.
2982 (vst1_u64_x3): Likewise.
2983 (vst1_f64_x3): Likewise.
2984 (vst1_s8_x3): Likewise.
2985 (vst1_p8_x3): Likewise.
2986 (vst1_s16_x3): Likewise.
2987 (vst1_p16_x3): Likewise.
2988 (vst1_s32_x3): Likewise.
2989 (vst1_u8_x3): Likewise.
2990 (vst1_u16_x3): Likewise.
2991 (vst1_u32_x3): Likewise.
2992 (vst1_f16_x3): Likewise.
2993 (vst1_f32_x3): Likewise.
2994 (vst1_p64_x3): Likewise.
2995 (vst1q_s8_x3): Likewise.
2996 (vst1q_p8_x3): Likewise.
2997 (vst1q_s16_x3): Likewise.
2998 (vst1q_p16_x3): Likewise.
2999 (vst1q_s32_x3): Likewise.
3000 (vst1q_s64_x3): Likewise.
3001 (vst1q_u8_x3): Likewise.
3002 (vst1q_u16_x3): Likewise.
3003 (vst1q_u32_x3): Likewise.
3004 (vst1q_u64_x3): Likewise.
3005 (vst1q_f16_x3): Likewise.
3006 (vst1q_f32_x3): Likewise.
3007 (vst1q_f64_x3): Likewise.
3008 (vst1q_p64_x3): Likewise.
3009 (vst2_s64): Likewise.
3010 (vst2_u64): Likewise.
3011 (vst2_f64): Likewise.
3012 (vst2_s8): Likewise.
3013 (vst2_p8): Likewise.
3014 (vst2_s16): Likewise.
3015 (vst2_p16): Likewise.
3016 (vst2_s32): Likewise.
3017 (vst2_u8): Likewise.
3018 (vst2_u16): Likewise.
3019 (vst2_u32): Likewise.
3020 (vst2_f16): Likewise.
3021 (vst2_f32): Likewise.
3022 (vst2_p64): Likewise.
3023 (vst2q_s8): Likewise.
3024 (vst2q_p8): Likewise.
3025 (vst2q_s16): Likewise.
3026 (vst2q_p16): Likewise.
3027 (vst2q_s32): Likewise.
3028 (vst2q_s64): Likewise.
3029 (vst2q_u8): Likewise.
3030 (vst2q_u16): Likewise.
3031 (vst2q_u32): Likewise.
3032 (vst2q_u64): Likewise.
3033 (vst2q_f16): Likewise.
3034 (vst2q_f32): Likewise.
3035 (vst2q_f64): Likewise.
3036 (vst2q_p64): Likewise.
3037 (vst3_s64): Likewise.
3038 (vst3_u64): Likewise.
3039 (vst3_f64): Likewise.
3040 (vst3_s8): Likewise.
3041 (vst3_p8): Likewise.
3042 (vst3_s16): Likewise.
3043 (vst3_p16): Likewise.
3044 (vst3_s32): Likewise.
3045 (vst3_u8): Likewise.
3046 (vst3_u16): Likewise.
3047 (vst3_u32): Likewise.
3048 (vst3_f16): Likewise.
3049 (vst3_f32): Likewise.
3050 (vst3_p64): Likewise.
3051 (vst3q_s8): Likewise.
3052 (vst3q_p8): Likewise.
3053 (vst3q_s16): Likewise.
3054 (vst3q_p16): Likewise.
3055 (vst3q_s32): Likewise.
3056 (vst3q_s64): Likewise.
3057 (vst3q_u8): Likewise.
3058 (vst3q_u16): Likewise.
3059 (vst3q_u32): Likewise.
3060 (vst3q_u64): Likewise.
3061 (vst3q_f16): Likewise.
3062 (vst3q_f32): Likewise.
3063 (vst3q_f64): Likewise.
3064 (vst3q_p64): Likewise.
3065 (vst4_s64): Likewise.
3066 (vst4_u64): Likewise.
3067 (vst4_f64): Likewise.
3068 (vst4_s8): Likewise.
3069 (vst4_p8): Likewise.
3070 (vst4_s16): Likewise.
3071 (vst4_p16): Likewise.
3072 (vst4_s32): Likewise.
3073 (vst4_u8): Likewise.
3074 (vst4_u16): Likewise.
3075 (vst4_u32): Likewise.
3076 (vst4_f16): Likewise.
3077 (vst4_f32): Likewise.
3078 (vst4_p64): Likewise.
3079 (vst4q_s8): Likewise.
3080 (vst4q_p8): Likewise.
3081 (vst4q_s16): Likewise.
3082 (vst4q_p16): Likewise.
3083 (vst4q_s32): Likewise.
3084 (vst4q_s64): Likewise.
3085 (vst4q_u8): Likewise.
3086 (vst4q_u16): Likewise.
3087 (vst4q_u32): Likewise.
3088 (vst4q_u64): Likewise.
3089 (vst4q_f16): Likewise.
3090 (vst4q_f32): Likewise.
3091 (vst4q_f64): Likewise.
3092 (vst4q_p64): Likewise.
3093 (vtbx4_s8): Likewise.
3094 (vtbx4_u8): Likewise.
3095 (vtbx4_p8): Likewise.
3096 (vtrn_f32): Likewise.
3097 (vtrn_p8): Likewise.
3098 (vtrn_p16): Likewise.
3099 (vtrn_s8): Likewise.
3100 (vtrn_s16): Likewise.
3101 (vtrn_s32): Likewise.
3102 (vtrn_u8): Likewise.
3103 (vtrn_u16): Likewise.
3104 (vtrn_u32): Likewise.
3105 (vtrnq_f32): Likewise.
3106 (vtrnq_p8): Likewise.
3107 (vtrnq_p16): Likewise.
3108 (vtrnq_s8): Likewise.
3109 (vtrnq_s16): Likewise.
3110 (vtrnq_s32): Likewise.
3111 (vtrnq_u8): Likewise.
3112 (vtrnq_u16): Likewise.
3113 (vtrnq_u32): Likewise.
3114 (vrsqrte_f16): Likewise.
3115 (vrsqrteq_f16): Likewise.
3116 (vsqrt_f16): Likewise.
3117 (vsqrtq_f16): Likewise.
3118 (vabd_f16): Likewise.
3119 (vabdq_f16): Likewise.
3120 (vpadd_f16): Likewise.
3121 (vpaddq_f16): Likewise.
3122 (vpmax_f16): Likewise.
3123 (vpmaxq_f16): Likewise.
3124 (vpmaxnm_f16): Likewise.
3125 (vpmaxnmq_f16): Likewise.
3126 (vpmin_f16): Likewise.
3127 (vpminq_f16): Likewise.
3128 (vpminnm_f16): Likewise.
3129 (vpminnmq_f16): Likewise.
3130 (vrsqrts_f16): Likewise.
3131 (vrsqrtsq_f16): Likewise.
3132
3133 2019-09-25 Richard Biener <rguenther@suse.de>
3134
3135 PR tree-optimization/91896
3136 * tree-vect-loop.c (vectorizable_reduction): The single
3137 def-use cycle optimization cannot apply when there's more
3138 than one pattern stmt involved.
3139
3140 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3141
3142 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3143 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3144 (reload_macho_picbase_<mode>): Likewise.
3145
3146 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3147
3148 * config/rs6000/rs6000.md: Move darwin.md include until
3149 after the definition of the mode iterators.
3150
3151 2019-09-23 Martin Sebor <msebor@redhat.com>
3152
3153 PR tree-optimization/91570
3154 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3155 non-constant minlen, maxlen and maxbound.
3156
3157 2019-09-24 Richard Biener <rguenther@suse.de>
3158
3159 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3160 Rename to...
3161 (_stmt_vec_info::cond_reduc_code): ... this.
3162 (_stmt_vec_info::induc_cond_initial_val): Add.
3163 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3164 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3165 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3166 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3167 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3168 the reduction code.
3169 (vect_create_epilog_for_reduction): Drop special
3170 induction condition reduction params, pass in reduction code
3171 and simplify.
3172 (vectorizable_reduction): Perform condition reduction kind
3173 selection only at analysis time. Adjust passing on state.
3174
3175 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3176
3177 * config/aarch64/aarch64.md (mov<mode>): Don't call
3178 aarch64_split_dimode_const_store on volatile MEM.
3179
3180 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3181
3182 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3183 Update hwcap string for fp16fml.
3184
3185 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3186
3187 PR middle-end/91866
3188 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3189 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3190
3191 2019-09-24 Martin Liska <mliska@suse.cz>
3192
3193 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3194 instead of if-elseif-elseif-...
3195 * gimple-expr.c (extract_ops_from_tree): Likewise.
3196 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3197 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3198
3199 2019-09-24 Martin Jambor <mjambor@suse.cz>
3200
3201 PR ipa/91831
3202 * ipa-param-manipulation.c (carry_over_param): Make a method of
3203 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3204 in case of a context mismatch.
3205 (ipa_param_body_adjustments::common_initialization): Adjust call to
3206 carry_over_param.
3207 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3208 private method carry_over_param.
3209
3210 2019-09-24 Martin Jambor <mjambor@suse.cz>
3211
3212 PR ipa/91832
3213 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3214
3215 2019-09-24 Richard Biener <rguenther@suse.de>
3216
3217 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3218 base.
3219
3220 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3221
3222 * config/arm/t-arm (arm-builtins.o): Add dependency on
3223 arm_acle_builtins.def.
3224
3225 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3226
3227 PR target/91823
3228 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3229 canonical CONST_INTs. Use gen_rtvec.
3230
3231 2019-09-23 Richard Biener <rguenther@suse.de>
3232
3233 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3234 avoid adjusting by + 0 or * 1.
3235 (vect_create_epilog_for_reduction): Get reduction code only
3236 when necessary. Deal with adjustment_def only when necessary.
3237
3238 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3239
3240 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3241 memmodel index.
3242
3243 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3244
3245 PR ipa/91835
3246 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3247 "ipa-sra".
3248
3249 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3250
3251 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3252 code. Merge code blocks with common conditionals. Use declared
3253 macro instead of a magic number for PIC level.
3254
3255 2019-09-21 Martin Sebor <msebor@redhat.com>
3256
3257 PR middle-end/91830
3258 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3259 Simplify computation of the offset of the referenced subobject.
3260
3261 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3262
3263 * config/darwin.c (machopic_legitimize_pic_address): Check
3264 for lra not reload.
3265
3266 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3267
3268 * ira-conflicts.c (can_use_same_reg_p): New function.
3269 (process_reg_shuffles): Take an insn parameter. Ignore cases
3270 in which input operand op_num could seemingly never be allocated
3271 to the same register as the destination.
3272 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3273
3274 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3275
3276 * simplify-rtx.c (neg_const_int): Replace with...
3277 (neg_poly_int_rtx): ...this new function.
3278 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3279 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3280 (simplify_plus_minus): Likewise for constant terms here.
3281
3282 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3283
3284 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3285 HOST_WIDE_PRINT_UNSIGNED.
3286
3287 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3288
3289 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3290 character.
3291
3292 2019-09-20 Maya Rashish <coypu@sdf.org>
3293
3294 PR target/86811
3295 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3296 Define to speculation_safe_value_not_needed.
3297
3298 2019-09-20 Richard Biener <rguenther@suse.de>
3299 Uros Bizjak <ubizjak@gmail.com>
3300
3301 PR target/91814
3302 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3303 previous change.
3304 (general_scalar_chain::convert_op): Force not suitable memory
3305 operands to a register.
3306
3307 2019-09-20 Richard Biener <rguenther@suse.de>
3308
3309 PR tree-optimization/91821
3310 * tree-vect-loop.c (check_reduction_path): Check we can compute
3311 reduc_idx.
3312 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3313 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3314 operands in canonical order.
3315 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3316 STMT_VINFO_REDUC_IDX.
3317 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3318 (STMT_VINFO_REDUC_IDX): Likewise.
3319
3320 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3321
3322 PR target/91269
3323 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3324
3325 2019-09-20 Richard Biener <rguenther@suse.de>
3326
3327 PR tree-optimization/91822
3328 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3329 parameter.
3330 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3331 for reduc_index in nested cycles, adjust vectorizable_condition
3332 calls.
3333 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3334 parameter.
3335 (vect_analyze_stmt): Adjust.
3336 (vect_transform_stmt): Likewise.
3337
3338 2019-09-20 Richard Biener <rguenther@suse.de>
3339
3340 PR target/91767
3341 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3342 Ensure there's a sequence point between allocating the new register
3343 and passing a reference to a reg via regno_reg_rtx.
3344
3345 2019-09-20 Martin Jambor <mjambor@suse.cz>
3346
3347 * coretypes.h (cgraph_edge): Declare.
3348 * ipa-param-manipulation.c: Rewrite.
3349 * ipa-param-manipulation.h: Likewise.
3350 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3351 (OBJS): Added ipa-sra.o.
3352 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3353 and ref_p, added fields param_adjustments and performed_splits.
3354 (struct cgraph_clone_info): Remove ags_to_skip and
3355 combined_args_to_skip, new field param_adjustments.
3356 (cgraph_node::create_clone): Changed parameters to use
3357 ipa_param_adjustments.
3358 (cgraph_node::create_virtual_clone): Likewise.
3359 (cgraph_node::create_virtual_clone_with_body): Likewise.
3360 (tree_function_versioning): Likewise.
3361 (cgraph_build_function_type_skip_args): Removed.
3362 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3363 using ipa_param_adjustments.
3364 (clone_of_p): Likewise.
3365 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3366 (build_function_decl_skip_args): Likewise.
3367 (duplicate_thunk_for_node): Adjust parameters using
3368 ipa_param_body_adjustments, copy param_adjustments instead of
3369 args_to_skip.
3370 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3371 (cgraph_node::create_virtual_clone): Likewise.
3372 (cgraph_node::create_version_clone_with_body): Likewise.
3373 (cgraph_materialize_clone): Likewise.
3374 (symbol_table::materialize_all_clones): Likewise.
3375 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3376 ipa_replace_map check.
3377 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3378 (initialize_node_lattices): Make aware that some parameters might have
3379 already been removed.
3380 (want_remove_some_param_p): New function.
3381 (create_specialized_node): Convert to using ipa_param_adjustments and
3382 deal with possibly pre-existing adjustments.
3383 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3384 (output_node_opt_summary): Do not stream removed fields. Stream
3385 parameter adjustments instead of argumetns to skip.
3386 (input_node_opt_summary): Likewise.
3387 (input_node_opt_summary): Likewise.
3388 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3389 * lto-streamer.h (lto_section_type): Likewise.
3390 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3391 param_body_adjs.
3392 (copy_decl_to_var): Declare.
3393 * tree-inline.c (update_clone_info): Do not remap old_tree.
3394 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3395 statements, walk all extra generated statements and remap their
3396 operands.
3397 (redirect_all_calls): Add killed SSA names to a hash set.
3398 (remap_ssa_name): Do not remap killed SSA names.
3399 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3400 half of functionality moved to ipa_param_body_adjustments.
3401 (copy_decl_to_var): Make exported.
3402 (copy_body): Destroy killed_new_ssa_names hash set.
3403 (expand_call_inline): Remap performed splits.
3404 (update_clone_info): Likewise.
3405 (tree_function_versioning): Simplify tree_map processing. Updated to
3406 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3407 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3408 for the new interface.
3409 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3410 (simd_clone_compute_base_data_type): Likewise.
3411 (simd_clone_init_simd_arrays): Adjust for the new interface.
3412 (simd_clone_adjust_argument_types): Likewise.
3413 (struct modify_stmt_info): Likewise.
3414 (ipa_simd_modify_stmt_ops): Likewise.
3415 (ipa_simd_modify_function_body): Likewise.
3416 (simd_clone_adjust): Likewise.
3417 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3418 (type_internals_preclude_sra_p): Make public.
3419 * tree-sra.h: New file.
3420 * ipa-inline-transform.c (save_inline_function_body): Update to
3421 refelct new tree_function_versioning signature.
3422 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3423 ipa_param_adjustments to get current parameter indices.
3424 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3425 (ipcp_update_bits): Likewise.
3426 (ipcp_update_vr): Likewise.
3427 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3428 * ipa-sra.c: New file.
3429 * multiple_target.c (create_target_clone): Update to reflet new type
3430 of create_version_clone_with_body.
3431 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3432 tree_function_versioning.
3433 (modify_function): Update to reflect new type of
3434 tree_function_versioning.
3435 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3436 * passes.def: Remove old IPA-SRA and add new one.
3437 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3438 (make_pass_ipa_sra): Declare.
3439 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3440 ipa_sra_retvalues.
3441 * doc/invoke.texi (ipa-sra-max-replacements): New.
3442
3443 2019-09-19 Martin Sebor <msebor@redhat.com>
3444
3445 PR middle-end/91631
3446 * builtins.c (component_size): Correct trailing array computation,
3447 rename to component_ref_size and move...
3448 (compute_objsize): Adjust.
3449 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3450 (builtin_access::strict): Do not consider memmove.
3451 (builtin_access::write_off): New function.
3452 (builtin_memref::builtin_memref): Initialize refsize.
3453 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3454 refsize.
3455 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3456 Handle refsize.
3457 (builtin_access::builtin_access): Initialize dstoff to destination
3458 refeence offset here instead of in maybe_diag_overlap. Adjust
3459 referencess even to unrelated objects. Adjust sizrange of bounded
3460 string functions to reflect bound. For strcat, adjust destination
3461 sizrange by that of source.
3462 (builtin_access::strcat_overlap): Adjust offsets and sizes
3463 to reflect the increase in destination sizrange above.
3464 (builtin_access::overlap): Do not set dstoff here but instead
3465 in builtin_access::builtin_access.
3466 (check_bounds_or_overlap): Use builtin_access::write_off.
3467 (maybe_diag_access_bounds): Add argument. Add informational notes.
3468 (dump_builtin_memref, dump_builtin_access): New functions.
3469 * tree.c (component_ref_size): ...to here.
3470 * tree.h (component_ref_size): Declare.
3471 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3472 nul in the size of the source string.
3473
3474 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3475
3476 PR c/67224
3477 * doc/cpp.texi: Document support for extended characters in
3478 identifiers.
3479 * doc/cppopts.texi: Likewise.
3480
3481 2019-09-19 Richard Biener <rguenther@suse.de>
3482
3483 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3484 (check_reduction_path): New overload having the path as result.
3485 (vect_is_simple_reduction): From the detected reduction
3486 path build a SLP reduction chain if possible.
3487
3488 2019-09-19 Richard Biener <rguenther@suse.de>
3489
3490 PR target/91814
3491 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3492 Force operand to a register if it isn't nonimmediate_operand.
3493
3494 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3495
3496 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3497 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3498 (logical_op): Remove code attribute.
3499 (logical_OP): Likewise.
3500
3501 2019-09-19 Martin Liska <mliska@suse.cz>
3502
3503 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3504 Use proper casting.
3505
3506 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3507
3508 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3509 registers with %R.
3510
3511 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3512 for NE comparison of TImode values.
3513 (aarch64_emit_load_exclusive): Add support for TImode.
3514 (aarch64_emit_store_exclusive): Likewise.
3515 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3516 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3517 Change iterator from ALLI to ALLI_TI.
3518 (@atomic_compare_and_swap<JUST_TI>): New.
3519 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3520 (aarch64_load_exclusive_pair): New.
3521 (aarch64_store_exclusive_pair): New.
3522 * config/aarch64/iterators.md (JUST_TI): New.
3523
3524 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3525 strong_zero_p for aarch64_track_speculation; unify some code paths;
3526 use aarch64_gen_compare_reg instead of open-coding.
3527
3528 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3529 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3530 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3531 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3532 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3533 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3534 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3535 (atomic_<atomic_op><ALLI>): Likewise.
3536 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3537 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3538 * doc/invoke.texi: Document -moutline-atomics.
3539
3540 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3541
3542 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3543 trivial predicate for condition branch.
3544 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3545 for switch case.
3546 (compute_bb_predicates): Update predicate based on post-dominating
3547 relationship.
3548 (analyze_function_body): Calculate post-dominating information.
3549
3550 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3551
3552 * tree-vectorizer.h (vectorizable_condition): Take an int
3553 reduction index instead of a boolean flag.
3554 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3555 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3556 reductions if the reduction accumulator is the "then" rather
3557 than the "else" value.
3558 (vect_analyze_stmt): Update call accordingly.
3559 (vect_transform_stmt): Likewise.
3560 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3561 asserting that the index is > 0.
3562
3563 2019-09-19 Martin Liska <mliska@suse.cz>
3564
3565 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3566 (sort_congruence_classes_by_decl_uid): Likewise.
3567 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3568 easier sorting.
3569 (sem_item_optimizer::merge_classes): Likewise.
3570
3571 2019-09-19 Richard Biener <rguenther@suse.de>
3572
3573 PR tree-optimization/91812
3574 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3575 volatile loads.
3576
3577 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3578
3579 * defaults.h (TARGET_UNIT): New macro.
3580 (target_unit): New type.
3581 * rtl.h (native_encode_rtx, native_decode_rtx)
3582 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3583 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3584 * rtlanal.c (subreg_lsb_1): Delete.
3585 (subreg_size_lsb): New function.
3586 * simplify-rtx.c: Include rtx-vector-builder.h
3587 (simplify_immed_subreg): Delete.
3588 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3589 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3590 functions.
3591 (simplify_subreg): Use them.
3592 (test_vector_subregs_modes, test_vector_subregs_repeating)
3593 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3594 (test_vector_subregs): New functions.
3595 (test_vector_ops): Call test_vector_subregs for integer vector
3596 modes with at least 2 elements.
3597
3598 2019-09-19 Richard Biener <rguenther@suse.de>
3599
3600 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3601 LOOP_VINFO_OPERANDS_SWAPPED.
3602 (parloops_is_simple_reduction): Likewise.
3603 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3604 initialize operands_swapped.
3605 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3606 (vect_is_slp_reduction): Do not swap operands.
3607 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3608 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3609
3610 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3611
3612 PR target/87007
3613 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3614 Add avx_partial_xmm_update.
3615
3616 2019-09-18 Jim Wilson <jimw@sifive.com>
3617
3618 PR target/91683
3619 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3620 (riscv_move_integer): Likewise.
3621 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3622 riscv_move_integer arg.
3623 (riscv_legitimize_move): Likewise.
3624 (riscv_force_temporary): New parameter in_splitter. Don't call
3625 force_reg if true.
3626 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3627 arg.
3628 (riscv_add_offset): Likewise.
3629 (riscv_split_symbol): New parameter in_splitter. Pass to
3630 riscv_force_temporary.
3631 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3632 arg.
3633 (riscv_move_integer): New parameter in_splitter. New local
3634 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3635 in_splitter TRUE.
3636 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3637 riscv_split_symbol, and riscv_force_temporary args.
3638 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3639 riscv_move_integer arg.
3640 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3641
3642 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3643
3644 PR target/90878
3645 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3646 hard register store cost to 6.
3647
3648 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3649
3650 PR target/91446
3651 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3652 pseudo register store cost from 3 to 6 to make it the same as
3653 QImode and HImode.
3654
3655 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3656
3657 PR target/91738
3658 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3659 (one_cmpldi2): Likewise.
3660 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3661 of the constant parts is simple.
3662 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3663 (logical_op): Add new code attribute.
3664 (logical_OP): Likewise.
3665 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3666 (arm_iordi_operand): Add predicate.
3667 (arm_xordi_operand): Add predicate.
3668
3669 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3670
3671 * config/arm/arm.md (maddsidi4): Remove expander.
3672 (mulsidi3adddi): Remove pattern.
3673 (mulsidi3adddi_v6): Likewise.
3674 (mulsidi3_nov6): Likewise.
3675 (mulsidi3_v6): Likewise.
3676 (umulsidi3): Remove expander.
3677 (umulsidi3_nov6): Remove pattern.
3678 (umulsidi3_v6): Likewise.
3679 (umulsidi3adddi): Likewise.
3680 (umulsidi3adddi_v6): Likewise.
3681 (<Us>mulsidi3): Add combined expander.
3682 (<Us>maddsidi4): Likewise.
3683 (<US>mull): Add combined umull and smull pattern.
3684 (<US>mlal): Likewise.
3685 * config/arm/iterators.md (Us): Add new iterator.
3686
3687 2019-09-18 Richard Biener <rguenther@suse.de>
3688
3689 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3690 swapping.
3691 (vectorize_fold_left_reduction): Remove assert.
3692 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3693 operand in position 2. Remove assert.
3694
3695 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3696
3697 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3698 (smulsi3_highpart_nov6): Remove pattern.
3699 (smulsi3_highpart_v6): Likewise.
3700 (umulsi3_highpart): Likewise.
3701 (umulsi3_highpart_nov6): Likewise.
3702 (umulsi3_highpart_v6): Likewise.
3703 (<US>mull_high): Add new combined multiply pattern.
3704
3705 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3706
3707 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3708 (arm_mulsi3_v6): Likewise.
3709 (mulsi3addsi_v6): Likewise.
3710 (mulsi3subsi): Likewise.
3711 (mul): Add new multiply pattern.
3712 (mla): Likewise.
3713 (mls): Likewise.
3714
3715 2019-09-18 Richard Biener <rguenther@suse.de>
3716
3717 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3718 (parloops_valid_reduction_input_p): Copy from
3719 valid_reduction_input_p.
3720 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3721 (parloops_needs_fold_left_reduction_p): Copy from
3722 needs_fold_left_reduction_p.
3723 (parloops_is_simple_reduction): Copy from
3724 vect_is_simple_reduction.
3725 (parloops_force_simple_reduction): Copy from
3726 vect_force_simple_reduction.
3727 (gather_scalar_reductions): Adjust.
3728 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3729 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3730
3731 2019-09-18 Richard Biener <rguenther@suse.de>
3732
3733 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3734 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3735 static.
3736 (vect_create_epilog_for_reduction): Remove dead code.
3737
3738 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3739
3740 * varasm.c (assemble_real): Generate canonical const_ints.
3741
3742 2019-09-18 Richard Biener <rguenther@suse.de>
3743
3744 PR lto/91763
3745 * lto-streamer-in.c (input_eh_regions): Move EH init to
3746 lto_materialize_function.
3747 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3748 Likewise.
3749
3750 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3751
3752 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3753 are INTEGER_CSTs.
3754
3755 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3756
3757 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3758 of checking specifically for INTEGER_CST.
3759
3760 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3761
3762 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3763 sizes instead of uhwi sizes.
3764
3765 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3766
3767 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3768 (add_const_value_attribute): Handle CONST_POLY_INT.
3769
3770 2019-09-18 Martin Liska <mliska@suse.cz>
3771
3772 * dbgcnt.def (store_merging): New counter.
3773 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3774 Use it in store merging.
3775
3776 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3777
3778 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3779 function.
3780 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3781 * config/arm/arm.c (arm_sched_variable_issue): New function.
3782 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3783
3784 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3785
3786 * config/arm/types.md (no_reservation): New reservation.
3787 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3788 no_insn here.
3789 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3790 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3791 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3792 * config/arm/arm1020e.md (1020alu_op): Likewise.
3793 * config/arm/arm1026ejs.md (alu_op): Likewise.
3794 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3795 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3796 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3797 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3798 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3799 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3800 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3801 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3802 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3803 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3804 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3805 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3806 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3807 * config/arm/fa526.md (526_alu_op): Likewise.
3808 * config/arm/fa606te.md (606te_alu_op): Likewise.
3809 * config/arm/fa626te.md (626te_alu_op): Likewise.
3810 * config/arm/fa726te.md (726te_alu_op): Likewise.
3811 * config/arm/xgene1.md (xgene1_nop): Likewise.
3812
3813 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3814
3815 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3816 "no_insn" to "branch".
3817
3818 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3819
3820 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3821
3822 2019-09-17 Richard Biener <rguenther@suse.de>
3823
3824 PR debug/91772
3825 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3826 was missing generate locations only once.
3827
3828 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
3829
3830 PR ipa/91089
3831 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3832 option.
3833 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3834 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3835 for switch default case using range analysis information.
3836
3837 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
3838
3839 PR target/91749
3840 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3841 mode attributed is supported by FDPIC.
3842
3843 2019-09-17 Richard Biener <rguenther@suse.de>
3844
3845 PR tree-optimization/91790
3846 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3847 use the correct DR for setting up realignment.
3848
3849 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
3850
3851 PR target/91719
3852 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3853 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3854 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3855 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3856
3857 2019-09-16 Jason Merrill <jason@redhat.com>
3858
3859 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3860
3861 2019-09-16 Martin Liska <mliska@suse.cz>
3862
3863 * gimple-fold.c (or_comparisons_1): Remove rules moved
3864 to ...
3865 * match.pd: ... here.
3866
3867 2019-09-16 Martin Liska <mliska@suse.cz>
3868
3869 * gimple-fold.c (or_comparisons_1): Remove rules
3870 moved to ...
3871 * match.pd: ... here.
3872
3873 2019-09-16 Martin Liska <mliska@suse.cz>
3874
3875 * genmatch.c (dt_node::append_simplify): Do not print
3876 warning when we have duplicate patterns belonging
3877 to a same simplify rule.
3878 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
3879 (maybe_fold_comparisons_from_match_pd): Handle
3880 tcc_comparison as a results.
3881 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
3882
3883 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3884 Qi Feng <ffengqi@linux.ibm.com>
3885
3886 PR middle-end/88784
3887 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
3888 (x > y && x == XXX_MIN): Optimize into 'false'.
3889 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
3890 (x < y && x != XXX_MAX): Optimize into 'x < y'.
3891 (x < y && x == XXX_MAX): Optimize into 'false'.
3892 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
3893 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
3894 (x <= y || x != XXX_MIN): Optimize into 'true'.
3895 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
3896 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
3897 (x >= y || x != XXX_MAX): Optimize into 'true'.
3898 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
3899
3900 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3901 Martin Liska <mliska@suse.cz>
3902
3903 * gimple-fold.c (and_comparisons_1): Add type as first
3904 argument.
3905 (and_var_with_comparison): Likewise.
3906 (and_var_with_comparison_1): Likewise.
3907 (or_comparisons_1): Likewise.
3908 (or_var_with_comparison): Likewise.
3909 (or_var_with_comparison_1): Likewise.
3910 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
3911 (maybe_fold_or_comparisons): Likewise.
3912 (maybe_fold_comparisons_from_match_pd): New.
3913 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
3914 (maybe_fold_or_comparisons): Likewise.
3915 * gimple.c (gimple_size): Make it public and add num_ops argument.
3916 (gimple_init): New function.
3917 (gimple_alloc): Call gimple_init.
3918 * gimple.h (gimple_size): New.
3919 (gimple_init): Likewise.
3920 * tree-if-conv.c (fold_or_predicates): Pass type.
3921 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3922 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
3923 (optimize_vec_cond_expr): Likewise.
3924 (ovce_extract_ops): Return type of conditional expression.
3925 * tree-ssanames.c (init_ssa_name_imm_use): New.
3926 (make_ssa_name_fn): Use init_ssa_name_imm_use.
3927 * tree-ssanames.h (init_ssa_name_imm_use): New.
3928
3929 2019-09-16 Richard Biener <rguenther@suse.de>
3930
3931 PR tree-optimization/91756
3932 PR tree-optimization/87132
3933 * tree-ssa-alias.h (enum translate_flags): New.
3934 (get_continuation_for_phi): Use it instead of simple bool flag.
3935 (walk_non_aliased_vuses): Likewise.
3936 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3937 (get_continuation_for_phi): When looking across backedges only
3938 disallow valueization.
3939 (walk_non_aliased_vuses): Adjust.
3940 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
3941 if requested.
3942
3943 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
3944
3945 PR middle-end/80791
3946 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
3947 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3948 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3949 * target.def (have_count_reg_decr_p): New hook.
3950 (doloop_cost_for_generic): Likewise.
3951 (doloop_cost_for_address): Likewise.
3952 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
3953 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
3954 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
3955 * doc/tm.texi: Regenerate.
3956 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
3957 addend.
3958 (record_group): Init doloop_p.
3959 (add_candidate_1): Add optional argument doloop, change the handlings
3960 accordingly.
3961 (add_candidate): Likewise.
3962 (generic_predict_doloop_p): Update attribute.
3963 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
3964 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
3965 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
3966 MIN_EXPR.
3967 (get_computation_cost): Update for doloop IV cand extra cost.
3968 (determine_group_iv_cost_cond): Update for doloop IV cand.
3969 (determine_iv_cost): Likewise.
3970 (ivopts_estimate_reg_pressure): Likewise.
3971 (may_eliminate_iv): Update handlings for doloop IV cand.
3972 (add_iv_candidate_for_doloop): New function.
3973 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
3974 (iv_ca_set_no_cp): Update for doloop IV cand.
3975 (iv_ca_set_cp): Likewise.
3976 (iv_ca_dump): Dump register cost.
3977 (find_doloop_use): New function.
3978 (analyze_and_mark_doloop_use): Likewise.
3979 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
3980
3981 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3982
3983 PR middle-end/91708
3984 * cse.c (cse_insn): Do not replace anything with a
3985 MEM.
3986
3987 2019-09-13 Ian Lance Taylor <iant@golang.org>
3988
3989 * doc/invoke.texi (Optimize Options): Fix typo.
3990
3991 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
3992
3993 PR tree-optimization/89386
3994 * config/i386/sse.md (smulhrs<mode>3): New expander.
3995 (smulhrsv4hi3): Ditto.
3996
3997 2019-09-12 Richard Biener <rguenther@suse.de>
3998
3999 PR tree-optimization/91750
4000 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4001 in the type of the evolution.
4002
4003 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4004
4005 PR tree-optimization/89386
4006 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4007 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4008 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4009 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4010 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4011 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4012 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4013 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4014 (su, r): Handle the unspecs above.
4015 (bt): New int attribute.
4016 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4017 * internal-fn.c (first_commutative_argument): Commutativity info for
4018 above.
4019 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4020 (umulhrs_optab): New optabs.
4021 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4022 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4023 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4024 function.
4025 (vect_vect_recog_func_ptrs): Add it.
4026
4027 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4028
4029 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4030 code.
4031
4032 2019-09-11 Nathan Sidwell <nathan@acm.org>
4033
4034 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4035 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4036
4037 2019-09-11 Richard Biener <rguenther@suse.de>
4038
4039 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4040 * lto-wrapper.c (merge_and_complain): Pick up -g.
4041 (append_compiler_options): Likewise.
4042 (run_gcc): Re-instantiate handling -g0 at link-time.
4043 * doc/invoke.texi (flto): Document debug info generation.
4044
4045 2019-09-11 Richard Biener <rguenther@suse.de>
4046
4047 PR tree-optimization/90387
4048 * vr-values.c (vr_values::extract_range_basic): After inlining
4049 simplify non-constant __builtin_constant_p to false.
4050
4051 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4052
4053 PR rtl-optimization/89795
4054 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4055 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4056
4057 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4058
4059 PR tree-optimization/91723
4060 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4061 instead of pointer equality when checking if argument vectypes are
4062 the same.
4063
4064 PR middle-end/91725
4065 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4066 of get_nonzero_bits, only call it for integral types.
4067
4068 2019-09-11 Richard Biener <rguenther@suse.de>
4069
4070 Revert
4071 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4072
4073 * match.pd: Add flag_unsafe_math_optimizations check
4074 before deciding on the widest type in a binary math operation.
4075
4076 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4077
4078 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4079 and CALL_REALLY_USED_REGISTERS must be defined, and that
4080 CALL_REALLY_USED_REGISTERS is preferred.
4081 * doc/tm.texi: Regenerate.
4082 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4083 (call_really_used_regs): Likewise.
4084 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4085 CALL_REALLY_USED_REGISTERS are defined.
4086 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4087 initial value if defined.
4088 (initial_call_really_used_regs): Delete.
4089 (saved_call_really_used_regs): Likewise.
4090 (CALL_REALLY_USED_REGNO_P): Likewise.
4091 (init_reg_sets): Remove handling of call_really_used_regs.
4092 (save_register_info, restore_register_info, globalize_reg): Likewise.
4093 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4094 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4095 outside operand_reg_set.
4096 (fix_register): Don't change call_used_regs if
4097 CALL_REALLY_USED_REGISTERS is defined.
4098 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4099 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4100 instead of call_really_used_regs.
4101 (csky_conditional_register_usage): Remove the old handling of
4102 call_used_regs and change the handling of call_really_used_regs
4103 to use call_used_regs instead.
4104 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4105 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4106 making a register fixed.
4107 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4108 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4109 instead of call_really_used_regs.
4110 (m32r_conditional_register_usage): Don't set call_used_regs when
4111 making a register fixed.
4112 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4113 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4114 instead of call_really_used_regs.
4115 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4116 (mips_cfun_call_saved_reg_p): Likewise.
4117 (mips_swap_registers): Remove the old handling of call_used_regs
4118 and change the handling of call_really_used_regs to use call_used_regs
4119 instead.
4120 (mips_conditional_register_usage): Likewise.
4121 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4122 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4123 instead of call_really_used_regs.
4124 (mn10300_get_live_callee_saved_regs): Likewise.
4125 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4126 (mn10300_conditional_register_usage): Don't set call_used_regs when
4127 making a register fixed.
4128 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4129 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4130 Remove the old handling of call_used_regs and change the handling
4131 of call_really_used_regs to use call_used_regs instead.
4132 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4133 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4134 instead of call_really_used_regs.
4135 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4136 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4137 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4138 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4139 (s390_conditional_register_usage): Remove the old handling of
4140 call_used_regs and change the handling of call_really_used_regs
4141 to use call_used_regs instead.
4142 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4143 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4144 (sh_fix_range, reg_unused_after): Likewise.
4145 (sh_conditional_register_usage): Remove the old handling of
4146 call_used_regs and change the handling of call_really_used_regs
4147 to use call_used_regs instead.
4148 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4149 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4150 call_used_regs when making a register fixed.
4151 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4152 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4153 call_used_regs when making a register fixed.
4154 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4155 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4156 set call_used_regs when making a register fixed.
4157 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4158 * config/visium/visium.c (visium_conditional_register_usage): Remove
4159 the old handling of call_used_regs and change the handling of
4160 call_really_used_regs to use call_used_regs instead.
4161
4162 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4163
4164 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4165 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4166 * reginfo.c (call_used_regs): New macro.
4167
4168 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4169
4170 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4171 fixed_regs test.
4172 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4173 (bpf_expand_epilogue): Likewise.
4174 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4175 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4176 (ft32_expand_epilogue): Likewise.
4177 * config/i386/i386.c (ix86_save_reg): Likewise.
4178 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4179 (moxie_expand_epilogue): Likewise.
4180 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4181 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4182 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4183
4184 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4185
4186 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4187 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4188 instead of testing call_used_regs directly.
4189 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4190 (aarch64_components_for_bb): Likewise.
4191 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4192 * config/arc/arc.c (arc_must_save_register): Likewise.
4193 (arc_epilogue_uses): Likewise.
4194 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4195 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4196 (arm_compute_save_reg0_reg12_mask): Likewise.
4197 (arm_compute_save_core_reg_mask): Likewise.
4198 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4199 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4200 (cmse_nonsecure_entry_clear_before_return): Likewise.
4201 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4202 (arm_expand_epilogue): Likewise.
4203 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4204 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4205 (_reg_unused_after): Likewise.
4206 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4207 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4208 (add_to_reg, hwloop_optimize): Likewise.
4209 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4210 (bpf_expand_epilogue): Likewise.
4211 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4212 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4213 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4214 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4215 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4216 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4217 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4218 * config/frv/frv.c (frv_stack_info): Likewise.
4219 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4220 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4221 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4222 (move_callee_saved_registers): Likewise.
4223 * config/h8300/h8300.c (byte_reg): Likewise.
4224 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4225 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4226 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4227 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4228 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4229 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4230 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4231 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4232 * config/m32c/m32c.c (need_to_save): Likewise.
4233 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4234 * config/mcore/mcore.c (calc_live_regs): Likewise.
4235 * config/microblaze/microblaze.c (microblaze_must_save_register):
4236 Likewise.
4237 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4238 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4239 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4240 (mmix_expand_epilogue): Likewise.
4241 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4242 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4243 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4244 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4245 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4246 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4247 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4248 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4249 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4250 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4251 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4252 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4253 * config/rl78/rl78.c (need_to_save): Likewise.
4254 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4255 (rs6000_stack_info, generate_set_vrsave): Likewise.
4256 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4257 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4258 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4259 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4260 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4261 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4262 (save_local_or_in_reg_p): Likewise.
4263 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4264 (xstormy16_epilogue_uses): Likewise.
4265 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4266 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4267 * config/v850/v850.c (compute_register_save_size): Likewise.
4268 * config/vax/vax.c (vax_expand_prologue): Likewise.
4269 * config/visium/visium.c (visium_save_reg_p): Likewise.
4270 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4271 * cselib.c (cselib_process_insn): Likewise.
4272 * df-scan.c (df_get_entry_block_def_set): Likewise.
4273 * function.c (aggregate_value_p): Likewise.
4274 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4275 * ira-lives.c (process_bb_node_lives): Likewise.
4276 * ira.c (do_reload): Likewise.
4277 * lra-lives.c (process_bb_lives): Likewise.
4278 * lra-remat.c (lra_remat): Likewise.
4279 * lra.c (lra): Likewise.
4280 * postreload.c (reload_combine_recognize_pattern): Likewise.
4281 (reload_cse_move2add): Likewise.
4282 * recog.c (peep2_find_free_register): Likewise.
4283 * regrename.c (check_new_reg_p): Likewise.
4284 * reload.c (find_equiv_reg): Likewise.
4285 * reload1.c (reload, find_reg): Likewise.
4286 * sel-sched.c (init_hard_regs_data): Likewise.
4287
4288 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4289
4290 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4291 regs_invalidated_by_call & ~fixed_reg_set instead of
4292 call_used_or_fixed_regs & ~fixed_reg_set.
4293 * config/sh/sh.c (output_stack_adjust): Likewise.
4294
4295 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4296
4297 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4298 (call_used_reg_set): Delete.
4299 (call_used_or_fixed_regs): New macro.
4300 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4301 of call_used_reg_set.
4302 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4303 instead of call_used_regs.
4304 (save_call_clobbered_regs): Likewise.
4305 * cfgcleanup.c (old_insns_match_p): Likewise.
4306 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4307 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4308 Likewise.
4309 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4310 * config/sh/sh.c (output_stack_adjust): Likewise.
4311 * final.c (collect_fn_hard_reg_usage): Likewise.
4312 * ira-build.c (ira_build): Likewise.
4313 * ira-color.c (calculate_saved_nregs): Likewise.
4314 (allocno_reload_assign, calculate_spill_cost): Likewise.
4315 * ira-conflicts.c (ira_build_conflicts): Likewise.
4316 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4317 * ira-lives.c (process_bb_node_lives): Likewise.
4318 * ira.c (setup_reg_renumber): Likewise.
4319 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4320 * lra-constraints.c (need_for_call_save_p): Likewise.
4321 (need_for_split_p, inherit_in_ebb): Likewise.
4322 * lra-lives.c (process_bb_lives): Likewise.
4323 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4324 * postreload.c (reload_combine): Likewise.
4325 * regrename.c (find_rename_reg): Likewise.
4326 * reload1.c (reload_as_needed): Likewise.
4327 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4328 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4329 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4330
4331 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4332
4333 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4334 (no_caller_save_reg_set): Delete.
4335 * caller-save.c (init_caller_save): Don't initialize it.
4336 * ira-conflicts.c (ira_build_conflicts): Calculate
4337 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4338
4339 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4340
4341 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4342 (target_hard_regs::x_savable_regs): New field.
4343 (call_fixed_reg_set): Delete.
4344 (savable_regs): New macro,
4345 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4346 (init_reg_sets_1): Likewise. Initialize savable_regs.
4347 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4348 for all registers. Set savable_regs instead of call_fixed_reg_set.
4349 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4350 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4351 * config/sh/sh.c (output_stack_adjust): Likewise.
4352
4353 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4354
4355 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4356 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4357 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4358
4359 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4360
4361 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4362 * rtlanal.c (get_call_rtx_from): Likewise.
4363 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4364 than the pattern to get_call_rtx_from.
4365 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4366 an rtx_insn * instead of an rtx.
4367 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4368
4369 2019-09-10 Martin Liska <mliska@suse.cz>
4370
4371 * common.opt: Use newly added WarnRemoved.
4372 * config/aarch64/aarch64.opt: Likewise.
4373 * config/arm/arm.opt: Likewise.
4374 * config/i386/i386.opt: Likewise.
4375 * config/ia64/ia64.opt: Likewise.
4376 * config/rs6000/rs6000.opt: Likewise.
4377 * doc/options.texi: Document WarnRemoved properly.
4378 * dwarf2out.c (gen_producer_string): Handle renamed
4379 OPT_SPECIAL_warn_removed.
4380 * lto-opts.c (lto_write_options): Likewise.
4381 * lto-wrapper.c (merge_and_complain): Likewise.
4382 * opts-common.c (decode_cmdline_option): Likewise.
4383 (prune_options): Likewise.
4384 (read_cmdline_option): Likewise.
4385 (control_warning_option): Likewise.
4386 * opts.c (print_filtered_help): Likewise.
4387 * optc-gen.awk: Parse for WarnRemoved and make usage
4388 of Deprecated an error.
4389 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4390
4391 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4392
4393 * doc/install.texi: Fix syntax for html generation.
4394
4395 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4396
4397 PR middle-end/91680
4398 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4399 the shift type to type.
4400
4401 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4402
4403 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4404 FDPIC mode.
4405 (stack_protect_combined_test_insn): Likewise.
4406
4407 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4408 Mickaël Guêné <mickael.guene@st.com>
4409
4410 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4411 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4412 (load_tp_soft_fdpic): New pattern.
4413 (load_tp_soft): Disable in FDPIC mode.
4414
4415 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4416 Mickaël Guêné <mickael.guene@st.com>
4417
4418 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4419 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4420 (arm_call_tls_get_addr): Add FDPIC support.
4421 (legitimize_tls_address): Likewise.
4422 (arm_emit_tls_decoration): Likewise.
4423
4424 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4425 Mickaël Guêné <mickael.guene@st.com>
4426
4427 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4428 support.
4429 (arm_trampoline_init): Likewise.
4430 (arm_trampoline_adjust_address): Likewise.
4431 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4432
4433 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4434 Mickaël Guêné <mickael.guene@st.com>
4435
4436 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4437 (legitimize_pic_address): Enforce binding rules on function
4438 pointers in FDPIC mode.
4439 (arm_assemble_integer): Likewise.
4440
4441 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4442 Mickaël Guêné <mickael.guene@st.com>
4443
4444 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4445 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4446 FDPIC.
4447
4448 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4449 Mickaël Guêné <mickael.guene@st.com>
4450
4451 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4452 field.
4453
4454 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4455 Mickaël Guêné <mickael.guene@st.com>
4456
4457 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4458 in FDPIC mode.
4459 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4460 new function.
4461 * config/arm/arm.c (arm_option_override): Define pic register to
4462 FDPIC_REGNUM.
4463 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4464 have no decl or go through PLT.
4465 (calculate_pic_address_constant): New function.
4466 (legitimize_pic_address): Call calculate_pic_address_constant.
4467 (arm_load_pic_register): Handle TARGET_FDPIC.
4468 (arm_is_segment_info_known): New function.
4469 (arm_pic_static_addr): Add support for FDPIC.
4470 (arm_load_function_descriptor): New function.
4471 (arm_emit_call_insn): Add support for FDPIC.
4472 (arm_assemble_integer): Add support for FDPIC.
4473 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4474 Define. (FDPIC_REGNUM): New define.
4475 * config/arm/arm.md (call): Add support for FDPIC.
4476 (call_value): Likewise.
4477 (restore_pic_register_after_call): New pattern.
4478 (untyped_call): Disable if FDPIC.
4479 (untyped_return): Likewise.
4480 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4481
4482 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4483 Mickaël Guêné <mickael.guene@st.com>
4484
4485 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4486 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4487 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4488 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4489 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4490 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4491 * config/arm/uclinuxfdpiceabi.h: New file.
4492
4493 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4494
4495 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4496
4497 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4498 Mickaël Guêné <mickael.guene@st.com>
4499
4500 * config/arm/arm.opt: Add -mfdpic option.
4501 * doc/invoke.texi: Add documentation for -mfdpic.
4502
4503 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4504
4505 * expmed.c (extract_bit_field): Update function comment
4506 regarding alt_rtl.
4507 * expr.c (expand_expr_real): Update function comment
4508 regarding alt_rtl.
4509 (expand_misaligned_mem_ref): New helper function.
4510 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4511 Remove duplicate assignment to "base" at case MEM_REF.
4512 Remove a shadowed variable "unsignedp" at case VCE.
4513
4514 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4515
4516 * regset.h (regs_invalidated_by_call_regset): Delete.
4517 (fixed_reg_set_regset): Likewise.
4518 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4519 (fixed_reg_set_regset, persistent_obstack): Likewise.
4520 (init_reg_sets_1, globalize_reg): Update accordingly.
4521 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4522 instead of a bitmap.
4523 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4524 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4525 instead of regs_invalidated_by_call_regset.
4526 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4527 * df-scan.c (df_scan_start_dump): Likewise.
4528 * dse.c (copy_fixed_regs): Likewise.
4529 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4530
4531 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4532
4533 * array-traits.h: New file.
4534 * coretypes.h (array_traits, bitmap_view): New types.
4535 * bitmap.h: Include "array-traits.h"
4536 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4537 (base_bitmap_view, bitmap_view): New classes.
4538 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4539 * hard-reg-set.h: Include array-traits.h.
4540 (array_traits<HARD_REG_SET>): New struct.
4541 * regset.h (IOR_REG_SET_HRS): New macro.
4542 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4543 rather than iterating over each hard register.
4544 * sched-deps.c (sched_analyze_insn): Likewise.
4545 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4546
4547 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4548
4549 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4550 instead of a HARD_REG_SET *.
4551 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4552 (ira_build): Update call accordingly.
4553 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4554
4555 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4556
4557 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4558 (HARD_REG_SET::operator!=): Likewise.
4559 (hard_reg_set_equal_p): Delete.
4560 * cfgcleanup.c (old_insns_match_p): Use == instead of
4561 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4562 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4563 (add_allocno_hard_regs_to_forest): Likewise.
4564 (setup_allocno_available_regs_num): Likewise.
4565 * ira.c (setup_pressure_classes): Likewise.
4566 (setup_allocno_and_important_classes): Likewise.
4567 (setup_reg_class_relations): Likewise.
4568 * lra-lives.c (process_bb_lives): Likewise.
4569 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4570
4571 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4572
4573 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4574 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4575 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4576 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4577 Likewise.
4578 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4579 * ira.c (setup_reg_renumber): Likewise.
4580 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4581 * regrename.c (regrename_find_superclass): Likewise.
4582 * reload1.c (find_reg): Likewise.
4583
4584 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4585
4586 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4587 * caller-save.c (setup_save_areas): Use "&~" instead of
4588 AND_COMPL_HARD_REG_SET.
4589 (save_call_clobbered_regs): Likewise.
4590 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4591 Likewise.
4592 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4593 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4594 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4595 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4596 (mips_conditional_register_usage): Likewise.
4597 * config/sh/sh.c (output_stack_adjust): Likewise.
4598 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4599 (setup_profitable_hard_regs): Likewise.
4600 (get_conflict_and_start_profitable_regs): Likewise.
4601 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4602 (ira_build_conflicts): Likewise.
4603 * ira-costs.c (restrict_cost_classes): Likewise.
4604 (setup_regno_cost_classes_by_aclass): Likewise.
4605 * ira-lives.c (process_bb_node_lives): Likewise.
4606 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4607 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4608 (setup_allocno_and_important_classes, setup_class_translate_array)
4609 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4610 Likewise.
4611 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4612 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4613 (process_alt_operands, inherit_in_ebb): Likewise.
4614 * lra-eliminations.c (update_reg_eliminate): Likewise.
4615 * lra-lives.c (process_bb_lives): Likewise.
4616 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4617 * resource.c (find_dead_or_set_registers): Likewise.
4618 (mark_target_live_regs): Likewise.
4619 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4620 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4621 (implicit_clobber_conflict_p): Likewise.
4622 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4623 (try_shrink_wrapping): Likewise.
4624
4625 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4626
4627 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4628 (HARD_REG_SET::operator|=): Likewise.
4629 (IOR_HARD_REG_SET): Delete.
4630 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4631 IOR_HARD_REG_SET.
4632 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4633 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4634 * final.c (collect_fn_hard_reg_usage): Likewise.
4635 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4636 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4637 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4638 (propagate_some_info_from_allocno): Likewise.
4639 (copy_info_to_removed_store_destinations): Likewise.
4640 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4641 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4642 (fast_allocation): Likewise.
4643 * ira-conflicts.c (ira_build_conflicts): Likewise.
4644 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4645 (process_bb_node_lives): Likewise.
4646 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4647 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4648 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4649 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4650 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4651 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4652 (process_bb_lives): Likewise.
4653 * lra-spills.c (assign_spill_hard_regs): Likewise.
4654 * postreload.c (reload_combine): Likewise.
4655 * reginfo.c (init_reg_sets_1): Likewise.
4656 * regrename.c (merge_overlapping_regs, find_rename_reg)
4657 (merge_chains): Likewise.
4658 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4659 (find_reload_regs, finish_spills, choose_reload_regs_init)
4660 (emit_reload_insns): Likewise.
4661 * reorg.c (redundant_insn): Likewise.
4662 * resource.c (find_dead_or_set_registers, mark_set_resources)
4663 (mark_target_live_regs): Likewise.
4664 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4665 * sched-deps.c (sched_analyze_insn): Likewise.
4666 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4667 (find_best_reg_for_expr): Likewise.
4668 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4669
4670 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4671
4672 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4673 (HARD_REG_SET::operator&): Likewise.
4674 (AND_HARD_REG_SET): Delete.
4675 * caller-save.c (setup_save_areas): Use "&" instead of
4676 AND_HARD_REG_SET.
4677 (save_call_clobbered_regs): Likewise.
4678 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4679 * config/m32c/m32c.c (reduce_class): Likewise.
4680 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4681 * final.c (get_call_reg_set_usage): Likewise.
4682 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4683 (setup_left_conflict_sizes_p): Likewise.
4684 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4685 (ira_build_conflicts): Likewise.
4686 * ira-costs.c (restrict_cost_classes): Likewise.
4687 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4688 (setup_reg_class_relations): Likewise.
4689 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4690 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4691 * resource.c (find_dead_or_set_registers): Likewise.
4692 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4693
4694 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4695
4696 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4697 (COMPL_HARD_REG_SET): Delete.
4698 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4699 of COMPL_HARD_REG_SET.
4700 (try_rename_operands): Likewise.
4701 * config/sh/sh.c (push_regs): Likewise.
4702 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4703 * lra-constraints.c (contains_reg_p): Likewise.
4704 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4705
4706 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4707
4708 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4709 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4710 of COPY_HARD_REG_SET.
4711 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4712 (epiphany_conditional_register_usage): Likewise.
4713 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4714 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4715 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4716 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4717 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4718 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4719 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4720 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4721 * config/sh/sh.c (output_stack_adjust): Likewise.
4722 * final.c (collect_fn_hard_reg_usage): Likewise.
4723 (get_call_reg_set_usage): Likewise.
4724 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4725 (ira_flattening): Likewise.
4726 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4727 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4728 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4729 (ira_reassign_pseudos): Likewise.
4730 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4731 (ira_build_conflicts): Likewise.
4732 * ira-costs.c (restrict_cost_classes): Likewise.
4733 (setup_regno_cost_classes_by_aclass): Likewise.
4734 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4735 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4736 (setup_stack_reg_pressure_class, setup_pressure_classes)
4737 (setup_allocno_and_important_classes, setup_class_translate_array)
4738 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4739 (ira_setup_eliminable_regset): Likewise.
4740 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4741 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4742 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4743 (process_alt_operands, inherit_in_ebb): Likewise.
4744 * lra-lives.c (process_bb_lives): Likewise.
4745 * lra-spills.c (assign_spill_hard_regs): Likewise.
4746 * lra.c (lra): Likewise.
4747 * mode-switching.c (new_seginfo): Likewise.
4748 * postreload.c (reload_combine): Likewise.
4749 * reg-stack.c (straighten_stack): Likewise.
4750 * reginfo.c (save_register_info, restore_register_info): Likewise.
4751 (init_reg_sets_1, record_subregs_of_mode): Likewise
4752 * regrename.c (create_new_chain, rename_chains): Likewise.
4753 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4754 (find_reload_regs): Likewise.
4755 * resource.c (find_dead_or_set_registers): Likewise.
4756 (mark_target_live_regs): Likewise.
4757 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4758
4759 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4760
4761 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4762 (note_pattern_stores): Declare.
4763 (note_stores): Take an rtx_insn *.
4764 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4765 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4766 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4767 (note_stores): Take an rtx_insn * as argument and process
4768 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4769 (note_pattern_stores): ...this.
4770 (find_first_parameter_load): Pass the insn rather than
4771 its pattern to note_stores.
4772 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4773 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4774 (insert_one_insn): Likewise.
4775 * combine.c (combine_instructions): Likewise.
4776 (likely_spilled_retval_p): Likewise.
4777 (try_combine): Use note_pattern_stores instead of note_stores.
4778 (record_dead_and_set_regs): Pass the insn rather than its pattern
4779 to note_stores.
4780 (reg_dead_at_p): Likewise.
4781 * config/bfin/bfin.c (workaround_speculation): Likewise.
4782 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4783 rather than an rtx.
4784 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4785 instead of note_stores.
4786 (frv_optimize_membar_local): Pass the insn rather than its pattern
4787 to note_stores.
4788 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4789 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4790 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4791 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4792 (mips_reorg_process_insns): Likewise.
4793 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4794 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4795 rather than rtxes.
4796 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4797 its pattern to note_stores.
4798 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4799 of note_stores.
4800 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4801 the insn to note_stores.
4802 (prescan_insns_for_dce): Update call accordingly.
4803 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4804 to note_stores.
4805 * df-problems.c (can_move_insns_across): Likewise.
4806 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4807 * function.c (assign_parm_setup_reg): Likewise.
4808 * gcse-common.c (record_last_mem_set_info_common): Likewise.
4809 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4810 (single_set_gcse): Likewise.
4811 * ira.c (validate_equiv_mem): Likewise.
4812 (update_equiv_regs): Use note_pattern_stores rather than note_stores
4813 for no_equiv.
4814 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4815 pattern to note_stores.
4816 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4817 * loop-iv.c (simplify_using_initial_values): Likewise.
4818 * mode-switching.c (optimize_mode_switching): Likewise.
4819 * optabs.c (emit_libcall_block_1): Likewise.
4820 (expand_atomic_compare_and_swap): Likewise.
4821 * postreload-gcse.c (load_killed_in_block_p): Likewise.
4822 (record_opr_changes): Likewise. Remove explicit handling of
4823 CALL_INSN_FUNCTION_USAGE.
4824 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4825 * regcprop.c (kill_clobbered_values): Likewise.
4826 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4827 to note_stores.
4828 * regrename.c (build_def_use): Likewise.
4829 * reload1.c (reload): Use note_pattern_stores instead of note_stores
4830 for mark_not_eliminable.
4831 (reload_as_needed): Pass the insn rather than its pattern
4832 to note_stores.
4833 (emit_output_reload_insns): Likewise.
4834 * resource.c (mark_target_live_regs): Likewise.
4835 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4836 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4837 instead of note_stores.
4838 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4839 its pattern to note_stores.
4840 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4841 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4842
4843 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4844
4845 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4846 than a #define. Use a structure rather than an array as the
4847 fallback definition. Remove special cases for low array sizes.
4848 (const_hard_reg_set): New typedef.
4849 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4850 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4851 (hard_reg_set_empty_p): Likewise.
4852 (SET_HARD_REG_BIT): Use a function rather than a macro to
4853 handle the case in which HARD_REG_SET is a structure.
4854 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4855 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4856 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4857 (IOR_COMPL_HARD_REG_SET): Likewise.
4858 (hard_reg_set_iterator::pset): Constify the pointer target.
4859 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4860 of a "const HARD_REG_SET". Update the handling of non-integer
4861 HARD_REG_SETs.
4862 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4863 * reload.h: Likewise.
4864 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4865 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4866 of a "const HARD_REG_SET".
4867 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4868 (range_in_hard_reg_set_p): Likewise.
4869 * ira-costs.c (restrict_cost_classes): Likewise.
4870 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
4871 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4872 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
4873 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
4874 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
4875 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
4876 take an unsigned int and open-code the HARD_REG_SET operations.
4877
4878 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4879
4880 * Makefile.in (OBJS): Remove bt-load.o.
4881 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
4882 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4883 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
4884 document that the option no longer does anything.
4885 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4886 * target.def (branch_target_register_class): Delete.
4887 (branch_target_register_callee_saved): Likewise.
4888 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4889 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4890 * doc/tm.texi: Regenerate.
4891 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
4892 (make_pass_branch_target_load_optimize2): Likewise.
4893 * passes.def (pass_branch_target_load_optimize1): Likewise.
4894 (pass_branch_target_load_optimize2): Likewise.
4895 * targhooks.h (default_branch_target_register_class): Likewise.
4896 * targhooks.c (default_branch_target_register_class): Likewise.
4897 * opt-suggestions.c (test_completion_valid_options): Remove
4898 -fbtr-bb-exclusive from the list of test options.
4899 * bt-load.c: Remove.
4900
4901 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4902
4903 * match.pd: Add flag_unsafe_math_optimizations check
4904 before deciding on the widest type in a binary math operation.
4905
4906 2019-09-09 Martin Liska <mliska@suse.cz>
4907
4908 * config/i386/i386.opt: Update comment of removed
4909 options that are preserved only for backward
4910 compatibility.
4911
4912 2019-09-09 Jakub Jelinek <jakub@redhat.com>
4913
4914 PR target/87853
4915 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
4916 instead of __v16qs.
4917
4918 PR target/91704
4919 * config/i386/avxintrin.h (__v32qs): New typedef.
4920 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
4921 instead of __v32qi.
4922
4923 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4924
4925 * doc/invoke.texi (Option Summary): Cover eBPF.
4926 (eBPF Options): New section.
4927 * doc/extend.texi (BPF Built-in Functions): Likewise.
4928 (BPF Kernel Helpers): Likewise.
4929
4930 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4931
4932 * config.gcc: Support for bpf-*-* targets.
4933 * common/config/bpf/bpf-common.c: New file.
4934 * config/bpf/t-bpf: Likewise.
4935 * config/bpf/predicates.md: Likewise.
4936 * config/bpf/constraints.md: Likewise.
4937 * config/bpf/bpf.opt: Likewise.
4938 * config/bpf/bpf.md: Likewise.
4939 * config/bpf/bpf.h: Likewise.
4940 * config/bpf/bpf.c: Likewise.
4941 * config/bpf/bpf-protos.h: Likewise.
4942 * config/bpf/bpf-opts.h: Likewise.
4943 * config/bpf/bpf-helpers.h: Likewise.
4944 * config/bpf/bpf-helpers.def: Likewise.
4945
4946 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4947
4948 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4949 indirect_calls.
4950
4951 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
4952
4953 * opt-functions.awk (integer_range_info): Make sure values are in
4954 numeric context before operating with them.
4955
4956 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
4957
4958 * genemit.c (gen_split): Print the filename and line number where the
4959 splitter (or peephole2) was defined, to the dump file.
4960
4961 2019-09-07 Jakub Jelinek <jakub@redhat.com>
4962
4963 PR tree-optimization/91665
4964 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
4965 incompatible with the type of PHI result.
4966
4967 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
4968
4969 PR target/91684
4970 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
4971 gen_unaligned_storedi for 4-byte aligned addresses.
4972
4973 2019-09-06 Jim Wilson <jimw@sifive.com>
4974
4975 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
4976 change.
4977
4978 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4979
4980 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
4981
4982 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
4983
4984 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
4985 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
4986
4987 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
4988
4989 PR target/91654
4990 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
4991 cost of SSE->integer and integer->SSE moves from 2 to 6.
4992 (core_cost): Ditto.
4993
4994 2019-09-06 Jakub Jelinek <jakub@redhat.com>
4995
4996 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
4997 before testing TYPE_TRANSPARENT_AGGR.
4998 * calls.c (initialize_argument_information, load_register_parameters):
4999 Likewise.
5000
5001 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5002
5003 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5004 high regs.
5005 (cmp_ior): Likewise.
5006
5007 2019-09-06 Martin Liska <mliska@suse.cz>
5008
5009 * doc/match-and-simplify.texi: Separate tuples with ;.
5010
5011 2019-09-06 Martin Liska <mliska@suse.cz>
5012
5013 PR c++/91125
5014 * Makefile.in: Remove tlink.o.
5015 * collect2.c (do_link): New function isolated
5016 from do_tlink.
5017 (main): Use.
5018 * collect2.h (do_tlink): Remove declaration of do_tlink.
5019 * doc/extend.texi: Remove documentation of -frepo.
5020 * doc/invoke.texi: Likewise.
5021 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5022 * tlink.c: Remove.
5023
5024 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5025 Jim Wilson <jimw@sifive.com>
5026
5027 PR target/91635
5028 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5029 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5030 paradoxical_subreg_p (operands[0]).
5031 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5032 use as intermediate value.
5033
5034 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5035
5036 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5037 (sync_compare_and_swap<mode>_insn): Likewise.
5038
5039 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5040
5041 PR middle-end/91615
5042 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5043 without movmisalign optab.
5044
5045 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5046
5047 PR middle-end/91001
5048 PR middle-end/91105
5049 PR middle-end/91106
5050 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5051 types, use type of their first field instead of type of
5052 args[i].tree_value.
5053
5054 2019-09-05 Richard Biener <rguenther@suse.de>
5055
5056 PR rtl-optimization/91656
5057 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5058 of early out.
5059
5060 2019-09-05 Richard Biener <rguenther@suse.de>
5061
5062 PR middle-end/90501
5063 * tree-inline.c (declare_return_variable): Mark the return
5064 slot as addressable after building an address of it.
5065
5066 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5067
5068 * doc/install.texi: Update and clarify requirements to build GNAT.
5069
5070 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5071
5072 PR middle-end/91577
5073 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5074 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5075 call to be in memory.
5076 (pass_expand::execute): Call discover_nonconstant_array_refs before
5077 setting currently_expanding_to_rtl.
5078
5079 2019-09-04 Caroline Tice <cmtice@google.com>
5080
5081 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5082 specified together.
5083
5084 2019-09-04 Marek Polacek <polacek@redhat.com>
5085
5086 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5087
5088 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5089
5090 PR target/32413
5091 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5092 for QI and HImode moves between SSE and general registers.
5093
5094 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5095
5096 PR c/78736
5097 * doc/invoke.texi: Document -Wenum-conversion.
5098
5099 2019-09-04 Richard Biener <rguenther@suse.de>
5100
5101 PR rtl-optimization/36262
5102 * postreload-gcse.c: Include intl.h and gcse.h.
5103 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5104 to avoid linear list walk.
5105 (record_last_mem_set_info): Gate off if not computing transparentness.
5106 (get_bb_avail_insn): If transparentness isn't computed give up
5107 early.
5108 (gcse_after_reload_main): Skip compute_transp and extended PRE
5109 if gcse_or_cprop_is_too_expensive says so.
5110
5111 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5112
5113 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5114 noinit section.
5115 (msp430_select_section): Handle decls with the "noinit" attribute with
5116 default_elf_select_section.
5117 Handle SECCAT_RODATA_MERGE_* section types with
5118 default_elf_select_section.
5119 Add comments about handling of unsupported section types.
5120 (msp430_section_type_flags): Remove handling of the noinit section.
5121
5122 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5123
5124 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5125 conflicting msp430-specific attributes.
5126 (msp430_section_attr): Likewise.
5127 Add warnings about conflicts with generic "noinit" and "section"
5128 attributes.
5129 Fix grammar in -mlarge error message.
5130 (msp430_data_attr): Rename to msp430_persist_attr.
5131 Add warnings about conflicts with generic "noinit" and "section"
5132 attributes.
5133 Add warning for when variable is not initialized.
5134 Chain conditionals which prevent the attribute being added.
5135 (ATTR_EXCL): New helper.
5136 (attr_reent_exclusions): New exclusion table.
5137 (attr_naked_exclusions): Likewise.
5138 (attr_crit_exclusions): Likewise.
5139 (attr_lower_exclusions): Likewise.
5140 (attr_upper_exclusions): Likewise.
5141 (attr_either_exclusions): Likewise.
5142 (attr_persist_exclusions): Likewise.
5143 (msp430_attribute_table): Update with exclusion rules.
5144 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5145 has a section.
5146
5147 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5148
5149 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5150 (msp430_handle_generic_attribute): New function.
5151 * doc/tm.texi: Regenerate.
5152 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5153 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5154 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5155 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5156
5157 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5158
5159 PR tree-optimization/91504
5160 * match.pd: Add ((~a & b) ^a) --> (a | b).
5161
5162 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR target/91604
5165 * config/i386/i386-expand.c (split_double_mode): If there is more than
5166 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5167 already split matching MEM operand instead of calling adjust_address
5168 again.
5169
5170 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5171
5172 * config.gcc: Obsolete spu target. Remove references to spu.
5173 * configure.ac: Remove references to spu.
5174 * configure: Regenerate.
5175 * config/spu/: Remove directory.
5176 * common/config/spu/: Remove directory.
5177
5178 * doc/extend.texi: Remove references to spu.
5179 * doc/invoke.texi: Likewise.
5180 * doc/md.texi: Likewise.
5181 * doc/sourcebuild.texi: Likewise.
5182
5183 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5184
5185 PR middle-end/91603
5186 PR middle-end/91612
5187 PR middle-end/91613
5188 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5189 and SSA_NAME referring to CONSTANT_P correctly.
5190
5191 2019-09-03 Richard Biener <rguenther@suse.de>
5192
5193 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5194 (vn_nary_op_insert): Likewise.
5195 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5196 (vn_nary_op_lookup): Likewise.
5197 (vn_nary_op_insert): Likewise.
5198
5199 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5200
5201 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5202 (*op0, 1) instead of XEXP (*op1, 0).
5203
5204 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5205
5206 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5207 (aarch64_fjcvtzs): New define_insn.
5208 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5209 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5210 Add AARCH64_JSCVT.
5211 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5212 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5213 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5214 __ARM_FEATURE_JCVT where appropriate.
5215 * config/aarch64/arm_acle.h (__jcvt): Define.
5216
5217 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5218
5219 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5220 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5221 (aarch64_<frintnzs_op><mode>): New define_insn.
5222 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5223 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5224 __ARM_FEATURE_FRINT when appropriate.
5225 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5226 frint32x, frint64z, frint64x.
5227 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5228 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5229 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5230 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5231 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5232 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5233 * config/aarch64/iterators.md (VSFDF): Define.
5234 (FRINTNZX): Likewise.
5235 (frintnzs_op): Likewise.
5236
5237 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5238
5239 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5240 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5241 Cortex-A34.
5242 * config/aarch64/aarch64-tune.md: Regenerated.
5243 * doc/invoke.texi: Document the new processors.
5244
5245 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5246
5247 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5248 string.
5249 (ssbs): Likewise.
5250 (sve2): Likewise.
5251 (sve2-sm4): Likewise.
5252 (sveaes): Likewise.
5253 (svesha3): Likewise.
5254 (svebitperm): Likewise.
5255
5256 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5257 Richard Biener <rguenther@suse.de>
5258
5259 PR tree-optimization/91597
5260 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5261 BIT_AND_EXPR optimization for pointers, even if both operand
5262 ranges don't include NULL, the result can be NULL.
5263
5264 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5265
5266 PR middle-end/91605
5267 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5268 (non_mem_decl_p): ...this.
5269 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5270 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5271 unconditionally as before.
5272
5273 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5274
5275 PR target/91323
5276 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5277 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5278 * tree.def (LTGT_EXPR): Likewise.
5279 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5280
5281 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5282
5283 PR go/91617
5284 * fold-const.c (range_check_type): For enumeral and boolean
5285 type, pass 1 to type_for_size langhook instead of
5286 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5287 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5288 (build_range_check): Don't call unsigned_type_for for pointer types.
5289 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5290 range_check_type result.
5291
5292 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5293
5294 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5295 (replace_ref): Do not replace a chain of only two candidates which are
5296 valid memory references.
5297
5298 2019-09-02 Martin Liska <mliska@suse.cz>
5299
5300 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5301 Bail out when we'll end up with the same number of clusters as
5302 at the beginning.
5303 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5304 (jump_table_cluster::can_be_handled): Remove the guard
5305 as it's already handled in ::is_enabled. Allocate output
5306 after early bail out.
5307
5308 2019-09-02 Martin Liska <mliska@suse.cz>
5309
5310 PR gcov-profile/91601
5311 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5312 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5313 also negative edges.
5314 (circuit): Handle also negative edges as they can happen
5315 in some situations.
5316
5317 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5318
5319 PR target/91472
5320 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5321 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5322 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5323
5324 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5325
5326 PR middle-end/91623
5327 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5328 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5329 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5330 zero vector.
5331
5332 PR lto/91572
5333 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5334 GIMPLE_ASM TREE_LIST operands.
5335
5336 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5337
5338 * doc/generic.texi (Unary and Binary Expressions): Mark up
5339 an instance of TYPE_MIN.
5340
5341 2019-08-31 Stafford Horne <shorne@gmail.com>
5342
5343 * config/or1k/constraints.md (t): New constraint.
5344 * config/or1k/or1k.h (GOT_REGS): New register class.
5345 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5346
5347 2019-08-30 Jim Wilson <jimw@sifive.com>
5348
5349 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5350 and -fpic and -mplt then disable -msave-restore and warn.
5351
5352 2019-08-30 Martin Sebor <msebor@redhat.com>
5353
5354 PR middle-end/91599
5355 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5356 the statement doesn't have one.
5357 * gimple-pretty-print.c (percent_G_format): Same.
5358
5359 PR middle-end/91584
5360 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5361 before using them to validate MEM_REF offset.
5362
5363 2019-08-30 Marek Polacek <polacek@redhat.com>
5364
5365 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5366
5367 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5368
5369 * config/arm/arm.md (unaligned_loaddi,
5370 unaligned_storedi): New unspec insn patterns.
5371 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5372 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5373 and unaligned_storedi for 4-byte aligned memory.
5374 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5375 4-byte aligned memory.
5376
5377 2019-08-30 Martin Jambor <mjambor@suse.cz>
5378
5379 tree-optimization/91579
5380 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5381 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5382 appropriate.
5383 (arg_needs_copy_p): Removed.
5384 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5385 arg_needs_copy_p.
5386 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5387
5388 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5389
5390 * config/i386/i386-features.c
5391 (general_scalar_chain::compute_convert_gain):
5392 Correct cost for double-word shifts.
5393 (general_scalar_to_vector_candidate_p): Reject count operands
5394 greater or equal to mode bitsize.
5395
5396 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5397
5398 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5399 for moves between SSE and non-general registers and between
5400 mask and non-general registers.
5401 (ix86_register_move_cost): Remove stalled comment.
5402
5403 2019-08-29 Richard Biener <rguenther@suse.de>
5404
5405 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5406 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5407
5408 2019-08-29 Richard Biener <rguenther@suse.de>
5409
5410 PR bootstrap/91580
5411 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5412 Do not emit scalar copies for debug-insns, instead replace
5413 their uses with the reg copy used in the chain or reset them
5414 if there is a reaching definition outside of the chain as well.
5415
5416 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5417
5418 PR target/91560
5419 * config/i386/i386-expand.c (expand_vec_perm_movs,
5420 expand_vec_perm_blend, expand_vec_perm_vpermil,
5421 expand_vec_perm_pshufb, expand_vec_perm_1,
5422 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5423 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5424 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5425 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5426 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5427 comments - replace ix86_expand_vec_perm_builtin_1 with
5428 ix86_expand_vec_perm_const_1.
5429 (expand_vec_perm2_vperm2f128_vblend): New function.
5430 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5431 expand_vec_perm2_vperm2f128_vblend as last resort.
5432 (canonicalize_perm): Formatting fix.
5433
5434 PR tree-optimization/91351
5435 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5436 unsigned_type_for.
5437 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5438 range_check_type returns NULL.
5439 * tree-switch-conversion.c (switch_conversion::build_one_array):
5440 Use range_check_type instead of unsigned_type_for, don't perform
5441 linear opt if it returns NULL.
5442 (bit_test_cluster::find_bit_tests): Formatting fix.
5443 (bit_test_cluster::emit): Use range_check_type instead of
5444 unsigned_type_for.
5445 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5446 returns NULL.
5447
5448 2019-08-29 Richard Biener <rguenther@suse.de>
5449
5450 PR tree-optimization/91568
5451 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5452 (vect_update_max_nunits): Add overload for poly_uint64.
5453 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5454 (vect_build_slp_tree): Record max_nunits into the subtree
5455 and merge it upwards.
5456 (vect_print_slp_tree): Print max_nunits.
5457
5458 2019-08-28 Marek Polacek <polacek@redhat.com>
5459
5460 Implement P1152R4: Deprecating some uses of volatile.
5461 PR c++/91361
5462 * doc/invoke.texi: Document -Wvolatile.
5463
5464 2019-08-28 Marek Polacek <polacek@redhat.com>
5465
5466 PR c++/91360 - Implement C++20 P1143R2: constinit.
5467 * doc/invoke.texi: Document -Wc++20-compat.
5468
5469 2019-08-28 Martin Sebor <msebor@redhat.com>
5470
5471 PR tree-optimization/91457
5472 * builtins.c (component_size): New function.
5473 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5474 * builtins.h (compute_objsize): Add argument.
5475 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5476 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5477 (vrp_prop::check_mem_ref): Same.
5478 (vrp_prop::search_for_addr_array): Set no-warning bit.
5479 (check_array_bounds): Same.
5480
5481 2019-08-28 Martin Sebor <msebor@redhat.com>
5482
5483 PR driver/80545
5484 * opts-common.c (option_enabled): Correct checking for language
5485 options.
5486
5487 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5488
5489 * config/i386/i386.c (ix86_register_move_cost): Do not
5490 limit the cost of moves to/from XMM register to minimum 8.
5491
5492 2019-08-28 Martin Jambor <mjambor@suse.cz>
5493
5494 PR ipa/91468
5495 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5496 checking assert a normal assert to test it really is redundant.
5497 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5498 redundant test.
5499 (update_jump_functions_after_inlining): Removed combining unary
5500 arithmetic operations with an ancestor jump function.
5501 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5502 instead of t.
5503
5504 2019-08-28 Richard Biener <rguenther@suse.de>
5505
5506 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5507 add the MD problem.
5508
5509 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5510 Richard Biener <rguenther@suse.de>
5511
5512 * expr.c (expand_assignment): Handle misaligned DECLs.
5513 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5514 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5515 too.
5516 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5517 * varasm.c (build_constant_desc): Align constants of misaligned types.
5518 * config/arm/predicates.md (aligned_operand): New predicate.
5519 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5520 aligned_operand to check restrictions on memory addresses.
5521 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5522 * config/arm/vec-common.md (mov<VALL>): Likewise.
5523
5524 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5525
5526 PR libgomp/91530
5527 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5528 V_128 iterator instead of VI_128.
5529
5530 2019-08-28 Martin Liska <mliska@suse.cz>
5531
5532 PR tree-optimization/90970
5533 * builtins.c (check_access): Remove assignment to maxread
5534 as it hasn't been used since when it was introduced in r255755.
5535
5536 2019-08-27 Martin Sebor <msebor@redhat.com>
5537
5538 PR tree-optimization/91567
5539 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5540 of unknown strings.
5541 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5542 to PTRDIFF_MAX - 2.
5543
5544 2019-08-27 Jeff Law <law@redhat.com>
5545
5546 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5547 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5548
5549 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5550
5551 PR target/91528
5552 * config/i386/i386-features.c (convert_scalars_to_vector):
5553 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5554 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5555 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5556 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5557
5558 2019-08-27 Richard Biener <rguenther@suse.de>
5559
5560 * config/i386/i386-features.h
5561 (general_scalar_chain::~general_scalar_chain): Add.
5562 (general_scalar_chain::insns_conv): New bitmap.
5563 (general_scalar_chain::n_sse_to_integer): New.
5564 (general_scalar_chain::n_integer_to_sse): Likewise.
5565 (general_scalar_chain::make_vector_copies): Adjust signature.
5566 * config/i386/i386-features.c
5567 (general_scalar_chain::general_scalar_chain): Outline,
5568 initialize new members.
5569 (general_scalar_chain::~general_scalar_chain): New.
5570 (general_scalar_chain::mark_dual_mode_def): Record insns
5571 we need to insert conversions at and count them.
5572 (general_scalar_chain::compute_convert_gain): Account
5573 for conversion instructions at chain boundary.
5574 (general_scalar_chain::make_vector_copies): Generate a single
5575 copy for a def by a specific insn.
5576 (general_scalar_chain::convert_registers): First populate
5577 defs_map, then make copies at out-of chain insns.
5578
5579 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5580
5581 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5582 comment.
5583 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5584
5585 2019-08-27 Martin Liska <mliska@suse.cz>
5586
5587 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5588 loop.
5589 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5590 Enclose in anonymous namespace.
5591 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5592 hard_register initialization in braces.
5593 * tree-vrp.h (value_range_base::supports_type_p): Return false
5594 for function with boolean return type.
5595
5596 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5597
5598 * config/i386/i386.c (emit_i387_cw_initialization)
5599 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5600
5601 2019-08-26 Martin Sebor <msebor@redhat.com>
5602
5603 PR c++/83431
5604 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5605 (sprintf_dom_walker): Remove class.
5606 (get_int_range): Make argument const.
5607 (directive::fmtfunc, directive::set_precision): Same.
5608 (format_none): Same.
5609 (build_intmax_type_nodes): Same.
5610 (adjust_range_for_overflow): Same.
5611 (format_floating): Same.
5612 (format_character): Same.
5613 (format_string): Same.
5614 (format_plain): Same.
5615 (get_int_range): Cast away constness.
5616 (format_integer): Same.
5617 (get_string_length): Call get_range_strlen_dynamic. Handle
5618 null lendata.maxbound.
5619 (should_warn_p): Adjust argument scope qualifier.
5620 (maybe_warn): Same.
5621 (format_directive): Same.
5622 (parse_directive): Same.
5623 (is_call_safe): Same.
5624 (try_substitute_return_value): Same.
5625 (sprintf_dom_walker::handle_printf_call): Rename...
5626 (handle_printf_call): ...to this. Initialize target to host charmap
5627 here instead of in pass_sprintf_length::execute.
5628 (struct call_info): Make global.
5629 (sprintf_dom_walker::compute_format_length): Make global.
5630 (sprintf_dom_walker::handle_gimple_call): Same.
5631 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5632 * print-rtl.c (print_pattern): Reduce the number of spaces to
5633 avoid -Wformat-truncation.
5634 * tree-pass.h (make_pass_warn_printf): New function.
5635 * tree-ssa-strlen.c (strlen_optimize): New variable.
5636 (get_string_length): Add comments.
5637 (get_range_strlen_dynamic): New function.
5638 (check_and_optimize_call): New function.
5639 (handle_integral_assign): New function.
5640 (strlen_check_and_optimize_stmt): Factor code out into
5641 strlen_check_and_optimize_call and handle_integral_assign.
5642 (strlen_dom_walker::evrp): New member.
5643 (strlen_dom_walker::before_dom_children): Use evrp member.
5644 (strlen_dom_walker::after_dom_children): Use evrp member.
5645 (printf_strlen_execute): New function.
5646 (pass_strlen::gate): Update to handle printf calls.
5647 (dump_strlen_info): New function.
5648 (pass_data_warn_printf): New variable.
5649 (pass_warn_printf): New class.
5650 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5651 (handle_printf_call): Same.
5652 * tree-vrp.c (value_range_base::type): Adjust assertion.
5653 * vr-values.c (vr_values::update_value_range): Use type of the first
5654 argument rather than the second.
5655
5656 2019-08-26 Richard Biener <rguenther@suse.de>
5657
5658 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5659 Remove.
5660 (convert_scalars_to_vector): Do not call it.
5661
5662 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5663 Uros Bizjak <ubizjak@gmail.com>
5664
5665 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5666 CASE_MATHFN_FLOATN for roundeven.
5667 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5668 I387_ROUNDEVEN.
5669 (ix86_mode_needed): Likewise.
5670 (ix86_mode_after): Likewise.
5671 (ix86_mode_entry): Likewise.
5672 (ix86_mode_exit): Likewise.
5673 (ix86_emit_mode_set): Likewise.
5674 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5675 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5676 (ix86_entity): Add I387_ROUNDEVEN.
5677 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5678 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5679 (define_int_iterator): Likewise.
5680 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5681 (define_constant): Define ROUND_ROUNDEVEN mode.
5682 (define_attr): Add roundeven mode for i387_cw.
5683 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5684 * internal-fn.def (ROUNDEVEN): New builtin function.
5685 * optabs.def (roundeven_optab): New optab.
5686
5687 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5688
5689 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5690 for ROUNDEVEN.
5691 * builtins.def: Added function definitions for roundeven function
5692 variants.
5693 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5694 function call. Adjust condition for floor, ceil, trunc and round.
5695 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5696 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5697 (integer_valued_real_call_p): Added case for roundeven function.
5698 * real.c (is_even): New function. Returns true if real number is even,
5699 otherwise returns false.
5700 (is_halfway_below): New function. Returns true if real number is
5701 halfway between two integers, else return false.
5702 (real_roundeven): New function. Round real number to nearest integer,
5703 rounding halfway cases towards even.
5704 * real.h (real_value): Added descriptive comments. Added function
5705 declaration for roundeven function.
5706 * doc/extend.texi (Other Builtins): List roundeven variants among
5707 functions which can be handled as builtins.
5708
5709 2019-08-26 Richard Biener <rguenther@suse.de>
5710
5711 PR target/91522
5712 PR target/91527
5713 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5714 New member.
5715 (general_scalar_chain::replace_with_subreg): Remove.
5716 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5717 (general_scalar_chain::convert_reg): Adjust signature.
5718 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5719 iterate over all defs of a reg.
5720 (general_scalar_chain::replace_with_subreg): Remove.
5721 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5722 (general_scalar_chain::make_vector_copies): Populate defs_map,
5723 place copy only after defs that are used as vectors in the chain.
5724 (general_scalar_chain::convert_reg): Emit a copy for a specific
5725 def in a specific instruction.
5726 (general_scalar_chain::convert_op): All reg uses are converted here.
5727 (general_scalar_chain::convert_insn): Emit copies for scalar
5728 uses of defs here. Replace uses with the copies we created.
5729 Replace and convert the def. Adjust REG_DEAD notes, remove
5730 REG_EQUIV/EQUAL notes.
5731 (general_scalar_chain::convert_registers): Only handle copies
5732 into the chain here.
5733
5734 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5735
5736 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5737
5738 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5739
5740 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5741 Add nop_convert case.
5742 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5743 Fold all statements if requested.
5744 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5745 Allow to fold all statements.
5746 * tree-vrp.c (class vrp_folder):
5747 Let substitute_and_fold_engine fold all statements.
5748
5749 2019-08-26 Richard Biener <rguenther@suse.de>
5750
5751 PR tree-optimization/91526
5752 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5753 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5754 TODO_update_address_taken.
5755
5756 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5757
5758 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5759 __STDC_HOSTED__.
5760
5761 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5762
5763 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5764 machine mode for unspec_volatile operand.
5765
5766 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5767
5768 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5769 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5770 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5771 (prefer_neon_for_64bits): Remove.
5772 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5773 (tune_params): Remove PREF_NEON_64_FALSE uses.
5774 (arm_option_override): Remove prefer_neon selection code.
5775 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5776 * gcc/config/arm/arm-protos.h (tune_params): Remove
5777 prefer_neon_for_64bits.
5778 (prefer_neon_for_64bits): Remove.
5779
5780 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5781
5782 PR pch/61250
5783 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5784 and issue any diagnostics needed before collecting the pre-PCH
5785 state.
5786
5787 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5788
5789 PR middle-end/91283
5790 * common.opt (fexcess-precision=): Add Optimization flag. Use
5791 flag_excess_precision variable instead of
5792 flag_excess_precision_cmdline.
5793 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5794 member.
5795 (flag_excess_precision): Don't define.
5796 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5797 flag_excess_precision_cmdline. Remove comment.
5798 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5799 and x_flag_excess_precision instead of
5800 frontend_set_flag_excess_precision_cmdline and
5801 x_flag_excess_precision_cmdline.
5802 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5803 x_flag_excess_precision_cmdline.
5804 * toplev.c (init_excess_precision): Remove.
5805 (lang_dependent_init_target): Don't call it.
5806
5807 2019-08-23 Martin Liska <mliska@suse.cz>
5808
5809 * lto-wrapper.c (run_gcc): When setting jobserver
5810 set also parallel to 1. This was done so before r273908.
5811
5812 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
5813
5814 * config/arm/arm-cpus.in (cortex-m35p): New entry.
5815 (cortex-a76ae): Likewise.
5816 (cortex-a77): Likewise
5817 * config/arm/arm-tables.opt: Regenerate.
5818 * config/arm/arm-tune.md: Likewise.
5819 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5820 cortex-a77 CPU options.
5821
5822 2019-08-23 Martin Liska <mliska@suse.cz>
5823
5824 * profile.c (instrument_values): Do not set
5825 0 as last argument.
5826 * tree-profile.c (gimple_gen_interval_profiler): Remove
5827 last argument.
5828 (gimple_gen_pow2_profiler): Likewise.
5829 (gimple_gen_topn_values_profiler): Likewise.
5830 (gimple_gen_ic_profiler): Likewise.
5831 (gimple_gen_time_profiler): Likewise.
5832 (gimple_gen_average_profiler): Likewise.
5833 (gimple_gen_ior_profiler): Likewise.
5834 * value-prof.c (dump_histogram_value): Use default
5835 in switch statement instead of HIST_TYPE_MAX.
5836 (stream_in_histogram_value): Likewise.
5837 (gimple_duplicate_stmt_histograms): Do not
5838 use NULL for implicitly set arguments.
5839 (gimple_divmod_values_to_profile): Do not use
5840 reserve+quick_push.
5841 (gimple_indirect_call_to_profile): Likewise.
5842 (gimple_find_values_to_profile): Use implicit
5843 function call arguments.
5844 * value-prof.h (gimple_alloc_histogram_value):
5845 Set default values.
5846 (gimple_gen_interval_profiler): Remove last argument.
5847 (gimple_gen_pow2_profiler): Likewise.
5848 (gimple_gen_topn_values_profiler): Likewise.
5849 (gimple_gen_ic_profiler): Likewise.
5850 (gimple_gen_time_profiler): Likewise.
5851 (gimple_gen_average_profiler): Likewise.
5852 (gimple_gen_ior_profiler): Likewise.
5853
5854 2019-08-22 Martin Sebor <msebor@redhat.com>
5855
5856 PR middle-end/91490
5857 * builtins.c (c_strlen): Rename argument and introduce new local.
5858 Set no-warning bit on original argument.
5859 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5860 Fold empty and zero constructors into empty strings.
5861 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5862 for missing initializers.
5863 * tree.c (build_string_literal): Handle optional argument.
5864 * tree.h (build_string_literal): Add defaulted argument.
5865 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5866 no-warning bit on original expression.
5867
5868 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5869
5870 PR target/91481
5871 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5872 and UNSPEC_DARN_RAW.
5873 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
5874 UNSPECV_DARN_RAW.
5875 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
5876 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
5877 (darn): Use an unspec_volatile, and UNSPECV_DARN.
5878
5879 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5880
5881 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5882 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
5883 * config/rs6000/rs6000.md (unspec): ... here.
5884 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
5885 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5886 cmpeqb, *cmpeqb_internal): Delete, move to...
5887 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
5888 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5889 cmpeqb, *cmpeqb_internal): ... here.
5890
5891 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5892
5893 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
5894 intrinsics if __ARM_FP.
5895 Use __ARM_FEATURE_CRC32 ifdef guard.
5896
5897 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5898
5899 * config/arm/arm.md (neon_for_64bits): Remove.
5900 (avoid_neon_for_64bits): Remove.
5901 (arm_adddi3): Always split early.
5902 (arm_subdi3): Always split early.
5903 (negdi2): Remove Neon expansion.
5904 (split zero_extend): Split before reload.
5905 (split sign_extend): Split before reload.
5906
5907 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5908
5909 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
5910 (qhs_extenddi_cstr): Likewise.
5911 * config/arm/arm.md (ashldi3): Always expand early.
5912 (ashlsi3): Likewise.
5913 (ashrsi3): Likewise.
5914 (zero_extend<mode>di2): Remove Neon variants.
5915 (extend<mode>di2): Likewise.
5916 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
5917 (signed_shift_di3_neon): Likewise.
5918 (unsigned_shift_di3_neon): Likewise.
5919 (ashrdi3_neon_imm_noclobber): Likewise.
5920 (lshrdi3_neon_imm_noclobber): Likewise.
5921 (<shift>di3_neon): Likewise.
5922 (split extend): Remove DI extend split patterns.
5923
5924 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5925
5926 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
5927 (split not): Add DImode not splitter.
5928 (anddi3): Remove pattern.
5929 (anddi3_insn): Likewise.
5930 (anddi_zesidi_di): Likewise.
5931 (anddi_sesdi_di): Likewise.
5932 (anddi_notdi_di): Likewise.
5933 (anddi_notzesidi_di): Likewise.
5934 (anddi_notsesidi_di): Likewise.
5935 (iordi3): Likewise.
5936 (iordi3_insn): Likewise.
5937 (iordi_zesidi_di): Likewise.
5938 (iordi_sesidi_di): Likewise.
5939 (xordi3): Likewise.
5940 (xordi3_insn): Likewise.
5941 (xordi_sesidi_di): Likewise.
5942 (xordi_zesidi_di): Likewise.
5943 (one_cmpldi2): Likewise.
5944 (one_cmpldi2_insn): Likewise.
5945 * config/arm/constraints.md: Remove De, Df, Dg constraints.
5946 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
5947 alternative.
5948 (iwmmxt_xordi3): Likewise.
5949 (iwmmxt_anddi3): Likewise.
5950 * config/arm/neon.md (orndi3_neon): Remove pattern.
5951 (anddi_notdi_di): Likewise.
5952 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
5953 (arm_iordi_operand_neon): Likewise.
5954 (arm_xordi_operand_neon): Likewise.
5955 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
5956 (iordi_notzesidi_di): Likewise.
5957 (iordi_notdi_zesidi): Likewise.
5958 (iordi_notsesidi_di): Likewise.
5959
5960 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
5961
5962 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
5963 insn.
5964 (iorsi3_compare0_scratch): Likewise.
5965
5966 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
5967
5968 * config/aarch64/aarch64-simd-builtins.def:
5969 (ld1x4): New.
5970 (st1x4): Likewise.
5971 * config/aarch64/aarch64-simd.md:
5972 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
5973 (aarch64_st1x4<VALLDIF:mode>): Likewise.
5974 (aarch64_ld1_x4_<mode>): Likewise.
5975 (aarch64_st1_x4_<mode>): Likewise.
5976 * config/aarch64/arm_neon.h:
5977 (vld1_s8_x4): New function.
5978 (vld1q_s8_x4): Likewise.
5979 (vld1_s16_x4): Likewise.
5980 (vld1q_s16_x4): Likewise.
5981 (vld1_s32_x4): Likewise.
5982 (vld1q_s32_x4): Likewise.
5983 (vld1_u8_x4): Likewise.
5984 (vld1q_u8_x4): Likewise.
5985 (vld1_u16_x4): Likewise.
5986 (vld1q_u16_x4): Likewise.
5987 (vld1_u32_x4): Likewise.
5988 (vld1q_u32_x4): Likewise.
5989 (vld1_f16_x4): Likewise.
5990 (vld1q_f16_x4): Likewise.
5991 (vld1_f32_x4): Likewise.
5992 (vld1q_f32_x4): Likewise.
5993 (vld1_p8_x4): Likewise.
5994 (vld1q_p8_x4): Likewise.
5995 (vld1_p16_x4): Likewise.
5996 (vld1q_p16_x4): Likewise.
5997 (vld1_s64_x4): Likewise.
5998 (vld1_u64_x4): Likewise.
5999 (vld1_p64_x4): Likewise.
6000 (vld1q_s64_x4): Likewise.
6001 (vld1q_u64_x4): Likewise.
6002 (vld1q_p64_x4): Likewise.
6003 (vld1_f64_x4): Likewise.
6004 (vld1q_f64_x4): Likewise.
6005 (vst1_s8_x4): Likewise.
6006 (vst1q_s8_x4): Likewise.
6007 (vst1_s16_x4): Likewise.
6008 (vst1q_s16_x4): Likewise.
6009 (vst1_s32_x4): Likewise.
6010 (vst1q_s32_x4): Likewise.
6011 (vst1_u8_x4): Likewise.
6012 (vst1q_u8_x4): Likewise.
6013 (vst1_u16_x4): Likewise.
6014 (vst1q_u16_x4): Likewise.
6015 (vst1_u32_x4): Likewise.
6016 (vst1q_u32_x4): Likewise.
6017 (vst1_f16_x4): Likewise.
6018 (vst1q_f16_x4): Likewise.
6019 (vst1_f32_x4): Likewise.
6020 (vst1q_f32_x4): Likewise.
6021 (vst1_p8_x4): Likewise.
6022 (vst1q_p8_x4): Likewise.
6023 (vst1_p16_x4): Likewise.
6024 (vst1q_p16_x4): Likewise.
6025 (vst1_s64_x4): Likewise.
6026 (vst1_u64_x4): Likewise.
6027 (vst1_p64_x4): Likewise.
6028 (vst1q_s64_x4): Likewise.
6029 (vst1q_u64_x4): Likewise.
6030 (vst1q_p64_x4): Likewise.
6031 (vst1_f64_x4): Likewise.
6032 (vst1q_f64_x4): Likewise.
6033
6034 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6035
6036 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6037
6038 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6039 Richard Sandiford <richard.sandiford@arm.com>
6040
6041 PR target/88839
6042 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6043 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6044
6045 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6046
6047 PR target/90724
6048 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6049 in reg if it fails aarch64_plus_operand predicate.
6050
6051 2019-08-21 Richard Biener <rguenther@suse.de>
6052
6053 PR tree-optimization/91482
6054 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6055 BUILT_IN_ASSUME_ALIGNED calls.
6056
6057 2019-08-21 Richard Biener <rguenther@suse.de>
6058
6059 PR target/91498
6060 PR target/91503
6061 * config/i386/i386-features.c
6062 (general_scalar_chain::make_vector_copies): Copy stack temporary
6063 rtx when using it multiple times.
6064 (general_scalar_chain::convert_reg): Likewise.
6065
6066 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6067
6068 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6069
6070 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6071
6072 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6073 catch more redundant zero initialization cases.
6074 (dse_dom_walker::dse_optimize_stmt): Likewise.
6075
6076 2019-08-20 Richard Biener <rguenther@suse.de>
6077
6078 PR lto/91307
6079 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6080 by collect2 when targetm.have_ctors_dtors which avoids dragging
6081 in temporary filenames from LTO input objects.
6082
6083 2019-08-20 Richard Biener <rguenther@suse.de>
6084
6085 PR tree-optimization/37242
6086 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6087 to (T)a + (T)b if we know that a + b does not overflow.
6088
6089 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6090
6091 PR rtl-optimization/91347
6092 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6093 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6094
6095 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6096
6097 * calls.h (function_arg_info): Add a pass_by_reference field,
6098 defaulting to false.
6099 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6100 when applying pass-by-reference semantics.
6101 (initialize_argument_information): Likewise.
6102 (emit_library_call_value_1): Likewise.
6103 * function.c (assign_parm_data_one): Remove passed_pointer field.
6104 (assign_parm_find_data_types): Don't set it.
6105 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6106 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6107 arg.pass_by_reference instead of passed_pointer.
6108
6109 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6110
6111 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6112 into a single function_arg_info, updating its fields when we
6113 apply pass-by-reference and promotion semantics. Use the
6114 function_arg_info to track the mode rather than keeping it in
6115 a separate local variable.
6116 (initialize_argument_information): Likewise. Base the final
6117 arg_to_skip on this new function_arg_info rather than creating
6118 a new one from scratch.
6119
6120 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6121
6122 * function.c (assign_parm_data_one): Replace passed_type,
6123 promoted_mode and named_arg with a function_arg_info field.
6124 (assign_parm_find_data_types): Remove local variables and
6125 assign directly to "data". Make data->passed_mode shadow
6126 data->arg.mode until promotion, then assign the promoted
6127 mode to data->arg.mode.
6128 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6129 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6130 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6131 (assign_parm_setup_block, assign_parm_setup_reg)
6132 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6133 arg.mode instead of promoted_mode, arg.type instead of passed_type
6134 and arg.named instead of named_arg. Use data->arg for
6135 function_arg_info structures that had the field values passed_type,
6136 promoted_mode and named_arg. Base other function_arg_infos on
6137 data->arg, changing the necessary properties.
6138
6139 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6140
6141 * calls.h (apply_pass_by_reference_rules): Declare.
6142 * calls.c (apply_pass_by_reference_rules): New function.
6143 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6144 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6145 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6146 * function.c (assign_parm_find_data_types): Likewise.
6147 * var-tracking.c (prepare_call_arguments): Likewise.
6148
6149 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6150
6151 * target.def (must_pass_in_stack): Take a function_arg_info instead
6152 of a mode and a type.
6153 * doc/tm.texi: Regenerate.
6154 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6155 instead of a mode and a type.
6156 (must_pass_in_stack_var_size_or_pad): Likewise.
6157 * calls.c (must_pass_in_stack_var_size): Likewise.
6158 (must_pass_in_stack_var_size_or_pad): Likewise.
6159 (initialize_argument_information): Update call to
6160 targetm.calls.must_pass_in_stack.
6161 (must_pass_va_arg_on_stack): Likewise.
6162 * function.c (assign_parm_find_entry_rtl): Likewise.
6163 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6164 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6165 (alpha_function_arg_advance): Likewise.
6166 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6167 (cr16_function_arg_advance): Likewise.
6168 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6169 (cris_arg_partial_bytes): Likewise.
6170 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6171 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6172 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6173 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6174 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6175 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6176 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6177 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6178 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6179 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6180 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6181 instead of a mode and a type.
6182 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6183 (fr30_num_arg_regs): Likewise.
6184 (fr30_setup_incoming_varargs): Update calls accordingly.
6185 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6186 (fr30_function_arg_advance): Likewise.
6187 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6188 instead of a mode and a type.
6189 * config/gcn/gcn.c (num_arg_regs): Likewise.
6190 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6191 num_arg_regs and targetm.calls.must_pass_in_stack.
6192 (gcn_arg_partial_bytes): Likewise.
6193 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6194 function_arg_info instead of a mode and a type.
6195 (classify_argument): Update call accordingly.
6196 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6197 function_arg_info instead of a mode and a type.
6198 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6199 Likewise.
6200 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6201 (rs6000_parm_needs_stack): Update call accordingly.
6202 (setup_incoming_varargs): Likewise.
6203
6204 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6205
6206 * target.def (callee_copies): Take a function_arg_info instead
6207 of a mode, type and named flag.
6208 * doc/tm.texi: Regenerate.
6209 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6210 instead of a mode, type and named flag.
6211 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6212 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6213 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6214 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6215 instead of a mode, type and named flag.
6216 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6217 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6218 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6219 * calls.h (reference_callee_copied): Take a function_arg_info
6220 instead of a mode, type and named flag.
6221 * calls.c (reference_callee_copied): Likewise.
6222 (initialize_argument_information): Update call accordingly.
6223 (emit_library_call_value_1): Likewise.
6224 * function.c (gimplify_parameters): Likewise.
6225 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6226 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6227 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6228 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6229 (TARGET_CALLEE_COPIES): Define to
6230 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6231 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6232 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6233 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6234 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6235 instead of a mode, type and named flag.
6236 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6237 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6238 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6239 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6240 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6241 (TARGET_CALLEE_COPIES): Define to
6242 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6243 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6244 instead of a mode, type and named flag.
6245 * config/sh/sh.c (sh_callee_copies): Likewise.
6246 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6247 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6248 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6249
6250 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6251
6252 * target.def (function_arg_advance): Take a function_arg_info instead
6253 of a mode, type and named flag.
6254 * doc/tm.texi: Regenerate.
6255 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6256 instead of a mode, type and named flag.
6257 * targhooks.c (default_function_arg_advance): Likewise.
6258 * calls.c (initialize_argument_information): Update call to
6259 targetm.calls.function_arg_advance.
6260 (emit_library_call_value_1): Likewise.
6261 * dse.c (get_call_args): Likewise.
6262 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6263 * function.c (assign_parms, gimplify_parameters): Likewise.
6264 * var-tracking.c (prepare_call_arguments): Likewise.
6265 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6266 function_arg_info instead of a mode, type and named flag.
6267 (aarch64_setup_incoming_varargs): Update call accordingly.
6268 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6269 function_arg_info instead of a mode, type and named flag.
6270 (alpha_setup_incoming_varargs): Update call accordingly.
6271 * config/arc/arc.c (arc_function_arg_advance): Take a
6272 function_arg_info instead of a mode, type and named flag.
6273 (arc_setup_incoming_varargs): Update call accordingly.
6274 * config/arm/arm.c (arm_function_arg_advance): Take a
6275 function_arg_info instead of a mode, type and named flag.
6276 (cmse_func_args_or_return_in_stack): Update call accordingly.
6277 (arm_function_ok_for_sibcall): Likewise.
6278 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6279 * config/avr/avr.c (avr_function_arg_advance): Take a
6280 function_arg_info instead of a mode, type and named flag.
6281 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6282 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6283 (c6x_call_saved_register_used): Update call accordingly.
6284 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6285 function_arg_info instead of a mode, type and named flag.
6286 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6287 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6288 (csky_setup_incoming_varargs): Update call accordingly.
6289 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6290 function_arg_info instead of a mode, type and named flag.
6291 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6292 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6293 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6294 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6295 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6296 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6297 (ix86_setup_incoming_varargs): Update call accordingly.
6298 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6299 function_arg_info instead of a mode, type and named flag.
6300 (ia64_setup_incoming_varargs): Update call accordingly.
6301 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6302 function_arg_info instead of a mode, type and named flag.
6303 (iq2000_expand_prologue): Update call accordingly.
6304 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6305 function_arg_info instead of a mode, type and named flag.
6306 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6307 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6308 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6309 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6310 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6311 Likewise.
6312 (microblaze_expand_prologue): Update call accordingly.
6313 * config/mips/mips.c (mips_function_arg_advance): Take a
6314 function_arg_info instead of a mode, type and named flag.
6315 (mips_setup_incoming_varargs): Update call accordingly.
6316 (mips_output_args_xfer): Likewise.
6317 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6318 function_arg_info instead of a mode, type and named flag.
6319 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6320 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6321 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6322 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6323 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6324 (nios2_setup_incoming_varargs): Update call accordingly.
6325 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6326 function_arg_info instead of a mode, type and named flag.
6327 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6328 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6329 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6330 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6331 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6332 (riscv_setup_incoming_varargs): Update call accordingly.
6333 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6334 function_arg_info instead of a mode, type and named flag.
6335 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6336 Likewise.
6337 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6338 (rs6000_parm_needs_stack): Update call accordingly.
6339 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6340 instead of a mode, type and named flag.
6341 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6342 (s390_call_saved_register_used): Update call accordingly.
6343 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6344 instead of a mode, type and named flag.
6345 (sh_output_mi_thunk): Update call accordingly.
6346 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6347 function_arg_info instead of a mode, type and named flag.
6348 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6349 (spu_setup_incoming_varargs): Update call accordingly.
6350 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6351 function_arg_info instead of a mode, type and named flag.
6352 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6353 (tilegx_setup_incoming_varargs): Update call accordingly.
6354 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6355 function_arg_info instead of a mode, type and named flag.
6356 (tilegx_setup_incoming_varargs): Update call accordingly.
6357 * config/v850/v850.c (v850_function_arg_advance): Take a
6358 function_arg_info instead of a mode, type and named flag.
6359 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6360 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6361 (visium_setup_incoming_varargs): Update call accordingly.
6362 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6363 function_arg_info instead of a mode, type and named flag.
6364
6365 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6366
6367 * target.def (function_arg, function_incoming_arg): Take a
6368 function_arg_info instead of a mode, tree and named flag.
6369 * doc/tm.texi: Regenerate.
6370 * targhooks.h (default_function_arg): Take a function_arg_info
6371 instead of a mode, tree and named flag.
6372 (default_function_incoming_arg): Likewise.
6373 * targhooks.c (default_function_arg): Likewise.
6374 (default_function_incoming_arg): Likewise.
6375 * calls.h (function_arg_info::end_marker_p): New function.
6376 (function_arg_info::end_marker): Likewise.
6377 * calls.c (prepare_call_address, initialize_argument_information)
6378 (expand_call, emit_library_call_value_1): Update calls to
6379 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6380 * dse.c: Include calls.h.
6381 (get_call_args): Update call to targetm.calls.function_arg.
6382 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6383 * var-tracking.c (prepare_call_arguments): Likewise.
6384 * function.c (assign_parm_find_entry_rtl): Update call to
6385 targetm.calls.function_incoming_arg.
6386 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6387 function_arg_info instead of a mode, tree and named flag.
6388 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6389 * config/arc/arc.c (arc_function_arg): Likewise.
6390 * config/arm/arm.c (arm_function_arg): Likewise.
6391 (cmse_func_args_or_return_in_stack): Update call accordingly.
6392 (arm_function_ok_for_sibcall): Likewise.
6393 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6394 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6395 instead of a mode, tree and named flag.
6396 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6397 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6398 (c6x_call_saved_register_used): Update call accordingly.
6399 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6400 instead of a mode, tree and named flag.
6401 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6402 (cris_function_arg_1): Likewise.
6403 * config/csky/csky.c (csky_function_arg): Likewise.
6404 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6405 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6406 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6407 (frv_function_arg_1): Likewise.
6408 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6409 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6410 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6411 * config/i386/i386.c (ix86_function_arg): Likewise.
6412 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6413 (ia64_function_arg_1): Likewise.
6414 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6415 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6416 accordingly.
6417 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6418 instead of a mode, tree and named flag.
6419 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6420 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6421 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6422 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6423 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6424 (microblaze_expand_prologue): Update call accordingly.
6425 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6426 instead of a mode, tree and named flag.
6427 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6428 (mmix_function_arg_1): Likewise.
6429 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6430 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6431 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6432 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6433 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6434 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6435 (nvptx_function_incoming_arg): Likewise.
6436 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6437 * config/pa/pa.c (pa_function_arg): Likewise.
6438 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6439 * config/pru/pru.c (pru_function_arg): Likewise.
6440 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6441 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6442 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6443 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6444 (rs6000_parm_needs_stack): Update call accordingly.
6445 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6446 instead of a mode, tree and named flag.
6447 * config/s390/s390.c (s390_function_arg): Likewise.
6448 (s390_call_saved_register_used): Update call accordingly.
6449 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6450 instead of a mode, tree and named flag.
6451 (sh_output_mi_thunk): Update call accordingly.
6452 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6453 (sparc_function_incoming_arg): Take a function_arg_info instead of
6454 a mode, tree and named flag.
6455 * config/spu/spu.c (spu_function_arg): Likewise.
6456 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6457 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6458 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6459 * config/v850/v850.c (v850_function_arg): Likewise.
6460 * config/vax/vax.c (vax_function_arg): Likewise.
6461 * config/visium/visium.c (visium_function_arg): Likewise.
6462 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6463 (xtensa_function_incoming_arg): Likewise.
6464
6465 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6466
6467 * target.def (setup_incoming_varargs): Take a function_arg_info
6468 instead of a mode and tree.
6469 * doc/tm.texi: Regenerate.
6470 * targhooks.h (default_setup_incoming_varargs): Take a
6471 function_arg_info instead of a mode and tree.
6472 * targhooks.c (default_setup_incoming_varargs): Likewise.
6473 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6474 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6475 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6476 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6477 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6478 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6479 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6480 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6481 Likewise.
6482 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6483 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6484 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6485 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6486 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6487 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6488 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6489 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6490 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6491 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6492 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6493 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6494 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6495 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6496 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6497 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6498 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6499 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6500 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6501 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6502 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6503 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6504 * function.c (assign_parms_setup_varargs): Update call to
6505 targetm.calls.setup_incoming_varargs.
6506
6507 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6508
6509 * target.def (pass_by_reference): Take a function_arg_info instead
6510 of a mode, type and named flag.
6511 * doc/tm.texi: Regenerate.
6512 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6513 accordingly.
6514 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6515 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6516 function_arg_info instead of a mode, type and named flag.
6517 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6518 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6519 mode, type and named flag.
6520 * calls.c (pass_by_reference): Likewise.
6521 (pass_va_arg_by_reference): Update call accordingly.
6522 (initialize_argument_information): Likewise.
6523 (emit_library_call_value_1): Likewise.
6524 * function.c (assign_parm_find_data_types): Likewise.
6525 * var-tracking.c (prepare_call_arguments): Likewise.
6526 * stor-layout.c: Include calls.h.
6527 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6528 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6529 function_arg_info instead of a mode, type and named flag.
6530 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6531 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6532 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6533 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6534 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6535 (c6x_call_saved_register_used): Update call to pass_by_reference.
6536 * config/cris/cris.c (cris_pass_by_reference): Take a
6537 function_arg_info instead of a mode, type and named flag.
6538 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6539 function_arg_info instead of a mode, type and named flag.
6540 (epiphany_arg_partial_bytes): Update call accordingly.
6541 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6542 function_arg_info instead of a mode, type and named flag.
6543 (ft32_arg_partial_bytes): Update call accordingly.
6544 * config/i386/i386.c (ix86_pass_by_reference): Take a
6545 function_arg_info instead of a mode, type and named flag.
6546 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6547 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6548 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6549 (m32r_return_in_memory): Update call accordingly.
6550 * config/mips/mips.c (mips_pass_by_reference): Take a
6551 function_arg_info instead of a mode, type and named flag.
6552 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6553 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6554 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6555 (moxie_arg_partial_bytes): Update call accordingly.
6556 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6557 function_arg_info instead of a mode, type and named flag.
6558 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6559 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6560 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6561 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6562 (riscv_return_in_memory): Update call accordingly.
6563 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6564 function_arg_info instead of a mode, type and named flag.
6565 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6566 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6567 * config/s390/s390.c (s390_pass_by_reference): Take a
6568 function_arg_info instead of a mode, type and named flag.
6569 (s390_call_saved_register_used): Update call accordingly.
6570 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6571 instead of a mode, type and named flag.
6572 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6573 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6574 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6575 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6576 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6577 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6578
6579 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6580
6581 * target.def (arg_partial_bytes): Take a function_arg_info instead
6582 of a mode, type and named flag.
6583 * doc/tm.texi: Regenerate.
6584 * target.h (function_arg_info): Declare.
6585 * calls.h (function_arg_info): New class.
6586 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6587 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6588 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6589 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6590 * calls.c (initialize_argument_information): Update call to
6591 targetm.calls.partial_bytes.
6592 (emit_library_call_value_1): Likewise.
6593 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6594 * function.c (assign_parm_find_entry_rtl): Likewise.
6595 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6596 function_arg_info instead of a mode, type and named flag.
6597 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6598 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6599 (cmse_func_args_or_return_in_stack): Update accordingly.
6600 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6601 function_arg_info instead of a mode, type and named flag.
6602 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6603 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6604 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6605 * config/fr30/fr30.c: Include calls.h.
6606 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6607 type and named flag.
6608 * config/frv/frv.c: Include calls.h.
6609 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6610 type and named flag.
6611 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6612 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6613 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6614 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6615 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6616 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6617 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6618 Likewise.
6619 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6620 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6621 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6622 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6623 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6624 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6625 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6626 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6627 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6628 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6629 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6630 (rs6000_parm_needs_stack): Update call accordingly.
6631 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6632 function_arg_info instead of a mode, type and named flag.
6633 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6634 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6635
6636 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6637
6638 * calls.h (must_pass_va_arg_in_stack): Declare.
6639 * calls.c (must_pass_va_arg_in_stack): New function.
6640 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6641 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6642 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6643 Likewise.
6644 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6645
6646 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6647
6648 * calls.h (pass_va_arg_by_reference): Declare.
6649 * calls.c (pass_va_arg_by_reference): New function.
6650 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6651 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6652 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6653 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6654 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6655 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6656 (mips_gimplify_va_arg_expr): Likewise.
6657 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6658 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6659 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6660 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6661 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6662 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6663 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6664 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6665 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6666 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6667 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6668
6669 2019-08-20 Richard Biener <rguenther@suse.de>
6670
6671 PR target/91498
6672 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6673 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6674 (convert_scalars_to_vector): Add timode_p parameter and use it
6675 to guard TImode-only operation.
6676 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6677 (pass_stv::execute): Pass down timode_p.
6678
6679 2019-08-20 Lili Cui <lili.cui@intel.com>
6680
6681 * common/config/i386/i386-common.c
6682 (processor_names): Add tigerlake and cooperlake.
6683 (processor_alias_table): Add tigerlake and cooperlake.
6684 * config.gcc: Add -march=tigerlake and cooperlake.
6685 * config/i386/driver-i386.c
6686 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6687 Add "has_avx" to classify processor.
6688 * config/i386/i386-builtins.c (processor_model) :
6689 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6690 (arch_names_table): Add tigerlake and cooperlake.
6691 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6692 and PROCESSOR_COOPERLAKE.
6693 * config/i386/i386-c.c
6694 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6695 * config/i386/i386-options.c
6696 (m_TIGERLAKE) : Define.
6697 (m_COOPERLAKE) : Ditto.
6698 (m_CORE_AVX512): Ditto.
6699 (processor_cost_table): Add cascadelake.
6700 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6701 * config/i386/i386.h
6702 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6703 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6704 (PTA_MOVDIRI): Ditto.
6705 (PTA_MOVDIR64B): Ditto.
6706 (PTA_COOPERLAKE) : Ditto.
6707 (PTA_TIGERLAKE) : Ditto.
6708 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6709 * doc/extend.texi: Add tigerlake and cooperlake.
6710 * doc/invoke.texi: Add tigerlake and cooperlake.
6711
6712 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6713
6714 * doc/install.texi (Specific, alpha): Remove note to use
6715 binutils 2.11.2 or later.
6716
6717 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6718
6719 PR middle-end/89544
6720 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6721 when possible.
6722
6723 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6724
6725 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6726 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6727 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6728 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6729 * config/aarch64/constraints.md (Dt): New constraint
6730 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6731
6732 2019-08-19 Richard Biener <rguenther@suse.de>
6733
6734 PR tree-optimization/91403
6735 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6736 cases we can handle with tail-recursion...
6737 (follow_ssa_edge_expr): ... here. Do so.
6738
6739 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6740
6741 PR target/91441
6742 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6743 implemented for -fsanitize=kernel-address, and merge check logic
6744 with -fsanitize=address.
6745
6746 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6747
6748 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6749 for cpu and machine. Factor 64/32b builtins.
6750
6751 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6752
6753 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6754 gone, point to sourceforge.net.
6755
6756 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6757
6758 * doc/ux.texi (User Experience Guidelines): Update reference.
6759
6760 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6761
6762 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6763 not LGPL".
6764
6765 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6766
6767 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6768 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6769
6770 2019-08-16 Martin Sebor <msebor@redhat.com>
6771
6772 * tree.def (TYPE_SIZE): Clarify.
6773 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6774
6775 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6776
6777 PR tree-optimization/91109
6778 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6779 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6780 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6781
6782 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6783
6784 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6785 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6786 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6787 (uavg<mode>3_ceil): New expander.
6788 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6789 mode iterator when creating CONST1_RTX.
6790 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6791 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6792 mode iterator for const1_operand predicate.
6793
6794 2019-08-16 Richard Biener <rguenther@suse.de>
6795
6796 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6797 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6798 follow_ssa_edge.
6799 (follow_ssa_edge_in_condition_phi_branch): Likewise.
6800 (analyze_evolution_in_loop): Likewise.
6801 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6802 (follow_ssa_edge_expr): ... here. Refactor code.
6803
6804 2019-08-16 Richard Biener <rguenther@suse.de>
6805
6806 PR target/91469
6807 * config/i386/i386-features.c
6808 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6809
6810 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6811
6812 PR other/91255
6813 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6814 only if subst_name matches curr_attr string.
6815
6816 2019-08-16 Richard Biener <rguenther@suse.de>
6817
6818 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6819 stmt at gsi_p, instead replace it with a NOP removed later.
6820 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6821 that became dead because of that.
6822
6823 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
6824
6825 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6826 for which we can't represent a range.
6827 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6828 set_varying.
6829 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6830 Set VR_UNDEFINED if type is not supported.
6831 * tree-ssanames.c (get_range_info): Pass type to set_varying.
6832 * tree-vrp.c (value_range_base::check): Assert that a varying has
6833 min/max set.
6834 (value_range_base::equal_p): Early bail for undefines.
6835 (value_range_base::set_varying): Accept a type.
6836 (value_range::set_varying): Same.
6837 (value_range_base::type): VARYING can have a type, while UNDEFINE
6838 is typeless.
6839 (value_range_base::dump): Print type for VARYING nodes.
6840 (value_range_base::set): Add type to VARYING.
6841 (extract_range_from_multiplicative_op): Pass type to set_varying.
6842 (extract_range_from_binary_expr): Same.
6843 (value_range_base::intersect_helper): Same.
6844 (value_range_base::union_helper): Same.
6845 (value_range_base::normalize_symbolics): Same.
6846 (determine_value_range_1): Same.
6847 * tree-vrp.h (class value_range_base): Add type to set_varying.
6848 Add prototype for dump(void).
6849 Add prototype for supports_type_p.
6850 (class value_range): Add type to set_varying.
6851 Add prototype for dump(void).
6852 * vr-values.c (set_value_range_to_truthvalue): Pass type to
6853 set_varying.
6854 (vr_values::get_lattice_entry): Set varying even if propagation
6855 finished.
6856 Pass type to set_varying.
6857 (vr_values::get_value_range): Remove vr_const_varying.
6858 Reallocate the lattice if needed.
6859 (vr_values::update_value_range): Pass type to set_varying.
6860 (vr_values::extract_range_for_var_from_comparison_expr): Same.
6861 (vr_values::extract_range_from_binary_expr): Same.
6862 (vr_values::extract_range_from_unary_expr): Same.
6863 (vr_values::extract_range_from_cond_expr): Same.
6864 (vr_values::check_for_binary_op_overflow): Same.
6865 (vr_values::extract_range_basic): Same.
6866 (vr_values::extract_range_from_assignment): Same.
6867 (vr_values::vr_values): Increase size of num_vr_values.
6868 (vr_values::extract_range_from_phi_node): Pass type to
6869 set_varying.
6870
6871 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
6872
6873 PR target/90878
6874 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
6875 for costs of hard register moves.
6876 (ix86_register_move_cost): Likewise.
6877 * config/i386/i386.h (processor_costs): Move costs of hard
6878 register moves to hard_register. Add int_load, int_store,
6879 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6880 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
6881 for costs of RTL expressions.
6882 * config/i386/x86-tune-costs.h: Move costs of hard register
6883 moves to hard_register. Duplicate int_load, int_store,
6884 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6885 sse_load, sse_store for costs of RTL expressions.
6886
6887 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6888
6889 * target.def (setup_incoming_vararg_bounds): Remove.
6890 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
6891 * doc/tm.texi: Regenerate.
6892 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
6893 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
6894 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6895 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6896
6897 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6898
6899 MSP430: Fix lines over 80 characters long in
6900 config/msp430/*.{c,h} files
6901
6902 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
6903 specifier in string.
6904 (msp430_select_hwmult_lib): Split line more than 80 characters long.
6905 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
6906 redundant old comment.
6907 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
6908 Split line more than 80 characters long.
6909 * config/msp430/msp430.c (msp430_option_override): Likewise.
6910 (msp430_return_in_memory): Likewise.
6911 (msp430_gimplify_va_arg_expr): Likewise.
6912 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
6913 (msp430_legitimate_constant): Likewise.
6914 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
6915 (msp430_attr): Likewise.
6916 (msp430_data_attr): Likewise.
6917 (msp430_start_function): Likewise.
6918 (gen_prefix): Likewise.
6919 (msp430_init_sections): Likewise.
6920 (msp430_select_section): Likewise.
6921 (msp430_function_section): Likewise.
6922 (msp430_unique_section): Likewise.
6923 (msp430_output_aligned_decl_common): Likewise.
6924 (msp430_do_not_relax_short_jumps): Likewise.
6925 (msp430_init_builtins): Likewise.
6926 (msp430_expand_delay_cycles): Likewise.
6927 (msp430_expand_prologue): Likewise.
6928 (msp430_expand_epilogue): Likewise.
6929 (msp430_expand_helper): Likewise.
6930 (msp430_split_movsi): Likewise.
6931 (msp430_print_operand): Likewise.
6932 (msp430_return_addr_rtx): Likewise.
6933 (msp430x_extendhisi): Likewise.
6934 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
6935 (ASM_SPEC): Likewise.
6936 Remove very obvious comments.
6937 (LIB_SPEC): Split line more than 80 characters long.
6938 (EH_RETURN_HANDLER_RTX): Likewise.
6939 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
6940
6941 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6942
6943 MSP430: Fix whitespace errors and incorrect indentation in
6944 config/msp430/*.{c,h} files
6945
6946 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
6947 (msp430_select_hwmult_lib): Likewise.
6948 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
6949 (msp430_extract_mcu_data): Likewise.
6950 (struct t_msp430_mcu_data): Likewise.
6951 * config/msp430/msp430.c (struct machine_function): Remove whitespace
6952 before left square bracket.
6953 (msp430_option_override): Fix indentation.
6954 (msp430_hard_regno_nregs_with_padding): Likewise.
6955 (msp430_initial_elimination_offset): Likewise.
6956 (msp430_special_register_convention_p): Remove whitespace before left
6957 square bracket and after exclamation mark.
6958 (msp430_evaluate_arg): Likewise.
6959 (msp430_callee_copies): Fix indentation.
6960 (msp430_gimplify_va_arg_expr): Likewise.
6961 (msp430_function_arg_advance): Remove whitespace before left square
6962 bracket.
6963 (reg_ok_for_addr): Likewise.
6964 (msp430_preserve_reg_p): Likewise.
6965 (msp430_compute_frame_info): Likewise.
6966 (msp430_asm_output_addr_const_extra): Add space between function name
6967 and open parenthesis.
6968 (has_section_name): Fix indentation.
6969 (msp430_attr): Remove trailing whitespace.
6970 (msp430_section_attr): Likewise.
6971 (msp430_data_attr): Likewise.
6972 (struct msp430_attribute_table): Fix comment and whitespace.
6973 (msp430_start_function): Remove whitespace before left square bracket.
6974 Add space between function name and open parenthesis.
6975 (msp430_select_section): Remove trailing whitespace.
6976 (msp430_section_type_flags): Remove trailing whitespace.
6977 (msp430_unique_section): Remove space before closing parenthesis.
6978 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
6979 (msp430_builtins): Remove whitespace before left square bracket.
6980 (msp430_init_builtins): Fix indentation.
6981 (msp430_expand_prologue): Remove whitespace before left square bracket.
6982 Remove space before closing parenthesis.
6983 (msp430_expand_epilogue): Remove whitespace before left square bracket.
6984 (msp430_split_movsi): Remove space before closing parenthesis.
6985 (helper_function_name_mappings): Fix indentation.
6986 (msp430_use_f5_series_hwmult): Fix whitespace.
6987 (use_32bit_hwmult): Likewise.
6988 (msp430_no_hwmult): Likewise.
6989 (msp430_output_labelref): Remove whitespace before left square bracket.
6990 (msp430_print_operand_raw): Likewise.
6991 (msp430_print_operand_addr): Likewise.
6992 (msp430_print_operand): Add two spaces after '.' in comment.
6993 Fix trailing whitespace.
6994 (msp430x_extendhisi): Fix indentation.
6995 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
6996 tab.
6997 (PC_REGNUM): Likewise.
6998 (STACK_POINTER_REGNUM): Likewise.
6999 (CC_REGNUM): Likewise.
7000
7001 2019-08-15 Richard Biener <rguenther@suse.de>
7002
7003 PR target/91454
7004 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7005 helper.
7006 (general_scalar_chain::make_vector_copies): Use it.
7007
7008 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7009
7010 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7011
7012 2019-08-15 Martin Liska <mliska@suse.cz>
7013
7014 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7015 operators with no arguments.
7016 (eliminate_unnecessary_stmts): Likewise here.
7017
7018 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7019
7020 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7021 <case COMPARE>: Revert 2019-08-14 change.
7022 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7023 for (TARGET_64BIT || mode != DImode).
7024
7025 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7026
7027 * tree-vrp.c (value_range_base::set): Merge in code from
7028 value_range_base::set_and_canonicalize.
7029 Enforce canonicalization at set time.
7030 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7031 (value_range_base::set_undefined): Inline call to set().
7032 (value_range_base::set_varying): Same.
7033 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7034 (vrp_val_max): New argument handle_pointers.
7035 (vrp_val_min): Same.
7036 (ranges_from_anti_range): Same.
7037 (extract_range_into_wide_ints): Use tree argument instead of sign
7038 and precision.
7039 (extract_range_from_multiplicative_op): Take in tree type instead
7040 of precision and sign. Adapt function for canonicalized ranges.
7041 (extract_range_from_binary_expr): Pass type to
7042 extract_range_from_multiplicative_op.
7043 Adapt for canonicalized ranges.
7044 (extract_range_from_unary_expr): Same.
7045 (value_range_base::intersect_helper): Adjust for canonicalized
7046 ranges.
7047 (value_range_base::union_helper): Same.
7048 (value_range_base::normalize_symbolics): New.
7049 * tree-vrp.h (class value_range_base): Remove
7050 set_and_canonicalize.
7051 New prototype for normalize_symbolics.
7052 (class value_range): Remove set_and_canonicalize.
7053 (vrp_val_min): Adjust prototype.
7054 (vrp_val_max): Same.
7055 * vr-values.c
7056 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7057 instead of set_and_canonicalize.
7058
7059 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7060
7061 PR middle-end/91444
7062 * tree-vect-stmts.c (vectorizable_call): Check that the function
7063 is a BUILT_IN_MD function before passing it to
7064 targetm.vectorize.builtin_md_vectorized_function.
7065
7066 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7067
7068 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7069 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7070 (aarch64_select_early_remat_modes): Use it.
7071
7072 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7073
7074 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7075 16 for SVE predicates even if they are fixed-length.
7076
7077 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7078
7079 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7080 operand order match the MOV /Z alias.
7081
7082 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7083
7084 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7085 the vector pattern as an aarch64_svpattern argument. Update the
7086 overloaded caller accordingly.
7087 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7088 (aarch64_output_sve_vector_inc_dec): Likewise.
7089
7090 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7091
7092 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7093 multiplication case, try to compute VG * (lowest set bit) directly
7094 rather than always basing the multiplication on VG. Use
7095 expand_mult for the multiplication if we can.
7096
7097 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7098
7099 * config/aarch64/aarch64-protos.h
7100 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7101 (aarch64_sve_inc_dec_immediate_p): Rename to...
7102 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7103 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7104 (aarch64_output_sve_scalar_inc_dec): Declare.
7105 (aarch64_output_sve_inc_dec_immediate): Rename to...
7106 (aarch64_output_sve_vector_inc_dec): ...this.
7107 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7108 (aarch64_output_sve_scalar_inc_dec): New functions.
7109 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7110 arguments. Only handle true ADDVL and ADDPL instructions;
7111 don't emit an INC or DEC.
7112 (aarch64_sve_inc_dec_immediate_p): Rename to...
7113 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7114 (aarch64_output_sve_inc_dec_immediate): Rename to...
7115 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7116 aarch64_sve_vector_inc_dec_immediate_p.
7117 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7118 (aarch64_sve_plus_immediate): New predicates.
7119 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7120 rather than aarch64_sve_addvl_addpl_immediate.
7121 (aarch64_sve_inc_dec_immediate): Rename to...
7122 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7123 aarch64_sve_vector_inc_dec_immediate_p.
7124 (aarch64_sve_add_operand): Update accordingly.
7125 * config/aarch64/constraints.md (Uai): New constraint.
7126 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7127 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7128 operand into a register if it satisfies aarch64_sve_plus_immediate.
7129 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7130 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7131 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7132 aarch64_output_sve_vector_inc_dec instead of
7133 aarch64_output_sve_inc_dec_immediate.
7134
7135 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7136
7137 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7138 (UNSPEC_REVW): New constants.
7139 (elem_bits): New mode attribute.
7140 (SVE_INT_UNARY): New int iterator.
7141 (optab): Handle UNSPEC_REV[BHW].
7142 (sve_int_op): New int attribute.
7143 (min_elem_bits): Handle VNx16QI and the predicate modes.
7144 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7145 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7146 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7147 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7148 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7149 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7150 unspecs based on the total width of the reversed data.
7151 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7152 reinterpret followed by a subreg on big-endian targets.
7153
7154 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7155 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7156
7157 * config/aarch64/aarch64-sve.md
7158 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7159 alternatives in which one of the inputs is in the same register
7160 as the output.
7161
7162 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7163
7164 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7165 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7166
7167 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7168
7169 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7170 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7171
7172 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7173 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7174
7175 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7176 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7177 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7178
7179 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7180 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7181
7182 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7183 Add an alternative that uses reversed shifts.
7184
7185 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7186
7187 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7188 struct.
7189
7190 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7191
7192 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7193 a commutativity marker.
7194
7195 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7196 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7197
7198 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7199 (aarch64_prepare_sve_cond_int_fma): Declare.
7200 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7201 (aarch64_prepare_sve_int_fma): New functions.
7202 (aarch64_prepare_sve_cond_int_fma): Likewise.
7203 * config/aarch64/aarch64-sve.md
7204 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7205 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7206 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7207 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7208 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7209 (*madd<mode>): Rename to...
7210 (*fma<mode>4): ...this.
7211 (*msub<mode>): Rename to...
7212 (*fnma<mode>4): ...this.
7213
7214 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7215 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7216
7217 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7218 Print 2.0 naturally.
7219 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7220 * config/aarch64/predicates.md
7221 (aarch64_sve_float_negated_arith_immediate): New predicate,
7222 renamed from aarch64_sve_float_arith_with_sub_immediate.
7223 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7224 positive and negative constants.
7225 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7226 or an aarch64_sve_float_arith_with_sub_immediate.
7227 * config/aarch64/constraints.md (vsN): Use
7228 aarch64_sve_float_negated_arith_immediate.
7229 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7230 iterator.
7231 (sve_pred_fp_rhs2_immediate): New int attribute.
7232 * config/aarch64/aarch64-sve.md
7233 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7234 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7235 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7236 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7237 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7238 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7239
7240 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7241 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7242
7243 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7244 (*aarch64_cond_abd<SVE_F:mode>_3)
7245 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7246
7247 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7248 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7249
7250 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7251 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7252
7253 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7254 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7255
7256 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7257 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7258 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7259 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7260 optabs.
7261 * optabs.h (create_convert_operand_from): Expand comment.
7262 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7263 when mapping scalar rtxes to vector operands.
7264 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7265 ashiftrt and lshiftrt.
7266 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7267 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7268 (*cond_<optab><mode>_any_const): New patterns.
7269
7270 2019-08-15 Martin Liska <mliska@suse.cz>
7271
7272 PR ipa/91438
7273 * cgraph.c (cgraph_node::remove): When setting
7274 n->origin = NULL for all nested functions, reset
7275 also next_nested.
7276
7277 2019-08-15 Martin Liska <mliska@suse.cz>
7278
7279 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7280 and next_nested.
7281
7282 2019-08-15 Martin Liska <mliska@suse.cz>
7283
7284 PR ipa/91404
7285 * passes.c (order): Remove.
7286 (uid_hash_t): Likewise).
7287 (remove_cgraph_node_from_order): Remove from set
7288 of pointers (cgraph_node *).
7289 (insert_cgraph_node_to_order): New.
7290 (duplicate_cgraph_node_to_order): New.
7291 (do_per_function_toporder): Register all 3 cgraph hooks.
7292 Skip removed_nodes now as we know about all of them.
7293
7294 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7295
7296 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7297 <case E_V8QImode>: Use vector_set path for
7298 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7299 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7300 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7301
7302 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7303
7304 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7305
7306 2019-08-14 Martin Sebor <msebor@redhat.com>
7307
7308 PR tree-optimization/91294
7309 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7310 source length as exact.
7311
7312 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7313
7314 * doc/extend.texi: Add "noinit" attribute documentation.
7315 * doc/sourcebuild.texi: Add noinit effective target documentation.
7316 * varasm.c (default_section_type_flags): Add support for "noinit"
7317 section.
7318 (default_elf_select_section): Add support for "noinit" attribute.
7319 * config/msp430/msp430.c (msp430_attribute_table): Remove
7320 "noinit" entry.
7321
7322 2019-08-14 Richard Biener <rguenther@suse.de>
7323 Uroš Bizjak <ubizjak@gmail.com>
7324
7325 PR target/91154
7326 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7327 mode arguments.
7328 (scalar_chain::smode): New member.
7329 (scalar_chain::vmode): Likewise.
7330 (dimode_scalar_chain): Rename to...
7331 (general_scalar_chain): ... this.
7332 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7333 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7334 base with TImode and V1TImode.
7335 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7336 (general_scalar_chain::vector_const_cost): Adjust for SImode
7337 chains.
7338 (general_scalar_chain::compute_convert_gain): Likewise. Add
7339 {S,U}{MIN,MAX} support.
7340 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7341 (general_scalar_chain::make_vector_copies): Likewise. Handle
7342 non-DImode chains appropriately.
7343 (general_scalar_chain::convert_reg): Likewise.
7344 (general_scalar_chain::convert_op): Likewise.
7345 (general_scalar_chain::convert_insn): Likewise. Add
7346 fatal_insn_not_found if the result is not recognized.
7347 (convertible_comparison_p): Pass in the scalar mode and use that.
7348 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7349 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7350 (scalar_to_vector_candidate_p): Remove by inlining into single
7351 caller.
7352 (general_remove_non_convertible_regs): Rename from
7353 dimode_remove_non_convertible_regs.
7354 (remove_non_convertible_regs): Remove by inlining into single caller.
7355 (convert_scalars_to_vector): Handle SImode and DImode chains
7356 in addition to TImode chains.
7357 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7358 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7359 (*<maxmin>di3_doubleword): Likewise.
7360
7361 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7362 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7363
7364 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7365 (*cond_bic<mode>_any): New patterns.
7366
7367 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7368
7369 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7370 take the equivalent mask, as well as a bit count.
7371 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7372 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7373 (aarch64_sve_pred_and_operand): New predicates.
7374 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7375 code attribute.
7376 * config/aarch64/aarch64-sve.md
7377 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7378 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7379
7380 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7381
7382 * config/aarch64/aarch64-sve.md
7383 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7384 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7385 New patterns.
7386
7387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7388 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7389
7390 * config/aarch64/aarch64-sve.md
7391 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7392 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7393
7394 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7395 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7396
7397 * config/aarch64/aarch64-sve.md
7398 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7399 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7400
7401 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7402
7403 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7404 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7405 New pattern.
7406
7407 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7408 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7409
7410 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7411
7412 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7413 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7414
7415 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7416 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7417 (aarch64_print_operand): Add support for %I.
7418 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7419 Bitcast floating-point constants to the corresponding integer constant.
7420 (aarch64_float_const_representable_p): Handle vectors as well
7421 as scalars.
7422 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7423 for the new vcond_mask_<mode><vpred> expander.
7424 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7425 test aarch64_float_const_representable_p.
7426 (aarch64_sve_reg_or_dup_imm): New predicate.
7427 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7428 gen_vcond_mask_<mode><vpred> instead of
7429 gen_aarch64_sve_dup<mode>_const.
7430 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7431 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7432 for operands 1 and 2 respectively. Force operand 2 into a
7433 register if operand 1 is a register. Fold old define_insn...
7434 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7435 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7436 floating-point constants that can be moved as integers. Add
7437 alternatives for MOV /M and FMOV /M.
7438 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7439 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7440 1 and 2 respectively.
7441 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7442 as scalars.
7443 (vss): New constraint.
7444
7445 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7446
7447 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7448 (aarch64_sve_float_maxmin_operand): New predicates.
7449 * config/aarch64/constraints.md (vsB): New constraint.
7450 (vsM): Fix typo.
7451 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7452 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7453 UNSPEC_COND_FMINNM.
7454 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7455 Use aarch64_sve_float_maxmin_operand for operand 2.
7456 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7457 Add alternatives for the constant forms.
7458
7459 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7460
7461 * config/aarch64/constraints.md (vsb): New constraint.
7462 (vsm): Generalize description.
7463 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7464 iterator.
7465 (sve_imm_con): Handle smax, smin, umax and umin.
7466 (sve_imm_prefix): New code attribute.
7467 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7468 (aarch64_sve_vsb_operand): New predicates.
7469 (aarch64_sve_mul_immediate): Rename to...
7470 (aarch64_sve_vsm_immediate): ...this.
7471 (aarch64_sve_mul_operand): Rename to...
7472 (aarch64_sve_vsm_operand): ...this.
7473 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7474 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7475 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7476 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7477 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7478 add movprfx support for the immediate alternatives.
7479 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7480 of the above.
7481 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7482 for operand 3.
7483
7484 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7485
7486 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7487 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7488 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7489
7490 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7491
7492 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7493 (optab, sve_int_op): Handle them.
7494 * config/aarch64/aarch64-sve.md: Expand comment.
7495
7496 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7497
7498 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7499 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7500 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7501
7502 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7503
7504 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7505 (aarch64_expand_sve_const_pred_trn): New functions.
7506 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7507 use the above functions when the parameter is true.
7508 (aarch64_expand_sve_const_pred): Update call accordingly.
7509 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7510 Rename to...
7511 (@aarch64_sve_<perm_insn><mode>): ...this.
7512
7513 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7514
7515 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7516 Declare.
7517 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7518 (aarch64_sve_emit_int_cmp): New functions.
7519 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7520 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7521 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7522 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7523 (UNSPEC_PRED_Z): New unspec.
7524 (set_clobber_cc_nzc): Delete.
7525 * config/aarch64/aarch64-sve.md: Add a block comment about
7526 UNSPEC_PRED_Z.
7527 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7528 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7529 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7530 UNSPEC_MERGE_PTRUE.
7531 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7532 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7533 check for compatible predicates.
7534 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7535 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7536 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7537 comparisons above.
7538
7539 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7540
7541 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7542 * config/aarch64/aarch64-sve.md: Add a section describing it.
7543 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7544 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7545 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7546 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7547 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7548 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7549 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7550 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7551 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7552 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7553 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7554 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7555 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7556 (aarch64_evpc_rev_local): Update accordingly.
7557
7558 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7559
7560 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7561 iterators.
7562 (SVE_BHSI, SVE_SDI): Tweak comment.
7563 (SVE_HSDI): Likewise. Fix definition.
7564 (SVE_SDF): New mode iterator.
7565 (elem_bits): New mode attribute.
7566 (SVE_COND_FCVT): New int iterator.
7567 * config/aarch64/aarch64-sve.md
7568 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7569 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7570 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7571 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7572 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7573 ...these new patterns.
7574 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7575 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7576 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7577 Merge into...
7578 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7579 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7580 ...these new patterns.
7581 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7582 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7583 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7584 ...this new pattern.
7585 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7586 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7587 ...this new pattern.
7588 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7589
7590 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7591
7592 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7593 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7594 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7595 unspecs.
7596 (optab, su): Handle them.
7597 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7598 * config/aarch64/aarch64-sve.md
7599 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7600 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7601 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7602 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7603 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7604 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7605 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7606 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7607 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7608 FIXUORS.
7609 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7610 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7611 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7612 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7613 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7614 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7615 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7616 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7617 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7618 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7619 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7620 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7621 of UNSPEC_FLOAT_CONVERT.
7622 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7623 aarch64_sve_extend<mode><Vwide>2.
7624
7625 2019-08-14 Richard Biener <rguenther@suse.de>
7626
7627 PR target/91154
7628 * config/i386/i386-features.c
7629 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7630 individual instruction gain. Fix reg-reg copy GRP cost. Use
7631 ix86_cost->sse_op for vector instruction costs.
7632
7633 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7634
7635 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7636 (cmp_op): Handle it.
7637 (SVE_COND_FP_CMP): Rename to...
7638 (SVE_COND_FP_CMP_I0): ...this.
7639 (SVE_FP_CMP): Remove.
7640 * config/aarch64/aarch64-sve.md
7641 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7642 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7643 using unspecs to represent the comparison.
7644 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7645 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7646 accordingly.
7647 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7648 (aarch64_unspec_cond_code): Move after integer code. Handle
7649 UNORDERED.
7650 (aarch64_emit_sve_predicated_cond): Replace with...
7651 (aarch64_emit_sve_fp_cond): ...this new function.
7652 (aarch64_emit_sve_or_conds): Replace with...
7653 (aarch64_emit_sve_or_fp_conds): ...this new function.
7654 (aarch64_emit_sve_inverted_cond): Replace with...
7655 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7656 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7657
7658 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7659
7660 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7661 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7662 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7663 SVE_HSD instead of SVE_SD.
7664
7665 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7666 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7667
7668 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7669 iterator.
7670 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7671 attributes.
7672 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7673 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7674 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7675 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7676 (*div<SVE_F:mode>3): Generalize to...
7677 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7678
7679 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7680 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7681
7682 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7683 constants.
7684 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7685 predicate.
7686 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7687 Declare.
7688 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7689 function.
7690 * config/aarch64/aarch64-sve.md: Add a block comment about the
7691 handling of predicated FP operations.
7692 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7693 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7694 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7695 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7696 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7697 operand.
7698 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7699 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7700 operand.
7701 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7702 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7703 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7704 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7705 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7706 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7707 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7708 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7709 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7710 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7711 strictness operands. Use aarch64_sve_pred_dominates_p to check
7712 whether the predicate on the conditional operation is suitable
7713 for merging. Split patterns into the canonical equal-predicate form.
7714 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7715 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7716
7717 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7718 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7719
7720 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7721 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7722 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7723 rtx codes.
7724 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7725 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7726 unspecs.
7727
7728 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7729 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7730
7731 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7732 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7733 actually has, rather than relying on REG_EQUAL notes.
7734 Make the insn operand order match the SVE operand order.
7735 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7736 the SVE operand order.
7737
7738 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7739
7740 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7741 (aarch64_emit_set_immediate): Likewise.
7742 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7743 (aarch64_pfalse_reg): Likewise.
7744 (aarch64_convert_sve_data_to_pred): New function.
7745 (aarch64_sve_move_pred_via_while): Take an optional target register
7746 and the required register mode.
7747 (aarch64_expand_sve_const_pred_1): New function.
7748 (aarch64_expand_sve_const_pred): Likewise.
7749 (aarch64_expand_mov_immediate): Build an all-true predicate
7750 if the significant bits of the immediate are all true. Use
7751 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7752 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7753 before register allocation.
7754 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7755 a VNx16BI PTRUE when splitting the memory alternative.
7756 (vec_duplicate<mode>): Update accordingly.
7757 (*pred_cmp<cmp_op><mode>): Rename to...
7758 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7759
7760 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7761
7762 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7763 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7764 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7765 (UNSPEC_PTEST): New unspec.
7766 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7767 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7768 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7769 * config/aarch64/aarch64-sve.md: Add a new section describing the
7770 handling of UNSPEC_PTEST.
7771 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7772 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7773 (ptest_ptrue<mode>): Replace with...
7774 (aarch64_ptest<mode>): ...this new pattern.
7775 (cbranch<mode>4): Update after above changes.
7776 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7777 UNSPEC_PTEST_PTRUE.
7778 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7779 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7780 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7781
7782 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7783
7784 PR lto/91287
7785 * builtins.c (builtin_with_linkage_p): New function.
7786 * builtins.h (builtin_with_linkage_p): New function.
7787 * symtab.c (write_symbol): Remove redundant assert.
7788 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7789 Remove FIXME and use builtin_with_linkage_p.
7790
7791 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7792
7793 PR middle-end/91421
7794 * tree-core.h (function_decl::function_code): Change type to
7795 unsigned int.
7796 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7797 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7798 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7799 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
7800 is BUILT_IN_NORMAL.
7801 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7802 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7803 (fndecl_built_in_p): Change the type of the "name" argument to
7804 unsigned int.
7805 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7806 after check for DECL_BUILT_IN_CLASS.
7807 * cgraphclones.c (build_function_decl_skip_args): Use
7808 set_decl_built_in_function.
7809 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7810 * ipa-split.c (split_function): Likewise.
7811 * langhooks.c (add_builtin_function_common): Likewise.
7812 * omp-simd-clone.c (simd_clone_create): Likewise.
7813 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7814 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7815 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7816 DECL_FUNCTION_CODE.
7817 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7818 instead of DECL_FUNCTION_CODE.
7819 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7820 instead of DECL_FUNCTION_CODE.
7821 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7822 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7823 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
7824 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7825 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7826 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7827 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7828 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7829 (alpha_gimple_fold_builtin): Likewise.
7830 * config/arc/arc.c (arc_expand_builtin): Likewise.
7831 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7832 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7833 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7834 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7835 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7836 * config/frv/frv.c (frv_expand_builtin): Likewise.
7837 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7838 (gcn_expand_builtin): Likewise.
7839 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7840 (fold_builtin_cpu): Likewise.
7841 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7842 * config/i386/i386.c (ix86_fold_builtin): Likewise.
7843 (ix86_gimple_fold_builtin): Likewise.
7844 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7845 (ia64_expand_builtin): Likewise.
7846 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7847 * config/mips/mips.c (mips_expand_builtin): Likewise.
7848 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7849 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7850 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7851 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7852 * config/pa/pa.c (pa_expand_builtin): Likewise.
7853 * config/pru/pru.c (pru_expand_builtin): Likewise.
7854 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7855 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7856 Likewise.
7857 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7858 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7859 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7860 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7861 (rs6000_builtin_reciprocal): Likewise.
7862 * config/rx/rx.c (rx_expand_builtin): Likewise.
7863 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7864 * config/s390/s390.c (s390_expand_builtin): Likewise.
7865 * config/sh/sh.c (sh_expand_builtin): Likewise.
7866 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7867 (sparc_fold_builtin): Likewise.
7868 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7869 * config/spu/spu.c (spu_expand_builtin): Likewise.
7870 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
7871 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
7872 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
7873 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7874 (xtensa_expand_builtin): Likewise.
7875
7876 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7877
7878 PR middle-end/91421
7879 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
7880 before the DECL_FUNCTION_CODE.
7881 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
7882 to check for a BUILT_IN_ALLOCA call.
7883 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
7884 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
7885 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
7886 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7887 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
7888 for BUILT_IN_NORMAL functions.
7889 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
7890 test for BUILT_IN_TM_ABORT.
7891 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
7892 to check for a BUILT_IN_STACK_RESTORE call.
7893 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
7894 * tree-ssa-threadedge.c
7895 (record_temporary_equivalences_from_stmts_at_dest): Check for a
7896 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
7897 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
7898 test for a BUILT_IN_NORMAL call instead of a negative test for
7899 an internal function call.
7900
7901 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7902
7903 * tree.h (build_vector_a_then_b): Declare.
7904 * tree.c (build_vector_a_then_b): New function.
7905 * fold-const-call.c (fold_while_ult): Likewise.
7906 (fold_const_call): Use it to handle IFN_WHILE_ULT.
7907 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
7908 (aarch64_svpattern): New enum.
7909 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
7910 constants through aarch64_expand_mov_immediate.
7911 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
7912 than general_operand as the predicate for operand 1.
7913 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
7914 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
7915 insn_type.
7916 (simd_immediate_info::simd_immediate_info): New overload that
7917 takes a scalar_int_mode and an svpattern.
7918 (simd_immediate_info::u): Add a "pattern" field.
7919 (svpattern_token): New function.
7920 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
7921 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
7922 (aarch64_sve_move_pred_via_while): New functions.
7923 (aarch64_expand_mov_immediate): Try using
7924 aarch64_sve_move_pred_via_while for predicates that contain N ones
7925 followed by M zeros but that do not correspond to a VLnnn pattern.
7926 (aarch64_sve_pred_valid_immediate): New function.
7927 (aarch64_simd_valid_immediate): Use it instead of dealing directly
7928 with PTRUE and PFALSE.
7929 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
7930 forms.
7931
7932 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
7933
7934 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
7935 flag.
7936 (darwin_override_options): Likewise.
7937 * config/darwin.h: Likewise.
7938 * config/darwin.opt: Likewise.
7939 * config/i386/i386.c (output_pic_addr_const): Likewise.
7940 * config/rs6000/darwin.h: Likewise.
7941 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
7942 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
7943 ... this TARGET_MACHO_SYMBOL_STUBS.
7944 (FUNCTION_PROFILER):Likewise.
7945 * config/i386/i386.h: Likewise.
7946
7947 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
7948
7949 * config/i386/i386-expand.c (ix86_expand_vector_extract)
7950 <case E_V2SImode>: Use vec_extr path for
7951 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7952 <case E_V8QImode>: Ditto.
7953 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
7954 Use SWI48 mode iterator. Use %k to output operand 0.
7955 (*mmx_pextrw): New insn pattern.
7956 (*mmx_pextrb): Ditto.
7957 (*mmx_pextrb_zext): Ditto.
7958
7959 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
7960
7961 * target.def (libc_has_function, libc_has_fast_function): Improve
7962 documentation strings.
7963 * doc/tm.texi: Regenerate.
7964
7965 2019-08-13 Caroline Tice <cmtice@google.com>
7966
7967 PR other/91396
7968 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
7969 vtv_end.o or vtv_end_preinit.o files if !static.
7970
7971 2019-08-13 Olivier Hainque <hainque@adacore.com>
7972
7973 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
7974
7975 2019-08-13 Olivier Hainque <hainque@adacore.com>
7976
7977 * rtlanal.c (tablejump_casesi_pattern): New function, to
7978 determine if a tablejump insn is a casesi dispatcher. Extracted
7979 from patch_jump_insn.
7980 * rtl.h (tablejump_casesi_pattern): Declare.
7981 * cfgrtl.c (patch_jump_insn): Use it.
7982 * dwarf2cfi.c (create_trace_edges): Use it.
7983
7984 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
7985
7986 PR target/81800
7987 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
7988 operand is larger than a long int.
7989
7990 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7991
7992 * machmode.h (opt_mode::else_mode): New function.
7993 (opt_mode::else_blk): Use it.
7994 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
7995 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
7996 (aarch64_gen_stepped_int_parallel): Likewise.
7997 (aarch64_stepped_int_parallel_p): Likewise.
7998 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
7999 argument.
8000 * config/aarch64/aarch64.c
8001 (aarch64_expand_sve_widened_duplicate): Delete.
8002 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8003 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8004 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8005 argument. Use early returns in the !CONST_INT_P handling.
8006 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8007 than handling some inline.
8008 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8009 from...
8010 (aarch64_simd_container_mode): ...here.
8011 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8012 (aarch64_sve_ld1rq_operand_p): New functions.
8013 * config/aarch64/predicates.md (descending_int_parallel)
8014 (aarch64_sve_ld1rq_operand): New predicates.
8015 * config/aarch64/constraints.md (UtQ): New constraint.
8016 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8017 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8018 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8019 (@aarch64_sve_reinterpret<mode>): New expander.
8020 (*aarch64_sve_reinterpret<mode>): New pattern.
8021 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8022 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8023 (*sve_ld1rq<Vesize>): Replace with...
8024 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8025
8026 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8027
8028 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8029 16:12.
8030
8031 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8032
8033 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8034 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8035 (msp430_check_path_for_devices): New.
8036 (parse_devices_csv_1): New.
8037 (parse_devices_csv): New.
8038 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8039 MCU data in devices.csv before using the hard-coded data.
8040 Warn if devices.csv isn't found and the MCU wasn't found in the
8041 hard-coded data either.
8042 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8043 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8044 Search for devices.csv on -I and -L paths.
8045 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8046 msp430_set_driver_var.
8047 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8048 -mdevices-csv-loc=.
8049 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8050 searched for devices.csv.
8051 (mwarn-devices-csv): Document option.
8052
8053 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8054
8055 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8056 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8057 Use a single Dn alternative instead of separate Dz and Dm
8058 alternatives. Use aarch64_output_sve_move_immediate.
8059 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8060 function.
8061 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8062 for predicates too.
8063 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8064 (aarch64_output_ptrue): Delete.
8065
8066 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8067
8068 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8069 INDEX.
8070 (simd_immediate_info::value, simd_immediate_info::step)
8071 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8072 with...
8073 (simd_immediate_info::u): ...this new union.
8074 (simd_immediate_info::simd_immediate_info): Update accordingly.
8075 (aarch64_output_simd_mov_immediate): Likewise.
8076 (aarch64_output_sve_mov_immediate): Likewise.
8077
8078 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8079
8080 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8081 extra_gcc_objs.
8082 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8083 (msp430_select_cpu): New spec function.
8084 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8085 MCU data.
8086 * config/msp430/msp430-devices.c: New file.
8087 * config/msp430/msp430-devices.h: New file.
8088 * config/msp430/msp430.c: Remove msp430_mcu_data.
8089 (msp430_option_override): Use msp430_extract_mcu_data to extract
8090 MCU data.
8091 (msp430_use_f5_series_hwmult): Likewise.
8092 (use_32bit_hwmult): Likewise.
8093 (msp430_no_hwmult): Likewise.
8094 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8095 assembler.
8096 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8097 and -mcpu option.
8098 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8099 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8100 Remove hard-coded MCU multilib data.
8101
8102 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8103
8104 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8105 based on the mode instead of testing properties of it.
8106
8107 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8108
8109 * doc/md.texi: Document the x and y constraints for AArch64.
8110 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8111 (FP_LO8_REGS): New reg_class.
8112 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8113 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8114 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8115 * config/aarch64/predicates.md (aarch64_simd_register): Use
8116 FP_REGNUM_P instead of checking the classes manually.
8117 * config/aarch64/constraints.md (y): New constraint.
8118
8119 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8120
8121 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8122 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8123 * config/aarch64/aarch64-simd.md
8124 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8125 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8126 from the asm template.
8127 * config/aarch64/aarch64-sve.md
8128 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8129 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8130 from the asm template.
8131 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8132 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8133 from the asm template.
8134 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8135
8136 2019-08-13 Martin Liska <mliska@suse.cz>
8137
8138 * value-prof.c (gimple_ic_transform): Add new line.
8139 Print details with MSG_NOTE.
8140
8141 2019-08-13 Martin Liska <mliska@suse.cz>
8142
8143 * doc/invoke.texi: Document automatic detection of jobserver.
8144 * lto-wrapper.c (run_gcc): Detect jobserver always.
8145
8146 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8147
8148 * config/i386/i386-expand.c (ix86_expand_vector_set)
8149 <case E_V2SImode>: Use vec_merge path for
8150 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8151 <case E_V8QImode>: Ditto.
8152 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8153 (*mmx_pinsrb): Ditto.
8154
8155 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8156
8157 PR target/83250
8158 PR target/91340
8159 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8160 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8161 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8162 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8163 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8164
8165 2019-08-12 Richard Biener <rguenther@suse.de>
8166
8167 PR lto/91375
8168 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8169 flag_devirtualize.
8170
8171 2019-08-12 Richard Biener <rguenther@suse.de>
8172
8173 PR driver/91130
8174 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8175 lang_mask option, always use CL_DRIVER.
8176 (get_options_from_collect_gcc_options): Adjust.
8177 (find_and_merge_options): Likewise.
8178 (run_gcc): Likewise.
8179
8180 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8181
8182 * ipa-predicate.c (add_condition): Restore inverted test.
8183
8184 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8185
8186 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8187 (enum omp_clause_device_type_kind): New enum.
8188 (struct tree_omp_clause): Add subcode.device_type_kind.
8189 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8190 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8191 for device_type clause.
8192 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8193 * tree-pretty-print.c (dump_omp_clause): Likewise.
8194
8195 PR target/91408
8196 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8197 vector_operand.
8198
8199 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8200
8201 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8202 handling spilled pseudos.
8203
8204 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8205
8206 PR target/91386
8207 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8208 to preserve the contents of the original insns.
8209
8210 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8211
8212 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8213 (addsi3_compare_op2): Likewise.
8214
8215 2019-08-09 Martin Liska <mliska@suse.cz>
8216
8217 * alias.c (alias_ptr_types_compatible_p): Strengten
8218 type comparison in LTO mode.
8219
8220 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8221
8222 PR middle-end/90313
8223 * tree-tailcall.c (find_tail_calls): Reject calls that might
8224 read from an escaped RESULT_DECL.
8225
8226 2019-08-09 Martin Liska <mliska@suse.cz>
8227
8228 * doc/invoke.texi: Document the option value.
8229 * lto-wrapper.c (run_gcc): Set auto_parallel
8230 only with -flto=auto.
8231
8232 2019-08-09 Martin Liska <mliska@suse.cz>
8233
8234 * opts.c (common_handle_option): Error for an invalid argument
8235 to -flto=.
8236
8237 2019-08-09 Martin Liska <mliska@suse.cz>
8238
8239 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8240 use dump_printf to report optimization.
8241 (sem_variable::merge): Likwise.
8242 (sem_item_optimizer::merge_classes): Use dump_printf to report
8243 ICF hits.
8244
8245 2019-08-09 Martin Liska <mliska@suse.cz>
8246
8247 * value-prof.c (gimple_divmod_fixed_value_transform):
8248 Use dump_printf_loc.
8249 (gimple_mod_pow2_value_transform): Likewise.
8250 (gimple_mod_subtract_transform): Likewise.
8251 (init_node_map): Likewise.
8252 (gimple_ic_transform): Likewise.
8253 (gimple_stringops_transform): Likewise.
8254
8255 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8256
8257 * doc/extend.texi: Add const qualifier to ld intrinsics.
8258
8259 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8260
8261 * config/rs6000/dfp.md (D64_D128): Rename to ...
8262 (DDTD): ... this, throughout.
8263 (dfp_suffix): Rename to ...
8264 (q): ... this, throughout.
8265
8266 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8267
8268 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8269 (dfp_suffix): Ditto.
8270 (adddd3, addtd3): Merge to ...
8271 (add<mode>3 for D64_D128): ... this.
8272 (subdd3, subtd3): Merge to ...
8273 (sub<mode>3 for D64_D128): ... this.
8274 (muldd3, multd3): Merge to ...
8275 (mul<mode>3 for D64_D128): ... this.
8276 (divdd3, divtd3): Merge to ...
8277 (div<mode>3 for D64_D128): ... this.
8278 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8279 (*cmp<mode>_internal1 for D64_D128): ... this.
8280 (ftruncdd2, ftrunctd2): Merge to ...
8281 (ftrunc<mode>2 for D64_D128): ... this.
8282 (fixdddi2, fixtddi2): Merge to ...
8283 (fix<mode>di2 for D64_D128): ... this.
8284
8285 2019-08-08 Jim Wilson <jimw@sifive.com>
8286
8287 PR target/91229
8288 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8289 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8290 Pass into recursive call.
8291 (riscv_flatten_aggregate_argument): New arg. Pass to
8292 riscv_flatten_aggregate_field.
8293 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8294 riscv_flatten_aggregate_argument twice, with false and true as last
8295 arg. Process result twice. Compare results and warn if different.
8296 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8297
8298 2019-08-08 Martin Liska <mliska@suse.cz>
8299
8300 PR bootstrap/91352
8301 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8302 * lto-wrapper.c (jobserver_active_p): Likewise.
8303
8304 2019-08-08 Martin Liska <mliska@suse.cz>
8305
8306 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8307 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8308 (create_version_clone_with_body): Likewise.
8309
8310 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8311
8312 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8313 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8314 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8315 GOVD_EXPLICIT flags.
8316 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8317 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8318 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8319 call install_var_field with mask 11 instead of 3.
8320 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8321 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8322
8323 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8324
8325 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8326 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8327
8328 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8329
8330 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8331 MOVPRFX alternatives. Make the GPR alternatives more expensive
8332 than the FPR ones.
8333
8334 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8335
8336 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8337 Disparage the GPR alternative relative to the FPR one.
8338 Fix handling of 8-bit and 16-bit FPR values.
8339
8340 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8341
8342 * config/aarch64/iterators.md (BITWISEV): Delete.
8343 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8344 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8345 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8346 UNSPEC_FMINNMV, UNSPEC_FMINV.
8347 (bit_reduc_op): Delete.
8348 (sve_int_op): New int attribute.
8349 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8350 UNSPEC_FMINNMV, UNSPEC_FMINV.
8351 * config/aarch64/aarch64-sve.md
8352 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8353 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8354 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8355 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8356 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8357 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8358 new patterns.
8359 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8360 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8361 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8362 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8363 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8364 new patterns.
8365
8366 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8367
8368 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8369 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8370 (fms<mode>4, *fms<mode>4): Replace with...
8371 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8372 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8373 Use unspecs instead of rtx codes.
8374 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8375 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8376
8377 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8378
8379 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8380 int iterator.
8381 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8382 * config/aarch64/aarch64-sve.md
8383 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8384 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8385 use a single unspec for the rhs.
8386 (*<su><maxmin><mode>3): Delete.
8387 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8388
8389 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8390
8391 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8392 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8393 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8394 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8395 (optab, sve_fp_op): Handle them.
8396 (SVE_FP_UNARY): Delete.
8397 (optab): Remove sqrt entry.
8398 (sve_fp_op): Remove neg, abs and sqrt entries.
8399 (SVE_COND_FP_UNARY): New int iterator.
8400 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8401 (*<frint_pattern><mode>2): Delete.
8402 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8403 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8404 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8405 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8406
8407 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8408
8409 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8410
8411 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8412
8413 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8414 (UNSPEC_COND_FADD): ...this.
8415 (UNSPEC_COND_SUB): Rename to...
8416 (UNSPEC_COND_FSUB): ...this.
8417 (UNSPEC_COND_MUL): Rename to...
8418 (UNSPEC_COND_FMUL): ...this.
8419 (UNSPEC_COND_DIV): Rename to...
8420 (UNSPEC_COND_FDIV): ...this.
8421 (UNSPEC_COND_MAX): Rename to...
8422 (UNSPEC_COND_FMAXNM): ...this.
8423 (UNSPEC_COND_MIN): Rename to...
8424 (UNSPEC_COND_FMINNM): ...this.
8425 (UNSPEC_COND_LT): Rename to...
8426 (UNSPEC_COND_FCMLT): ...this.
8427 (UNSPEC_COND_LE): Rename to...
8428 (UNSPEC_COND_FCMLE): ...this.
8429 (UNSPEC_COND_EQ): Rename to...
8430 (UNSPEC_COND_FCMEQ): ...this.
8431 (UNSPEC_COND_NE): Rename to...
8432 (UNSPEC_COND_FCMNE): ...this.
8433 (UNSPEC_COND_GE): Rename to...
8434 (UNSPEC_COND_FCMGE): ...this.
8435 (UNSPEC_COND_GT): Rename to...
8436 (UNSPEC_COND_FCMGT): ...this.
8437 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8438 (sve_fp_op_rev): Update accordingly.
8439 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8440
8441 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8442
8443 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8444 banner comments.
8445 * config/aarch64/check-sve-md.awk: New file.
8446 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8447 (insn-conditions.md): Depend on it.
8448
8449 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8450
8451 PR target/91385
8452 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8453 (*negsi2_cmpz_zext): Ditto.
8454
8455 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8456
8457 * config/aarch64/iterators.md (commutative): Remove.
8458
8459 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8460
8461 PR driver/91130
8462 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8463 processing COLLECT_GCC_OPTIONS.
8464 (run_gcc): Likewise.
8465
8466 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8467
8468 PR tree-optimization/91109
8469 * lra-remat.c (update_scratch_ops): Remove assignment of the
8470 hard register.
8471
8472 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8473
8474 * data-streamer.h (streamer_write_poly_uint64): Declare.
8475 (streamer_read_poly_uint64): Likewise.
8476 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8477 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8478 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8479 (add_condition): Take a poly_int64 size.
8480 * ipa-predicate.c (add_condition): Likewise.
8481 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8482 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8483 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8484 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8485 condition::size as a poly_int64.
8486 (unmodified_parm_1): Take a poly_int64 size pointer.
8487 (unmodified_parm): Likewise.
8488 (unmodified_parm_or_parm_agg_item): Likewise.
8489 (set_cond_stmt_execution_predicate): Update accordingly.
8490 (set_switch_stmt_execution_predicate): Likewise.
8491 (will_be_nonconstant_expr_predicate): Likewise.
8492 (will_be_nonconstant_predicate): Likewise.
8493 (inline_read_section): Stream condition::size as a poly_int.
8494 (ipa_fn_summary_write): Likewise.
8495
8496 2019-08-07 Martin Liska <mliska@suse.cz>
8497
8498 * fold-const.c (twoval_comparison_p): Replace int
8499 with bool as a return type.
8500 (simple_operand_p): Likewise.
8501 (operand_equal_p): Replace int with bool as a return type.
8502 * fold-const.h (operand_equal_p): Likewise.
8503
8504 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8505
8506 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8507 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8508 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8509 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8510 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8511 * tree-pretty-print.c (dump_omp_clause): Likewise.
8512 * tree-nested.c (convert_nonlocal_omp_clauses,
8513 convert_local_omp_clauses): Likewise.
8514 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8515 Likewise.
8516 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8517 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8518 clause with array or reference to array types, no matter what type
8519 except for reference it has.
8520
8521 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8522
8523 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8524
8525 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8526
8527 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8528 (arch_canonicalize): Support rv32g and rv64g and fix error
8529 handling.
8530
8531 2019-08-06 Martin Liska <mliska@suse.cz>
8532
8533 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8534 and DECL_IS_OPERATOR_DELETE_P.
8535
8536 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8537
8538 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8539 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8540 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8541 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8542 (gimplify_omp_for): Don't do C++ random access iterator clause
8543 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8544 don't predetermine the artificial iterator in case of C++ random
8545 access iterators as lastprivate, but private. For OMP_LOOP, force
8546 bind expr around simd body and force for_pre_body before the
8547 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8548 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8549 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8550 diff var of C++ random access iterators. Handle
8551 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8552 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8553 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8554 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8555 * omp-low.c (lower_rec_input_clauses): For
8556 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8557 variables instead of default constructing them.
8558 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8559 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8560 is_taskloop_ctx check from the assert to the guarding condition.
8561
8562 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8563
8564 * config/riscv/multilib-generator: (canonical_order): New.
8565 (arch_canonicalize): Dito.
8566 Apply arch_canonicalize for alts.
8567
8568 2019-08-05 Martin Sebor <msebor@redhat.com>
8569
8570 * doc/extend.texi (Common Variable Attributes): Document alias
8571 attribute.
8572
8573 2019-08-05 Marek Polacek <polacek@redhat.com>
8574
8575 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8576 * doc/invoke.texi: Document -Wcomma-subscript.
8577
8578 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8579
8580 * tree-core.h (tree_function_decl): Make function_code an
8581 independent field. Group the remaining bitfields into bytes
8582 and move decl_type so that it contines to be at a byte boundary.
8583 Leave 12 bits for future expansion.
8584
8585 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8586
8587 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8588 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8589 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8590 IFN_MASK_STORE.
8591
8592 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8593
8594 * gimple.h (gimple_move_vops): Declare.
8595 * gimple.c (gimple_move_vops): New function
8596 * gimple-fold.c (replace_call_with_call_and_fold)
8597 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8598 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8599 (gimple_fold_call): Use it.
8600 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8601 * tree-call-cdce.c (use_internal_fn): Likewise.
8602 * tree-if-conv.c (predicate_load_or_store): Likewise.
8603 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8604 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8605 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8606 (update_call_from_tree): Likewise.
8607 * tree-vect-stmts.c (vectorizable_load): Likewise.
8608 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8609
8610 2019-08-05 Martin Liska <mliska@suse.cz>
8611
8612 PR c++/91334
8613 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8614 with not arguments.
8615 (eliminate_unnecessary_stmts): Likewise.
8616
8617 2019-08-05 Richard Biener <rguenther@suse.de>
8618
8619 PR middle-end/91169
8620 * fold-const.c (get_array_ctor_element_at_index): Create
8621 offset_ints according to the sign of the index type and treat
8622 that as signed if it is obviously so.
8623
8624 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8625
8626 PR target/91341
8627 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8628 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8629 _mm256_storeu2_m128i): New function.
8630
8631 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8632
8633 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8634 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8635
8636 2019-08-05 Alan Modra <amodra@gmail.com>
8637
8638 PR target/91349
8639 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8640 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8641
8642 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8643
8644 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8645 bug that was fixed in Tcl 8.6.1.
8646
8647 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8648
8649 * config/rs6000/future.md: New file.
8650 * config/rs6000/rs6000.md: Include future.md.
8651 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8652
8653 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8654
8655 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8656 check to use targetm.slow_unaligned_access instead.
8657
8658 * function.c (assign_param_data_one): Remove unused data members.
8659
8660 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8661
8662 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8663 build_distinct_type_copy.
8664 (simd_clone_adjust_argument_types): Ditto.
8665 (simd_clone_adjust): Call build_distinct_type_copy here.
8666 (expand_simd_clones): Ditto.
8667
8668 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8669
8670 PR target/91201
8671 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8672
8673 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8674
8675 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8676 from 'const void *'.
8677 (sort_locs_in_loop_postorder_cmp): Likewise.
8678
8679 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8680
8681 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8682 (hot-bb-count-ws-permille): Likewise.
8683 (hot-bb-frequency-fraction): Likewise.
8684 (unlikely-bb-count-fraction): Likewise.
8685 * params.def (hot-bb-count-fraction): Rework description.
8686 (hot-bb-count-ws-permille): Likewise.
8687 (hot-bb-frequency-fraction): Likewise.
8688 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8689 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8690
8691 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8692
8693 PR target/91323
8694 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8695 Return false.
8696
8697 2019-08-02 Richard Biener <rguenther@suse.de>
8698
8699 * vec.h (vec::sort): Add gcc_qsort_r support.
8700 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8701 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8702 to gcc_qsort_r style callback.
8703 (sort_locs_in_loop_postorder_cmp): Likewise.
8704 (analyze_memory_references): Use gcc_sort_r interfaces.
8705 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8706
8707 2019-08-02 Martin Liska <mliska@suse.cz>
8708
8709 PR lto/91313
8710 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8711 to detect working job server.
8712 (driver::detect_jobserver): Test whether jobserver
8713 is active from GCC driver. That will prevent situation where
8714 GCC is invoked from a LD plugin and the linker already uses
8715 file descriptors suggested by make. That leads to a wrong
8716 detection.
8717 * gcc.h (driver): Add detect_jobserver.
8718 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8719 not scanning for --jobserver-auth prefix.
8720
8721 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8722
8723 PR tree-optimization/91201
8724 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8725 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8726 extraction.
8727
8728 2019-08-01 Martin Sebor <msebor@redhat.com>
8729
8730 PR c++/90947
8731 * tree.c (type_initializer_zero_p): Define.
8732 * tree.h (type_initializer_zero_p): New function.
8733
8734 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8735
8736 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8737
8738 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8739
8740 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8741 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8742 * predict.c (maybe_hot_count_p): Likewise.
8743 (maybe_hot_bb_p): Tweak comment.
8744 (maybe_hot_edge_p): Likewise.
8745 (probably_never_executed): Likewise. Minor tweak.
8746 (probably_never_executed_bb_p): Likewise.
8747 (unlikely_executed_edge_p): Likewise.
8748 (probably_never_executed_edge_p): Likewise.
8749 (optimize_function_for_size_p): Likewise.
8750 (optimize_function_for_speed_p): Likewise.
8751 (function_optimization_type): Likewise.
8752 (optimize_bb_for_size_p): Likewise.
8753 (optimize_bb_for_speed_p): Likewise.
8754 (bb_optimization_type): Likewise.
8755 (optimize_edge_for_size_p): Likewise.
8756 (optimize_edge_for_speed_p): Likewise.
8757 (optimize_insn_for_size_p): Likewise.
8758 (optimize_insn_for_speed_p): Likewise.
8759 (optimize_loop_for_size_p): Likewise.
8760 (optimize_loop_for_speed_p): Likewise.
8761 (optimize_loop_nest_for_speed_p): Likewise.
8762 (optimize_loop_nest_for_size_p): Likewise.
8763 (predictable_edge_p): Likewise.
8764 (handle_missing_profiles): Minor tweak.
8765
8766 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8767
8768 * config/rs6000/predicates.md (pcrel_external_address): Update
8769 comment.
8770
8771 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8772
8773 PR target/85693
8774 * config/i386/mmx.md (usadv8qi): New expander.
8775
8776 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8777
8778 PR c++/90590
8779 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8780 with reserved names that are in a system header.
8781
8782 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8783
8784 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8785 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8786 (*vec_extractv2si_0_zext): Ditto.
8787 (*vec_extractv2si_1): Add (rm,x) alternative.
8788 (*vec_extractv2si_1_zext): New insn pattern.
8789 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8790 insn constraint.
8791
8792 2019-08-01 Richard Biener <rguenther@suse.de>
8793
8794 * domwalk.c (bb_postorder): Remove static variable.
8795 (cmp_bb_postorder): Adjust.
8796 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8797 (dom_walker::walk): Adjust.
8798
8799 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
8800
8801 * sort.cc (sort_r_ctx): New struct.
8802 (reorder23): Make templated on context type.
8803 (reorder45): Ditto.
8804 (cmp1): Ditto. Adjust signature.
8805 (netsort): Ditto.
8806 (mergesort): Ditto.
8807 [CHECKING_P] (cmp2to3): New static function. Use it...
8808 (gcc_qsort) [CHECKING_P]: ...here.
8809 (gcc_sort_r): New function.
8810 * system.h (sort_r_cmp_fn): New function typedef.
8811 (qsort_chk): Adjust signature.
8812 (gcc_sort_r): Declare.
8813 * vec.c (qsort_chk_error): Adjust.
8814 (qsort_chk): Adjust.
8815
8816 2019-08-01 Richard Biener <rguenther@suse.de>
8817
8818 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8819 (compute_antic): Localize it here.
8820
8821 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
8822
8823 * common/config/riscv/riscv-common.c: Check -march string ends
8824 with null.
8825
8826 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
8827
8828 * ipa-devirt.c (type_warning_cmp): Make static.
8829 (decl_warning_cmp): Ditto.
8830
8831 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
8832
8833 PR target/91050
8834 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8835 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8836 use of deleted rs6000_dejagnu_cpu_index variable.
8837 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8838 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8839 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8840 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8841 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8842 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8843
8844 2019-07-31 Richard Biener <rguenther@suse.de>
8845
8846 PR tree-optimization/91280
8847 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8848 Decompose MEM_REF manually for offset handling.
8849
8850 2019-07-31 Richard Biener <rguenther@suse.de>
8851
8852 PR tree-optimization/91293
8853 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8854 of reduction stmts.
8855
8856 2019-07-31 Matt Thomas <matt@3am-software.com>
8857 Nick Hudson <nick@nthcliff.demon.co.uk>
8858 Matthew Green <mrg@eterna.com.au>
8859 Maya Rashish <coypu@sdf.org>
8860
8861 * config.gcc (hppa*-*-netbsd*): New target.
8862 * config/pa/pa-netbsd.h: New file.
8863 * config/pa/pa32-netbsd.h: New file.
8864
8865 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8866
8867 PR tree-optimization/91201
8868 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
8869
8870 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
8871
8872 * config/gcn/gcn-valu.md
8873 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
8874 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
8875 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8876 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
8877 struct ilist. Add nops for delayeduse insns.
8878 * config/gcn/gcn.md (delayeduse): New attribute.
8879 (*movbi): Remove s_waitcnt from stores.
8880 (*mov<mode>_insn): Likewise.
8881 (*movti_insn): Likewise. Add delayeduse attribute.
8882 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
8883 (atomic_store<mode>): Remove or adjust s_waitcnt.
8884
8885 2019-07-31 Richard Biener <rguenther@suse.de>
8886
8887 * vr-values.h (vr_values::swap_vr_value): New.
8888 (vr_values::free_value_range): likewise.
8889 * vr-values.c (vr_values::swap_vr_value): Implement.
8890 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
8891 Do not return a range or take a var.
8892 (evrp_range_analyzer::stack): Change back to recording a non-const
8893 value_range *.
8894 * gimple-ssa-evrp-analyze.c
8895 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
8896 value-range.
8897 (evrp_range_analyzer::pop_to_marker): Adjust.
8898 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
8899 (evrp_range_analyzer::pop_value_range): Likewise. Free the
8900 no longer needed value-range.
8901
8902 2019-07-31 Martin Liska <mliska@suse.cz>
8903
8904 * tree-ssa-dce.c (propagate_necessity): Delete operator can
8905 have size and (or) alignment as 2nd and later arguments.
8906 Mark all of them as necessary.
8907
8908 2019-07-31 Richard Biener <rguenther@suse.de>
8909
8910 PR tree-optimization/91178
8911 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8912 Use tail-recursion.
8913
8914 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8915
8916 PR tree-optimization/91201
8917 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
8918 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
8919 TARGET_AVX512F.
8920 (reduc_plus_scal_<mode>): Improve formatting by introducing
8921 a temporary.
8922
8923 2019-07-31 Sudakshina Das <sudi.das@arm.com>
8924
8925 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
8926 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
8927 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
8928 (aarch64_init_tme_builtins): New.
8929 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
8930 (aarch64_expand_builtin_tme): New.
8931 (aarch64_expand_builtin): Handle TME builtins.
8932 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
8933 __ARM_FEATURE_TME when enabled.
8934 * config/aarch64/aarch64-option-extensions.def: Add "tme".
8935 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
8936 (TARGET_TME): New.
8937 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
8938 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
8939 UNSPECV_TCANCEL.
8940 (tstart, ttest, tcommit, tcancel): New instructions.
8941 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
8942 (__tcancel, __ttest): New.
8943 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
8944 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
8945 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
8946 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
8947 * config/arm/types.md: Add new tme type attr.
8948 * doc/invoke.texi: Document "tme".
8949
8950 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
8951
8952 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
8953 warn_unused_result attribute.
8954 (cmse_check_address_range): Add warn_unused_result attribute.
8955
8956 2019-07-31 Richard Biener <rguenther@suse.de>
8957
8958 PR tree-optimization/91257
8959 * tree-vrp.c (union_ranges): Unify equality and less tests
8960 by using compare_values. Re-order cheap tests first.
8961
8962 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8963
8964 PR middle-end/91301
8965 * gimplify.c (gimplify_omp_for): If for class iterator on
8966 distribute parallel for there is no data sharing clause
8967 on inner_for_stmt, look for private clause on combined
8968 parallel too and if found, move it to inner_for_stmt.
8969
8970 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
8971
8972 * lra-int.h (lra_operand_data): Remove early_clobber field.
8973 (lra_insn_reg): Likewise.
8974 * lra.c (debug_operand_data): Update accordingly.
8975 (setup_operand_alternative): Likewise.
8976 (new_insn_reg): Likewise. Remove early_clobber parameter.
8977 (collect_non_operand_hard_regs): Update call accordingly.
8978 Don't assign to lra_insn_reg::early_clobber.
8979 (add_regs_to_insn_regno_info): Remove early_clobber parameter
8980 and update calls to new_insn_reg.
8981 (lra_update_insn_regno_info): Update calls accordingly.
8982 * lra-constraints.c (update_and_check_small_class_inputs): Take the
8983 alternative number as a parameter and test whether the operand
8984 is earlyclobbered in that particular alternative.
8985 (process_alt_operands): Update call accordingly. Use per-alternative
8986 checks for earyclobber here too.
8987 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
8988 against zero for IRA_UNKNOWN_ALT.
8989
8990 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
8991
8992 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
8993
8994 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
8995
8996 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
8997 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8998
8999 2019-07-30 Martin Liska <mliska@suse.cz>
9000
9001 PR ipa/89330
9002 * cgraph.c (cgraph_edge::make_direct): Use
9003 edge->indirect_unknown_callee as edge->resolve_speculation can
9004 deallocate edge which is this pointer.
9005
9006 2019-07-30 Richard Biener <rguenther@suse.de>
9007
9008 PR tree-optimization/91257
9009 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9010
9011 2019-07-30 Martin Liska <mliska@suse.cz>
9012
9013 * doc/invoke.texi: Document new behavior.
9014 * lto-wrapper.c (cpuset_popcount): New function
9015 is a copy of libgomp/config/linux/proc.c.
9016 (init_num_threads): Likewise.
9017 (run_gcc): Automatically detect core count for -flto.
9018 (jobserver_active_p): New function.
9019
9020 2019-07-30 Richard Biener <rguenther@suse.de>
9021
9022 PR tree-optimization/91257
9023 * bitmap.h (bitmap_ior_into_and_free): Declare.
9024 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9025 whether to add the unliked element to the freelist.
9026 (bitmap_list_insert_element_after): Add defaulted param for
9027 an already allocated element.
9028 (bitmap_ior_into_and_free): New function.
9029 * tree-ssa-structalias.c (condense_visit): Reduce the
9030 ponts-to and edge bitmaps of the SCC members in a
9031 logarithmic fashion rather than all to one.
9032
9033 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9034
9035 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9036 parameter. When nonnull, make sure that the addition or subtraction
9037 has the same condition.
9038 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9039 for CFN_COND_MUL too.
9040
9041 2019-07-30 Richard Biener <rguenther@suse.de>
9042
9043 PR tree-optimization/91291
9044 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9045 constant values.
9046
9047 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9048
9049 PR middle-end/91216
9050 * omp-low.c (global_nonaddressable_vars): New variable.
9051 (use_pointer_for_field): For global decls, if they are non-addressable,
9052 remember it in the global_nonaddressable_vars bitmap, if they are
9053 addressable and in the global_nonaddressable_vars bitmap, ignore their
9054 TREE_ADDRESSABLE bit.
9055 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9056 vars in global_nonaddressable_vars bitmap.
9057 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9058
9059 PR target/91150
9060 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9061 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9062 comparison to unsigned HOST_WIDE_INT before shifting it left.
9063
9064 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9065
9066 * config/i386/i386.md (movstrict<mode>): Use register_operand
9067 predicate for operand 0. Add expander condition. Assert that
9068 operand 0 is a SUBREG RTX.
9069 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9070 Update operand constraints and insn condition.
9071 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9072 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9073 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9074 Update operand 0 constraints.
9075 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9076
9077 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9078
9079 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9080 when -m{code,data}-region are used without -mlarge.
9081 * config/msp430/msp430.c (msp430_option_override): Error when a
9082 non-default code or data region is used without -mlarge.
9083 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9084 attributes when they are used without -mlarge.
9085
9086 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9087
9088 PR target/70320
9089 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9090
9091 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9092
9093 PR middle-end/91242
9094 * wide-int.h (generic_wide_int::sext_elt): New function.
9095 * inchash.h (hash::add_wide_int): Use it instead of elt.
9096
9097 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9098
9099 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9100 CODE_FOR_arm_##.
9101 * config/arm/arm.md (<crc_variant>): Rename to...
9102 (arm_<crc_variant>): ... This.
9103 (<cdp>): Rename to...
9104 (arm_<cdp>): ... This.
9105 (<ldc>): Rename to...
9106 (arm_<ldc>): ... This.
9107 (<stc>): Rename to...
9108 (arm_<stc>): ... This.
9109 (<mcr>): Rename to...
9110 (arm_<mcr>): ... This.
9111 (<mrc>): Rename to...
9112 (arm_<mrc>): ... This.
9113 (<mcrr>): Rename to...
9114 (arm_<mcrr>): ... This.
9115 (<mrrc>): Rename to...
9116 (arm_<mrrc>): ... This.
9117
9118 2019-07-29 Richard Biener <rguenther@suse.de>
9119
9120 PR tree-optimization/91257
9121 * tree-ssa-sccvn.h (struct vn_avail): New.
9122 (struct vn_ssa_aux): Add avail member.
9123 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9124 member, add m_avail_freelist one.
9125 (rpo_elim::~rpo_elim): Remove.
9126 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9127 data structure.
9128 (rpo_elim::eliminate_push_avail): Likewise.
9129 (do_unwind): Likewise.
9130 (do_rpo_vn): Likewise.
9131
9132 2019-07-29 Richard Biener <rguenther@suse.de>
9133
9134 PR tree-optimization/91257
9135 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9136 most cases, instead call compare_values which handles the
9137 symbolic ranges we handle specially.
9138 (compare_values_warnv): Do not call operand_less_p but open-code
9139 the effective fold calls. Avoid converting so much.
9140
9141 2019-07-29 Martin Liska <mliska@suse.cz>
9142
9143 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9144 remove LHS of operator new call. It's handled latter.
9145
9146 2019-07-29 Richard Biener <rguenther@suse.de>
9147
9148 PR tree-optimization/91267
9149 * vr-values.c (vr_values::update_value_range): Add early return
9150 for effectively VARYING lattice entry.
9151
9152 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9153
9154 PR debug/86638
9155 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9156 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9157 necessary if keep_all_vdefs_p is true.
9158 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9159 that keep_all_vdefs_p is false.
9160 (mark_all_reaching_defs_necessary): Likewise.
9161 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9162
9163 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9164
9165 * common.opt (Og): Change the initial value of flag_dse to 0.
9166 * opts.c (default_options_table): Move OPT_ftree_dse from
9167 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9168 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9169 entry before the OPT_ftree_sra entry.
9170 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9171 of flags disabled by Og.
9172
9173 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9174
9175 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9176 variables for -Og.
9177
9178 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9179
9180 * doc/sourcebuild.texi (check-function-bodies): Document.
9181
9182 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9183
9184 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9185 VEC_DUPLICATE of a fixed-length vector even if the result
9186 is variable-length. Likewise fold a duplicate of a
9187 variable-length vector if the variable-length vector is
9188 itself a duplicate of a fixed-length sequence.
9189 (test_vector_ops_duplicate): Test more cases.
9190
9191 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9192
9193 * vector-builder.h (vector_builder): Add a shape template parameter.
9194 (vector_builder::new_unary_operation): New function, generalizing
9195 the old tree_vector_builder function.
9196 (vector_builder::new_binary_operation): Likewise.
9197 (vector_builder::binary_encoded_nelts): Likewise.
9198 * int-vector-builder.h (int_vector_builder): Update template
9199 parameters to vector_builder.
9200 (int_vector_builder::shape_nelts): New function.
9201 * rtx-vector-builder.h (rtx_vector_builder): Update template
9202 parameters to vector_builder.
9203 (rtx_vector_builder::shape_nelts): New function.
9204 (rtx_vector_builder::nelts_of): Likewise.
9205 (rtx_vector_builder::npatterns_of): Likewise.
9206 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9207 * tree-vector-builder.h (tree_vector_builder): Update template
9208 parameters to vector_builder.
9209 (tree_vector_builder::shape_nelts): New function.
9210 (tree_vector_builder::nelts_of): Likewise.
9211 (tree_vector_builder::npatterns_of): Likewise.
9212 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9213 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9214 (tree_vector_builder::new_binary_operation): Delete.
9215 (tree_vector_builder::binary_encoded_nelts): Likewise.
9216 * simplify-rtx.c: Include rtx-vector-builder.h.
9217 (distributes_over_addition_p): New function.
9218 (simplify_const_unary_operation)
9219 (simplify_const_binary_operation): Generalize handling of vector
9220 constants to include variable-length vectors.
9221 (test_vector_ops_series): Add more tests.
9222
9223 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9224
9225 PR lto/91222
9226 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9227 than INDENTIFIER_POINTER.
9228
9229 2019-07-28 Martin Liska <mliska@suse.cz>
9230
9231 PR ipa/89330
9232 * cgraph.c (symbol_table::create_edge): Always allocate
9233 a cgraph_edge.
9234 (symbol_table::free_edge): Store summary_id to
9235 edge_released_summary_ids if != -1;
9236 * cgraph.h (NEXT_FREE_NODE): Remove.
9237 (SET_NEXT_FREE_NODE): Likewise.
9238 (NEXT_FREE_EDGE): Likewise.
9239 (symbol_table::release_symbol): Store summary_id to
9240 cgraph_released_summary_ids if != -1;
9241 (symbol_table::allocate_cgraph_symbol): Always allocate
9242 a cgraph_node.
9243
9244 2019-07-28 Alan Modra <amodra@gmail.com>
9245
9246 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9247 gen_sibcall.
9248
9249 2019-07-28 Alan Modra <amodra@gmail.com>
9250
9251 PR target/91135
9252 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9253 define.
9254 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9255 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9256 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9257
9258 2019-07-28 Alan Modra <amodra@gmail.com>
9259
9260 PR target/91050
9261 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9262 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9263 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9264 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9265 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9266 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9267 in asm_default spec.
9268 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9269 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9270
9271 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9272
9273 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9274
9275 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9276
9277 PR target/89517
9278 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9279 * config/aarch64/aarch64-option-extensions.def: Add new comments
9280 and restore easier to read options.
9281
9282 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9283
9284 * convert.c (convert_to_real_1): Move part of conversion code...
9285 * match.pd: ...To here.
9286
9287 2019-07-26 Martin Jambor <mjambor@suse.cz>
9288
9289 PR ipa/89330
9290 * ipa-inline-transform.c (check_speculations_1): New function.
9291 (push_all_edges_in_set_to_vec): Likewise.
9292 (check_speculations): Use check_speculations_1, new parameter
9293 new_edges.
9294 (inline_call): Pass new_edges to check_speculations.
9295 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9296 NULL.
9297 (speculation_useful_p): Early return true if edge is inlined, remove
9298 later checks for inline_failed.
9299
9300 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9301
9302 PR rtl-optimization/91223
9303 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9304 matching with INOUT operand.
9305
9306 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9307
9308 * stmt.c (expand_case): Try to narrow the index type if it's larger
9309 than a word. Tidy up.
9310
9311 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9312
9313 * cif-code.def (NEVER_CALL): New code.
9314 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9315 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9316
9317 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9318
9319 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9320 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9321
9322 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9323
9324 * ipa-devirt.c (add_type_duplicate): Fix return value.
9325
9326 2019-07-25 Richard Biener <rguenther@suse.de>
9327
9328 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9329 type parameter and use it instead of guessing expression
9330 type from the first operand.
9331 (extract_range_from_binary_expr): Pass expr_type down.
9332
9333 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9334
9335 * config/arm/arm.md (SATrev): Change to code attribute.
9336 (*satsi_<SAT:code>): Adjust for the above.
9337 (*satsi_<SAT:code>_shift): Likewise.
9338
9339 2019-07-25 Richard Biener <rguenther@suse.de>
9340
9341 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9342 Make value_range * temporary const.
9343 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9344 Likewise.
9345 (evrp_range_analyzer::record_ranges_from_): Likewise.
9346 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9347 deal with having recorded a const one.
9348 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9349 Return a const value_range *.
9350 (evrp_range_analyzer::pop_value_range): Likewise.
9351 (evrp_range_analyzer::stack): Record const value_range *s.
9352 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9353 Adjust.
9354 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9355 (format_integer): Likewise.
9356 (sprintf_dom_walker::handle_gimple_call): Likewise.
9357 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9358 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9359 (vrp_prop::get_value_range): Adjust.
9360 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9361 modifying the lattice in-place.
9362 (vrp_prop::visit_stmt): Likewise.
9363 * vr-values.c (vr_values::get_lattice_entry): New private method.
9364 (vr_values::get_value_range): Wrap it and return a const
9365 value_range *.
9366 (vr_values::set_def_to_varying): New.
9367 (vr_values::set_defs_to_varying): Use it.
9368 (vr_values::update_value_range): Likewise.
9369 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9370 (values::op_with_constant_singleton_va): Likewise.
9371 (vr_values::extract_range_for_var_from_co): Likewise.
9372 (vr_values::extract_range_from_ssa_name): Likewise.
9373 (vr_values::extract_range_from_cond_expr): Likewise.
9374 (vr_values::extract_range_basic): Likewise.
9375 (compare_ranges): Take const value_range *, adjust.
9376 (compare_range_with_value): Likewise.
9377 (vrp_valueize): Adjust.
9378 (vrp_valueize_1): Likewise.
9379 (vr_values::get_vr_for_comparison): Return a const value_range *.
9380 (vr_values::compare_name_with_value): Adjust.
9381 (vr_values::compare_names): Likewise.
9382 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9383 Likewise.
9384 (vr_values::vrp_evaluate_conditional): Likewise.
9385 (find_case_label_ranges): Take a const value_range *.
9386 (vr_values::vrp_visit_switch_stmt): Adjust.
9387 (vr_values::extract_range_from_phi_node): Likewise.
9388 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9389 (vr_values::simplify_abs_using_ranges): Likewise.
9390 (test_for_singularity): Take a const value_range *.
9391 (range_fits_type_p): Likewise.
9392 (vr_values::simplify_cond_using_ranges_1): Adjust.
9393 (vr_values::simplify_cond_using_ranges_2): Likewise.
9394 (vr_values::simplify_switch_using_ranges): Likewise.
9395 (vr_values::simplify_float_conversion_usi): Likewise.
9396 (vr_values::two_valued_val_range_p): Likewise.
9397 * vr-values.h (vr_values::get_value_range): Return a const
9398 value_range *.
9399 (vr_values::set_def_to_varying): New.
9400 (vr_values::get_lattice_entry): New private method.
9401 (vr_values::get_vr_for_comparison): Return a const value_range *.
9402
9403 2019-07-25 Martin Liska <mliska@suse.cz>
9404 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9405
9406 PR c++/23383
9407 * common.opt: Add -fallocation-dce
9408 * gimple.c (gimple_call_operator_delete_p): New.
9409 * gimple.h (gimple_call_operator_delete_p): Likewise.
9410 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9411 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9412 DECL_IS_OPERATOR_DELETE_P.
9413 (mark_all_reaching_defs_necessary_1): Likewise.
9414 (propagate_necessity): Likewise.
9415 (eliminate_unnecessary_stmts): Handle
9416 gimple_call_operator_delete_p.
9417 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9418 Add packing of OPERATOR_DELETE.
9419 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9420 Similarly here.
9421 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9422 (DECL_SET_IS_OPERATOR_DELETE): New.
9423 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9424
9425 2019-07-25 Martin Liska <mliska@suse.cz>
9426
9427 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9428 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9429 * coverage.c (coverage_begin_function): Likewise.
9430 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9431 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9432 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9433 (sem_item::hash_referenced_symbol_properties): Likewise.
9434 * lto-streamer-out.c (hash_tree): Likewise.
9435 * predict.c (expr_expected_value_1): Likewise.
9436 * tree-inline.c (expand_call_inline): Likewise.
9437 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9438 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9439 * tree-core.h (enum function_decl_type): New enum.
9440 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9441 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9442 (set_function_decl_type): Likewise.
9443 (DECL_IS_OPERATOR_NEW_P): New.
9444 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9445 (DECL_LAMBDA_FUNCTION): Likewise.
9446 (DECL_LAMBDA_FUNCTION_P): Likewise.
9447 (DECL_IS_OPERATOR_NEW): Remove.
9448 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9449
9450 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9451
9452 * ipa-profile.c (get_most_common_single_value): Use
9453 get_nth_most_common_value.
9454 * profile.c (sort_hist_value): New function.
9455 (compute_value_histograms): Call sort_hist_value to sort the
9456 values after loading from disk.
9457 * value-prof.c (get_most_common_single_value): Rename to ...
9458 get_nth_most_common_value. Add input params n, return
9459 the n_th value and count.
9460 (gimple_divmod_fixed_value_transform): Use
9461 get_nth_most_common_value.
9462 (gimple_ic_transform): Likewise.
9463 (gimple_stringops_transform): Likewise.
9464 * value-prof.h (get_most_common_single_value): Add input params
9465 n, default to 0.
9466
9467 2019-07-25 Richard Biener <rguenther@suse.de>
9468
9469 PR tree-optimization/91236
9470 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9471 size of CONSTRUCTOR write. Fix buffer size we pass to
9472 native_encode_expr.
9473
9474 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9475
9476 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9477 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9478 r273773.
9479
9480 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9481
9482 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9483 explicitly disabled with --disable-initfini-array.
9484
9485 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9486
9487 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9488 if-exists.
9489
9490 2019-07-24 Martin Sebor <msebor@redhat.com>
9491
9492 PR tree-optimization/91183
9493 PR tree-optimization/86688
9494 * builtins.c (compute_objsize): Handle MEM_REF.
9495 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9496 (get_min_string_length): Remove.
9497 (count_nonzero_bytes): New function.
9498 (handle_char_store): Rename...
9499 (handle_store): to this. Handle multibyte stores via integer types.
9500 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9501 function name.
9502
9503 2019-07-24 Martin Sebor <msebor@redhat.com>
9504
9505 PR driver/80545
9506 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9507 (diagnostic_report_diagnostic): Same.
9508 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9509 (diagnostic_context::lang_mask): New data member.
9510 * ipa-pure-const.c (suggest_attribute): Use
9511 lang_hooks.option_lang_mask ().
9512 * opts-common.c (option_enabled): Handle new argument.
9513 (get_option_state): Pass an additional argument.
9514 * opts.c (print_filtered_help): Print supported languages for
9515 unsupported options. Adjust printing of current state.
9516 * opts.h (option_enabled): Add argument.
9517 * toplev.c (print_switch_values): Use lang_mask.
9518 (general_init): Set global_dc->lang_mask.
9519
9520 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9521
9522 PR bootstrap/87030
9523 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9524
9525 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9526
9527 * cgraphunit.c (symbol_table::compile): Start and stop
9528 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9529 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9530
9531 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9532
9533 * gimplify.c (flag_instrument_functions_exclude_p): Include
9534 namespace/class information in the printable name.
9535 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9536 to tokens entered into the vector.
9537
9538 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9539
9540 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9541 (get_static_chain): Call it instead of build_simple_mem_ref.
9542 (get_frame_field): Likewise.
9543 (get_nonlocal_debug_decl): Likewise.
9544 (convert_nonlocal_reference_op): Likewise.
9545
9546 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9547
9548 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9549 declaration.
9550 (arc_compute_frame_size): Millicode is disabled when compiling
9551 ISR.
9552 (arc_return_address_register): Likewise.
9553 (arc_compute_function_type): Likewise.
9554 (arc_compute_frame_size): Likewise.
9555 (secondary_reload_info): Likewise.
9556 (arc_get_unalign): Likewise.
9557 (arc_can_use_return_insn): Declare.
9558 * config/arc/arc.c (AUX_LP_START): Define
9559 (AUX_LP_END): Likewise.
9560 (arc_frame_info): Update gmask member to 64-bit datum.
9561 (GMASK_LEN): Update.
9562 (arc_compute_function_type): Make it static, move it forward.
9563 (arc_must_save_register): Update, consider the extra regs.
9564 (arc_compute_millicode_save_restore_regs): Update to use the 64
9565 bit gmask.
9566 (arc_compute_frame_size): Likewise.
9567 (arc_enter_leave_p): Likewise.
9568 (arc_save_callee_saves): Likewise.
9569 (arc_restore_callee_saves): Likewise.
9570 (arc_save_callee_enter): Likewise.
9571 (arc_restore_callee_leave): Likewise.
9572 (arc_save_callee_milli): Likewise.
9573 (arc_restore_callee_milli): Likewise.
9574 (arc_expand_prologue): Add new interrupt handling.
9575 (arc_return_address_register): Make it static, move it forward.
9576 (arc_expand_epilogue): Add new interrupt handling.
9577 (arc_get_unalign): Delete.
9578 (arc_epilogue_uses): Make sure we do not remove the extra
9579 saved/restored registers when interrupt.
9580 (arc_can_use_return_insn): New function.
9581 (push_reg): Likewise.
9582 (pop_reg): Likewise.
9583 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9584 procedures.
9585 (arc_restore_callee_saves): Likewise, but restoring.
9586 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9587 (R33_REG): Likewise.
9588 (R34_REG): Likewise.
9589 (R35_REG): Likewise.
9590 (R36_REG): Likewise.
9591 (R37_REG): Likewise.
9592 (R38_REG): Likewise.
9593 (R39_REG): Likewise.
9594 (R45_REG): Likewise.
9595 (R46_REG): Likewise.
9596 (R47_REG): Likewise.
9597 (R48_REG): Likewise.
9598 (R49_REG): Likewise.
9599 (R50_REG): Likewise.
9600 (R51_REG): Likewise.
9601 (R52_REG): Likewise.
9602 (R53_REG): Likewise.
9603 (R54_REG): Likewise.
9604 (R55_REG): Likewise.
9605 (R56_REG): Likewise.
9606 (R58_REG): Likewise.
9607 (type): Add rtie attribute.
9608 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9609 (movsi_insn): Accept moves to lp_count.
9610 (rtie): Update pattern.
9611 (simple_return): Simplify it, don't use this pattern as a return
9612 from an interrupt.
9613 (arc600_rtie): New pattern.
9614 (p_return_i): Clean up.
9615 (return): Likewise.
9616 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9617 family CPUs.
9618 * config/arc/predicates.md (move_src_operand): Consider lp_count
9619 as a register.
9620
9621 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9622
9623 * config/s390/predicates.md (addv_const_operand): New predicate.
9624 * config/s390/s390-modes.def (CCO): New condition code mode.
9625 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9626 (s390_branch_condition_mask): Likewise.
9627 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9628 ("mulv<mode>4"): New expanders.
9629 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9630 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9631 pattern definitions.
9632
9633 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9634
9635 PR middle-end/91166
9636 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9637 (define_predicates): Add entry for uniform_vector_p.
9638 (vec_same_elem_p): New match pattern.
9639
9640 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9641
9642 PR bootstrap/87030
9643 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9644 * config/i386/darwin32-biarch.h .. to here.
9645 * config/i386/darwin64-biarch.h: Adjust comments.
9646 * config/rs6000/darwin32-biarch.h: Likewise.
9647 * config/rs6000/darwin64-biarch.h: Likewise.
9648 * config.gcc: Missed commit from r273746
9649 (*-*-darwin*): Don't include CPU t-darwin here.
9650 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9651 an error message if i686-darwin configuration is attempted for
9652 Darwin >= 18.
9653
9654 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9655
9656 PR bootstrap/87030
9657 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9658 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9659 an error message if i686-darwin configuration is attempted for
9660 Darwin >= 18.
9661 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9662 (powerpc-*-darwin*): Use biarch files where needed.
9663 (powerpc64-*-darwin*): Likewise.
9664 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9665 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9666 arch case.
9667 * config/i386/darwin32-biarch.h: New.
9668 * config/i386/darwin64.h: Rename.
9669 * config/i386/darwin64-biarch.h: To this.
9670 * config/i386/t-darwin: Rename.
9671 * config/i386/t-darwin32-biarch: To this.
9672 * config/i386/t-darwin64: Rename.
9673 * config/i386/t-darwin64-biarch: To this.
9674 * config/rs6000/darwin32-biarch.h: New.
9675 * config/rs6000/darwin64.h: Rename.
9676 * config/rs6000/darwin64-biarch.h: To this.
9677 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9678 arch case.
9679 * config/rs6000/t-darwin8: Rename.
9680 * config/rs6000/t-darwin32-biarch: To this.
9681 * config/rs6000/t-darwin64 Rename.
9682 * config/rs6000/t-darwin64-biarch: To this.
9683
9684 2019-07-23 Martin Sebor <msebor@redhat.com>
9685
9686 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9687
9688 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9689
9690 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9691 (rh): New alias for it.
9692
9693 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9694
9695 * gdbhooks.py: Pass replace=True to
9696 gdb.printing.register_pretty_printer.
9697
9698 2019-07-23 Richard Biener <rguenther@suse.de>
9699
9700 PR debug/91231
9701 * lto-streamer-in.c (input_function): Drop inline-entry markers
9702 that ended up with an unknown location block.
9703
9704 2019-07-23 Richard Biener <rguenther@suse.de>
9705
9706 PR tree-optimization/83518
9707 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9708 init from a constant even when partial defs are already recorded.
9709
9710 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9711
9712 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9713 * config/i386/znver1.md: Enable patterns for znver2 and add store
9714 variants which use extra AGU unit.
9715
9716 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9717
9718 * config/i386/i386-options.c (ix86_option_override_internal): Default
9719 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9720 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9721 for ZNVER2.
9722
9723 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9724
9725 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9726 (znver2_costs): Update 256 bit SSE costs and multiplication.
9727
9728 2019-07-23 Jan Beulich <jbeulich@suse.com>
9729
9730 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9731 Require only AVX512F.
9732 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9733 alternative expanding to vpternlog.
9734
9735 2019-07-23 Martin Liska <mliska@suse.cz>
9736
9737 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9738 to -flto in dwarf producer string.
9739
9740 2019-07-23 Richard Biener <rguenther@suse.de>
9741
9742 * tree-cfg.c (label_for_bb): Remove global var.
9743 (main_block_label): Take label_for_bb as argument.
9744 (cleanup_dead_labels_eh): Likewise, adjust.
9745 (cleanup_dead_labels): Adjust.
9746
9747 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9748
9749 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9750 Configurations): Add documentation for __builtin_mtfsf.
9751
9752 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9753
9754 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9755 * config/riscv/riscv.c (riscv_constant_alignment): Use
9756 riscv_align_data_type.
9757 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9758 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9759 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9760 * config/riscv/riscv.opt (malign-data): New.
9761 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9762
9763 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9764
9765 * cgraph.c (dump_graphviz): New function.
9766 * cgraph.h (dump_graphviz): New function.
9767 * symtab.c (dump_graphviz): New function.
9768
9769 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9770
9771 * config/aarch64/aarch64-simd.md
9772 (*aarch64_simd_sra<mode>): New.
9773 * config/aarch64/iterators.md
9774 (SHIFTRT): New iterator.
9775 (sra_op): New attribute.
9776
9777 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9778
9779 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9780 callee-saved regs R4->R10 in an interrupt function that calls another
9781 function.
9782
9783 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9784
9785 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9786 (_mm_blendv_epi8): New.
9787
9788 2019-07-22 Richard Biener <rguenther@suse.de>
9789
9790 PR tree-optimization/91221
9791 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9792 restrict partial-def handling of empty constructors and
9793 memset to refs with known offset.
9794
9795 2019-07-22 Jan Beulich <jbeulich@suse.com>
9796
9797 * config/i386/sse.md (ternlogsuffix): New.
9798 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9799 AVX512F is in use.
9800 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9801
9802 2019-07-22 Martin Liska <mliska@suse.cz>
9803
9804 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9805 comment.
9806 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9807
9808 2019-07-22 Martin Liska <mliska@suse.cz>
9809
9810 * lto-section-in.c (lto_get_section_data):
9811 Use new function get_compression.
9812 * lto-streamer-out.c (produce_lto_section): Use
9813 set_compression to encode compression algorithm.
9814 * lto-streamer.h (struct lto_section): Do not
9815 use bitfields in the format.
9816
9817 2019-07-22 Martin Liska <mliska@suse.cz>
9818
9819 PR driver/91172
9820 * opts-common.c (decode_cmdline_option): Decode
9821 argument of -Werror and check it for a wrong language.
9822 * opts-global.c (complain_wrong_lang): Remove such case.
9823
9824 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
9825
9826 * config/arc/arc.c (prepare_move_operands): Always use an
9827 intermediate register when storing a TLS symbols.
9828
9829 2019-07-22 Stafford Horne <shorne@gmail.com>
9830
9831 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9832 force_reg.
9833
9834 2019-07-22 Stafford Horne <shorne@gmail.com>
9835
9836 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9837 and munordered-float validations.
9838 * config/or1k/constraints.md (d): New register constraint.
9839 * config/or1k/predicates.md (fp_comparison_operator): New.
9840 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9841 operands.
9842 (or1k_expand_compare): Normalize unordered comparisons.
9843 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9844 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9845 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9846 * config/or1k/or1k.md (type): Add fpu.
9847 (fpu): New instruction reservation.
9848 (F, f, fr, fi, FI, FOP, fop): New.
9849 (<fop><F:mode>3): New ALU instruction definition.
9850 (float<fi><F:mode>2): New conversion instruction definition.
9851 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9852 (fpcmpcc): New code iterator.
9853 (*sf_fp_insn): New instruction definition.
9854 (cstore<F:mode>4): New expand definition.
9855 (cbranch<F:mode>4): New expand definition.
9856 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9857 munordered-float): New options.
9858 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9859 munordered-float.
9860
9861 2019-07-22 Stafford Horne <shorne@gmail.com>
9862
9863 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9864 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9865 documenation to be more clear.
9866 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9867 more clear.
9868 * config/or1k/or1k.opt (mrori): New option.
9869 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
9870 msfimm, mshftimm): Rewrite documentation to be more clear.
9871 * config/or1k/or1k.md (insn_support): Add ror and rori.
9872 (enabled): Add conditions for ror and rori.
9873 (rotrsi3): Replace condition for shftimm with ror and rori.
9874
9875 2019-07-22 Stafford Horne <shorne@gmail.com>
9876
9877 PR target/90363
9878 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
9879 (extend<mode>si2): Update predicate.
9880 * config/or1k/predicates.md (volatile_mem_operand): New.
9881 (reg_or_mem_operand): New.
9882
9883 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
9884
9885 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
9886 * config/rs6000/rs6000-call.c: ... to here.
9887
9888 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9889
9890 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
9891 memory.
9892
9893 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9894
9895 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
9896
9897 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9898
9899 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
9900
9901 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9902
9903 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
9904 (any_memory_operand): New predicate.
9905 (reg_or_mem_operand): Use it.
9906
9907 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9908
9909 PR target/91204
9910 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
9911
9912 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
9913
9914 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
9915 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
9916
9917 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9918
9919 * tree.def (OMP_LOOP): New tree code.
9920 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
9921 (enum omp_clause_bind_kind): New enum.
9922 (struct tree_omp_clause): Add subcode.bind_kind.
9923 * tree.h (OMP_LOOP_CHECK): Rename to ...
9924 (OMP_LOOPING_CHECK): ... this.
9925 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
9926 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
9927 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
9928 (OMP_CLAUSE_BIND_KIND): Define.
9929 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9930 bind clause entries.
9931 (walk_tree_1): Handle OMP_CLAUSE_BIND.
9932 * tree-pretty-print.c (dump_omp_clause): Likewise.
9933 (dump_generic_node): Handle OMP_LOOP.
9934 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
9935 (in_omp_construct): New variable.
9936 (is_gimple_stmt): Handle OMP_LOOP.
9937 (gimplify_scan_omp_clauses): For lastprivate don't set
9938 check_non_private if code == OMP_LOOP. For reduction clause
9939 on OMP_LOOP combined with parallel or teams propagate as shared
9940 on the combined construct. Handle OMP_CLAUSE_BIND.
9941 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
9942 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
9943 for constructs from a loop construct to gimplify_scan_omp_clauses.
9944 Don't predetermine iterator linear on OMP_SIMD from loop construct.
9945 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
9946 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
9947 to match the implicit ORT_TARGET construct around whole body.
9948 Temporarily clear in_omp_construct when processing body.
9949 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
9950 etc. temporarily set in_omp_construct when processing body.
9951 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
9952 * omp-low.c (struct omp_context): Add loop_p.
9953 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
9954 in that the original var might be private.
9955 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
9956 (check_omp_nesting_restrictions): Adjust nesting restrictions for
9957 addition of loop construct.
9958 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
9959
9960 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
9961 lastprivate non-addressable iterator of a collapse(1) simd.
9962
9963 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
9964
9965 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
9966 as in rs6000.c.
9967
9968 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
9969
9970 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
9971 refer to default conditions. Warn for the 'y' spec which is ignored
9972 by current linkers.
9973
9974 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
9975
9976 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
9977 cpu_supports_info, builtin_hash_struct, builtin_hasher,
9978 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9979 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9980 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9981 init_cumulative_args, rs6000_promote_function_mode,
9982 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9983 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9984 rs6000_function_arg_boundary, rs6000_parm_offset,
9985 rs6000_parm_start, rs6000_arg_size,
9986 rs6000_darwin64_record_arg_advance_flush,
9987 rs6000_darwin64_record_arg_advance_recurse,
9988 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9989 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9990 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9991 rs6000_mixed_function_arg, rs6000_psave_function_arg,
9992 rs6000_finish_function_arg, rs6000_function_arg,
9993 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9994 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9995 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9996 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9997 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9998 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9999 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10000 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10001 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10002 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10003 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10004 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10005 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10006 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10007 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10008 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10009 get_element_number, altivec_expand_vec_set_builtin,
10010 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10011 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10012 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10013 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10014 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10015 rs6000_expand_builtin, rs6000_vector_type,
10016 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10017 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10018 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10019 to rs6000-call.c.
10020 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10021 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10022 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10023 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10024 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10025 init_cumulative_args, rs6000_promote_function_mode,
10026 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10027 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10028 rs6000_function_arg_boundary, rs6000_parm_offset,
10029 rs6000_parm_start, rs6000_arg_size,
10030 rs6000_darwin64_record_arg_advance_flush,
10031 rs6000_darwin64_record_arg_advance_recurse,
10032 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10033 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10034 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10035 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10036 rs6000_finish_function_arg, rs6000_function_arg,
10037 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10038 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10039 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10040 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10041 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10042 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10043 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10044 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10045 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10046 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10047 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10048 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10049 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10050 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10051 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10052 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10053 get_element_number, altivec_expand_vec_set_builtin,
10054 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10055 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10056 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10057 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10058 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10059 rs6000_expand_builtin, rs6000_vector_type,
10060 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10061 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10062 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10063 to here from rs6000.c.
10064 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10065 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10066 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10067 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10068 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10069 rs6000_return_in_memory, rs6000_return_in_msb,
10070 rs6000_pass_by_reference, setup_incoming_varargs,
10071 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10072 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10073 rs6000_function_arg_padding, rs6000_function_arg,
10074 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10075 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10076 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10077 rs6000_passes_long_double, rs6000_passes_vector,
10078 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10079 altivec_builtin_mask_for_load) Add declarations.
10080 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10081 * config/config.gcc: Add new source file rs6000-call.c to garbage
10082 collector and extra_objs.
10083
10084 2019-07-19 Jeff Law <law@redhat.com>
10085
10086 PR tree-optimization/86061
10087 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10088 strncpy. Drop some trivial dead code.
10089 (maybe_trim_memstar_call): Handle strncpy.
10090
10091 2019-07-19 Richard Biener <rguenther@suse.de>
10092
10093 PR tree-optimization/91211
10094 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10095 memset encoding size.
10096
10097 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10098
10099 PR target/91204
10100 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10101
10102 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10103
10104 PR ipa/91194
10105 * ipa-inline.c (recursive_inlining): Fix limits check.
10106
10107 2019-07-19 Richard Biener <rguenther@suse.de>
10108
10109 PR tree-optimization/91200
10110 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10111 no PHI nodes in middle-bb.
10112
10113 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10114
10115 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10116 to +sve-bitperm.
10117 * config/aarch64/aarch64-option-extensions.def: Likewise.
10118
10119 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10120
10121 PR middle-end/91190
10122 * function.c (insert_temp_slot_address): Store into the hash table
10123 a copy of address to avoid RTL sharing issues.
10124
10125 2019-07-19 Richard Biener <rguenther@suse.de>
10126
10127 PR tree-optimization/91207
10128 Revert
10129 2019-07-17 Richard Biener <rguenther@suse.de>
10130
10131 PR tree-optimization/91178
10132 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10133 loads with a gap larger than the vector size always use
10134 VMAT_STRIDED_SLP.
10135 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10136 avoid loading vectors that are only contained in the gap
10137 and thus are not needed.
10138
10139 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10140
10141 * config/i386/i386.md (*addqi_2_slp): Remove.
10142 (*<code>qi_2_slp): Ditto.
10143
10144 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10145
10146 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10147 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10148 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10149 Rename function from rs6000_prefixed_address.
10150 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10151 TARGET_HAS_TOC.
10152 (TARGET_TOC): Likewise.
10153 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10154 rs6000.h.
10155 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10156 TARGET_HAS_TOC.
10157 (TARGET_TOC): Likewise.
10158 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10159 rs6000.h.
10160 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10161 TARGET_HAS_TOC.
10162 (TARGET_TOC): Likewise.
10163 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10164 check to require -mcmodel=medium for pc-relative addressing.
10165 (create_TOC_reference): Add assertion for TARGET_TOC.
10166 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10167 TARGET_NO_TOC.
10168 (rs6000_emit_move): Likewise.
10169 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10170 to 'TOC_alias_set'.
10171 (get_TOC_alias_set): Likewise.
10172 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10173 TARGET_NO_TOC.
10174 (rs6000_can_eliminate): Likewise.
10175 (rs6000_prefixed_address_mode_p): Rename function from
10176 rs6000_prefixed_address.
10177 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10178 TARGET_HAS_TOC and not pc-relative.
10179 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10180 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10181 TARGET_HAS_TOC.
10182 (TARGET_TOC): Likewise.
10183 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10184 rs6000.h.
10185
10186 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10187
10188 PR target/91188
10189 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10190 for operand 0. Do not use (match_dup) to match operand 1 with
10191 operand 0. Add check in insn constraint that either input operand
10192 matches operand 0. Use SWI12 mode iterator to also handle
10193 HImode operands.
10194 (*and<mode>_1_slp): Ditto.
10195 (*<code>qi_1_slp): Ditto.
10196 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10197 Do not use (match_dup) to match operand 1 with operand 0. Add
10198 check in insn constraint that operand 1 matches operand 0.
10199 Use SWI12 mode iterator to also handle HImode operands.
10200 (*ashl<mode>3_1_slp): Ditto.
10201 (*<shift_insn><mode>3_1_slp): Ditto.
10202 (*<rotate_insn><mode>3_1_slp): Ditto.
10203
10204 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10205
10206 * config/arm/arm-builtins.c
10207 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10208 (arm_expand_unop_builtin): Likewise.
10209 * config/arm/crypto.md
10210 (crypto_sha1h): Convert from define_insn to define_expand.
10211 (crypto_<crypto_pattern>): Likewise.
10212 (crypto_sha1h_lb): New define_insn.
10213 (crypto_<crypto_pattern>_lb): Likewise.
10214
10215 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10216
10217 PR target/90317
10218 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10219 (vsha1cq_u32): Likewise.
10220 (vsha1pq_u32): Likewise.
10221 (vsha1mq_u32): Likewise.
10222 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10223 vec select.
10224 (crypto_sha1c): Correct vec select.
10225 (crypto_sha1m): Likewise.
10226 (crypto_sha1p): Likewise.
10227
10228 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10229
10230 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10231 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10232 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10233 (subdi_zesidi_zesidi): Likewise.
10234 (negdi2_compare, negdi2_insn): Likewise.
10235 (negdi_extensidi): Likewise.
10236 (negdi_zero_extendsidi): Likewise.
10237 (arm_cmpdi_insn): Likewise.
10238 (subsi3_carryin): Use arm_borrow_operation.
10239 (subsi3_carryin_const): Likewise.
10240 (subsi3_carryin_const0): Likewise.
10241 (subsi3_carryin_compare): Likewise.
10242 (subsi3_carryin_compare_const): Likewise.
10243 (subsi3_carryin_compare_const0): Likewise.
10244 (subsi3_carryin_shift): Likewise.
10245 (rsbsi3_carryin_shift): Likewise.
10246 (negsi2_carryin_compare): Likewise.
10247
10248 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10249
10250 PR tree-optimization/91137
10251 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10252 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10253 Init, use and fini the above new field.
10254 (determine_base_object_1): New function.
10255 (determine_base_object): Reimplement using walk_tree.
10256
10257 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10258
10259 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10260 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10261 CLEANUP_FORCE_FAST_DCE is set.
10262 * ifcvt.c (rest_of_handle_if_conversion): Pass
10263 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10264 if-conversion succeeded.
10265
10266 2019-07-18 Richard Biener <rguenther@suse.de>
10267
10268 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10269 branches to make code less indented.
10270
10271 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10272
10273 PR middle-end/81824
10274 * attribs.c (decls_mismatched_attributes): Simplify the logic
10275 that avoids duplicates and false positives.
10276
10277 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10278
10279 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10280 data into data section when generating PIC code.
10281 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10282 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10283 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10284 return 2 for SOM and 0 for other targets.
10285
10286 2019-07-17 Jeff Law <law@redhat.com>
10287
10288 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10289 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10290 avoid unexpected switch statement fallthru.
10291
10292 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10293
10294 * config/i386/i386.md (*add<dwi>3_doubleword):
10295 Remove redundant constraints.
10296 (*add<mode>_1): Ditto.
10297 (*addhi_1): Ditto.
10298 (*addqi_1): Ditto.
10299 (*addqi_1_slp): Ditto.
10300 (*add<mode>_2): Ditto.
10301 (*addv<mode>4): Ditto.
10302 (*sub<dwi>3_doubleword): Ditto.
10303 (*sub<mode>_1): Ditto.
10304 (*subqi_1_slp): Ditto.
10305 (*sub<mode>_2): Ditto.
10306 (*subv<mode>4): Ditto.
10307 (*sub<mode>_3): Ditto.
10308 (@add<mode>3_carry): Ditto.
10309 (@sub<mode>3_carry): Ditto.
10310 (*add<mode>3_cc_overflow_1): Ditto.
10311 (*add<mode>3_zext_cc_overflow_2): Ditto.
10312 (*anddi_1): Ditto.
10313 (*and<mode>_1): Ditto.
10314 (*andqi_1): Ditto.
10315 (*andqi_1_slp): Ditto.
10316 (*anddi_2): Ditto.
10317 (*andqi_2_maybe_si): Ditto.
10318 (*and<mode>_2): Ditto.
10319 (*andqi_2_slp): Ditto.
10320 (*<code><mode>_1): Ditto.
10321 (*<code>qi_1): Ditto.
10322 (*<code>qi_1_slp): Ditto.
10323 (*<code><mode>_2): Ditto.
10324 (*<code>qi_2_slp): Ditto.
10325
10326 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10327
10328 * alias.c (record_component_aliases): Do not simplify pointed-to
10329 types of ODR types.
10330
10331 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10332
10333 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10334 partial reg stall on alternative 2.
10335
10336 2019-07-17 Richard Biener <rguenther@suse.de>
10337
10338 PR tree-optimization/91178
10339 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10340 lower SSA names to avoid quadratic behavior in the common case.
10341 * tree-data-ref.c (split_constant_offset): Add limit argument
10342 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10343 (split_constant_offset_1): Add limit argument and use it to
10344 limit SSA def walking. Optimize the common plus/minus case.
10345
10346 2019-07-17 Richard Biener <rguenther@suse.de>
10347
10348 PR tree-optimization/91178
10349 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10350 loads with a gap larger than the vector size always use
10351 VMAT_STRIDED_SLP.
10352 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10353 avoid loading vectors that are only contained in the gap
10354 and thus are not needed.
10355
10356 2019-07-17 Richard Biener <rguenther@suse.de>
10357
10358 PR tree-optimization/91180
10359 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10360 computation for memset partial defs.
10361
10362 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10363
10364 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10365 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10366 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10367 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10368 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10369 * omp-grid.c (grid_process_grid_body,
10370 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10371 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10372 == GF_OMP_FOR_KIND_SIMD.
10373 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10374 check_omp_nesting_restrictions, scan_omp_1_stmt,
10375 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10376 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10377 omp_find_scan): Likewise.
10378 * omp-expand.c (expand_omp_for): Likewise.
10379 * omp-general.c (omp_extract_for_data): Likewise.
10380
10381 PR tree-optimization/91157
10382 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10383 a vector boolean with scalar mode.
10384 (expand_vector_condition): Handle first operand being a vector boolean
10385 with scalar mode.
10386 (expand_vector_operations_1): For comparisons, don't bail out early
10387 if the return type is vector boolean with scalar mode, but comparison
10388 operand type is not.
10389
10390 2019-07-17 Richard Biener <rguenther@suse.de>
10391
10392 PR tree-optimization/91181
10393 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10394 IFN_LOADs as calls.
10395
10396 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10397
10398 * config/i386/i386.md (*testdi_1): Match CCZmode for
10399 constants that might have the SImode sign bit set.
10400 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10401 Use correct constraints for pentium pairing.
10402 (*test<mode>_1): Ditto.
10403
10404 2019-07-16 Jeff Law <law@redhat.com>
10405
10406 PR rtl-optimization/91173
10407 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10408 SSA_NAME with a constant value, fold its value into the offset
10409 and clear the base before calling gen_addr_rtx.
10410
10411 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10412
10413 PR rtl-optimization/91164
10414 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10415 invalidate dominance info.
10416
10417 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10418
10419 * read-md.h (md_reader::record_potential_iterator_use): Add a
10420 file_location parameter.
10421 * read-rtl.c (attribute_use::loc): New field.
10422 (map_attr_string): Take a file_location parameter. Report cases
10423 in which attributes map to multiple distinct values.
10424 (apply_attribute_uses): Update call accordingly.
10425 (md_reader::handle_overloaded_name): Likewise.
10426 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10427 nonnull strings.
10428 (record_attribute_use): Take a file_location parameter.
10429 Initialize attribute_use::loc.
10430 (md_reader::record_potential_iterator_use): Take a file_location
10431 parameter. Update call to record_attribute_use.
10432 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10433 (rtx_reader::read_rtx_code): Likewise.
10434 (rtx_reader::read_rtx_operand): Likewise. Record a location
10435 for implicitly-expanded empty strings.
10436
10437 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10438
10439 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10440 Use file_location instead of separate fields.
10441 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10442 separate filename and line number.
10443 * read-md.c (ptr_loc): As above.
10444 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10445 (md_reader::fprint_md_ptr_loc): Likewise.
10446 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10447 instead of a separate filename and line number.
10448 (md_reader::read_string): Update call accordingly.
10449
10450 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10451
10452 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10453 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10454 leaving the choice between SFDF and P implicit.
10455 (*mov<mode>_update2): Likewise.
10456 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10457 rather than leaving the choice betweem IBM128 and GPR implicit.
10458 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10459 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10460 QHSI implicit.
10461 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10462 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10463 * config/rs6000/vsx.md
10464 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10465 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10466 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10467 and VSX_EXTRACT_I implicit.
10468
10469 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10470
10471 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10472 Explicitly use <MOVEP1:MODE> for the mode attribute.
10473
10474 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10475
10476 PR bootstrap/91176
10477 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10478
10479 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10480
10481 PR target/91050
10482 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10483 .machine directive.
10484
10485 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10486
10487 * config/i386/i386.md (@test<mode>_ccno_1):
10488 Rename from test<mode>_ccno_1.
10489 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10490 (*testqi_1_maybe_si): Remove modrm attribute.
10491 (*test<mode>_1): Ditto.
10492 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10493 gen_test_ccno_1 and gen_extend_insn.
10494
10495 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10496
10497 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10498 to 0.
10499
10500 2019-07-15 Richard Biener <rguenther@suse.de>
10501
10502 PR middle-end/91162
10503 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10504 node make sure to replace all uses with something valid.
10505
10506 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10507
10508 PR tree-optimization/88497
10509 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10510 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10511 function undistribute_bitref_for_vector.
10512 (undistribute_bitref_for_vector): New function.
10513 (cleanup_vinfo_map): Likewise.
10514 (sort_by_mach_mode): Likewise.
10515
10516 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10517
10518 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10519 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10520 and testdi_ccno_1 using SWI48 mode attribute.
10521 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10522 x86_64_szext_general_operand.
10523 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10524 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10525 instead of genera_operand mode attribute.
10526
10527 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10528
10529 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10530 fopen and fclose to their respective types.
10531 (DotFn.invoke): Ditto.
10532
10533 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10534
10535 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10536 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10537 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10538 (array_index_predicate): Remove.
10539 (analyze_function_body): Account cost for variable ofsetted array
10540 indexing.
10541 (estimate_node_size_and_time): Do not compute array index hint.
10542 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10543 (inline_read_section): Do not read array index hint.
10544 (ipa_fn_summary_write): Do not write array index hint.
10545 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10546 * ipa-cp.c (hint_time_bonus): Remove.
10547 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10548 (ipa_fnsummary): Remove array_index.
10549 * ipa-inline.c (want_inline_small_function_p): Do not use
10550 array_index.
10551 (edge_badness): Likewise.
10552 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10553
10554 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10555
10556 PR target/91148
10557 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10558 superfluous "builtin function" phrasing.
10559
10560 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10561
10562 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10563 Break out from ...
10564 (aliasing_component_refs_walk): Break out from ...
10565 (aliasing_component_refs_p): ... here.
10566
10567 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10568
10569 PR target/91148
10570 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10571 "builtin function" phrasing.
10572
10573 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10574
10575 PR target/90723
10576 * recog.h (temporary_volatile_ok): New class.
10577 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10578 volatile_ok temporarily to true using temporary_volatile_ok.
10579 * expr.c (emit_block_move_via_cpymem): Likewise.
10580 * optabs.c (maybe_legitimize_operand): Likewise.
10581
10582 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10583
10584 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10585 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10586 uses inside of order(concurrent) constructs.
10587 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10588 OMP_CLAUSE_ORDER is seen.
10589 * omp-low.c (struct omp_context): Add order_concurrent member.
10590 (scan_sharing_clauses): Set ctx->order_concurrent if
10591 OMP_CLAUSE_ORDER is seen.
10592 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10593 of simd order(concurrent). Diagnose constructs not allowed inside of
10594 for order(concurrent).
10595 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10596 complaining about static double setjmp (double); or class static
10597 methods or non-global namespace setjmps.
10598 (omp_runtime_api_call): New function.
10599 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10600 order(concurrent) loops.
10601
10602 2019-07-12 Martin Sebor <msebor@redhat.com>
10603
10604 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10605 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10606 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10607 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10608
10609 2019-07-12 Jan Hubicka <jh@suse.cz>
10610
10611 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10612 (indirect_refs_may_alias_p): ... here.
10613 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10614 mem refs in the access paths.
10615
10616 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10617
10618 PR tree-optimization/89430
10619 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10620 store elimination for local variable without address escape.
10621
10622 2019-07-12 Jeff Law <law@redhat.com>
10623
10624 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10625 for the ".far" section.
10626
10627 2019-07-12 Richard Biener <rguenther@suse.de>
10628
10629 PR tree-optimization/91145
10630 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10631 chain check.
10632
10633 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10634
10635 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10636 rather than this_state as the lowering context for the ELSE
10637 seq in a GIMPLE_EH_ELSE.
10638
10639 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10640
10641 * vector-builder.h (vector_builder::elt): Allow already-supplied
10642 elements to be read back before building is complete.
10643
10644 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10645
10646 PR rtl-optimization/91136
10647 * df-core.c (ACCESSING REFS): Fix typos in comment.
10648 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10649 the beginning of the block to the initial set of live registers.
10650
10651 2019-07-12 Richard Biener <rguenther@suse.de>
10652
10653 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10654 * fold-const.c (get_array_ctor_element_at_index): Add
10655 ctor_idx output parameter informing the caller where in
10656 the constructor the element was (not) found. Add early exit
10657 for when the ctor is sorted.
10658 * gimple-fold.c (fold_array_ctor_reference): Support constant
10659 folding across multiple array elements.
10660
10661 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10662
10663 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10664 doesn't have location, set the current location to the function's end.
10665
10666 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10667
10668 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10669 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10670 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10671 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10672 * config/aarch64/aarch64-simd.md
10673 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10674 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10675 * config/aarch64/aarch64-sve.md
10676 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10677 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10678
10679 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10680
10681 * doc/md.texi: Document that @ patterns can have different
10682 numbers of operands.
10683 * genemit.c (handle_overloaded_gen): Handle this case.
10684 * genopinit.c (handle_overloaded_gen): Likewise.
10685 * gensupport.c (replace_operands_with_dups): Iterate over
10686 the new rtx's format rather than the old one's.
10687
10688 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10689
10690 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10691 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10692 order clause entries.
10693 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10694 * tree-pretty-print.c (dump_omp_clause): Likewise.
10695 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10696 Likewise.
10697 * omp-low.c (scan_sharing_clauses): Likewise.
10698 * tree-nested.c (convert_nonlocal_omp_clauses,
10699 convert_local_omp_clauses): Likewise.
10700
10701 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10702
10703 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10704 fallthrough target of current basic block isn't the placed
10705 right next.
10706
10707 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10708
10709 PR target/90980
10710 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10711 (_mm512_storeu_epi64): Likewise.
10712 (_mm512_loadu_epi32): Likewise.
10713 (_mm512_storeu_epi32): Likewise.
10714 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10715 (_mm_storeu_epi64): Likewise.
10716 (_mm256_storeu_epi32): Likewise.
10717 (_mm_storeu_epi32): Likewise.
10718
10719 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10720
10721 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10722
10723 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10724
10725 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10726 Handle Modula-2.
10727
10728 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10729
10730 PR target/91124
10731 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10732 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10733 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10734 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10735 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10736 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10737 define_insns.
10738 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10739 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10740 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10741 define_insns.
10742 (sse2_cvttpd2dq<mask_name>): Change into ...
10743 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10744 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10745 (*sse2_cvtpd2dq<mask_name>): Change into ...
10746 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10747 Add "C" constraint to const0_operand.
10748 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10749 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10750 changes.
10751
10752 PR target/91124
10753 * config/i386/i386-builtin-types.def
10754 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10755 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10756 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10757 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10758 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10759 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10760 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10761 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10762 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10763 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10764 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10765 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10766 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10767 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10768 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10769 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10770 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10771 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10772 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10773 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10774 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10775 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10776 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10777 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10778 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10779 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10780 __builtin_ia32_vpdpbusd_v4si_maskz,
10781 __builtin_ia32_vpdpbusds_v16si_mask,
10782 __builtin_ia32_vpdpbusds_v16si_maskz,
10783 __builtin_ia32_vpdpbusds_v8si_mask,
10784 __builtin_ia32_vpdpbusds_v8si_maskz,
10785 __builtin_ia32_vpdpbusds_v4si_mask,
10786 __builtin_ia32_vpdpbusds_v4si_maskz,
10787 __builtin_ia32_vpdpwssd_v16si_mask,
10788 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10789 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10790 __builtin_ia32_vpdpwssd_v4si_maskz,
10791 __builtin_ia32_vpdpwssds_v16si_mask,
10792 __builtin_ia32_vpdpwssds_v16si_maskz,
10793 __builtin_ia32_vpdpwssds_v8si_mask,
10794 __builtin_ia32_vpdpwssds_v8si_maskz,
10795 __builtin_ia32_vpdpwssds_v4si_mask,
10796 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10797 suffixed types rather than *_INT.
10798 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10799 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10800 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10801 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10802 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10803 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10804
10805 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
10806
10807 * tree-vrp.c (intersect_ranges): If we know the intersection is
10808 empty, there is no need to conservatively add anything else to
10809 the set.
10810
10811 2019-07-11 Richard Biener <rguenther@suse.de>
10812
10813 PR middle-end/91131
10814 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10815 when the object is volatile and we have not cleared it even though
10816 there are no nonzero elements.
10817
10818 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
10819
10820 * config/rs6000/predicates.md (cint34_operand): Update
10821 SIGNED_34BIT_OFFSET_P call.
10822 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10823 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10824 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10825 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10826 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10827 argument.
10828 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10829 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10830 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10831 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10832 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10833
10834 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
10835
10836 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10837 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10838 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10839 (DEF_MIN_OSX_VERSION): New.
10840
10841 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10842
10843 * fold-const.c (fold_relational_const): Fix folding of
10844 vector-to-scalar NE_EXPRs.
10845 (test_vector_folding): Add more tests.
10846
10847 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10848
10849 PR target/91060
10850 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10851 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10852 (vec_setv2di_internal): Reexpress as...
10853 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10854 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10855 rather than gen_neon_vset_lane<mode>.
10856
10857 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
10858
10859 PR target/91102
10860 * lra-constraints.c (process_alt_operands): Don't match user
10861 defined regs only if they are early clobbers.
10862
10863 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
10864
10865 * wide-int.h (wi::lshift): Reject negative values for the fast path.
10866
10867 2019-07-10 Richard Biener <rguenther@suse.de>
10868
10869 PR tree-optimization/91126
10870 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
10871 native encoding offset for BYTES_BIG_ENDIAN.
10872 (vn_reference_lookup_3): Likewise.
10873
10874 2019-07-10 Richard Biener <rguenther@suse.de>
10875
10876 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
10877 LHS whenever possible.
10878
10879 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
10880
10881 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
10882 from ...; work also on duplicated types.
10883 (nonoverlapping_component_refs_since_match): ... here
10884 (ncr_type_uid): Break out from ...
10885 (ncr_compar): ... here; look for TYPE_UID of canonical type if
10886 available.
10887 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
10888 the types and nonoverlapping_component_refs_p_1 to disambiguate.
10889
10890 2019-07-09 Martin Sebor <msebor@redhat.com>
10891
10892 PR tree-optimization/90989
10893 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
10894 optimization to just single character stores.
10895
10896 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
10897
10898 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
10899 Swap operands only once.
10900
10901 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10902
10903 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
10904 for both call instructions.
10905
10906 2019-07-09 John Darrington <john@darrington.wattle.id.au>
10907
10908 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
10909 rather than GET_MODE_BITSIZE to better handle partial integer modes.
10910
10911 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
10912
10913 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
10914 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
10915 function from rs6000-logue.c back to rs6000.c.
10916 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
10917
10918 2019-07-09 Martin Sebor <msebor@redhat.com>
10919
10920 PR c++/61339
10921 * auto-profile.c: Change class-key of PODs to struct and others
10922 to class.
10923 * basic-block.h: Same.
10924 * bitmap.c (bitmap_alloc): Same.
10925 * bitmap.h: Same.
10926 * builtins.c (expand_builtin_prefetch): Same.
10927 (expand_builtin_interclass_mathfn): Same.
10928 (expand_builtin_strlen): Same.
10929 (expand_builtin_mempcpy_args): Same.
10930 (expand_cmpstr): Same.
10931 (expand_builtin___clear_cache): Same.
10932 (expand_ifn_atomic_bit_test_and): Same.
10933 (expand_builtin_thread_pointer): Same.
10934 (expand_builtin_set_thread_pointer): Same.
10935 * caller-save.c (setup_save_areas): Same.
10936 (replace_reg_with_saved_mem): Same.
10937 (insert_restore): Same.
10938 (insert_save): Same.
10939 (add_used_regs): Same.
10940 * cfg.c (get_bb_copy): Same.
10941 (set_loop_copy): Same.
10942 * cfg.h: Same.
10943 * cfganal.h: Same.
10944 * cfgexpand.c (alloc_stack_frame_space): Same.
10945 (add_stack_var): Same.
10946 (add_stack_var_conflict): Same.
10947 (add_scope_conflicts_1): Same.
10948 (update_alias_info_with_stack_vars): Same.
10949 (expand_used_vars): Same.
10950 * cfghooks.c (redirect_edge_and_branch_force): Same.
10951 (delete_basic_block): Same.
10952 (split_edge): Same.
10953 (make_forwarder_block): Same.
10954 (force_nonfallthru): Same.
10955 (duplicate_block): Same.
10956 (lv_flush_pending_stmts): Same.
10957 * cfghooks.h: Same.
10958 * cfgloop.c (flow_loops_cfg_dump): Same.
10959 (flow_loop_nested_p): Same.
10960 (superloop_at_depth): Same.
10961 (get_loop_latch_edges): Same.
10962 (flow_loop_dump): Same.
10963 (flow_loops_dump): Same.
10964 (flow_loops_free): Same.
10965 (flow_loop_nodes_find): Same.
10966 (establish_preds): Same.
10967 (flow_loop_tree_node_add): Same.
10968 (flow_loop_tree_node_remove): Same.
10969 (flow_loops_find): Same.
10970 (find_subloop_latch_edge_by_profile): Same.
10971 (find_subloop_latch_edge_by_ivs): Same.
10972 (mfb_redirect_edges_in_set): Same.
10973 (form_subloop): Same.
10974 (merge_latch_edges): Same.
10975 (disambiguate_multiple_latches): Same.
10976 (disambiguate_loops_with_multiple_latches): Same.
10977 (flow_bb_inside_loop_p): Same.
10978 (glb_enum_p): Same.
10979 (get_loop_body_with_size): Same.
10980 (get_loop_body): Same.
10981 (fill_sons_in_loop): Same.
10982 (get_loop_body_in_dom_order): Same.
10983 (get_loop_body_in_custom_order): Same.
10984 (release_recorded_exits): Same.
10985 (get_loop_exit_edges): Same.
10986 (num_loop_branches): Same.
10987 (remove_bb_from_loops): Same.
10988 (find_common_loop): Same.
10989 (delete_loop): Same.
10990 (cancel_loop): Same.
10991 (verify_loop_structure): Same.
10992 (loop_preheader_edge): Same.
10993 (loop_exit_edge_p): Same.
10994 (single_exit): Same.
10995 (loop_exits_to_bb_p): Same.
10996 (loop_exits_from_bb_p): Same.
10997 (get_loop_location): Same.
10998 (record_niter_bound): Same.
10999 (get_estimated_loop_iterations_int): Same.
11000 (max_stmt_executions_int): Same.
11001 (likely_max_stmt_executions_int): Same.
11002 (get_estimated_loop_iterations): Same.
11003 (get_max_loop_iterations): Same.
11004 (get_max_loop_iterations_int): Same.
11005 (get_likely_max_loop_iterations): Same.
11006 * cfgloop.h (simple_loop_desc): Same.
11007 (get_loop): Same.
11008 (loop_depth): Same.
11009 (loop_outer): Same.
11010 (loop_iterator::next): Same.
11011 (loop_outermost): Same.
11012 * cfgloopanal.c (mark_irreducible_loops): Same.
11013 (num_loop_insns): Same.
11014 (average_num_loop_insns): Same.
11015 (expected_loop_iterations_unbounded): Same.
11016 (expected_loop_iterations): Same.
11017 (mark_loop_exit_edges): Same.
11018 (single_likely_exit): Same.
11019 * cfgloopmanip.c (fix_bb_placement): Same.
11020 (fix_bb_placements): Same.
11021 (remove_path): Same.
11022 (place_new_loop): Same.
11023 (add_loop): Same.
11024 (scale_loop_frequencies): Same.
11025 (scale_loop_profile): Same.
11026 (create_empty_if_region_on_edge): Same.
11027 (create_empty_loop_on_edge): Same.
11028 (loopify): Same.
11029 (unloop): Same.
11030 (fix_loop_placements): Same.
11031 (copy_loop_info): Same.
11032 (duplicate_loop): Same.
11033 (duplicate_subloops): Same.
11034 (loop_redirect_edge): Same.
11035 (can_duplicate_loop_p): Same.
11036 (duplicate_loop_to_header_edge): Same.
11037 (mfb_keep_just): Same.
11038 (has_preds_from_loop): Same.
11039 (create_preheader): Same.
11040 (create_preheaders): Same.
11041 (lv_adjust_loop_entry_edge): Same.
11042 (loop_version): Same.
11043 * cfgloopmanip.h: Same.
11044 * cgraph.h: Same.
11045 * cgraphbuild.c: Same.
11046 * combine.c (make_extraction): Same.
11047 * config/i386/i386-features.c: Same.
11048 * config/i386/i386-features.h: Same.
11049 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11050 (ix86_emit_outlined_ms2sysv_restore): Same.
11051 (ix86_noce_conversion_profitable_p): Same.
11052 (ix86_init_cost): Same.
11053 (ix86_simd_clone_usable): Same.
11054 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11055 Wstruct-not-pod.
11056 * coretypes.h: Same.
11057 * data-streamer-in.c (string_for_index): Change class-key of PODs
11058 to struct and others to class.
11059 (streamer_read_indexed_string): Same.
11060 (streamer_read_string): Same.
11061 (bp_unpack_indexed_string): Same.
11062 (bp_unpack_string): Same.
11063 (streamer_read_uhwi): Same.
11064 (streamer_read_hwi): Same.
11065 (streamer_read_gcov_count): Same.
11066 (streamer_read_wide_int): Same.
11067 * data-streamer.h (streamer_write_bitpack): Same.
11068 (bp_unpack_value): Same.
11069 (streamer_write_char_stream): Same.
11070 (streamer_write_hwi_in_range): Same.
11071 (streamer_write_record_start): Same.
11072 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11073 (add_cross_iteration_register_deps): Same.
11074 (build_intra_loop_deps): Same.
11075 * df-core.c (df_analyze): Same.
11076 (loop_post_order_compute): Same.
11077 (loop_inverted_post_order_compute): Same.
11078 * df-problems.c (df_rd_alloc): Same.
11079 (df_rd_simulate_one_insn): Same.
11080 (df_rd_local_compute): Same.
11081 (df_rd_init_solution): Same.
11082 (df_rd_confluence_n): Same.
11083 (df_rd_transfer_function): Same.
11084 (df_rd_free): Same.
11085 (df_rd_dump_defs_set): Same.
11086 (df_rd_top_dump): Same.
11087 (df_lr_alloc): Same.
11088 (df_lr_reset): Same.
11089 (df_lr_local_compute): Same.
11090 (df_lr_init): Same.
11091 (df_lr_confluence_n): Same.
11092 (df_lr_free): Same.
11093 (df_lr_top_dump): Same.
11094 (df_lr_verify_transfer_functions): Same.
11095 (df_live_alloc): Same.
11096 (df_live_reset): Same.
11097 (df_live_init): Same.
11098 (df_live_confluence_n): Same.
11099 (df_live_finalize): Same.
11100 (df_live_free): Same.
11101 (df_live_top_dump): Same.
11102 (df_live_verify_transfer_functions): Same.
11103 (df_mir_alloc): Same.
11104 (df_mir_reset): Same.
11105 (df_mir_init): Same.
11106 (df_mir_confluence_n): Same.
11107 (df_mir_free): Same.
11108 (df_mir_top_dump): Same.
11109 (df_word_lr_alloc): Same.
11110 (df_word_lr_reset): Same.
11111 (df_word_lr_init): Same.
11112 (df_word_lr_confluence_n): Same.
11113 (df_word_lr_free): Same.
11114 (df_word_lr_top_dump): Same.
11115 (df_md_alloc): Same.
11116 (df_md_simulate_one_insn): Same.
11117 (df_md_reset): Same.
11118 (df_md_init): Same.
11119 (df_md_free): Same.
11120 (df_md_top_dump): Same.
11121 * df-scan.c (df_insn_delete): Same.
11122 (df_insn_rescan): Same.
11123 (df_notes_rescan): Same.
11124 (df_sort_and_compress_mws): Same.
11125 (df_install_mws): Same.
11126 (df_refs_add_to_chains): Same.
11127 (df_ref_create_structure): Same.
11128 (df_ref_record): Same.
11129 (df_def_record_1): Same.
11130 (df_find_hard_reg_defs): Same.
11131 (df_uses_record): Same.
11132 (df_get_conditional_uses): Same.
11133 (df_get_call_refs): Same.
11134 (df_recompute_luids): Same.
11135 (df_get_entry_block_def_set): Same.
11136 (df_entry_block_defs_collect): Same.
11137 (df_get_exit_block_use_set): Same.
11138 (df_exit_block_uses_collect): Same.
11139 (df_mws_verify): Same.
11140 (df_bb_verify): Same.
11141 * df.h (df_scan_get_bb_info): Same.
11142 * doc/tm.texi: Same.
11143 * dse.c (record_store): Same.
11144 * dumpfile.h: Same.
11145 * emit-rtl.c (const_fixed_hasher::equal): Same.
11146 (set_mem_attributes_minus_bitpos): Same.
11147 (change_address): Same.
11148 (adjust_address_1): Same.
11149 (offset_address): Same.
11150 * emit-rtl.h: Same.
11151 * except.c (dw2_build_landing_pads): Same.
11152 (sjlj_emit_dispatch_table): Same.
11153 * explow.c (allocate_dynamic_stack_space): Same.
11154 (emit_stack_probe): Same.
11155 (probe_stack_range): Same.
11156 * expmed.c (store_bit_field_using_insv): Same.
11157 (store_bit_field_1): Same.
11158 (store_integral_bit_field): Same.
11159 (extract_bit_field_using_extv): Same.
11160 (extract_bit_field_1): Same.
11161 (emit_cstore): Same.
11162 * expr.c (emit_block_move_via_cpymem): Same.
11163 (expand_cmpstrn_or_cmpmem): Same.
11164 (set_storage_via_setmem): Same.
11165 (emit_single_push_insn_1): Same.
11166 (expand_assignment): Same.
11167 (store_constructor): Same.
11168 (expand_expr_real_2): Same.
11169 (expand_expr_real_1): Same.
11170 (try_casesi): Same.
11171 * flags.h: Same.
11172 * function.c (try_fit_stack_local): Same.
11173 (assign_stack_local_1): Same.
11174 (assign_stack_local): Same.
11175 (cut_slot_from_list): Same.
11176 (insert_slot_to_list): Same.
11177 (max_slot_level): Same.
11178 (move_slot_to_level): Same.
11179 (temp_address_hasher::equal): Same.
11180 (remove_unused_temp_slot_addresses): Same.
11181 (assign_temp): Same.
11182 (combine_temp_slots): Same.
11183 (update_temp_slot_address): Same.
11184 (preserve_temp_slots): Same.
11185 * function.h: Same.
11186 * fwprop.c: Same.
11187 * gcc-rich-location.h: Same.
11188 * gcov.c: Same.
11189 * genattrtab.c (check_attr_test): Same.
11190 (check_attr_value): Same.
11191 (convert_set_attr_alternative): Same.
11192 (convert_set_attr): Same.
11193 (check_defs): Same.
11194 (copy_boolean): Same.
11195 (get_attr_value): Same.
11196 (expand_delays): Same.
11197 (make_length_attrs): Same.
11198 (min_fn): Same.
11199 (make_alternative_compare): Same.
11200 (simplify_test_exp): Same.
11201 (tests_attr_p): Same.
11202 (get_attr_order): Same.
11203 (clear_struct_flag): Same.
11204 (gen_attr): Same.
11205 (compares_alternatives_p): Same.
11206 (gen_insn): Same.
11207 (gen_delay): Same.
11208 (find_attrs_to_cache): Same.
11209 (write_test_expr): Same.
11210 (walk_attr_value): Same.
11211 (write_attr_get): Same.
11212 (eliminate_known_true): Same.
11213 (write_insn_cases): Same.
11214 (write_attr_case): Same.
11215 (write_attr_valueq): Same.
11216 (write_attr_value): Same.
11217 (write_dummy_eligible_delay): Same.
11218 (next_comma_elt): Same.
11219 (find_attr): Same.
11220 (make_internal_attr): Same.
11221 (copy_rtx_unchanging): Same.
11222 (gen_insn_reserv): Same.
11223 (check_tune_attr): Same.
11224 (make_automaton_attrs): Same.
11225 (handle_arg): Same.
11226 * genextract.c (gen_insn): Same.
11227 (VEC_char_to_string): Same.
11228 * genmatch.c (print_operand): Same.
11229 (lower): Same.
11230 (parser::parse_operation): Same.
11231 (parser::parse_capture): Same.
11232 (parser::parse_c_expr): Same.
11233 (parser::parse_simplify): Same.
11234 (main): Same.
11235 * genoutput.c (output_operand_data): Same.
11236 (output_get_insn_name): Same.
11237 (compare_operands): Same.
11238 (place_operands): Same.
11239 (process_template): Same.
11240 (validate_insn_alternatives): Same.
11241 (validate_insn_operands): Same.
11242 (gen_expand): Same.
11243 (note_constraint): Same.
11244 * genpreds.c (write_one_predicate_function): Same.
11245 (add_constraint): Same.
11246 (process_define_register_constraint): Same.
11247 (write_lookup_constraint_1): Same.
11248 (write_lookup_constraint_array): Same.
11249 (write_insn_constraint_len): Same.
11250 (write_reg_class_for_constraint_1): Same.
11251 (write_constraint_satisfied_p_array): Same.
11252 * genrecog.c (optimize_subroutine_group): Same.
11253 * gensupport.c (process_define_predicate): Same.
11254 (queue_pattern): Same.
11255 (remove_from_queue): Same.
11256 (process_rtx): Same.
11257 (is_predicable): Same.
11258 (change_subst_attribute): Same.
11259 (subst_pattern_match): Same.
11260 (alter_constraints): Same.
11261 (alter_attrs_for_insn): Same.
11262 (shift_output_template): Same.
11263 (alter_output_for_subst_insn): Same.
11264 (process_one_cond_exec): Same.
11265 (subst_dup): Same.
11266 (process_define_cond_exec): Same.
11267 (mnemonic_htab_callback): Same.
11268 (gen_mnemonic_attr): Same.
11269 (read_md_rtx): Same.
11270 * ggc-page.c: Same.
11271 * gimple-loop-interchange.cc (dump_reduction): Same.
11272 (dump_induction): Same.
11273 (loop_cand::~loop_cand): Same.
11274 (free_data_refs_with_aux): Same.
11275 (tree_loop_interchange::interchange_loops): Same.
11276 (tree_loop_interchange::map_inductions_to_loop): Same.
11277 (tree_loop_interchange::move_code_to_inner_loop): Same.
11278 (compute_access_stride): Same.
11279 (compute_access_strides): Same.
11280 (proper_loop_form_for_interchange): Same.
11281 (tree_loop_interchange_compute_ddrs): Same.
11282 (prune_datarefs_not_in_loop): Same.
11283 (prepare_data_references): Same.
11284 (pass_linterchange::execute): Same.
11285 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11286 (unroll_jam_possible_p): Same.
11287 (fuse_loops): Same.
11288 (adjust_unroll_factor): Same.
11289 (tree_loop_unroll_and_jam): Same.
11290 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11291 (loop_versioning::expensive_stmt_p): Same.
11292 (loop_versioning::version_for_unity): Same.
11293 (loop_versioning::dump_inner_likelihood): Same.
11294 (loop_versioning::find_per_loop_multiplication): Same.
11295 (loop_versioning::analyze_term_using_scevs): Same.
11296 (loop_versioning::record_address_fragment): Same.
11297 (loop_versioning::analyze_expr): Same.
11298 (loop_versioning::analyze_blocks): Same.
11299 (loop_versioning::prune_conditions): Same.
11300 (loop_versioning::merge_loop_info): Same.
11301 (loop_versioning::add_loop_to_queue): Same.
11302 (loop_versioning::decide_whether_loop_is_versionable): Same.
11303 (loop_versioning::make_versioning_decisions): Same.
11304 (loop_versioning::implement_versioning_decisions): Same.
11305 * gimple-ssa-evrp-analyze.c
11306 (evrp_range_analyzer::record_ranges_from_phis): Same.
11307 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11308 (count_multiple_uses): Same.
11309 (split_group): Same.
11310 (imm_store_chain_info::output_merged_store): Same.
11311 (pass_store_merging::process_store): Same.
11312 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11313 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11314 (is_max): Same.
11315 (alloca_call_type): Same.
11316 (pass_walloca::execute): Same.
11317 * gimple-streamer-in.c (input_phi): Same.
11318 (input_gimple_stmt): Same.
11319 * gimple-streamer.h: Same.
11320 * godump.c (go_force_record_alignment): Same.
11321 (go_format_type): Same.
11322 (go_output_type): Same.
11323 (go_output_fndecl): Same.
11324 (go_output_typedef): Same.
11325 (keyword_hash_init): Same.
11326 (find_dummy_types): Same.
11327 * graph.c (draw_cfg_nodes_no_loops): Same.
11328 (draw_cfg_nodes_for_loop): Same.
11329 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11330 * hsa-brig.c: Same.
11331 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11332 * hsa-dump.c (dump_hsa_cfun): Same.
11333 * hsa-gen.c (gen_function_def_parameters): Same.
11334 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11335 * input.c (dump_line_table_statistics): Same.
11336 (test_lexer): Same.
11337 * input.h: Same.
11338 * internal-fn.c (get_multi_vector_move): Same.
11339 (expand_load_lanes_optab_fn): Same.
11340 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11341 (expand_GOMP_SIMT_EXIT): Same.
11342 (expand_GOMP_SIMT_LAST_LANE): Same.
11343 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11344 (expand_GOMP_SIMT_VOTE_ANY): Same.
11345 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11346 (expand_GOMP_SIMT_XCHG_IDX): Same.
11347 (expand_addsub_overflow): Same.
11348 (expand_neg_overflow): Same.
11349 (expand_mul_overflow): Same.
11350 (expand_call_mem_ref): Same.
11351 (expand_mask_load_optab_fn): Same.
11352 (expand_scatter_store_optab_fn): Same.
11353 (expand_gather_load_optab_fn): Same.
11354 * ipa-cp.c (ipa_get_parm_lattices): Same.
11355 (print_all_lattices): Same.
11356 (ignore_edge_p): Same.
11357 (build_toporder_info): Same.
11358 (free_toporder_info): Same.
11359 (push_node_to_stack): Same.
11360 (ipcp_lattice<valtype>::set_contains_variable): Same.
11361 (set_agg_lats_to_bottom): Same.
11362 (ipcp_bits_lattice::meet_with): Same.
11363 (set_single_call_flag): Same.
11364 (initialize_node_lattices): Same.
11365 (ipa_get_jf_ancestor_result): Same.
11366 (ipcp_verify_propagated_values): Same.
11367 (propagate_scalar_across_jump_function): Same.
11368 (propagate_context_across_jump_function): Same.
11369 (propagate_bits_across_jump_function): Same.
11370 (ipa_vr_operation_and_type_effects): Same.
11371 (propagate_vr_across_jump_function): Same.
11372 (set_check_aggs_by_ref): Same.
11373 (set_chain_of_aglats_contains_variable): Same.
11374 (merge_aggregate_lattices): Same.
11375 (agg_pass_through_permissible_p): Same.
11376 (propagate_aggs_across_jump_function): Same.
11377 (call_passes_through_thunk_p): Same.
11378 (propagate_constants_across_call): Same.
11379 (devirtualization_time_bonus): Same.
11380 (good_cloning_opportunity_p): Same.
11381 (context_independent_aggregate_values): Same.
11382 (gather_context_independent_values): Same.
11383 (perform_estimation_of_a_value): Same.
11384 (estimate_local_effects): Same.
11385 (value_topo_info<valtype>::add_val): Same.
11386 (add_all_node_vals_to_toposort): Same.
11387 (value_topo_info<valtype>::propagate_effects): Same.
11388 (ipcp_propagate_stage): Same.
11389 (ipcp_discover_new_direct_edges): Same.
11390 (same_node_or_its_all_contexts_clone_p): Same.
11391 (cgraph_edge_brings_value_p): Same.
11392 (gather_edges_for_value): Same.
11393 (create_specialized_node): Same.
11394 (find_more_scalar_values_for_callers_subset): Same.
11395 (find_more_contexts_for_caller_subset): Same.
11396 (copy_plats_to_inter): Same.
11397 (intersect_aggregates_with_edge): Same.
11398 (find_aggregate_values_for_callers_subset): Same.
11399 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11400 (decide_about_value): Same.
11401 (decide_whether_version_node): Same.
11402 (spread_undeadness): Same.
11403 (identify_dead_nodes): Same.
11404 (ipcp_store_vr_results): Same.
11405 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11406 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11407 (redirect_to_unreachable): Same.
11408 (edge_set_predicate): Same.
11409 (evaluate_conditions_for_known_args): Same.
11410 (evaluate_properties_for_edge): Same.
11411 (ipa_fn_summary_t::duplicate): Same.
11412 (ipa_call_summary_t::duplicate): Same.
11413 (dump_ipa_call_summary): Same.
11414 (ipa_dump_fn_summary): Same.
11415 (eliminated_by_inlining_prob): Same.
11416 (set_cond_stmt_execution_predicate): Same.
11417 (set_switch_stmt_execution_predicate): Same.
11418 (compute_bb_predicates): Same.
11419 (will_be_nonconstant_expr_predicate): Same.
11420 (phi_result_unknown_predicate): Same.
11421 (analyze_function_body): Same.
11422 (compute_fn_summary): Same.
11423 (estimate_edge_devirt_benefit): Same.
11424 (estimate_edge_size_and_time): Same.
11425 (estimate_calls_size_and_time): Same.
11426 (estimate_node_size_and_time): Same.
11427 (remap_edge_change_prob): Same.
11428 (remap_edge_summaries): Same.
11429 (ipa_merge_fn_summary_after_inlining): Same.
11430 (ipa_fn_summary_generate): Same.
11431 (inline_read_section): Same.
11432 (ipa_fn_summary_read): Same.
11433 (ipa_fn_summary_write): Same.
11434 * ipa-fnsummary.h: Same.
11435 * ipa-hsa.c (ipa_hsa_read_section): Same.
11436 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11437 * ipa-icf.c (sem_function::param_used_p): Same.
11438 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11439 * ipa-inline.c (edge_badness): Same.
11440 (inline_small_functions): Same.
11441 * ipa-polymorphic-call.c
11442 (ipa_polymorphic_call_context::stream_out): Same.
11443 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11444 (predicate::remap_after_inlining): Same.
11445 (predicate::stream_out): Same.
11446 * ipa-predicate.h: Same.
11447 * ipa-profile.c (ipa_profile_read_summary): Same.
11448 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11449 (count_formal_params): Same.
11450 (ipa_dump_param): Same.
11451 (ipa_alloc_node_params): Same.
11452 (ipa_print_node_jump_functions_for_edge): Same.
11453 (ipa_print_node_jump_functions): Same.
11454 (ipa_load_from_parm_agg): Same.
11455 (get_ancestor_addr_info): Same.
11456 (ipa_compute_jump_functions_for_edge): Same.
11457 (ipa_analyze_virtual_call_uses): Same.
11458 (ipa_analyze_stmt_uses): Same.
11459 (ipa_analyze_params_uses_in_bb): Same.
11460 (update_jump_functions_after_inlining): Same.
11461 (try_decrement_rdesc_refcount): Same.
11462 (ipa_impossible_devirt_target): Same.
11463 (update_indirect_edges_after_inlining): Same.
11464 (combine_controlled_uses_counters): Same.
11465 (ipa_edge_args_sum_t::duplicate): Same.
11466 (ipa_write_jump_function): Same.
11467 (ipa_write_indirect_edge_info): Same.
11468 (ipa_write_node_info): Same.
11469 (ipa_read_edge_info): Same.
11470 (ipa_prop_read_section): Same.
11471 (read_replacements_section): Same.
11472 * ipa-prop.h (ipa_get_param_count): Same.
11473 (ipa_get_param): Same.
11474 (ipa_get_type): Same.
11475 (ipa_get_param_move_cost): Same.
11476 (ipa_set_param_used): Same.
11477 (ipa_get_controlled_uses): Same.
11478 (ipa_set_controlled_uses): Same.
11479 (ipa_get_cs_argument_count): Same.
11480 * ipa-pure-const.c (analyze_function): Same.
11481 (pure_const_read_summary): Same.
11482 * ipa-ref.h: Same.
11483 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11484 * ipa-split.c (test_nonssa_use): Same.
11485 (dump_split_point): Same.
11486 (dominated_by_forbidden): Same.
11487 (split_part_set_ssa_name_p): Same.
11488 (find_split_points): Same.
11489 * ira-build.c (finish_loop_tree_nodes): Same.
11490 (low_pressure_loop_node_p): Same.
11491 * ira-color.c (ira_reuse_stack_slot): Same.
11492 * ira-int.h: Same.
11493 * ira.c (setup_reg_equiv): Same.
11494 (print_insn_chain): Same.
11495 (ira): Same.
11496 * loop-doloop.c (doloop_condition_get): Same.
11497 (add_test): Same.
11498 (record_reg_sets): Same.
11499 (doloop_optimize): Same.
11500 * loop-init.c (loop_optimizer_init): Same.
11501 (fix_loop_structure): Same.
11502 * loop-invariant.c (merge_identical_invariants): Same.
11503 (compute_always_reached): Same.
11504 (find_exits): Same.
11505 (may_assign_reg_p): Same.
11506 (find_invariants_bb): Same.
11507 (find_invariants_body): Same.
11508 (replace_uses): Same.
11509 (can_move_invariant_reg): Same.
11510 (free_inv_motion_data): Same.
11511 (move_single_loop_invariants): Same.
11512 (change_pressure): Same.
11513 (mark_ref_regs): Same.
11514 (calculate_loop_reg_pressure): Same.
11515 * loop-iv.c (biv_entry_hasher::equal): Same.
11516 (iv_extend_to_rtx_code): Same.
11517 (check_iv_ref_table_size): Same.
11518 (clear_iv_info): Same.
11519 (latch_dominating_def): Same.
11520 (iv_get_reaching_def): Same.
11521 (iv_constant): Same.
11522 (iv_subreg): Same.
11523 (iv_extend): Same.
11524 (iv_neg): Same.
11525 (iv_add): Same.
11526 (iv_mult): Same.
11527 (get_biv_step): Same.
11528 (record_iv): Same.
11529 (analyzed_for_bivness_p): Same.
11530 (record_biv): Same.
11531 (iv_analyze_biv): Same.
11532 (iv_analyze_expr): Same.
11533 (iv_analyze_def): Same.
11534 (iv_analyze_op): Same.
11535 (iv_analyze): Same.
11536 (iv_analyze_result): Same.
11537 (biv_p): Same.
11538 (eliminate_implied_conditions): Same.
11539 (simplify_using_initial_values): Same.
11540 (shorten_into_mode): Same.
11541 (canonicalize_iv_subregs): Same.
11542 (determine_max_iter): Same.
11543 (check_simple_exit): Same.
11544 (find_simple_exit): Same.
11545 (get_simple_loop_desc): Same.
11546 * loop-unroll.c (report_unroll): Same.
11547 (decide_unrolling): Same.
11548 (unroll_loops): Same.
11549 (loop_exit_at_end_p): Same.
11550 (decide_unroll_constant_iterations): Same.
11551 (unroll_loop_constant_iterations): Same.
11552 (compare_and_jump_seq): Same.
11553 (unroll_loop_runtime_iterations): Same.
11554 (decide_unroll_stupid): Same.
11555 (unroll_loop_stupid): Same.
11556 (referenced_in_one_insn_in_loop_p): Same.
11557 (reset_debug_uses_in_loop): Same.
11558 (analyze_iv_to_split_insn): Same.
11559 * lra-eliminations.c (lra_debug_elim_table): Same.
11560 (setup_can_eliminate): Same.
11561 (form_sum): Same.
11562 (lra_get_elimination_hard_regno): Same.
11563 (lra_eliminate_regs_1): Same.
11564 (eliminate_regs_in_insn): Same.
11565 (update_reg_eliminate): Same.
11566 (init_elimination): Same.
11567 (lra_eliminate): Same.
11568 * lra-int.h: Same.
11569 * lra-lives.c (initiate_live_solver): Same.
11570 * lra-remat.c (create_remat_bb_data): Same.
11571 * lra-spills.c (lra_spill): Same.
11572 * lra.c (lra_set_insn_recog_data): Same.
11573 (lra_set_used_insn_alternative_by_uid): Same.
11574 (init_reg_info): Same.
11575 (expand_reg_info): Same.
11576 * lto-cgraph.c (output_symtab): Same.
11577 (read_identifier): Same.
11578 (get_alias_symbol): Same.
11579 (input_node): Same.
11580 (input_varpool_node): Same.
11581 (input_ref): Same.
11582 (input_edge): Same.
11583 (input_cgraph_1): Same.
11584 (input_refs): Same.
11585 (input_symtab): Same.
11586 (input_offload_tables): Same.
11587 (output_cgraph_opt_summary): Same.
11588 (input_edge_opt_summary): Same.
11589 (input_cgraph_opt_section): Same.
11590 * lto-section-in.c (lto_free_raw_section_data): Same.
11591 (lto_create_simple_input_block): Same.
11592 (lto_free_function_in_decl_state_for_node): Same.
11593 * lto-streamer-in.c (lto_tag_check_set): Same.
11594 (lto_location_cache::revert_location_cache): Same.
11595 (lto_location_cache::input_location): Same.
11596 (lto_input_location): Same.
11597 (stream_input_location_now): Same.
11598 (lto_input_tree_ref): Same.
11599 (lto_input_eh_catch_list): Same.
11600 (input_eh_region): Same.
11601 (lto_init_eh): Same.
11602 (make_new_block): Same.
11603 (input_cfg): Same.
11604 (fixup_call_stmt_edges): Same.
11605 (input_struct_function_base): Same.
11606 (input_function): Same.
11607 (lto_read_body_or_constructor): Same.
11608 (lto_read_tree_1): Same.
11609 (lto_read_tree): Same.
11610 (lto_input_scc): Same.
11611 (lto_input_tree_1): Same.
11612 (lto_input_toplevel_asms): Same.
11613 (lto_input_mode_table): Same.
11614 (lto_reader_init): Same.
11615 (lto_data_in_create): Same.
11616 * lto-streamer-out.c (output_cfg): Same.
11617 * lto-streamer.h: Same.
11618 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11619 (generate_prolog_epilog): Same.
11620 (mark_loop_unsched): Same.
11621 (dump_insn_location): Same.
11622 (loop_canon_p): Same.
11623 (sms_schedule): Same.
11624 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11625 (expand_omp_for_generic): Same.
11626 (expand_omp_for_static_nochunk): Same.
11627 (expand_omp_for_static_chunk): Same.
11628 (expand_omp_simd): Same.
11629 (expand_omp_taskloop_for_inner): Same.
11630 (expand_oacc_for): Same.
11631 (expand_omp_atomic_pipeline): Same.
11632 (mark_loops_in_oacc_kernels_region): Same.
11633 * omp-offload.c (oacc_xform_loop): Same.
11634 * omp-simd-clone.c (simd_clone_adjust): Same.
11635 * optabs-query.c (get_traditional_extraction_insn): Same.
11636 * optabs.c (expand_vector_broadcast): Same.
11637 (expand_binop_directly): Same.
11638 (expand_twoval_unop): Same.
11639 (expand_twoval_binop): Same.
11640 (expand_unop_direct): Same.
11641 (emit_indirect_jump): Same.
11642 (emit_conditional_move): Same.
11643 (emit_conditional_neg_or_complement): Same.
11644 (emit_conditional_add): Same.
11645 (vector_compare_rtx): Same.
11646 (expand_vec_perm_1): Same.
11647 (expand_vec_perm_const): Same.
11648 (expand_vec_cond_expr): Same.
11649 (expand_vec_series_expr): Same.
11650 (maybe_emit_atomic_exchange): Same.
11651 (maybe_emit_sync_lock_test_and_set): Same.
11652 (expand_atomic_compare_and_swap): Same.
11653 (expand_atomic_load): Same.
11654 (expand_atomic_store): Same.
11655 (maybe_emit_op): Same.
11656 (valid_multiword_target_p): Same.
11657 (create_integer_operand): Same.
11658 (maybe_legitimize_operand_same_code): Same.
11659 (maybe_legitimize_operand): Same.
11660 (create_convert_operand_from_type): Same.
11661 (can_reuse_operands_p): Same.
11662 (maybe_legitimize_operands): Same.
11663 (maybe_gen_insn): Same.
11664 (maybe_expand_insn): Same.
11665 (maybe_expand_jump_insn): Same.
11666 (expand_insn): Same.
11667 * optabs.h (create_expand_operand): Same.
11668 (create_fixed_operand): Same.
11669 (create_output_operand): Same.
11670 (create_input_operand): Same.
11671 (create_convert_operand_to): Same.
11672 (create_convert_operand_from): Same.
11673 * optinfo.h: Same.
11674 * poly-int.h: Same.
11675 * predict.c (optimize_insn_for_speed_p): Same.
11676 (optimize_loop_for_size_p): Same.
11677 (optimize_loop_for_speed_p): Same.
11678 (optimize_loop_nest_for_speed_p): Same.
11679 (get_base_value): Same.
11680 (predicted_by_loop_heuristics_p): Same.
11681 (predict_extra_loop_exits): Same.
11682 (predict_loops): Same.
11683 (predict_paths_for_bb): Same.
11684 (predict_paths_leading_to): Same.
11685 (propagate_freq): Same.
11686 (pass_profile::execute): Same.
11687 * predict.h: Same.
11688 * profile-count.c (profile_count::differs_from_p): Same.
11689 (profile_probability::differs_lot_from_p): Same.
11690 * profile-count.h: Same.
11691 * profile.c (branch_prob): Same.
11692 * regrename.c (free_chain_data): Same.
11693 (mark_conflict): Same.
11694 (create_new_chain): Same.
11695 (merge_overlapping_regs): Same.
11696 (init_rename_info): Same.
11697 (merge_chains): Same.
11698 (regrename_analyze): Same.
11699 (regrename_do_replace): Same.
11700 (scan_rtx_reg): Same.
11701 (record_out_operands): Same.
11702 (build_def_use): Same.
11703 * regrename.h: Same.
11704 * reload.h: Same.
11705 * reload1.c (init_reload): Same.
11706 (maybe_fix_stack_asms): Same.
11707 (copy_reloads): Same.
11708 (count_pseudo): Same.
11709 (count_spilled_pseudo): Same.
11710 (find_reg): Same.
11711 (find_reload_regs): Same.
11712 (select_reload_regs): Same.
11713 (spill_hard_reg): Same.
11714 (fixup_eh_region_note): Same.
11715 (set_reload_reg): Same.
11716 (allocate_reload_reg): Same.
11717 (compute_reload_subreg_offset): Same.
11718 (reload_adjust_reg_for_icode): Same.
11719 (emit_input_reload_insns): Same.
11720 (emit_output_reload_insns): Same.
11721 (do_input_reload): Same.
11722 (inherit_piecemeal_p): Same.
11723 * rtl.h: Same.
11724 * sanopt.c (maybe_get_dominating_check): Same.
11725 (maybe_optimize_ubsan_ptr_ifn): Same.
11726 (can_remove_asan_check): Same.
11727 (maybe_optimize_asan_check_ifn): Same.
11728 (sanopt_optimize_walker): Same.
11729 * sched-deps.c (add_dependence_list): Same.
11730 (chain_to_prev_insn): Same.
11731 (add_insn_mem_dependence): Same.
11732 (create_insn_reg_set): Same.
11733 (maybe_extend_reg_info_p): Same.
11734 (sched_analyze_reg): Same.
11735 (sched_analyze_1): Same.
11736 (get_implicit_reg_pending_clobbers): Same.
11737 (chain_to_prev_insn_p): Same.
11738 (deps_analyze_insn): Same.
11739 (deps_start_bb): Same.
11740 (sched_free_deps): Same.
11741 (init_deps): Same.
11742 (init_deps_reg_last): Same.
11743 (free_deps): Same.
11744 * sched-ebb.c: Same.
11745 * sched-int.h: Same.
11746 * sched-rgn.c (add_branch_dependences): Same.
11747 (concat_insn_mem_list): Same.
11748 (deps_join): Same.
11749 (sched_rgn_compute_dependencies): Same.
11750 * sel-sched-ir.c (reset_target_context): Same.
11751 (copy_deps_context): Same.
11752 (init_id_from_df): Same.
11753 (has_dependence_p): Same.
11754 (change_loops_latches): Same.
11755 (bb_top_order_comparator): Same.
11756 (make_region_from_loop_preheader): Same.
11757 (sel_init_pipelining): Same.
11758 (get_loop_nest_for_rgn): Same.
11759 (make_regions_from_the_rest): Same.
11760 (sel_is_loop_preheader_p): Same.
11761 * sel-sched-ir.h (inner_loop_header_p): Same.
11762 (get_all_loop_exits): Same.
11763 * selftest.h: Same.
11764 * sese.c (sese_build_liveouts): Same.
11765 (sese_insert_phis_for_liveouts): Same.
11766 * sese.h (defined_in_sese_p): Same.
11767 * sreal.c (sreal::stream_out): Same.
11768 * sreal.h: Same.
11769 * streamer-hooks.h: Same.
11770 * target-globals.c (save_target_globals): Same.
11771 * target-globals.h: Same.
11772 * target.def: Same.
11773 * target.h: Same.
11774 * targhooks.c (default_has_ifunc_p): Same.
11775 (default_empty_mask_is_expensive): Same.
11776 (default_init_cost): Same.
11777 * targhooks.h: Same.
11778 * toplev.c: Same.
11779 * tree-affine.c (aff_combination_mult): Same.
11780 (aff_combination_expand): Same.
11781 (aff_combination_constant_multiple_p): Same.
11782 * tree-affine.h: Same.
11783 * tree-cfg.c (build_gimple_cfg): Same.
11784 (replace_loop_annotate_in_block): Same.
11785 (replace_uses_by): Same.
11786 (remove_bb): Same.
11787 (dump_cfg_stats): Same.
11788 (gimple_duplicate_sese_region): Same.
11789 (gimple_duplicate_sese_tail): Same.
11790 (move_block_to_fn): Same.
11791 (replace_block_vars_by_duplicates): Same.
11792 (move_sese_region_to_fn): Same.
11793 (print_loops_bb): Same.
11794 (print_loop): Same.
11795 (print_loops): Same.
11796 (debug): Same.
11797 (debug_loops): Same.
11798 * tree-cfg.h: Same.
11799 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11800 (chrec_fold_multiply_poly_poly): Same.
11801 (chrec_evaluate): Same.
11802 (chrec_component_in_loop_num): Same.
11803 (reset_evolution_in_loop): Same.
11804 (is_multivariate_chrec): Same.
11805 (chrec_contains_symbols): Same.
11806 (nb_vars_in_chrec): Same.
11807 (chrec_convert_1): Same.
11808 (chrec_convert_aggressive): Same.
11809 * tree-chrec.h: Same.
11810 * tree-core.h: Same.
11811 * tree-data-ref.c (dump_data_dependence_relation): Same.
11812 (canonicalize_base_object_address): Same.
11813 (data_ref_compare_tree): Same.
11814 (prune_runtime_alias_test_list): Same.
11815 (get_segment_min_max): Same.
11816 (create_intersect_range_checks): Same.
11817 (conflict_fn_no_dependence): Same.
11818 (object_address_invariant_in_loop_p): Same.
11819 (analyze_ziv_subscript): Same.
11820 (analyze_siv_subscript_cst_affine): Same.
11821 (analyze_miv_subscript): Same.
11822 (analyze_overlapping_iterations): Same.
11823 (build_classic_dist_vector_1): Same.
11824 (add_other_self_distances): Same.
11825 (same_access_functions): Same.
11826 (build_classic_dir_vector): Same.
11827 (subscript_dependence_tester_1): Same.
11828 (subscript_dependence_tester): Same.
11829 (access_functions_are_affine_or_constant_p): Same.
11830 (get_references_in_stmt): Same.
11831 (loop_nest_has_data_refs): Same.
11832 (graphite_find_data_references_in_stmt): Same.
11833 (find_data_references_in_bb): Same.
11834 (get_base_for_alignment): Same.
11835 (find_loop_nest_1): Same.
11836 (find_loop_nest): Same.
11837 * tree-data-ref.h (dr_alignment): Same.
11838 (ddr_dependence_level): Same.
11839 * tree-if-conv.c (fold_build_cond_expr): Same.
11840 (add_to_predicate_list): Same.
11841 (add_to_dst_predicate_list): Same.
11842 (phi_convertible_by_degenerating_args): Same.
11843 (idx_within_array_bound): Same.
11844 (all_preds_critical_p): Same.
11845 (pred_blocks_visited_p): Same.
11846 (predicate_bbs): Same.
11847 (build_region): Same.
11848 (if_convertible_loop_p_1): Same.
11849 (is_cond_scalar_reduction): Same.
11850 (predicate_scalar_phi): Same.
11851 (remove_conditions_and_labels): Same.
11852 (combine_blocks): Same.
11853 (version_loop_for_if_conversion): Same.
11854 (versionable_outer_loop_p): Same.
11855 (ifcvt_local_dce): Same.
11856 (tree_if_conversion): Same.
11857 (pass_if_conversion::gate): Same.
11858 * tree-if-conv.h: Same.
11859 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11860 * tree-loop-distribution.c (bb_top_order_cmp): Same.
11861 (free_rdg): Same.
11862 (stmt_has_scalar_dependences_outside_loop): Same.
11863 (copy_loop_before): Same.
11864 (create_bb_after_loop): Same.
11865 (const_with_all_bytes_same): Same.
11866 (generate_memset_builtin): Same.
11867 (generate_memcpy_builtin): Same.
11868 (destroy_loop): Same.
11869 (build_rdg_partition_for_vertex): Same.
11870 (compute_access_range): Same.
11871 (data_ref_segment_size): Same.
11872 (latch_dominated_by_data_ref): Same.
11873 (compute_alias_check_pairs): Same.
11874 (fuse_memset_builtins): Same.
11875 (finalize_partitions): Same.
11876 (find_seed_stmts_for_distribution): Same.
11877 (prepare_perfect_loop_nest): Same.
11878 * tree-parloops.c (lambda_transform_legal_p): Same.
11879 (loop_parallel_p): Same.
11880 (reduc_stmt_res): Same.
11881 (add_field_for_name): Same.
11882 (create_call_for_reduction_1): Same.
11883 (replace_uses_in_bb_by): Same.
11884 (transform_to_exit_first_loop_alt): Same.
11885 (try_transform_to_exit_first_loop_alt): Same.
11886 (transform_to_exit_first_loop): Same.
11887 (num_phis): Same.
11888 (gen_parallel_loop): Same.
11889 (gather_scalar_reductions): Same.
11890 (get_omp_data_i_param): Same.
11891 (try_create_reduction_list): Same.
11892 (oacc_entry_exit_single_gang): Same.
11893 (parallelize_loops): Same.
11894 * tree-pass.h: Same.
11895 * tree-predcom.c (determine_offset): Same.
11896 (last_always_executed_block): Same.
11897 (split_data_refs_to_components): Same.
11898 (suitable_component_p): Same.
11899 (valid_initializer_p): Same.
11900 (find_looparound_phi): Same.
11901 (insert_looparound_copy): Same.
11902 (add_looparound_copies): Same.
11903 (determine_roots_comp): Same.
11904 (predcom_tmp_var): Same.
11905 (initialize_root_vars): Same.
11906 (initialize_root_vars_store_elim_1): Same.
11907 (initialize_root_vars_store_elim_2): Same.
11908 (finalize_eliminated_stores): Same.
11909 (initialize_root_vars_lm): Same.
11910 (remove_stmt): Same.
11911 (determine_unroll_factor): Same.
11912 (execute_pred_commoning_cbck): Same.
11913 (base_names_in_chain_on): Same.
11914 (combine_chains): Same.
11915 (pcom_stmt_dominates_stmt_p): Same.
11916 (try_combine_chains): Same.
11917 (prepare_initializers_chain_store_elim): Same.
11918 (prepare_initializers_chain): Same.
11919 (prepare_initializers): Same.
11920 (prepare_finalizers_chain): Same.
11921 (prepare_finalizers): Same.
11922 (insert_init_seqs): Same.
11923 * tree-scalar-evolution.c (loop_phi_node_p): Same.
11924 (compute_overall_effect_of_inner_loop): Same.
11925 (add_to_evolution_1): Same.
11926 (add_to_evolution): Same.
11927 (follow_ssa_edge_binary): Same.
11928 (follow_ssa_edge_expr): Same.
11929 (backedge_phi_arg_p): Same.
11930 (follow_ssa_edge_in_condition_phi_branch): Same.
11931 (follow_ssa_edge_in_condition_phi): Same.
11932 (follow_ssa_edge_inner_loop_phi): Same.
11933 (follow_ssa_edge): Same.
11934 (analyze_evolution_in_loop): Same.
11935 (analyze_initial_condition): Same.
11936 (interpret_loop_phi): Same.
11937 (interpret_condition_phi): Same.
11938 (interpret_rhs_expr): Same.
11939 (interpret_expr): Same.
11940 (interpret_gimple_assign): Same.
11941 (analyze_scalar_evolution_1): Same.
11942 (analyze_scalar_evolution): Same.
11943 (analyze_scalar_evolution_for_address_of): Same.
11944 (get_instantiated_value_entry): Same.
11945 (loop_closed_phi_def): Same.
11946 (instantiate_scev_name): Same.
11947 (instantiate_scev_poly): Same.
11948 (instantiate_scev_binary): Same.
11949 (instantiate_scev_convert): Same.
11950 (instantiate_scev_not): Same.
11951 (instantiate_scev_r): Same.
11952 (instantiate_scev): Same.
11953 (resolve_mixers): Same.
11954 (initialize_scalar_evolutions_analyzer): Same.
11955 (scev_reset_htab): Same.
11956 (scev_reset): Same.
11957 (derive_simple_iv_with_niters): Same.
11958 (simple_iv_with_niters): Same.
11959 (expression_expensive_p): Same.
11960 (final_value_replacement_loop): Same.
11961 * tree-scalar-evolution.h (block_before_loop): Same.
11962 * tree-ssa-address.h: Same.
11963 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
11964 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
11965 (record_edge_info): Same.
11966 * tree-ssa-live.c (var_map_base_fini): Same.
11967 (remove_unused_locals): Same.
11968 * tree-ssa-live.h: Same.
11969 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
11970 (pass_ch_vect::execute): Same.
11971 (pass_ch::process_loop_p): Same.
11972 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
11973 (movement_possibility): Same.
11974 (outermost_invariant_loop): Same.
11975 (stmt_cost): Same.
11976 (determine_max_movement): Same.
11977 (invariantness_dom_walker::before_dom_children): Same.
11978 (move_computations): Same.
11979 (may_move_till): Same.
11980 (force_move_till_op): Same.
11981 (force_move_till): Same.
11982 (memref_free): Same.
11983 (record_mem_ref_loc): Same.
11984 (set_ref_stored_in_loop): Same.
11985 (mark_ref_stored): Same.
11986 (sort_bbs_in_loop_postorder_cmp): Same.
11987 (sort_locs_in_loop_postorder_cmp): Same.
11988 (analyze_memory_references): Same.
11989 (mem_refs_may_alias_p): Same.
11990 (find_ref_loc_in_loop_cmp): Same.
11991 (rewrite_mem_ref_loc::operator): Same.
11992 (first_mem_ref_loc_1::operator): Same.
11993 (sm_set_flag_if_changed::operator): Same.
11994 (execute_sm_if_changed_flag_set): Same.
11995 (execute_sm): Same.
11996 (hoist_memory_references): Same.
11997 (ref_always_accessed::operator): Same.
11998 (refs_independent_p): Same.
11999 (record_dep_loop): Same.
12000 (ref_indep_loop_p_1): Same.
12001 (ref_indep_loop_p): Same.
12002 (can_sm_ref_p): Same.
12003 (find_refs_for_sm): Same.
12004 (loop_suitable_for_sm): Same.
12005 (store_motion_loop): Same.
12006 (store_motion): Same.
12007 (fill_always_executed_in): Same.
12008 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12009 (estimated_unrolled_size): Same.
12010 (loop_edge_to_cancel): Same.
12011 (remove_exits_and_undefined_stmts): Same.
12012 (remove_redundant_iv_tests): Same.
12013 (unloop_loops): Same.
12014 (estimated_peeled_sequence_size): Same.
12015 (try_peel_loop): Same.
12016 (canonicalize_loop_induction_variables): Same.
12017 (canonicalize_induction_variables): Same.
12018 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12019 (name_info): Same.
12020 (stmt_after_inc_pos): Same.
12021 (contains_abnormal_ssa_name_p): Same.
12022 (niter_for_exit): Same.
12023 (find_bivs): Same.
12024 (mark_bivs): Same.
12025 (find_givs_in_bb): Same.
12026 (find_induction_variables): Same.
12027 (find_interesting_uses_cond): Same.
12028 (outermost_invariant_loop_for_expr): Same.
12029 (idx_find_step): Same.
12030 (add_candidate_1): Same.
12031 (add_iv_candidate_derived_from_uses): Same.
12032 (alloc_use_cost_map): Same.
12033 (prepare_decl_rtl): Same.
12034 (generic_predict_doloop_p): Same.
12035 (computation_cost): Same.
12036 (determine_common_wider_type): Same.
12037 (get_computation_aff_1): Same.
12038 (get_use_type): Same.
12039 (determine_group_iv_cost_address): Same.
12040 (iv_period): Same.
12041 (difference_cannot_overflow_p): Same.
12042 (may_eliminate_iv): Same.
12043 (determine_set_costs): Same.
12044 (cheaper_cost_pair): Same.
12045 (compare_cost_pair): Same.
12046 (iv_ca_cand_for_group): Same.
12047 (iv_ca_recount_cost): Same.
12048 (iv_ca_set_remove_invs): Same.
12049 (iv_ca_set_no_cp): Same.
12050 (iv_ca_set_add_invs): Same.
12051 (iv_ca_set_cp): Same.
12052 (iv_ca_add_group): Same.
12053 (iv_ca_cost): Same.
12054 (iv_ca_compare_deps): Same.
12055 (iv_ca_delta_reverse): Same.
12056 (iv_ca_delta_commit): Same.
12057 (iv_ca_cand_used_p): Same.
12058 (iv_ca_delta_free): Same.
12059 (iv_ca_new): Same.
12060 (iv_ca_free): Same.
12061 (iv_ca_dump): Same.
12062 (iv_ca_extend): Same.
12063 (iv_ca_narrow): Same.
12064 (iv_ca_prune): Same.
12065 (cheaper_cost_with_cand): Same.
12066 (iv_ca_replace): Same.
12067 (try_add_cand_for): Same.
12068 (get_initial_solution): Same.
12069 (try_improve_iv_set): Same.
12070 (find_optimal_iv_set_1): Same.
12071 (create_new_iv): Same.
12072 (rewrite_use_compare): Same.
12073 (remove_unused_ivs): Same.
12074 (determine_scaling_factor): Same.
12075 * tree-ssa-loop-ivopts.h: Same.
12076 * tree-ssa-loop-manip.c (create_iv): Same.
12077 (compute_live_loop_exits): Same.
12078 (add_exit_phi): Same.
12079 (add_exit_phis): Same.
12080 (find_uses_to_rename_use): Same.
12081 (find_uses_to_rename_def): Same.
12082 (find_uses_to_rename_in_loop): Same.
12083 (rewrite_into_loop_closed_ssa): Same.
12084 (check_loop_closed_ssa_bb): Same.
12085 (split_loop_exit_edge): Same.
12086 (ip_end_pos): Same.
12087 (ip_normal_pos): Same.
12088 (copy_phi_node_args): Same.
12089 (gimple_duplicate_loop_to_header_edge): Same.
12090 (can_unroll_loop_p): Same.
12091 (determine_exit_conditions): Same.
12092 (scale_dominated_blocks_in_loop): Same.
12093 (niter_for_unrolled_loop): Same.
12094 (tree_transform_and_unroll_loop): Same.
12095 (rewrite_all_phi_nodes_with_iv): Same.
12096 * tree-ssa-loop-manip.h: Same.
12097 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12098 (number_of_iterations_ne): Same.
12099 (assert_no_overflow_lt): Same.
12100 (assert_loop_rolls_lt): Same.
12101 (number_of_iterations_lt): Same.
12102 (adjust_cond_for_loop_until_wrap): Same.
12103 (tree_simplify_using_condition): Same.
12104 (simplify_using_initial_conditions): Same.
12105 (simplify_using_outer_evolutions): Same.
12106 (loop_only_exit_p): Same.
12107 (ssa_defined_by_minus_one_stmt_p): Same.
12108 (number_of_iterations_popcount): Same.
12109 (number_of_iterations_exit): Same.
12110 (find_loop_niter): Same.
12111 (finite_loop_p): Same.
12112 (chain_of_csts_start): Same.
12113 (get_val_for): Same.
12114 (loop_niter_by_eval): Same.
12115 (derive_constant_upper_bound_ops): Same.
12116 (do_warn_aggressive_loop_optimizations): Same.
12117 (record_estimate): Same.
12118 (get_cst_init_from_scev): Same.
12119 (record_nonwrapping_iv): Same.
12120 (idx_infer_loop_bounds): Same.
12121 (infer_loop_bounds_from_ref): Same.
12122 (infer_loop_bounds_from_array): Same.
12123 (infer_loop_bounds_from_pointer_arith): Same.
12124 (infer_loop_bounds_from_signedness): Same.
12125 (bound_index): Same.
12126 (discover_iteration_bound_by_body_walk): Same.
12127 (maybe_lower_iteration_bound): Same.
12128 (estimate_numbers_of_iterations): Same.
12129 (estimated_loop_iterations): Same.
12130 (estimated_loop_iterations_int): Same.
12131 (max_loop_iterations): Same.
12132 (max_loop_iterations_int): Same.
12133 (likely_max_loop_iterations): Same.
12134 (likely_max_loop_iterations_int): Same.
12135 (estimated_stmt_executions_int): Same.
12136 (max_stmt_executions): Same.
12137 (likely_max_stmt_executions): Same.
12138 (estimated_stmt_executions): Same.
12139 (stmt_dominates_stmt_p): Same.
12140 (nowrap_type_p): Same.
12141 (loop_exits_before_overflow): Same.
12142 (scev_var_range_cant_overflow): Same.
12143 (scev_probably_wraps_p): Same.
12144 (free_numbers_of_iterations_estimates): Same.
12145 * tree-ssa-loop-niter.h: Same.
12146 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12147 (idx_analyze_ref): Same.
12148 (analyze_ref): Same.
12149 (gather_memory_references_ref): Same.
12150 (mark_nontemporal_store): Same.
12151 (emit_mfence_after_loop): Same.
12152 (may_use_storent_in_loop_p): Same.
12153 (mark_nontemporal_stores): Same.
12154 (should_unroll_loop_p): Same.
12155 (volume_of_dist_vector): Same.
12156 (add_subscript_strides): Same.
12157 (self_reuse_distance): Same.
12158 (insn_to_prefetch_ratio_too_small_p): Same.
12159 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12160 (patch_loop_exit): Same.
12161 (find_or_create_guard_phi): Same.
12162 (easy_exit_values): Same.
12163 (connect_loop_phis): Same.
12164 (connect_loops): Same.
12165 (compute_new_first_bound): Same.
12166 (split_loop): Same.
12167 (tree_ssa_split_loops): Same.
12168 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12169 (is_maybe_undefined): Same.
12170 (tree_may_unswitch_on): Same.
12171 (simplify_using_entry_checks): Same.
12172 (tree_unswitch_single_loop): Same.
12173 (tree_unswitch_loop): Same.
12174 (tree_unswitch_outer_loop): Same.
12175 (empty_bb_without_guard_p): Same.
12176 (used_outside_loop_p): Same.
12177 (get_vop_from_header): Same.
12178 (hoist_guard): Same.
12179 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12180 (get_lsm_tmp_name): Same.
12181 * tree-ssa-loop.h: Same.
12182 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12183 (build_and_add_sum): Same.
12184 (no_side_effect_bb): Same.
12185 (get_ops): Same.
12186 (linearize_expr): Same.
12187 (should_break_up_subtract): Same.
12188 (linearize_expr_tree): Same.
12189 * tree-ssa-scopedtables.c: Same.
12190 * tree-ssa-scopedtables.h: Same.
12191 * tree-ssa-structalias.c (condense_visit): Same.
12192 (label_visit): Same.
12193 (dump_pred_graph): Same.
12194 (perform_var_substitution): Same.
12195 (move_complex_constraints): Same.
12196 (remove_preds_and_fake_succs): Same.
12197 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12198 (determine_bb_domination_status): Same.
12199 (duplicate_thread_path): Same.
12200 (thread_through_all_blocks): Same.
12201 * tree-ssa-threadupdate.h: Same.
12202 * tree-streamer-in.c (streamer_read_string_cst): Same.
12203 (input_identifier): Same.
12204 (unpack_ts_type_common_value_fields): Same.
12205 (unpack_ts_block_value_fields): Same.
12206 (unpack_ts_translation_unit_decl_value_fields): Same.
12207 (unpack_ts_omp_clause_value_fields): Same.
12208 (streamer_read_tree_bitfields): Same.
12209 (streamer_alloc_tree): Same.
12210 (lto_input_ts_common_tree_pointers): Same.
12211 (lto_input_ts_vector_tree_pointers): Same.
12212 (lto_input_ts_poly_tree_pointers): Same.
12213 (lto_input_ts_complex_tree_pointers): Same.
12214 (lto_input_ts_decl_minimal_tree_pointers): Same.
12215 (lto_input_ts_decl_common_tree_pointers): Same.
12216 (lto_input_ts_decl_non_common_tree_pointers): Same.
12217 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12218 (lto_input_ts_field_decl_tree_pointers): Same.
12219 (lto_input_ts_function_decl_tree_pointers): Same.
12220 (lto_input_ts_type_common_tree_pointers): Same.
12221 (lto_input_ts_type_non_common_tree_pointers): Same.
12222 (lto_input_ts_list_tree_pointers): Same.
12223 (lto_input_ts_vec_tree_pointers): Same.
12224 (lto_input_ts_exp_tree_pointers): Same.
12225 (lto_input_ts_block_tree_pointers): Same.
12226 (lto_input_ts_binfo_tree_pointers): Same.
12227 (lto_input_ts_constructor_tree_pointers): Same.
12228 (lto_input_ts_omp_clause_tree_pointers): Same.
12229 (streamer_read_tree_body): Same.
12230 * tree-streamer.h: Same.
12231 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12232 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12233 (vect_analyze_possibly_independent_ddr): Same.
12234 (vect_analyze_data_ref_dependence): Same.
12235 (vect_compute_data_ref_alignment): Same.
12236 (vect_enhance_data_refs_alignment): Same.
12237 (vect_analyze_data_ref_access): Same.
12238 (vect_check_gather_scatter): Same.
12239 (vect_find_stmt_data_reference): Same.
12240 (vect_create_addr_base_for_vector_ref): Same.
12241 (vect_setup_realignment): Same.
12242 (vect_supportable_dr_alignment): Same.
12243 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12244 (adjust_phi_and_debug_stmts): Same.
12245 (vect_set_loop_mask): Same.
12246 (add_preheader_seq): Same.
12247 (vect_maybe_permute_loop_masks): Same.
12248 (vect_set_loop_masks_directly): Same.
12249 (vect_set_loop_condition_masked): Same.
12250 (vect_set_loop_condition_unmasked): Same.
12251 (slpeel_duplicate_current_defs_from_edges): Same.
12252 (slpeel_add_loop_guard): Same.
12253 (slpeel_can_duplicate_loop_p): Same.
12254 (create_lcssa_for_virtual_phi): Same.
12255 (iv_phi_p): Same.
12256 (vect_update_ivs_after_vectorizer): Same.
12257 (vect_gen_vector_loop_niters_mult_vf): Same.
12258 (slpeel_update_phi_nodes_for_loops): Same.
12259 (slpeel_update_phi_nodes_for_guard1): Same.
12260 (find_guard_arg): Same.
12261 (slpeel_update_phi_nodes_for_guard2): Same.
12262 (slpeel_update_phi_nodes_for_lcssa): Same.
12263 (vect_do_peeling): Same.
12264 (vect_create_cond_for_alias_checks): Same.
12265 (vect_loop_versioning): Same.
12266 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12267 (vect_inner_phi_in_double_reduction_p): Same.
12268 (vect_analyze_scalar_cycles_1): Same.
12269 (vect_fixup_scalar_cycles_with_patterns): Same.
12270 (vect_get_loop_niters): Same.
12271 (bb_in_loop_p): Same.
12272 (vect_get_max_nscalars_per_iter): Same.
12273 (vect_verify_full_masking): Same.
12274 (vect_compute_single_scalar_iteration_cost): Same.
12275 (vect_analyze_loop_form_1): Same.
12276 (vect_analyze_loop_form): Same.
12277 (vect_active_double_reduction_p): Same.
12278 (vect_analyze_loop_operations): Same.
12279 (neutral_op_for_slp_reduction): Same.
12280 (vect_is_simple_reduction): Same.
12281 (vect_model_reduction_cost): Same.
12282 (get_initial_def_for_reduction): Same.
12283 (get_initial_defs_for_reduction): Same.
12284 (vect_create_epilog_for_reduction): Same.
12285 (vectorize_fold_left_reduction): Same.
12286 (vectorizable_reduction): Same.
12287 (vectorizable_induction): Same.
12288 (vectorizable_live_operation): Same.
12289 (loop_niters_no_overflow): Same.
12290 (vect_get_loop_mask): Same.
12291 (vect_transform_loop_stmt): Same.
12292 (vect_transform_loop): Same.
12293 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12294 (vect_determine_precisions): Same.
12295 (vect_pattern_recog_1): Same.
12296 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12297 * tree-vect-stmts.c (stmt_vectype): Same.
12298 (process_use): Same.
12299 (vect_init_vector_1): Same.
12300 (vect_truncate_gather_scatter_offset): Same.
12301 (get_group_load_store_type): Same.
12302 (vect_build_gather_load_calls): Same.
12303 (vect_get_strided_load_store_ops): Same.
12304 (vectorizable_simd_clone_call): Same.
12305 (vectorizable_store): Same.
12306 (permute_vec_elements): Same.
12307 (vectorizable_load): Same.
12308 (vect_transform_stmt): Same.
12309 (supportable_widening_operation): Same.
12310 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12311 (vec_info::free_stmt_vec_info): Same.
12312 (vect_free_loop_info_assumptions): Same.
12313 (vect_loop_vectorized_call): Same.
12314 (set_uid_loop_bbs): Same.
12315 (vectorize_loops): Same.
12316 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12317 * tree.c (add_tree_to_fld_list): Same.
12318 (fld_type_variant_equal_p): Same.
12319 (fld_decl_context): Same.
12320 (fld_incomplete_type_of): Same.
12321 (free_lang_data_in_binfo): Same.
12322 (need_assembler_name_p): Same.
12323 (find_decls_types_r): Same.
12324 (get_eh_types_for_runtime): Same.
12325 (find_decls_types_in_eh_region): Same.
12326 (find_decls_types_in_node): Same.
12327 (assign_assembler_name_if_needed): Same.
12328 * value-prof.c (stream_out_histogram_value): Same.
12329 * value-prof.h: Same.
12330 * var-tracking.c (use_narrower_mode): Same.
12331 (prepare_call_arguments): Same.
12332 (vt_expand_loc_callback): Same.
12333 (resolve_expansions_pending_recursion): Same.
12334 (vt_expand_loc): Same.
12335 * varasm.c (const_hash_1): Same.
12336 (compare_constant): Same.
12337 (tree_output_constant_def): Same.
12338 (simplify_subtraction): Same.
12339 (get_pool_constant): Same.
12340 (output_constant_pool_2): Same.
12341 (output_constant_pool_1): Same.
12342 (mark_constants_in_pattern): Same.
12343 (mark_constant_pool): Same.
12344 (get_section_anchor): Same.
12345 * vr-values.c (compare_range_with_value): Same.
12346 (vr_values::extract_range_from_phi_node): Same.
12347 * vr-values.h: Same.
12348 * web.c (unionfind_union): Same.
12349 * wide-int.h: Same.
12350
12351 2019-07-09 Martin Sebor <msebor@redhat.com>
12352
12353 PR c++/61339
12354 * align.h: Change class-key from class to struct and vice versa
12355 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12356 * alloc-pool.h: Same.
12357 * asan.c (shadow_mem_size): Same.
12358 * auto-profile.c: Same.
12359 * basic-block.h: Same.
12360 * bitmap.h: Same.
12361 * cfgexpand.c (set_rtl): Same.
12362 (expand_one_stack_var_at): Same.
12363 * cfghooks.h: Same.
12364 * cfgloop.h: Same.
12365 * cgraph.h: Same.
12366 * config/i386/i386.h: Same.
12367 * df-problems.c (df_print_bb_index): Same.
12368 * df-scan.c: Same.
12369 * df.h (df_single_use): Same.
12370 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12371 (layout::annotation_line_showed_range_p): Same.
12372 (get_printed_columns): Same.
12373 (correction::ensure_terminated): Same.
12374 (line_corrections::~line_corrections): Same.
12375 * dojump.h: Same.
12376 * dse.c: Same.
12377 * dump-context.h: Same.
12378 * dumpfile.h: Same.
12379 * dwarf2out.c: Same.
12380 * edit-context.c: Same.
12381 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12382 * flags.h: Same.
12383 * function.c (assign_stack_local): Same.
12384 * function.h: Same.
12385 * gcc.c: Same.
12386 * gcov.c (block_info::block_info): Same.
12387 * genattrtab.c: Same.
12388 * genextract.c: Same.
12389 * genmatch.c (comparison_code_p): Same.
12390 (id_base::id_base): Same.
12391 (decision_tree::print): Same.
12392 * genoutput.c: Same.
12393 * genpreds.c (write_one_predicate_function): Same.
12394 * genrecog.c (validate_pattern): Same.
12395 (find_operand_positions): Same.
12396 (optimize_subroutine_group): Same.
12397 (merge_pattern_transition::merge_pattern_transition): Same.
12398 (merge_pattern_info::merge_pattern_info): Same.
12399 (merge_state_result::merge_state_result): Same.
12400 (merge_into_state): Same.
12401 * gensupport.c: Same.
12402 * gensupport.h: Same.
12403 * ggc-common.c (init_ggc_heuristics): Same.
12404 * ggc-tests.c (test_union): Same.
12405 * gimple-loop-interchange.cc (dump_induction): Same.
12406 * gimple-loop-versioning.cc: Same.
12407 * gimple-match.h (gimple_match_cond::any_else): Same.
12408 * gimple-ssa-backprop.c: Same.
12409 * gimple-ssa-sprintf.c: Same.
12410 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12411 Same.
12412 (store_immediate_info::store_immediate_info): Same.
12413 (merged_store_group::apply_stores): Same.
12414 (get_location_for_stmts): Same.
12415 * gimple-ssa-strength-reduction.c: Same.
12416 * gimple-ssa-warn-alloca.c: Same.
12417 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12418 * godump.c (go_type_decl): Same.
12419 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12420 * hash-map.h: Same.
12421 * hash-set-tests.c (test_set_of_strings): Same.
12422 * hsa-brig.c: Same.
12423 * hsa-common.h: Same.
12424 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12425 * input.c (assert_loceq): Same.
12426 * input.h: Same.
12427 * ipa-cp.c: Same.
12428 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12429 * ipa-fnsummary.h: Same.
12430 * ipa-inline.h: Same.
12431 * ipa-prop.h: Same.
12432 * ipa-split.c (visit_bb): Same.
12433 * ira-int.h (minmax_set_iter_next): Same.
12434 * loop-invariant.c: Same.
12435 * loop-iv.c: Same.
12436 * lra-eliminations.c: Same.
12437 * lra-int.h: Same.
12438 * lra-lives.c (mark_regno_dead): Same.
12439 * lra-remat.c: Same.
12440 * lra-spills.c: Same.
12441 * lto-streamer.h: Same.
12442 * mem-stats.h: Same.
12443 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12444 * omp-low.c (omp_clause_aligned_alignment): Same.
12445 * optabs-query.h (get_vcond_eq_icode): Same.
12446 * optabs.h: Same.
12447 * opts.c (wrap_help): Same.
12448 * poly-int.h: Same.
12449 * predict.c (predict_paths_leading_to_edge): Same.
12450 * pretty-print.h: Same.
12451 * profile-count.h: Same.
12452 * read-md.h: Same.
12453 * read-rtl-function.c: Same.
12454 * ree.c: Same.
12455 * reginfo.c: Same.
12456 * regrename.c: Same.
12457 * regrename.h: Same.
12458 * reload.h: Same.
12459 * rtl-iter.h: Same.
12460 * rtl.h (costs_add_n_insns): Same.
12461 * sanopt.c: Same.
12462 * sched-int.h: Same.
12463 * sel-sched-ir.h: Same.
12464 * selftest.h: Same.
12465 * sese.h (vec_find): Same.
12466 * stmt.c: Same.
12467 * target-globals.h: Same.
12468 * tree-affine.c (aff_combination_find_elt): Same.
12469 * tree-affine.h: Same.
12470 * tree-data-ref.h: Same.
12471 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12472 * tree-predcom.c: Same.
12473 * tree-scalar-evolution.c (find_var_scev_info): Same.
12474 * tree-ssa-alias.h: Same.
12475 * tree-ssa-ccp.c: Same.
12476 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12477 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12478 (rewrite_mem_refs): Same.
12479 (execute_sm_if_changed): Same.
12480 (hoist_memory_references): Same.
12481 * tree-ssa-loop-ivopts.c (operator<=): Same.
12482 * tree-ssa-loop.h: Same.
12483 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12484 * tree-ssa-structalias.c: Same.
12485 * tree-switch-conversion.h (cluster::cluster): Same.
12486 (simple_cluster::simple_cluster): Same.
12487 * tree-vect-patterns.c (type_conversion_p): Same.
12488 * tree-vectorizer.c (dump_stmt_cost): Same.
12489 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12490 * tree.c (protected_set_expr_location): Same.
12491 * tree.h (desired_pro_or_demotion_p): Same.
12492 (fndecl_built_in_p): Same.
12493 * unique-ptr-tests.cc: Same.
12494 * var-tracking.c (delete_variable_part): Same.
12495 * varasm.c (assemble_real): Same.
12496 (tree_output_constant_def): Same.
12497 * vec.c: Same.
12498 * wide-int-bitmask.h: Same.
12499 * wide-int.h (decompose): Same.
12500
12501 2019-07-09 Richard Biener <rguenther@suse.de>
12502
12503 PR tree-optimization/91114
12504 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12505 find a vector type isn't fatal.
12506
12507 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12508
12509 * config/aarch64/aarch64-simd.md
12510 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12511 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12512 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12513 (*aarch64_crypto_aese_fused,
12514 *aarch64_crypto_aesd_fused): Update to new definition.
12515 * config/aarch64/aarch64.c
12516 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12517
12518 2019-07-09 Richard Biener <rguenther@suse.de>
12519
12520 * gimple-match.h (gimple_match_op::resimplify): New.
12521 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12522 gimple_resimplify4, gimple_resimplify5): Remove.
12523 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12524 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12525 Make static.
12526 (gimple_match_op::resimplify): New.
12527 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12528 according to availability. Use gimple_match_op::resimplify.
12529
12530 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12531
12532 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12533
12534 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12535
12536 * config/arm/crypto.md:
12537 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12538 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12539 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12540 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12541 * config/arm/arm.c
12542 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12543 * config/arm/aarch-common-protos.h
12544 (aarch_crypto_can_dual_issue): Remove.
12545 * config/arm/aarch-common.c
12546 (aarch_crypto_can_dual_issue): Likewise.
12547 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12548 * config/arm/cortex-a53.md: Likewise.
12549 * config/arm/cortex-a57.md: Likewise.
12550 * config/arm/iterators.md:
12551 (CRYPTO_BINARY): Redefine.
12552 (CRYPTO_UNARY): Removed.
12553 (CRYPTO_AES, CRYPTO_AESMC): New.
12554
12555 2019-07-09 Richard Biener <rguenther@suse.de>
12556
12557 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12558 (vn_reference_lookup_3): If the main ref has no access path recorded
12559 but orig_ref has use it to do access-path based disambiguation.
12560 (vn_reference_lookup_pieces): Adjust.
12561 (vn_reference_lookup): Pass down original ref if we valueized.
12562
12563 2019-07-09 Martin Liska <mliska@suse.cz>
12564
12565 * doc/extend.texi: Document influence on loop
12566 optimizers.
12567
12568 2019-07-09 Martin Liska <mliska@suse.cz>
12569
12570 * lto-compress.c (lto_normalized_zstd_level): Do not use
12571 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12572 of libzstd. One can use 0 as a default compression level.
12573
12574 2019-07-09 Martin Liska <mliska@suse.cz>
12575
12576 * doc/invoke.texi: Add link from -fprofile-dir option.
12577 Use better wording for 'gcno filename'.
12578
12579 2019-07-08 Martin Sebor <msebor@redhat.com>
12580
12581 PR middle-end/71924
12582 PR middle-end/90549
12583 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12584 comment.
12585 (args_loc_t): New type.
12586 (args_loc_t, locmap_t): same.
12587 (diag_returned_locals): New function.
12588 (is_addr_local): Same.
12589 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12590 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12591 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12592
12593 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12594
12595 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12596 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12597 and casts in offset when different, both through gimple stmts
12598 and through trees. Rewritten using loops to minimize code duplication
12599 for each operand.
12600
12601 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12602
12603 * emit-rtl.c (set_insn_locations): New function moved from...
12604 * function.c (set_insn_locations): ...here.
12605 * ira-emit.c (emit_moves): Propagate location of the first instruction
12606 to the inserted move instructions.
12607 * reg-stack.c (compensate_edge): Set the location if the sequence is
12608 inserted on the edge.
12609 * rtl.h (set_insn_locations): Declare.
12610
12611 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12612
12613 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12614 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12615 .machine string.
12616
12617 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12618
12619 PR rtl-optimization/88233
12620 * common.opt (fsplit-wide-types-early): New option.
12621 * common/config/rs6000/rs6000-common.c
12622 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12623 OPT_LEVELS_ALL.
12624 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12625 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12626 flag_split_wide_types_early.
12627 (pass_data_lower_subreg3): New.
12628 (pass_lower_subreg3): New.
12629 (make_pass_lower_subreg3): New.
12630 * passes.def (pass_lower_subreg2): Move after the loop passes.
12631 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12632 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12633 the pass pipeline; its previous place is taken by ...
12634 (make_pass_lower_subreg3): ... this.
12635
12636 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12637
12638 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12639 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12640
12641 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12642
12643 * config/s390/constraints.md: Add new jsc constraint.
12644 * config/s390/predicates.md: New predicates.
12645 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12646 * config/s390/s390.c (s390_valid_shift_count): New function.
12647 (print_shift_count_operand): Use s390_valid_shift_count.
12648 (print_operand): Likewise.
12649 * config/s390/s390.md: Use new predicate.
12650 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12651 * config/s390/vector.md: Use new predicate.
12652
12653 2019-07-08 Andrew Waterman <andrew@sifive.com>
12654 Jim Wilson <jimw@sifive.com>
12655
12656 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12657 bitsize instead of BITS_PER_WORD.
12658
12659 2019-07-08 Martin Liska <mliska@suse.cz>
12660
12661 * collect2.c (defined): Revert to before r254460.
12662 (scan_prog_file): Revert to before r254460.
12663
12664 2019-07-08 Richard Biener <rguenther@suse.de>
12665
12666 PR tree-optimization/83518
12667 * tree-ssa-sccvn.c: Include splay-tree.h.
12668 (struct pd_range, struct pd_data): New.
12669 (struct vn_walk_cb_data): Add data to track partial definitions.
12670 (vn_walk_cb_data::~vn_walk_cb_data): New.
12671 (vn_walk_cb_data::push_partial_def): New.
12672 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12673 (vn_reference_lookup_2): When partial defs are registered give up.
12674 (vn_reference_lookup_3): Track partial defs for memset and
12675 constructor zeroing and for defs from constants.
12676
12677 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12678
12679 * doc/install.texi (bootstrap-Og): Document.
12680
12681 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12682
12683 * config/riscv/pic.md (*local_pic_load_s<mode>)
12684 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12685 referenced by <mode>, giving...
12686 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12687 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12688 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12689 use <X:MODE> for the mode attribute.
12690
12691 2019-07-07 Jeff Law <law@redhat.com>
12692
12693 PR tree-optimization/91090
12694 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12695 in handling of ranges to simplify switch statements.
12696
12697 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12698
12699 * config/darwin.c (darwin_override_options): Make a final check on PIC
12700 options.
12701
12702 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12703
12704 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12705 on for kernel code.
12706
12707 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12708
12709 PR target/91068
12710 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12711 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12712 instead of matching them to "l" output operands.
12713
12714 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12715
12716 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12717 and check whether addr.reg is nonnull before using it.
12718
12719 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12720
12721 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12722 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12723 variable(s). For conditional lastprivate look through outer
12724 GIMPLE_OMP_SCAN context.
12725 (lower_omp_1): For conditional lastprivate look through outer
12726 GIMPLE_OMP_SCAN context.
12727
12728 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12729 member to combined_into_simd_safelen1.
12730 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12731 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12732 clauses if ctx->combined_into_simd_safelen1 put statements after the
12733 predicate conditionalized block rather than into it.
12734
12735 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12736
12737 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12738 operand 1.
12739 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12740 Make the choice of <mode> explicit, giving...
12741 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12742
12743 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12744
12745 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12746 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12747 of .md attributes.
12748 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12749 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12750 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12751 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12752 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12753 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12754 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12755 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12756 (*avx512f_scatterdi<mode>): Likewise.
12757 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12758
12759 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12760
12761 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12762 specify the mode iterator referenced by <mode>, giving...
12763 (*push1_h8300hs_<QHI:mode>): ...this.
12764
12765 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12766
12767 * config/gcn/gcn-valu.md
12768 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12769 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12770 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12771 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12772 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12773 but using the _exec comparison patterns.
12774 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12775 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12776 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12777 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12778 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12779 but using the _exec comparison patterns.
12780
12781 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12782
12783 * config/arm/sync.md
12784 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12785 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12786 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12787 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12788 <SIDI:cas_cmp_str>.
12789
12790 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12791
12792 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12793 (maybe_lookup_ctx): Add forward declaration.
12794 (omp_find_scan): Likewise. Walk into body of simd if composited
12795 with worksharing loop.
12796 (scan_omp_simd_scan): New function.
12797 (scan_omp_1_stmt): Call it.
12798 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12799 ctx->for_simd_scan_phase.
12800 (lower_rec_input_clauses): Do much less work for inscan reductions
12801 in ctx->for_simd_scan_phase is_simd regions.
12802 (lower_omp_scan): Set is_simd also on simd constructs composited
12803 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
12804 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
12805 emit their body after in simd constructs composited with worksharing
12806 loop.
12807 (lower_omp_for_scan): Handle worksharing loop composited with simd.
12808
12809 * omp-low.c (omp_find_scan): Make static.
12810 (lower_omp_for_scan): Fix order of merge arguments in input phase of
12811 the second loop, var2 represents the first partial sum and so needs
12812 to go before rprivb[ivar].
12813
12814 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
12815
12816 * config/rs6000/rs6000-logue.c: Remove unused code.
12817
12818 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12819
12820 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12821
12822 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
12823
12824 PR target/90712
12825 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12826 check with a frame laid out check.
12827
12828 2019-07-05 Richard Biener <rguenther@suse.de>
12829
12830 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12831 when comparing against a store with possibly the same value.
12832
12833 2019-07-05 Richard Biener <rguenther@suse.de>
12834
12835 PR tree-optimization/91091
12836 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12837 (walk_non_aliased_vuses): Likewise.
12838 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12839 (get_continuation_for_phi): New tbaa_p parameter and pass
12840 it down.
12841 (walk_non_aliased_vuses): Likewise.
12842 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12843 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12844 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12845 Likewise.
12846 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12847 (adjust_offsets_for_equal_base_address): New function.
12848 (vn_reference_lookup_3): Use it to catch more base equivalences.
12849 Handle and pass down tbaa_p flag.
12850 (vn_reference_lookup_pieces): Adjust.
12851 (vn_reference_lookup): Remove alias-set altering, instead pass
12852 down false as tbaa_p.
12853
12854 2019-07-05 Richard Biener <rguenther@suse.de>
12855
12856 PR tree-optimization/91091
12857 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12858 accesses can happen with -fno-strict-aliasing.
12859
12860 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
12861
12862 * tree-ssa-alias.c (alias_stats): Add
12863 nonoverlapping_component_refs_since_match_p_must_overlap.
12864 (dump_alias_stats): Print it.
12865 (nonoverlapping_component_refs_since_match_p): Add early exit.
12866 (nonoverlapping_component_refs_p): Do not account early exit.
12867
12868 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12869
12870 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
12871 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
12872 (emit_eh_dispatch): Delete.
12873 (lower_catch): Emit the eh_dispatch manually and set the location of
12874 the first catch statement onto it.
12875 (lower_eh_filter): Emit the eh_dispatch manually and set location.
12876 (lower_eh_dispatch): Propagate location.
12877 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
12878 (eliminate_build): Likewise.
12879
12880 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12881
12882 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
12883 phi nodes if possible.
12884 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
12885 location info on the newly created statement.
12886 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
12887 newly created increment if needed.
12888
12889 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12890
12891 PR middle-end/78884
12892 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
12893 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
12894 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
12895 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
12896 ctx->add_safelen1 is set.
12897
12898 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
12899 GOMP_loop_start at the start of second worksharing loop in a scan.
12900 For nowait, don't emit GOMP_loop_end_nowait at the end of first
12901 worksharing loop in a scan even if there are conditional lastprivates,
12902 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
12903
12904 2019-07-04 Jan Hubicka <jh@suse.cz>
12905
12906 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
12907 Fix check for match in the ref walk.
12908
12909 2019-07-04 Martin Liska <mliska@suse.cz>
12910
12911 * tree-ssa-loop-niter.c
12912 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
12913 (estimate_numbers_of_iterations):
12914 Support __builtin_expect_with_probability for analysis
12915 of # of loop iterations.
12916
12917 2019-07-04 Alexandre Oliva <oliva@adacore.com>
12918
12919 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
12920 * except.c: Likewise.
12921 * expr.c (expand_expr_real_1): Reject it.
12922 * gimplify.c (gimplify_expr): Gimplify it, within
12923 TRY_FINALLY_EXPR.
12924 * tree-dump.c (dequeue_and_dump): Dump it.
12925 * tree-pretty-print.c (dump_generic_node): Likewise.
12926 * tree.c (block_may_fallthru): Handle it.
12927 * tree.def (EH_ELSE_EXPR): Introduce it.
12928 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
12929 with GIMPLE_EH_ELSE as try/finally/else.
12930
12931 2019-07-04 Richard Biener <rguenther@suse.de>
12932
12933 PR ipa/91062
12934 * tree-pass.h (execute_all_ipa_transforms): Add a flag
12935 parameter whether to disable GC collection.
12936 * passes.c (execute_one_ipa_transform_pass): Likewise, and
12937 honor it.
12938 (execute_all_ipa_transforms): Likewise and pass it down.
12939 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
12940 collection from applying IPA transforms.
12941 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
12942 from applying IPA transforms.
12943
12944 2019-07-04 Richard Biener <rguenther@suse.de>
12945
12946 PR tree-optimization/90911
12947 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
12948 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
12949 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12950 scalar_loop_scaling.
12951 (vect_transform_loop): Scale scalar loop profile if needed.
12952 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
12953 the loop copy from if-conversion adjust edge probabilities
12954 and scale the vectorized loop body profile, queue the scalar
12955 profile for updating after peeling.
12956
12957 2019-07-04 Jan Hubicka <jh@suse.cz>
12958
12959 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
12960 parameters; return early for must-alias.
12961 (indirect_ref_may_alias_decl_p): Likewise; when establishing
12962 outer types match, try nonoverlapping_component_refs
12963 if must-alias is not obvious.
12964 (indirect_refs_may_alias_p): Likewise.
12965 (refs_may_alias_p_2): Likewise.
12966
12967 2019-07-04 Richard Biener <rguenther@suse.de>
12968
12969 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
12970 argument.
12971 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
12972 globals into...
12973 (struct vn_walk_cb_data): New callback data struct.
12974 (vn_reference_lookup_2): Adjust.
12975 (vn_reference_lookup_3): Likewise.
12976 (vn_reference_lookup_pieces): Likewise.
12977 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
12978 (visit_reference_op_load): Adjust.
12979
12980 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12981
12982 PR tree-optimization/91063
12983 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
12984 stmt from stmts sequence before calling vect_init_vector_1.
12985 Formatting fix.
12986
12987 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12988
12989 PR target/88833
12990 * fwprop.c (reg_single_def_p): New function.
12991 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
12992 (forward_propagate_into): New parameter reg_prop_only
12993 with default value false.
12994 Propagate def's src into loop only if SET_SRC and SET_DEST
12995 of def_set have single definitions.
12996 Likewise if reg_prop_only is set to true.
12997 (fwprop): New param fwprop_addr_p.
12998 Integrate fwprop_addr into fwprop.
12999 (fwprop_addr): Remove.
13000 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13001 to true.
13002 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13003 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13004 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13005
13006 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13007
13008 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13009 in worksharing loop scans.
13010
13011 PR tree-optimization/91074
13012 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13013 temporary.
13014
13015 PR rtl-optimization/90756
13016 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13017 for VECTOR_TYPE_P.
13018
13019 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13020
13021 * config/aarch64/aarch64.md: Remove redundant constraints from
13022 define_expand but keep some patterns untouched if they are
13023 specially selected by TARGET_SECONDARY_RELOAD hook.
13024 * config/aarch64/aarch64-sve.md: Likewise.
13025 * config/aarch64/atomics.md: Remove redundant constraints from
13026 define_expand.
13027 * config/aarch64/aarch64-simd.md: Likewise.
13028
13029 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13030
13031 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13032 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13033 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13034 clauses.
13035 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13036 DARWIN_NOPIE_SPEC.
13037
13038 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13039
13040 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13041 (STARTFILE_SPEC): Split crt3 into a separate spec.
13042 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13043 (DARWIN_CRT2_SPEC): New.
13044 (DARWIN_CRT3_SPEC): New.
13045 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13046 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13047 (DARWIN_CRT3_SPEC): New.
13048
13049 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13050
13051 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13052 Change the RTL attribute "length" from "4" to "*" to allow the
13053 length attribute to be adjusted automatically for prefixed load,
13054 store, and add immediate instructions.
13055 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13056 Likewise.
13057 (extendsi<mode>2, EXTSI iterator): Likewise.
13058 (movsi_internal1): Likewise.
13059 (movsi_from_sf): Likewise.
13060 (movdi_from_sf_zero_ext): Likewise.
13061 (mov<mode>_internal): Likewise.
13062 (movcc_internal1, QHI iterator): Likewise.
13063 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13064 (movsf_from_si): Likewise.
13065 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13066 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13067 (mov<mode>, FMOVE128 iterator): Likewise.
13068 (movdi_internal64): Likewise.
13069 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13070 Likewise.
13071 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13072 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13073 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13074 (vsx_splat_v4sf): Likewise.
13075
13076 2019-07-03 Mark Wielaard <mark@klomp.org>
13077
13078 PR debug/90981
13079 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13080 DW_AT_addr_base if there is actually a .debug_addr section with
13081 addresses.
13082 (output_addr_table): Add DWARF5 table header generation here after
13083 checking there are actually any addresses from...
13084 (dwarf2out_finish): ...here.
13085
13086 2019-07-03 Richard Biener <rguenther@suse.de>
13087
13088 PR middle-end/91069
13089 * match.pd (vec_perm -> bit_insert): Fix element read from
13090 first vector.
13091
13092 2019-07-03 Martin Liska <mliska@suse.cz>
13093
13094 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13095 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13096 condition.
13097 * generic-match-head.c: Include dbgcnt.h.
13098 * gimple-match-head.c: Likewise.
13099
13100 2019-07-03 Martin Liska <mliska@suse.cz>
13101
13102 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13103 (GCOV_COUNTER_V_TOPN): New.
13104 (GCOV_COUNTER_V_INDIR): Use _topn.
13105 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13106 (GCOV_TOPN_VALUES): New.
13107 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13108 (GCOV_TOPN_VALUES_COUNTERS): New.
13109 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13110 * tree-profile.c:
13111 (gimple_init_gcov_profiler): Rename variables from one_value
13112 to topn_values.
13113 (gimple_gen_one_value_profiler): Remove.
13114 (gimple_gen_topn_values_profiler): New function.
13115 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13116 names instead of SINGLE_VALUE.
13117 (stream_out_histogram_value): Likewise.
13118 (stream_in_histogram_value): Likewise.
13119 (get_most_common_single_value): Likewise.
13120 (gimple_divmod_fixed_value_transform): Likewise.
13121 (gimple_stringops_transform): Likewise.
13122 (gimple_divmod_values_to_profile): Likewise.
13123 (gimple_stringops_values_to_profile): Likewise.
13124 (gimple_find_values_to_profile): Likewise.
13125 * value-prof.h (enum hist_type): Rename to TOPN.
13126 (gimple_gen_one_value_profiler): Remove.
13127 (gimple_gen_topn_values_profiler): New.
13128
13129 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13130
13131 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13132 if it has the DW_AT_data_member_location attribute.
13133
13134 2019-07-03 Richard Biener <rguenther@suse.de>
13135
13136 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13137 dumping.
13138
13139 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13140
13141 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13142 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13143 (tlsdesc_small_sve_<mode>): Likewise.
13144
13145 2019-07-03 Martin Liska <mliska@suse.cz>
13146
13147 * Makefile.in: Define ZSTD_LIB.
13148 * common.opt: Adjust compression level
13149 to support also zstd levels.
13150 * config.in: Regenerate.
13151 * configure: Likewise.
13152 * configure.ac: Add --with-zstd and --with-zstd-include options
13153 and detect ZSTD.
13154 * doc/install.texi: Mention zstd dependency.
13155 * gcc.c: Print supported LTO compression algorithms.
13156 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13157 (lto_compression_zstd): Likewise.
13158 (lto_uncompression_zstd): Likewise.
13159 (lto_end_compression): Dispatch in between zlib and zstd.
13160 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13161 (lto_uncompression_zlib): Make it static.
13162 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13163 * lto-section-in.c (lto_get_section_data): Pass info
13164 about used compression.
13165 * lto-streamer-out.c: By default use zstd when possible.
13166 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13167 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13168
13169 2019-07-03 Martin Liska <mliska@suse.cz>
13170
13171 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13172 * lto-section-out.c (lto_destroy_simple_output_block): Never
13173 compress LTO_section_lto section.
13174 * lto-streamer-out.c (produce_asm): Do not set major_version
13175 and minor_version.
13176 (lto_output_toplevel_asms): Likewise.
13177 (produce_lto_section): New function.
13178 (lto_output): Call produce_lto_section.
13179 (lto_write_mode_table): Do not set major_version and
13180 minor_version.
13181 (produce_asm_for_decls): Likewise.
13182 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13183 type.
13184 (struct lto_header): Remove.
13185 (struct lto_section): New struct.
13186 (struct lto_simple_header): Do not inherit from lto_header.
13187 (struct lto_file_decl_data): Add lto_section_header field.
13188
13189 2019-07-03 Martin Liska <mliska@suse.cz>
13190
13191 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13192 dead assignemts.
13193 * reg-stack.c (check_asm_stack_operands): Likewise.
13194 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13195 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13196 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13197 force_expand_binop.
13198
13199 2019-07-03 Martin Liska <mliska@suse.cz>
13200
13201 PR tree-optimization/90892
13202 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13203 in string constants.
13204
13205 2019-07-03 Martin Liska <mliska@suse.cz>
13206
13207 PR middle-end/90899
13208 * multiple_target.c (create_dispatcher_calls): Add to comdat
13209 group only if set for ifunc.
13210
13211 2019-07-03 Martin Liska <mliska@suse.cz>
13212
13213 PR target/88056
13214 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13215 Define local_object_name in outer scope in order to handle
13216 use-after-scope issue.
13217
13218 2019-07-03 Martin Liska <mliska@suse.cz>
13219
13220 * common.opt: Add fprofile-note.
13221 * coverage.c (coverage_init): Append the option
13222 to bbg_file_name.
13223 * doc/invoke.texi: Document -fprofile-note.
13224
13225 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13226
13227 PR tree-optimization/91033
13228 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13229 vect_analyze_data_refs): Add bool * arguments.
13230 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13231 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13232 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13233 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13234 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13235 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13236 vect_analyze_data_refs caller.
13237
13238 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13239 clause.
13240 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13241 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13242 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13243 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13244 OMP_CLAUSE__SCANTEMP_ entry.
13245 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13246 * tree-pretty-print.c (dump_omp_clause): Likewise.
13247 * tree-nested.c (convert_nonlocal_omp_clauses,
13248 convert_local_omp_clauses): Likewise.
13249 * omp-general.h (struct omp_for_data): Add have_scantemp and
13250 have_nonctrl_scantemp members.
13251 * omp-general.c (omp_extract_for_data): Initialize them.
13252 * omp-low.c (struct omp_context): Add scan_exclusive member.
13253 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13254 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13255 ctx->scan_exclusive.
13256 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13257 of !ctx->scan_inclusive.
13258 (lower_rec_input_clauses): Simplify gimplification of dtors using
13259 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13260 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13261 loops. Don't add barrier for reduction_omp_orig_ref if
13262 ctx->scan_??xclusive.
13263 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13264 (lower_omp_scan): Use ctx->scan_exclusive instead
13265 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13266 reductions. Use new_vard != new_var instead of repeated
13267 omp_is_reference calls.
13268 (omp_find_scan, lower_omp_for_scan): New functions.
13269 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13270 inscan reductions.
13271 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13272 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13273 and fd->have_scantemp.
13274
13275 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13276 on worksharing loop propagate it as shared clause to containing
13277 combined parallel.
13278
13279 * omp-expand.c (expand_omp_for_static_nochunk,
13280 expand_omp_for_static_chunk): For nowait worksharing loop with
13281 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13282 at the end.
13283
13284 2019-07-02 qing zhao <qing.zhao@oracle.com>
13285
13286 PR preprocessor/90581
13287 * doc/cppopts.texi: Add document for -fmax-include-depth.
13288 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13289
13290 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13291
13292 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13293 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13294 (mmx_packssdw): Ditto.
13295 (mmx_punpckhbw): Ditto.
13296 (mmx_punpcklbw): Ditto.
13297 (mmx_punpckhwd): Ditto.
13298 (mmx_punpcklwd): Ditto.
13299 (mmx_punpckhdq): Ditto.
13300 (mmx_punpckldq): Ditto.
13301 (*vec_dupv4hi): Ditto.
13302 (*vec_dupv2si): Ditto.
13303 (mmx_pmovmskb): Ditto.
13304 * config/i386/sse.md (sse_cvtpi2ps): Use
13305 TARGET_SSE2 && SSE_REG_P in split condition.
13306 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13307 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13308 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13309 (ssse3_pshufbv8qi3): Ditto.
13310 (ssse3_palignrdi): Ditto.
13311
13312 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13313
13314 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13315 with inlined save and restore.
13316
13317 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13318
13319 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13320 to be inserted on single successor edge of the entry block. Then call
13321 commit_edge_insertions instead of inserting the instructions manually.
13322 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13323 RTL expansion and rebuild jump labels chain.
13324
13325 2019-07-02 Richard Biener <rguenther@suse.de>
13326
13327 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13328 TI_CHREC_KNOWN.
13329 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13330 Define here.
13331 * tree.c (build_common_tree_nodes): Initialize them.
13332 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13333 Make declarations comments.
13334 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13335 chrec_known): Remove definitions.
13336 (initialize_scalar_evolutions_analyzer): Remove.
13337 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13338 * tree-streamer.c (preload_common_nodes): Do not preload
13339 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13340
13341 2019-07-02 Jan Hubicka <jh@suse.cz>
13342
13343 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13344 sanity check.
13345
13346 2019-07-02 Jan Hubicka <jh@suse.cz>
13347
13348 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13349 to ..
13350 (nonoverlapping_component_refs_since_match_p): ... this one;
13351 handle also non-decl bases; return -1 if search gave up.
13352 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13353 nonoverlapping_component_refs_of_decl_p_no_alias to
13354 nonoverlapping_component_refs_since_match_p_may_alias,
13355 nonoverlapping_component_refs_since_match_p_no_alias.
13356 (dump_alias_stats): Update dumping.
13357 (aliasing_matching_component_refs_p): Break out from ...;
13358 dispatch to nonoverlapping_component_refs_for_decl_p
13359 and nonoverlapping_component_refs_since_match_p.
13360 (aliasing_component_refs_p): ... here; call
13361 nonoverlapping_component_refs_p in scenarios where we can not
13362 precisely determine base match.
13363 (decl_refs_may_alias_p): Use
13364 nonoverlapping_component_refs_since_match_p.
13365 (indirect_ref_may_alias_decl_p): Do not call
13366 nonoverlapping_component_refs_p.
13367 (indirect_refs_may_alias_p): Likewise.
13368
13369 2019-07-02 Jan Hubicka <jh@suse.cz>
13370
13371 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13372 to clobber of return value.
13373
13374 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13375
13376 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13377 for is_neon_type instructions that have not already been categorized.
13378
13379 2019-07-02 Richard Biener <rguenther@suse.de>
13380
13381 PR tree-optimization/58483
13382 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13383 for MEM_REF base hashing.
13384 (equal_mem_array_ref_p): Likewise for base comparison.
13385
13386 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13387
13388 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13389 parameterized name.
13390 (signbit<mode>2): Use that name. Simplify.
13391
13392 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13393
13394 PR middle-end/66726
13395 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13396 Tune heuristic from PR71016 to allow MIN / MAX.
13397
13398 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13399
13400 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13401 parameterized name.
13402 (abs<mode>2): Use that name. Simplify.
13403
13404 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13405
13406 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13407 parameterized name.
13408 (neg<mode>2): Use that name. Simplify.
13409
13410 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13411
13412 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13413 name.
13414 (abs<mode>2): Use that name. Simplify.
13415
13416 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13417
13418 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13419 name.
13420 (neg<mode>2): Use that name. Simplify.
13421
13422 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13423
13424 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13425 ("enabled" attribute): Handle sse_noavx isa attribute.
13426 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13427 Use TARGET_SSE && SSE_REGNO_P in split condition.
13428 (*vec_dupv2sf): Ditto.
13429
13430 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13431
13432 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13433 name.
13434 (floatsi<mode>2): Use that name. Simplify.
13435
13436 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13437
13438 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13439 parameterized name.
13440 (extenddf<mode>2_vsx): Make this a parameterized name.
13441 (extenddf<mode>2): Use those names. Simplify.
13442
13443 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13444
13445 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13446 name.
13447 (eh_return): Use that name. Simplify.
13448
13449 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13450
13451 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13452 (doloop_end): Use that name. Simplify.
13453
13454 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13455
13456 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13457 parameterized name.
13458 (indirect_jump): Use that name. Simplify.
13459
13460 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13461
13462 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13463 parameterized name.
13464 (abs<mode>2): Use that name. Simplify.
13465
13466 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13467
13468 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13469 parameterized name.
13470 (fix_trunc<mode>si2): Use that name. Simplify.
13471
13472 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13473
13474 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13475 (allocate_stack): Use that name. Simplify.
13476
13477 2019-07-01 Martin Sebor <msebor@redhat.com>
13478
13479 PR middle-end/90923
13480 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13481 (hash_map::get_or_insert): Same. Reformat comment.
13482 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13483 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13484 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13485 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13486 (hash_table::hash_table (const hash_table&)): Use copy ctor
13487 instead of assignment to copy elements.
13488
13489 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13490 John David Anglin <danglin@gcc.gnu.org>
13491
13492 PR target/90963
13493 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13494 using saved frame pointer.
13495
13496 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13497
13498 PR middle-end/64242
13499 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13500 Add frame clobber and schedule blockage.
13501
13502 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13503
13504 * doc/invoke.texi (Link Options): Further editorial changes to
13505 -flinker-output docs.
13506
13507 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13508
13509 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13510 Load both operands of a PLUS into registers separately.
13511
13512 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13513
13514 * config/s390/vector.md: Fix shift count operand printing.
13515
13516 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13517
13518 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13519
13520 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13521
13522 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13523 Use recog_data to test for an output operand.
13524
13525 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13526
13527 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13528 exclude any others that are disparaged or that are bound to need
13529 a reload or spill.
13530 (ira_get_dup_out_num): Expand comment.
13531
13532 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13533
13534 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13535 constraint string for each operand/alternative combo. Only handle
13536 '%' at the start of constraint strings, and look for it outside
13537 the main loop.
13538
13539 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13540
13541 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13542 alternative_mask instead of HARD_REG_SET to represent a
13543 bitmask of alternatives.
13544 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13545 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13546
13547 2019-07-01 Martin Liska <mliska@suse.cz>
13548
13549 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13550 use () for a constructor call.
13551 (test_applying_fixits_line_out_of_range): Likewise.
13552 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13553 argument.
13554 (free_page): Likewise.
13555
13556 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13557
13558 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13559 parameter names to match usage (no functional change).
13560 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13561
13562 2019-07-01 Richard Biener <rguenther@suse.de>
13563
13564 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13565 pass parameter.
13566 (pass_fre::execute): Honor it.
13567 * passes.def: Adjust pass_fre invocations to allow iterating,
13568 add non-iterating pass_fre before late threading/dom.
13569
13570 2019-07-01 Richard Biener <rguenther@suse.de>
13571
13572 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13573 TARGET_MEM_REF handling to also handle address-taken ones.
13574
13575 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13576
13577 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13578 hardware attributes): Document avx512vp2intersect.
13579
13580 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13581
13582 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13583 (abs<mode>2): New expander.
13584 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13585 Use CODE_FOR_ssse3_absv8qi2.
13586 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13587 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13588
13589 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13590
13591 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13592 to sse, sse_noavx and avx. Update all uses.
13593
13594 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13595
13596 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13597 (*mmx_<plusminus_insn><mode>3): Ditto.
13598 (*mmx_mulv4hi3"): Ditto.
13599 (*mmx_smulv4hi3_highpart): Ditto.
13600 (*mmx_umulv4hi3_highpart): Ditto.
13601 (*mmx_pmaddwd): Ditto.
13602 (*sse2_umulv1siv1di3): Ditto.
13603 (*mmx_<code>v4hi3): Ditto.
13604 (*mmx_<code>v8qi3): Ditto.
13605 (mmx_ashr<mode>3): Ditto.
13606 ("mmx_<shift_insn><mode>3): Ditto.
13607 (*mmx_eq<mode>3): Ditto.
13608 (mmx_gt<mode>3): Ditto.
13609 (mmx_andnot<mode>3): Ditto.
13610 (*mmx_<code><mode>3): Ditto.
13611 (*mmx_pinsrw): Ditto.
13612 (*mmx_pextrw): Ditto.
13613 (mmx_pshufw_1): Ditto.
13614 (*mmx_uavgv8qi3): Ditto.
13615 (*mmx_uavgv4hi3): Ditto.
13616 ("mmx_psadbw): Ditto.
13617 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13618 (sse_cvttps2pi): Ditto.
13619 (ssse3_pmaddubsw): Ditto.
13620 (*ssse3_pmulhrswv4hi3): Ditto.
13621 (ssse3_psign<mode>3): Ditto.
13622
13623 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13624
13625 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13626 adjustment for bit-fields to all aggregate types.
13627
13628 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13629
13630 * config/rs6000/predicates.md (pcrel_address): Use
13631 SYMBOL_REF_LOCAL_P to determine if a label is local.
13632 (pcrel_external_address): New predicate.
13633 (non_prefixed_mem_operand): Delete, predicate not used.
13634 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13635 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13636 addressing.
13637 (SYMBOL_REF_PCREL_P): Likewise.
13638
13639 PR target/91009
13640 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13641 alternative.
13642 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13643 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13644 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13645
13646 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13647
13648 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13649 override on extra_headers.
13650
13651 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13652
13653 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13654 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13655 from warning.
13656 (darwin_driver_init): Likewise.
13657
13658 2019-06-28 Jan Beulich <jbeulich@suse.com>
13659
13660 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13661 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13662 Eliminate redundant alternative.
13663
13664 2019-06-28 Jan Beulich <jbeulich@suse.com>
13665
13666 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13667 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13668 Use vector_operand.
13669
13670 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13671
13672 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13673 having a lower cost regardless of the speed option.
13674
13675 2019-06-28 Jan Beulich <jbeulich@suse.com>
13676
13677 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13678 vector_operand plus, on both alternatives, "Bm" constraint.
13679
13680 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13681
13682 * config/arm/arm.md: Remove redundant constraints from
13683 define_expand but leave reload_inm and reload_outm patterns
13684 untouched since they need special constraints to work.
13685 * config/arm/arm-fixed.md: Remove redundant constraints from
13686 define_expand.
13687 * config/arm/iwmmxt.md: Likewise.
13688 * config/arm/neon.md: Likewise.
13689 * config/arm/sync.md: Likewise.
13690 * config/arm/thumb1.md: Likewise.
13691 * config/arm/vec-common.md: Likewise.
13692
13693 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13694
13695 * doc/install.texi: Document --disable-tm-clone-registry.
13696
13697 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13698
13699 PR c++/91024
13700 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13701 statements.
13702
13703 PR tree-optimization/91010
13704 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13705 return true. Otherwise, don't call operand_equal_p if offset1 or
13706 offset2 is NULL and just return false.
13707
13708 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13709
13710 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13711 user-specified float mode choice for kernel mode code.
13712
13713 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13714
13715 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13716 spec.
13717
13718 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13719
13720 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13721 use longcall for 64b code.
13722
13723 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13724
13725 * builtins.c (get_memory_rtx): Fix comment.
13726 * optabs.def (movmem_optab): Change to cpymem_optab.
13727 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13728 (emit_block_move_hints): Change movmem to cpymem.
13729 * defaults.h: Change movmem to cpymem.
13730 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13731 (default_use_by_pieces_infrastructure_p): Ditto.
13732 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13733 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13734 to cpymem.
13735 * config/aarch64/aarch64.h: Change movmem to cpymem.
13736 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13737 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13738 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13739 movmem to cpymem.
13740 * config/arc/arc-protos.h: Change movmem to cpymem.
13741 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13742 * config/arc/arc.h: Change movmem to cpymem in comment.
13743 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13744 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13745 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13746 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13747 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13748 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13749 * config/avr/avr-protos.h: Change movmem to cpymem.
13750 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13751 avr_out_movmem): Change movmem to cpymem.
13752 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13753 Change movmem to cpymem.
13754 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13755 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13756 Change movmem to cpymem.
13757 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13758 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13759 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13760 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13761 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13762 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13763 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13764 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13765 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13766 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13767 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13768 expand_small_cpymem_or_setmem,
13769 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13770 expand_set_or_cpymem_constant_prologue,
13771 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13772 * config/i386/i386-protos.h: Change movmem to cpymem.
13773 * config/i386/i386.h: Change movmem to cpymem in comment.
13774 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13775 (setmem<mode>): Change expansion function name.
13776 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13777 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13778 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13779 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13780 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13781 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13782 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13783 to cpymem.
13784 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13785 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13786 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13787 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13788 Change movmem to cpymem.
13789 * config/mips/mips.h: Change movmem to cpymem.
13790 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13791 * config/nds32/nds32-memory-manipulation.c
13792 (nds32_expand_movmemsi_loop_unknown_size,
13793 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13794 nds32_expand_movmemsi_unroll,
13795 nds32_expand_movmemsi): Change movmem to cpymem.
13796 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13797 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13798 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13799 (pa_adjust_insn_length): Change call to compute_movmem_length.
13800 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13801 movmemdi, movmemdi_prereload,
13802 movmemdi_postreload): Change movmem to cpymem.
13803 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13804 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13805 * config/riscv/riscv.c: Change movmem to cpymem in comment.
13806 * config/riscv/riscv.h: Change movmem to cpymem.
13807 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13808 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13809 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13810 movmem to cpymem.
13811 * config/s390/s390-protos.h: Change movmem to cpymem.
13812 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13813 s390_expand_insv): Change movmem to cpymem.
13814 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13815 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13816 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13817 * config/sparc/sparc.h: Change movmem to cpymem in comment.
13818 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13819 for nonexistent function.
13820 * config/vax/vax.h: Change movmem to cpymem in comment.
13821 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13822 * config/visium/visium.h: Change movmem to cpymem in comment.
13823 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13824 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13825 * doc/md.texi: Change movmem to cpymem and update description to match.
13826 * doc/rtl.texi: Change movmem to cpymem.
13827 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13828 * doc/tm.texi: Regenerate.
13829
13830 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
13831
13832 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13833 -fvariable-expansion-in-unroller by default.
13834 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13835 default for Power.
13836
13837 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
13838
13839 Revert
13840 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13841 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13842
13843 * config.gcc(rs6000-*-*): Define target_gtfiles.
13844
13845 2019-06-27 Jan Hubicka <jh@suse.cz>
13846
13847 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13848 (add_type_duplicate): When odr hash is not allocated, to nothing.
13849 (odr_based_tbaa_p): New function.
13850 (set_type_canonical_for_odr_type): New function.
13851 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13852 set_type_canonical_for_odr_type): New.
13853 * tree.c (gimple_canonical_types_compatible_p): ODR types with
13854 ODR based TBAA are not equivalent to non-ODR types.
13855
13856 2019-06-27 Martin Liska <mliska@suse.cz>
13857
13858 PR tree-optimization/90974
13859 PR rtl-optimization/90975
13860 PR rtl-optimization/90976
13861 PR target/91016
13862 PR tree-optimization/91017
13863 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13864 unused tmp.
13865 * lra.c (lra_set_insn_recog_data): Remove a leftover from
13866 initial commit of IRA.
13867 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13868 of op0 and op1.
13869 * tree-vect-loop.c (vect_create_epilog_for_reduction):
13870 Remove unused mode1.
13871 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
13872 to new_stmt_info.
13873
13874 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13875
13876 PR target/90991
13877 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
13878 instead of register_operand for operands[1], add m to its constraints
13879 if operands[2] uses "C" constraint. Ensure in condition that if
13880 operands[2] is not 0, then operands[1] is not a MEM. For last two
13881 alternatives, use unaligned loads instead of aligned if operands[1] is
13882 misaligned_operand.
13883
13884 2019-06-27 Martin Liska <mliska@suse.cz>
13885
13886 * asan.c (asan_emit_allocas_unpoison): Remove obviously
13887 dead assignments.
13888 * bt-load.c (move_btr_def): Likewise.
13889 * builtins.c (expand_builtin_apply_args_1): Likewise.
13890 (expand_builtin_apply): Likewise.
13891 * cfgexpand.c (expand_asm_stmt): Likewise.
13892 (construct_init_block): Likewise.
13893 * cfghooks.c (verify_flow_info): Likewise.
13894 * cfgloopmanip.c (remove_path): Likewise.
13895 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
13896 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
13897 * combine.c (simplify_if_then_else): Likewise.
13898 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13899 (choose_basereg): Likewise.
13900 (ix86_expand_prologue): Likewise.
13901 (ix86_preferred_output_reload_class): Likewise.
13902 * cselib.c (cselib_record_sets): Likewise.
13903 * df-scan.c (df_scan_alloc): Likewise.
13904 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
13905 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
13906 * emit-rtl.c (try_split): Likewise.
13907 * graphite-scop-detection.c (assign_parameter_index_in_region):
13908 Likewise.
13909 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
13910 * ira-color.c (setup_profitable_hard_regs): Likewise.
13911 * ira.c (rtx_moveable_p): Likewise.
13912 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
13913 * read-rtl.c (read_subst_mapping): Likewise.
13914 * regrename.c (scan_rtx): Likewise.
13915 * reorg.c (fill_slots_from_thread): Likewise.
13916 * tree-inline.c (tree_function_versioning): Likewise.
13917 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13918 * tree-ssa-sink.c (statement_sink_location): Likewise.
13919 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
13920 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
13921 (vect_create_epilog_for_reduction): Likewise.
13922 * tree.c (build_nonstandard_integer_type): Likewise.
13923
13924 2019-06-27 Richard Biener <rguenther@suse.de>
13925
13926 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
13927
13928 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
13929
13930 PR tree-optimization/89772
13931 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
13932 out-of-bound accesses checking.
13933
13934 2019-06-27 Martin Liska <mliska@suse.cz>
13935
13936 PR tree-optimization/91014
13937 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
13938 when LHS is NULL_TREE.
13939
13940 2019-06-27 Martin Liska <mliska@suse.cz>
13941
13942 * symbol-summary.h (traverse): Pass
13943 argument a to the call of callback.
13944 (gt_ggc_mx): Mark arguments as unused.
13945 (gt_pch_nx): Likewise.
13946
13947 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
13948
13949 PR target/62147
13950 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
13951 finiteness.
13952
13953 2019-06-26 Jeff Law <law@redhat.com>
13954
13955 PR tree-optimization/90883
13956 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
13957 (delete_dead_or_redundant_assignment): Likewise.
13958
13959 PR tree-optimization/90883
13960 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
13961 * tree-ssa-dse.c: Update various comments to distinguish between
13962 dead and redundant stores.
13963 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
13964 (dse_optimize_redundant_stores): New function.
13965 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
13966 Distinguish between dead and redundant calls in dump output. All
13967 callers updated.
13968 (delete_dead_or_redundant_assignment): Similarly for assignments.
13969 (dse_optimize_stmt): Handle _CHK variants. For statements which
13970 store 0 into multiple memory locations, try to prove a subsequent
13971 store is redundant.
13972
13973 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
13974
13975 PR target/89021
13976 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
13977 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
13978
13979 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13980
13981 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
13982 (branch_islands): New extern.
13983 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
13984 * config/rs6000/rs6000.c: .. here.
13985
13986 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
13987
13988 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
13989 (powerpc*-*-*) ... to here.
13990
13991 2019-06-26 Jeff Law <law@redhat.com>
13992
13993 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
13994 memcpy, memmove and memset builtins.
13995 (maybe_trim_memstar_call): Likewise.
13996
13997 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13998
13999 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14000
14001 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14002
14003 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14004
14005 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14006
14007 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14008 declaration.
14009 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14010 "static".
14011 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14012 declaration.
14013
14014 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14015
14016 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14017
14018 2019-06-26 Richard Biener <rguenther@suse.de>
14019
14020 PR ipa/90982
14021 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14022
14023 2019-06-26 Richard Biener <rguenther@suse.de>
14024
14025 * lto-streamer.h (lto_bitmap_alloc): Remove.
14026 (lto_bitmap_free): Likewise.
14027 * lto-streamer.c (lto_bitmap_alloc): Remove.
14028 (lto_bitmap_free): Likewise.
14029 (lto_obstack): Likewise.
14030 (lto_obstack_initialized): Likewise.
14031 * lto-streamer-out.c (lto_output): Use own obstack for local
14032 bitmap, free it consistently.
14033
14034 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14035
14036 PR target/90991
14037 * config/i386/sse.md
14038 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14039 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14040 insns if operands[2] is misaligned_operand.
14041
14042 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14043
14044 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14045 TARGET_POWERPC64.
14046 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14047 to GPR.
14048
14049 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14050
14051 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14052
14053 2019-06-26 Martin Liska <mliska@suse.cz>
14054
14055 PR tree-optimization/90973
14056 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14057 epilogue_cost_vec instead of prologue_cost_vec for
14058 a epilogue cost.
14059
14060 2019-06-26 Martin Liska <mliska@suse.cz>
14061
14062 * bb-reorder.c (connect_better_edge_p): Add missing else
14063 statement in the middle of if-else statements.
14064
14065 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14066 H.J. Lu <hongjiu.lu@intel.com>
14067 Olga Makhotina <olga.makhotina@intel.com>
14068
14069 * common/config/i386/i386-common.c
14070 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14071 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14072 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14073 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14074 (ix86_handle_option): Handle -mavx512vp2intersect.
14075 * config/i386/avx512vp2intersectintrin.h: New.
14076 * config/i386/avx512vp2intersectvlintrin.h: New.
14077 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14078 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14079 AVX512VP2INTERSECT.
14080 * config/i386/i386-builtin-types.def: Add new types.
14081 * config/i386/i386-builtin.def: Add new builtins.
14082 * config/i386/i386-builtins.c: (enum processor_features): Add
14083 F_AVX512VP2INTERSECT.
14084 (static const _isa_names_table isa_names_table): Ditto.
14085 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14086 __AVX512VP2INTERSECT__.
14087 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14088 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14089 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14090 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14091 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14092 * config/i386/i386-options.c (ix86_target_string): Add
14093 -mavx512vp2intersect.
14094 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14095 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14096 P2HImode and P2QImode.
14097 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14098 number for P2QImode and P2HImode.
14099 (ix86_regmode_natural_size): New function.
14100 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14101 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14102 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14103 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14104 * config/i386/i386.opt: Add -mavx512vp2intersect.
14105 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14106 avx512vp2intersectvlintrin.h.
14107 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14108 (define_mode_iterator VI48_AVX512VP2VL): New.
14109 (avx512vp2intersect_2intersect<mode>,
14110 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14111 * config.gcc: Add avx512vp2intersectvlintrin.h and
14112 avx512vp2intersectintrin.h to extra_headers.
14113 * doc/invoke.texi: Document -mavx512vp2intersect.
14114
14115 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14116
14117 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14118
14119 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14120
14121 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14122 savres_routine_syms, savres_routine_name, morestack_ref,
14123 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14124 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14125 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14126 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14127 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14128 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14129 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14130 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14131 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14132 get_stack_clash_protection_probe_interval,
14133 get_stack_clash_protection_guard_size,
14134 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14135 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14136 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14137 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14138 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14139 gen_frame_mem_offset, rs6000_savres_routine_name,
14140 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14141 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14142 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14143 rs6000_global_entry_point_prologue_needed_p,
14144 rs6000_get_separate_components, rs6000_components_for_bb,
14145 rs6000_disqualify_components, rs6000_emit_prologue_components,
14146 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14147 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14148 rs6000_output_savres_externs, rs6000_output_function_prologue,
14149 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14150 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14151 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14152 rs6000_output_function_epilogue, gen_add3_const,
14153 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14154 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14155 to rs6000-logue.c.
14156 (machine_function): Moved to rs6000.h.
14157 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14158 rs6000-internal.h.
14159 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14160 savres_routine_syms, savres_routine_name, morestack_ref,
14161 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14162 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14163 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14164 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14165 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14166 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14167 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14168 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14169 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14170 get_stack_clash_protection_probe_interval,
14171 get_stack_clash_protection_guard_size,
14172 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14173 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14174 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14175 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14176 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14177 gen_frame_mem_offset, rs6000_savres_routine_name,
14178 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14179 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14180 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14181 rs6000_global_entry_point_prologue_needed_p,
14182 rs6000_get_separate_components, rs6000_components_for_bb,
14183 rs6000_disqualify_components, rs6000_emit_prologue_components,
14184 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14185 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14186 rs6000_output_savres_externs, rs6000_output_function_prologue,
14187 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14188 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14189 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14190 rs6000_output_function_epilogue, gen_add3_const,
14191 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14192 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14193 to here from rs6000.c.
14194 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14195 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14196 quad_address_offset_p) Moved to here from rs6000.c.
14197 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14198 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14199 collector.
14200
14201 2019-06-25 Martin Liska <mliska@suse.cz>
14202
14203 * hash-table.c (hashtab_chk_error): Move here from ...
14204 * hash-table.h (hashtab_chk_error): ... here.
14205
14206 2019-06-25 Martin Liska <mliska@suse.cz>
14207
14208 PR tree-optimization/90978
14209 * df-scan.c (df_update_entry_block_defs): Remove dead else
14210 branch.
14211 (df_update_exit_block_uses): Likewise.
14212
14213 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14214 Andrew Stubbs <ams@codesourcery.com>
14215
14216 * config.gcc (thread_file): Set to gcn for AMD GCN.
14217 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14218 (TARGET_EMUTLS_VAR_INIT): New hook.
14219
14220 2019-06-25 Martin Jambor <mjambor@suse.cz>
14221
14222 PR ipa/90939
14223 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14224
14225 2019-06-25 Richard Biener <rguenther@suse.de>
14226
14227 PR tree-optimization/90930
14228 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14229 into parallel form in the last pass instance.
14230
14231 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14232
14233 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14234 (arc_legitimize_pic_address): Simplify and cleanup the function.
14235 (SYMBOLIC_CONST): Remove.
14236 (prepare_pic_move): Likewise.
14237 (prepare_move_operands): Handle complex mov cases here.
14238 (arc_legitimize_address_0): Remove call to
14239 arc_legitimize_pic_address.
14240 (arc_legitimize_address): Remove call to
14241 arc_legitimize_tls_address.
14242 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14243 (movhi_insn): Likewise.
14244
14245 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14246
14247 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14248 PTRDIFF_TYPE.
14249 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14250 format of "__intN" types for UINTMAX_TYPE.
14251 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14252 format of "__intN" types for SIZETYPE.
14253 * tree.c (build_common_tree_nodes): Accept "__intN__"
14254 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14255 * doc/invoke.texi: Document that __intN__ disables pedantic
14256 warnings.
14257
14258 2019-06-25 Jan Hubicka <jh@suse.cz>
14259
14260 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14261 base2_alias_set is non-zero before doing TBAA based disambiguation.
14262
14263 2019-06-25 Martin Liska <mliska@suse.cz>
14264
14265 PR tree-optimization/90973
14266 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14267 of prologue and epilogue.
14268
14269 2019-06-24 Jan Hubicka <jh@suse.cz>
14270
14271 * ipa-utils.h (type_with_linkage_p): Verify that type is
14272 CXX_ODR_P.
14273 (odr_type_p): Remove extra return.
14274 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14275 hash STRING_FLAG only for arrays and integers.
14276 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14277 Update analogously.
14278 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14279 Likewise.
14280 * print-tree.c (print_node): Print cxx-odr-p
14281 and string-flag.
14282 * tree.c (need_assembler_name_p): Also check that type
14283 is CXX_ODR_TYPE_P
14284 (verify_type_variant): Update verification of SRING_FLAG;
14285 also check CXX_ODR_P.
14286 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14287 (TYPE_STRING_FLAG): Use it.
14288 (TYPE_CXX_ODR_P): New macro.
14289 * dwarf2out.c (gen_array_type_die): First check that type
14290 is an array and then test string flag.
14291
14292 2019-06-24 Richard Biener <rguenther@suse.de>
14293
14294 PR tree-optimization/90972
14295 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14296 in common code, dealing with STRING_CST properly.
14297
14298 2019-06-24 Richard Biener <rguenther@suse.de>
14299
14300 PR tree-optimization/90930
14301 PR tree-optimization/90316
14302 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14303 decrement of limit.
14304
14305 2019-06-24 Martin Sebor <msebor@redhat.com>
14306
14307 * tree-pretty-print.h: Remove unnecessary punctuation characters
14308 from a diagnostic.
14309 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14310
14311 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14312
14313 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14314 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14315 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14316
14317 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14318
14319 * config/rs6000/darwin.h: Handle GCC target pragma.
14320
14321 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14322
14323 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14324
14325 2019-06-22 Jeff Law <law@redhat.com>
14326
14327 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14328
14329 2019-06-22 Jan Hubicka <jh@suse.cz>
14330
14331 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14332 give up on bitfields; continue searching for different refs
14333 appearing later.
14334
14335 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14336
14337 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14338 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14339 containing the offset as possible simd lane access. Look through
14340 widening conversion. Move the
14341 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14342
14343 2019-06-21 Richard Biener <rguenther@suse.de>
14344
14345 PR tree-optimization/90930
14346 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14347 flag on new stmts to avoid re-processing them.
14348
14349 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14350
14351 PR c++/90875 - added -Wswitch-outside-range option
14352 * doc/invoke.texi (Wswitch-outside-range): Document.
14353
14354 2019-06-21 Jeff Law <law@redhat.com>
14355
14356 PR tree-optimization/90949
14357 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14358 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14359
14360 2019-06-21 Richard Biener <rguenther@suse.de>
14361
14362 PR debug/90914
14363 * dwarf2out.c (prune_unused_types_walk): Always consider
14364 function-local extern declarations as used.
14365
14366 2019-06-21 Richard Biener <rguenther@suse.de>
14367
14368 PR tree-optimization/90913
14369 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14370 the scalar variant of if-conversion versioning.
14371
14372 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14373
14374 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14375 create another "omp scan inscan exclusive" array if
14376 !ctx->scan_inclusive.
14377 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14378 (lower_omp_scan): Likewise.
14379 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14380 2-bit bitfield for simd_lane_access_p member.
14381 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14382 aux == (void *)-4 as simd lane access.
14383 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14384 comment with permutations to show the canonical permutation order.
14385 (vectorizable_scan_store): Handle exclusive scan.
14386 (vectorizable_store): Call vectorizable_scan_store even for
14387 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14388
14389 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14390 "omp simd array" arrays with one byte elements.
14391
14392 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14393
14394 * config/alpha/alpha.md (@unaligned_store<mode>):
14395 Rename from unaligned_store<mode>.
14396 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14397 * config/alpha/sync.md (@load_locked_<mode>): Rename
14398 from load_locked_<mode>.
14399 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14400 (@atomic_compare_and_swap<mode>_1): Rename
14401 from atomic_compare_and_swap<mode>_1.
14402 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14403 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14404 Use gen_reload_in_aligned and gen_unaligned_store.
14405 (emit_load_locked): Remove.
14406 (emit_store_conditional): Ditto.
14407 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14408 (alpha_split_compare_and_swap): Ditto.
14409 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14410 (alpha_split_compare_and_swap_12): Use gen_load_locked
14411 and gen_store_conditional.
14412 (alpha_split_atomic_exchange): Ditto.
14413 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14414 (alpha_split_atomic_exchange_12): Use gen_load_locked
14415 and gen_store_conditional.
14416
14417 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14418
14419 * config/aarch64/aarch64-errata.h: New file.
14420 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14421 (CA53_ERR_843419_SPEC): Delete.
14422 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14423 * config/aarch64/aarch64-linux.h: Likewise.
14424 * config/aarch64/aarch64-netbsd.h: Likewise.
14425 * config/aarch64/aarch64-freebsd.h: Likewise.
14426
14427 2019-06-20 Marek Polacek <polacek@redhat.com>
14428
14429 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14430
14431 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14432
14433 * config/rs6000/rs6000.md (isa attribute): Add support for
14434 for a future processor.
14435
14436 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14437
14438 PR target/54855
14439 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14440 standard scalar operation pattern for V2DF.
14441 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14442 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14443 (*ieee_<ieee_maxmin><mode>3): Likewise.
14444 (vec_setv2df_0): Likewise.
14445
14446 2019-06-20 Jan Hubicka <jh@suse.cz>
14447
14448 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14449 parameter; it has no use in gimple memory model.
14450 (indirect_ref_may_alias_decl_p): Update.
14451
14452 2019-06-20 Martin Liska <mliska@suse.cz>
14453
14454 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14455 to 10.
14456
14457 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14458
14459 * tree-vect-stmts.c (enum scan_store_kind): New type.
14460 (scan_store_can_perm_p): Change last argument from int * to
14461 vec<enum scan_store_kind> *, record precisely which permutations
14462 need whole vector left shift or that plus VEC_COND_EXPR.
14463 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14464 and additional VEC_COND_EXPR only for those iterations that need it.
14465
14466 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14467
14468 * config.gcc: Fix ARM --with-fpu checking and error message.
14469
14470 2019-06-19 Marek Polacek <polacek@redhat.com>
14471
14472 PR c++/60364 - noreturn after first decl not diagnosed.
14473 * attribs.c (get_attribute_namespace): No longer static.
14474 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14475 attributes.
14476 (attr_noreturn_exclusions): Make it extern.
14477 * attribs.h (get_attribute_namespace): Declare.
14478 * tree-inline.c (function_attribute_inlinable_p): Use
14479 get_attribute_name.
14480
14481 2019-06-19 Martin Sebor <msebor@redhat.com>
14482
14483 PR tree-optimization/90626
14484 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14485
14486 PR tree-optimization/90626
14487 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14488 (handle_builtin_string_cmp): Call it.
14489
14490 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14491
14492 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14493 and DARWIN_NOPIE_SPEC.
14494 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14495 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14496 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14497 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14498 (DARWIN_EXPORT_DYNAMIC): Delete.
14499 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14500 and pie options processing to darwin.h.
14501 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14502
14503 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14504
14505 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14506 in computing the number of options to be moved.
14507
14508 2019-06-19 Maya Rashish <coypu@sdf.org>
14509
14510 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14511 (CLEAR_INSN_CACHE) Use it.
14512
14513 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14514
14515 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14516
14517 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14518
14519 PR middle-end/84521
14520 * builtins.c (expand_builtin_setjmp_setup): Save
14521 hard_frame_pointer_rtx.
14522 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14523 restore fp.
14524 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14525 non-local goto.
14526 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14527 elimination code.
14528 (remove_reg_equal_offset_note): Remove unused function.
14529 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14530 code.
14531 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14532 (arc_builtin_setjmp_frame_value): Remove function.
14533 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14534 (avr_builtin_setjmp_frame_value): Remove function.
14535 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14536 (ix86_builtin_setjmp_frame_value): Remove function.
14537 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14538 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14539 (sparc_builtin_setjmp_frame_value): Remove function.
14540 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14541 (vax_builtin_setjmp_frame_value): Remove function.
14542 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14543 pointer if has_nonlocal_label.
14544
14545 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14546
14547 * doc/md.texi: Document vec_shl_<mode> pattern.
14548 * optabs.def (vec_shl_optab): New optab.
14549 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14550 argument, if == vec_shl_optab, check for left whole vector shift
14551 pattern rather than right shift.
14552 (expand_vec_perm_const): Add vec_shl_optab support.
14553 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14554 in the comment.
14555 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14556 can be handled by vec_shl_optab.
14557 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14558 (check_scan_store): Use it.
14559 (vectorizable_scan_store): If target can't do normal permutations,
14560 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14561 after it.
14562 * config/i386/sse.md (vec_shl_<mode>): New expander.
14563
14564 * omp-low.c (lower_rec_input_clauses): Handle references properly
14565 in inscan clauses.
14566 (lower_omp_scan): Likewise.
14567
14568 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14569
14570 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14571 mem_mode is BLKmode.
14572
14573 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14574
14575 PR target/90922
14576 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14577 pointer adjustment for the case of no callee-saved registers and
14578 stack frame bigger than 128 bytes.
14579
14580 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14581
14582 PR middle-end/90862
14583 * omp-low.c (check_omp_nesting_restrictions): Handle
14584 GF_OMP_TARGET_KIND_OACC_DECLARE.
14585
14586 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14587
14588 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14589 (@add<mode>3_carry): Rename from add<mode>3_carry.
14590 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14591 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14592 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14593 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14594 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14595 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14596 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14597 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14598 (cmpstrnsi): Use gen_cmp_1.
14599 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14600 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14601 (@umonitor_<mode>): Rename from umonitor_<mode>.
14602 * config/i386/i386-expand.c (ix86_expand_copysign):
14603 Use gen_copysign3_const and gen_copysign3_var.
14604 (ix86_expand_xorsign): Use gen_xorsign3_1.
14605 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14606 gen_sub3_carry_ccgz and gen_cmp1.
14607 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14608 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14609 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14610 (ix86_split_lshr): Ditto.
14611 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14612
14613 2019-06-18 Jason Merrill <jason@redhat.com>
14614
14615 * tree.c (build_constructor): Add MEM_STAT_DECL.
14616
14617 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14618
14619 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14620 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14621 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14622 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14623 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14624 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14625 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14626 Use CC_NZC instead of CC.
14627 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14628 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14629 (aarch64_print_operand): Handle E_CC_NZCmode.
14630 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14631 of gen_set_clobber_cc.
14632
14633 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14634
14635 * config/aarch64/aarch64-sve.md: Tabify file.
14636
14637 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14638
14639 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14640 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14641 * config/aarch64/aarch64-sve.md: Use it.
14642
14643 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14644
14645 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14646 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14647 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14648 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14649 (aarch64_expand_sve_vec_cmp_int): Use it.
14650 (aarch64_expand_sve_vec_cmp_float): Likewise.
14651 * config/aarch64/aarch64-sve.md: Likewise throughout.
14652
14653 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14654 Kugan Vivekanandarajah <kuganv@linaro.org>
14655
14656 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14657 (*cond_<optab><mode>_z): Fold into...
14658 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14659 operand 4 can be tied to operand 0 (either inherently or via RA).
14660
14661 2019-06-18 Richard Biener <rguenther@suse.de>
14662
14663 PR debug/90900
14664 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14665 as if optimized away.
14666
14667 2019-06-18 Tom de Vries <tdevries@suse.de>
14668
14669 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14670 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14671 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14672 Rename to ...
14673 (define_insn "@set_softstack_<mode>"): ... this.
14674 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14675 (define_insn "@omp_simt_enter_<mode>"): ... this.
14676 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14677 (define_insn "@omp_simt_exit_<mode>"): ... this.
14678
14679 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14680
14681 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14682 vf parameter. Restore the previous iv step of nscalars_step,
14683 but give it iv_type rather than compare_type. Tweak code order
14684 to match the comments.
14685 (vect_set_loop_condition_masked): Update accordingly.
14686 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14687 for iv_precision. Tweak comment formatting.
14688
14689 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14690
14691 * config/darwin.c: Strip trailing whitespace.
14692
14693 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14694
14695 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14696 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14697
14698 2019-06-18 Martin Jambor <mjambor@suse.cz>
14699
14700 PR ipa/90889
14701 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14702 caller does not have flag_ipa_cp set.
14703
14704 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14705
14706 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14707 from "*fold_left_plus_<mode>", updated operands order.
14708 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14709 * internal-fn.c (mask_fold_left_direct): New define.
14710 (expand_mask_fold_left_optab_fn): Likewise.
14711 (direct_mask_fold_left_optab_supported_p): Likewise.
14712 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14713 * optabs.def (mask_fold_left_plus_optab): New optab.
14714 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14715 masked internal_fn for a reduction ifn.
14716 (vectorize_fold_left_reduction): Add support for masking reductions.
14717
14718 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14719
14720 PR middle-end/80791
14721 * target.def (predict_doloop_p): New hook.
14722 * targhooks.h (default_predict_doloop_p): New declaration.
14723 * targhooks.c (default_predict_doloop_p): New function.
14724 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14725 * doc/tm.texi: Regenerate.
14726 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14727 (TARGET_PREDICT_DOLOOP_P): New macro.
14728 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14729
14730 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14731
14732 * omp-low.c (struct omp_context): Add scan_inclusive field.
14733 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14734 if inclusive scan.
14735 (struct omplow_simd_context): Add lastlane member.
14736 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14737 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14738 1 or 2 argument.
14739 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14740 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14741 (lower_omp_scan): New function.
14742 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14743 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14744 check 3rd argument if present rather than 2nd.
14745 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14746 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14747 2-bit bitfield.
14748 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14749 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14750 than 2nd.
14751 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14752 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14753 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14754 init.
14755 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14756 IFN_GOMP_SIMD_LANE argument.
14757 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14758 encoded ->aux value.
14759 * tree-vect-stmts.c: Include attribs.h.
14760 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14761 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14762 functions.
14763 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14764 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14765
14766 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14767
14768 PR target/62055
14769 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14770 (*nabs<mode>2_1): Ditto.
14771 (nabs sse-reg splitter): New splitter.
14772 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14773
14774 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14775
14776 PR bootstrap/90873.
14777 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14778 TMR index check.
14779
14780 2019-06-17 Tom de Vries <tdevries@suse.de>
14781
14782 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14783 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14784 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14785 ...
14786 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14787 match_operand 0.
14788 (define_insn "omp_simt_enter_insn"): Rename to ...
14789 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14790 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14791 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14792 gen_omp_simt_enter_si.
14793 (define_expand "omp_simt_exit"): New.
14794 (define_insn "omp_simt_exit"): Rename to ...
14795 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14796 match_operand 0.
14797
14798 2019-06-17 Matthew Green <mrg@eterna.com.au>
14799 Maya Rashish <coypu@sdf.org>
14800
14801 * config.gcc (aarch64*-*-netbsd*): New target.
14802 * config/aarch64/aarch64-netbsd.h: New file.
14803 * config/aarch64/t-aarch64-netbsd: Likewise.
14804
14805 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14806
14807 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14808 the access path from base to first VIEW_CONVERT_EXPR or
14809 BIT_FIELD_REF.
14810
14811 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14812
14813 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14814 access path on BIT_FIELD_REFs.
14815
14816 2019-06-17 Martin Liska <mliska@suse.cz>
14817
14818 PR ipa/90874
14819 * ipa-utils.h (odr_type_p): Remove dead code.
14820
14821 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14822
14823 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14824 alternative Solaris 11.4 format.
14825 * configure: Regenerate.
14826
14827 2019-06-17 Tom de Vries <tdevries@suse.de>
14828
14829 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14830 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
14831 match_operand 0.
14832 (define_insn "call_value_insn"): Rename to ...
14833 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
14834 match_operand 0.
14835 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14836 DI.
14837
14838 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
14839
14840 PR middle-end/64242
14841 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
14842 frame clobbers and schedule block.
14843 (builtin_longjmp): Likewise.
14844
14845 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14846
14847 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14848 describe how to perform MSPABI compliant 64-bit shift.
14849 * config/msp430/msp430.md (ashldi3): New define_expand.
14850 (ashrdi3): New define_expand.
14851 (lshrdi3): New define_expand.
14852
14853 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14854
14855 * doc/sourcebuild.texi: Document new effective target keyword
14856 longlong64.
14857
14858 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14859
14860 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14861 indirect_refs_may_alias_p): Revert accidental commits.
14862
14863 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14864 at the end of structures.
14865
14866 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14867
14868 * config/darwin.c (machopic_indirect_call_target): Use renamed
14869 darwin_picsymbol_stubs to decide on output.
14870 (darwin_override_options): Handle darwin_picsymbol_stubs.
14871 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
14872 (LD64_VERSION): Revise default.
14873 * config/darwin.opt: (mpic-symbol-stubs): New option.
14874 (darwin_picsymbol_stubs): New variable.
14875 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
14876 rename to TARGET_MACHO_PICSYM_STUBS.
14877 * config/i386/i386.c (output_pic_addr_const): Likewise.
14878 * config/i386/i386.h Likewise.
14879 * config/rs6000/darwin.h: Likewise.
14880 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
14881 darwin_picsymbol_stubs.
14882
14883 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14884
14885 * config/darwin.opt (prebind, noprebind, seglinkedit,
14886 noseglinkedit): Add RejectNegative.
14887
14888 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14889
14890 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
14891 in my previous patch.
14892
14893 2019-06-16 Tom de Vries <tdevries@suse.de>
14894
14895 PR tree-optimization/89376
14896 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
14897
14898 2019-06-15 Maya Rashish <coypu@sdf.org>
14899
14900 * doc/invoke.texi (Spec Files): Update location of the
14901 Fortran spec file.
14902
14903 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
14904
14905 * doc/extend.texi (Common Function Attributes): Clarify
14906 no_sanitize. Fix grammar.
14907
14908 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
14909
14910 * tree-ssa-alias.c (alias_stats): Add
14911 nonoverlapping_component_refs_p_may_alias,
14912 nonoverlapping_component_refs_p_no_alias,
14913 nonoverlapping_component_refs_of_decl_p_may_alias,
14914 nonoverlapping_component_refs_of_decl_p_no_alias.
14915 (dump_alias_stats): Dump them.
14916 (nonoverlapping_component_refs_of_decl_p): Add stats.
14917 (nonoverlapping_component_refs_p): Add stats; do not stop on first
14918 ARRAY_REF.
14919
14920 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
14921
14922 * config/i386/i386.md (and<mode>3): Generate zero-extends for
14923 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
14924 only.
14925 (*anddi3_doubleword): Split before reload. Merge with
14926 anddi->zext pre-reload splitter.
14927 (*andndi3_doubleword): Split before reload.
14928 (*<code>di3_doubleword): Ditto.
14929 (*one_cmpldi2_doubleword): Ditto.
14930
14931 2019-06-15 Jakub Jelinek <jakub@redhat.com>
14932
14933 PR middle-end/90779
14934 * gimplify.c: Include omp-offload.h and context.h.
14935 (gimplify_bind_expr): Add "omp declare target" attributes
14936 to static block scope variables inside of target region or target
14937 functions.
14938
14939 2019-06-15 Tom de Vries <tdevries@suse.de>
14940
14941 PR tree-optimization/90009
14942 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
14943 Return NULL if bb contains IFN_UNIQUE.
14944
14945 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
14946
14947 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
14948 (un): New define_mode_attr.
14949 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
14950 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
14951 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
14952 merge into ...
14953 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
14954
14955 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
14956
14957 * config/darwin.opt: Add RejectNegative where needed, reorder
14958 and add minimal functional descriptions.
14959
14960 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14961
14962 PR rtl-optimization/90765
14963 * calls.c (update_stack_alignment_for_call): New function.
14964 (expand_call): Call update_stack_alignment_for_call when
14965 outgoing parameter is passed in the stack.
14966 (emit_library_call_value_1): Likewise.
14967 * function.c (locate_and_pad_parm): Don't update
14968 stack_alignment_needed and preferred_stack_boundary.
14969
14970 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
14971
14972 PR target/90877
14973 * config/i386/i386-features.c
14974 (dimode_scalar_chain::compute_convert_gain): Replace
14975 mmxsse_to_integer with sse_to_integer.
14976 * config/i386/i386.c (ix86_register_move_cost): Verify that
14977 moves between MMX and non-MMX units require secondary memory.
14978 Correct costs of moves between SSE and integer units.
14979 * config/i386/i386.h (processor_costs): Rename cost of moving
14980 SSE register to integer to sse_to_integer. Rename cost of
14981
14982 2019-06-14 Matt Thomas <matt@3am-software.com>
14983 Matthew Green <mrg@eterna.com.au>
14984 Nick Hudson <skrll@netbsd.org>
14985 Maya Rashish <coypu@sdf.org>
14986 Richard Earnshaw <rearnsha@arm.com>
14987
14988 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
14989 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
14990 * config/arm/netbsd-eabi.h: New file.
14991 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
14992 redefining.
14993 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
14994 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
14995 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
14996 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
14997
14998 2019-06-14 Richard Biener <rguenther@suse.de>
14999
15000 * tree-loop-distribution.c (classify_partition): Return
15001 whether a reduction appeared in all partitions and do not
15002 stop builtin detection because of this.
15003 (distribute_loop): Sort a non-builtin partition last if
15004 there's a reduction in all partitions and make sure the
15005 partition prevailing as last is not a builtin.
15006
15007 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15008
15009 PR ipa/90401
15010 * ipa-prop.c (add_to_agg_contents_list): New function.
15011 (clobber_by_agg_contents_list_p): Likewise.
15012 (extract_mem_content): Likewise.
15013 (get_place_in_agg_contents_list): Delete.
15014 (determine_known_aggregate_parts): Renamed from
15015 determine_locally_known_aggregate_parts. New parameter
15016 aa_walk_budget_p.
15017
15018 2019-06-13 Martin Sebor <msebor@redhat.com>
15019
15020 PR tree-optimization/90662
15021 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15022 to the same type.
15023
15024 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15025
15026 PR bootstrap/90873
15027 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15028 dbase is not TARGET_MEM_REF.
15029
15030 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15031
15032 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15033 Update all uses.
15034 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15035 Do not generate DImode extends for 32bit targets.
15036 (and->zext post-reload splitter): Use gen_extend_insn
15037 instead of indirect functions.
15038 (anddi->zext pre-reload splitter): New.
15039 (*zext<mode>_doubleword_and): Remove.
15040 (*zext<mode>_doubleword): Ditto.
15041 (*zextsi_doubleword): Dittto.
15042
15043 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15044
15045 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15046 Use gen_sub3_insn instead of indirect function.
15047 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15048 indirect function.
15049 (ix86_adjust_counter): Ditto.
15050
15051 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15052 Lijia He <helijia@linux.ibm.com>
15053
15054 PR tree-optimization/77820
15055 * tree-ssa-threadedge.c
15056 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15057 function.
15058 (thread_across_edge): Add call to
15059 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15060
15061 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15062
15063 * config/darwin-driver.c (validate_macosx_version_min): New.
15064 (darwin_default_min_version): Cleanup and validate supplied version.
15065 (darwin_driver_init): Likewise and push cleaned version into opts.
15066
15067 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15068
15069 PR tree-optimization/90869
15070 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15071 converts in MEM_REF referencing decl rather than view converts
15072 from decl type to MEM_REF type.
15073
15074 2019-06-13 Richard Biener <rguenther@suse.de>
15075
15076 PR tree-optimization/90856
15077 * tree-sra.c (build_ref_for_model): Only use
15078 build_reconstructed_reference when address-spaces are the same.
15079
15080 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15081
15082 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15083 wrap ei variable name in the declaration in ()s.
15084 (nvptx_single): Actually use mode_label variable. Formatting fix.
15085
15086 2019-06-13 Richard Biener <rguenther@suse.de>
15087
15088 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15089 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15090 also return the condition stmt.
15091 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15092 loop we can version and version that, reusing the loop version
15093 created by if-conversion instead of versioning again.
15094
15095 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15096
15097 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15098 may_contain_p.
15099 * tree-vrp (value_range_base::may_contain_p): Call into
15100 value_inside_range.
15101 (value_inside_range): Make private inside value_range_base class.
15102 Take min/max from *this.
15103 (range_includes_p): Remove.
15104 * tree-vrp.h (value_range_base): Add value_inside_range.
15105 (range_includes_p): Remove.
15106 (range_includes_zero_p): Call may_contain_p.
15107 * vr-values.c (compare_range_with_value): Same.
15108
15109 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15110
15111 * doc/extend.texi (ARC Function Attributes): Update info.
15112
15113 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15114
15115 PR tree-optimization/89713
15116 * doc/invoke.texi (-ffinite-loops): Document new option.
15117 * common.opt (-ffinite-loops): New option.
15118 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15119 IFN_GOACC_LOOP calls as necessary.
15120 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15121 is finite.
15122 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15123 IFN_GOACC_LOOP call is not used.
15124 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15125
15126 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15127
15128 PR target/88838
15129 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15130 compare_type is not with Pmode size, we will create an IV with
15131 Pmode size with truncated use (i.e. converted to the correct type).
15132 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15133 (vect_iv_limit_for_full_masking): New. Factored out of
15134 vect_set_loop_condition_masked.
15135 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15136 (vect_iv_limit_for_full_masking): Declare.
15137
15138 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15139
15140 PR target/88834
15141 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15142 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15143 (get_alias_ptr_type_for_ptr_address): Likewise.
15144 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15145 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15146 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15147 allow_reg_index_p.
15148
15149 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15150
15151 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15152
15153 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15154
15155 * common/config/pru/pru-common.c: New file.
15156 * config.gcc: Add PRU target.
15157 * config/pru/alu-zext.md: New file.
15158 * config/pru/constraints.md: New file.
15159 * config/pru/predicates.md: New file.
15160 * config/pru/pru-opts.h: New file.
15161 * config/pru/pru-passes.c: New file.
15162 * config/pru/pru-pragma.c: New file.
15163 * config/pru/pru-protos.h: New file.
15164 * config/pru/pru.c: New file.
15165 * config/pru/pru.h: New file.
15166 * config/pru/pru.md: New file.
15167 * config/pru/pru.opt: New file.
15168 * config/pru/t-pru: New file.
15169 * doc/extend.texi: Document PRU pragmas.
15170 * doc/invoke.texi: Document PRU-specific options.
15171 * doc/md.texi: Document PRU asm constraints.
15172
15173 2019-06-12 Martin Sebor <msebor@redhat.com>
15174
15175 PR middle-end/90676
15176 * tree-pretty-print.c (dump_mem_ref): New function. Include
15177 MEM_REF type in output when different size than operand.
15178 (dump_generic_node): Move code to dump_mem_ref and call it.
15179
15180 2019-06-12 Martin Sebor <msebor@redhat.com>
15181
15182 PR tree-optimization/90662
15183 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15184 to arrays.
15185
15186 2019-06-12 Tom de Vries <tdevries@suse.de>
15187
15188 PR tree-optimization/90009
15189 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15190
15191 2019-06-12 Martin Liska <mliska@suse.cz>
15192
15193 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15194 the created map.
15195 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15196 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15197 Do not sanitize created maps.
15198
15199 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15200
15201 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15202 value_range::singleton_p.
15203 * tree-vrp.c (value_range_constant_singleton): Remove.
15204 * tree-vrp.h (value_range_constant_singleton): Remove.
15205 * vr-values.c (vr_values::singleton): Use
15206 value_range::singleton_p.
15207
15208 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15209
15210 PR target/90811
15211 * cfgexpand.c (align_local_variable): Add really_expand argument,
15212 don't SET_DECL_ALIGN if it is false.
15213 (add_stack_var): Add really_expand argument, pass it through to
15214 align_local_variable.
15215 (expand_one_stack_var_1): Pass true as really_expand to
15216 align_local_variable.
15217 (expand_one_ssa_partition): Pass true as really_expand to
15218 add_stack_var.
15219 (expand_one_var): Pass really_expand through to add_stack_var.
15220
15221 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15222
15223 * config/arm/iterators.md (VABAL): New int iterator.
15224 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15225 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15226 UNSPEC_VABAL_U values.
15227
15228 2019-06-12 Martin Liska <mliska@suse.cz>
15229
15230 * value-prof.c (stream_out_histogram_value): Only first value
15231 can't be negative.
15232
15233 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15234
15235 PR c/90760
15236 * symtab.c (symtab_node::set_section): Allow being called on aliases
15237 as long as they aren't analyzed yet.
15238
15239 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15240
15241 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15242 to `mips_set_text_contents_type' to indicate whether a
15243 non-debug insn follows.
15244
15245 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15246
15247 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15248 enabling -mpcrel by default.
15249 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15250 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15251 that the test against -mcpu=future is done first. Then test if
15252 -mprefixed-addr is on for -mpcrel.
15253 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15254
15255 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15256
15257 PR target/90811
15258 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15259 instead of and.u%d.
15260
15261 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15262
15263 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15264
15265 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15266
15267 PR c++/90449 - add -Winaccessible-base option.
15268 * doc/invoke.texi (Winaccessible-base): Document.
15269
15270 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15271
15272 PR tree-optimization/62041
15273 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15274
15275 2019-06-11 Jason Merrill <jason@redhat.com>
15276
15277 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15278 * tree.c (get_tree_code_name): Likewise.
15279 * print-tree.c (print_node): Only briefly print a node with an
15280 invalid code.
15281
15282 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15283
15284 PR bootstrap/90819
15285 * trans-mem.c (tm_memopt_compute_available): Add assertion
15286 that blocks is not empty. Formatting fix.
15287
15288 2019-06-11 Martin Liska <mliska@suse.cz>
15289
15290 PR c++/87847
15291 * hash-table.h: Extend create_gcc, add one parameter
15292 that is passed into hash_table::hash_table.
15293
15294 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15295
15296 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15297 New prototype.
15298 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15299 Emit clobber also for non-sse operations.
15300 (ix86_split_fp_absneg_operator): New function.
15301 * config/i386/i386.md (SSEMODEF): New mode iterator.
15302 (ssevecmodef): New mode attribute.
15303 (<code>tf2): Use absneg code iterator.
15304 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15305 Add three-operand AVX alternatives.
15306 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15307 Use absneg code iterator and X87MODEF mode iterator.
15308 (absneg fp_reg non-sse splitter): Call absneg code iterator
15309 and X87MODEF mode iterator.
15310 (absneg general_reg non-sse splitter): Use absneg code iterator
15311 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15312 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15313 code iterator. Add three-operand AVX alternative.
15314 (absneg sse_reg splitter): Use absneg code iterator
15315 and SSEMODEF mode iterator. Handle AVX operands.
15316 (absneg fp_reg splitter): Use absneg code iterator
15317 and MODEF mode iterator.
15318 (absneg general_reg splitter): Merge splitters using MODEF mode
15319 iterator. Use absneg code iterator. Call
15320 ix86_split_fp_absneg_operator.
15321 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15322 Do not enable for non-sse modes before reload.
15323 (CSGNMODE): Remove.
15324 (CSGNVMODE): Ditto.
15325 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15326 ssevecmodef mode attribute instaed of CSGNVMODE.
15327 (copysign<mode>3_const): Ditto.
15328 (copysign<mode>3_var): Ditto.
15329 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15330 Use absneg code iterator. Simplify code using std::swap.
15331 * config/i386/predicates.md (absneg_operator): Remove.
15332
15333 2019-06-10 Martin Sebor <msebor@redhat.com>
15334
15335 * gimple-fold.c (get_range_strlen): Update comment that didn't
15336 make it into r267503 or related commits.
15337
15338 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15339
15340 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15341 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15342
15343 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15344
15345 * tree.def (OMP_SCAN): New tree code.
15346 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15347 OMP_CLAUSE_EXCLUSIVE.
15348 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15349 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15350 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15351 OMP_CLAUSE_{IN,EX}CLUSIVE.
15352 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15353 * tree-nested.c (convert_nonlocal_reference_stmt,
15354 convert_local_reference_stmt, convert_gimple_call): Handle
15355 GIMPLE_OMP_SCAN.
15356 * tree-pretty-print.c (dump_omp_clause): Handle
15357 OMP_CLAUSE_{IN,EX}CLUSIVE.
15358 (dump_generic_node): Handle OMP_SCAN.
15359 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15360 * gimple.h (gomp_scan): New type.
15361 (is_a_helper <gomp_scan *>::test,
15362 is_a_helper <const gomp_scan *>::test): New templates.
15363 (gimple_build_omp_scan): Declare.
15364 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15365 gimple_omp_scan_set_clauses): New inline functions.
15366 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15367 * gimple.c (gimple_build_omp_scan): New function.
15368 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15369 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15370 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15371 GIMPLE_OMP_TASKGROUP.
15372 (dump_gimple_omp_scan): New function.
15373 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15374 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15375 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15376 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15377 (is_gimple_stmt): Handle OMP_SCAN.
15378 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15379 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15380 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15381 mentioned in nested #pragma omp scan. Handle
15382 OMP_CLAUSE_{IN,EX}CLUSIVE.
15383 (gimplify_expr): Handle OMP_SCAN.
15384 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15385 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15386 simd constructs.
15387 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15388 GIMPLE_OMP_SCAN.
15389
15390 2019-06-10 Martin Liska <mliska@suse.cz>
15391
15392 * ipa-cp.c (ignore_edge_p): New function.
15393 (build_toporder_info): Use it.
15394 * ipa-inline.c (ignore_edge_p): New function.
15395 (inline_small_functions): Use it.
15396 * ipa-pure-const.c (ignore_edge_for_nothrow):
15397 Verify opt_for_fn for caller and callee.
15398 (ignore_edge_for_pure_const): Likewise.
15399 * ipa-reference.c (ignore_edge_p): Extend to check
15400 for opt_for_fn.
15401 * ipa-utils.c (searchc): Refactor.
15402 * ipa-utils.h: Fix coding style.
15403
15404 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15405
15406 * config/arc/arc.c (arc_rtx_costs): Update costs.
15407
15408 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15409
15410 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15411 (arc_split_ior): Likewise.
15412 (arc_check_mov_const): Likewise.
15413 (arc_split_mov_const): Likewise.
15414 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15415 (arc_rtx_costs): Replace check Crr with Cax constraint.
15416 (prepare_move_operands): Cleanup, remove unused code.
15417 (arc_split_ior): New function.
15418 (arc_check_ior_const): Likewise.
15419 (arc_split_mov_const): Likewise.
15420 (arc_check_mov_const): Likewise.
15421 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15422 in define_insn_and_split pattern.
15423 (iorsi3): Likewise.
15424 (mulsi3_v2): Add new matching variant.
15425 (andsi3_i): Cleanup pattern.
15426 (rotrsi3_cnt1): Update pattern.
15427 (rotrsi3_cnt8): New pattern.
15428 (ashlsi2_cnt8): Likewise.
15429 (ashlsi2_cnt16): Likewise.
15430 * config/arc/constraints.md (C0p): Update constraint.
15431 (Crr): Remove it.
15432 (C0x): New pattern.
15433 (Cax): New pattern.
15434
15435 2019-06-10 Martin Liska <mliska@suse.cz>
15436
15437 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15438 Update coding style.
15439 (sem_item_optimizer::dump_cong_classes):
15440 Print how many items are in a non-singular class. Improve
15441 coding style.
15442
15443 2019-06-10 Martin Liska <mliska@suse.cz>
15444
15445 * value-prof.c (dump_histogram_value): Change dump format.
15446 (gimple_mod_subtract_transform): Remove legacy comment.
15447
15448 2019-06-10 Martin Liska <mliska@suse.cz>
15449
15450 * value-prof.c (dump_histogram_value): Print histogram values
15451 only if present.
15452
15453 2019-06-10 Martin Liska <mliska@suse.cz>
15454
15455 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15456 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15457 * ipa-profile.c (ipa_profile_generate_summary):
15458 Use get_most_common_single_value.
15459 * tree-profile.c (gimple_init_gcov_profiler):
15460 Instrument with __gcov_one_value_profiler_v2
15461 and __gcov_indirect_call_profiler_v4.
15462 * value-prof.c (dump_histogram_value):
15463 Print all values for HIST_TYPE_SINGLE_VALUE.
15464 (stream_out_histogram_value): Update assert for
15465 N values.
15466 (stream_in_histogram_value): Set number of
15467 counters for HIST_TYPE_SINGLE_VALUE.
15468 (get_most_common_single_value): New.
15469 (gimple_divmod_fixed_value_transform):
15470 Use get_most_common_single_value.
15471 (gimple_ic_transform): Likewise.
15472 (gimple_stringops_transform): Likewise.
15473 (gimple_find_values_to_profile): Set number
15474 of counters for HIST_TYPE_SINGLE_VALUE.
15475 * value-prof.h (get_most_common_single_value): New.
15476
15477 2019-06-10 Martin Liska <mliska@suse.cz>
15478
15479 * hash-map.h: Pass default value to hash_table ctor.
15480 * hash-table.h: Add default value to call of a ctor.
15481
15482 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15483
15484 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15485 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15486
15487 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15488
15489 PR target/90751
15490 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15491 Call pa_output_function_label.
15492 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15493 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15494 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15495 to declaration.
15496 (pa_linux_output_function_prologue): Declare.
15497 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15498 (pa_output_function_label): New.
15499 (pa_output_function_prologue): Revise to use pa_output_function_label.
15500 (pa_linux_output_function_prologue): New.
15501 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15502
15503 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15504
15505 * tree-vrp.h (value_range_base::intersect): New.
15506 (value_range::intersect_helper): Move from here...
15507 (value_range_base::intersect_helper): ...to here.
15508 * tree-vrp.c (value_range::intersect_helper): Rename to...
15509 (value_range_base::intersect_helper): ...this, and rewrite to
15510 return a value instead of modifying THIS in place.
15511 Also, move equivalence handling...
15512 (value_range::intersect): ...here, while calling intersect_helper.
15513 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15514 calling intersect.
15515 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15516 Same.
15517 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15518
15519 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15520
15521 * Makefile.in (genprogerr): Add condmd.
15522 (genprog): Remove it here.
15523
15524 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15525
15526 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15527
15528 2019-06-07 Richard Biener <rguenther@suse.de>
15529
15530 PR debug/90574
15531 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15532 that appear after user labels.
15533
15534 2019-06-07 Martin Liska <mliska@suse.cz>
15535
15536 * cselib.c (cselib_init): Disable hash table
15537 sanitization.
15538 * hash-set.h: Pass new default argument to m_table.
15539 * hash-table.c: Add global variable with hash table
15540 sanitization limit.
15541 * hash-table.h (Allocator>::hash_table): Add new argument
15542 to ctor.
15543 (hashtab_chk_error): New.
15544 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15545 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15546 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15547
15548 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15549
15550 * common.opt (flto-odr-type-merging): Ignore.
15551 * invoke.texi (-flto-odr-type-merging): Remove.
15552 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15553 (can_be_vtable_hashed_p): Remove.
15554 (hash_odr_vtable): Remove.
15555 (odr_vtable_hasher::hash): Remove.
15556 (types_same_for_odr): Remove.
15557 (types_odr_comparable): Remove.
15558 (odr_vtable_hasher::equal): Remove.
15559 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15560 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15561 (get_odr_type): Do not use vtable hash.
15562 (dump_odr_type): Remove commented out code.
15563 (build_type_inheritance_graph): Do not allocate vtable hash.
15564 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15565 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15566 (odr_type_p): Likewise.
15567 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15568 test.
15569
15570 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15571
15572 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15573 immediately after same_types_for_tbaa_p returns -1 and continue
15574 looking for possible exact match; if matching types are arrays
15575 watch for partial overlaps.
15576 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15577 (indirect_refs_may_alias_p): Do type based disambiguation first;
15578 update comment.
15579
15580 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15581
15582 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15583
15584 2019-06-07 Martin Liska <mliska@suse.cz>
15585
15586 * doc/invoke.texi: Remove param.
15587 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15588 Remove.
15589 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15590 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15591 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15592 * profile.c (instrument_values): Remove
15593 HIST_TYPE_INDIR_CALL_TOPN.
15594 * tree-profile.c (init_ic_make_global_vars):
15595 Always build __gcov_indirect_call only.
15596 (gimple_init_gcov_profiler): Remove usage
15597 of PARAM_INDIR_CALL_TOPN_PROFILE.
15598 (gimple_gen_ic_profiler): Likewise.
15599 * value-prof.c (dump_histogram_value): Likewise.
15600 (stream_in_histogram_value): Likewise.
15601 (gimple_indirect_call_to_profile): Likewise.
15602 (gimple_find_values_to_profile): Likewise.
15603 * value-prof.h (enum hist_type): Likewise.
15604
15605 2019-06-07 Martin Liska <mliska@suse.cz>
15606
15607 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15608 function.
15609
15610 2019-06-07 Martin Liska <mliska@suse.cz>
15611
15612 PR tree-optimization/78902
15613 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15614 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15615 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15616 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15617 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15618 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15619 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15620 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15621 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15622 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15623 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15624 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15625 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15626 New.
15627 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15628 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15629 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15630 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15631 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15632 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15633 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15634 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15635 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15636 warn_unused_result attribute.
15637 (BUILT_IN_STRDUP): Likewise.
15638 (BUILT_IN_STRNDUP): Likewise.
15639 (BUILT_IN_ALLOCA): Likewise.
15640 (BUILT_IN_CALLOC): Likewise.
15641 (BUILT_IN_MALLOC): Likewise.
15642 (BUILT_IN_REALLOC): Likewise.
15643
15644 2019-06-06 Jim Wilson <jimw@sifive.com>
15645
15646 PR target/89955
15647 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15648 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15649 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15650
15651 2019-06-06 Martin Sebor <msebor@redhat.com>
15652
15653 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15654 (handle_builtin_malloc): Remove trailing spaces.
15655 (handle_builtin_memset): Same.
15656 (handle_builtin_memcmp): Same.
15657 (compute_string_length): Same.
15658 (determine_min_objsize): Same.
15659 (handle_builtin_string_cmp): Same.
15660 (handle_char_store): Same. Break up excessively long line.
15661
15662 2019-06-06 Martin Jambor <mjambor@suse.cz>
15663
15664 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15665 check.
15666
15667 2019-06-06 Martin Jambor <mjambor@suse.cz>
15668
15669 * tree-sra.c (struct access): New field grp_same_access_path.
15670 (dump_access): Dump it.
15671 (build_reconstructed_reference): New function.
15672 (build_ref_for_model): Use it if possible.
15673 (path_comparable_for_same_access): New function.
15674 (same_access_path_p): Likewise.
15675 (sort_and_splice_var_accesses): Set the new flag.
15676 (analyze_access_subtree): Likewise.
15677 (propagate_subaccesses_across_link): Propagate zero value of the new
15678 flag down the access tree.
15679
15680 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15681
15682 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15683 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15684 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15685 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15686 Add gfx906.
15687
15688 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15689
15690 PR tree-optimization/90332
15691 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15692 Handle VALS containing two vectors.
15693 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15694 to...
15695 (@aarch64_combinez<mode>): ... This.
15696 (*aarch64_combinez_be<mode>): Rename to...
15697 (@aarch64_combinez_be<mode>): ... This.
15698 (vec_init<mode><Vhalf>): New define_expand.
15699 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15700
15701 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15702
15703 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15704 library functions only when not optimizing for size.
15705 (ashlsi3): Likewise.
15706 (ashrhi3): Likewise.
15707 (ashrsi3): Likewise.
15708 (lshrhi3): Likewise.
15709 (lshrsi3): Likewise.
15710
15711 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15712
15713 PR rtl-optimization/88751
15714 * ira.c (ira): Use the number of the actually referenced registers
15715 when calculating the threshold.
15716
15717 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15718
15719 * configure: Regenerate.
15720
15721 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15722
15723 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15724 register if it is in memory, so the shift can be emulated with a rotate
15725 instruction.
15726 (ashrhi3): Likewise.
15727 (lshrhi3): Likewise.
15728
15729 2019-06-06 Martin Liska <mliska@suse.cz>
15730
15731 PR tree-optimization/87954
15732 * match.pd: Simplify mult where both arguments are 0 or 1.
15733
15734 2019-06-06 Richard Biener <rguenther@suse.de>
15735
15736 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15737 put equivalences on UNDEFINED ranges.
15738 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15739 Make sure to drop defs of stmts added during simplification
15740 to VARYING.
15741
15742 2019-06-06 Richard Biener <rguenther@suse.de>
15743
15744 * tree-ssa-structalias.c: Include tree-cfg.h.
15745 (make_heapvar): Do not make heap vars artificial.
15746 (find_func_aliases_for_builtin_call): Handle stack allocation
15747 functions.
15748 (find_func_aliases): Delay processing of simple enough returns
15749 in non-IPA mode.
15750 (set_uids_in_ptset): Adjust.
15751 (find_what_var_points_to): Likewise.
15752 (solve_constraints): Do not dump points-to sets here.
15753 (compute_points_to_sets): Post-process return statements,
15754 amending the escaped solution. Dump points-to sets afterwards.
15755 (ipa_pta_execute): Dump points-to sets.
15756
15757 2019-06-06 Martin Liska <mliska@suse.cz>
15758
15759 PR web/87933
15760 * doc/install.texi: Fix HTML headers and
15761 titles for 'Installing GCC' pages.
15762
15763 2019-06-06 Martin Liska <mliska@suse.cz>
15764
15765 * ipa-icf-gimple.h (dump_message_1): Remove.
15766 (dump_message): Likewise.
15767 (return_false_with_message_1): Print also file.
15768 (return_false_with_msg): Likewise.
15769 (return_with_result): Likewise.
15770 (return_with_debug): Likewise.
15771 * ipa-icf.c (sem_function::equals_private): Remove call
15772 to dump_message.
15773
15774 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15775
15776 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15777 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15778 memory operand for it.
15779 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15780
15781 2019-06-05 Martin Sebor <msebor@redhat.com>
15782
15783 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15784 Adjust quoting and hyphenation.
15785 * convert.c (convert_to_real_1): Same.
15786 * gcc.c (driver_wrong_lang_callback): Same.
15787 (driver::handle_unrecognized_options): Same.
15788 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15789 * opts-common.c (cmdline_handle_error): Same.
15790 (read_cmdline_option): Same.
15791 * opts-global.c (complain_wrong_lang): Same.
15792 (print_ignored_options): Same.
15793 (handle_common_deferred_options): Same.
15794 * pretty-print.h: Same.
15795 * print-rtl.c (debug_bb_n_slim): Same.
15796 * sched-rgn.c (make_pass_sched_fusion): Same.
15797 * tree-cfg.c (verify_gimple_assign_unary): Same.
15798 (verify_gimple_label): Same.
15799 * tree-ssa-operands.c (verify_ssa_operands): Same.
15800 * varasm.c (do_assemble_alias): Same.
15801 (assemble_alias): Same.
15802
15803 2019-06-05 Richard Henderson <rth@twiddle.net>
15804
15805 * config/alpha/alpha.c (direct_return): Move down after
15806 struct machine_function definition; use saved frame_size;
15807 return bool.
15808 (struct machine_function): Add sa_mask, sa_size, frame_size.
15809 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15810 (alpha_compute_frame_layout): ... new function.
15811 (TARGET_COMPUTE_FRAME_LAYOUT): New.
15812 (alpha_initial_elimination_offset): Use saved sa_size.
15813 (alpha_vms_initial_elimination_offset): Likewise.
15814 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15815 (alpha_expand_prologue): Use saved frame data. Merge integer
15816 and fp register save loops.
15817 (alpha_expand_epilogue): Likewise.
15818 (alpha_start_function): Use saved frame data.
15819 * config/alpha/alpha-protos.h (direct_return): Update.
15820 (alpha_sa_size): Remove.
15821
15822 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
15823
15824 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15825 multiplication by a power-of-two value.
15826 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15827 and turn the modulo operation into a masking operation.
15828
15829 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15830
15831 PR debug/90733
15832 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15833 with VOIDmode inner operands.
15834
15835 2019-06-05 Richard Biener <rguenther@suse.de>
15836
15837 PR middle-end/90726
15838 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15839 turn an expression graph into a tree.
15840
15841 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15842
15843 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15844 member.
15845 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15846 treat it like explicit monotonic schedule modifier.
15847 (expand_omp_for): Initialize has_lastprivate_conditional.
15848 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15849 schedule modifier.
15850
15851 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15852 references, lookup in in hash map MEM_REF operand instead of the
15853 MEM_REF itself.
15854 (lower_omp_1): When looking for lastprivate conditional assignments,
15855 handle MEM_REFs with REFERENCE_TYPE operands.
15856
15857 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15858 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15859 and references a VLA. Handle references to non-VLAs if is_simd
15860 all privatization clauses like reductions.
15861 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15862 If omp_is_reference, use always omp simd arrays and set
15863 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15864 fails, emit reference initialization.
15865
15866 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15867
15868 PR target/89803
15869 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
15870 _mm_mask_fpclass_sd_mask): New intrinsics.
15871 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
15872 * config/i386/i386-builtin.def
15873 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
15874 New builtins.
15875 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
15876 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
15877 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
15878 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
15879 case QI_FTYPE_V2SF_INT): Ditto.
15880 * config/i386/sse.md
15881 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
15882 Extended to insnstructions with mask operands.
15883
15884 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15885
15886 * config/rs6000/constraints.md (define_register_constraint "wp"):
15887 Delete.
15888 (define_register_constraint "wq"): Delete.
15889 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15890 (rs6000_init_hard_regno_mode_ok): Adjust.
15891 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15892 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
15893 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
15894 (define_mode_attr VSa): Delete.
15895 (define_mode_attr VSisa): New.
15896 (rest of file): Adjust.
15897 * doc/md.texi (Machine Constraints): Adjust.
15898
15899 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15900
15901 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
15902 (define_attr "enabled"): Handle those new isa values.
15903
15904 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15905
15906 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
15907 (define_mode_attr VSr5): Delete.
15908 (define_mode_attr VStype_sqrt): Delete.
15909 (define_mode_iterator VSX_SPDP): Delete.
15910 (define_mode_attr VS_spdp_res): Delete.
15911 (define_mode_attr VS_spdp_insn): Delete.
15912 (define_mode_attr VS_spdp_type): Delete.
15913 (*vsx_sqrt<mode>2): Adjust.
15914 (vsx_<VS_spdp_insn>): Delete, split to...
15915 (vsx_xscvdpsp): ... this. New. And...
15916 (vsx_xvcvspdp): ... this. New. And...
15917 (vsx_xvcvdpsp): ... this. New.
15918
15919 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15920
15921 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
15922 and V2DF.
15923 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
15924 (rest of file): Adjust.
15925
15926 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15927
15928 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
15929 (vsx_extract_<mode>_var): Ditto.
15930
15931 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15932
15933 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
15934 with just "wa".
15935
15936 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15937
15938 * config/rs6000/constraints.md (define_register_constraint "ww"):
15939 Delete.
15940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15941 (rs6000_init_hard_regno_mode_ok): Adjust.
15942 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15943 RS6000_CONSTRAINT_ww.
15944 * config/rs6000/rs6000.md: Adjust.
15945 * config/rs6000/vsx.md: Adjust.
15946 * doc/md.texi (Machine Constraints): Adjust.
15947
15948 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15949
15950 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
15951 (define_mode_attr sd): New.
15952 (define_mode_attr s): New.
15953 (define_mode_attr Ftrad): Delete.
15954 (define_mode_attr Fvsx): Delete.
15955 (define_mode_attr Fs): Delete.
15956 (rest of file): Use the new mode attributes.
15957 * config.rs6000/vsx.md: Use the new mode attributes.
15958
15959 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15960
15961 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
15962 with just "wa".
15963
15964 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15965
15966 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
15967 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
15968 used with VSX_B, VSX_D, or VSX_F, with just "wa".
15969
15970 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
15971
15972 PR target/78263
15973 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
15974 C++ with strict ANSI requirements.
15975
15976 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
15977
15978 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
15979 computations when step is 1.
15980
15981 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15982
15983 * config/rs6000/constraints.md (define_register_constraint "wf"):
15984 Delete.
15985 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15986 (rs6000_init_hard_regno_mode_ok): Adjust.
15987 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15988 RS6000_CONSTRAINT_wf.
15989 * config/rs6000/rs6000.md: Adjust.
15990 * config/rs6000/vsx.md: Adjust.
15991 * doc/md.texi (Machine Constraints): Adjust.
15992
15993 2019-06-04 Andrew Pinski <apinski@marvell.com>
15994
15995 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
15996 Fix ILP32 value.
15997
15998 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15999
16000 * config/rs6000/constraints.md (define_register_constraint "wd"):
16001 Delete.
16002 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16003 (rs6000_init_hard_regno_mode_ok): Adjust.
16004 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16005 RS6000_CONSTRAINT_wd.
16006 * config/rs6000/rs6000.md: Adjust.
16007 * config/rs6000/vsx.md: Adjust.
16008 * doc/md.texi (Machine Constraints): Adjust.
16009
16010 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16011
16012 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16013 (rest of file): Adjust.
16014
16015 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16016
16017 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16018 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16019 (vsx_splat_<mode>_reg): Adjust.
16020
16021 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16022
16023 * config/rs6000/constraints.md (define_register_constraint "ws"):
16024 Delete.
16025 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16026 (rs6000_init_hard_regno_mode_ok): Adjust.
16027 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16028 RS6000_CONSTRAINT_ws.
16029 * config/rs6000/rs6000.md: Adjust.
16030 * config/rs6000/vsx.md: Adjust.
16031 * doc/md.texi (Machine Constraints): Adjust.
16032
16033 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16034
16035 * config/rs6000/constraints.md (define_register_constraint "wv"):
16036 Delete.
16037 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16038 (rs6000_init_hard_regno_mode_ok): Adjust.
16039 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16040 RS6000_CONSTRAINT_wv.
16041 * config/rs6000/rs6000.md: Adjust.
16042 * config/rs6000/vsx.md: Adjust.
16043 * doc/md.texi (Machine Constraints): Adjust.
16044
16045 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16046
16047 * config/rs6000/constraints.md (define_register_constraint "wi"):
16048 Delete.
16049 (define_register_constraint "wt"): Delete.
16050 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16051 (rs6000_init_hard_regno_mode_ok): Adjust.
16052 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16053 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16054 * config/rs6000/rs6000.md: Adjust.
16055 * config/rs6000/vsx.md: Adjust.
16056 * doc/md.texi (Machine Constraints): Adjust.
16057
16058 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16059
16060 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16061 const.
16062 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16063 default_elf_asm_output_external.
16064
16065 2019-06-04 Martin Liska <mliska@suse.cz>
16066
16067 * ipa-icf.c (INCLUDE_LIST): Remove.
16068 (sem_item_optimizer::execute): Remove call to init_wpa.
16069 * ipa-icf.h (init_wpa): Remove.
16070
16071 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16072
16073 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16074 conditional on combined for simd.
16075 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16076 member.
16077 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16078 constructs, don't remove lastprivate_conditional_map, but instead set
16079 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16080 to parent construct temporaries.
16081 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16082 like !ctx->lastprivate_conditional_map.
16083 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16084 use up->outer context instead of up.
16085 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16086 gimple_omp_for_combined_p.
16087 (expand_omp_for_static_nochunk): Likewise.
16088 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16089 probably moved over into expand_omp_for_generic rather than being copied
16090 there.
16091
16092 2019-06-04 Martin Liska <mliska@suse.cz>
16093
16094 * value-prof.c (dump_histogram_value): Fix typo.
16095 (gimple_mod_subtract_transform): Likewise.
16096
16097 2019-06-04 Richard Biener <rguenther@suse.de>
16098
16099 PR middle-end/90726
16100 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16101 (tree_contains_chrecs): Likewise.
16102 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16103 exponential behaivor from ...
16104 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16105 ... here.
16106 (expression_expensive_p): Avoid exponential behavior and compute
16107 expanded size, rejecting any expansion.
16108 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16109 (idx_contains_abnormal_ssa_name_p): Likewise.
16110 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16111 (contains_abnormal_ssa_name_p): Simplify and use
16112 walk_tree_without_duplicates.
16113
16114 2019-06-04 Richard Biener <rguenther@suse.de>
16115
16116 PR tree-optimization/90738
16117 Revert
16118 2019-06-03 Richard Biener <rguenther@suse.de>
16119
16120 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16121 full reference tree and record in ref->ref.
16122 (vn_reference_lookup_3): Pass in original ref to
16123 ao_ref_init_from_vn_reference.
16124 (vn_reference_lookup): Likewise.
16125 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16126 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16127 Handle non-decl bases in the original reference.
16128
16129 2019-06-04 Martin Liska <mliska@suse.cz>
16130
16131 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16132 number of references.
16133 (sem_item_optimizer::do_congruence_step):
16134 (sem_item_optimizer::worklist_push): Dump how references
16135 a class has.
16136 (sem_item_optimizer::worklist_pop): Use heap.
16137 (sem_item_optimizer::process_cong_reduction): Likewise.
16138 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16139
16140 2019-06-04 Martin Liska <mliska@suse.cz>
16141
16142 * ipa-icf.h (struct sem_usage_pair_hash): New.
16143 (sem_usage_pair_hash::hash): Likewise.
16144 (sem_usage_pair_hash::equal): Likewise.
16145 (struct sem_usage_hash): Likewise.
16146 * ipa-icf.c (sem_item::sem_item): Initialize
16147 referenced_by_count.
16148 (sem_item::add_reference): Register a reference
16149 in ref_map and not in target->usages.
16150 (sem_item::setup): Remove initialization of
16151 dead vectors.
16152 (sem_item::~sem_item): Remove usage of dead vectors.
16153 (sem_item::dump): Remove dump of references.
16154 (sem_item_optimizer::sem_item_optimizer): Initialize
16155 m_references.
16156 (sem_item_optimizer::read_section): Remove useless
16157 dump.
16158 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16159 (sem_item_optimizer::build_graph): Pass m_references
16160 to ::add_reference.
16161 (sem_item_optimizer::verify_classes): Remove usage of dead
16162 vectors.
16163 (sem_item_optimizer::traverse_congruence_split): Return true
16164 when a class is split.
16165 (sem_item_optimizer::do_congruence_step_for_index): Use
16166 hash_map for look up of (sem_item *, index). That brings
16167 significant speed up.
16168 (sem_item_optimizer::do_congruence_step): Return true
16169 when a split is done.
16170 (congruence_class::is_class_used): Use referenced_by_count.
16171
16172 2019-06-04 Alan Modra <amodra@gmail.com>
16173
16174 PR target/90689
16175 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16176 error.
16177
16178 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16179
16180 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16181 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16182 (rs6000_secondary_reload_simple_move): Adjust.
16183 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16184 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16185 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16186 comment.
16187 (power6x): Adjust.
16188 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16189 (floatunssi<mode>2_lfiwzx): Adjust.
16190 (fix_trunc<mode>si2_stfiwx): Adjust.
16191 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16192 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16193 (mfpgpr): Mark as deprecated.
16194 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16195 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16196 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16197
16198 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16199
16200 * config/rs6000/constraints.md (define_register_constraint "wg"):
16201 Delete.
16202 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16203 RS6000_CONSTRAINT_wg.
16204 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16205 (rs6000_init_hard_regno_mode_ok): Adjust.
16206 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16207 Delete "wg" alternatives.
16208 * doc/md.texi (Machine Constraints): Adjust.
16209
16210 2019-06-03 Alan Modra <amodra@gmail.com>
16211
16212 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16213 (get_uncond_jump_length): Assert length less than INT_MAX and
16214 non-negative.
16215
16216 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16217
16218 PR middle-end/64242
16219 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16220 block.
16221 (expand_builtin_nonlocal_goto): Likewise.
16222
16223 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16224
16225 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16226 (aarch64_asm_output_external): Declare.
16227 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16228 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16229 (aarch64_asm_output_alias): New.
16230 (aarch64_asm_output_external): New.
16231 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16232 (ASM_OUTPUT_EXTERNAL): Define.
16233
16234 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16235 * tree-vrp.h (value_range_base::nonzero_p): New.
16236 (value_range_base::set_nonnull): Rename to...
16237 (value_range_base::set_nonzero): ...this.
16238 (value_range_base::set_null): Rename to...
16239 (value_range_base::set_zero): ...this.
16240 (value_range::set_nonnull): Remove.
16241 (value_range::set_null): Remove.
16242 * tree-vrp.c (range_is_null): Remove.
16243 (range_is_nonnull): Remove.
16244 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16245 instead of range_is_*null.
16246 (extract_range_from_unary_expr): Same.
16247 (value_range_base::set_nonnull): Rename to...
16248 (value_range_base::set_nonzero): ...this.
16249 (value_range::set_nonnull): Remove.
16250 (value_range_base::set_null): Rename to...
16251 (value_range_base::set_zero): ...this.
16252 (value_range::set_null): Remove.
16253 (extract_range_from_binary_expr): Rename set_*null uses to
16254 set_*zero.
16255 (extract_range_from_unary_expr): Same.
16256 (union_helper): Same.
16257 * vr-values.c (get_value_range): Use set_*zero instead of
16258 set_*null.
16259 (vr_values::extract_range_from_binary_expr): Same.
16260 (vr_values::extract_range_basic): Same.
16261
16262 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16263
16264 PR driver/90684
16265 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16266
16267 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16268
16269 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16270 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16271 Rename to...
16272 (aarch64_<su>abd<mode>_3): ... This.
16273 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16274
16275 2019-06-03 Richard Biener <rguenther@suse.de>
16276
16277 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16278 full reference tree and record in ref->ref.
16279 (vn_reference_lookup_3): Pass in original ref to
16280 ao_ref_init_from_vn_reference.
16281 (vn_reference_lookup): Likewise.
16282 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16283 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16284 Handle non-decl bases in the original reference.
16285
16286 2019-06-03 Martin Liska <mliska@suse.cz>
16287
16288 * doc/generic.texi: Remove Java Trees.
16289
16290 2019-06-03 Martin Liska <mliska@suse.cz>
16291
16292 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16293 returns 0 when operands are equal.
16294
16295 2019-06-03 Richard Biener <rguenther@suse.de>
16296
16297 PR tree-optimization/90716
16298 * tree-loop-distribution.c (destroy_loop): Process blocks in
16299 correct order.
16300
16301 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16302
16303 PR target/88837
16304 * vector-builder.h (vector_builder::count_dups): New method.
16305 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16306 Declare prototype.
16307 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16308 (vec_init<mode><Vel>): New pattern.
16309 * config/aarch64/aarch64.c (emit_insr): New function.
16310 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16311 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16312 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16313 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16314
16315 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16316
16317 PR tree-optimization/90681
16318 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16319 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16320 special case for SLP, but fail on non-groupped loads.
16321
16322 2019-06-03 Martin Liska <mliska@suse.cz>
16323
16324 * cfg.c (debug): Use TDF_DETAILS for debug and
16325 print edge info only once.
16326
16327 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16328
16329 PR fortran/90539
16330 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16331
16332 2019-06-01 Martin Sebor <msebor@redhat.com>
16333
16334 PR middle-end/90694
16335 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16336
16337 2019-05-31 Jan Hubicka <jh@suse.cz>
16338
16339 * alias.c: Include ipa-utils.h.
16340 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16341 * ipa-devirt.c (prevailing_odr_type): New.
16342 * ipa-utils.h (previaling_odr_type): Declare.
16343
16344 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16345 Hongtao Liu <hongtao.liu@intel.com>
16346
16347 PR target/89355
16348 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16349 NOTE_INSN_DELETED_LABEL check.
16350
16351 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16352 Robert Suchanek <robert.suchanek@mips.com>
16353
16354 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16355 and 3rd operands of the fmadd/fmsub/maddv builtin.
16356
16357 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16358
16359 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16360 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16361 on OMP_SIMD if not nested inside of worksharing loop that also has
16362 lastprivate conditional clause for the same decl.
16363 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16364 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16365 on simd.
16366 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16367 on simd construct.
16368 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16369 on simd construct.
16370 (lower_lastprivate_clauses): Likewise.
16371 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16372 calling lower_rec_input_clauses.
16373 (lower_omp_for): Likewise.
16374 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16375 clause on simd construct.
16376 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16377 OMP_CLAUSE__CONDTEMP_ clause is present.
16378
16379 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16380 ivar and lvar.
16381
16382 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16383
16384 PR c/43673
16385 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16386 TEX_D32, TEX_D64 or TEX_D128.
16387
16388 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16389
16390 * match.pd (~(vec?cst1:cst2)): New transformation.
16391
16392 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16393
16394 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16395 ((size_t)(A /[ex] B) CMP C): New transformation.
16396
16397 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16398
16399 * doc/md.texi: Document define_insn_and_rewrite.
16400 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16401 * gensupport.c (queue_elem): Update comment.
16402 (replace_operands_with_dups): New function.
16403 (gen_rewrite_sequence): Likewise.
16404 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16405 * read-rtl.c (apply_subst_iterator): Likewise.
16406 (add_condition_to_rtx, named_rtx_p): Likewise.
16407 (rtx_reader::read_rtx_operand): Likewise.
16408 * config/aarch64/aarch64-sve.md
16409 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16410 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16411 define_insn_and_rewrite.
16412 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16413 Remove separate define_split.
16414
16415 2019-05-31 Jan Hubicka <jh@suse.cz>
16416
16417 * tree-ssa-alias.c (type_has_components_p): New function.
16418 (aliasing_component_refs_p): Use it.
16419
16420 2019-05-31 Martin Liska <mliska@suse.cz>
16421
16422 * gdbhooks.py: Add const_tree to TreePrinter.
16423
16424 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16425
16426 PR debug/86964
16427 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16428 * doc/invoke.texi (Debugging Options): Document new default of
16429 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16430
16431 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16432
16433 PR tree-optimization/90671
16434 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16435 template_block used to be empty on the first call, don't use
16436 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16437 seq with bb_seq and set it with set_bb_seq.
16438
16439 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16440
16441 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16442
16443 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16444 Michael Meissner <meissner@linux.ibm.com>
16445
16446 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16447 (prefixed_mem_operand): Likewise.
16448 (non_prefixed_mem_operand): Likewise.
16449 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16450 prototype.
16451 * config/rs6000/rs6000.c (print_operand_address): Handle
16452 PC-relative addresses.
16453 (mode_supports_prefixed_address_p): New function.
16454 (rs6000_prefixed_address): New function.
16455 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16456 (SYMBOL_REF_PCREL_P): Likewise.
16457
16458 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16459
16460 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16461 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16462 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16463 is nested inside of parallel region, add _condtemp_ clause to both.
16464 * tree-nested.c (convert_nonlocal_omp_clauses,
16465 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16466 assertion failure.
16467 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16468 member.
16469 * omp-general.c (omp_extract_for_data): Compute it.
16470 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16471 (lower_rec_input_clauses): Likewise.
16472 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16473 clause is already present, just add one further one after it.
16474 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16475 (lower_send_shared_vars): Clear _condtemp_ vars.
16476 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16477 or section or taskgroup.
16478 * omp-expand.c (determine_parallel_type): Disallow combining only if
16479 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16480 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16481 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16482 expand_omp_for_static_chunk, expand_omp_for): Use
16483 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16484 determine if a special set of API routines are needed and if condtemp
16485 needs to be initialized, while always initialize cond_var if
16486 fd->lastprivate_conditional is non-zero.
16487
16488 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16489 Michael Meissner <meissner@linux.ibm.com>
16490
16491 * config/rs6000/constraints.md (eI): New constraint.
16492 * config/rs6000/predicates.md (cint34_operand): New predicate.
16493 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16494 (SIGNED_34BIT_OFFSET_P): Likewise.
16495 * doc/md.texi (eI): Document constraint.
16496
16497 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16498
16499 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16500
16501 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16502 Michael Meissner <meissner@linux.ibm.com>
16503
16504 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16505 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16506 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16507 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16508 (OTHER_FUTURE_MASKS): Likewise.
16509 (POWERPC_MASKS): Likewise.
16510 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16511 specified without -mprefixed-addr or -mcpu=future. Error if
16512 -mprefixed-addr is specified without -mcpu=future.
16513 (rs6000_opt_masks): Add entry for prefixed-addr.
16514 * rs6000.opt (mprefixed-addr): New option.
16515
16516 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16517
16518 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16519 cfun->is_thunk check.
16520
16521 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16522
16523 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16524 to length.
16525
16526 2019-05-30 Martin Liska <mliska@suse.cz>
16527
16528 * gdbinit.in: Fix 'ptc' command. Add trt
16529 that prints TREE_TYPE($).
16530
16531 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16532 Alan Modra <amodra@gmail.com>
16533
16534 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16535 calls here...
16536 (rs6000_indirect_call_template_1): ...and here.
16537 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16538 plt16_ha, plt16_lo, mtctr indirect calls. Use
16539 rs6000_pltseq_enum.
16540 (rs6000_decl_ok_for_sibcall): New function.
16541 (rs6000_function_ok_for_sibcall): Refactor.
16542 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16543 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16544 when pcrel. Reorganize.
16545 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16546 * rs6000.h (rs6000_pltseq_enum): New enum.
16547 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16548 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16549 (*pltseq_plt16_ha): Likewise.
16550 (*pltseq_plt16_lo): Likewise.
16551 (*pltseq_mtctr): Likewise.
16552 (*pltseq_plt_pcrel): New insn.
16553 (*call_local_aix): Handle @notoc calls.
16554 (*call_value_local_aix): Likewise.
16555 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16556 (*call_value_nonlocal_aix): Likewise.
16557 (*call_indirect_pcrel): New insn.
16558 (*call_value_indirect_pcrel): Likewise.
16559
16560 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16561
16562 * config/i386/sse.md (*save_multiple<mode>): Rename from
16563 save_multiple<mode>.
16564 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16565 (*restore_multiple_and_return<mode>): Rename from
16566 restore_multiple_and_return<mode>.
16567 (*restore_multiple_leave_return<mode>): Rename from
16568 restore_multiple_leave_return<mode>.
16569
16570 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16571
16572 * config.gcc (rx-*-linux*): New target.
16573 * config/rx/elf.opt: New file.
16574 * config/rx/linux.h: Likewise.
16575 * config/rx/t-linux: Likewise.
16576 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16577 make it zero.
16578 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16579 (ASM_APP_OFF): Likewise.
16580 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16581 moved elsewhere.
16582
16583 2019-05-29 Jan Hubicka <jh@suse.cz>
16584
16585 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16586 variants are pointer equivalent.
16587
16588 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16589
16590 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16591 * config/aarch64/aarch64-sve2.md: New file.
16592 (<u>avg<mode>3_floor): New pattern.
16593 (<u>avg<mode>3_ceil): Likewise.
16594 (*<sur>h<addsub><mode>): Likewise.
16595 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16596 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16597
16598 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16599
16600 PR bootstrap/90543
16601 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16602 for var_opt_string printing. In cl_optimization_print_diff, print
16603 (null) instead of invoking undefined behavior if one of the
16604 var_opt_string pointers is NULL and use && instead of first || in the
16605 guarding condition. For var_target_other options, handle const char *
16606 target variables similarly to const char * optimize node variables.
16607
16608 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16609
16610 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16611 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16612 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16613 Add autib1716 and pacib1716 initialisation.
16614 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16615 for autib1716 and pacib1716.
16616 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16617 aarch64_post_cfi_startproc): Define.
16618 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16619 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16620 aarch64_handle_pac_ret_protection): Set default sign key to A.
16621 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16622 aarch64_expand_prologue): Add check for b-key.
16623 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16624 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16625 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16626 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16627 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16628 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16629 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16630 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16631 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16632 pauth_hint_num_a with pauth_hint_num.
16633 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16634 pauth_hint_num_a with pauth_hint_num.
16635 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16636 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16637 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16638 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16639 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16640 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16641 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16642 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16643 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16644 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16645 UNSPEC_AUTIA1716 respectively.
16646 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16647 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16648 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16649 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16650 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16651 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16652
16653 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16654
16655 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16656 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16657 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16658 explicit clause on combined parallel into implicit shared clause.
16659 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16660 and firstprivate if the decl has one too from combined parallel to
16661 the worksharing construct.
16662
16663 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16664 Michael Meissner <meissner@linux.ibm.com>
16665
16666 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16667
16668 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16669
16670 * rtl.h (LABEL_REF_P): New #define.
16671
16672 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16673
16674 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16675
16676 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16677
16678 * internal-fn.c: Marked mask_load_direct as vectorizable.
16679 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16680 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16681 combined even if masks different with allow_slp_p param.
16682 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16683 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16684 dissolve SLP-only vectorizable groups when SLP has been discarded.
16685 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16686 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16687 masks.
16688 (vect_build_slp_tree_1): Fixed comment typo.
16689 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16690 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16691 loads for SLP only.
16692 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16693 vectorizable.
16694 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16695
16696 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16697
16698 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16699 Remove obsolete use_thunk reference.
16700 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16701 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16702 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16703 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16704 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16705 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16706 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16707 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16708 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16709
16710 2019-05-28 Nathan Sidwell <nathan@acm.org>
16711
16712 * tree.h (IDENTIFIER_ANON_P): New.
16713 (anon_aggrname_format, anon_aggname_p): Don't declare.
16714 (make_anon_name): Declare.
16715 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16716 (hash_tree): Likewise.
16717 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16718 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16719 (anon_cnt, make_anon_name): New.
16720
16721 2019-05-28 Martin Liska <mliska@suse.cz>
16722
16723 PR other/90315
16724 * opts-global.c (decode_options): Print help for all
16725 help_option_arguments.
16726 * opts.c (print_help): Add new argument.
16727 (common_handle_option): Remember all values into
16728 help_option_arguments.
16729 * opts.h (print_help): Add new argument.
16730
16731 2019-05-28 Martin Liska <mliska@suse.cz>
16732
16733 PR ipa/90555
16734 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16735 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16736 (func_checker::compare_bb): Call compare_loops.
16737
16738 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16739
16740 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16741 on sections construct.
16742 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16743 construct.
16744 (lower_omp_sections): Handle lastprivate conditional.
16745 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16746 lastprivate_conditional_map.
16747 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16748
16749 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16750 critical, taskgroup and section regions when looking for a region
16751 with non-NULL lastprivate_conditional_map.
16752
16753 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16754
16755 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16756 (*ix86_gen_sub3): Ditto.
16757 (*ix86_gen_sub3_carry): Ditto.
16758 (*ix86_gen_one_cmpl2): Ditto.
16759 (*ix86_gen_andsp): Ditto.
16760 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16761 (gen_and2_insn): New static function.
16762 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16763 Use gen_add3_insn instead of ix86_gen_add3.
16764 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16765 instead of ix86_gen_add3.
16766 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16767 Use gen_sub3_insn instead of ix86_gen_sub3.
16768 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16769 instead of ix86_gen_add3.
16770 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16771 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16772 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16773 * config/i386/i386-options.c (ix86_option_override_internal):
16774 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16775 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16776
16777 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16778
16779 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16780 and DW_OP_GNU_const_index opcodes.
16781
16782 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16783
16784 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16785
16786 2019-05-27 Richard Biener <rguenther@suse.de>
16787
16788 PR tree-optimization/90637
16789 * tree-ssa-sink.c (statement_sink_location): Honor the
16790 computed sink location for single-uses.
16791
16792 2019-05-27 Richard Biener <rguenther@suse.de>
16793
16794 PR middle-end/90610
16795 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16796 a bit-insert.
16797
16798 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16799
16800 * config/i386/i386.md (@sub<mode>3_carry): Rename
16801 from sub<mode>3_carry.
16802 (@leave_<mode>): New expander.
16803 (*leave): Rename from leave.
16804 (*leave_rex64): Rename from leave_rex64.
16805 (@monitorx_<mode>): Rename from monitorx_<mode>.
16806 (@clzero_<mode>): Rename from clzero_<mode>.
16807 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16808 from sse3_monitor_<mode>.
16809 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16810 (*ix86_gen_leave): Ditto.
16811 (*ix86_gen_monitor): Ditto.
16812 (*ix86_gen_monitorx): Ditto.
16813 (*ix86_gen_clzero): Ditto.
16814 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16815 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16816 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16817 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16818 Use gen_sse3_monitor instead of ix86_gen_monitor.
16819 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16820 instead of ix86_gen_monitorx.
16821 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16822 instead of ix86_gen_clzero.
16823 * config/i386/i386-options.c (ix86_option_override_internal):
16824 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16825 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16826
16827 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16828
16829 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16830 Rename from tls_global_dynamic_64_<mode>.
16831 (@tls_local_dynamic_base_64_<mode>): Rename from
16832 tls_local_dynamic_base_64_<mode>.
16833 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16834 Remove indirect function.
16835 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16836 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16837 instead of ix86_gen_tls_global_dynamic_64.
16838 Use gen_tls_local_dynamic_base_64 instead of
16839 ix86_gen_tls_local_dynamic_base_64.
16840 * config/i386/i386-options.c (ix86_option_override_internal):
16841 Do not initialize ix86_gen_tls_global_dynamic_64 and
16842 ix86_gen_tls_local_dynamic_base_64.
16843
16844 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16845
16846 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16847 Rename from pro_epilogue_adjust_stack_<mode>_add.
16848 (@pro_epilogue_adjust_stack_sub_<mode>)
16849 Rename from pro_epilogue_adjust_stack_<mode>_sub.
16850 (@allocate_stack_worker_probe_<mode>):
16851 Rename from allocate_stack_worker_probe_<mode>.
16852 (allocate_stack): Use gen_allocate_stack_worker_probe.
16853 (probe_stack): Use gen_probe_stack_1.
16854 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16855 (@adjust_stack_and_probe_<mode>): Rename from
16856 adjust_stack_and_probe<mode>.
16857 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16858 (stack_protect_set): Use gen_stack_protect_set_1.
16859 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16860 (stack_protect_test): Use gen_stack_protect_test_1.
16861 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16862 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16863 Remove indirect function.
16864 (*ix86_gen_adjust_stack_and_probe): Ditto.
16865 (*ix86_gen_probe_stack_range): Ditto.
16866 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16867 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16868 (ix86_adjust_stack_and_probe_stack_clash): Use
16869 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
16870 (ix86_adjust_stack_and_probe): Ditto.
16871 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
16872 of ix86_gen_probe_stack_range.
16873 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
16874 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
16875 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
16876 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
16877 CODE_FOR_stack_protect_test_{si,di}.
16878 * config/i386/i386-options.c (ix86_option_override_internal):
16879 Do not initialize ix86_gen_allocate_stack_worker,
16880 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16881
16882 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
16883
16884 * doc/invoke.texi (Link Options): Many editorial changes around
16885 -flinker-output.
16886
16887 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16888
16889 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
16890 pre-Solaris 11 referene and most Studio compiler details.
16891
16892 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
16893
16894 PR target/90530
16895 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
16896 DImode to SImode in floating-point registers on 64-bit target.
16897 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
16898 register_operand in xmpyu patterns.
16899
16900 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16901
16902 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
16903 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
16904 OMP_CLAUSE__REDUCTEMP_.
16905 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16906 OMP_CLAUSE__CONDTEMP_.
16907 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
16908 * tree-pretty-print.c (dump_omp_clause): Likewise.
16909 * tree-nested.c (convert_nonlocal_omp_clauses,
16910 convert_local_omp_clauses): Likewise.
16911 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
16912 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
16913 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
16914 on OMP_FOR.
16915 (gimplify_omp_for): Warn and disable conditional modifier from
16916 lastprivate on loop iterators.
16917 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
16918 member.
16919 * omp-general.c (omp_extract_for_data): Initialize it.
16920 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
16921 member.
16922 (delete_omp_context): Delete it.
16923 (lower_lastprivate_conditional_clauses): New function.
16924 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
16925 handle lastprivate conditional clauses.
16926 (lower_reduction_clauses): Add CLIST argument, emit it into
16927 the critical section if any.
16928 (lower_omp_sections): Adjust lower_lastprivate_clauses and
16929 lower_reduction_clauses callers.
16930 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
16931 to lower_lastprivate_clauses.
16932 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
16933 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
16934 clist into a critical section if not emitted there already by
16935 lower_reduction_clauses.
16936 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
16937 callers.
16938 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
16939 conditional variables.
16940 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
16941 clause is present.
16942 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16943 expand_omp_for_static_chunk): Handle lastprivate conditional.
16944 (expand_omp_for): Handle fd.lastprivate_conditional like
16945 fd.have_reductemp.
16946
16947 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16948
16949 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
16950 kernel does not exit cleanly.
16951 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
16952
16953 2019-05-24 Jason Merrill <jason@redhat.com>
16954
16955 Revert:
16956 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16957
16958 2019-05-24 Richard Biener <rguenther@suse.de>
16959
16960 PR testsuite/90607
16961 * tree-loop-distribution.c (struct partition): Add location
16962 member.
16963 (partition_alloc): Initialize all fields.
16964 (generate_memset_builtin): Use the location recorded in the
16965 partition for the generated call.
16966 (generate_memcpy_builtin): Likewise.
16967 (classify_partition): Record the location of a single store
16968 as location for the partition.
16969
16970 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
16971
16972 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
16973 for lo-part.
16974
16975 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
16976
16977 PR target/90588
16978 * common/config/aarch64/aarch64-common.c
16979 (aarch64_rewrite_selected_cpu): Change local temporary variable
16980 type from unsigned long to uint64_t.
16981 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
16982 aarch64_get_extension_string_for_isa_flags): Change declaration to
16983 match new definition by replacing unsigned long with uint64_t.
16984
16985 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16986
16987 PR target/90568
16988 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
16989 gen_attr_type just once instead of 4-7 times. Formatting fixes.
16990 Handle stack_protect_test_<mode> codegen similarly to corresponding
16991 sub instruction.
16992
16993 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
16994
16995 * config/i386/darwin.h: Reject -mfentry*.
16996 * doc/sourcebuild.texi: Document mfentry target support.
16997
16998 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
16999
17000 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17001 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17002 false for PC-relative functions.
17003 (rs6000_output_function_prologue): Change called function name to
17004 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17005 name,1" for PC-relative functions.
17006 (rs6000_elf_declare_function_name): Change called function name to
17007 rs6000_global_entry_point_prologue_needed_p.
17008
17009 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17010
17011 PR target/90552
17012 * config/i386/i386.c (gen_rtx_cost):
17013 Use ix86_tune_cost instead of ix86_cost.
17014
17015 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17016 Michael Meissner <meissner@linux.ibm.com>
17017 Segher Boessenkool <segher@kernel.crashing.org>
17018
17019 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17020 OPTION_MASK_PCREL.
17021 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17022 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17023 (rs6000_fndecl_pcrel_p): Likewise.
17024 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17025 error if -mpcrel is requested without -mcpu=future.
17026 (rs6000_opt_masks): Add entry for pcrel.
17027 (rs6000_fndecl_pcrel_p): New function.
17028 (rs6000_pcrel_p): Likewise.
17029 * config/rs6000/rs6000.opt (mpcrel): New option.
17030 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17031
17032 2019-05-23 Jan Hubicka <jh@suse.cz>
17033 Martin Liska <mliska@suse.cz>
17034
17035 PR tree-optimization/90576
17036 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17037 poly_int_tree_p.
17038 (aliasing_component_refs_p): Fix three way size compare conditional;
17039 give up earlier in case we can not decide on equivalence.
17040
17041 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17042 Michael Meissner <meissner@linux.ibm.com>
17043 Segher Boessenkool <segher@kernel.crashing.org>
17044
17045 * config.gcc: Add future cpu.
17046 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17047 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17048 #define.
17049 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17050 (RS6000_CPU): New instantiation for future cpu.
17051 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17052 PROCESSOR_FUTURE.
17053 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17054 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17055 * config/rs6000/rs6000-tables.opt: Regenerate.
17056 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17057 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17058 (rs6000_machine_from_flags): Handle future cpu.
17059 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17060 PROCESSOR_POWER9 for now.
17061 (rs6000_adjust_cost): Likewise.
17062 (rs6000_issue_rate): Likewise.
17063 (rs6000_register_move_cost): Likewise.
17064 (rs6000_opt_masks): Add entry for future.
17065 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17066 (MASK_FUTURE): New #define.
17067 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17068 * config/rs6000/rs6000.opt (mfuture): New target option.
17069 * doc/invoke.texi (mcpu): Add future cpu.
17070
17071 2019-05-23 Martin Liska <mliska@suse.cz>
17072
17073 PR c++/90587
17074 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17075 operation points to a temporary (pointed via tree_to_wide_ref)
17076 that is out of scope after the &.
17077
17078 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17079
17080 PR c++/90592
17081 * doc/extend.texi (Function Names): Add missing word.
17082
17083 2019-05-23 Richard Biener <rguenther@suse.de>
17084
17085 PR tree-optimization/88440
17086 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17087 at -O[2s]+.
17088 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17089 generated call.
17090 (generate_memcpy_builtin): Likewise.
17091 (distribute_loop): Pass in whether to only distribute patterns.
17092 (prepare_perfect_loop_nest): Also allow size optimization.
17093 (pass_loop_distribution::execute): When optimizing a loop
17094 nest for size allow pattern replacement.
17095
17096 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17097
17098 PR target/90568
17099 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17100 of xor.
17101
17102 2019-05-23 Martin Liska <mliska@suse.cz>
17103
17104 PR sanitizer/90570
17105 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17106 expression similarly to gimplify_decl_expr.
17107
17108 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17109
17110 * cse.c (cse_dump_path): s/dump_file/f.
17111
17112 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17113
17114 PR c++/90462
17115 * diagnostic-format-json.cc: Include "selftest.h".
17116 (json_from_expanded_location): Only add "file" key for non-NULL
17117 file strings.
17118 (json_from_location_range): Don't add "start" and "finish"
17119 children if they are UNKNOWN_LOCATION.
17120 (selftest::test_unknown_location): New selftest.
17121 (selftest::test_bad_endpoints): New selftest.
17122 (selftest::diagnostic_format_json_cc_tests): New function.
17123 * json.cc (json::object::get): New function.
17124 (selftest::test_object_get): New selftest.
17125 (selftest::json_cc_tests): Call it.
17126 * json.h (json::object::get): New decl.
17127 * selftest-run-tests.c (selftest::run_tests): Call
17128 selftest::diagnostic_format_json_cc_tests.
17129 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17130 decl.
17131
17132 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17133 Andrew Stubbs <amd@codesourcery.com>
17134
17135 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17136 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17137 (kernel): Rename to...
17138 (main_kernel): ... this.
17139 (load_image): Load _init_array and _fini_array kernels.
17140 (run): Add argument for kernel to run.
17141 (main): Run init_array_kernel before main_kernel, and
17142 fini_array_kernel after.
17143 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17144 amdgpu_hsa_kernel attribute on functions.
17145 (gcn_disable_constructors): Delete.
17146 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17147 * config/gcn/crt0.c (size_t): Define.
17148 (_init_array, _fini_array): New.
17149 (__preinit_array_start, __preinit_array_end,
17150 __init_array_start, __init_array_end,
17151 __fini_array_start, __fini_array_end): Declare weak references.
17152
17153 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17154
17155 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17156
17157 2019-05-22 Jason Merrill <jason@redhat.com>
17158
17159 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17160
17161 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17162
17163 PR target/88483
17164 * config/i386/i386-options.c (ix86_init_machine_status): Set
17165 stack_frame_required to true.
17166 * config/i386/i386.c (ix86_get_frame_size): New function.
17167 (ix86_frame_pointer_required): Replace get_frame_size with
17168 ix86_get_frame_size.
17169 (ix86_compute_frame_layout): Likewise.
17170 (ix86_find_max_used_stack_alignment): Changed to void. Set
17171 stack_frame_required.
17172 (ix86_finalize_stack_frame_flags): Always call
17173 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17174 ix86_get_frame_size.
17175 * config/i386/i386.h (machine_function): Add stack_frame_required.
17176
17177 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17178
17179 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17180
17181 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17182
17183 * common/config/aarch64/aarch64-common.c
17184 (struct aarch64_option_extension, struct processor_name_to_arch,
17185 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17186 aarch64_contains_opt,
17187 aarch64_get_extension_string_for_isa_flags): Change type of
17188 variables storing flags to uint64_t.
17189 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17190 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17191 * config/aarch64/aarch64.c (struct processor,
17192 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17193 aarch64_validate_march, aarch64_override_options,
17194 aarch64_option_print, aarch64_handle_attr_isa_flags,
17195 aarch64_declare_function_name, aarch64_start_file): Make flag
17196 variables uint64_t.
17197 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17198 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17199 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17200 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17201 * config/aarch64/driver-aarch64.c
17202 (struct aarch64_arch_extension, struct aarch64_core_data,
17203 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17204 flag variables uint64_t.
17205 * doc/invoke.texi: Add documentation for new arguments.
17206
17207 2019-05-22 Richard Biener <rguenther@suse.de>
17208
17209 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17210 rewrite ...
17211 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17212
17213 2019-05-22 Martin Liska <mliska@suse.cz>
17214
17215 PR lto/90500
17216 * doc/extend.texi: Document the change.
17217
17218 2019-05-22 Richard Biener <rguenther@suse.de>
17219
17220 PR tree-optimization/90450
17221 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17222 (mem_ref_hasher::equal): Check it.
17223 (mem_ref_alloc): Initialize it.
17224 (gather_mem_refs_stmt): Set it.
17225
17226 2019-05-22 Richard Biener <rguenther@suse.de>
17227
17228 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17229 Add ABS_EXPR.
17230 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17231 as ABSU_EXPR.
17232
17233 2019-05-22 Alan Modra <amodra@gmail.com>
17234
17235 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17236 (ASM_CPU_SPEC): Conditionally add -many.
17237 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17238 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17239 (rs6000_file_start): ..extracted from here, and modified to
17240 test all ISA bits.
17241 (rs6000_output_function_prologue): Emit .machine as necessary.
17242
17243 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17244
17245 PR middle-end/90553
17246 * ira-lives.c (process_bb_node_lives): Consider defs
17247 for a call insn to be die before the call, not after.
17248
17249 * function.c (assign_parm_setup_block): Raise alignment of
17250 stacked parameter only for STRICT_ALIGNMENT targets.
17251
17252 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17253
17254 * config/rs6000/constraints.md (define_register_constraint "wz"):
17255 Delete.
17256 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17257 RS6000_CONSTRAINT_wz.
17258 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17259 (rs6000_init_hard_regno_mode_ok): Adjust.
17260 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17261 * doc/md.texi (Machine Constraints): Adjust.
17262
17263 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17264
17265 * config/rs6000/constraints.md (define_register_constraint "wl"):
17266 Delete.
17267 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17268 RS6000_CONSTRAINT_wl.
17269 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17270 (rs6000_init_hard_regno_mode_ok): Adjust.
17271 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17272 * doc/md.texi (Machine Constraints): Adjust.
17273
17274 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17275
17276 * config/rs6000/constraints.md (define_register_constraint "wm"):
17277 Delete.
17278 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17279 RS6000_CONSTRAINT_wm.
17280 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17281 (rs6000_init_hard_regno_mode_ok): Adjust.
17282 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17283 * doc/md.texi (Machine Constraints): Adjust.
17284
17285 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17286
17287 * config/rs6000/constraints.md (define_register_constraint "wk"):
17288 Delete.
17289 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17290 RS6000_CONSTRAINT_wk.
17291 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17292 (rs6000_init_hard_regno_mode_ok): Adjust.
17293 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17294 * doc/md.texi (Machine Constraints): Adjust.
17295
17296 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17297
17298 * config/rs6000/constraints.md (define_register_constraint "wj"):
17299 Delete.
17300 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17301 RS6000_CONSTRAINT_wj.
17302 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17303 (rs6000_init_hard_regno_mode_ok): Adjust.
17304 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17305 (VS_64dm): Delete.
17306 * config/rs6000/vsx.md: Ditto.
17307 * doc/md.texi (Machine Constraints): Adjust.
17308
17309 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17310
17311 * config/rs6000/constraints.md (define_register_constraint "wh"):
17312 Delete.
17313 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17314 RS6000_CONSTRAINT_wh.
17315 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17316 (rs6000_init_hard_regno_mode_ok): Adjust.
17317 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17318 * doc/md.texi (Machine Constraints): Adjust.
17319
17320 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17321
17322 PR target/90547
17323 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17324 Avoid calling gen_lowpart with CONST operand.
17325
17326 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17327
17328 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17329 field template_last_to_copy.
17330 (ssa_create_duplicates): Set it, and use it. Attempt to
17331 preserve more debug stmts.
17332
17333 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17334
17335 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17336 (signbit<mode>2): New expander
17337
17338 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17339
17340 PR bootstrap/87338
17341 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17342 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17343
17344 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17345
17346 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17347 %ebx and %ecx bafore calling cpuid with leaf 1 or
17348 non-constant leaf argument.
17349
17350 2019-05-21 Alan Modra <amodra@gmail.com>
17351
17352 PR target/90545
17353 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17354 power9 direct move cost.
17355
17356 2019-05-21 Richard Biener <rguenther@suse.de>
17357
17358 PR middle-end/90510
17359 * fold-const.c (fold_read_from_vector): New function.
17360 * fold-const.h (fold_read_from_vector): Declare.
17361 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17362 single-element insert permutations. Canonicalize selector
17363 further and fix issue with last commit.
17364
17365 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17366
17367 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17368 parameter with default value false to declaration.
17369 (split_edges_for_insertion): New inline function. Wrapper for
17370 split_critical_edges with for_edge_insertion_p = true.
17371 * tree-cfg.c (split_critical_edges): Don't split non-critical
17372 edges if for_edge_insertion_p is false. Fix whitespace.
17373 * tree-ssa-pre.c (pass_pre::execute): Call
17374 split_edges_for_insertion instead of split_critical_edges.
17375 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17376 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17377 (pass_data_sink_code): Update function name in the comment.
17378
17379 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17380
17381 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17382 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17383 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17384 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17385 positives.
17386
17387 2019-05-21 Martin Liska <mliska@suse.cz>
17388
17389 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17390 an extra newline.
17391 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17392 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17393 vec_lvsr.
17394 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17395 Quote a C type.
17396 (rs6000_function_arg): Likewise.
17397 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17398 (rs6000_expand_ternop_builtin): Use interval syntax.
17399 (get_element_number): Likewise.
17400 (altivec_expand_builtin): Likewise.
17401 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17402
17403 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17404
17405 PR c++/59813
17406 PR target/90418
17407 * function.h (struct function): Add calls_eh_return member.
17408 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17409 gimplifying __builtin_eh_return call.
17410 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17411 to cfun.
17412 (expand_call_inline): Or in src_cfun->calls_eh_return into
17413 dst_cfun->calls_eh_return.
17414 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17415 cfun->calls_eh_return.
17416 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17417 * lto-streamer-out.c (output_struct_function_base): Write
17418 calls_eh_return.
17419
17420 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17421
17422 PR rtl-optimization/43147
17423 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17424 IX86_BUILTIN_SHUFPD.
17425
17426 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17427
17428 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17429 (refs_may_alias_p_1): ... here; update stats.
17430 (refs_may_alias_p): Do not update stats here.
17431
17432 2019-05-20 Richard Biener <rguenther@suse.de>
17433
17434 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17435 doesn't produce pointers.
17436 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17437 the first operand points to.
17438
17439 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17440
17441 * tree-ssa-alias.c (compare_sizes): New function.
17442 (sompare_type_sizes): New function
17443 (aliasing_component_refs_p): Use it.
17444 (indirect_ref_may_alias_decl_p): Likewise.
17445
17446 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17447
17448 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17449
17450 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17451
17452 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17453 (LIBLSAN_EARLY_SPEC): Likewise.
17454 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17455
17456 2019-05-20 Martin Liska <mliska@suse.cz>
17457
17458 * config/i386/i386.c (ix86_libc_has_fast_function):
17459 Add ATTRIBUTE_UNUSED for the argument.
17460
17461 2019-05-20 Richard Biener <rguenther@suse.de>
17462
17463 * gimple-match-head.c: Include vec-perm-indices.h.
17464 * generic-match-head.c: Likewise.
17465 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17466 is included.
17467 * fold-const.c (fold_vec_perm): Export.
17468 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17469 (match.pd): ...here.
17470
17471 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17472
17473 * cfgloop.h (struct loop): Add simdlen member.
17474 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17475 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17476 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17477 as new argument to autovectorize_vector_sizes target hook. If
17478 loop->simdlen, pick up vector size where the vectorization factor
17479 is equal to loop->simd, and if there is none, fall back to the first
17480 successful one.
17481 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17482 caller.
17483 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17484 * omp-general.c (omp_max_vf): Likewise.
17485 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17486 * tree-vect-slp.c (vect_slp_bb): Likewise.
17487 * target.def (autovectorize_vector_sizes): Add ALL argument and
17488 document it.
17489 * doc/tm.texi: Adjust documentation.
17490 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17491 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17492 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17493 bool argument.
17494 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17495 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17496 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17497 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17498 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17499 preferred vector size is not 512-bit or 256-bit, just put those
17500 unpreferred ones last.
17501
17502 2019-05-20 Martin Liska <mliska@suse.cz>
17503
17504 * targhooks.c (default_libc_has_fast_function): New function.
17505 * targhooks.h (default_libc_has_fast_function): Likewise.
17506
17507 2019-05-20 Martin Liska <mliska@suse.cz>
17508
17509 PR middle-end/90263
17510 * builtins.c (expand_builtin_memory_copy_args): When having a
17511 target with fast mempcpy implementation do now use memcpy.
17512 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17513 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17514 * doc/tm.texi: Likewise.
17515 * doc/tm.texi.in: Likewise.
17516 * target.def:
17517 * expr.c (emit_block_move_hints): Add 2 new arguments.
17518 * expr.h (emit_block_move_hints): Bail out when libcall
17519 to memcpy would be used.
17520
17521 2019-05-20 Martin Liska <mliska@suse.cz>
17522
17523 * profile-count.c: Add vertical spacing in order
17524 to separate functions.
17525 * profile-count.h: Likewise.
17526
17527 2019-05-20 Martin Liska <mliska@suse.cz>
17528
17529 * profile-count.h: Do not use full qualified
17530 names if possible.
17531 * profile-count.c (profile_count::to_frequency): Likewise.
17532
17533 2019-05-20 Martin Liska <mliska@suse.cz>
17534
17535 * profile-count.h (enum profile_quality): Use capital letters
17536 for enum value names. Use the adjusted names.
17537 * profile-count.c: Use the adjusted names.
17538
17539 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17540
17541 * config/rs6000/constraints.md (define_register_constraint "wH"):
17542 Delete.
17543 (define_register_constraint "wI"): Delete.
17544 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17545 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17546 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17547 (rs6000_init_hard_regno_mode_ok): Adjust.
17548 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17549 resp. "d", or with "wa" as appropriate, all with "p8v".
17550 * config/rs6000/vsx.md: Ditto.
17551 * doc/md.texi (Machine Constraints): Adjust.
17552
17553 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17554
17555 * config/rs6000/constraints.md (define_register_constraint "wy"):
17556 Delete.
17557 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17558 RS6000_CONSTRAINT_wy.
17559 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17560 (rs6000_init_hard_regno_mode_ok): Adjust.
17561 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17562 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17563 (define_mode_attr Fisa): New.
17564 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17565 * doc/md.texi (Machine Constraints): Adjust.
17566
17567 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17568
17569 * config/rs6000/constraints.md (define_register_constraint "wu"):
17570 Delete.
17571 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17572 RS6000_CONSTRAINT_wu.
17573 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17574 (rs6000_init_hard_regno_mode_ok): Adjust.
17575 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17576 both with "p8v".
17577 (define_mode_attr Fa): Delete.
17578 * config/rs6000/vsx.md: Ditto.
17579 * doc/md.texi (Machine Constraints): Adjust.
17580
17581 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17582
17583 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17584 Delete.
17585 (define_register_constraint "wK"): Delete.
17586 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17587 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17588 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17589 (rs6000_init_hard_regno_mode_ok): Adjust.
17590 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17591 Replace "wK" constraint by "wH" with "p9v".
17592 * config/rs6000/vsx.md: Ditto.
17593 * doc/md.texi (Machine Constraints): Adjust.
17594
17595 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17596
17597 * config/rs6000/constraints.md (define_register_constraint "wb"):
17598 Delete.
17599 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17600 RS6000_CONSTRAINT_wb.
17601 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17602 (rs6000_init_hard_regno_mode_ok): Adjust.
17603 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17604 * config/rs6000/vsx.md: Ditto.
17605 * doc/md.texi (Machine Constraints): Adjust.
17606
17607 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17608
17609 * config/rs6000/constraints.md (define_register_constraint "wo"):
17610 Delete.
17611 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17612 RS6000_CONSTRAINT_wo.
17613 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17614 (rs6000_init_hard_regno_mode_ok): Adjust.
17615 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17616 * config/rs6000/altivec.md: Ditto.
17617 * doc/md.texi (Machine Constraints): Adjust.
17618
17619 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17620
17621 * config/darwin-c.c (darwin_register_objc_includes): Do not
17622 prepend the sysroot when building gnu-runtime header search
17623 paths.
17624
17625 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17626
17627 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17628 instead of direct output of the asm.
17629
17630 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17631
17632 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17633 argument to be type bool (was int before).
17634 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17635 at first use. Use type bool for some variables. Fix a theoretical
17636 eh_return bug for svr4.
17637
17638 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17639
17640 * config/rs6000/rs6000.md (isa): New attribute.
17641 (enabled): New attribute.
17642
17643 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17644
17645 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17646 assemble_start_function and assemble_end_function.
17647
17648 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17649
17650 PR middle-end/89433
17651 * omp-general.c (oacc_verify_routine_clauses): Change formal
17652 parameters. Add checking if already marked with an OpenACC
17653 'routine' directive. Adjust all users.
17654
17655 PR middle-end/89433
17656 * omp-general.c (oacc_build_routine_dims): Move some of its
17657 processing into...
17658 (oacc_verify_routine_clauses): ... this new function.
17659 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17660
17661 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17662
17663 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17664 formating of picbase labels to match other ports.
17665
17666 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17667
17668 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17669 in the generated code.
17670
17671 2019-05-16 Martin Sebor <msebor@redhat.com>
17672
17673 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17674 identifiers, keywords, operators, and types in diagnostics. Correct
17675 quoting, spelling, and sentence capitalization issues.
17676 (expand_builtin_atomic_is_lock_free): Same.
17677 (fold_builtin_next_arg): Same.
17678 * cfgexpand.c (expand_one_var): Same.
17679 (tree_conflicts_with_clobbers_p): Same.
17680 (expand_asm_stmt): Same.
17681 (verify_loop_structure): Same.
17682 * cgraphunit.c (process_function_and_variable_attributes): Same.
17683 * collect-utils.c (collect_execute): Same.
17684 * collect2.c (maybe_run_lto_and_relink): Same.
17685 (is_lto_object_file): Same.
17686 (scan_prog_file): Same.
17687 * convert.c (convert_to_real_1): Same.
17688 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17689 * except.c (verify_eh_tree): Same.
17690 * gcc.c (execute): Same.
17691 (eval_spec_function): Same.
17692 (run_attempt): Same.
17693 (driver::set_up_specs): Same.
17694 (compare_debug_auxbase_opt_spec_function): Same.
17695 * gcov-tool.c (unlink_gcda_file): Same.
17696 (do_merge): Same.
17697 (do_rewrite): Same.
17698 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17699 * gimplify.c (gimplify_asm_expr): Same.
17700 (gimplify_adjust_omp_clauses): Same.
17701 * hsa-gen.c (gen_hsa_addr_insns): Same.
17702 (gen_hsa_insns_for_load): Same.
17703 (gen_hsa_cmp_insn_from_gimple): Same.
17704 (gen_hsa_insns_for_operation_assignment): Same.
17705 (gen_get_level): Same.
17706 (gen_hsa_alloca): Same.
17707 (omp_simple_builtin::generate): Same.
17708 (gen_hsa_atomic_for_builtin): Same.
17709 (gen_hsa_insns_for_call): Same.
17710 * input.c (dump_location_info): Same.
17711 * ipa-devirt.c (compare_virtual_tables): Same.
17712 * ira.c (ira_setup_eliminable_regset): Same.
17713 * lra-assigns.c (lra_assign): Same.
17714 * lra-constraints.c (lra_constraints): Same.
17715 * lto-streamer-in.c (lto_input_mode_table): Same.
17716 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17717 (merge_and_complain): Same.
17718 (compile_offload_image): Same.
17719 (compile_images_for_offload_targets): Same.
17720 (debug_objcopy): Same.
17721 (run_gcc): Same.
17722 (main): Same.
17723 * opts.c (print_specific_help): Same.
17724 (parse_no_sanitize_attribute): Same.
17725 (print_help): Same.
17726 (handle_param): Same.
17727 * plugin.c (add_new_plugin): Same.
17728 (parse_plugin_arg_opt): Same.
17729 (try_init_one_plugin): Same.
17730 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17731 operators, and types in diagnostics. Correct quoting and spelling
17732 issues.
17733 * read-rtl-function.c (parse_edge_flag_token): Same.
17734 (function_reader::parse_enum_value): Same.
17735 * reg-stack.c (check_asm_stack_operands): Same.
17736 * regcprop.c (validate_value_data): Same.
17737 * sched-rgn.c (make_pass_sched_fusion): Same.
17738 * stmt.c (check_unique_operand_names): Same.
17739 * targhooks.c (default_target_option_pragma_parse): Same.
17740 * tlink.c (recompile_files): Same.
17741 * toplev.c (process_options): Same.
17742 (do_compile): Same.
17743 * trans-mem.c (diagnose_tm_1): Same.
17744 (ipa_tm_scan_irr_block): Same.
17745 (ipa_tm_diagnose_transaction): Same.
17746 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17747 format a tree code name in a diagnostic.
17748 (verify_types_in_gimple_min_lval): Same.
17749 (verify_types_in_gimple_reference): Same.
17750 (verify_gimple_call): Same.
17751 (verify_gimple_assign_unary): Same.
17752 (verify_gimple_assign_binary): Same.
17753 (verify_gimple_assign_ternary): Same.
17754 (verify_gimple_assign_single): Same.
17755 (verify_gimple_switch): Same.
17756 (verify_gimple_label): Same.
17757 (verify_gimple_phi): Same.
17758 (verify_gimple_in_seq): Same.
17759 (verify_eh_throw_stmt_node): Same.
17760 (collect_subblocks): Same.
17761 (gimple_verify_flow_info): Same.
17762 (do_warn_unused_result): Same.
17763 * tree-inline.c (expand_call_inline): Same.
17764 * tree-into-ssa.c (update_ssa): Same.
17765 * tree.c (tree_int_cst_elt_check_failed): Same.
17766 (tree_vec_elt_check_failed): Same.
17767 (omp_clause_operand_check_failed): Same.
17768 (verify_type_variant): Same.
17769 (verify_type): Same.
17770 * value-prof.c (verify_histograms): Same.
17771 * varasm.c (assemble_start_function): Same.
17772
17773 2019-05-16 Martin Sebor <msebor@redhat.com>
17774
17775 * config/i386/i386-expand.c (get_element_number): Quote keywords
17776 and other internal names in diagnostics. Adjust other diagnostic
17777 formatting issues noted by -Wformat-diag.
17778 * config/i386/i386-features.c
17779 (ix86_mangle_function_version_assembler_name): Same.
17780 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17781 * config/i386/i386.c (ix86_function_type_abi): Same.
17782 (ix86_function_ms_hook_prologue): Same.
17783 (classify_argument): Same.
17784 (ix86_expand_prologue): Same.
17785 (ix86_md_asm_adjust): Same.
17786 (ix86_memmodel_check): Same.
17787
17788 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17789
17790 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17791 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17792 and fpxx modes.
17793
17794 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17795
17796 PR target/90497
17797 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17798 intrinsics without SSE/SSE2/SSSE3.
17799 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17800 check.
17801 (*mmx_uavgv8qi3): Likewise.
17802
17803 2019-05-17 Richard Biener <rguenther@suse.de>
17804
17805 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17806 VEC_PERM_EXPR as __VEC_PERM with -gimple.
17807
17808 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
17809
17810 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17811 vec_sldw insn pattern.
17812
17813 2019-05-17 Richard Biener <rguenther@suse.de>
17814
17815 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17816
17817 2019-05-17 Martin Liska <mliska@suse.cz>
17818
17819 PR driver/90496
17820 * toplev.c (output_stack_usage): With LTO and sanitizer it
17821 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17822 has no file location.
17823
17824 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17825
17826 PR c++/90484
17827 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17828 sz0 is equal to sz1, instead return false in that case.
17829
17830 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17831 has non-constant expression, force sctx.lane and use two
17832 argument IFN_GOMP_SIMD_LANE instead of single argument.
17833 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17834 two argument IFN_GOMP_SIMD_LANE without lhs.
17835 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17836 member.
17837 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17838 Define.
17839 (LOOP_REQUIRES_VERSIONING): Or in
17840 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17841 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17842 simd_if_cond.
17843 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17844 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17845 from simd if clause if needed.
17846
17847 2019-05-16 Richard Biener <rguenther@suse.de>
17848
17849 * tree-affine.c (expr_to_aff_combination): New function split
17850 out from...
17851 (tree_to_aff_combination): ... here.
17852 (aff_combination_expand): Avoid building a GENERIC tree.
17853
17854 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
17855
17856 * cgraphunit.c (cgraph_node::expand_thunk): Remove
17857 assemble_start_function and assemble_end_function calls.
17858 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17859 assemble_start_function and assemble_end_function.
17860 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17861 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17862 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17863 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17864 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17865 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17866 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17867 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17868 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17869 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17870 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17871 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
17872 Likewise.
17873 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17874 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
17875 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
17876 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
17877 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17878 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17879 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
17880 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
17881 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17882 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17883 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17884 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17885 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
17886 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
17887 Likewise.
17888 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17889 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17890 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
17891
17892 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
17893
17894 * tree-ssa-alias.c (alias_stats): Add
17895 aliasing_component_refs_p_may_alias and
17896 aliasing_component_refs_p_no_alias.
17897 (dump_alias_stats): Print aliasing_component_refs_p stats.
17898 (aliasing_component_refs_p): Update stats.
17899
17900 2019-05-16 Martin Liska <mliska@suse.cz>
17901
17902 PR lto/90500
17903 * multiple_target.c (expand_target_clones): Do not allow
17904 target_clones being used with a symbol that is an alias.
17905
17906 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
17907
17908 PR tree-optimization/90394
17909 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
17910 positives rather than ICE for cases where (code2 == NE_EXPR
17911 && code1 == BIT_AND_EXPR).
17912
17913 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17914
17915 PR fortran/90329
17916 * tree-core.h (struct tree_decl_common): Document
17917 decl_nonshareable_flag for PARM_DECLs.
17918 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
17919 * calls.c (expand_call): Don't try tail call if caller
17920 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
17921 passed on the stack and callee needs to pass any arguments on the
17922 stack.
17923 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
17924 else if instead of series of mutually exclusive ifs. Handle
17925 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
17926 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
17927
17928 * lto-streamer.h (LTO_major_version): Bump to 9.
17929
17930 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
17931
17932 PR tree-optimization/90106
17933 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
17934 new parameter as new internal function call, also move it to new
17935 basic block.
17936 (use_internal_fn): Pass internal function call to
17937 shrink_wrap_one_built_in_call_with_conds.
17938
17939 2019-05-15 Jakub Jelinek <jakub@redhat.com>
17940
17941 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
17942 max_vf to 1.
17943 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
17944 safelen_int and set loop->dont_vectorize.
17945
17946 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17947
17948 PR target/89021
17949 * config/i386/i386-builtin.def: Enable MMX intrinsics with
17950 SSE/SSE2/SSSE3.
17951 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
17952 Likewise.
17953 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
17954 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
17955 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
17956 is defined.
17957
17958 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17959
17960 PR target/89021
17961 * config/i386/mmx.md (*vec_dupv2sf): Changed to
17962 define_insn_and_split to support SSE emulation.
17963 (*vec_extractv2sf_0): Likewise.
17964 (*vec_extractv2sf_1): Likewise.
17965 (*vec_extractv2si_0): Likewise.
17966 (*vec_extractv2si_1): Likewise.
17967 (*vec_extractv2si_zext_mem): Likewise.
17968 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
17969 (vec_extractv2sf_1 splitter): Likewise.
17970 (vec_extractv2sfsf): Likewise.
17971 (vec_setv2si): Likewise.
17972 (vec_extractv2si_1 splitter): Likewise.
17973 (vec_extractv2sisi): Likewise.
17974 (vec_setv4hi): Likewise.
17975 (vec_extractv4hihi): Likewise.
17976 (vec_setv8qi): Likewise.
17977 (vec_extractv8qiqi): Likewise.
17978 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17979 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
17980 (vec_extractv2sisi): Likewise.
17981 (vec_extractv4hihi): Likewise.
17982 (vec_extractv8qiqi): Likewise.
17983 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
17984 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
17985 (vec_initv2sisi): Likewise.
17986 (vec_initv4hihi): Likewise.
17987 (vec_initv8qiqi): Likewise.
17988 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
17989 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
17990 (vec_setv4hi): Likewise.
17991 (vec_setv8qi): Likewise.
17992
17993 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17994
17995 PR target/89021
17996 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
17997 TARGET_MMX_WITH_SSE.
17998 (MMXMODE:*mov<mode>_internal): Likewise.
17999 (MMXMODE:movmisalign<mode>): Likewise.
18000
18001 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18002
18003 PR target/89021
18004 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18005 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18006 (sse2_cvtpd2pi): Ditto.
18007 (sse2_cvttpd2pi): Ditto.
18008 (*vec_concatv2sf_sse4_1): Ditto.
18009 (*vec_concatv2sf_sse): Ditto.
18010 (*vec_concatv2si_sse4_1): Ditto.
18011 (*vec_concatv2si): Ditto.
18012 (*vec_concatv4si_0): Ditto.
18013 (*vec_concatv2di_0): Ditto.
18014
18015 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18016
18017 PR target/89021
18018 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18019
18020 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18021
18022 PR target/89021
18023 * config/i386/sse.md (ssse3_palignrdi): Changed to
18024 define_insn_and_split to support SSE emulation.
18025
18026 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18027
18028 PR target/89021
18029 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18030
18031 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18032
18033 PR target/89021
18034 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18035 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18036 SSE emulation.
18037
18038 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18039
18040 PR target/89021
18041 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18042 or TARGET_MMX_WITH_SSE.
18043 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18044
18045 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18046
18047 PR target/89021
18048 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18049
18050 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18051
18052 PR target/89021
18053 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18054 Changed to define_insn_and_split to support SSE emulation.
18055
18056 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18057
18058 PR target/89021
18059 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18060 Changed to define_insn_and_split to support SSE emulation.
18061
18062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18063
18064 PR target/89021
18065 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18066 (*mmx_<emms>): This.
18067 (mmx_<emms>): New expander.
18068
18069 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18070
18071 PR target/89021
18072 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18073 support.
18074 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18075
18076 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18077
18078 PR target/89021
18079 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18080
18081 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18082
18083 PR target/89021
18084 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18085
18086 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18087
18088 PR target/89021
18089 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18090 TARGET_MMX_WITH_SSE.
18091 (*mmx_uavgv4hi3): Add SSE emulation.
18092
18093 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18094
18095 PR target/89021
18096 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18097 and TARGET_MMX_WITH_SSE.
18098 (*mmx_uavgv8qi3): Add SSE emulation.
18099
18100 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18101
18102 PR target/89021
18103 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18104 maskmovdqu for __MMX_WITH_SSE__.
18105
18106 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18107
18108 PR target/89021
18109 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18110 TARGET_MMX and TARGET_MMX_WITH_SSE.
18111 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18112
18113 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18114
18115 PR target/89021
18116 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18117 define_insn_and_split to support SSE emulation.
18118
18119 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18120
18121 PR target/89021
18122 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18123 and TARGET_MMX_WITH_SSE.
18124 (mmx_<code>v8qi3): Likewise.
18125 (smaxmin:<code>v4hi3): New.
18126 (umaxmin:<code>v8qi3): Likewise.
18127 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18128 (umaxmin:*mmx_<code>v8qi3): Likewise.
18129
18130 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18131
18132 PR target/89021
18133 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18134 TARGET_MMX_WITH_SSE.
18135 (*mmx_pinsrw): Add SSE emulation.
18136
18137 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18138
18139 PR target/89021
18140 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18141
18142 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18143
18144 PR target/89021
18145 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18146 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18147 SSE emulation.
18148
18149 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18150
18151 PR target/89021
18152 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18153 (sse_cvttps2pi): Likewise.
18154
18155 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18156
18157 PR target/89021
18158 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18159 TARGET_MMX_WITH_SSE.
18160 (mmx_pshufw_1): Add SSE emulation.
18161 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18162 TARGET_MMX_WITH_SSE to support SSE emulation.
18163
18164 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18165
18166 PR target/89021
18167 * config/i386/constraints.md (Yw): New constraint.
18168 * config/i386/mmx.md (*vec_dupv2si): Changed to
18169 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18170 support SSE emulation.
18171
18172 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18173
18174 PR target/89021
18175 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18176 TARGET_MMX_WITH_SSE.
18177 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18178 support.
18179 (mmx_gt<mode>3): Likewise.
18180
18181 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18182
18183 PR target/89021
18184 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18185 TARGET_MMX_WITH_SSE. Add SSE support.
18186
18187 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18188
18189 PR target/89021
18190 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18191 TARGET_MMX_WITH_SSE.
18192 (any_logic:<code><mode>3): New.
18193 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18194 Add SSE support.
18195
18196 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18197
18198 PR target/89021
18199 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18200 TARGET_MMX_WITH_SSE. Add SSE emulation.
18201 (mmx_<shift_insn><mode>3): Likewise.
18202 (ashr<mode>3): New.
18203 (<shift_insn><mode>3): Likewise.
18204
18205 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18206
18207 PR target/89021
18208 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18209 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18210
18211 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18212
18213 PR target/89021
18214 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18215 TARGET_MMX_WITH_SSE.
18216 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18217 SSE support.
18218
18219 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18220
18221 PR target/89021
18222 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18223 TARGET_MMX_WITH_SSE.
18224 (mulv4hi3): New.
18225 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18226 support.
18227
18228 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18229
18230 PR target/89021
18231 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18232 (plusminus:mmx_<plusminus_insn><mode>3): Check
18233 TARGET_MMX_WITH_SSE.
18234 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18235 (<plusminus_insn><mode>3): New.
18236 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18237 (*mmx_<plusminus_insn><mode>3): Likewise.
18238
18239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18240
18241 PR target/89021
18242 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18243 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18244 prototype.
18245 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18246 define_insn_and_split to support SSE emulation.
18247 (mmx_punpcklbw): Likewise.
18248 (mmx_punpckhwd): Likewise.
18249 (mmx_punpcklwd): Likewise.
18250 (mmx_punpckhdq): Likewise.
18251 (mmx_punpckldq): Likewise.
18252
18253 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18254 Uros Bizjak <ubizjak@gmail.com>
18255
18256 PR target/89021
18257 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18258 New function.
18259 (ix86_split_mmx_pack): Likewise.
18260 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18261 New prototype.
18262 (ix86_split_mmx_pack): Likewise.
18263 * config/i386/i386.md (mmx_isa): New.
18264 (enabled): Also check mmx_isa.
18265 * config/i386/mmx.md (any_s_truncate): New code iterator.
18266 (s_trunsuffix): New code attr.
18267 (mmx_packsswb): Removed.
18268 (mmx_packssdw): Likewise.
18269 (mmx_packuswb): Likewise.
18270 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18271 MMX packsswb/packuswb with SSE2.
18272 (mmx_packssdw): Likewise.
18273 * config/i386/predicates.md (register_mmxmem_operand): New.
18274
18275 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18276
18277 PR target/89021
18278 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18279 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18280 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18281 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18282 (ix86_vector_mode_supported_p): Likewise.
18283 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18284
18285 2019-05-15 Martin Liska <mliska@suse.cz>
18286
18287 PR middle-end/90478
18288 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18289 Check for overflow.
18290
18291 2019-05-15 Richard Biener <rguenther@suse.de>
18292
18293 * tree-into-ssa.c (pass_build_ssa::execute): Run
18294 update_address_taken before going into SSA.
18295
18296 2019-05-15 Richard Biener <rguenther@suse.de>
18297
18298 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18299 as __BIT_FIELD_REF with type with -gimple.
18300
18301 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18302
18303 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18304 semantically equivalent branches (left over after prior refactorings).
18305
18306 2019-05-15 Richard Biener <rguenther@suse.de>
18307
18308 PR tree-optimization/88828
18309 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18310 bogus check.
18311
18312 2019-05-14 Richard Biener <rguenther@suse.de>
18313
18314 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18315 as __VIEW_CONVERT with -gimple.
18316
18317 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18318
18319 PR target/82920
18320 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18321 Darwin.
18322
18323 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18324
18325 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18326 define_split to become a define_insn_and_split.
18327
18328 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18329
18330 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18331 arguments.
18332 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18333 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18334 (sibcall_epilogue): Adjust.
18335 (epilogue): Adjust.
18336
18337 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18338
18339 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18340 to unsupported ones.
18341 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18342 * config.host: Likewise.
18343 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18344 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18345 __svr4__]: Remove "brand" fallback.
18346 [!KSTAT_DATA_STRING]: Remove.
18347 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18348 to *-*-solaris2*.
18349 (comdat_group): Likewise.
18350 (set_have_as_tls): Likewise.
18351 (gcc_cv_target_dl_iterate_phdr): Likewise.
18352 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18353 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18354 * configure: Regenerate.
18355 * doc/install.texi: Simplify Solaris target triplets.
18356 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18357 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18358 Remove Solaris 10 references.
18359 Remove obsolete Solaris bug reference.
18360 (Specific, sparc-sun-solaris2.10): Remove.
18361
18362 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18363
18364 * config/i386/i386.md (any_div): New code iterator.
18365 (paired_mod): New code attribute.
18366 (sgnprefix): Handle DIV and UDIV RTXes.
18367 (u): Ditto.
18368 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18369 and udivmod<mode>4 patterns using any_div code iterator.
18370 (divmod splitters): Macroize splitters using any_div code iterator.
18371 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18372 (*udivmodsi4_pow2_zext_2): Ditto.
18373 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18374 and *udivmod<mode>4_noext patterns using any_div code iterator.
18375 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18376 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18377 patterns using any_div code iterator.
18378 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18379 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18380 patterns using any_div code iterator.
18381 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18382 udivmodhiqi3 patterns using any_extend code iterator.
18383
18384 2019-05-14 Richard Biener <rguenther@suse.de>
18385 H.J. Lu <hongjiu.lu@intel.com>
18386
18387 PR tree-optimization/88828
18388 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18389 permuting in a single non-constant element not extracted
18390 from a vector.
18391
18392 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18393
18394 * internal-fn.def (SIGNBIT): New.
18395 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18396 defined.
18397 (signbitv4sf2): Likewise.
18398
18399 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18400
18401 PR target/90357
18402 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18403 next insn when the SRC reg is dead.
18404
18405 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18406
18407 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18408 (alloc_cand_and_find_basis): Ditto.
18409 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18410 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18411 (create_add_imm_cand, slsr_process_cast): Ditto.
18412 (slsr_process_copy, replace_mult_candidate): Ditto.
18413 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18414 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18415 (pass_strength_reduction::execute): Init the first NULL element.
18416
18417 2019-05-13 Nathan Sidwell <nathan@acm.org>
18418
18419 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18420 (run_attempt): Reformat line break.
18421
18422 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18423
18424 PR target/90418
18425 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18426 data registers in sibcall epilogues.
18427 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18428
18429 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18430
18431 PR target/89221
18432 * configure.ac (--enable-frame-pointer):
18433 Disable by default for cygwin and mingw.
18434 * configure: Regenerate.
18435
18436 2019-05-13 Nathan Sidwell <nathan@acm.org>
18437
18438 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18439 piece of code.
18440 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18441 (gen_member_die): Move abstract origin check earlier. Only VARs
18442 can be static_inline_p. Simplify splicing control flow.
18443
18444 2019-05-13 Richard Biener <rguenther@suse.de>
18445
18446 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18447 VIEW_CONVERT_EXPR.
18448 (vect_build_slp_tree_1): Likewise.
18449
18450 2019-05-13 Richard Biener <rguenther@suse.de>
18451
18452 PR tree-optimization/90402
18453 * tree-if-conv.c (tree_if_conversion): Value number only
18454 the loop body by making the latch an exit of the region
18455 as well.
18456 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18457 processing PHIs.
18458 (do_rpo_vn): Deal with multiple edges into the entry block
18459 that are not backedges inside the region by skipping PHIs
18460 of the entry block.
18461
18462 2019-05-13 Richard Biener <rguenther@suse.de>
18463
18464 PR tree-optimization/90316
18465 * tree-ssa-pre.c (insert_aux): Fold into ...
18466 (insert): ... this function. Use a RPO walk to reduce the
18467 number of required iterations.
18468
18469 2019-05-13 Martin Liska <mliska@suse.cz>
18470
18471 PR tree-optimization/90416
18472 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18473 string instead of passing the second part as va_arg argument.
18474
18475 2019-05-13 Martin Liska <mliska@suse.cz>
18476
18477 PR gcov-profile/90380
18478 * gcov.c (handle_cycle): Do not support zero cycle count,
18479 it should not be possible.
18480 (path_contains_zero_cycle_arc): New function.
18481 (circuit): Ignore zero cycle arc counts.
18482
18483 2019-05-13 Martin Liska <mliska@suse.cz>
18484
18485 PR gcov-profile/90380
18486 * gcov.c (enum loop_type): Remove the enum and
18487 the operator.
18488 (handle_cycle): Assert that we should not reach
18489 a negative count.
18490 (circuit): Use loop_found instead of a tri-state loop_type.
18491 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18492 happen.
18493
18494 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18495
18496 PR target/82920
18497 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18498 (ix86_output_indirect_branch_via_reg): Use output mechanism
18499 accounting for __USER_LABEL_PREFIX__.
18500 (ix86_output_indirect_branch_via_push): Likewise.
18501 (ix86_output_function_return): Likewise.
18502 (ix86_output_indirect_function_return): Likewise.
18503
18504 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18505
18506 * doc/md.texi: Document use of code attributes in rtx patterns.
18507 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18508 * read-rtl.c (find_code): Split out search loops into...
18509 (maybe_find_code): ...this new function.
18510 (check_code_iterator): Make the error message more informative.
18511 (check_code_attribute): New function.
18512 (rtx_reader::rtx_alloc_for_name): Likewise.
18513 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18514 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18515 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18516 <max_opp> directly as an rtx code instead of via a match_operator.
18517 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18518 (<su>abd<mode>_3): Update accordingly.
18519
18520 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18521
18522 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18523 is given, print the state of the EH "save world" computation for
18524 Darwin.
18525
18526 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18527
18528 PR c++/59813
18529 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18530 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18531
18532 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18533
18534 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18535 Use pinsrd for TARGET_SSE4_1.
18536 * config/i386/sse.md (movdi_to_sse): Ditto.
18537
18538 2019-05-10 Richard Biener <rguenther@suse.de>
18539
18540 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18541 (do_rpo_vn): Initialize next_value_id.
18542
18543 2019-05-10 Martin Liska <mliska@suse.cz>
18544
18545 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18546 Fix plural form.
18547
18548 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18549
18550 PR tree-optimization/90385
18551 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18552 arguments of the exit phis.
18553
18554 PR c++/90383
18555 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18556 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18557 id->do_not_fold.
18558 (copy_tree_body_r): Likewise.
18559 (copy_fn): Set id.do_not_fold to true.
18560
18561 2019-05-10 Martin Liska <mliska@suse.cz>
18562
18563 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18564 Reapply changes from r269790.
18565
18566 2019-05-10 Martin Liska <mliska@suse.cz>
18567
18568 PR middle-end/90340
18569 * doc/invoke.texi: New params.
18570 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18571 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18572 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18573 Use it.
18574 * tree-switch-conversion.h (struct jump_table_cluster):
18575 Likewise.
18576
18577 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18578
18579 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18580
18581 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18582
18583 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18584
18585 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18586
18587 PR rtl-optimization/88879
18588 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18589
18590 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18591
18592 PR target/90405
18593 * config/arm/arm.c (callee_saved_reg_p): Move before
18594 thumb_find_work_register.
18595 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18596 thumb_find_work_register. Only call df_get_live_out once.
18597 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18598 (thumb_find_work_register): Use
18599 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18600 algorithms to locate a spare call clobbered reg.
18601
18602 2019-05-09 Martin Liska <mliska@suse.cz>
18603
18604 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18605 and MAX_EXPR in GIMPLE FE format.
18606
18607 2019-05-09 Martin Liska <mliska@suse.cz>
18608
18609 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18610 * gimple-pretty-print.c (dump_gimple_bb_header):
18611 Dump BB count.
18612 (pp_cfg_jump): Dump edge probability.
18613 * profile-count.c (profile_quality_as_string): Simplify
18614 with a static array.
18615 (parse_profile_quality): New function.
18616 (profile_count::dump): Simplify with a static array.
18617 (profile_count::from_gcov_type): Add new argument.
18618 * profile-count.h (parse_profile_quality): Likewise.
18619 * predict.h (set_hot_bb_threshold): New.
18620 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18621 New param.
18622 * predict.c (get_hot_bb_threshold): Set from the new param.
18623 (set_hot_bb_threshold): New.
18624
18625 2019-05-09 Richard Biener <rguenther@suse.de>
18626
18627 PR tree-optimization/90395
18628 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18629 rewrite vector stores that throw internally.
18630
18631 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18632
18633 * cif-code.def (CHKP): Remove.
18634
18635 PR target/89221
18636 * configure.ac (--enable-frame-pointer): Disable by default for
18637 GNU systems.
18638 * configure: Regenerate.
18639
18640 2019-05-09 Alan Modra <amodra@gmail.com>
18641
18642 PR target/89271
18643 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18644 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18645 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18646 cost for general <-> vsx when direct moves are available.
18647 Cost union classes at minimal cost for any reg in the class.
18648 Correct calculation for moves between vsx, float, and altivec.
18649 Don't return a low cost for moves between special regs. Don't
18650 use hard coded register numbers.
18651 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18652 (rs6000_ira_change_pseudo_allocno_class): New function.
18653 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18654 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18655 alternatives.
18656 (movsi_internal1): Don't disparage vector alternatives.
18657 (mov<mode>_internal): Likewise, excepting alternative that
18658 will be split.
18659 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18660 we <- b alternative.
18661
18662 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18663
18664 PR c++/59813
18665 PR tree-optimization/89060
18666 * tree-ssa-live.h (live_vars_map): New typedef.
18667 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18668 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18669 (struct compute_live_vars_data): New type.
18670 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18671 live_vars_at_stmt, destroy_live_vars): New functions.
18672 * tree-tailcall.c: Include tree-ssa-live.h.
18673 (live_vars, live_vars_vec): New global variables.
18674 (find_tail_calls): Perform variable life analysis before punting.
18675 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18676 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18677 member.
18678 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18679 Perform variable life analysis to select variables that really need
18680 clobbers added.
18681 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18682 instead set id->eh_landing_pad_dest and assert it is the same.
18683 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18684
18685 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18686 Richard Earnshaw <rearnsha@arm.com>
18687
18688 PR target/88167
18689 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18690 function.
18691 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18692 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18693 register if both the epilogue and prologue can use call-clobbered
18694 regs.
18695 (thumb1_unexpanded_epilogue): Use
18696 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18697 picking temporaries for restoring high regs to match that of the
18698 prologue where possible.
18699 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18700 the list of work registers. Detect if the return address is still live
18701 at the end of the prologue and avoid using it for a work register if so.
18702 If the return address is not live, add LR to the list of pushable regs
18703 after the first pass.
18704
18705 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18706
18707 PR tree-optimization/90078
18708 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18709 (INFTY): Increase the value for infinite cost.
18710 (struct comp_cost): Promote type of members to int64_t.
18711 (infinite_cost): Don't set complexity in initialization.
18712 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18713 overflows to infinite_cost.
18714 (adjust_setup_cost): Promote type of parameter and cost computation
18715 to int64_t.
18716 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18717 int64_t.
18718 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18719 cost computation to int64_t.
18720 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18721 int64_t's format specifier in dump.
18722
18723 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18724
18725 PR tree-optimization/90240
18726 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18727 with respect to scaling factor pre-computed for each basic block.
18728 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18729 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18730 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18731 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18732 live range for array of loop's basic blocks. Cleanup aux field of
18733 loop's basic blocks.
18734
18735 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18736
18737 PR tree-optimization/90356
18738 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18739
18740 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18741
18742 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18743 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18744 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18745 (ix86_handle_option): Handle -mavx512bf16.
18746 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18747 to extra_headers.
18748 * config/i386/avx512bf16vlintrin.h: New.
18749 * config/i386/avx512bf16intrin.h: New.
18750 * config/i386/cpuid.h (bit_AVX512BF16): New.
18751 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18752 * config/i386/i386-builtin-types.def: Add new types.
18753 * config/i386/i386-builtin.def: Add new builtins.
18754 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18755 __AVX512BF16__.
18756 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18757 (ix86_option_override_internal): Handle BF16.
18758 (ix86_valid_target_attribute_inner_p): Ditto.
18759 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18760 * config/i386/i386-builtin.c (enum processor_features): Add
18761 F_AVX512BF16.
18762 (static const _isa_names_table isa_names_table): Ditto.
18763 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18764 (PTA_AVX512BF16): Ditto.
18765 * config/i386/i386.opt: Add -mavx512bf16.
18766 * config/i386/immintrin.h: Include avx512bf16intrin.h
18767 and avx512bf16vlintrin.h.
18768 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18769 avx512f_cvtneps2bf16_<mode><mask_name>,
18770 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18771 * config/i386/subst.md (mask_half): Add new subst.
18772 * doc/invoke.texi: Document -mavx512bf16.
18773
18774 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18775
18776 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18777 Delete declaration.
18778 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18779 (rs6000_debug_legitimize_reload_address): Delete.
18780 (rs6000_legitimize_reload_address_ptr): Delete.
18781 (rs6000_option_override_internal): Adjust.
18782 (mem_operand_gpr): Adjust comment.
18783 (legitimate_lo_sum_address_p): Ditto.
18784 (rs6000_legitimize_reload_address): Delete.
18785 (rs6000_debug_legitimize_reload_address): Delete.
18786 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18787
18788 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18789
18790 PR target/89765
18791 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18792 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18793 to compute vector element selector for both constant and variable
18794 operands.
18795
18796 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18797
18798 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18799 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18800 ashrdi3_cvt using SWI48 mode iterator.
18801
18802 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18803
18804 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18805 (aarch64_<su>abd<mode>_3): Likewise.
18806 (*aarch64_<su>abd<mode>_3): New define_insn.
18807 (<sur>sad<vsi2qi>): New define_expand.
18808 * config/aarch64/iterators.md: Added MAX_OPP attribute.
18809 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18810 (build_vect_cond_expr): Likewise.
18811
18812 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18813
18814 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18815 clobbers outside of accessible_reg_set.
18816 * config/i386/i386.c (ix86_conditional_register_usage):
18817 Disable register sets by clearing corresponding bits in
18818 accessible_reg_set. Do not set corresponding bits in fixed_regs,
18819 call_used_regs and don't clear corresponding reg_names array members.
18820
18821 2019-05-07 Richard Biener <rguenther@suse.de>
18822
18823 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18824 not specified still compute a comp_vectype for invariant
18825 compares.
18826
18827 2019-05-07 Richard Biener <rguenther@suse.de>
18828
18829 PR tree-optimization/90316
18830 * tree-ssa-pre.c (translate_vuse_through_block): When
18831 same_valid is NULL do not bother to search for a virtual
18832 PHI continuation.
18833 (phi_translate_1): When operands changed we cannot keep
18834 the same value-number so do not bother to ask whether
18835 that's possible from translate_vuse_through_block.
18836
18837 2019-05-07 Martin Liska <mliska@suse.cz>
18838
18839 * bitmap.c (bitmap_register): Come up with
18840 alloc_descriptor_max_uid and assign it for
18841 a new bitmap.
18842 (register_overhead): Use get_descriptor as
18843 a descriptor.
18844 (release_overhead): New.
18845 (bitmap_elem_to_freelist): Call it.
18846 (bitmap_elt_clear_from): Likewise.
18847 (bitmap_obstack_free): Likewise.
18848 (bitmap_move): Sensitively release memory.
18849 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18850 (bitmap_initialize): Initialize alloc_descriptor to zero.
18851 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18852
18853 2019-05-07 Richard Biener <rguenther@suse.de>
18854
18855 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18856 we build a SLP node. Remove max_size and limiting.
18857 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18858
18859 2019-05-07 Richard Biener <rguenther@suse.de>
18860
18861 PR tree-optimization/90316
18862 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18863 limit by reference.
18864 (walk_non_aliased_vuses): Take walking limit argument.
18865 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18866 walking if it is reached instead of just counting.
18867 (get_continuation_for_phi): Likewise.
18868 (walk_non_aliased_vuses): Likewise, instead of leaving counter
18869 limiting to the callback.
18870 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
18871 (vn_reference_lookup_3): Likewise.
18872 (vn_reference_lookup_pieces): Likewise.
18873 (vn_reference_lookup): Likewise.
18874 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
18875 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
18876 (avail_exprs_stack::lookup_avail_expr): Likewise.
18877
18878 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
18879
18880 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
18881 for comparaible types in the second direction even if first one
18882 hits incomparable type.
18883
18884 2019-05-07 Richard Biener <rguenther@suse.de>
18885
18886 PR lto/90369
18887 * lto-wrapper.c (debug_objcopy): Use the original filename
18888 including archive offset for the filename used for -save-temps.
18889
18890 2019-05-07 Li Jia He <helijia@linux.ibm.com>
18891
18892 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
18893 detection.
18894
18895 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
18896 Hongtao Liu <hongtao.liu@intel.com>
18897
18898 PR target/89750
18899 PR target/86444
18900 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
18901 Modified, original implementation isn't correct.
18902
18903 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18904
18905 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
18906 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
18907 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
18908 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
18909 (FRAME_POINTER_REGNUM): Change numbering.
18910 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
18911 (alt_reg_names): Adjust.
18912 (rs6000_conditional_register_usage): Don't mark hard register 64 as
18913 fixed.
18914 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18915 (DWARF_FRAME_REGISTERS): Delete.
18916 (DWARF2_FRAME_REG_OUT): Fix whitespace.
18917 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18918 Adjust.
18919 (REG_ALLOC_ORDER): Adjust.
18920 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
18921 (REG_CLASS_CONTENTS): Adjust.
18922 (RETURN_ADDR_RTX): Change comment.
18923 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
18924 instead of 67.
18925 (REGISTER_NAMES): Adjust.
18926 (ADDITIONAL_REGISTER_NAMES): Adjust.
18927 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18928
18929 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18930
18931 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
18932 Delete.
18933 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18934 (DWARF_FRAME_REGISTERS): Adjust.
18935 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18936 Adjust.
18937 (REG_ALLOC_ORDER): Adjust.
18938 (enum reg_class): Delete SPR_REGS.
18939 (REG_CLASS_NAMES): Delete SPR_REGS.
18940 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
18941 (REGISTER_NAMES): Adjust.
18942 (ADDITIONAL_REGISTER_NAMES): Adjust.
18943 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
18944 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
18945 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
18946 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
18947 (htm_spr_regno): Delete.
18948 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
18949 argument.
18950 (rs6000_dbx_register_number): Adjust.
18951
18952 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18953
18954 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
18955
18956 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18957
18958 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
18959 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
18960
18961 2019-05-06 Jakub Jelinek <jakub@redhat.com>
18962
18963 PR tree-optimization/88709
18964 PR tree-optimization/90271
18965 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
18966 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
18967 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
18968 variable.
18969 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
18970 of the store merging group is larger than
18971 PARAM_STORE_MERGING_MAX_SIZE parameter.
18972 (split_group): Add bzero_first argument. If set, always emit first
18973 the first store which must be = {} of the whole area and then for the
18974 rest of the stores consider all zero bytes as paddings.
18975 (imm_store_chain_info::output_merged_store): Check if first store
18976 is = {} of the whole area and if yes, determine which setting of
18977 bzero_first for split_group gives smaller number of stores. Adjust
18978 split_group callers.
18979 (lhs_valid_for_store_merging_p): Allow decls.
18980 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
18981 no elts.
18982 (pass_store_merging::process_store): Likewise.
18983
18984 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
18985
18986 PR target/89424
18987 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18988 handling of V1TImode.
18989
18990 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
18991
18992 PR target/89221
18993 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
18994 and enable_frame_pointer ...
18995 * configure.ac: ... here. Update help strings for
18996 --enable-frame-pointer.
18997 * configure: Regenerate.
18998 * config/i386/i386-options.c (ix86_option_override_internal): Remove
18999 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19000 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19001 (USE_X86_64_FRAME_POINTER): Ditto.
19002
19003 2019-05-06 Martin Liska <mliska@suse.cz>
19004
19005 * config.gcc: Append to target_gtfiles and fix indentation.
19006
19007 2019-05-06 Richard Biener <rguenther@suse.de>
19008
19009 PR tree-optimization/90358
19010 * tree-vect-stmts.c (get_group_load_store_type): Properly
19011 detect unused upper half of load.
19012 (vectorizable_load): Likewise.
19013
19014 2019-05-06 Richard Biener <rguenther@suse.de>
19015
19016 PR tree-optimization/88828
19017 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19018 (simplify_vector_constructor): ...here. Handle constants in
19019 the constructor.
19020
19021 2019-05-06 Richard Biener <rguenther@suse.de>
19022
19023 PR tree-optimization/90328
19024 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19025 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19026 is valid in the loop nest before using it.
19027 (initialize_data_dependence_relation): Adjust.
19028 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19029 loop as loop-nest to dr_may_alias_p.
19030
19031 2019-05-06 Richard Biener <rguenther@suse.de>
19032
19033 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19034
19035 2019-05-06 Richard Biener <rguenther@suse.de>
19036
19037 PR tree-optimization/90316
19038 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19039 compute target on demand.
19040 (get_continuation_for_phi): Remove code walking stmts to
19041 get to a target virtual operand which could end up being
19042 quadratic.
19043
19044 2019-05-06 Martin Liska <mliska@suse.cz>
19045
19046 PR sanitizer/90312
19047 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19048 when -mabi is selected to a non-default version.
19049
19050 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19051 Martin Liska <mliska@suse.cz>
19052
19053 * Makefile.in: Add lto-dump.texi.
19054 * cgraph.h: Add new functions get_visibility_string and
19055 get_symtab_type_string.
19056 * doc/gcc.texi: Include lto-dump section.
19057 * doc/lto-dump.texi: New file.
19058 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19059 (parse_dump_option): Factor out this function.
19060 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19061 (parse_dump_option): Export the function.
19062 * symtab.c (symtab_node::get_visibility_string): New function.
19063 (symtab_node::get_symtab_type_string): Likewise.
19064
19065 2019-05-06 Martin Liska <mliska@suse.cz>
19066
19067 * config/i386/i386-builtins.c: New file.
19068 * config/i386/i386-builtins.h: New file.
19069 * config/i386/i386-expand.c: New file.
19070 * config/i386/i386-expand.h: New file.
19071 * config/i386/i386-features.c: New file.
19072 * config/i386/i386-features.h: New file.
19073 * config/i386/i386-options.c: New file.
19074 * config/i386/i386-options.h: New file.
19075 * config.gcc: Add new files into extra_objs and
19076 target_gtfiles.
19077 * config/i386/i386.c: Split content of the file
19078 into newly introduced files.
19079 * config/i386/i386.h: Declare common variables
19080 and macros.
19081 * config/i386/t-i386: Define dependencies for new files.
19082
19083 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19084
19085 PR target/89400
19086 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19087 Restrict 'all' variant to 32-bit configurations.
19088 (unaligned_loadhiu): Likewise.
19089 (unaligned_storehi): Likewise.
19090 (unaligned_storesi): Likewise.
19091 (unaligned_loadhis): Disable when compiling for thumb1.
19092
19093 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19094
19095 PR tree-optimization/90269
19096 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19097 Ignore clobbers.
19098
19099 2019-05-03 Martin Liska <mliska@suse.cz>
19100
19101 * hash-map.h: Add is_empty function.
19102 * hash-set.h: Likewise.
19103 * hash-table.h: Likewise.
19104 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19105 elements () == 0 (and similar usages).
19106 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19107 * gimplify.c (gimplify_bind_expr): Likewise.
19108 (gimplify_switch_expr): Likewise.
19109 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19110 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19111 * postreload-gcse.c (dump_hash_table): Likewise.
19112 (gcse_after_reload_main): Likewise.
19113 * predict.c (combine_predictions_for_bb): Likewise.
19114 * tree-parloops.c (reduction_phi): Likewise.
19115 (separate_decls_in_region): Likewise.
19116 (transform_to_exit_first_loop): Likewise.
19117 (gen_parallel_loop): Likewise.
19118 (gather_scalar_reductions): Likewise.
19119 (try_create_reduction_list): Likewise.
19120 * var-tracking.c (dump_vars): Likewise.
19121 (emit_notes_for_changes): Likewise.
19122 (vt_emit_notes): Likewise.
19123
19124 2019-05-03 Richard Biener <rguenther@suse.de>
19125
19126 PR tree-optimization/90316
19127 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19128 before running VN.
19129
19130 2019-05-03 Richard Biener <rguenther@suse.de>
19131
19132 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19133 peeling for gaps by loading only lower halves of vectors
19134 if possible.
19135 (vectorizable_load): Likewise.
19136
19137 2019-05-03 Richard Biener <rguenther@suse.de>
19138
19139 PR middle-end/89518
19140 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19141
19142 2019-05-03 Richard Biener <rguenther@suse.de>
19143
19144 PR middle-end/87314
19145 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19146 Handle STRING_CST vs DECL or STRING_CST.
19147
19148 2019-05-03 Richard Biener <rguenther@suse.de>
19149
19150 PR tree-optimization/88963
19151 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19152 vector loads feeding only BIT_FIELD_REFs to component
19153 loads. Rewrite stores fed by CONSTRUCTORs to component
19154 stores.
19155
19156 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19157
19158 * opts.h (finish_options): Remove lang_mask argument.
19159 (print_help, help_option_argument): Declare.
19160 * opts.c (print_help): Remove forward declaration, no longer static.
19161 (finish_options): Remove lang_mask argument, don't call print_help
19162 here.
19163 * opts-global.c (decode_options): Adjust finish_option caller, call
19164 print_help here.
19165
19166 PR tree-optimization/90303
19167 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19168 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19169
19170 2019-05-03 Richard Biener <rguenther@suse.de>
19171
19172 PR tree-optimization/89698
19173 * gimple-fold.c (canonicalize_constructor_val): Early out
19174 for constants, handle unfolded INTEGER_CSTs as they appear in
19175 C++ virtual table ctors.
19176
19177 2019-05-03 Richard Biener <rguenther@suse.de>
19178
19179 * passes.c (execute_function_todo): Remove dead code.
19180
19181 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19182
19183 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19184 the internal register number, for any "real" register.
19185
19186 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19187
19188 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19189 correct numbers for TFHAR, TFIAR, TEXASR.
19190
19191 2019-05-02 Richard Biener <rguenther@suse.de>
19192
19193 PR tree-optimization/89653
19194 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19195 update-address-taken before the pass.
19196 * passes.def (pass_tree_loop_init): Put comment before it.
19197
19198 2019-05-02 Richard Biener <rguenther@suse.de>
19199
19200 PR tree-optimization/89509
19201 * tree-ssa-structalias.c (compute_dependence_clique): Look
19202 at the first subvar when determining whether it is restrict.
19203
19204 2019-05-02 Richard Biener <rguenther@suse.de>
19205
19206 PR tree-optimization/90273
19207 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19208 useless debug stmts.
19209
19210 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19211
19212 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19213 ACLE branch.
19214 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19215 SVE ACLE branch.
19216 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19217 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19218 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19219 (vectorizable_reduction): Use the functions above to vectorize in a
19220 fully masked loop codes that don't have a conditional internal
19221 function.
19222
19223 2019-05-02 Martin Liska <mliska@suse.cz>
19224
19225 * cgraphclones.c: Call valid_attribute_p with 1 for
19226 target_clone.
19227 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19228 it's for target attribute.
19229 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19230 Add new boolean argument.
19231 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19232 Likewise.
19233 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19234 to ix86_valid_target_attribute_inner_p.
19235 (ix86_valid_target_attribute_p): Pass flags argument to
19236 ix86_valid_target_attribute_inner_p.
19237 (get_builtin_code_for_version): Use 0 as it's target attribute.
19238
19239 2019-05-02 Martin Liska <mliska@suse.cz>
19240
19241 * gcc.c (process_command): Add dummy file only
19242 if n_infiles == 0.
19243 * opts-global.c (decode_options): Pass lang_mask.
19244 * opts.c (print_help): New function.
19245 (finish_options): Print --help if help_option_argument
19246 is set.
19247 (common_handle_option): Factor out content of OPT__help_
19248 into print_help.
19249 * opts.h (finish_options): Add new argument.
19250
19251 2019-05-02 Martin Liska <mliska@suse.cz>
19252
19253 PR target/88809
19254 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19255 With -minline-all-stringops use inline expansion using 4B loop.
19256 * doc/invoke.texi: Document the change of
19257 -minline-all-stringops.
19258
19259 2019-05-01 Jeff Law <law@redhat.com>
19260
19261 PR tree-optimization/88797
19262 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19263 PHI feeds a conditional on the RHS of an assignment.
19264
19265 2019-04-30 Andrew Waterman <andrew@sifive.com>
19266 Jim Wilson <jimw@sifive.com>
19267
19268 * config/riscv/constraints.md (L): New.
19269 * config/riscv/predicates.md (lui_operand): New.
19270 (sfb_alu_operand): New.
19271 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19272 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19273 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19274 * config/riscv/risc.md (type): Add sfb_alu.
19275 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19276 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19277 (branch_zero<mode>): Delete.
19278 (mov<mode>cc): New.
19279 (mov<GPR:mode><X:mode>cc): Likewise.
19280 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19281
19282 2019-04-30 Nathan Sidwell <nathan@acm.org>
19283
19284 * tree.h (MARK_TS_EXP): New.
19285
19286 2019-04-30 Martin Liska <mliska@suse.cz>
19287
19288 * opts.c (enable_warning_as_error): Provide hints
19289 for unknown options.
19290
19291 2019-04-30 Martin Liska <mliska@suse.cz>
19292
19293 PR debug/90288
19294 * doc/invoke.texi: Add missing dash for gas-locview-support
19295 and gno-as-locview-support.
19296
19297 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19298
19299 PR target/89093
19300 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19301 whitespace at the start of target attribute string.
19302
19303 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19304
19305 PR target/86538
19306 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19307 Define __ARM_FEATURE_ATOMICS.
19308
19309 2019-04-30 Martin Liska <mliska@suse.cz>
19310
19311 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19312 into built_in_function enum. Remove code for endp == 2 and
19313 use BUILT_IN_* constants.
19314 (gimple_fold_builtin): Call the function with fcode.
19315
19316 2019-04-30 Martin Liska <mliska@suse.cz>
19317
19318 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19319 DECL_FUNCTION_CODE into ix86_builtins enum before
19320 the switch statement.
19321
19322 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19323
19324 PR tree-optimization/89475
19325 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19326 calls.
19327
19328 2019-04-30 Martin Liska <mliska@suse.cz>
19329
19330 PR translation/90274
19331 * opts.c (print_filtered_help): Wrap string in _(...).
19332
19333 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19334
19335 PR tree-optimization/90240
19336 Revert:
19337 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19338
19339 PR tree-optimization/90078
19340 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19341 checks for infinite_cost overflow.
19342
19343 2019-04-29 Jeff Law <law@redhat.com>
19344
19345 * passes.def: Move -Wrestrict pass after copy propagation.
19346
19347 2019-04-29 Maya Rashish <coypu@sdf.org>
19348
19349 * config.gcc (default_gnu_indirect_function): Default to yes
19350 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19351 sparc*-*-netbsd*, x86_64-*-netbsd*.
19352
19353 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19354
19355 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19356 where cond2 is NE_EXPR.
19357 (is_value_included_in): Update comment.
19358
19359 2019-04-29 Richard Biener <rguenther@suse.de>
19360
19361 PR tree-optimization/90278
19362 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19363 EH on comparison simplification.
19364
19365 2019-04-29 Jason Merrill <jason@redhat.com>
19366
19367 PR c++/82081 - tail call optimization breaks noexcept
19368 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19369 nothrow function to a might-throw function into a tail call.
19370
19371 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19372
19373 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19374 (DDR_INNER_LOOP): Likewise.
19375 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19376 (initialize_data_dependence_relation): Likewise.
19377 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19378
19379 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19380
19381 PR rtl-optimization/90257
19382 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19383 return value.
19384
19385 Revert the revert:
19386 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19387
19388 PR target/90178
19389 Revert:
19390 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19391
19392 Revert the revert:
19393 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19394
19395 Revert:
19396 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19397
19398 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19399
19400 2019-04-29 Richard Biener <rguenther@suse.de>
19401
19402 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19403 rhs issue a reset.
19404
19405 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19406
19407 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19408 varasm.h, and netbsd-protos.h.
19409
19410 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19411
19412 PR target/89261
19413 * config/i386/i386-protos.h (ix86_data_alignment): Change
19414 the second argument type to unsigned int.
19415 * config/i386/i386.c (ix86_data_alignment): Change "align"
19416 argument type to unsigned int.
19417
19418 2019-04-27 Martin Liska <mliska@suse.cz>
19419
19420 PR middle-end/90258
19421 * opt-suggestions.c (option_proposer::build_option_suggestions):
19422 When get_valid_option_values returns empty values, add the
19423 misspelling candidate.
19424
19425 2019-04-26 Jim Wilson <jimw@sifive.com>
19426
19427 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19428 parameter.
19429 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19430 Pass orig_mode to riscv_build_integer.
19431 (riscv_split_integer): Pass mode to riscv_move_integer.
19432 (riscv_legitimize_const_move): Likewise.
19433 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19434 promoted_mode. Replace force_reg call with code to load constant into
19435 promoted reg and then subreg it for the store.
19436 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19437 riscv_move_integer.
19438
19439 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19440
19441 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19442 corrupt codes.
19443
19444 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19445
19446 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19447 commentary about the encoding of precision.
19448
19449 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19450
19451 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19452 * config/i386/t-freebsd64: New file.
19453 * config.gcc: Add the t-freebsd64 for multilib support.
19454
19455 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19456
19457 * doc/extend.texi (vector_size): Add missing comma after @xref.
19458
19459 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19460
19461 * BASE-VER: Set to 10.0.0.
19462
19463 2019-04-25 Richard Biener <rguenther@suse.de>
19464
19465 PR middle-end/89765
19466 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19467 VIEW_CONVERT_EXPR into one operating on an rvalue.
19468
19469 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19470
19471 PR target/89929
19472 * config/i386/i386.c (feature_priority): Moved to file scope.
19473 (processor_features): Likewise.
19474 (processor_model): Likewise.
19475 (_arch_names_table): Likewise.
19476 (arch_names_table): Likewise.
19477 (_feature_list): Removed.
19478 (feature_list): Likewise.
19479 (_isa_names_table): Moved to file scope. Add priority.
19480 (isa_names_table): Likewise.
19481 (get_builtin_code_for_version): Replace feature_list with
19482 isa_names_table. Update error message for P_ZERO priority.
19483
19484 2019-04-25 Richard Biener <rguenther@suse.de>
19485
19486 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19487 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19488
19489 2019-04-24 Jeff Law <law@redhat.com>
19490
19491 PR tree-optimization/90037
19492 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19493 * passes.def: Replace all instance of phi-only cprop with the
19494 lattice propagator. Move propagation pass from after erroneous
19495 path isolation to before erroneous path isolation.
19496 * tree-ssa-phionlycprop.c: Remove.
19497
19498 2019-04-24 Richard Biener <rguenther@suse.de>
19499
19500 PR middle-end/90213
19501 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19502 by size and BITS_PER_UNIT on poly-wide-ints.
19503
19504 2019-04-25 Richard Biener <rguenther@suse.de>
19505
19506 PR middle-end/90194
19507 * match.pd: Add pattern to simplify view-conversion of an
19508 empty constructor.
19509
19510 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19511
19512 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19513 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19514 for Go on 32 bit AIX.
19515 * config/rs6000/aix72.h: Likewise.
19516
19517 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19518
19519 PR target/90193
19520 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19521 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19522
19523 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19524
19525 PR target/89952
19526 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19527 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19528 for restored hard frame pointer.
19529 (s390_sched_dependencies_evaluation): Implement new target hook.
19530 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19531
19532 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19533
19534 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19535 * config/arc/arc.c (arc_init): Cleanup warning message.
19536 (arc_override_options): Likewise.
19537
19538 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19539
19540 PR target/90187
19541 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19542 a register if both if_true and if_false are MEMs.
19543
19544 PR tree-optimization/90208
19545 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19546 after labels of new_bb, not before them.
19547
19548 PR tree-optimization/90211
19549 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19550 which are not SSA_NAMEs.
19551
19552 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19553
19554 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19555 AArch64.
19556 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19557
19558 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19559
19560 PR rtl-optimization/87979
19561 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19562 not equal zero.
19563
19564 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19565
19566 PR rtl-optimization/84032
19567 * modulo-sched.c (ps_insn_find_column): Change condition so that
19568 branch will always be the last insn in a row inside partial
19569 schedule.
19570
19571 2019-04-23 Richard Biener <rguenther@suse.de>
19572
19573 PR debug/90131
19574 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19575 dest_single_pred_p argument.
19576 (remove_forwarder_block): Adjust.
19577 (remove_forwarder_block_with_phi): Likewise.
19578
19579 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19580 Bernd Edlinger <bernd.edlinger@hotmail.de>
19581 Jakub Jelinek <jakub@redhat.com>
19582
19583 PR target/89093
19584 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19585 if used with general-regs-only.
19586 (arm_conditional_register_usage): Don't add non-general regs if
19587 general-regs-only.
19588 (arm_valid_target_attribute_rec): Handle general-regs-only.
19589 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19590 general-regs-only.
19591 (TARGET_HARD_FLOAT_SUB): Define.
19592 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19593 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19594 (TARGET_REALLY_IWMMXT2): Likewise.
19595 * config/arm/arm.opt: Add -mgeneral-regs-only.
19596 * doc/extend.texi: Document ARM general-regs-only target.
19597 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19598
19599 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19600
19601 PR tree-optimization/90078
19602 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19603 checks for infinite_cost overflow.
19604
19605 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19606
19607 PR tree-optimization/90021
19608 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19609 and check univariate against it.
19610 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19611 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19612
19613 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19614
19615 PR target/90178
19616 Revert:
19617 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19618
19619 Revert the revert:
19620 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19621
19622 Revert:
19623 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19624
19625 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19626
19627 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19628
19629 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19630 names using operand format, rather than hard-wired.
19631 (speculation_barrier): Likewise.
19632
19633 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19634
19635 PR tree-optimization/88055
19636 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19637 (gen_one_condition): Use it if !HONOR_NANS.
19638
19639 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19640
19641 PR middle-end/90139
19642 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19643 assign_temp instead of gen_reg_rtx.
19644
19645 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19646
19647 PR translation/90118
19648 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19649 Add missing space before %<.
19650
19651 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19652
19653 PR rtl-optimization/87871
19654 * ira-lives.c (make_object_dead): Don't add conflicts to
19655 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19656
19657 2019-04-18 Martin Sebor <msebor@redhat.com>
19658
19659 PR middle-end/89797
19660 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19661 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19662 assuming type size fits in SHWI.
19663
19664 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19665
19666 PR ipa/85051
19667 * ipa-inline.c (flatten_function): New parameter UPDATE.
19668 (ipa_inline, early_inliner): Use it.
19669
19670 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19671
19672 * fold-const.c (int_const_binop): Return early on failure.
19673
19674 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19675
19676 PR middle-end/85164
19677 * combine.c (force_int_to_mode): Cast the argument rather than
19678 the result of known_alignment.
19679 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19680
19681 2019-04-18 Richard Biener <rguenther@suse.de>
19682
19683 PR debug/90131
19684 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19685 out from ...
19686 (remove_forwarder_block): ... here.
19687 (remove_forwarder_block_with_phi): Also move debug stmts here.
19688
19689 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19690
19691 PR translation/79183
19692 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19693 inform where appropriate.
19694
19695 2019-04-18 Richard Biener <rguenther@suse.de>
19696
19697 * tree.c (get_qualified_type): Put found type variants at the
19698 head of the variant list.
19699
19700 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19701
19702 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19703
19704 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19705
19706 PR target/90125
19707 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19708 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19709 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19710 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19711 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19712
19713 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19714
19715 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19716 even for allocno's with no conflicts.
19717 (print_conflicts): Print an extra newline.
19718
19719 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19720
19721 * auto-inc-dec.c (attempt_change): Set the alignment of the
19722 temporary memory to that of the original.
19723
19724 2019-04-17 Joao Moreira <jmoreira@suse.de>
19725
19726 * targhooks.c (default_print_patchable_function_entry): Emit
19727 __patchable_function_entries section with writable flags to allow
19728 relocation resolution.
19729
19730 2019-04-17 Jonny Grant <jg@jguk.org>
19731
19732 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19733
19734 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19735
19736 PR middle-end/90095
19737 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19738 on lowpart SUBREGs.
19739
19740 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19741
19742 * config/arc/arc.c (arc_init): Format diagnostic string.
19743 (arc_override_options): Likewise.
19744 (check_if_valid_regno_const): Likewise.
19745 (arc_reorg): Likewise.
19746
19747 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19748
19749 PR target/17108
19750 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19751 name.
19752 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19753 name.
19754 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19755 (*movdi_update1): Use Pmode.
19756 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19757 (movdi_<mode>_update_stack): Rename to ...
19758 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19759 use Pmode.
19760 (*movsi_update1): Use Pmode.
19761 (*movsi_update2): Use Pmode.
19762 (movsi_update): Rename to ...
19763 (movsi_<mode>_update): ... this. Use Pmode.
19764 (movsi_update_stack): Fix condition.
19765 (*movhi_update1): Use Pmode. Fix argument to
19766 avoiding_indexed_address_p.
19767 (*movhi_update2): Ditto.
19768 (*movhi_update3): Ditto.
19769 (*movhi_update4): Ditto.
19770 (*movqi_update1): Ditto.
19771 (*movqi_update2): Ditto.
19772 (*movqi_update3): Ditto.
19773 (*movsf_update1, *movdf_update1): Merge, rename to...
19774 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19775 avoiding_indexed_address_p. Add "size" attribute.
19776 (*movsf_update2, *movdf_update2): Merge, rename to...
19777 (*mov<mode>_update2): This. Ditto.
19778 (*movsf_update3): Use Pmode. Fix argument to
19779 avoiding_indexed_address_p.
19780 (*movsf_update4): Ditto.
19781 (allocate_stack): Simplify condition. Adjust pattern names.
19782
19783 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19784
19785 PR target/89093
19786 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19787 whitespace at the start of target attribute string.
19788
19789 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19790
19791 PR target/84369
19792 * config/rs6000/power9.md: Add store forwarding bypass.
19793
19794 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19795
19796 PR debug/89528
19797 * valtrack.c (dead_debug_insert_temp): Reset debug references
19798 to the return value of a call being removed.
19799
19800 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19801
19802 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19803 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19804 implement target hook.
19805 (arc_memory_move_cost): New function.
19806 (TARGET_REGISTER_MOVE_COST): Define.
19807 (TARGET_MEMORY_MOVE_COST): Likewise.
19808 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19809 (MEMORY_MOVE_COST): Likewise.
19810
19811 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19812
19813 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19814 (sibcall_value_insn): Likewise.
19815 * config/arc/constraints.md (Rs5): Remove.
19816
19817 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19818
19819 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19820 for last two fake registers.
19821 (arc_conditional_register_usage): Make sure fake frame and arg
19822 pointer regs are in general regs class.
19823 (FRAME_POINTER_MASK): Remove.
19824 (RETURN_ADDR_MASK): Remove.
19825 (arc_must_save_register): Use hard frame regnum.
19826 (frame_restore_reg): Use hard_frame_pointer_rtx.
19827 (arc_save_callee_saves): Likewise.
19828 (arc_restore_callee_saves): Likewise.
19829 (arc_save_callee_enter): Likewise.
19830 (arc_restore_callee_leave): Likewise.
19831 (arc_save_callee_milli): Likewise.
19832 (arc_eh_return_address_location): Likewise.
19833 (arc_check_multi): Use hard frame regnum.
19834 (arc_can_eliminate): Likewise.
19835 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19836 for register allocator.
19837 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19838 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19839 (FRAME_POINTER_REGNUM): Change it to a fake register.
19840 (HARD_FRAME_POINTER_REGNUM): Defined.
19841 (ARG_POINTER_REGNUM): Change it to a new fake register.
19842 (ELIMINABLE_REGS): Update.
19843 (REGISTER_NAMES): Update names.
19844 * config/arc/arc.md (LP_START): Remove.
19845 (LP_END): Likewise.
19846 (shift_si3_loop): Update pattern.
19847
19848 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19849
19850 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19851 to avoid delay slot scheduling.
19852 (arc_must_save_register): Don't save SP.
19853 * config/arc/arc.md (stack_tie): Remove.
19854 (UNSPEC_ARC_STKTIE): Likewise.
19855
19856 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
19857 Shiva Chen <shiva0217@gmail.com>
19858
19859 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19860 code gen with large shift amount.
19861
19862 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
19863
19864 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19865 subreg.
19866
19867 2019-04-16 Jakub Jelinek <jakub@redhat.com>
19868
19869 PR target/90096
19870 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
19871 print -m64/-mx32/-m32 if it is true.
19872 (ix86_debug_options, ix86_function_specific_print): Pass true as
19873 ADD_ABI_P to ix86_target_string.
19874 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
19875 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
19876 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
19877
19878 PR rtl-optimization/90082
19879 * dce.c (can_delete_call): New function.
19880 (deletable_insn_p, mark_insn): Use it.
19881
19882 PR tree-optimization/90090
19883 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
19884 throw internally.
19885 (is_division_by_square): Likewise. Formatting fix.
19886
19887 2019-04-16 Richard Biener <rguenther@suse.de>
19888
19889 PR tree-optimization/56049
19890 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
19891 equality check if alias-set zero will prevail.
19892
19893 2019-04-15 Jeff Law <law@redhat.com>
19894
19895 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
19896 size and alignment as unsigned.
19897
19898 2019-04-15 Richard Biener <rguenther@suse.de>
19899
19900 PR debug/90074
19901 * tree-loop-distribution.c (destroy_loop): Preserve correct
19902 debug info.
19903
19904 2019-04-15 Richard Biener <rguenther@suse.de>
19905
19906 PR tree-optimization/90071
19907 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
19908 abnormal operands from def stmts.
19909
19910 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
19911
19912 PR rtl-optimization/89794
19913 * combine.c (count_auto_inc): New function.
19914 (try_combine): Count how many auto_inc expressions there were in the
19915 original instructions. Ensure we have the same number in the new
19916 instructions. Remove the code that tried to ensure auto_inc side
19917 effects on i1 and i0 are not lost.
19918
19919 2019-04-15 Richard Biener <rguenther@suse.de>
19920
19921 PR ipa/88936
19922 * tree.h (auto_var_p): Declare.
19923 * tree.c (auto_var_p): New function, split out from ...
19924 (auto_var_in_fn_p): ... here.
19925 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
19926 member.
19927 (new_var_info): Initialize it.
19928 (set_uids_in_ptset): Also set the shadow variable uid if required.
19929 (ipa_pta_execute): Postprocess points-to solutions assigning
19930 shadow variable uids for locals that may reach their containing
19931 function recursively.
19932 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
19933 assert but instead check whether the points-to solution is
19934 a singleton.
19935
19936 2019-04-15 Martin Jambor <mjambor@suse.cz>
19937
19938 PR ipa/pr89693
19939 * cgraph.c (clone_of_p): Loop over clone chain for each step in
19940 the thunk chain.
19941
19942 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19943
19944 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
19945
19946 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
19947 Kito Cheng <kito.cheng@gmail.com>
19948 Shiva Chen <shiva0217@gmail.com>
19949
19950 * config/nds32/nds32-md-auxiliary.c
19951 (nds32_legitimize_pic_address): Use new PIC pattern.
19952 (nds32_legitimize_tls_address): Use new TLS pattern.
19953 (nds32_output_symrel): New.
19954 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
19955 (nds32_alloc_relax_group_id): Ditto.
19956 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
19957 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
19958 relax_group_id.
19959 (nds32_group_tls_insn): Ditto.
19960 (nds32_group_float_insns): Ditto.
19961 * config/nds32/nds32.md (tls_le): New.
19962 (sym_got): Ditto.
19963
19964 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
19965
19966 * configure: Add nds32 target for dwarf2 debug_line checking.
19967 * configure.ac: Regenerated.
19968
19969 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
19970
19971 PR lto/89358
19972 * ipa-devirt.c (skip_in_fields_list_p): New.
19973 (odr_types_equivalent_p): Use it.
19974
19975 2019-04-13 Jakub Jelinek <jakub@redhat.com>
19976
19977 PR target/89093
19978 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
19979 instead of strncmp when checking for thumb and arm. Formatting fixes.
19980
19981 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
19982
19983 * doc/install.texi: Document --with-target-system-zlib.
19984
19985 2019-04-12 Martin Sebor <msebor@redhat.com>
19986
19987 PR c/88383
19988 PR c/89288
19989 PR c/89798
19990 PR c/89797
19991 * targhooks.c (default_vector_alignment): Avoid assuming
19992 argument fits in SHWI.
19993 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
19994 a shift expression.
19995 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
19996
19997 2019-04-12 Jakub Jelinek <jakub@redhat.com>
19998
19999 PR rtl-optimization/89965
20000 * dce.c: Include rtl-iter.h.
20001 (struct check_argument_load_data): New type.
20002 (check_argument_load): New function.
20003 (find_call_stack_args): Check for loads from stack slots still tracked
20004 in sp_bytes and punt if any is found.
20005
20006 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20007
20008 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20009
20010 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20011 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20012
20013 2019-04-12 Martin Liska <mliska@suse.cz>
20014
20015 PR middle-end/89970
20016 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20017 in error message.
20018 (separate_attrs): Handle multiple 'default's.
20019 (expand_target_clones): Rework error handling code.
20020
20021 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20022
20023 PR target/87532
20024 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20025 mode of vector rather than mode of destination for move instruction.
20026 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20027 Use QI inner mode with V16QI vector mode.
20028
20029 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20030
20031 PR target/52726
20032 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20033 "invalid %%t operand" in output_operand_lossage message.
20034
20035 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20036
20037 * config/s390/predicates.md (permute_pattern_operand): New
20038 predicate.
20039 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20040 operand for the permute pattern.
20041 ("*vec_perm<mode>"): New insn definition.
20042 ("bswap<mode>"): Generate the permute pattern operand in the
20043 expander and perform the operand reloads for pre arch13 level
20044 already.
20045 ("*bswap<mode>_emu"): Rename to ...
20046 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20047 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20048 Add the USE operand for the permute pattern.
20049 ("*vec_set_bswap_vec<mode>"): Likewise.
20050
20051 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20052
20053 PR c/89946
20054 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20055 and gcc_unreachable if it fails, just call tree_to_uhwi which
20056 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20057 Start warning message with a lower-case letter. Formatting fixes.
20058
20059 PR rtl-optimization/90026
20060 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20061 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20062 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20063 in cfglayout mode, use emit_barrier_after_bb.
20064
20065 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20066
20067 PR rtl-optimization/87763
20068 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20069 New Instruction.
20070
20071 2019-04-11 Tom de Vries <tdevries@suse.de>
20072
20073 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20074 max macro using statement expression.
20075
20076 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20077
20078 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20079 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20080 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20081 read_only_private_data_section using xcoff_private_rodata_section_name.
20082 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20083
20084 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20085
20086 PR target/90016
20087 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20088
20089 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20090
20091 PR rtl-optimization/89965
20092 * dce.c (sp_based_mem_offset): New function.
20093 (find_call_stack_args): Use sp_based_mem_offset.
20094
20095 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20096
20097 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20098
20099 2019-04-11 Richard Biener <rguenther@suse.de>
20100
20101 PR tree-optimization/90020
20102 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20103 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20104 * tree-ssa-pre.c (compute_avail): Use it to not put
20105 possibly trapping references after a call that might not
20106 return into EXP_GEN.
20107 * gcse.c (compute_hash_table_work): Do not elide
20108 marking a block containing a call if the call might not
20109 return.
20110
20111 2019-04-11 Richard Biener <rguenther@suse.de>
20112
20113 PR tree-optimization/90018
20114 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20115 Test both SLP and interleaving variants.
20116
20117 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20118
20119 * config/s390/8561.md: New file.
20120 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20121 Add arch13 cpu model.
20122 * config/s390/s390-opts.h (enum processor_type): Likewise.
20123 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20124 (s390_get_unit_mask): Likewise.
20125 (s390_is_fpd): Likewise.
20126 (s390_is_fxd): Likewise.
20127 * config/s390/s390.h (s390_tune_attr): Likewise.
20128 * config/s390/s390.md: Include arch13 pipeline description.
20129 * config/s390/s390.opt: Add arch13.
20130
20131 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20132
20133 PR rtl-optimization/87763
20134 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20135 New prototype.
20136 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20137 New function.
20138 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20139 New instruction.
20140 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20141 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20142 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20143 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20144
20145 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20146
20147 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20148 "Although" in -fipa-icf documentation.
20149
20150 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20151 of using multiple -g options.
20152
20153 2019-04-10 Martin Liska <mliska@suse.cz>
20154
20155 PR gcov-profile/89959
20156 * doc/gcov.texi: Make documentation of -x option
20157 more precise.
20158
20159 2019-04-10 Richard Biener <rguenther@suse.de>
20160
20161 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20162 member.
20163 (DR_GROUP_SAME_DR_STMT): Remove.
20164 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20165 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20166 replace with assert.
20167 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20168 (vect_record_grouped_load_vectors): Remove unreachable code.
20169
20170 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20171
20172 PR target/90016
20173 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20174 obsolete reference to N.
20175
20176 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20177
20178 PR middle-end/90025
20179 * expr.c (store_expr): Set properly size on the MEM passed to
20180 clear_storage.
20181
20182 PR c++/90010
20183 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20184 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20185 translation is needed, and when translation is needed, only append
20186 ... if the string length is hostsz or more bytes long. Avoid using
20187 strncpy or strcat.
20188
20189 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20190
20191 PR target/90024
20192 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20193 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20194 into three.
20195 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20196 differences directly.
20197 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20198
20199 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20200
20201 PR translation/90011
20202 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20203 from diagnostics.
20204 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20205 diagnostics.
20206 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20207 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20208 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20209 trailing space from -gsplit-dwarf diagnostics.
20210
20211 PR tree-optimization/89998
20212 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20213 instead of integer_type_node if possible, don't add ranges if return
20214 type is not compatible with int.
20215 * gimple-fold.c (gimple_fold_builtin_sprintf,
20216 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20217 integer_type_node.
20218
20219 2019-04-09 Martin Liska <mliska@suse.cz>
20220
20221 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20222 * doc/install.texi: Document the new config.
20223
20224 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20225
20226 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20227 use gimple_expr_type for load and store calls. Skip over the
20228 condition argument in a conditional internal function.
20229 Protect use of TREE_INT_CST_LOW.
20230
20231 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20232
20233 PR target/90015
20234 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20235 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20236 trailing period from it too.
20237
20238 2019-04-08 wu yuan <wuyuan5@huawei.com>
20239
20240 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20241 * config/aarch64/aarch64.md : Add "tsv110.md"
20242 * config/aarch64/tsv110.md: New file.
20243
20244 2019-04-08 Richard Biener <rguenther@suse.de>
20245
20246 PR tree-optimization/90006
20247 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20248 calls like lrint.
20249
20250 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20251
20252 PR target/83033
20253 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20254 construction.
20255 (fma_root_node): Likewise.
20256 (func_fma_steering): Likewise.
20257
20258 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20259
20260 PR rtl-optimization/89865
20261 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20262
20263 PR rtl-optimization/89865
20264 * config/i386/i386.md
20265 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20266 numbers not to clash with the additional operands[4].
20267 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20268 with extra register copy in the middle.
20269
20270 2019-04-08 Martin Liska <mliska@suse.cz>
20271
20272 PR gcov-profile/89961
20273 * doc/gcov.texi: Document data_file.
20274 * gcov.c (generate_results): Add data_info into JSON output.
20275
20276 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20277
20278 PR tree-optimization/89725
20279 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20280 loop's chrec as invariant symbol.
20281 * tree-chrec.h (chrec_contains_symbols): New parameter.
20282 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20283 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20284 function of loops not in DDR's loop_nest.
20285 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20286
20287 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20288
20289 PR target/89623
20290 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20291 Mask.
20292
20293 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20294
20295 PR target/89945
20296 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20297 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20298
20299 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20300
20301 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20302 targetm.fixed_condition_code_regs.
20303
20304 2019-04-05 Richard Biener <rguenther@suse.de>
20305
20306 PR debug/89892
20307 PR debug/89905
20308 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20309 debug bind stmts but reset them if they are not valid at the
20310 destination.
20311
20312 2019-04-05 Martin Liska <mliska@suse.cz>
20313
20314 PR translation/89936
20315 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20316 order to wrap keywords or arguments.
20317 * collect2.c (main): Likewise.
20318 (scan_prog_file): Likewise.
20319 (scan_libraries): Likewise.
20320 * common/config/riscv/riscv-common.c
20321 (riscv_subset_list::parsing_subset_version): Likewise.
20322 (riscv_subset_list::parse_std_ext): Likewise.
20323 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20324 Likewise.
20325 * config/arm/arm.c (arm_option_override): Likewise.
20326 * config/cris/cris.c (cris_print_operand): Likewise.
20327 * config/darwin-c.c (darwin_pragma_options): Likewise.
20328 (darwin_pragma_unused): Likewise.
20329 (darwin_pragma_ms_struct): Likewise.
20330 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20331 * config/i386/i386.c (print_reg): Likewise.
20332 (ix86_print_operand): Likewise.
20333 * config/i386/xm-djgpp.h: Likewise.
20334 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20335 * config/m32c/m32c.c (m32c_option_override): Likewise.
20336 * config/msp430/msp430.c (msp430_option_override): Likewise.
20337 * config/nds32/nds32.c (nds32_option_override): Likewise.
20338 * config/nvptx/mkoffload.c (main): Likewise.
20339 * config/rx/rx.c (rx_print_operand): Likewise.
20340 (valid_psw_flag): Likewise.
20341 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20342 (vms_pragma_nomember_alignment): Likewise.
20343 (vms_pragma_extern_model): Likewise.
20344 * lto-wrapper.c (compile_offload_image): Likewise.
20345 * omp-offload.c (oacc_parse_default_dims): Likewise.
20346 * symtab.c (symtab_node::verify_base): Likewise.
20347 * tlink.c (recompile_files): Likewise.
20348 (start_tweaking): Likewise.
20349 * tree-profile.c (parse_profile_filter): Likewise.
20350
20351 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20352
20353 PR tree-optimization/89956
20354 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20355 multiple negates of the same value.
20356
20357 2019-04-04 Martin Sebor <msebor@redhat.com>
20358
20359 PR middle-end/89957
20360 PR middle-end/89911
20361 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20362 have the same precision since the function crashes otherwise.
20363 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20364 has non-zero arguments.
20365
20366 2019-04-04 Martin Sebor <msebor@redhat.com>
20367
20368 PR middle-end/89934
20369 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20370 out if the number of arguments is less than expected.
20371
20372 2019-04-04 Jeff Law <law@redhat.com>
20373
20374 PR rtl-optimization/89399
20375 * ree.c (combine_set_extension): Use single_set rather than
20376 digging into PATTERN for items on the candidate list.
20377 (combine_reaching_defs): Likewise.
20378
20379 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20380
20381 PR rtl-optimization/46590
20382 * loop-invariant.c (find_defs): Move df_remove_problem and
20383 df_process_deferred_rescans to move_invariants.
20384 Move df_live_add_problem and df_live_set_all_dirty calls
20385 to move_invariants.
20386 (move_invariants): Likewise.
20387 (move_loop_invariants): Likewise, making the df_live calls
20388 conditional on -O. Remove the problem again if we added it
20389 locally.
20390
20391 2019-04-03 qing zhao <qing.zhao@oracle.com>
20392
20393 PR tree-optimization/89730
20394 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20395 -flive-patching=inline-only-static.
20396 (can_inline_edge_by_limits_p): Add the checking for
20397 -flive-patching=inline-only-static and grant always_inline
20398 even when -flive-patching=inline-only-static is specified.
20399
20400 2019-04-03 Jeff Law <law@redhat.com>
20401
20402 PR rtl-optimization/81025
20403 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20404
20405 2019-04-03 Richard Biener <rguenther@suse.de>
20406
20407 PR tree-optimization/84101
20408 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20409 regs.h for hard_regno_nregs.
20410 (cfun_returns): New helper.
20411 (vect_model_store_cost): When vectorizing a store to a decl
20412 we return and the function ABI returns in a multi-reg location
20413 account for the possible spilling that will happen.
20414
20415 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20416
20417 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20418 displacement addresses for vector mode operands.
20419
20420 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20421
20422 * config/arc/arc.c (GMASK_LEN): Define.
20423 (arc_restore_callee_saves): Restore first blink when
20424 !optimize_size.
20425
20426 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20427
20428 * doc/extend.texi: Add deprecated comment on sign-return-address
20429 function attribute and add mbranch-protection.
20430 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20431
20432 2019-04-03 Richard Biener <rguenther@suse.de>
20433
20434 PR lto/89896
20435 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20436 the all target phony.
20437
20438 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20439
20440 PR target/89902
20441 PR target/89903
20442 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20443 Return false for variable DImode shifts.
20444 (dimode_scalar_chain::compute_convert_gain): Do not handle
20445 register count operand in variable DImode shifts.
20446 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20447 count argument of a variable shift instruction to a vector register.
20448 (dimode_scalar_chain::convert_reg): Remove support to convert
20449 count argument of a variable shift instruction.
20450
20451 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20452
20453 PR rtl-optimization/84206
20454 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20455 iterating over loop headers.
20456
20457 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20458
20459 PR rtl-optimization/85876
20460 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20461 beyond the original fence.
20462
20463 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20464
20465 * config.gcc: Mark spu* targets as deprecated/obsolete.
20466
20467 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20468
20469 * config/s390/s390-builtin-types.def: New builtin function type
20470 definitions. Remove unused types.
20471 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20472 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20473 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20474 overloaded builtins.
20475 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20476 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20477 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20478 (vec_double, vec_signed, vec_unsigned): Define to use the new
20479 overloaded builtins.
20480 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20481 Remove expanders.
20482
20483 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20484
20485 * config/s390/s390-builtin-types.def: New builtin function type
20486 definitions.
20487 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20488 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20489 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20490 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20491 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20492 constant definitions.
20493 * config/s390/vecintrin.h (vec_search_string_cc)
20494 (vec_search_string_until_zero_cc): New builtin name definitions.
20495 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20496 expanders.
20497 ("vec_vstrs<mode>"): New insn definition.
20498
20499 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20500
20501 * config/s390/s390-builtin-types.def: Add new builtin function
20502 types.
20503 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20504 New overloaded builtins.
20505 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20506 s390_vsrd.
20507 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20508 (UNSPEC_VEC_SLDBYTE): ... this.
20509 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20510 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20511 definitions.
20512 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20513 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20514 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20515
20516 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20517
20518 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20519 New insn definition.
20520 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20521 * config/s390/vector.md (V_HW_HSD): ... here.
20522
20523 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20524
20525 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20526 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20527 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20528 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20529 New insn definitions.
20530
20531 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20532
20533 * config/s390/s390-builtin-types.def: Add new builtin function type.
20534 * config/s390/s390-builtins.def: Add overloaded builtin
20535 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20536 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20537 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20538 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20539 ("eltswap<mode>"): New expander.
20540 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20541 insn definitions.
20542
20543 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20544
20545 * config/s390/s390-builtin-types.def: Add new builtin function types.
20546 * config/s390/s390-builtins.def: Add overloaded builtin
20547 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20548 instructions.
20549 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20550 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20551 ("bswap<mode>"): New expander.
20552 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20553
20554 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20555
20556 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20557 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20558 vector builtin version number in __VEC__.
20559
20560 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20561
20562 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20563 iterators.
20564 (SFSI): New mode attribute.
20565 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20566 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20567 rename to ...
20568 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20569 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20570 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20571 ("floatsi<mode>2"): Add wcefb instruction.
20572
20573 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20574
20575 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20576 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20577 mode iterators.
20578 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20579 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20580 support 32 bit fp-int conversions. Rename to ...
20581 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20582 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20583 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20584 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20585 ... to these.
20586
20587 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20588
20589 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20590 if-then-else constructs if we can use the select instruction.
20591 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20592
20593 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20594
20595 * config/s390/s390.md ("*popcountdi_arch13_cc")
20596 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20597 definition.
20598 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20599 Append _z196 to make it ...
20600 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20601 ("popcounthi2_z196"): ... this.
20602 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20603 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20604
20605 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20606
20607 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20608 certain compares for arch13 in order to make use of the condition
20609 code result produced by the new instructions.
20610 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20611 nxrk, and nxgrk instruction patterns.
20612 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20613 (inv_no): Add new code iterator together with some attributes.
20614 ("*andc_split_<mode>"): Disable splitter for arch13.
20615 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20616 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20617 ("*<ANDOR:bitops_name>c<GPR:mode>")
20618 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20619 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20620 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20621 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20622
20623 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20624
20625 * common/config/s390/s390-common.c (processor_flags_table): New
20626 entry for arch13.
20627 * config.gcc: Support arch13 with the --with-arch= configure flag.
20628 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20629 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20630 * config/s390/s390.c (s390_get_sched_attrmask)
20631 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20632 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20633 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20634 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20635 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20636 definitions.
20637 * config/s390/s390.opt: Support arch13 as processor type in
20638 command line options.
20639
20640 2019-04-02 Martin Liska <mliska@suse.cz>
20641
20642 PR translation/89912
20643 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20644 Fix param description of graphite-max-arrays-per-scop.
20645
20646 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20647
20648 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20649 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20650 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20651
20652 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20653
20654 PR rtl-optimization/85412
20655 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20656 sel_sched_region_1, not after.
20657
20658 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20659
20660 PR rtl-optimization/86928
20661 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20662 compute_live if necessary.
20663 (sel_redirect_edge_and_branch): Likewise.
20664
20665 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20666
20667 PR rtl-optimization/89865
20668 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20669 register if it is a part of small class.
20670
20671 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20672
20673 PR rtl-optimization/87273
20674 * sel-sched-ir.c (merge_fences): Remove assert.
20675
20676 2019-04-01 Richard Biener <rguenther@suse.de>
20677
20678 PR tree-optimization/46590
20679 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20680 (dom_walker::m_reachability): Add in place of...
20681 (dom_walker::m_skip_unreachable_blocks): ...this.
20682 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20683 Move complex initialization ...
20684 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20685 lazily and initialize edge flags on each invocation.
20686 (dom_walker::bb_reachable): Use m_reachability.
20687
20688 2019-04-01 Martin Liska <mliska@suse.cz>
20689
20690 PR driver/89861
20691 * opt-suggestions.c (option_proposer::build_option_suggestions):
20692 Add variant without any argument in order to provide better
20693 hints.
20694
20695 2019-04-01 Richard Biener <rguenther@suse.de>
20696
20697 PR c/71598
20698 * gimple.c: Include langhooks.h.
20699 (gimple_get_alias_set): Treat enumeral types as the underlying
20700 integer type.
20701
20702 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20703 Eric Botcazou <ebotcazou@adacore.com>
20704
20705 PR rtl-optimization/89862
20706 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20707 that operates on the full registers for WORD_REGISTER_OPERATIONS
20708 architectures.
20709
20710 2019-03-29 Jim Wilson <jimw@sifive.com>
20711
20712 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20713 Clear MASK_RVC and then set if C subset supported.
20714
20715 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20716
20717 PR c/89872
20718 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20719 non-addressable complit into its initializer if it is volatile.
20720
20721 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20722
20723 * opts-common.c (integral_argument): Set errno properly in one case.
20724
20725 2019-03-29 Martin Liska <mliska@suse.cz>
20726
20727 * doc/invoke.texi: Remove -Wchkp from documentation.
20728
20729 2019-03-29 Martin Liska <mliska@suse.cz>
20730
20731 * dbgcnt.c (print_limit_reach): New function.
20732 (dbg_cnt): Use it.
20733
20734 2019-03-29 Martin Liska <mliska@suse.cz>
20735
20736 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20737 (dbg_cnt_process_opt): Parse first tokens aas
20738 dbg_cnt_process_single_pair is also using strtok.
20739
20740 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20741
20742 PR rtl-optimization/87485
20743 * function.c (expand_function_end): Move stack_protect_epilogue
20744 before loading of return value into hard register(s).
20745
20746 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20747
20748 PR middle-end/89621
20749 * tree-inline.h (struct copy_body_data): Add
20750 dont_remap_vla_if_no_change flag.
20751 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20752 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20753 and remap_type_2 returns false.
20754 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20755 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20756 only from where it is copied to nested contexts.
20757
20758 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20759
20760 PR target/89865
20761 * config/i386/i386.md (RMW operation with LEA peephole):
20762 Use LEAMODE mode attribute instead of SWI mode iterator for
20763 LEA pattern.
20764
20765 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20766
20767 PR target/89848
20768 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20769 Also process XEXP (src, 0) of a shift insn.
20770
20771 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20772
20773 PR middle-end/89725
20774 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20775 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20776
20777 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20778
20779 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20780 test.
20781 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20782 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20783 immediately after first one with df_analyze in between, but rather
20784 process all bbs, queueing ones that need second pass in a worklist,
20785 df_analyze, process queued debug insn changes and if second pass is
20786 needed, process bbs from worklist, df_analyze, process queued debug
20787 insns again.
20788
20789 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20790 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20791 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20792
20793 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20794
20795 PR c/79022
20796 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20797 definition.
20798
20799 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
20800
20801 PR target/85667
20802 * config/i386/i386.c (ix86_function_value_1): Call the newly added
20803 function for 32-bit MS_ABI.
20804 (function_value_ms_32): New function.
20805
20806 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
20807
20808 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20809 (movdi): Call gen_movdi_symbol_save_scc.
20810 (gen_movdi_symbol_save_scc): New insn and split.
20811
20812 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
20813
20814 PR rtl-optimization/89313
20815 * function.c (matching_constraint_num): New static function.
20816 (match_asm_constraints_1): Use it. Fixup white space and comment.
20817 Don't replace inputs with non-matching constraints which conflict
20818 with early clobber outputs.
20819
20820 2019-03-27 Jeff Law <law@redhat.com>
20821
20822 PR rtl-optimization/87761
20823 PR rtl-optimization/89826
20824 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20825 slightly later.
20826 (pass_cprop_hardreg::execute): Call df_analyze after adding the
20827 note problem to get REG_DEAD/REG_UNUSED notes updated.
20828
20829 2019-03-27 Richard Biener <rguenther@suse.de>
20830
20831 PR tree-optimization/89463
20832 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20833 queue edges to remove.
20834 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20835 dead stmts. Delay edge removal until PHIs are removed to
20836 make debug-stmt creation not confused by seemingly degenerate
20837 PHIs.
20838
20839 2019-03-27 Alan Modra <amodra@gmail.com>
20840
20841 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20842 throughout file.
20843 * config/rs6000/darwin.h: Likewise.
20844 * config/rs6000/rs6000.c: Likewise.
20845
20846 2019-03-27 Alan Modra <amodra@gmail.com>
20847
20848 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20849 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
20850
20851 2019-03-26 Andrew Waterman <andrew@sifive.com>
20852 Jim Wilson <jimw@sifive.com>
20853
20854 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20855 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20856 (generic_idivdi, generic_fmul_single, generic_fmul_double)
20857 (generic_fdiv, generic_fsqrt): Add check for generic tune.
20858 (generic_alu): Add auipc to type list.
20859 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20860 (riscv_microarchitecture): Declare.
20861 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20862 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20863 field.
20864 (riscv_microarchitecture): New.
20865 (sifive_7_tune_info): New.
20866 (riscv_cpu_info_table): Add microarchitecture value for rocket and
20867 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
20868 entries.
20869 (riscv_store_data_bypass_p): New.
20870 (riscv_option_override): Set riscv_microarchitecture from
20871 cpu->microarchitecture.
20872 * config/riscv/riscv.md: Include sifive-7.md.
20873 (type): Add auipc.
20874 (tune): New.
20875 (auipc<mode>): Change type to auipc.
20876 (restore_stack_nonlocal): New.
20877 * config/riscv/sifive-7.md: New.
20878 * doc/invoke.texi (RISC-V Options): Update mtune docs.
20879
20880 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
20881
20882 PR target/89827
20883 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
20884 Also process XEXP (src, 0) of a shift insn.
20885
20886 2019-03-26 Richard Biener <rguenther@suse.de>
20887
20888 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
20889 (copy_debug_stmt): Likewise.
20890 (expand_call_inline): Likewise.
20891 (copy_bb): Avoid redundant lookup & set of gimple_block.
20892 * gimple-low.c (lower_gimple_return): Likewise.
20893 (lower_builtin_setjmp): Likewise.
20894
20895 2019-03-26 Jakub Jelinek <jakub@redhat.com>
20896
20897 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
20898 is constant 0, turn into static const data member initialized to false.
20899 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
20900 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
20901
20902 2019-03-26 Jason Merrill <jason@redhat.com>
20903 Jakub Jelinek <jakub@redhat.com>
20904
20905 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
20906 method.
20907 (mem_alloc_description::release_object_overhead): Fix comment typos.
20908 * hash-table.h (hash_table::~hash_table): Call
20909 release_instance_overhead only if m_entries is non-NULL, otherwise
20910 call unregister_descriptor.
20911
20912 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
20913
20914 PR tree-optimization/81740
20915 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20916 In case of outer loop vectorization, check for backward dependence
20917 at the inner loop if outer loop dependence is reversed.
20918
20919 2019-03-26 Alan Modra <amodra@gmail.com>
20920
20921 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
20922 rs6000_vector_mem init. Correct wI and wJ comment.
20923
20924 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
20925
20926 PR rtl-optimization/88347
20927 PR rtl-optimization/88423
20928 * sched-deps.c (sched_analyze_insn): Take into account that for
20929 tablejumps the barrier appears after a label and a jump_table_data.
20930
20931 2019-03-25 Martin Sebor <msebor@redhat.com>
20932
20933 PR c/89812
20934 * c-common.c (check_user_alignment): Rename local. Correct maximum
20935 alignment in diagnostic. Avoid assuming argument fits in SHWI,
20936 convert it to UHWI when it fits.
20937
20938 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
20939
20940 PR debug/86964
20941 * dwarf2out.c (premark_used_variables): New function.
20942 (prune_unused_types_walk): Do not mark not premarked external
20943 variables.
20944 (prune_unused_types): Call premark_used_variables.
20945
20946 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
20947
20948 PR rtl-optimization/89676
20949 * lra-constraints.c (curr_insn_transform): Do match reload for
20950 early clobbers when the match was successful only for different
20951 registers.
20952
20953 2019-03-25 Martin Sebor <msebor@redhat.com>
20954
20955 * doc/extend.texi (Common Type Attributes): Document vector_size.
20956 (Common Variable Attributes): Mention size constraint. Correct
20957 quoting and typos.
20958 (Vector Extensions): Use @dfn when defining bas type. Clarify
20959 base type and size constraints.
20960
20961 2019-03-25 Richard Biener <rguenther@suse.de>
20962
20963 PR tree-optimization/89789
20964 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
20965 changes from non-undefined back to undefined.
20966
20967 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
20968
20969 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
20970 heap string and a gc string, but since this variable is unknown to
20971 ggc the gc string might get reused and corrupted. Fixed by always
20972 using a heap string.
20973
20974 2019-03-25 Richard Biener <rguenther@suse.de>
20975
20976 PR tree-optimization/89779
20977 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
20978 to remove IV defs, delay actual removal.
20979 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
20980 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
20981 very end, properly also reset loop control IV information.
20982
20983 2019-03-25 Richard Biener <rguenther@suse.de>
20984
20985 PR tree-optimization/89802
20986 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
20987 move EH data to folded stmt.
20988
20989 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20990
20991 * config/s390/s390-builtin-types.def: Remove few unused types and
20992 fix sort order for others.
20993
20994 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
20995
20996 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
20997 expected and found types with -mdebug during builtin matching.
20998
20999 2019-03-25 Richard Biener <rguenther@suse.de>
21000
21001 PR middle-end/89790
21002 * fold-const.c (operand_equal_p): Revert last change with
21003 updated comment.
21004
21005 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21006
21007 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21008 notes for the result of the __tls_get_addr calls.
21009 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21010
21011 2019-03-24 Jeff Law <law@redhat.com>
21012
21013 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21014
21015 PR rtl-optimization/87761
21016 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21017 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21018 as needed.
21019 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21020 rescans. Reprocess blocks as needed, calling df_analyze before
21021 reprocessing. Always call df_analyze before fixing up debug bind
21022 insns.
21023
21024 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21025
21026 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21027 big endian.
21028
21029 2019-03-22 Andrew Pinski <apinski@marvell.com>
21030
21031 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21032 attrribute for uxtw.
21033
21034 2019-03-26 Jeff Law <law@redhat.com>
21035
21036 PR rtl-optimization/87761
21037 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21038 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21039 (mips_split_move): Accept new INSN argument. Try to forward SRC
21040 into the next instruction.
21041 (mips_split_move_insn): Pass INSN through to mips_split_move.
21042
21043 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21044
21045 PR rtl-optimization/89676
21046 * lra-constraints.c (curr_insn_transform): Do match reload for
21047 early clobbers even if the match was successful.
21048
21049 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21050
21051 PR c++/87481
21052 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21053
21054 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21055
21056 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21057
21058 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21059
21060 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21061 <avx512>_fmsub_<mode>_mask3<round_name>,
21062 <avx512>_fnmadd_<mode>_mask3<round_name>,
21063 <avx512>_fnmsub_<mode>_mask3<round_name>,
21064 avx512f_vmfmadd_<mode>_mask3<round_name>,
21065 avx512f_vmfmsub_<mode>_mask3<round_name>,
21066 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21067 instead of register_operand and %v instead of v for match_operand 1.
21068 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21069 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21070 <round_nimm_predicate> instead of register_operand and %v instead of v
21071 for match_operand 1.
21072
21073 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21074 <avx512>_fmadd_<mode>_mask3<round_name>,
21075 <avx512>_fmsub_<mode>_mask<round_name>,
21076 <avx512>_fmsub_<mode>_mask3<round_name>,
21077 <avx512>_fnmadd_<mode>_mask<round_name>,
21078 <avx512>_fnmadd_<mode>_mask3<round_name>,
21079 <avx512>_fnmsub_<mode>_mask<round_name>,
21080 <avx512>_fnmsub_<mode>_mask3<round_name>,
21081 <avx512>_fmaddsub_<mode>_mask<round_name>,
21082 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21083 <avx512>_fmsubadd_<mode>_mask<round_name>,
21084 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21085 <round_nimm_predicate> instead of nonimmediate_operand.
21086 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21087 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21088 Use register_operand instead of <round_nimm_predicate> for the
21089 operand that needs to match output.
21090 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21091 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21092 Likewise. Formatting fixes.
21093
21094 PR target/89784
21095 * config/i386/i386.c (enum ix86_builtins): Remove
21096 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21097 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21098 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21099 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21100 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21101 __builtin_ia32_vfmsubss3_mask3): New builtins.
21102 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21103 avx512f_vmfmadd_<mode>_mask3<round_name>,
21104 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21105 *avx512f_vmfmsub_<mode>_mask<round_name>,
21106 avx512f_vmfmsub_<mode>_mask3<round_name>,
21107 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21108 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21109 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21110 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21111 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21112 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21113 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21114 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21115 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21116 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21117 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21118 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21119 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21120 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21121 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21122 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21123 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21124 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21125 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21126 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21127 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21128 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21129 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21130 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21131 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21132 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21133 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21134 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21135
21136 2019-03-21 Martin Sebor <msebor@redhat.com>
21137
21138 PR tree-optimization/89350
21139 * builtins.c (compute_objsize): Also ignore offsets whose upper
21140 bound is negative.
21141 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21142 (builtin_memref::builtin_memref): Initialize new member.
21143 Allow EXPR to be null.
21144 (builtin_memref::extend_offset_range): Replace local with a member.
21145 Avoid assuming pointer offsets are unsigned.
21146 (builtin_memref::set_base_and_offset): Determine base object
21147 before computing offset range.
21148 (builtin_access::builtin_access): Handle memset.
21149 (builtin_access::generic_overlap): Replace local with a member.
21150 (builtin_access::strcat_overlap): Same.
21151 (builtin_access::overlap): Same.
21152 (maybe_diag_overlap): Same.
21153 (maybe_diag_access_bounds): Same.
21154 (wrestrict_dom_walker::check_call): Handle memset.
21155 (check_bounds_or_overlap): Same.
21156
21157 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21158 Jakub Jelinek <jakub@redhat.com>
21159
21160 PR lto/89692
21161 * tree.c (fld_type_variant, fld_incomplete_type_of,
21162 fld_process_array_type): Call fld->pset.add and don't call
21163 add_tree_to_fld_list if it returns true.
21164 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21165 non-marked types from TYPE_NEXT_VARIANT list.
21166 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21167
21168 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21169
21170 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21171 to false, if true, don't alloc_entries during construction, but defer
21172 it to the first method that needs m_entries allocated.
21173 (hash_table::hash_table, hash_table::~hash_table,
21174 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21175 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21176 hash_table::clear_slot, hash_table::traverse_noresize,
21177 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21178 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21179 false.
21180 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21181 NO_INSERT instead of find_with_hash.
21182 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21183 hash_set::m_table): Add Lazy to template params of hash_table.
21184 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21185 * attribs.c (test_attribute_exclusions): Likewise.
21186 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21187 hash_set. Add tests for hash_set with Lazy = true.
21188
21189 2019-03-21 Richard Biener <rguenther@suse.de>
21190
21191 PR tree-optimization/89779
21192 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21193 checks with respect to released SSA names now having error_mark_node
21194 type.
21195 * fold-const.c (operand_equal_p): Likewise.
21196
21197 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21198
21199 PR target/89775
21200 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21201 available to ...
21202 (s390_optimize_register_info): Use global_not_special_regno_p to
21203 check for global regs.
21204
21205 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21206
21207 PR target/89752
21208 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21209 update this_alternative nor this_alternative_set.
21210
21211 2019-03-19 Jim Wilson <jimw@sifive.com>
21212
21213 PR target/89411
21214 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21215 align, size, offset. Use them to handle a BLKmode reference. Update
21216 comment.
21217 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21218
21219 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21220
21221 PR rtl-optimization/89768
21222 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21223 instead of GEN_INT.
21224 (unroll_loop_runtime_iterations): Likewise.
21225
21226 2019-03-19 Martin Sebor <msebor@redhat.com>
21227
21228 PR tree-optimization/89644
21229 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21230 rather than endptr as an indicator of nul-termination.
21231
21232 PR tree-optimization/89644
21233 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21234 arrays in determining sequence sizes in strncpy and stpncpy.
21235
21236 2019-03-19 Martin Liska <mliska@suse.cz>
21237
21238 PR middle-end/89737
21239 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21240 unlikely_edges if there's an edge that belongs to both these sets.
21241
21242 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21243
21244 PR target/89746
21245 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21246 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21247 go via a stack temporary.
21248
21249 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21250
21251 PR target/89378
21252 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21253 instead of gen_rtx_SUBREG.
21254 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21255
21256 2019-03-19 Richard Biener <rguenther@suse.de>
21257
21258 PR debug/88389
21259 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21260
21261 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21262
21263 PR lto/87809
21264 PR lto/89335
21265 * tree.c (free_lang_data_in_decl): Do not free context of C++
21266 destrutors.
21267
21268 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21269
21270 PR target/89506
21271 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21272 subs for the first alternative except when operands[3] is 1.
21273
21274 PR target/89752
21275 * gimplify.c (gimplify_asm_expr): For output argument with
21276 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21277 diagnose error.
21278
21279 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21280
21281 PR rtl-optimization/89753
21282 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21283 explicit unrolling factor even more robust.
21284
21285 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21286
21287 PR target/89726
21288 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21289 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21290 signed zeros, do another copysign after the compensation.
21291
21292 2019-03-18 Martin Sebor <msebor@redhat.com>
21293
21294 PR tree-optimization/89720
21295 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21296 more conservatively, the same as anti-range.
21297
21298 2019-03-18 Richard Biener <rguenther@suse.de>
21299
21300 PR middle-end/88945
21301 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21302 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21303 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21304 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21305
21306 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21307
21308 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21309 Extend queue to 1024 entries.
21310 Add "consumed" field.
21311 (gomp_print_output): Remove print_index parameter.
21312 Add final parameter.
21313 Change limit to unsigned.
21314 Use consumed field to implement circular buffer.
21315 Detect interrupted print in final pass.
21316 Flush output at the end.
21317 (run): Update gomp_print_output usage.
21318 (main): Initialize kernargs->output_data.consumed.
21319
21320 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21321
21322 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21323 calculation of the minimum number of scalar iterations for
21324 fully-predicated loops.
21325
21326 2019-03-18 Martin Jambor <mjambor@suse.cz>
21327
21328 PR tree-optimization/89546
21329 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21330 any propagation to its children took place.
21331
21332 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21333
21334 PR target/89627
21335 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21336 parameter, and make use of it.
21337 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21338
21339 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21340
21341 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21342 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21343 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21344 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21345 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21346 match what the ops is doing.
21347 (push_multi_fp_blink): Likewise.
21348 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21349 compiling for size and elf target.
21350 (arc_save_callee_enter): Adjust note to match what enter/leave
21351 operation does.
21352
21353 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21354
21355 * config/arc/arc.md (tst_movb): Fix constraint.
21356
21357 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21358
21359 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21360
21361 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21362
21363 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21364 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21365 reg_alloc_order references.
21366 (size_alloc_order): Define.
21367 (arc_adjust_reg_alloc_order): New function.
21368 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21369 order.
21370 (ADJUST_REG_ALLOC_ORDER): Define.
21371 (HONOR_REG_ALLOC_ORDER): Likewise.
21372
21373 2019-03-18 Richard Biener <rguenther@suse.de>
21374
21375 PR target/87561
21376 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21377 loads and stores a bit more.
21378
21379 2019-03-18 Richard Biener <rguenther@suse.de>
21380
21381 PR target/87561
21382 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21383 load pessimization to stores as well.
21384
21385 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21386
21387 PR middle-end/86979
21388 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21389 successor, use NULL as its av set.
21390
21391 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21392
21393 PR rtl-optimization/89721
21394 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21395
21396 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21397
21398 PR target/87532
21399 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21400 When handling vec_extract, use modular arithmetic to allow
21401 constant selectors greater than vector length.
21402 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21403 V1TImode vectors to have constant selector values greater than 0.
21404 Use modular arithmetic to compute vector index.
21405 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21406 index for in-memory vectors. Correct code generation for
21407 in-register vectors.
21408 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21409 compute index.
21410
21411 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21412
21413 PR c++/88534
21414 PR c++/88537
21415 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21416 VAR_DECL args.
21417
21418 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21419
21420 PR c++/89709
21421 * tree.c (inchash::add_expr): Strip any location wrappers.
21422 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21423 after hash verification.
21424
21425 PR debug/89704
21426 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21427 SIGN_EXTEND and ZERO_EXTEND.
21428
21429 2019-03-14 Jason Merrill <jason@redhat.com>
21430 Jakub Jelinek <jakub@redhat.com>
21431
21432 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21433 than if is_empty (*slot).
21434 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21435 existing elt and for elt removal.
21436 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21437 of already removed elt.
21438
21439 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21440
21441 PR target/89650
21442 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21443 REG_EH_REGION note.
21444
21445 2019-03-14 Martin Liska <mliska@suse.cz>
21446
21447 PR other/89712
21448 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21449
21450 2019-03-14 Richard Biener <rguenther@suse.de>
21451
21452 PR target/89711
21453 * config/i386/i386.c (make_resolver_func): Properly set
21454 DECL_CONTEXT on the RESULT_DECL.
21455 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21456
21457 2019-03-14 Richard Biener <rguenther@suse.de>
21458
21459 * gimple-pretty-print.c: Include cfgloop.h.
21460 (dump_gimple_phi): Adjust.
21461 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21462 (pp_cfg_jump): Adjust.
21463 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21464 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21465 (lower_phi_internal_fn): Remove.
21466 (verify_gimple_call): Remove IFN_PHI special-casing.
21467 (dump_function_to_file): Dump IL state.
21468 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21469 done to deal with PHI nodes being present in non-SSA state.
21470
21471 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21472
21473 PR ipa/89684
21474 * multiple_target.c (create_dispatcher_calls): Change
21475 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21476 In the node->iterate_referring loop, push *ref rather than ref, call
21477 ref->remove_reference () and always pass 0 to iterate_referring.
21478
21479 PR rtl-optimization/89679
21480 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21481 would contain a paradoxical SUBREG.
21482
21483 2019-03-14 Richard Biener <rguenther@suse.de>
21484
21485 PR tree-optimization/89710
21486 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21487 safe_dyn_cast.
21488
21489 2019-03-14 Martin Liska <mliska@suse.cz>
21490
21491 * coverage.c (coverage_begin_function): Stream also
21492 end_column.
21493 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21494 documentation about function declaration location.
21495 * gcov-dump.c (tag_function): Print whole range
21496 of function declaration.
21497 * gcov.c (struct function_info): Add end_column field.
21498 (function_info::function_info): Initialize it.
21499 (output_json_intermediate_file): Output {start,end}_column
21500 fields.
21501 (read_graph_file): Read end_column.
21502
21503 2019-03-14 Richard Biener <rguenther@suse.de>
21504
21505 PR middle-end/89698
21506 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21507 that the access types are similar.
21508
21509 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21510
21511 PR tree-optimization/89703
21512 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21513 aren't compatible also with builtin_decl_explicit. Check pure
21514 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21515 and BUILT_IN_STPNCPY{,_CHK}.
21516
21517 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21518
21519 PR target/89523
21520 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21521 addr32 prefix to VSIB address for X32.
21522 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21523 "%M2" to opcode.
21524 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21525 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21526 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21527 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21528 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21529 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21530 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21531 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21532 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21533 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21534 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21535 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21536 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21537 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21538 (*avx512f_scatterdi<mode>): Likewise.
21539
21540 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21541
21542 PR target/85860
21543 * lra-constraints.c (inherit_in_ebb): Update
21544 potential_reload_hard_regs along with live_hard_regs.
21545
21546 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21547
21548 PR debug/89498
21549 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21550 DWARF_OFFSET_SIZE.
21551 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21552
21553 2019-03-13 Martin Sebor <msebor@redhat.com>
21554
21555 PR tree-optimization/89662
21556 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21557 has a size.
21558
21559 2019-03-13 Richard Biener <rguenther@suse.de>
21560
21561 PR middle-end/89677
21562 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21563 throw FP expressions at tree-affine.
21564
21565 2019-03-14 Richard Biener <rguenther@suse.de>
21566
21567 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21568 dump negative integer constants using _Literal (type) -num.
21569
21570 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21571
21572 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21573 nonlocal_value member.
21574
21575 PR middle-end/88588
21576 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21577 (ipa_simd_modify_function_body): Handle PHIs.
21578
21579 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21580
21581 * config/s390/s390.c (s390_option_override_internal): Use more
21582 aggressive inlining parameters.
21583
21584 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21585
21586 * config/s390/3906.md: New file.
21587 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21588 (LONGRUNNING_THRESHOLD): Remove.
21589 (MAX_SCHED_MIX_SCORE): Decrease.
21590 (MAX_SCHED_MIX_DISTANCE): Decrease.
21591 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21592 (struct s390_sched_state): New struct to hold scheduling state.
21593 (S390_SCHED_STATE_NORMAL): Remove.
21594 (S390_SCHED_STATE_CRACKED): Remove.
21595 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21596 (s390_get_sched_attrmask): Use new attribute.
21597 (s390_get_unit_mask): Use new units.
21598 (s390_is_fpd): New function.
21599 (s390_is_fxd): New function.
21600 (s390_is_longrunning): New function.
21601 (s390_sched_score): Use new functions.
21602 (s390_sched_reorder): Likewise.
21603 (s390_sched_variable_issue): Rework and use new functions.
21604 (s390_sched_init): Use new functions.
21605 * config/s390/s390.h (s390_tune_attr): Add z14.
21606 * config/s390/s390.md: Add z14.
21607
21608 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21609
21610 * config/s390/2964.md: Update pipeline description.
21611 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21612 (LONGRUNNING_THRESHOLD): Remove.
21613 (LATENCY_FACTOR): Remove.
21614 (s390_get_unit_mask): Add unit.
21615 (s390_sched_score): Use fxd/fpd.
21616 (s390_sched_variable_issue): Use fxd/fpd.
21617
21618 2019-03-12 Martin Liska <mliska@suse.cz>
21619
21620 * config/i386/i386.c: Reword an error message.
21621
21622 2019-03-12 Martin Jambor <mjambor@suse.cz>
21623
21624 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21625 terminate with newline.
21626
21627 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21628
21629 PR target/52726
21630 * config/s390/s390.md (tabort): Use %wd instead of
21631 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21632 letters and periods.
21633 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21634 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21635 's with %< and %>.
21636
21637 PR middle-end/89663
21638 * builtins.c (expand_builtin_int_roundingfn,
21639 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21640 gcc_unreachable if validate_arglist fails.
21641
21642 2019-03-12 Richard Biener <rguenther@suse.de>
21643
21644 PR tree-optimization/89664
21645 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21646 free the occurance tree after the early out.
21647
21648 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21649
21650 PR middle-end/89655
21651 PR bootstrap/89656
21652 * vr-values.c (vr_values::update_value_range): If
21653 old_vr->varying_p (), don't update it, make new_vr also VARYING
21654 and return false.
21655
21656 2019-03-11 Martin Liska <mliska@suse.cz>
21657
21658 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21659 Fix double string quoting.
21660
21661 2019-03-11 Martin Liska <mliska@suse.cz>
21662
21663 * collect-utils.c (collect_wait): Wrap apostrophes
21664 in gcc internal format with %'.
21665 * collect2.c (main): Likewise.
21666 (scan_prog_file): Likewise.
21667 (scan_libraries): Likewise.
21668 * config/i386/i386.c (ix86_expand_call): Likewise.
21669 (ix86_handle_interrupt_attribute): Likewise.
21670 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21671 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21672 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21673 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21674 * symtab.c (symtab_node::verify_base): Likewise.
21675 * tree-cfg.c (verify_gimple_label): Likewise.
21676 * tree.c (verify_type_variant): Likewise.
21677
21678 2019-03-11 Martin Liska <mliska@suse.cz>
21679
21680 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21681 in a string format message and fix GNU coding style.
21682 (expand_builtin_set_thread_pointer): Likewise.
21683 * common/config/aarch64/aarch64-common.c
21684 (aarch64_rewrite_selected_cpu): Likewise.
21685 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21686 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21687 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21688 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21689 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21690 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21691 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21692 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21693 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21694 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21695 Likewise.
21696 * common/config/riscv/riscv-common.c
21697 (riscv_subset_list::parsing_subset_version): Likewise.
21698 (riscv_subset_list::parse_std_ext): Likewise.
21699 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21700 (riscv_subset_list::parse): Likewise.
21701 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21702 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21703 (aarch64_override_options_internal): Likewise.
21704 (aarch64_validate_mcpu): Likewise.
21705 (aarch64_validate_march): Likewise.
21706 (aarch64_validate_mtune): Likewise.
21707 (aarch64_override_options): Likewise.
21708 * config/alpha/alpha.c (alpha_option_override): Likewise.
21709 * config/arc/arc.c (arc_init): Likewise.
21710 (parse_mrgf_banked_regs_option): Likewise.
21711 (arc_override_options): Likewise.
21712 (arc_expand_builtin_aligned): Likewise.
21713 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21714 (arm_expand_builtin): Likewise.
21715 * config/arm/arm.c (arm_option_check_internal): Likewise.
21716 (arm_configure_build_target): Likewise.
21717 (arm_option_override): Likewise.
21718 (arm_options_perform_arch_sanity_checks): Likewise.
21719 (arm_handle_cmse_nonsecure_entry): Likewise.
21720 (arm_handle_cmse_nonsecure_call): Likewise.
21721 (arm_tls_referenced_p): Likewise.
21722 (thumb1_expand_prologue): Likewise.
21723 * config/avr/avr.c (avr_option_override): Likewise.
21724 * config/bfin/bfin.c (bfin_option_override): Likewise.
21725 * config/c6x/c6x.c (c6x_option_override): Likewise.
21726 * config/cr16/cr16.c (cr16_override_options): Likewise.
21727 * config/cris/cris.c (cris_option_override): Likewise.
21728 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21729 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21730 * config/darwin.c (darwin_override_options): Likewise.
21731 * config/frv/frv.c (frv_expand_builtin): Likewise.
21732 * config/h8300/h8300.c (h8300_option_override): Likewise.
21733 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21734 (ix86_option_override_internal): Likewise.
21735 (warn_once_call_ms2sysv_xlogues): Likewise.
21736 (ix86_expand_prologue): Likewise.
21737 (split_stack_prologue_scratch_regno): Likewise.
21738 (ix86_warn_parameter_passing_abi): Likewise.
21739 * config/ia64/ia64.c (fix_range): Likewise.
21740 * config/m68k/m68k.c (m68k_option_override): Likewise.
21741 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21742 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21743 (mips_set_compression_mode): Likewise.
21744 * config/mmix/mmix.c (mmix_option_override): Likewise.
21745 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21746 * config/msp430/msp430.c (msp430_option_override): Likewise.
21747 * config/nds32/nds32.c (nds32_option_override): Likewise.
21748 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21749 (nios2_option_override): Likewise.
21750 (nios2_expand_custom_builtin): Likewise.
21751 * config/nvptx/mkoffload.c (main): Likewise.
21752 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21753 * config/pa/pa.c (fix_range): Likewise.
21754 (pa_option_override): Likewise.
21755 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21756 (riscv_option_override): Likewise.
21757 * config/rl78/rl78.c (rl78_option_override): Likewise.
21758 * config/rs6000/aix61.h: Likewise.
21759 * config/rs6000/aix71.h: Likewise.
21760 * config/rs6000/aix72.h: Likewise.
21761 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21762 * config/rs6000/freebsd64.h: Likewise.
21763 * config/rs6000/linux64.h: Likewise.
21764 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21765 (rs6000_expand_zeroop_builtin): Likewise.
21766 (rs6000_expand_mtfsb_builtin): Likewise.
21767 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21768 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21769 (rs6000_invalid_builtin): Likewise.
21770 (rs6000_expand_split_stack_prologue): Likewise.
21771 * config/rs6000/rtems.h: Likewise.
21772 * config/rx/rx.c (valid_psw_flag): Likewise.
21773 (rx_expand_builtin): Likewise.
21774 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21775 * config/s390/s390.c (s390_expand_builtin): Likewise.
21776 (s390_function_profiler): Likewise.
21777 (s390_option_override_internal): Likewise.
21778 (s390_option_override): Likewise.
21779 * config/sh/sh.c (sh_option_override): Likewise.
21780 (sh_builtin_saveregs): Likewise.
21781 (sh_fix_range): Likewise.
21782 * config/sh/vxworks.h: Likewise.
21783 * config/sparc/sparc.c (sparc_option_override): Likewise.
21784 * config/spu/spu.c (spu_option_override): Likewise.
21785 (fix_range): Likewise.
21786 * config/visium/visium.c (visium_option_override): Likewise.
21787 (visium_handle_interrupt_attr): Likewise.
21788 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21789 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21790 (dbg_cnt_process_opt): Likewise.
21791 * dwarf2out.c (output_dwarf_version): Likewise.
21792 * except.c (expand_eh_return): Likewise.
21793 * gcc.c (defined): Likewise.
21794 (driver_handle_option): Likewise.
21795 (process_command): Likewise.
21796 (compare_files): Likewise.
21797 (driver::prepare_infiles): Likewise.
21798 (driver::do_spec_on_infiles): Likewise.
21799 (driver::maybe_run_linker): Likewise.
21800 * omp-offload.c (oacc_parse_default_dims): Likewise.
21801 * opts-global.c (handle_common_deferred_options): Likewise.
21802 * opts.c (parse_sanitizer_options): Likewise.
21803 (common_handle_option): Likewise.
21804 (enable_warning_as_error): Likewise.
21805 * passes.c (enable_disable_pass): Likewise.
21806 * plugin.c (parse_plugin_arg_opt): Likewise.
21807 (default_plugin_dir_name): Likewise.
21808 * targhooks.c (default_expand_builtin_saveregs): Likewise.
21809 (default_pch_valid_p): Likewise.
21810 * toplev.c (init_asm_output): Likewise.
21811 (process_options): Likewise.
21812 (toplev::run_self_tests): Likewise.
21813 * tree-cfg.c (verify_gimple_call): Likewise.
21814 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21815 (tree_inlinable_function_p): Likewise.
21816 * var-tracking.c (vt_find_locations): Likewise.
21817
21818 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
21819
21820 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21821 only on the else branch.
21822
21823 2019-03-11 Martin Liska <mliska@suse.cz>
21824
21825 * gcov.c (output_intermediate_json_line): Print function
21826 name of each line.
21827 (output_json_intermediate_file): Add new argument.
21828 * doc/gcov.texi: Document the change.
21829
21830 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
21831
21832 PR rtl-optimization/89588
21833 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21834 explicit unrolling factor more robust.
21835
21836 2019-03-11 Richard Biener <rguenther@suse.de>
21837
21838 PR tree-optimization/89649
21839 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21840 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21841 on the prolog and epilog loops.
21842 (vect_loop_versioning): Return copy of loop.
21843 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21844 on the non-vectorized version of the loop.
21845
21846 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
21847
21848 PR target/68924
21849 * config/i386/sse.md (*vec_extractv2di_0_sse):
21850 Add (=r,x) alternative and corresponding splitter.
21851
21852 2019-03-10 Martin Jambor <mjambor@suse.cz>
21853
21854 PR tree-optimization/85762
21855 PR tree-optimization/87008
21856 PR tree-optimization/85459
21857 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21858 it points to if there is a type changing MEM_REF. Adjust all callers.
21859 (build_accesses_from_assign): Disable total scalarization if
21860 contains_vce_or_bfcref_p returns true through the new parameter, for
21861 both rhs and lhs.
21862
21863 2019-03-09 Jakub Jelinek <jakub@redhat.com>
21864
21865 PR c/88568
21866 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21867 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21868
21869 PR target/79645
21870 * common.opt (fdiagnostics-show-labels,
21871 fdiagnostics-show-line-numbers, fdiagnostics-format=,
21872 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
21873 gas-locview-support, ginline-points, ginternal-reset-location-views):
21874 Terminate description text with a dot.
21875 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
21876 * config/mcore/mcore.opt (m210, m340): Likewise.
21877 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
21878 mnops=): Start description text with a capital letter.
21879 * config/arc/arc.opt (msize-level=): Likewise.
21880 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
21881 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
21882 mnewlib): Likewise.
21883 * config/ft32/ft32.opt (msim): Likewise.
21884 (mft32b, mcompress): Likewise. Terminate description text with a dot.
21885 (mnodiv, mnopm): Terminate description text with a dot.
21886 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
21887 a colon.
21888 * config/i386/i386.opt (prefer_vector_width, instrument_return):
21889 Likewise.
21890 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
21891 text.
21892
21893 PR rtl-optimization/89634
21894 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
21895 are modified in BB_END (e->src) instruction.
21896
21897 2019-03-08 David Malcolm <dmalcolm@redhat.com>
21898
21899 PR target/79926
21900 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
21901 messages more amenable to translation, and improve wording.
21902
21903 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
21904
21905 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
21906 ud- and du-chains between phases.
21907
21908 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
21909
21910 PR debug/89631
21911 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
21912 instead of POLY_INT_CST.
21913
21914 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
21915
21916 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
21917 requirement.
21918
21919 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
21920
21921 PR target/68924
21922 PR target/78782
21923 PR target/87558
21924 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
21925 (_mm_storeu_si64): Ditto.
21926
21927 2019-03-08 Martin Liska <mliska@suse.cz>
21928
21929 PR target/86952
21930 * config/i386/i386.c (ix86_option_override_internal): Disable
21931 jump tables when retpolines are used.
21932
21933 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
21934
21935 PR go/63560
21936 * ipa-split.c (execute_split_functions): Do not split
21937 'noinline' or 'section' function.
21938
21939 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21940
21941 PR target/79846
21942 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
21943 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
21944 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
21945
21946 PR ipa/80000
21947 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
21948 from diagnostics. Formatting fixes.
21949
21950 PR target/85665
21951 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
21952 warn_odr diagnostics.
21953
21954 PR other/80058
21955 * lra-constraints.c (process_alt_operands): Avoid one space before
21956 " at the end of line and another after " on another line in a string
21957 literal.
21958 * attribs.c (handle_dll_attribute): Likewise.
21959 * config/avr/avr-devices.c (avr_texinfo): Likewise.
21960
21961 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
21962 warning_at or inform messages in G_() if there is no ?:.
21963
21964 PR tree-optimization/89550
21965 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
21966 returned true. Formatting fixes.
21967 (expand_builtin_strnlen): Formatting fixes.
21968 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
21969 if warning_at returned true.
21970 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
21971
21972 2019-03-08 Richard Biener <rguenther@suse.de>
21973
21974 PR middle-end/89578
21975 * cfgloop.h (struct loop): Add owned_clique field.
21976 * cfgloopmanip.c (copy_loop_info): Copy it.
21977 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
21978 cliques.
21979 * tree-inline.c (copy_loops): Remap owned_clique.
21980 * lto-streamer-in.c (input_cfg): Stream owned_clique.
21981 * lto-streamer-out.c (output_cfg): Likewise.
21982
21983 2019-03-08 Jakub Jelinek <jakub@redhat.com>
21984
21985 PR target/80190
21986 * config/darwin.c: Include intl.h.
21987 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
21988 composing the message out of two separate parts.
21989
21990 2019-03-07 Jakub Jelinek <jakub@redhat.com>
21991
21992 PR target/80003
21993 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
21994 doesn't start with a capital letter and doesn't end with a dot.
21995 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
21996 with a capital letter.
21997 (ix86_mangle_function_version_assembler_name): Likewise.
21998 (ix86_generate_version_dispatcher_body): Likewise.
21999 (fold_builtin_cpu): Likewise.
22000 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22001 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22002 translators, wrap full type name in %qs.
22003
22004 PR translation/79999
22005 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22006 depend clause with source (or sink) modifier.
22007 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22008
22009 PR target/89602
22010 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22011 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22012 (avx512f_load<mode>_mask): New define_expand.
22013 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22014 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22015 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22016 __builtin_ia32_movess_mask): New builtins.
22017 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22018 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22019 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22020 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22021
22022 2019-03-07 Martin Jambor <mjambor@suse.cz>
22023
22024 PR lto/87525
22025 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22026 for extern inline functions.
22027
22028 2019-03-07 Martin Jambor <mjambor@suse.cz>
22029
22030 PR ipa/88235
22031 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22032 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22033 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22034 have multiple callees. At the end check if declarations match as
22035 opposed to cgraph_nodes.
22036
22037 2019-03-07 Martin Liska <mliska@suse.cz>
22038
22039 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22040 which is equivalent to searching for this in clones chain.
22041 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22042 names with a neighbour and special case first node in a chain.
22043
22044 2019-01-25 Jason Merrill <jason@redhat.com>
22045
22046 PR c++/80916 - spurious "static but not defined" warning.
22047 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22048 for an internal symbol with DECL_EXTERNAL.
22049
22050 2019-04-07 Richard Biener <rguenther@suse.de>
22051
22052 PR middle-end/89618
22053 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22054 * tree-inline.c (copy_loops): Simplify.
22055
22056 2019-03-07 Martin Liska <mliska@suse.cz>
22057
22058 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22059
22060 2019-03-07 Richard Biener <rguenther@suse.de>
22061
22062 PR tree-optimization/89595
22063 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22064 stmt iterator as reference, take boolean output parameter to
22065 indicate whether the stmt was removed and thus the iterator
22066 already advanced.
22067 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22068 stmts created by folding.
22069
22070 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22071
22072 PR c++/89585
22073 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22074 at toplevel.
22075
22076 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22077
22078 PR rtl-optimization/88845
22079 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22080 LRA.
22081 * lra.c (remove_scratches_1): New function.
22082 (remove_scratches): Use it.
22083 (lra_emit_move): Likewise.
22084
22085 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22086
22087 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22088 unaligned_access variable.
22089 * config/arc/arc.c (arc_override_options): Set unaligned access
22090 default on for HS CPUs.
22091 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22092
22093 2019-03-06 Martin Liska <mliska@suse.cz>
22094
22095 PR gcov-profile/89577
22096 * doc/gcov.texi: Prefer to use --coverage.
22097 * doc/sourcebuild.texi: Likewise.
22098
22099 2019-03-02 Jason Merrill <jason@redhat.com>
22100
22101 PR c++/86485 - -Wmaybe-unused with empty class ?:
22102 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22103
22104 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22105
22106 PR target/89587
22107 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22108 if_multiarch.
22109
22110 PR middle-end/89590
22111 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22112 exactly one argument.
22113
22114 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22115 Richard Sandiford <richard.sandiford@arm.com>
22116
22117 PR tree-optimization/89570
22118 * match.pd (vec_cond into cond_op simplification): Don't use
22119 get_conditional_internal_fn, use as_internal_fn (cond_op).
22120
22121 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22122
22123 PR target/89222
22124 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22125 to decide when to split off a non-zero offset from a symbol.
22126 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22127 in function symbols.
22128
22129 2019-03-05 Richard Biener <rguenther@suse.de>
22130
22131 PR tree-optimization/89594
22132 * tree-if-conv.c (pass_if_conversion::execute): Handle
22133 case where .LOOP_VECTORIZED_FUNCTION was removed.
22134
22135 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22136
22137 PR bootstrap/89560
22138 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22139 instead alloca it only when needed with the needed size.
22140
22141 PR tree-optimization/89570
22142 * match.pd (vec_cond into cond_op simplification): Guard with
22143 vectorized_internal_fn_supported_p test and #if GIMPLE.
22144
22145 PR tree-optimization/89566
22146 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22147 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22148 Punt if get_user_idx_format succeeds, but idx_format argument is
22149 not provided or doesn't have pointer type, or if idx_args is above
22150 number of provided arguments.
22151
22152 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22153
22154 PR tree-optimization/89437
22155 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22156
22157 2019-03-04 Richard Biener <rguenther@suse.de>
22158
22159 PR middle-end/89572
22160 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22161 safe_dyn_cast.
22162
22163 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22164
22165 PR tree-optimization/89487
22166 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22167 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22168 (distribute_loop): Don't do runtime alias check if there is non-
22169 addressable data reference.
22170 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22171 is a register variable.
22172
22173 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22174
22175 PR target/89506
22176 * config/arm/arm.md (cmpsi2_addneg): Use
22177 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22178 If operands[2] is 0 or INT_MIN, force use of subs.
22179 (*compare_scc splitter): Use gen_int_mode.
22180 (*negscc): Likewise.
22181 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22182
22183 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22184 Monk Chiang <sh.chiang04@gmail.com>
22185
22186 * common/config/riscv/riscv-common.c: Include sstream.
22187 (riscv_subset_list::to_string): New.
22188 (riscv_arch_str): Likewise.
22189 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22190 * config.in: Regen.
22191 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22192 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22193 (riscv_emit_attribute): New.
22194 (riscv_file_start): Emit attribute if needed.
22195 (riscv_option_override): Init riscv_emit_attribute_p.
22196 * config/riscv/riscv.opt (mriscv-attribute): New option.
22197 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22198 * configure: Regen.
22199 * doc/install.texi: Document --with-riscv-attribute.
22200 * doc/invoke.texi: Document -mriscv-attribute.
22201
22202 * common/config/riscv/riscv-common.c:
22203 Include config/riscv/riscv-protos.h.
22204 (INCLUDE_STRING): Defined.
22205 (RISCV_DONT_CARE_VERSION): Defined.
22206 (riscv_subset_t): Declare.
22207 (riscv_subset_t::riscv_subset_t): New.
22208 (riscv_subset_list): Declare.
22209 (riscv_subset_list::riscv_subset_list): New.
22210 (riscv_subset_list::~riscv_subset_list): Likewise.
22211 (riscv_subset_list::parsing_subset_version): Likewise.
22212 (riscv_subset_list::parse_std_ext): Likewise.
22213 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22214 (riscv_subset_list::add): Likewise.
22215 (riscv_subset_list::lookup): Likewise.
22216 (riscv_subset_list::xlen): Likewise.
22217 (riscv_subset_list::parse): Likewise.
22218 (riscv_supported_std_ext): Likewise.
22219 (current_subset_list): Likewise.
22220 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22221 parse.
22222
22223 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22224
22225 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22226 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22227 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22228
22229 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22230
22231 PR rtl-optimization/85899
22232 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22233 fallthru edges leading to the exit block.
22234
22235 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22236
22237 PR target/89517
22238 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22239 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22240
22241 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22242
22243 PR tree-optimization/89535
22244 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22245 for each operand. Calculate the fallback choice for mask operands
22246 and pass it to vect_get_vec_def_for_operand.
22247
22248 2019-03-01 Richard Biener <rguenther@suse.de>
22249
22250 PR middle-end/89541
22251 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22252 get virtual operands.
22253 (get_expr_operands): Handle CONST_DECL like other decls.
22254
22255 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22256
22257 PR middle-end/89503
22258 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22259 on DECL_P and EXPR_P.
22260
22261 2019-03-01 Richard Biener <rguenther@suse.de>
22262
22263 PR middle-end/89497
22264 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22265 argument, defaulted to zero.
22266 * passes.c (execute_function_todo): Pass down SSA update flags
22267 to cleanup_tree_cfg.
22268 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22269 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22270 form if requested.
22271 (cleanup_tree_cfg): Get and pass down SSA update flags.
22272
22273 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22274
22275 PR bootstrap/89539
22276 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22277 early_lto_debug argument.
22278
22279 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22280
22281 PR tree-optimization/89536
22282 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22283 only whether bit #0 of the value is 0 instead of the entire value.
22284
22285 2019-02-28 Marek Polacek <polacek@redhat.com>
22286
22287 PR c++/87068 - missing diagnostic with fallthrough statement.
22288 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22289 at the end of a seq, save its location to walk_stmt_info.
22290 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22291 a switch.
22292
22293 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22294
22295 PR lto/88585
22296 * tree.c (find_atomic_core_type): Move ahead in file.
22297 (check_base_type): Correctly compare alignments of atomic types.
22298
22299 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22300
22301 PR target/89455
22302 * config/i386/i386.c (get_builtin_code_for_version): Identify
22303 Westmere from PCLMUL, instead of AES.
22304
22305 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22306
22307 PR target/89434
22308 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22309 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22310 -UINTVAL (...).
22311
22312 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22313
22314 PR target/88530
22315 * config/aarch64/aarch64-option-extensions.def: Document it.
22316 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22317 if empty hwcaps.
22318
22319 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22320
22321 PR c/89520
22322 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22323 builtins if they don't have a single scalar floating point argument.
22324 Formatting fixes.
22325
22326 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22327
22328 PR rtl-optimization/89490
22329 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22330 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22331 block section is not mergeable.
22332
22333 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22334
22335 PR target/70341
22336 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22337 old define_insn to ...
22338 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22339 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22340 Rename old define_insn to ...
22341 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22342 (thumb2_casesi_internal_pic): New define_expand. Rename old
22343 define_insn to ...
22344 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22345 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22346 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22347
22348 2019-02-27 Richard Biener <rguenther@suse.de>
22349
22350 PR debug/88878
22351 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22352
22353 2019-02-27 Richard Biener <rguenther@suse.de>
22354
22355 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22356 building.
22357
22358 2019-02-27 Richard Biener <rguenther@suse.de>
22359
22360 PR debug/88878
22361 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22362 parameter, prefix section name with .gnu.debuglto_ if true.
22363 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22364 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22365
22366 2019-02-27 Richard Biener <rguenther@suse.de>
22367
22368 PR debug/89514
22369 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22370 rather than on use_debug_types, doing what output_die does.
22371 (value_format): Likewise.
22372
22373 2019-02-27 Martin Jambor <mjambor@suse.cz>
22374 Martin Sebor <msebor@redhat.com>
22375
22376 * doc/invoke.texi (Warning Options): Reword description of
22377 -Wno-absolute-value.
22378
22379 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22380
22381 PR tree-optimization/89280
22382 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22383 builtin_setjmp_setup_bb): New functions.
22384 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22385 When visiting __builtin_setjmp_setup block, queue in special
22386 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22387 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22388 from visited after the loop if they don't have any visited successor
22389 blocks.
22390
22391 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22392
22393 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22394 New function.
22395 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22396
22397 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22398
22399 PR c++/89507
22400 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22401 with types other than sizetype/ssizetype.
22402
22403 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22404
22405 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22406 (enum sparc_processor_type): ...this.
22407 (enum sparc_code_model_type): New enumeration type.
22408 (enum sparc_memory_model_type): Tweak comments.
22409 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22410 (mtune): Likewise.
22411 (mcmodel): Use sparc_code_model enumeration and variable.
22412 (sparc_code_model): New enumeration.
22413 (mdebug): Add Undocumented marker.
22414 * config/sparc/sparc.h (enum cmodel): Delete.
22415 (sparc_cmodel): Likewise.
22416 (TARGET_CM_MEDLOW): Adjust to above renaming.
22417 (TARGET_CM_MEDMID): Likewise.
22418 (TARGET_CM_MEDANY): Likewise.
22419 (TARGET_CM_EMBMEDANY): Likewise.
22420 * config/sparc/sparc.c (sparc_cmodel): Delete.
22421 (sparc_option_override): Remove string/value mapping support for the
22422 code model. Move code and memory model support to after the handling
22423 of target flags. Do private machine setup last.
22424 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22425 (sparc_legitimize_reload_address): Likewise.
22426 (sparc_output_mi_thunk): Likewise.
22427 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22428
22429 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22430
22431 PR tree-optimization/89500
22432 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22433 (handle_builtin_strlen): Remove noncst_bound variable. Always
22434 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22435 cst if the first cst bytes starting at x are known to be non-zero,
22436 even if the string is not zero terminated. Don't try to modify
22437 *si for strnlen. Update strlen_to_stridx only for strlen or if
22438 we can prove strnlen returns the same value as strlen would.
22439
22440 2019-02-26 Martin Liska <mliska@suse.cz>
22441
22442 * alloc-pool.h (struct pool_usage): Remove extra
22443 print_dash_line.
22444 * bitmap.h (struct bitmap_usage): Likewise.
22445 * ggc-common.c (struct ggc_usage): Likewise.
22446 * mem-stats.h (struct mem_usage): Likewise.
22447 (mem_alloc_description::dump): Print dash lines
22448 here and repeat header at the end of a table report.
22449 It's then more readable.
22450 * tree-phinodes.c (phinodes_print_statistics): Make
22451 horizontal alignment.
22452 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22453 * vec.c (struct vec_usage): Remove extra print_dash_line.
22454 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22455
22456 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22457
22458 * doc/extend.texi (__builtin_object_size):
22459 Use @pxref instead of @xref inside parenthesis.
22460 (__builtin_has_attribute): Add missing comma after @xref.
22461 (__builtin_object_size): Ditto.
22462 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22463
22464 2019-02-26 Jeff Law <law@redhat.com>
22465
22466 PR rtl-optimization/87761
22467 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22468 detect obviously dead insns and delete them.
22469
22470 2019-02-26 Richard Biener <rguenther@suse.de>
22471
22472 PR tree-optimization/89505
22473 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22474 to handle restrict pointed-to vars with multiple subvars
22475 correctly.
22476
22477 2019-02-26 Richard Biener <rguenther@suse.de>
22478
22479 PR tree-optimization/89489
22480 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22481
22482 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22483
22484 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22485 and move around comment.
22486 <BIT_AND_EXPR>: Likewise.
22487 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22488
22489 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22490
22491 PR target/89474
22492 * config/i386/i386.c (remove_partial_avx_dependency): Call
22493 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22494 after changing possibly many instructions to use that pseudo. Fix up
22495 insertion of v4sf_const0 setter at the start of bb.
22496
22497 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22498
22499 PR c/80409
22500 * doc/extend.texi (Variadic Pointer Args): New section.
22501
22502 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22503 Martin Sebor <msebor@gmail.com>
22504
22505 * common.opt (Wattribute-alias): Likewise.
22506 * doc/invoke.texi (Option Summary): List general form of
22507 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22508 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22509 Add cross-references.
22510 (-Wattribute-alias): Rewrite and correct default. Mention
22511 considered attributes (same as for -Wmissing-attributes).
22512
22513 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22514
22515 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22516 (_mm_cvtpd_ps): Likewise.
22517 (_mm_cvttpd_epi32): Likewise.
22518
22519 PR target/89338
22520 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22521 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22522
22523 PR target/89339
22524 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22525
22526 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22527
22528 PR target/88530
22529 * common/config/aarch64/aarch64-common.c
22530 (struct aarch64_option_extension): Add is_synthetic.
22531 (all_extensions): Use it.
22532 (TARGET_OPTION_INIT_STRUCT): Define hook.
22533 (struct gcc_targetm_common): Moved to end.
22534 (all_extensions_by_on): New.
22535 (opt_ext_cmp, typedef opt_ext): New.
22536 (aarch64_option_init_struct): New.
22537 (aarch64_contains_opt): New.
22538 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22539 * config/aarch64/aarch64-option-extensions.def
22540 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22541 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22542 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22543 Set is_synthetic to false.
22544 (crypto): Set is_synthetic to true.
22545 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22546 SYNTHETIC.
22547
22548 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22549
22550 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22551 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22552 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22553 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22554 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22555 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22556 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22557 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22558 Rename ...
22559 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22560 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22561 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22562 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22563 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22564 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22565 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22566 vfmlsl_laneq_high_f16): ... To this.
22567 * config/arm/neon.md: Update comments.
22568
22569 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22570
22571 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22572 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22573 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22574 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22575 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22576 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22577 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22578 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22579 Rename ...
22580 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22581 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22582 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22583 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22584 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22585 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22586 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22587 vfmlslq_laneq_high_f16): ... To this.
22588
22589 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22590
22591 PR rtl-optimization/86096
22592 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22593 comparing mw_order values.
22594
22595 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22596
22597 PR target/89434
22598 * config/arm/arm.md (*subsi3_carryin_const): Use
22599 arm_neg_immediate_operand predicate instead of
22600 arm_not_immediate_operand, "L" constraint instead of "K" and
22601 print it using %n2 instead of %B2.
22602 (*subsi3_carryin_const0): New define_insn.
22603 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22604 instead of arm_not_operand and "I" constraint instead of "K" and
22605 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22606 another match_operand and in the condition check that it is negation
22607 of operands[2].
22608 (*subsi3_carryin_compare_const0): New define_ins.
22609 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22610 *subsi3_carryin_const.
22611 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22612 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22613
22614 PR target/89438
22615 * config/arm.vfp.md (*negdf2_vfp): Use
22616 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22617 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22618
22619 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22620
22621 PR rtl-optimization/89445
22622 * simplify-rtx.c (simplify_ternary_operation): Don't use
22623 simplify_merge_mask on operands that may trap.
22624 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22625 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22626 second operand is CONST_VECTOR, check if any element could be zero.
22627 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22628 their operands can trap.
22629
22630 2019-02-23 Martin Sebor <msebor@redhat.com>
22631
22632 * gimple-ssa-sprintf.c (target_strtol): Rename...
22633 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22634 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22635 check for range error.
22636
22637 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22638
22639 PR driver/69471
22640 * opts-common.c (prune_options): Also prune joined switches
22641 with Negative and RejectNegative.
22642 * config/i386/i386.opt (march=): Add Negative(march=).
22643 (mtune=): Add Negative(mtune=).
22644 * doc/options.texi: Document Negative used together with Joined
22645 and RejectNegative.
22646
22647 2019-02-22 Martin Sebor <msebor@redhat.com>
22648
22649 * doc/extend.texi (Other Builtins): Add
22650 __builtin_is_constant_evaluated.
22651
22652 2019-02-22 Richard Biener <rguenther@suse.de>
22653
22654 PR tree-optimization/87609
22655 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22656
22657 2019-02-22 Jeff Law <law@redhat.com>
22658
22659 PR rtl-optimization/87761
22660 * config/mips/mips.md: Add new combiner pattern to recognize
22661 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22662
22663 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22664
22665 PR target/89324
22666 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22667 destination register in peepholes generating patterns for ADDS/SUBS.
22668 (add<mode>3_compare0,
22669 *addsi3_compare0_uxtw, add<mode>3_compareC,
22670 add<mode>3_compareV_imm, add<mode>3_compareV,
22671 *adds_<optab><ALLX:mode>_<GPI:mode>,
22672 *subs_<optab><ALLX:mode>_<GPI:mode>,
22673 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22674 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22675 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22676 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22677 sub<mode>3_compare1): Allow stack pointer for source register.
22678 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22679
22680 2019-02-22 Martin Sebor <msebor@redhat.com>
22681
22682 PR tree-optimization/88993
22683 PR tree-optimization/88853
22684 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22685 New helper.
22686 (sprintf_dom_walker::call_info::is_string_func): New helper.
22687 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22688 for formatted string functions.
22689 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22690
22691 2019-02-22 Martin Sebor <msebor@redhat.com>
22692
22693 PR c/89425
22694 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22695 unreachable subexpressions.
22696
22697 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22698 Hongtao Liu <hongtao.liu@intel.com>
22699 Sunil K Pandey <sunil.k.pandey@intel.com>
22700
22701 PR target/87007
22702 * config/i386/i386-passes.def: Add
22703 pass_remove_partial_avx_dependency.
22704 * config/i386/i386-protos.h
22705 (make_pass_remove_partial_avx_dependency): New.
22706 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22707 New function.
22708 (pass_data_remove_partial_avx_dependency): New.
22709 (pass_remove_partial_avx_dependency): Likewise.
22710 (make_pass_remove_partial_avx_dependency): Likewise.
22711 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22712 (*extendsfdf2): Add avx_partial_xmm_update.
22713 (truncdfsf2): Likewise.
22714 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22715 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22716
22717 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22718
22719 PR middle-end/85598
22720 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22721 analysis for pass.
22722
22723 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22724
22725 PR target/89444
22726 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22727 (PTA_SKYLAKE): Add PTA_AES.
22728 (PTA_GOLDMONT): Likewise.
22729
22730 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22731
22732 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22733 instruction if enabled.
22734 (aarch64_override_options): Remove reference to return address key.
22735
22736 2019-02-22 Richard Biener <rguenther@suse.de>
22737
22738 PR tree-optimization/89440
22739 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22740 not necessary assert.
22741
22742 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22743
22744 PR fortran/72741
22745 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22746 (oacc_replace_fn_attrib_attr): ... this new function.
22747 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22748 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22749
22750 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22751
22752 * config/arm/arm-cpus.in (ares): Rename to...
22753 (neoverse-n1): ... This. Add ares as alias.
22754 * config/arm/arm-tables.opt: Regenerate.
22755 * config/arm/arm-tune.md: Likewise.
22756 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22757
22758 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22759
22760 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22761 * config/aarch64/aarch64-tune.md: Regenerate.
22762 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22763
22764 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22765
22766 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22767 (neoversen1_tunings): ... This.
22768 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22769 (neoverse-n1): New CPU.
22770 * config/aarch64/aarch64-tune.md: Regenerate.
22771 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22772
22773 2019-02-22 Richard Biener <rguenther@suse.de>
22774
22775 PR middle-end/87609
22776 * cfghooks.h (dependence_hash): New typedef.
22777 (struct copy_bb_data): New type.
22778 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22779 (duplicate_block): Likewise.
22780 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22781 (copy_bbs): Create and pass down copy_bb_data.
22782 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22783 (rtl_duplicate_bb): Likewise.
22784 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22785 remap dependence info.
22786
22787 2019-02-22 Richard Biener <rguenther@suse.de>
22788
22789 PR tree-optimization/87609
22790 * tree-core.h (tree_base): Document special clique values.
22791 * tree-inline.c (remap_dependence_clique): Do not use the
22792 special clique value of one.
22793 (maybe_set_dependence_info): Use clique one.
22794 (clear_dependence_clique): New callback.
22795 (compute_dependence_clique): Clear clique one from all refs
22796 before assigning it (again).
22797
22798 2019-02-21 Martin Sebor <msebor@redhat.com>
22799
22800 * doc/extend.texi (__clear_cache): Correct signature.
22801
22802 2019-02-21 Ian Lance Taylor <iant@golang.org>
22803
22804 PR go/89170
22805 * varasm.c (decode_addr_const): Call lookup_constant_def rather
22806 than output_constant_def.
22807 (add_constant_to_table): New static function.
22808 (output_constant_def): Call add_constant_to_table.
22809 (tree_output_constant_def): Likewise.
22810
22811 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22812
22813 PR c++/89285
22814 * builtins.c (fold_builtin_arith_overflow): If first two args are
22815 INTEGER_CSTs, set intres and ovfres to constants rather than calls
22816 to ifn.
22817
22818 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
22819
22820 PR target/87412
22821 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22822 error for -mindirect-branch/-mfunction-return with incompatible
22823 -fcf-protection.
22824
22825 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22826
22827 PR bootstrap/88714
22828 * constraints.md (q): Remove.
22829 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22830 instead of q.
22831
22832 2019-02-21 Martin Jambor <mjambor@suse.cz>
22833
22834 PR hsa/89302
22835 * omp-general.c (omp_extract_for_data): Removed a duplicate call
22836 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22837 (omp_adjust_for_condition): ...here. Added necessary parameters.
22838 * omp-general.h (omp_adjust_for_condition): Updated declaration.
22839 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22840 proper values to new parameters of omp_adjust_for_condition.
22841
22842 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22843
22844 PR middle-end/89412
22845 * expr.c (expand_assignment): If result is a MEM, use change_address
22846 instead of simplify_gen_subreg.
22847
22848 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22849 David Malcolm <dmalcolm@redhat.com>
22850
22851 PR middle-end/89091
22852 * fold-const.c (decode_field_reference): Return NULL_TREE if
22853 lang_hooks.types.type_for_size returns NULL. Check it before
22854 overwriting *exp_. Use return NULL_TREE instead of return 0.
22855
22856 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22857
22858 PR middle-end/88074
22859 PR middle-end/89415
22860 * toplev.c (do_compile): Double the emin/emax exponents to workaround
22861 buggy mpc_norm.
22862
22863 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
22864
22865 PR target/89397
22866 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22867 TARGET_SSE in addition to TARGET_SSE_MATH.
22868
22869 (ix86_excess_precision): Ditto.
22870 (ix86_float_exceptions_rounding_supported_p): Ditto.
22871 (use_rsqrt_p): Ditto.
22872 * config/i386/sse.md (rsqrt<mode>2): Ditto.
22873
22874 2019-02-20 David Malcolm <dmalcolm@redhat.com>
22875
22876 PR c/89410
22877 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
22878 linenum_arith_t when determining if two adjacent line spans are
22879 close enough to merge.
22880 (diagnostic_show_locus): Use linenum_arith_t when iterating over
22881 lines within each line_span.
22882
22883 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22884
22885 PR target/86487
22886 * lra-constraints.c(uses_hard_regs_p): Fix handling of
22887 paradoxical SUBREGS.
22888
22889 2019-02-20 Li Jia He <helijia@linux.ibm.com>
22890
22891 PR target/88100
22892 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
22893 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
22894 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
22895 range checking it.
22896
22897 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
22898
22899 * config/gcn/gcn.c (print_operand): Fix typo.
22900
22901 2019-02-19 Richard Biener <rguenther@suse.de>
22902
22903 PR middle-end/88074
22904 * toplev.c (do_compile): Initialize mpfr's exponent range
22905 based on available float modes.
22906
22907 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
22908
22909 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
22910 as long as the epilogue isn't completed.
22911
22912 2019-02-18 Martin Sebor <msebor@redhat.com>
22913
22914 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
22915 __has_cpp_attribute, and __has_include.
22916
22917 2019-02-18 Martin Sebor <msebor@redhat.com>
22918
22919 * doc/invoke.texi (-Wreturn-type): Correct and expand.
22920
22921 2019-02-18 Martin Sebor <msebor@redhat.com>
22922
22923 PR middle-end/89294
22924 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
22925 expression.
22926 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
22927
22928 2019-02-18 Richard Biener <rguenther@suse.de>
22929
22930 PR tree-optimization/89296
22931 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
22932 of no-warning flag to cases that might emit the bogus warning.
22933
22934 2019-02-18 Jakub Jelinek <jakub@redhat.com>
22935
22936 PR bootstrap/88714
22937 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
22938 "q" constraint.
22939 * config/arm/vfp.md (*movdi_vfp): Likewise.
22940 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
22941 "q" constraint for operands[0].
22942
22943 PR target/89369
22944 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
22945 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
22946 pattern in a temporary buffer.
22947 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
22948 than 64-operands[2].
22949
22950 PR target/89361
22951 * config/s390/s390.c (s390_indirect_branch_attrvalue,
22952 s390_indirect_branch_settings): Define unconditionally.
22953 (s390_set_current_function): Likewise, but guard the whole body except
22954 the s390_indirect_branch_settings call with
22955 #if S390_USE_TARGET_ATTRIBUTE.
22956 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
22957
22958 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
22959 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
22960 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
22961 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
22962 HOST_WIDE_INT_1U instead of 1ULL.
22963 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
22964 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
22965 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
22966 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
22967 instead of 1UL.
22968 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
22969 instead of 1ul.
22970
22971 2019-02-18 Martin Jambor <mjambor@suse.cz>
22972
22973 PR tree-optimization/89209
22974 * tree-sra.c (create_access_replacement): New optional parameter
22975 reg_tree. Use it as a type if non-NULL and access type is not of
22976 a register type.
22977 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
22978 to create_access_replacement.
22979 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
22980 Check lacc is non-NULL before attempting to re-create it on the RHS.
22981
22982 2019-02-18 Martin Liska <mliska@suse.cz>
22983
22984 PR ipa/89306
22985 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
22986 by default.
22987 (symbol_table::free_edge): Recycle m_summary_id.
22988 * cgraph.h (get_summary_id): New.
22989 (symbol_table::release_symbol): Set m_summary_id to -1
22990 by default.
22991 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
22992 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
22993 function_summary to fast_function_summary.
22994 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
22995 * ipa-pure-const.c (class funct_state_summary_t):
22996 Switch from function_summary to fast_function_summary.
22997 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
22998 (class ipa_ref_opt_summary_t): Switch from function_summary
22999 to fast_function_summary.
23000 * symbol-summary.h (class function_summary_base): New class
23001 that is created from base of former function_summary.
23002 (function_summary_base::unregister_hooks): New.
23003 (class function_summary): Inherit from function_summary_base.
23004 (class call_summary_base): New class
23005 that is created from base of former call_summary.
23006 (class call_summary): Inherit from call_summary_base.
23007 (struct is_same): New.
23008 (class fast_function_summary): New summary class.
23009 (class fast_call_summary): New summary class.
23010 * vec.h (vec_safe_grow_cleared): New function.
23011
23012 2019-02-18 Martin Liska <mliska@suse.cz>
23013
23014 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23015 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23016 * doc/tm.texi: Document new target hook.
23017 * doc/tm.texi.in: Likewise.
23018 * target.def: Add new target macro.
23019 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23020 suffixes.
23021
23022 2019-02-17 Alan Modra <amodra@gmail.com>
23023
23024 PR target/89271
23025 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23026 output reg on add insn.
23027 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23028
23029 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23030
23031 PR target/89372
23032 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23033 (PMULHRSW): Likewise.
23034 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23035 TARGET_AVX2.
23036 (ssse3_pmulhrswv4hi3): New expander.
23037
23038 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23039
23040 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23041 MMX. Add isa attribute.
23042
23043 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23044
23045 PR rtl-optimization/66152
23046 * builtins.h (c_readstr): Declare.
23047 * builtins.c (c_readstr): Remove forward declaration. Add
23048 null_terminated_p argument, if false, read all bytes from the
23049 string instead of stopping after '\0'.
23050 * expr.c (string_cst_read_str): New function.
23051 (store_expr): Use string_cst_read_str instead of
23052 builtin_strncpy_read_str. Try to store by pieces the whole
23053 exp_len first, and only if that fails, split it up into
23054 store by pieces followed by clear_storage. Formatting fix.
23055
23056 * config/i386/i386.md (*movqi_internal): Remove static from
23057 buf variable. Use output_asm_insn (buf, operands); return "";
23058 instead of return buf;.
23059 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23060 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23061 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23062
23063 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23064
23065 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23066 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23067 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23068 (CC1_SPEC): Likewise.
23069 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23070
23071 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23072
23073 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23074 the base address on 64-bit strict-alignment platforms.
23075
23076 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23077
23078 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23079
23080 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23081
23082 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23083
23084 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23085
23086 PR rtl-optimization/88308
23087 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23088 on copied instruction.
23089
23090 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23091
23092 * final.c (insn_current_reference_address): Replace test on JUMP_P
23093 with test on jump_to_label_p.
23094 * config/visium/visium-passes.def: New file.
23095 * config/visium/t-visium (PASSES_EXTRA): Define.
23096 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23097 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23098 (TRAMPOLINE_ALIGNMENT): Define.
23099 * config/visium/visium.c (visium_option_override): Do not register
23100 the machine-specific reorg pass here.
23101 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23102 for the GR6.
23103 (output_branch): Adjust threshold for long branch instruction.
23104 * config/visium/visium.md (cpu): Move around.
23105 (length): Adjust for the GR6.
23106
23107 2019-02-15 Richard Biener <rguenther@suse.de>
23108 Jakub Jelinek <jakub@redhat.com>
23109
23110 PR tree-optimization/89278
23111 * tree-loop-distribution.c: Include tree-eh.h.
23112 (generate_memset_builtin, generate_memcpy_builtin): Call
23113 rewrite_to_non_trapping_overflow on builtin->size before passing it
23114 to force_gimple_operand_gsi.
23115
23116 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23117
23118 PR other/89342
23119 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23120 optimize_debug.
23121 * opth-gen.awk: Likewise.
23122
23123 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23124
23125 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23126 Enable MMX, SSE and SSE2 by default.
23127 * config/i386/i386.c (ix86_option_override_internal): Do not
23128 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23129
23130 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23131
23132 PR rtl-optimization/89354
23133 * combine.c (make_extraction): Punt if extraction_mode is narrower
23134 than len bits.
23135
23136 2019-02-14 Maya Rashish <coypu@sdf.org>
23137
23138 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23139 * config/netbsd-d.c: New file.
23140 * config/t-netbsd: Add netbsd-d.o
23141
23142 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23143
23144 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23145 affects_type_identity to true for aarch64_vector_pcs.
23146 (aarch64_comp_type_attributes): New function.
23147 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23148
23149 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23150
23151 PR target/88850
23152 * config/arm/iterators.md (ANY64): Add V4HF.
23153
23154 2019-02-14 Martin Liska <mliska@suse.cz>
23155
23156 PR rtl-optimization/89242
23157 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23158 process a transformation.
23159
23160 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23161
23162 PR tree-optimization/89314
23163 * fold-const.c (fold_binary_loc): Cast strlen argument to
23164 const char * before dereferencing it. Formatting fixes.
23165
23166 PR middle-end/89284
23167 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23168
23169 2019-02-13 Ian Lance Taylor <iant@golang.org>
23170
23171 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23172 and set current index for other optimizations.
23173
23174 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23175
23176 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23177 nonimmediate_operand as operand 2 predicate.
23178 (vec_set<VF2_512_256:mode>_0): Ditto.
23179 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23180 (*vec_concatv2si): Remove alternative 2.
23181 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23182 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23183 (vec_concatv2di): Split alternatives 4,5,6 to ...
23184 (*vec_concatv2di_0) ... new pattern.
23185
23186 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23187
23188 PR target/89190
23189 * config/arm/arm.c (ldm_stm_operation_p) Set
23190 addr_reg_in_reglist correctly for first register.
23191 (load_multiple_sequence): Remove dead base check.
23192 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23193
23194 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23195
23196 PR target/88847
23197 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23198 Expose as @aarch64_pred_mov.
23199 * config/aarch64/aarch64.c (aarch64_classify_address):
23200 Use expand_insn which legitimizes operands.
23201
23202 2019-02-13 Martin Liska <mliska@suse.cz>
23203
23204 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23205 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23206 and pointer_offset fields.
23207 (initialize_argument_information): Remove usage of dead
23208 fields.
23209 * cgraph.h (struct cgraph_thunk_info): Remove
23210 add_pointer_bounds_args.
23211 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23212 fields.
23213 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23214 fields.
23215 * config/i386/i386.c (ix86_function_arg_advance): Remove
23216 unrelated comment.
23217 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23218 (def_builtin): Remove usage of dead fields.
23219 (ix86_add_new_builtins): Likewise.
23220 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23221 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23222 (sem_function::init): Likewise.
23223 (sem_variable::merge): Likewise.
23224 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23225 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23226 * lto-cgraph.c (lto_output_node): Likewise.
23227 (lto_output_varpool_node): Likewise.
23228 (input_node): Likewise.
23229 (input_varpool_node): Likewise.
23230 * lto-streamer-out.c (lto_output): Likewise.
23231 * tree-inline.c (expand_call_inline): Remove usage of
23232 assign_stmts.
23233 * tree-inline.h (struct copy_body_data): Likewise.
23234 * varpool.c (varpool_node::dump): Likewise.
23235
23236 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23237
23238 PR middle-end/89303
23239 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23240 into pt->vars_contains_escaped_heap instead of setting
23241 pt->vars_contains_escaped_heap to it.
23242
23243 PR middle-end/89281
23244 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23245 INTVAL (size), compare it to GET_MODE_MASK instead of
23246 1 << GET_MODE_BITSIZE.
23247
23248 PR target/89290
23249 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23250 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23251 -mcmodel=large.
23252
23253 2019-02-13 Martin Liska <mliska@suse.cz>
23254
23255 PR lto/88858
23256 * cfgrtl.c (remove_barriers_from_footer): New function.
23257 (try_redirect_by_replacing_jump): Use it.
23258 (cfg_layout_redirect_edge_and_branch): Likewise.
23259
23260 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23261
23262 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23263 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23264 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23265 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23266 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23267 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23268 New BU_CRYPTO_2.
23269 * config/rs6000/rs6000.c (builtin_function_type)
23270 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23271 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23272 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23273 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23274 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23275
23276 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23277
23278 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23279 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23280
23281 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23282
23283 PR target/89229
23284 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23285 268678 and revision 268657.
23286 (*movti_internal): Likewise.
23287
23288 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23289
23290 PR target/89233
23291 * config/s390/s390.c (s390_decompose_address): Update comment.
23292 (s390_check_qrst_address): Reject invalid address forms after
23293 LRA.
23294
23295 2019-02-12 Martin Liska <mliska@suse.cz>
23296
23297 PR lto/88876
23298 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23299 we need default values of funct_state for a function that
23300 is not optimized.
23301
23302 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23303
23304 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23305 the object to pick the size of stores on strict-alignment platforms.
23306
23307 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23308 (*movdi_insn_sp32): Likewise.
23309 (*movdi_insn_sp64): Likewise.
23310
23311 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23312
23313 PR lto/88677
23314 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23315 types that needs constructiong.
23316 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23317
23318 2019-02-12 Richard Biener <rguenther@suse.de>
23319
23320 PR tree-optimization/89253
23321 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23322 duplicate the loop.
23323
23324 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23325
23326 PR lto/88147
23327 * input.c (selftest::test_line_offset_overflow): New selftest.
23328 (selftest::input_c_tests): Call it.
23329
23330 2019-02-11 Martin Sebor <msebor@redhat.com>
23331
23332 PR tree-optimization/88771
23333 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23334 when -Wstringop-overflow is set.
23335 (builtin_memref::builtin_memref): Adjust excessive upper bound
23336 only when lower bound is not excessive.
23337 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23338 -Wstringop-ovefflow.
23339 (maybe_diag_offset_bounds): Rename...
23340 (maybe_diag_access_bounds): ...to this.
23341 (check_bounds_or_overlap): Adjust for name change above.
23342
23343 2019-02-11 Martin Sebor <msebor@redhat.com>
23344
23345 PR c++/87996
23346 * builtins.c (max_object_size): Move from here...
23347 * builtins.h (max_object_size): ...and here...
23348 * tree.c (max_object_size): ...to here...
23349 * tree.h (max_object_size): ...and here.
23350
23351 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23352
23353 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23354 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23355 for correct semantics.
23356
23357 2019-02-11 Alan Modra <amodra@gmail.com>
23358
23359 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23360 -mlongcall and -mpltseq.
23361 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23362 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23363 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23364 * config/rs6000/sysv4.opt (mpltseq): New option.
23365 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23366 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23367 support is lacking. Don't allow -mpltseq with -mbss-plt.
23368 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23369 -mpltseq given for ELFv1.
23370 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23371 Only use UNSPEC_PLTSEQ for inline PLT calls.
23372 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23373 use UNSPEC_PLTSEQ for inline PLT calls.
23374 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23375 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23376 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23377 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23378 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23379 (pltseq_mtctr_<mode>): Likewise.
23380
23381 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23382
23383 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23384 Solaris ld.
23385 * configure: Regenerate.
23386
23387 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23388
23389 PR bootstrap/88714
23390 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23391 instead of r.
23392
23393 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23394
23395 * function.c (assign_parm_setup_block): Use the stored
23396 size, not the passed size, when allocating stack-space,
23397 also for a parameter with alignment larger than
23398 MAX_SUPPORTED_STACK_ALIGNMENT.
23399
23400 2019-02-11 Martin Liska <mliska@suse.cz>
23401
23402 PR ipa/89009
23403 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23404 * ipa-inline.c (inline_small_functions): Likewise.
23405 * ipa-pure-const.c (propagate_pure_const): Likewise.
23406 (propagate_nothrow): Likewise.
23407 * ipa-reference.c (propagate): Likewise.
23408 * ipa-utils.c (struct searchc_env): Remove unused field.
23409 (searchc): Always search across AVAIL_INTERPOSABLE.
23410 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23411 the only called IPA pure const can properly not propagate
23412 across interposable boundary.
23413 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23414
23415 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23416
23417 * config/nds32/nds32.md (call_internal, call_value_internal,
23418 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23419
23420 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23421
23422 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23423 typo.
23424
23425 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23426
23427 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23428 in comments
23429
23430 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23431
23432 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23433
23434 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23435
23436 PR tree-optimization/89268
23437 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23438 if preds is non-NULL.
23439
23440 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23441
23442 PR lto/89272
23443 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23444 polymorphic types.
23445
23446 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23447
23448 * config/nds32/nds32.md (trap): New pattern.
23449
23450 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23451
23452 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23453 dwarf span.
23454
23455 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23456
23457 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23458 to split POST_INC.
23459
23460 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23461
23462 * ipa-visibility.c (localize_node): Also do not localize
23463 LDPR_PREVAILING_DEF_IRONLY_EXP.
23464
23465 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23466
23467 PR lto/87957
23468 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23469 instead of type_with_linkage.
23470
23471 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23472
23473 PR ipa/88755
23474 * params.def (uninlined-function-insns, uninlined-function-time,
23475 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23476 bound so we don't get overflows.
23477
23478 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23479
23480 * config/rs6000/rs6000-string.c (expand_compare_loop,
23481 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23482 memcmp/strncmp.
23483
23484 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23485
23486 PR middle-end/89246
23487 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23488 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23489 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23490
23491 2019-02-09 Alan Modra <amodra@gmail.com>
23492
23493 PR target/88343
23494 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23495 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23496 setup.
23497
23498 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23499
23500 PR middle-end/88560
23501 * lra-constraints.c (process_alt_operands): Don't increase reject
23502 for memory when offset memory is required.
23503
23504 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23505
23506 * config/s390/vector.md: Implement vector copysign.
23507
23508 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23509
23510 * expr.c (expand_constructor): Correct indentations.
23511
23512 2019-02-08 Richard Biener <rguenther@suse.de>
23513
23514 PR tree-optimization/89247
23515 * tree-if-conv.c: Include tree-cfgcleanup.h.
23516 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23517 (tree_if_conversion): Pass through predicate vector.
23518 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23519 inline, see if any if-converted loops we refrece in
23520 LOOP_VECTORIZED calls vanished and fixup.
23521 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23522
23523 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23524
23525 * config/s390/constraints.md (jdd): New constraint.
23526
23527 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23528
23529 PR target/89229
23530 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23531 upper 16 vector registers without TARGET_AVX512VL.
23532 (*movti_internal): Likewise.
23533
23534 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23535
23536 PR rtl-optimization/89234
23537 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23538 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23539 (copy_reg_eh_region_note_backward): Likewise.
23540
23541 2019-02-08 Richard Biener <rguenther@suse.de>
23542
23543 PR middle-end/89223
23544 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23545 doesn't fit in HWI.
23546 (analyze_subscript_affine_affine): Handle failure from
23547 initialize_matrix_A.
23548
23549 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23550
23551 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23552 cfun everywhere.
23553
23554 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23555
23556 PR tree-optimization/86637
23557 PR tree-optimization/89235
23558 * tree-vect-loop.c (optimize_mask_stores): Add an
23559 auto_purge_vect_location sentinel to ensure that vect_location is
23560 purged on exit.
23561 * tree-vectorizer.c
23562 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23563 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23564 to ensure that vect_location is purged on exit.
23565 (pass_slp_vectorize::execute): Likewise, replacing the manual
23566 reset.
23567 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23568
23569 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23570
23571 * config/aarch64/iterators.md (max_opp): New code_attr.
23572 (USMAX): New code iterator.
23573 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23574 (aarch64_smax): Likewise.
23575 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23576 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23577 MINUS (MAX MIN).
23578
23579 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23580
23581 PR target/89229
23582 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23583 for TARGET_AVX512VL.
23584 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23585
23586 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23587
23588 * config/s390/s390-builtin-types.def: Add new types.
23589 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23590 (s390_vec_xlw4): Make the memory operand into a const pointer.
23591 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23592 float.
23593 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23594 a new vector type with the alignment of the scalar memory operand.
23595
23596 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23597 Jakub Jelinek <jakub@redhat.com>
23598
23599 PR bootstrap/88714
23600 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23601 arm_count_ldrdstrd_insns): New declarations.
23602 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23603 MINUS.
23604 (valid_operands_ldrd_strd): New function.
23605 (arm_count_ldrdstrd_insns): New function.
23606 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23607 sets instead of single DImode set and define new insns to match this.
23608
23609 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23610
23611 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23612 Make it a C initializer.
23613
23614 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23615
23616 PR/target 88850
23617 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23618
23619 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23620
23621 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23622 Use neon_dot<q> for type.
23623 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23624
23625 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23626
23627 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23628 Use neon_dot<q> for type.
23629 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23630 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23631
23632 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23633
23634 PR rtl-optimization/89225
23635 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23636 sizes check.
23637
23638 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23639
23640 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23641 after restoring registers saved to allocate the frame on Windows.
23642
23643 2019-02-06 Richard Biener <rguenther@suse.de>
23644
23645 PR tree-optimization/89182
23646 * graphite.h (cached_scalar_evolution_in_region): Declare.
23647 * graphite.c (struct seir_cache_key): New.
23648 (struct sese_scev_hash): Likewise.
23649 (seir_cache): New global.
23650 (cached_scalar_evolution_in_region): New function.
23651 (graphite_transform_loops): Allocate and release seir_cache.
23652 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23653 cached_scalar_evolution_in_region.
23654 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23655 Simplify.
23656 (scop_detection::graphite_can_represent_expr: Use
23657 cached_scalar_evolution_in_region.
23658 (scop_detection::stmt_simple_for_scop_p): Likewise.
23659 (find_params_in_bb): Likewise.
23660 (gather_bbs::before_dom_children): Likewise.
23661 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23662 (add_loop_constraints): Likewise.
23663
23664 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23665
23666 PR middle-end/89210
23667 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23668 operand to new_unary_operation only if both element types are integral
23669 and it isn't a widening conversion. Return NULL_TREE if
23670 new_unary_operation failed.
23671
23672 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23673
23674 PR target/88856
23675 * config/s390/s390.md: Remove load and test FP splitter.
23676
23677 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23678
23679 PR target/89112
23680 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23681 expand_compare_loop, expand_block_compare_gpr,
23682 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23683 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23684 #include "profile-count.h" and "predict.h" for types and functions
23685 needed to work with REG_BR_PROB notes.
23686
23687 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23688
23689 PR target/89112
23690 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23691 for the long branch case.
23692
23693 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23694
23695 PR target/89188
23696 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23697 can throw, non-call exceptions are enabled and we can't delete
23698 dead exceptions or alter cfg. Set must_clean if
23699 delete_insn_and_edges returns true, don't set it blindly for calls.
23700 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23701
23702 PR rtl-optimization/89195
23703 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23704 of the original MEM.
23705
23706 2019-02-05 Martin Liska <mliska@suse.cz>
23707
23708 PR gcov-profile/89000
23709 * gcov.c (function_summary): Remove argument.
23710 (file_summary): New function.
23711 (print_usage): Replace tabs with spaces.
23712 (generate_results): Use new function file_summary.
23713
23714 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23715
23716 PR target/89186
23717 * optabs.c (prepare_cmp_insn): Pass x and y to
23718 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23719
23720 2019-02-05 Richard Biener <rguenther@suse.de>
23721
23722 PR middle-end/89150
23723 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23724 (struct bitmap_element): Drop chain_prev so we properly recurse on
23725 the prev member, supporting tree views.
23726 (struct bitmap_head): GTY skip the obstack member.
23727
23728 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23729
23730 PR c/88698
23731 * doc/extend.texi (Vector Extensions): Add an example of using vector
23732 types together with x86 intrinsics.
23733
23734 2019-02-04 Alan Modra <amodra@gmail.com>
23735
23736 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23737 str[] size to 160, and comment.
23738
23739 2019-02-04 Alan Modra <amodra@gmail.com>
23740
23741 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23742 (rs6000_pltseq_template): Guard output of TLS markers with
23743 TARGET_TLS_MARKERS.
23744 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23745 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23746 to use inline PLT sequences.
23747 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23748 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23749 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23750
23751 2019-02-04 Martin Liska <mliska@suse.cz>
23752
23753 PR ipa/88985
23754 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23755 out when ipa_fn_summaries does not contain entry for callee.
23756
23757 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23758
23759 * config/sparc/sparc.h: Remove superfluous blank lines.
23760 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23761 (got_register_rtx): ...this.
23762 (sparc_got): Adjust to above renaming.
23763 (sparc_tls_got): Likewise.
23764 (sparc_delegitimize_address): Likewise.
23765 (sparc_output_mi_thunk): Likewise.
23766 (sparc_init_pic_reg): Likewise.
23767 (save_local_or_in_reg_p): Fix test on the GOT register.
23768 (USE_HIDDEN_LINKONCE): Move around.
23769 (get_pc_thunk_name): Likewise.
23770 (gen_load_pcrel_sym): Likewise.
23771 (load_got_register): Likewise.
23772
23773 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23774
23775 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23776 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23777
23778 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23779
23780 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23781 into consideration.
23782
23783 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23784
23785 * config.gcc (with_nds32_lib, glibc):
23786 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23787 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23788 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23789
23790 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23791
23792 PR target/89071
23793 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23794 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23795 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23796 (*rcpsf2_sse): Ditto.
23797 (*rsqrtsf2_sse): Ditto.
23798 (sse4_1_round<mode<2): Ditto.
23799
23800 2019-02-03 Richard Biener <rguenther@suse.de>
23801
23802 PR debug/87295
23803 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23804 orig.
23805
23806 2019-02-02 Jakub Jelinek <jakub@redhat.com>
23807
23808 PR middle-end/87887
23809 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23810 Punt with warning on aggregate return or argument types. Ignore
23811 type/mode checking for uniform arguments.
23812
23813 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
23814
23815 * combine.c (try_combine): Do not print "Can't combine" messages unless
23816 printing failed combination attempts.
23817
23818 2019-02-01 Martin Jambor <mjambor@suse.cz>
23819
23820 PR hsa/87863
23821 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23822 segment and global segment variables before making them static.
23823
23824 2019-02-01 Martin Jambor <mjambor@suse.cz>
23825
23826 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23827 missed optimization dump with dump_enabled_p.
23828
23829 2019-02-01 Richard Biener <rguenther@suse.de>
23830
23831 PR middle-end/88597
23832 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23833 the instantiate cache.
23834 (instantiate_scev_binary): Elide second operand procesing
23835 if equal to the first.
23836 * tree-chrec.c (chrec_contains_symbols): Add visited set.
23837 (chrec_contains_undetermined): Likewise.
23838 (tree_contains_chrecs): Likewise.
23839
23840 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
23841
23842 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23843
23844 2019-02-01 Jakub Jelinek <jakub@redhat.com>
23845
23846 PR tree-optimization/89143
23847 * wide-int-range.h (wide_int_range_absu): Declare.
23848 * wide-int-range.cc (wide_int_range_absu): New function.
23849 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23850
23851 PR tree-optimization/88107
23852 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23853 instead of assertion that eh_region_outermost is non-NULL, if it
23854 is NULL, set *ALL to true and return NULL.
23855 (move_sese_region_to_fn): Adjust caller, if all is set, call
23856 duplicate_eh_regions with NULL region.
23857
23858 2019-02-01 Richard Biener <rguenth@suse.de>
23859
23860 PR rtl-optimization/88593
23861 * mode-switching.c (optimize_mode_switching): Free dominators before
23862 calling cleanup_cfg.
23863
23864 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
23865
23866 PR tree-optimization/88932
23867 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23868
23869 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23870
23871 PR middle-end/89137
23872 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
23873 bogus clang warning.
23874
23875 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
23876
23877 PR target/89071
23878 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
23879 alternative to avoid partial SSE register stall for TARGET_AVX.
23880 (truncdfsf2): Ditto.
23881 (sse4_1_round<mode>2): Ditto.
23882
23883 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
23884
23885 PR tree-optimization/89008
23886 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
23887 process anything of the form X * 0.
23888
23889 2019-01-31 Richard Biener <rguenther@suse.de>
23890
23891 PR tree-optimization/89135
23892 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
23893 with abnormal preds.
23894
23895 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23896
23897 PR sanitizer/89124
23898 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
23899 always_inline callees into no_sanitize_address callers.
23900
23901 2019-01-31 Richard Biener <rguenther@suse.de>
23902
23903 PR rtl-optimization/89115
23904 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
23905
23906 2019-01-30 Martin Sebor <msebor@redhat.com>
23907
23908 PR other/89106
23909 * doc/extend.texi (cast to a union): Correct and expand.
23910
23911 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
23912
23913 PR rtl-optimization/87246
23914 * lra-constraints.c (simplify_operand_subreg): Reload memory
23915 in subreg if the address became invalid.
23916
23917 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
23918
23919 PR target/87064
23920 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
23921 Disable for little-endian.
23922
23923 2019-01-30 Richard Biener <rguenther@suse.de>
23924
23925 PR rtl-optimization/89115
23926 * opts.c (default_options_optimization): Reduce
23927 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
23928 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
23929 to the default.
23930
23931 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
23932
23933 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
23934 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
23935 type of vector element when vec_extract is implemented by direct
23936 move.
23937
23938 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
23939
23940 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
23941
23942 2019-01-30 Richard Biener <rguenther@suse.de>
23943
23944 PR tree-optimization/89111
23945 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
23946 canonicalization to appropriately sized access types.
23947
23948 2019-01-30 Jakub Jelinek <jakub@redhat.com>
23949
23950 PR c++/89105
23951 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
23952 for arguments to functions that are TU-local and shouldn't be
23953 referenced by assembly.
23954
23955 2019-01-30 Ulrich Drepper <drepper@redhat.com>
23956
23957 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
23958 after '='.
23959
23960 2019-01-29 Martin Sebor <msebor@redhat.com>
23961
23962 PR c/88956
23963 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
23964
23965 2019-01-29 Jakub Jelinek <jakub@redhat.com>
23966
23967 PR c++/66676
23968 PR ipa/89104
23969 * omp-simd-clone.c (simd_clone_clauses_extract)
23970 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
23971 OMP_CLAUSE_ALIGNED_ALIGNMENT.
23972
23973 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
23974
23975 * config.gcc: Force .init_array for ARC.
23976
23977 2019-01-29 Richard Biener <rguenther@suse.de>
23978
23979 PR debug/87295
23980 * dwarf2out.c (collect_skeleton_dies): New helper.
23981 (copy_decls_for_unworthy_types): Call it.
23982 (build_abbrev_table): Assert we do not try to replace
23983 DW_AT_signature refs with local refs.
23984
23985 2019-01-28 Jakub Jelinek <jakub@redhat.com>
23986
23987 PR middle-end/89002
23988 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
23989 for lastprivate/linear IV, push gimplify context around gimplify_assign
23990 and, if it needed any temporaries, pop it into a gimple bind around the
23991 sequence.
23992
23993 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23994
23995 * common.opt (-Wattribute-alias): Remove "no-" from name.
23996 Make -Wattribute-alias command line option and
23997 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
23998
23999 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24000
24001 PR target/89073
24002 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24003 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24004 x86 ISA options.
24005 (bmi2): Add missing @opindex.
24006 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24007 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24008 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24009 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24010 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24011 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24012 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24013 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24014 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24015 xsavec, xsaveopt and xsaves options.
24016
24017 2019-01-28 Richard Biener <rguenther@suse.de>
24018
24019 PR debug/89076
24020 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24021 support removal.
24022
24023 2019-01-28 Richard Biener <rguenther@suse.de>
24024
24025 PR tree-optimization/88739
24026 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24027 BIT_FIELD_REFs only are applied to mode-precision operands
24028 when they are integral.
24029 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24030 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24031 BIT_FIELD_REFs of non-mode-precision integral operands.
24032
24033 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24034
24035 PR target/87214
24036 * config/i386/sse.md
24037 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24038 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24039 first constants in pairs are multiples of 2. Formatting fixes.
24040 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24041 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24042 first constants in each quadruple are multiples of 4. Formatting fixes.
24043
24044 2019-01-26 Martin Jambor <mjambor@suse.cz>
24045
24046 PR ipa/88933
24047 * tree-inline.c: Include tree-cfgcleanup.h.
24048 (delete_unreachable_blocks_update_callgraph): Move...
24049 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24050 ...here, make externally visible, make second argument bool, adjust
24051 all callers.
24052 * tree-cfgcleanup.c: Include cgraph.h.
24053 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24054 Declare.
24055 * ipa-prop.c: Include tree-cfgcleanup.h.
24056 (ipcp_transform_function): Call
24057 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24058
24059 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24060
24061 PR rtl-optimization/88846
24062 * ira.c (process_set_for_memref_referenced_p): New.
24063 (memref_referenced_p): Add new param. Use
24064 process_set_for_memref_referenced_p. Add new switch cases.
24065 (memref_used_between_p): Pass new arg to memref_referenced_p.
24066
24067 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24068
24069 PR target/88469
24070 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24071 argument ABI_BREAK. Set to true if the calculated alignment has
24072 changed in gcc-9. Check bit-fields for their base type alignment.
24073 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24074 (aarch64_function_arg_boundary): Likewise.
24075 (aarch64_gimplify_va_arg_expr): Likewise.
24076
24077 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24078
24079 PR middle-end/89037
24080 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24081 instead of accessing TREE_INT_CST_ELT directly.
24082
24083 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24084
24085 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24086 fenv_exceptions description.
24087
24088 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24089
24090 PR rtl-optimization/87763
24091 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24092 Allow SUBREG when matching CC_NZmode compare.
24093
24094 2019-01-25 Richard Biener <rguenther@suse.de>
24095
24096 PR tree-optimization/89049
24097 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24098 Look at the pattern stmt to determine if the stmt is vectorized.
24099
24100 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24101
24102 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24103 (pred_mov<mode>): Handle all-register forms using both a new
24104 alternative and a split.
24105
24106 2019-01-25 Richard Biener <rguenther@suse.de>
24107
24108 PR tree-optimization/86865
24109 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24110 Reject non-do-while loops.
24111
24112 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24113
24114 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24115 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24116 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24117 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24118 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24119 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24120 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24121 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24122 vlogical_operand, gpc_reg_operand, int_reg_operand,
24123 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24124 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24125 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24126 (save_world_operation, restore_world_operation, lmw_operation,
24127 stmw_operation): Use MEM_P and REG_P.
24128 (tie_operand): Use MEM_P.
24129 (vrsave_operation, crsave_operation): Use REG_P.
24130 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24131 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24132 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24133 (call_operand): Use HARD_REGISTER_P.
24134 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24135 Use CONST_INT_P.
24136 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24137 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24138 quad_aligned_load_p, replace_swapped_aligned_store,
24139 recombine_lvx_pattern, replace_swapped_aligned_load,
24140 recombine_stvx_pattern): Use MEM_P.
24141 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24142 Use MEM_P and SYMBOL_REF_P.
24143 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24144 (insn_is_swappable_p): Use REG_P and MEM_P.
24145 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24146 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24147 Use CONST_INT_P.
24148 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24149 Use CONST_DOUBLE_P.
24150 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24151 CONST_WIDE_INT_P.
24152 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24153 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24154 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24155 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24156 reg_or_subregno:
24157 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24158 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24159 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24160 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24161 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24162 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24163 rs6000_split_logical_di): Use CONST_INT_P.
24164 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24165 REG_P and SYMBOL_REF_P.
24166 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24167 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24168 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24169 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24170 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24171 (small_data_operand, print_operand_address): Use CONST_INT_P and
24172 SYMBOL_REF_P.
24173 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24174 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24175 Use HARD_REGISTER_NUM_P.
24176 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24177 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24178 SUBREG_P and SYMBOL_REF_P.
24179 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24180 and HARD_REGISTER_NUM_P.
24181 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24182 reg_or_subregno.
24183 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24184 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24185 MEM_P and REG_P.
24186 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24187 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24188 find_addr_reg): Use REG_P.
24189 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24190 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24191 (offsettable_ok_by_alignment, constant_pool_expr_p,
24192 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24193 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24194 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24195 rs6000_assemble_integer, create_TOC_reference,
24196 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24197 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24198 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24199 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24200 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24201 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24202 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24203 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24204 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24205 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24206 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24207 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24208 and cbranch<mode>4): Use CONST_INT_P.
24209 (multiple define_splits): Use REG_P and SUBREG_P.
24210 (define_expands call, call_value): Use MEM_P.
24211 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24212 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24213 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24214 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24215 and HARD_REGISTER_NUM_P.
24216 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24217
24218 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24219
24220 PR rtl-optimization/88948
24221 * rtl.h (prepare_copy_insn): New prototype.
24222 * gcse.c (prepare_copy_insn): New function, split out from
24223 process_insert_insn.
24224 (process_insert_insn): Use prepare_copy_insn.
24225 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24226 instead of gen_move_insn.
24227
24228 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24229
24230 PR debug/89006
24231 * config/i386/i386.c (ix86_pic_register_p): Return true for
24232 UNSPEC_SET_GOT too.
24233
24234 PR tree-optimization/88964
24235 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24236 punt if HONOR_SNANS (chrec).
24237
24238 PR middle-end/89015
24239 * tree-nested.c (convert_nonlocal_reference_stmt,
24240 convert_local_reference_stmt, convert_tramp_reference_stmt,
24241 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24242 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24243 or GIMPLE_OMP_TASK.
24244
24245 PR tree-optimization/89027
24246 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24247 for "omp simd array" variables.
24248
24249 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24250
24251 PR target/88469
24252 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24253 force the alignment of m_val.
24254
24255 2019-01-24 Richard Biener <rguenther@suse.de>
24256
24257 PR lto/87187
24258 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24259 When in "legacy" debug mode make sure to reset self-origins.
24260
24261 2019-01-24 Martin Liska <mliska@suse.cz>
24262
24263 PR gcov-profile/88994
24264 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24265 result will be always smaller or equal to the original.
24266 * gcov.c (mangle_name): Fix else branch where we should
24267 also copy to PTR and shift the pointer.
24268
24269 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24270
24271 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24272 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24273
24274 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24275
24276 * common/config/i386/i386-common.c
24277 (OPTION_MASK_ISA_ENQCMD_SET,
24278 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24279 (ix86_handle_option): Handle -menqcmd.
24280 * config.gcc (enqcmdintrin.h): New header file.
24281 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24282 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24283 -menqcmd.
24284 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24285 function type.
24286 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24287 __builtin_ia32_enqcmds): New builtins.
24288 * config/i386/i386-c.c (__ENQCMD__): New macro.
24289 * config/i386/i386-option.c (ix86_target_string): Add
24290 -menqcmd.
24291 (ix86_valid_target_attribute_inner_p): Likewise.
24292 * config/i386/i386-expand.c
24293 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24294 IX86_BUILTIN_ENQCMDS.
24295 * config/i386/i386.h (TARGET_ENQCMD): New.
24296 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24297 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24298 (movdir64b_<mode>): Parameterize to enable share expansion code
24299 with ENQCMD in function ix86_expand_builtin.
24300 * config/i386/i386.opt: Add -menqcmd.
24301 * config/i386/immintrin.h: Include enqcmdintrin.h.
24302 * config/i386/enqcmdintrin.h: New intrinsic file.
24303 * doc/invoke.texi: Add -menqcmd.
24304
24305 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24306 Steve Ellcey <sellcey@marvell.com>
24307
24308 PR target/85711
24309 * recog.c (address_operand): Return false on wrong mode for address.
24310 (constrain_operands): Check for mode with 'p' constraint.
24311
24312 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24313
24314 PR target/88998
24315 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24316 Disparage MMX alternative.
24317 (sse2_cvtpd2pi): Ditto.
24318 (sse2_cvttpd2pi): Ditto.
24319
24320 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24321
24322 PR driver/89014
24323 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24324 use-after-free of the result of
24325 aarch64_get_extension_string_for_isa_flags.
24326
24327 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24328
24329 PR c/44715
24330 * doc/extend.texi: Document break and continue behavior in
24331 statement expressions.
24332
24333 2019-01-23 Richard Biener <rguenther@suse.de>
24334
24335 PR tree-optimization/89008
24336 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24337 not leave another stray operand.
24338
24339 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24340
24341 * BASE-VER: Bump to 9.0.1.
24342
24343 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24344
24345 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24346 thunk that returns by reference, use the type of the return object
24347 of the thunk instead of that of the alias to build the dereference.
24348
24349 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24350
24351 * config/arc/atomic.md: Add operand to DMB instruction.
24352
24353 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24354
24355 PR tree-optimization/88964
24356 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24357 build_zero_cst instead of build_int_cst. Return false for loop
24358 invariants which honor signed zeros.
24359
24360 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24361
24362 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24363
24364 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24365
24366 PR target/88965
24367 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24368 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24369 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24370
24371 PR middle-end/88968
24372 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24373 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24374
24375 PR target/87064
24376 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24377 Disable for little endian.
24378
24379 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24380
24381 PR target/88469
24382 * config/arm/arm.c (arm_needs_double_word_align): Check
24383 DECL_BIT_FIELD_TYPE.
24384
24385 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24386 H.J. Lu <hongjiu.lu@intel.com>
24387
24388 PR target/88909
24389 * config/i386/i386-builtin.def: Add mask2 to all builtin
24390 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24391 SPECIAL_ARGS.
24392 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24393 (BDESC_FIRST): Likewise.
24394 (define_builtin): Add an argument for mask2. Updated to handle
24395 both ix86_isa_flags and ix86_isa_flags2.
24396 (define_builtin_const): Likewise.
24397 (define_builtin_pure): Likewise.
24398 (define_builtin2): Deleted.
24399 (define_builtin_const2): Likewise.
24400 (builtin_description): Add a member, mask2.
24401 (bdesc_*): Add mask2 to builtin initializations.
24402 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24403 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24404 support.
24405 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24406
24407 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24408
24409 PR target/88954
24410 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24411 noplt attribute.
24412
24413 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24414
24415 PR target/88469
24416 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24417 alignment is dominated by a bitfield with 64-bit aligned base type.
24418 (arm_function_arg): Emit a warning if the alignment has changed since
24419 earlier GCC releases.
24420 (arm_function_arg_boundary): Likewise.
24421 (arm_setup_incoming_varargs): Likewise.
24422
24423 2019-01-22 Richard Biener <rguenther@suse.de>
24424
24425 PR tree-optimization/88862
24426 * graphite-scop-detection.c
24427 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24428
24429 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24430
24431 * doc/extend.tex (AMD GCN Function Attributes): New section.
24432 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24433 * doc/invoke.texi (AMD GCN Options): New section.
24434 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24435
24436 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24437
24438 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24439 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24440
24441 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24442
24443 PR tree-optimization/88044
24444 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24445 is false in the first iteration, but !every_iteration, return false
24446 instead of true with niter->niter zero.
24447
24448 PR rtl-optimization/88904
24449 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24450 any nonequal registers before processing BB_END (b).
24451
24452 PR target/88905
24453 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24454 GET_MODE (op0).
24455 (expand_binop_directly, expand_doubleword_clz,
24456 expand_doubleword_popcount, expand_ctz, expand_ffs,
24457 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24458
24459 PR rtl-optimization/49429
24460 PR target/49454
24461 PR rtl-optimization/86334
24462 PR target/88906
24463 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24464 addressable from here...
24465 (emit_block_op_via_libcall): ... to here.
24466
24467 2019-01-22 Richard Biener <rguenther@suse.de>
24468
24469 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24470 auto_vec for cost vector to fix memleak.
24471 (vectorize_fold_left_reduction): Properly gather SLP defs.
24472 (vectorizable_comparison): Do not swap operands to properly
24473 gather SLP defs.
24474
24475 2019-01-22 Alan Modra <amodra@gmail.com>
24476
24477 PR target/88614
24478 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24479 stays a reg. Allow a const_int.
24480 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24481 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24482 (IS_NOMARK_TLSGETADDR): Define.
24483 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24484 (rs6000_output_tlsargs): New function.
24485 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24486 __tls_get_addr call takes an arg.
24487 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24488 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24489 delete split..
24490 (call_value_nonlocal_sysv): ..or here, delete split.
24491 (tls_gdld_nomark): Delete.
24492 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24493 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24494 (call_value_nonlocal_sysv): Likewise.
24495 (call_value_nonlocal_sysv_secure): Likewise.
24496 (call_value_nonlocal_aix): Likewise.
24497 (call_value_indirect_aix): Likewise.
24498 (call_value_indirect_elfv2): Likewise.
24499 (call_value_local32, call_value_local64): Disable for no-mark tls.
24500 (call_value_local_aix): Likewise.
24501
24502 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24503
24504 PR target/88938
24505 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24506 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24507
24508 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24509
24510 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24511 string contents as hash_map keys.
24512
24513 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24514
24515 PR c/88928
24516 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24517 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24518 instead of TYPE_ALIGN.
24519 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24520 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24521 pointer from TYPE_STUB_DECL.
24522
24523 2019-01-21 Richard Biener <rguenther@suse.de>
24524
24525 PR tree-optimization/88934
24526 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24527 at the possibly non-constant operand.
24528 (vect_get_constant_vectors): Adjust.
24529
24530 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24531
24532 PR target/71659
24533 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24534 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24535 instead of _X86INTRIN_H_INCLUDED.
24536 * onfig/i386/clwbintrin.h: Likewise.
24537 * config/i386/pkuintrin.h: Likewise.
24538 * config/i386/prfchwintrin.h: Likewise.
24539 * config/i386/rdseedintrin.h: Likewise.
24540 * config/i386/wbnoinvdintrin.h: Likewise.
24541 * config/i386/xsavecintrin.h: Likewise.
24542 * config/i386/xsavesintrin.h: Likewise.
24543 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24544 * config/i386/xsaveintrin.h: Likewise.
24545 * config/i386/xsaveoptintrin.h: Likewise.
24546 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24547 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24548 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24549 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24550 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24551 * config/i386/immintrin.h: Here.
24552
24553 2019-01-20 Martin Jambor <mjambor@suse.cz>
24554
24555 PR ipa/87615
24556 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24557 with aa_walk_budget.
24558 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24559 aa_walk_budget_p parameter.
24560 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24561 walk. Updated all callers.
24562 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24563 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24564 unmodified_parm.
24565 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24566 parameter info. Extract info from fbi. Pass fbi to recursive calls
24567 and to unmodified_parm.
24568 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24569 info, updated call to will_be_nonconstant_expr_predicate.
24570 (param_change_prob): New parameter fbi, limit AA walking.
24571 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24572 calls to various above functions.
24573 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24574 parameter. Use it to limit AA walking.
24575 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24576 fbi, limit AA walk.
24577 (detect_type_change): New parameter fbi, pass it on to
24578 detect_type_change_from_memory_writes.
24579 (detect_type_change_ssa): Likewise.
24580 (aa_overwalked): Removed.
24581 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24582 accordingly, adjust to the neew AA limiting scheme.
24583 (parm_ref_data_preserved_p): Likewise.
24584 (ipa_compute_jump_functions_for_edge): Adjust call to
24585 get_dynamic_type.
24586 (ipa_analyze_call_uses): Likewise.
24587 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24588 (ipa_analyze_node): Initialize aa_walk_budget.
24589 (ipcp_transform_function): Likewise.
24590 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24591 to get_dynamic_type.
24592
24593 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24594
24595 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24596 outside of #if CHECKING_P code.
24597
24598 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24599
24600 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24601 New function, split out from...
24602 (loop_versioning::analyze_stride): ...here.
24603 (loop_versioning::find_per_loop_multiplication): Use gassign.
24604 (loop_versioning::analyze_term_using_scevs): Return a success code.
24605 (loop_versioning::analyze_arbitrary_term): New function.
24606 (loop_versioning::analyze_address_fragment): Use
24607 analyze_arbitrary_term if all else fails.
24608
24609 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24610
24611 PR target/88892
24612 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24613 operands.
24614
24615 2019-01-18 Richard Biener <rguenther@suse.de>
24616
24617 PR tree-optimization/88903
24618 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24619 scalar stmts a SLP shift amount is composed of when detecting
24620 shifts by scalars.
24621
24622 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24623
24624 PR target/88799
24625 * config/arm/arm-cpus.in (mp): New feature.
24626 (sec): New feature.
24627 (fgroup ARMv7ve): Add mp and sec features.
24628 (arch armv7-a): Add options to allow mp and sec extensions.
24629 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24630 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24631 extenstions to the base architecture.
24632 (cpu cortex-a8): Add sec extension to the base architecture.
24633 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24634 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24635 variants down to the base v7-a varaint.
24636 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24637 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24638 of permitted extensions for -march=armv7-a and for
24639 -mcpu=generic-armv7-a.
24640
24641 2019-01-18 Martin Liska <mliska@suse.cz>
24642
24643 * params.def: Fix comment.
24644 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24645 name.
24646 (gimple_gen_ic_func_profiler): Likewise.
24647
24648 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24649
24650 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24651 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24652 and put in error checks for stack protector guard options.
24653 (aarch64_stack_protect_guard): New.
24654 (TARGET_STACK_PROTECT_GUARD): Define.
24655 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24656 (reg_stack_protect_address<mode>): New.
24657 (stack_protect_set): Adjust for SSP_GLOBAL.
24658 (stack_protect_test): Likewise.
24659 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24660 (-mstack-protector-guard): Likewise.
24661 (-mstack-protector-guard-offset): Likewise.
24662
24663 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24664
24665 PR tree-optimization/86214
24666 * tree-inline.h (struct copy_body_data): Add
24667 add_clobbers_to_eh_landing_pads member.
24668 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24669 (copy_edges_for_bb): Call it if EH edge destination is <
24670 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24671 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24672 if flag_stack_reuse != SR_NONE and clear it afterwards.
24673
24674 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24675
24676 PR target/85596
24677 * doc/install.texi (with-multilib-list): Document for aarch64.
24678
24679 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24680
24681 PR target/88734
24682 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24683 (("..."))) with ("...").
24684
24685 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24686
24687 * doc/extend.texi (Built-in Functions for Memory Model Aware
24688 Atomic Operations): Document atomic fetch and nand.
24689
24690 2019-01-18 Martin Liska <mliska@suse.cz>
24691 Richard Biener <rguenther@suse.de>
24692
24693 PR middle-end/88587
24694 * cgraph.h (create_version_clone_with_body): Add new argument
24695 with attributes.
24696 * cgraphclones.c (cgraph_node::create_version_clone): Add
24697 DECL_ATTRIBUTES to a newly created decl. And call
24698 valid_attribute_p so that proper cl_target_optimization_node
24699 is set for the newly created declaration.
24700 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24701 for declaration.
24702 (expand_target_clones): Do not call valid_attribute_p, it must
24703 be already done.
24704 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24705 vector types.
24706
24707 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24708
24709 PR target/88734
24710 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24711 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24712 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24713
24714 2019-01-17 Martin Sebor <msebor@redhat.com>
24715
24716 PR middle-end/88273
24717 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24718 Handle anti-ranges the same as no range at all.
24719
24720 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24721
24722 * config/aarch64/aarch64.c (cgraph.h): New include.
24723 (intl.h): New include.
24724 (supported_simd_type): New function.
24725 (currently_supported_simd_type): Ditto.
24726 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24727 (aarch64_simd_clone_adjust): Ditto.
24728 (aarch64_simd_clone_usable): Ditto.
24729 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24730 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24731 (TARGET_SIMD_CLONE_USABLE): Ditto.
24732 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24733 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24734 call.
24735
24736 2019-01-17 Martin Sebor <msebor@redhat.com>
24737
24738 PR tree-optimization/88800
24739 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24740 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24741 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24742 redundant argument. Add new argument and issue diagnostics under
24743 its control. Detect out-of-bounds access even with warnings
24744 disabled.
24745 (check_bounds_or_overlap): Change return type. Add argument.
24746 (wrestrict_dom_walker::check_call): Adjust.
24747 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24748 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24749 check_bounds_or_overlap's return value.
24750 (handle_builtin_stxncpy): Same.
24751 (handle_builtin_strcat): Same.
24752
24753 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24754 Kwok Cheung Yeung <kcy@codesourcery.com>
24755 Julian Brown <julian@codesourcery.com>
24756 Tom de Vries <tom@codesourcery.com>
24757
24758 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24759
24760 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24761
24762 * doc/sourcebuild.texi: Document dg-require-effective-target
24763 llvm_binutils and offload_gcn.
24764
24765 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24766 Kwok Cheung Yeung <kcy@codesourcery.com>
24767 Julian Brown <julian@codesourcery.com>
24768 Tom de Vries <tom@codesourcery.com>
24769
24770 * doc/sourcebuild.texi: Document dg-required-effective-target
24771 exceptions.
24772
24773 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24774 Kwok Cheung Yeung <kcy@codesourcery.com>
24775 Julian Brown <julian@codesourcery.com>
24776 Tom de Vries <tom@codesourcery.com>
24777 Jan Hubicka <hubicka@ucw.cz>
24778 Martin Jambor <mjambor@suse.cz>
24779
24780 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24781 * configure.ac: Check for dlopen.
24782 * configure: Regenerate.
24783
24784 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24785 Kwok Cheung Yeung <kcy@codesourcery.com>
24786 Julian Brown <julian@codesourcery.com>
24787 Tom de Vries <tom@codesourcery.com>
24788 Jan Hubicka <hubicka@ucw.cz>
24789 Martin Jambor <mjambor@suse.cz>
24790
24791 * common/config/gcn/gcn-common.c: New file.
24792 * config/gcn/driver-gcn.c: New file.
24793 * config/gcn/gcn-builtins.def: New file.
24794 * config/gcn/gcn-hsa.h: New file.
24795 * config/gcn/gcn-modes.def: New file.
24796 * config/gcn/gcn-opts.h: New file.
24797 * config/gcn/gcn-passes.def: New file.
24798 * config/gcn/gcn-protos.h: New file.
24799 * config/gcn/gcn-run.c: New file.
24800 * config/gcn/gcn-tree.c: New file.
24801 * config/gcn/gcn.c: New file.
24802 * config/gcn/gcn.h: New file.
24803 * config/gcn/gcn.opt: New file.
24804 * config/gcn/t-gcn-hsa: New file.
24805
24806 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24807 Kwok Cheung Yeung <kcy@codesourcery.com>
24808 Julian Brown <julian@codesourcery.com>
24809 Tom de Vries <tom@codesourcery.com>
24810 Jan Hubicka <hubicka@ucw.cz>
24811 Martin Jambor <mjambor@suse.cz>
24812
24813 * config/gcn/constraints.md: New file.
24814 * config/gcn/gcn-valu.md: New file.
24815 * config/gcn/gcn.md: New file.
24816 * config/gcn/predicates.md: New file.
24817
24818 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
24819
24820 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24821 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24822 (stmt_uses_0_or_null_in_undefined_way): Likewise.
24823 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24824
24825 2019-01-17 Tamar Christina <tamar.christina@arm.com>
24826
24827 PR target/88851
24828 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24829 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24830 it and document registers.
24831
24832 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24833
24834 * config/aarch64/aarch64.c (ares_tunings): Define.
24835 * config/aarch64/aarch64-cores.def (ares): Use the above.
24836
24837 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24838
24839 PR target/88794
24840 Revert:
24841 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
24842
24843 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24844 (_mm512_fixupimm_round_pd): Update parameters and builtin.
24845 (_mm512_maskz_fixupimm_round_pd): Ditto.
24846 (_mm512_fixupimm_round_ps): Ditto.
24847 (_mm512_maskz_fixupimm_round_ps): Ditto.
24848 (_mm_fixupimm_round_sd): Ditto.
24849 (_mm_maskz_fixupimm_round_sd): Ditto.
24850 (_mm_fixupimm_round_ss): Ditto.
24851 (_mm_maskz_fixupimm_round_ss): Ditto.
24852 (_mm512_fixupimm_pd): Ditto.
24853 (_mm512_maskz_fixupimm_pd): Ditto.
24854 (_mm512_fixupimm_ps): Ditto.
24855 (_mm512_maskz_fixupimm_ps): Ditto.
24856 (_mm_fixupimm_sd): Ditto.
24857 (_mm_maskz_fixupimm_sd): Ditto.
24858 (_mm_fixupimm_ss): Ditto.
24859 (_mm_maskz_fixupimm_ss): Ditto.
24860 (_mm512_mask_fixupimm_round_pd): Update builtin.
24861 (_mm512_mask_fixupimm_round_ps): Ditto.
24862 (_mm_mask_fixupimm_round_sd): Ditto.
24863 (_mm_mask_fixupimm_round_ss): Ditto.
24864 (_mm512_mask_fixupimm_pd): Ditto.
24865 (_mm512_mask_fixupimm_ps): Ditto.
24866 (_mm_mask_fixupimm_sd): Ditto.
24867 (_mm_mask_fixupimm_ss): Ditto.
24868 * config/i386/avx512vlintrin.h:
24869 (_mm256_fixupimm_pd): Update parameters and builtin.
24870 (_mm256_maskz_fixupimm_pd): Ditto.
24871 (_mm256_fixupimm_ps): Ditto.
24872 (_mm256_maskz_fixupimm_ps): Ditto.
24873 (_mm_fixupimm_pd): Ditto.
24874 (_mm_maskz_fixupimm_pd): Ditto.
24875 (_mm_fixupimm_ps): Ditto.
24876 (_mm_maskz_fixupimm_ps): Ditto.
24877 (_mm256_mask_fixupimm_pd): Update builtin.
24878 (_mm256_mask_fixupimm_ps): Ditto.
24879 (_mm_mask_fixupimm_pd): Ditto.
24880 (_mm_mask_fixupimm_ps): Ditto.
24881 * config/i386/i386-builtin-types.def: Add new types and remove
24882 useless ones.
24883 * config/i386/i386-builtin.def: Update builtin definitions.
24884 * config/i386/i386.c: Handle new builtin types and remove useless ones.
24885 * config/i386/sse.md: Update VFIXUPIMM* patterns.
24886 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24887 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24888 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
24889 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24890 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24891 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
24892 * config/i386/subst.md:
24893 (round_saeonly_sd_mask_operand4): Add new subst_attr.
24894 (round_saeonly_sd_mask_op4): Ditto.
24895 (round_saeonly_expand_operand5): Ditto.
24896 (round_saeonly_expand): Update.
24897
24898 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24899
24900 PR target/88794
24901 Revert:
24902 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
24903
24904 * config/i386/sse.md: Combine VFIXUPIMM* patterns
24905 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24906 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24907 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
24908 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24909 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24910 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
24911
24912 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24913
24914 PR target/88794
24915 Revert:
24916 2018-12-15 Jakub Jelinek <jakub@redhat.com>
24917
24918 PR target/88489
24919 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
24920 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
24921 instead of UNSPEC_FIXUPIMM.
24922
24923 2019-01-17 Richard Biener <rguenther@suse.de>
24924
24925 PR lto/86736
24926 * dwarf2out.c (want_pubnames): Never generate pubnames sections
24927 and friends for the LTO part of debug info.
24928
24929 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24930
24931 PR tree-optimization/86214
24932 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
24933 if x == y.
24934
24935 PR rtl-optimization/88870
24936 * dce.c (deletable_insn_p): Never delete const/pure calls that can
24937 throw if we can't alter the cfg or delete dead exceptions.
24938 (mark_insn): Don't call find_call_stack_args for such calls.
24939
24940 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
24941
24942 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
24943 prototypes for vec_st.
24944 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
24945 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
24946 mainly on signed/unsigned long long and double.
24947
24948 2019-01-16 David Malcolm <dmalcolm@redhat.com>
24949
24950 PR target/88861
24951 * combine.c (delete_noop_moves): Convert to "bool" return,
24952 returning true if any edges are eliminated.
24953 (combine_instructions): Also return true if delete_noop_moves
24954 returns true.
24955
24956 2019-01-16 Tamar Christina <tamar.christina@arm.com>
24957
24958 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
24959 correct max nunits for endian swap.
24960 (aarch64_expand_fcmla_builtin): Correct subreg code.
24961 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24962 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
24963 lane endianness.
24964
24965 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
24966
24967 * config/alpha/alpha.c (alpha_gimplify_va_arg):
24968 Handle split indirect COMPLEX_TYPE arguments.
24969
24970 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
24971
24972 PR target/86891
24973 * config/aarch64/aarch64-modes.def: Add comment about how the carry
24974 bit is set by add and compare.
24975 (CC_ADC): New CC_MODE.
24976 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
24977 to cache the code and mode of X. Adjust the shape of a CC_Cmode
24978 comparison. Add detection for CC_ADCmode.
24979 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
24980 CC_ADCmode.
24981 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
24982 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
24983 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
24984 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
24985 to eliminate the need for zero-extending the operands.
24986 (add<mode>3_compareC_imm): Delete. Merge into ...
24987 (add<mode>3_compareC): ... this. Restructure the comparison to
24988 eliminate the need for zero-extending the operands.
24989 (add<mode>3_carryin): Use LTU for the overflow detection.
24990 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
24991 Reexpress comparison for overflow.
24992 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
24993 (add<mode>3_carryinC): Likewise.
24994 (add<mode>3_carryinV): Use LTU for carry between partials.
24995 * config/aarch64/predicates.md (aarch64_carry_operation): Update
24996 handling of CC_Cmode and add CC_ADCmode.
24997 (aarch64_borrow_operation): Likewise.
24998
24999 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25000
25001 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25002 Remove patternmode.
25003 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25004 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25005 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25006 Remove endianness conversion.
25007
25008 2019-01-16 Martin Liska <mliska@suse.cz>
25009
25010 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25011 for GCC driver.
25012 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25013 a new argument.
25014 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25015 (path_prefix_reset): Move up in the source file.
25016 (find_fortran_preinclude_file): Make complex search for the
25017 fortran header files.
25018
25019 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25020
25021 * godump.c (go_output_typedef): When outputting a typedef, refer
25022 to the underlying type by its name and not its structure.
25023
25024 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25025
25026 PR c++/88795
25027 * tree.c (build_function_type): Assert that arg_types is not
25028 error_mark_node.
25029
25030 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25031
25032 PR inline-asm/52813
25033 * doc/extend.texi: Document that listing the stack pointer in the
25034 clobber list of an asm is a deprecated feature.
25035 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25036 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25037 warning instead of an error for clobbers of the stack pointer.
25038 Add a note explaining why.
25039
25040 2019-01-15 Richard Biener <rguenther@suse.de>
25041
25042 PR debug/88046
25043 * dwarf2out.c (gen_member_die): Do not generate inheritance
25044 DIEs late.
25045
25046 2019-01-15 Richard Biener <rguenther@suse.de>
25047
25048 PR tree-optimization/88855
25049 * tree-if-conv.c (combine_blocks): Collect
25050 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25051
25052 2019-01-15 Tom de Vries <tdevries@suse.de>
25053
25054 PR target/80547
25055 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25056 lhs == NULL_TREE for gang-level reduction.
25057
25058 2019-01-15 Richard Biener <rguenther@suse.de>
25059 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25060
25061 PR ipa/88788
25062 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25063 return true if SSA_NAME is already marked in visited bitmap.
25064 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25065
25066 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25067
25068 PR tree-optimization/88775
25069 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25070 equal == 0 equality pointer comparisons some more if compared in
25071 integral types and either one points to an automatic var and the
25072 other to a global, or we can prove at least one points to the middle
25073 or both point to start or both point to end.
25074
25075 2019-01-14 Andi Kleen <ak@linux.intel.com>
25076
25077 * Makefile.in: Lower autofdo sampling rate by 10x.
25078 * Makefile.tpl: Dito.
25079
25080 2019-01-14 Tom Honermann <tom@honermann.net>
25081
25082 * defaults.h: Define CHAR8_TYPE.
25083
25084 2019-01-14 Martin Sebor <msebor@redhat.com>
25085
25086 PR target/88638
25087 * doc/extend.texi (Darwin Format Checks): Clarify.
25088
25089 2019-01-14 Richard Biener <rguenther@suse.de>
25090
25091 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25092 whether we are in (simplify ...) or (match ...) context.
25093
25094 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25095
25096 PR rtl-optimization/88796
25097 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25098 * cfgexpand.c (stack_protect_prologue): Initialize
25099 crtl->stack_protect_guard_decl.
25100 * function.c (stack_protect_epilogue): Use it instead of calling
25101 targetm.stack_protect_guard again.
25102 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25103 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25104 crtl->stack_protect_guard_decl.
25105 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25106 on the returned MEM_EXPR.
25107
25108 2019-01-12 Tom de Vries <tdevries@suse.de>
25109
25110 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25111 vector length using -fopenacc-dim.
25112
25113 2019-01-12 Tom de Vries <tdevries@suse.de>
25114
25115 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25116 lengths into account.
25117
25118 2019-01-12 Svante Signell <svante.signell@gmail.com>
25119
25120 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25121 (TARGET_CAN_SPLIT_STACK): Define.
25122 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25123
25124 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25125
25126 * params.def (inline-unit-growth): Set to 40.
25127
25128 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25129
25130 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25131
25132 2019-01-12 Tom de Vries <tdevries@suse.de>
25133
25134 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25135 region calling vector-partitionable routine, set default_vector_length
25136 to WARP_SIZE.
25137
25138 2019-01-12 Tom de Vries <tdevries@suse.de>
25139
25140 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25141 variable default_vector_length.
25142
25143 2019-01-12 Tom de Vries <tdevries@suse.de>
25144
25145 PR middle-end/88703
25146 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25147 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25148 dimensions limits.
25149
25150 2019-01-12 Tom de Vries <tdevries@suse.de>
25151
25152 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25153 (nvptx_goacc_validate_dims): Add used parameter.
25154 * doc/tm.texi: Regenerate.
25155 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25156 argument to call to targetm.goacc.validate_dims.
25157 (default_goacc_validate_dims): Add used
25158 parameter.
25159 * target.def (validate_dims): Add used parameter in DEFHOOK.
25160 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25161
25162 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25163
25164 PR middle-end/85956
25165 PR lto/88733
25166 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25167 field.
25168 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25169 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25170 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25171 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25172
25173 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25174
25175 PR rtl-optimization/87305
25176 * lra-assigns.c
25177 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25178 for little endian pseudos used as paradoxical subreg.
25179
25180 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25181
25182 PR tree-optimization/88693
25183 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25184 for STRING_CSTs that don't contain any NUL characters in the first
25185 TREE_STRING_LENGTH bytes.
25186
25187 2019-01-11 Alan Modra <amodra@gmail.com>
25188
25189 PR 88777
25190 PR 88614
25191 * genattrtab.c (min_fn): Don't translate values.
25192 (min_attr_value): Return INT_MAX when the value can't be calculated.
25193 Return minimum among any values that can be calculated.
25194 (max_attr_value): Adjust.
25195
25196 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25197
25198 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25199
25200 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25201
25202 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25203 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25204 (aarch64_return_call_with_max_clobbers): New function.
25205 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25206 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25207 argument.
25208 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25209 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25210 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25211 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25212 * cselib.c (cselib_process_insn): Add argument to
25213 targetm.hard_regno_call_part_clobbered call.
25214 * ira-conflicts.c (ira_build_conflicts): Ditto.
25215 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25216 * lra-constraints.c (inherit_reload_reg): Ditto.
25217 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25218 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25219 argument. Call targetm.return_call_with_max_clobbers.
25220 Add argument to targetm.hard_regno_call_part_clobbered call.
25221 (calls_have_same_clobbers_p): New function.
25222 (process_bb_lives): Add call_insn and last_call_insn variables.
25223 Pass call_insn to check_pseudos_live_through_calls.
25224 Modify if stmt to check targetm.return_call_with_max_clobbers.
25225 Update setting of flush variable.
25226 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25227 to false.
25228 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25229 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25230 targetm.hard_regno_call_part_clobbered call.
25231 * reginfo.c (choose_hard_reg_mode): Ditto.
25232 * regrename.c (check_new_reg_p): Ditto.
25233 * reload.c (find_equiv_reg): Ditto.
25234 * reload1.c (emit_reload_insns): Ditto.
25235 * sched-deps.c (deps_analyze_insn): Ditto.
25236 * sel-sched.c (init_regs_for_mode): Ditto.
25237 (mark_unavailable_hard_regs): Ditto.
25238 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25239 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25240 (return_call_with_max_clobbers): New target function.
25241 * doc/tm.texi: Regenerate.
25242 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25243 * hooks.c (hook_bool_uint_mode_false): Change to
25244 hook_bool_insn_uint_mode_false.
25245 * hooks.h (hook_bool_uint_mode_false): Ditto.
25246
25247 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25248
25249 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25250 (aarch64_remove_extra_call_preserved_regs): New function.
25251 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25252 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25253 * doc/tm.texi: Regenerate.
25254 * final.c (get_call_reg_set_usage): Call new hook.
25255 * target.def (remove_extra_call_preserved_regs): New hook.
25256 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25257 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25258
25259 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25260
25261 PR bootstrap/88714
25262 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25263 inside of pass_combine_1 dump rather than pass_profile_1.
25264
25265 2019-01-11 Tom de Vries <tdevries@suse.de>
25266
25267 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25268 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25269 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25270 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25271 num_workers 16.
25272
25273 2019-01-11 Tom de Vries <tdevries@suse.de>
25274
25275 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25276
25277 2019-01-11 Jan Beulich <jbeulich@suse.com>
25278
25279 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25280 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25281 sse2_cvtsi2sd): Add {l}.
25282 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25283 syntax.
25284
25285 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25286
25287 PR target/88785
25288 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25289 define_expand.
25290 (*float<floatunssuffix>v2div2sf2): New define_insn.
25291 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25292 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25293 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25294 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25295 match_operands with "const0_operand" "C".
25296
25297 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25298
25299 * config/aarch64/aarch64-builtins.c
25300 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25301 (aarch64_init_simd_builtins): ...Here
25302
25303 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25304
25305 PR rtl-optimization/87305
25306 * lra-assigns.c
25307 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25308 allocation for big endian pseudos used as paradoxical subregs and
25309 spill them if it is wrong.
25310 * lra-constraints.c (lra_constraints): Add a comment.
25311
25312 2019-01-10 Richard Biener <rguenther@suse.de>
25313
25314 PR tree-optimization/88792
25315 * tree-ssa-pre.c (get_representative_for): Do not return a
25316 value-number here.
25317
25318 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25319
25320 PR middle-end/84877
25321 PR bootstrap/88450
25322 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25323 (assign_parm_setup_block): Do the argument slot realignment here
25324 instead.
25325
25326 2019-01-10 Stefan Agner <stefan@agner.ch>
25327
25328 PR target/88648
25329 * config/arm/arm.c (arm_option_override_internal): Force
25330 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25331
25332 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25333
25334 PR c/88568
25335 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25336 DECL_EXTERNAL.
25337
25338 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25339
25340 * config/arm/arm-builtins.c
25341 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25342 (MAC_LANE_PAIR_QUALIFIERS): New.
25343 (arm_expand_builtin_args): Use it.
25344 (arm_expand_builtin_1): Likewise.
25345 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25346 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25347 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25348 * config/arm/arm_neon.h:
25349 (vcadd_rot90_f16): New.
25350 (vcaddq_rot90_f16): New.
25351 (vcadd_rot270_f16): New.
25352 (vcaddq_rot270_f16): New.
25353 (vcmla_f16): New.
25354 (vcmlaq_f16): New.
25355 (vcmla_lane_f16): New.
25356 (vcmla_laneq_f16): New.
25357 (vcmlaq_lane_f16): New.
25358 (vcmlaq_laneq_f16): New.
25359 (vcmla_rot90_f16): New.
25360 (vcmlaq_rot90_f16): New.
25361 (vcmla_rot90_lane_f16): New.
25362 (vcmla_rot90_laneq_f16): New.
25363 (vcmlaq_rot90_lane_f16): New.
25364 (vcmlaq_rot90_laneq_f16): New.
25365 (vcmla_rot180_f16): New.
25366 (vcmlaq_rot180_f16): New.
25367 (vcmla_rot180_lane_f16): New.
25368 (vcmla_rot180_laneq_f16): New.
25369 (vcmlaq_rot180_lane_f16): New.
25370 (vcmlaq_rot180_laneq_f16): New.
25371 (vcmla_rot270_f16): New.
25372 (vcmlaq_rot270_f16): New.
25373 (vcmla_rot270_lane_f16): New.
25374 (vcmla_rot270_laneq_f16): New.
25375 (vcmlaq_rot270_lane_f16): New.
25376 (vcmlaq_rot270_laneq_f16): New.
25377 (vcadd_rot90_f32): New.
25378 (vcaddq_rot90_f32): New.
25379 (vcadd_rot270_f32): New.
25380 (vcaddq_rot270_f32): New.
25381 (vcmla_f32): New.
25382 (vcmlaq_f32): New.
25383 (vcmla_lane_f32): New.
25384 (vcmla_laneq_f32): New.
25385 (vcmlaq_lane_f32): New.
25386 (vcmlaq_laneq_f32): New.
25387 (vcmla_rot90_f32): New.
25388 (vcmlaq_rot90_f32): New.
25389 (vcmla_rot90_lane_f32): New.
25390 (vcmla_rot90_laneq_f32): New.
25391 (vcmlaq_rot90_lane_f32): New.
25392 (vcmlaq_rot90_laneq_f32): New.
25393 (vcmla_rot180_f32): New.
25394 (vcmlaq_rot180_f32): New.
25395 (vcmla_rot180_lane_f32): New.
25396 (vcmla_rot180_laneq_f32): New.
25397 (vcmlaq_rot180_lane_f32): New.
25398 (vcmlaq_rot180_laneq_f32): New.
25399 (vcmla_rot270_f32): New.
25400 (vcmlaq_rot270_f32): New.
25401 (vcmla_rot270_lane_f32): New.
25402 (vcmla_rot270_laneq_f32): New.
25403 (vcmlaq_rot270_lane_f32): New.
25404 (vcmlaq_rot270_laneq_f32): New.
25405 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25406 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25407 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25408 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25409 vcmlaq_lane270): New.
25410 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25411 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25412 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25413 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25414 (arm_option_reconfigure_globals): Use them.
25415 * config/arm/iterators.md (VDF, VQ_HSF): New.
25416 (VCADD, VCMLA): New.
25417 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25418 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25419 New.
25420 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25421 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25422
25423 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25424
25425 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25426 Add qualifier_lane_pair_index.
25427 (emit-rtl.h): Include.
25428 (TYPES_QUADOP_LANE_PAIR): New.
25429 (aarch64_simd_expand_args): Use it.
25430 (aarch64_simd_expand_builtin): Likewise.
25431 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25432 New.
25433 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25434 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25435 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25436 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25437 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25438 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25439 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25440 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25441 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25442 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25443 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25444 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25445 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25446 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25447 Add __ARM_FEATURE_COMPLEX.
25448 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25449 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25450 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25451 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25452 fcmlaq_lane270): New.
25453 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25454 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25455 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25456 * config/aarch64/arm_neon.h:
25457 (vcadd_rot90_f16): New.
25458 (vcaddq_rot90_f16): New.
25459 (vcadd_rot270_f16): New.
25460 (vcaddq_rot270_f16): New.
25461 (vcmla_f16): New.
25462 (vcmlaq_f16): New.
25463 (vcmla_lane_f16): New.
25464 (vcmla_laneq_f16): New.
25465 (vcmlaq_lane_f16): New.
25466 (vcmlaq_rot90_lane_f16): New.
25467 (vcmla_rot90_laneq_f16): New.
25468 (vcmla_rot90_lane_f16): New.
25469 (vcmlaq_rot90_f16): New.
25470 (vcmla_rot90_f16): New.
25471 (vcmlaq_laneq_f16): New.
25472 (vcmla_rot180_laneq_f16): New.
25473 (vcmla_rot180_lane_f16): New.
25474 (vcmlaq_rot180_f16): New.
25475 (vcmla_rot180_f16): New.
25476 (vcmlaq_rot90_laneq_f16): New.
25477 (vcmlaq_rot270_laneq_f16): New.
25478 (vcmlaq_rot270_lane_f16): New.
25479 (vcmla_rot270_laneq_f16): New.
25480 (vcmlaq_rot270_f16): New.
25481 (vcmla_rot270_f16): New.
25482 (vcmlaq_rot180_laneq_f16): New.
25483 (vcmlaq_rot180_lane_f16): New.
25484 (vcmla_rot270_lane_f16): New.
25485 (vcadd_rot90_f32): New.
25486 (vcaddq_rot90_f32): New.
25487 (vcaddq_rot90_f64): New.
25488 (vcadd_rot270_f32): New.
25489 (vcaddq_rot270_f32): New.
25490 (vcaddq_rot270_f64): New.
25491 (vcmla_f32): New.
25492 (vcmlaq_f32): New.
25493 (vcmlaq_f64): New.
25494 (vcmla_lane_f32): New.
25495 (vcmla_laneq_f32): New.
25496 (vcmlaq_lane_f32): New.
25497 (vcmlaq_laneq_f32): New.
25498 (vcmla_rot90_f32): New.
25499 (vcmlaq_rot90_f32): New.
25500 (vcmlaq_rot90_f64): New.
25501 (vcmla_rot90_lane_f32): New.
25502 (vcmla_rot90_laneq_f32): New.
25503 (vcmlaq_rot90_lane_f32): New.
25504 (vcmlaq_rot90_laneq_f32): New.
25505 (vcmla_rot180_f32): New.
25506 (vcmlaq_rot180_f32): New.
25507 (vcmlaq_rot180_f64): New.
25508 (vcmla_rot180_lane_f32): New.
25509 (vcmla_rot180_laneq_f32): New.
25510 (vcmlaq_rot180_lane_f32): New.
25511 (vcmlaq_rot180_laneq_f32): New.
25512 (vcmla_rot270_f32): New.
25513 (vcmlaq_rot270_f32): New.
25514 (vcmlaq_rot270_f64): New.
25515 (vcmla_rot270_lane_f32): New.
25516 (vcmla_rot270_laneq_f32): New.
25517 (vcmlaq_rot270_lane_f32): New.
25518 (vcmlaq_rot270_laneq_f32): New.
25519 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25520 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25521 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25522 (FCADD, FCMLA): New.
25523 (rot): New.
25524 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25525
25526 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25527
25528 PR other/16615
25529
25530 * config/pa/pa.c: Change "can not" to "cannot".
25531 * gimple-ssa-evrp-analyze.c: Likewise.
25532 * ipa-icf.c: Likewise.
25533 * ipa-polymorphic-call.c: Likewise.
25534 * ipa-pure-const.c: Likewise.
25535 * lra-constraints.c: Likewise.
25536 * lra-remat.c: Likewise.
25537 * reload1.c: Likewise.
25538 * reorg.c: Likewise.
25539 * tree-ssa-uninit.c: Likewise.
25540
25541 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25542
25543 PR other/16615
25544
25545 * Makefile.in: Mechanically replace "can not" with "cannot".
25546 * alias.c: Likewise.
25547 * builtins.c: Likewise.
25548 * calls.c: Likewise.
25549 * cgraph.c: Likewise.
25550 * cgraph.h: Likewise.
25551 * cgraphclones.c: Likewise.
25552 * cgraphunit.c: Likewise.
25553 * combine-stack-adj.c: Likewise.
25554 * combine.c: Likewise.
25555 * common/config/i386/i386-common.c: Likewise.
25556 * config/aarch64/aarch64.c: Likewise.
25557 * config/alpha/sync.md: Likewise.
25558 * config/arc/arc.c: Likewise.
25559 * config/arc/predicates.md: Likewise.
25560 * config/arm/arm-c.c: Likewise.
25561 * config/arm/arm.c: Likewise.
25562 * config/arm/arm.h: Likewise.
25563 * config/arm/arm.md: Likewise.
25564 * config/arm/cortex-r4f.md: Likewise.
25565 * config/csky/csky.c: Likewise.
25566 * config/csky/csky.h: Likewise.
25567 * config/darwin-f.c: Likewise.
25568 * config/epiphany/epiphany.md: Likewise.
25569 * config/i386/i386.c: Likewise.
25570 * config/i386/sol2.h: Likewise.
25571 * config/m68k/m68k.c: Likewise.
25572 * config/mcore/mcore.h: Likewise.
25573 * config/microblaze/microblaze.md: Likewise.
25574 * config/mips/20kc.md: Likewise.
25575 * config/mips/sb1.md: Likewise.
25576 * config/nds32/nds32.c: Likewise.
25577 * config/nds32/predicates.md: Likewise.
25578 * config/pa/pa.c: Likewise.
25579 * config/rs6000/e300c2c3.md: Likewise.
25580 * config/rs6000/rs6000.c: Likewise.
25581 * config/s390/s390.h: Likewise.
25582 * config/sh/sh.c: Likewise.
25583 * config/sh/sh.md: Likewise.
25584 * config/spu/vmx2spu.h: Likewise.
25585 * cprop.c: Likewise.
25586 * dbxout.c: Likewise.
25587 * df-scan.c: Likewise.
25588 * doc/cfg.texi: Likewise.
25589 * doc/extend.texi: Likewise.
25590 * doc/fragments.texi: Likewise.
25591 * doc/gty.texi: Likewise.
25592 * doc/invoke.texi: Likewise.
25593 * doc/lto.texi: Likewise.
25594 * doc/md.texi: Likewise.
25595 * doc/objc.texi: Likewise.
25596 * doc/rtl.texi: Likewise.
25597 * doc/tm.texi: Likewise.
25598 * dse.c: Likewise.
25599 * emit-rtl.c: Likewise.
25600 * emit-rtl.h: Likewise.
25601 * except.c: Likewise.
25602 * expmed.c: Likewise.
25603 * expr.c: Likewise.
25604 * fold-const.c: Likewise.
25605 * genautomata.c: Likewise.
25606 * gimple-fold.c: Likewise.
25607 * hard-reg-set.h: Likewise.
25608 * ifcvt.c: Likewise.
25609 * ipa-comdats.c: Likewise.
25610 * ipa-cp.c: Likewise.
25611 * ipa-devirt.c: Likewise.
25612 * ipa-fnsummary.c: Likewise.
25613 * ipa-icf.c: Likewise.
25614 * ipa-inline-transform.c: Likewise.
25615 * ipa-inline.c: Likewise.
25616 * ipa-polymorphic-call.c: Likewise.
25617 * ipa-profile.c: Likewise.
25618 * ipa-prop.c: Likewise.
25619 * ipa-pure-const.c: Likewise.
25620 * ipa-reference.c: Likewise.
25621 * ipa-split.c: Likewise.
25622 * ipa-visibility.c: Likewise.
25623 * ipa.c: Likewise.
25624 * ira-build.c: Likewise.
25625 * ira-color.c: Likewise.
25626 * ira-conflicts.c: Likewise.
25627 * ira-costs.c: Likewise.
25628 * ira-int.h: Likewise.
25629 * ira-lives.c: Likewise.
25630 * ira.c: Likewise.
25631 * ira.h: Likewise.
25632 * loop-invariant.c: Likewise.
25633 * loop-unroll.c: Likewise.
25634 * lower-subreg.c: Likewise.
25635 * lra-assigns.c: Likewise.
25636 * lra-constraints.c: Likewise.
25637 * lra-eliminations.c: Likewise.
25638 * lra-lives.c: Likewise.
25639 * lra-remat.c: Likewise.
25640 * lra-spills.c: Likewise.
25641 * lra.c: Likewise.
25642 * lto-cgraph.c: Likewise.
25643 * lto-streamer-out.c: Likewise.
25644 * postreload-gcse.c: Likewise.
25645 * predict.c: Likewise.
25646 * profile-count.h: Likewise.
25647 * profile.c: Likewise.
25648 * recog.c: Likewise.
25649 * ree.c: Likewise.
25650 * reload.c: Likewise.
25651 * reload1.c: Likewise.
25652 * reorg.c: Likewise.
25653 * resource.c: Likewise.
25654 * rtl.def: Likewise.
25655 * rtl.h: Likewise.
25656 * rtlanal.c: Likewise.
25657 * sched-deps.c: Likewise.
25658 * sched-ebb.c: Likewise.
25659 * sched-rgn.c: Likewise.
25660 * sel-sched-ir.c: Likewise.
25661 * sel-sched.c: Likewise.
25662 * shrink-wrap.c: Likewise.
25663 * simplify-rtx.c: Likewise.
25664 * symtab.c: Likewise.
25665 * target.def: Likewise.
25666 * toplev.c: Likewise.
25667 * tree-call-cdce.c: Likewise.
25668 * tree-cfg.c: Likewise.
25669 * tree-complex.c: Likewise.
25670 * tree-core.h: Likewise.
25671 * tree-eh.c: Likewise.
25672 * tree-inline.c: Likewise.
25673 * tree-loop-distribution.c: Likewise.
25674 * tree-nrv.c: Likewise.
25675 * tree-profile.c: Likewise.
25676 * tree-sra.c: Likewise.
25677 * tree-ssa-alias.c: Likewise.
25678 * tree-ssa-dce.c: Likewise.
25679 * tree-ssa-dom.c: Likewise.
25680 * tree-ssa-forwprop.c: Likewise.
25681 * tree-ssa-loop-im.c: Likewise.
25682 * tree-ssa-loop-ivcanon.c: Likewise.
25683 * tree-ssa-loop-ivopts.c: Likewise.
25684 * tree-ssa-loop-niter.c: Likewise.
25685 * tree-ssa-phionlycprop.c: Likewise.
25686 * tree-ssa-phiopt.c: Likewise.
25687 * tree-ssa-propagate.c: Likewise.
25688 * tree-ssa-threadedge.c: Likewise.
25689 * tree-ssa-threadupdate.c: Likewise.
25690 * tree-ssa-uninit.c: Likewise.
25691 * tree-ssanames.c: Likewise.
25692 * tree-streamer-out.c: Likewise.
25693 * tree.c: Likewise.
25694 * tree.h: Likewise.
25695 * vr-values.c: Likewise.
25696
25697 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25698
25699 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25700 (ix86_split_xorsign): Ditto.
25701 * config/i386/i386.c (ix86_expand_xorsign): New function.
25702 (ix86_split_xorsign): Ditto.
25703 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25704 (xorsign<mode>3): New expander.
25705 (xorsign<mode>3_1): New insn_and_split pattern.
25706 * config/i386/sse.md (xorsign<mode>3): New expander.
25707
25708 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25709
25710 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25711 (*tablejump_sp64): Likewise.
25712 (*tablejump<P:mode>): ...this.
25713 (*call_address_sp32): Merge into...
25714 (*call_address_sp64): Likewise.
25715 (*call_address<P:mode>): ...this.
25716 (*call_symbolic_sp32): Merge into...
25717 (*call_symbolic_sp64): Likewise.
25718 (*call_symbolic<P:mode>): ...this.
25719 (call_value): Remove constraint and add predicate.
25720 (*call_value_address_sp32): Merge into...
25721 (*call_value_address_sp64): Likewise.
25722 (*call_value_address<P:mode>): ...this.
25723 (*call_value_symbolic_sp32): Merge into...
25724 (*call_value_symbolic_sp64): Likewise.
25725 (*call_value_symbolic<P:mode>): ...this.
25726 (*sibcall_symbolic_sp32): Merge into...
25727 (*sibcall_symbolic_sp64): Likewise.
25728 (*sibcall_symbolic<P:mode>): ...this.
25729 (sibcall_value): Remove constraint and add predicate.
25730 (*sibcall_value_symbolic_sp32): Merge into...
25731 (*sibcall_value_symbolic_sp64): Likewise.
25732 (*sibcall_value_symbolic<P:mode>): ...this.
25733 (window_save): Minor tweak.
25734 (*branch_sp32): Merge into...
25735 (*branch_sp64): Likewise.
25736 (*branch<P:mode>): ...this.
25737
25738 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25739 James Clarke <jrtc27@jrtc27.com>
25740
25741 PR target/84010
25742 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25743 consistently in TLS address generation and adjust code to the renaming
25744 of patterns. Mark calls to __tls_get_addr as const.
25745 * config/sparc/sparc.md (tgd_hi22): Turn into...
25746 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25747 (tgd_lo10): Turn into...
25748 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25749 (tgd_add32): Merge into...
25750 (tgd_add64): Likewise.
25751 (tgd_add<P:mode>): ...this and use Pmode throughout.
25752 (tldm_hi22): Turn into...
25753 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25754 (tldm_lo10): Turn into...
25755 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25756 (tldm_add32): Merge into...
25757 (tldm_add64): Likewise.
25758 (tldm_add<P:mode>): ...this and use Pmode throughout.
25759 (tldm_call32): Merge into...
25760 (tldm_call64): Likewise.
25761 (tldm_call<P:mode>): ...this and use Pmode throughout.
25762 (tldo_hix22): Turn into...
25763 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25764 (tldo_lox10): Turn into...
25765 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25766 (tldo_add32): Merge into...
25767 (tldo_add64): Likewise.
25768 (tldo_add<P:mode>): ...this and use Pmode throughout.
25769 (tie_hi22): Turn into...
25770 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25771 (tie_lo10): Turn into...
25772 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25773 (tie_ld64): Use DImode throughout.
25774 (tie_add32): Merge into...
25775 (tie_add64): Likewise.
25776 (tie_add<P:mode>): ...this and use Pmode throughout.
25777 (tle_hix22_sp32): Merge into...
25778 (tle_hix22_sp64): Likewise.
25779 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25780 (tle_lox22_sp32): Merge into...
25781 (tle_lox22_sp64): Likewise.
25782 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25783 (*tldo_ldub_sp32): Merge into...
25784 (*tldo_ldub_sp64): Likewise.
25785 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25786 (*tldo_ldub1_sp32): Merge into...
25787 (*tldo_ldub1_sp64): Likewise.
25788 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25789 (*tldo_ldub2_sp32): Merge into...
25790 (*tldo_ldub2_sp64): Likewise.
25791 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25792 (*tldo_ldsb1_sp32): Merge into...
25793 (*tldo_ldsb1_sp64): Likewise.
25794 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25795 (*tldo_ldsb2_sp32): Merge into...
25796 (*tldo_ldsb2_sp64): Likewise.
25797 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25798 (*tldo_ldub3_sp64): Use DImode throughout.
25799 (*tldo_ldsb3_sp64): Likewise.
25800 (*tldo_lduh_sp32): Merge into...
25801 (*tldo_lduh_sp64): Likewise.
25802 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25803 (*tldo_lduh1_sp32): Merge into...
25804 (*tldo_lduh1_sp64): Likewise.
25805 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25806 (*tldo_ldsh1_sp32): Merge into...
25807 (*tldo_ldsh1_sp64): Likewise.
25808 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25809 (*tldo_lduh2_sp64): Use DImode throughout.
25810 (*tldo_ldsh2_sp64): Likewise.
25811 (*tldo_lduw_sp32): Merge into...
25812 (*tldo_lduw_sp64): Likewise.
25813 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25814 (*tldo_lduw1_sp64): Use DImode throughout.
25815 (*tldo_ldsw1_sp64): Likewise.
25816 (*tldo_ldx_sp64): Likewise.
25817 (*tldo_stb_sp32): Merge into...
25818 (*tldo_stb_sp64): Likewise.
25819 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25820 (*tldo_sth_sp32): Merge into...
25821 (*tldo_sth_sp64): Likewise.
25822 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25823 (*tldo_stw_sp32): Merge into...
25824 (*tldo_stw_sp64): Likewise.
25825 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25826 (*tldo_stx_sp64): Use DImode throughout.
25827
25828 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25829
25830 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25831 check configure option to set BTI and Return Address Signing.
25832 * configure.ac: Add --enable-standard-branch-protection and
25833 --disable-standard-branch-protection.
25834 * configure: Regenerated.
25835 * doc/install.texi: Document the same.
25836
25837 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25838 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25839
25840 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25841 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25842 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25843 if bti is enabled.
25844 * config/aarch64/aarch64-bti-insert.c: New file.
25845 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25846 pass.
25847 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25848 new bti pass.
25849 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25850 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25851 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25852 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25853
25854 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25855
25856 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25857 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25858 Disable bti for -mbranch-protection=none.
25859 (aarch64_handle_standard_branch_protection): Enable bti for
25860 -mbranch-protection=standard.
25861 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25862 -mbranch-protection.
25863 (aarch64_bti_enabled): Check if bti is enabled.
25864 * config/aarch64/aarch64.opt: Declare target variable.
25865 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25866
25867 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25868
25869 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
25870 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
25871 (aarch64_expand_epilogue): Likewise.
25872 (aarch64_output_mi_thunk): Likewise.
25873 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
25874 TAILCALL_ADDR_REGS to x16 and x17.
25875 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
25876
25877 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25878
25879 * config/aarch64/aarch64-option-extensions.def: Define
25880 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
25881 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
25882 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
25883 (AARCH64_FL_PREDRES): New.
25884 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
25885 AARCH64_FL_PREDRES by default.
25886 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
25887
25888 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25889
25890 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
25891 ARMv8.5-A.
25892 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
25893 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
25894 * doc/invoke.texi: Document ARMv8.5-A.
25895
25896 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25897
25898 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
25899 (xorsign<mode>3): Likewise.
25900
25901 2019-01-09 Jelinek <jakub@redhat.com>
25902
25903 PR middle-end/88758
25904 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
25905 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
25906
25907 PR rtl-optimization/88331
25908 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
25909 not currently_expanding_to_rtl.
25910
25911 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25912
25913 * doc/invoke.texi (-Os): Remove trailing spaces.
25914 (-finline-functions): Remove reference to -O2.
25915
25916 2019-01-08 Jakub Jelinek <jakub@redhat.com>
25917
25918 PR rtl-optimization/79593
25919 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
25920
25921 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
25922 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
25923
25924 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
25925
25926 PR bootstrap/88721
25927 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
25928 to -1 on entry.
25929
25930 PR debug/88723
25931 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
25932 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
25933
25934 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
25935
25936 PR target/88717
25937 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
25938 ix86_avx_u128_mode_entry.
25939
25940 2019-01-08 Martin Liska <mliska@suse.cz>
25941
25942 PR tree-optimization/88753
25943 * tree-switch-conversion.c (switch_conversion::build_one_array):
25944 Come up with local variable constructor. Convert first to
25945 type of constructor values.
25946
25947 2019-01-08 Richard Biener <rguenther@suse.de>
25948
25949 PR tree-optimization/86554
25950 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
25951 rpo_avail): Move earlier.
25952 (visit_nary_op): When value-numbering to expressions
25953 with different overflow behavior make sure there's an
25954 available expression on the path.
25955
25956 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
25957
25958 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
25959 aarch64_parse_branch_protection,
25960 struct aarch64_branch_protect_type,
25961 aarch64_handle_no_branch_protection,
25962 aarch64_handle_standard_branch_protection,
25963 aarch64_validate_mbranch_protection,
25964 aarch64_handle_pac_ret_protection,
25965 aarch64_handle_attr_branch_protection,
25966 accepted_branch_protection_string,
25967 aarch64_pac_ret_subtypes,
25968 aarch64_branch_protect_types,
25969 aarch64_handle_pac_ret_leaf): Define.
25970 (aarch64_override_options_after_change_1, aarch64_override_options):
25971 Add check for accepted_branch_protection_string.
25972 (aarch64_option_save): Save accepted_branch_protection_string.
25973 (aarch64_option_restore): Save accepted_branch_protection_string.
25974 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
25975 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
25976 msign-return-address.
25977 * doc/invoke.texi: Add mbranch-protection.
25978
25979 2019-01-08 Alan Modra <amodra@gmail.com>
25980
25981 PR target/88614
25982 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
25983 Delete "unknownp" parameter. Adjust callers. Handle
25984 CONST_INT, PLUS, MINUS, and MULT.
25985 (attr_value_aligned): Renamed from or_attr_value.
25986 (min_attr_value): Return INT_MIN for unhandled rtl case..
25987 (min_fn): ..and translate to INT_MAX here.
25988 (write_length_unit_log): Modify to cope without "unknown".
25989 (write_attr_value): Handle IF_THEN_ELSE.
25990
25991 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25992
25993 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
25994 optimization for masked stores.
25995
25996 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
25997
25998 PR middle-end/88567
25999 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26000 output vector directly to duplicate_and_interleave instead of
26001 going through a temporary. Postpone insertion of ctor_seq to
26002 the end of the loop.
26003
26004 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26005
26006 PR target/86891
26007 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26008 unsigned_p. Handle signed and unsigned overflow correction as
26009 required.
26010 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26011 prototype.
26012 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26013 for operand 2.
26014 (add<mode>3_compareV_imm): Make this callable for expanding.
26015 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26016 aarch64_plus_operand for operand 2.
26017 (subv<GPI:mode>_insn): New insn pattern.
26018 (subv<GPI:mode>_imm): Likewise.
26019 (negv<GPI:mode>3): New expand pattern.
26020 (negv<GPI:mode>_insn): New insn pattern.
26021 (negv<GPI:mode>_cmp_only): Likewise.
26022 (cmpv<GPI:mode>_insn): Likewise.
26023 (subvti4): Use register_operand for operand 1. Update call to
26024 aarch64_expand_subvti.
26025 (usubvti4): Likewise.
26026 (negvti3): New expand pattern.
26027 (negdi_carryout): New insn pattern.
26028 (negvdi_carryinV): New insn pattern.
26029 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26030 version the named version.
26031 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26032 operands.
26033 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26034 patterns.
26035 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26036 patterns.
26037 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26038 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26039 (sub<mode>3_carryinCV): Delete.
26040 (sub<GPI:mode>3_carryinV): New expand pattern.
26041 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26042
26043 2019-01-07 Richard Biener <rguenther@suse.de>
26044
26045 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26046 of tree_operand_hash.
26047
26048 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26049
26050 PR tree-optimization/88598
26051 * tree.h (single_nonzero_element): Declare.
26052 * tree.c (single_nonzero_element): New function.
26053 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26054 if I is the only nonzero element of CST.
26055
26056 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26057
26058 PR tree-optimization/88598
26059 * tree.h (initializer_each_zero_or_onep): Declare.
26060 * tree.c (initializer_each_zero_or_onep): New function.
26061 (signed_or_unsigned_type_for): Handle float types too.
26062 (unsigned_type_for, signed_type_for): Update comments accordingly.
26063 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26064 x & { 0 or -1, 0 or -1, ... }.
26065
26066 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26067
26068 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26069 with x86_64-pc-linux-gnu.
26070
26071 2019-01-07 Tom de Vries <tdevries@suse.de>
26072
26073 PR target/85486
26074 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26075 function.
26076 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26077 routines.
26078
26079 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26080
26081 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26082 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26083 TARGET_AVX512F as condition.
26084
26085 PR debug/88723
26086 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26087 const_not_ok_for_debug_p target hook.
26088 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26089 on UNSPEC and subexpressions thereof if all subexpressions of the
26090 UNSPEC are CONSTANT_P.
26091
26092 PR tree-optimization/88676
26093 * tree-ssa-phiopt.c (two_value_replacement): New function.
26094 (tree_ssa_phiopt_worker): Call it.
26095
26096 PR sanitizer/88619
26097 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26098 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26099
26100 PR c++/85052
26101 * tree-vect-generic.c: Include insn-config.h and recog.h.
26102 (expand_vector_piecewise): Add defaulted ret_type argument,
26103 if non-NULL, use that in preference to type for the result type.
26104 (expand_vector_parallel): Formatting fix.
26105 (do_vec_conversion, do_vec_narrowing_conversion,
26106 expand_vector_conversion): New functions.
26107 (expand_vector_operations_1): Call expand_vector_conversion
26108 for VEC_CONVERT ifn calls.
26109 * internal-fn.def (VEC_CONVERT): New internal function.
26110 * internal-fn.c (expand_VEC_CONVERT): New function.
26111 * fold-const-call.c (fold_const_vec_convert): New function.
26112 (fold_const_call): Use it for CFN_VEC_CONVERT.
26113 * doc/extend.texi (__builtin_convertvector): Document.
26114
26115 2019-01-07 Tom de Vries <tdevries@suse.de>
26116
26117 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26118 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26119 vector_red_partition, vector_red_sym): New global variables.
26120 (nvptx_option_override): Initialize vector_red_sym.
26121 (nvptx_declare_function_name): Restore red_partition register.
26122 (nvptx_file_end): Emit code to declare the vector reduction variables.
26123 (nvptx_output_red_partition): New function.
26124 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26125 large vector reductions.
26126 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26127 (nvptx_init_builtins): Add VECTOR_ADDR.
26128 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26129 Handle nvptx_expand_shared_addr.
26130 (nvptx_get_shared_red_addr): Add vector argument and handle large
26131 vectors.
26132 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26133 large vectors.
26134 (nvptx_goacc_reduction_init): Likewise.
26135 (nvptx_goacc_reduction_fini): Likewise.
26136 (nvptx_goacc_reduction_teardown): Likewise.
26137 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26138 init,fini,teardown}.
26139 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26140 (nvptx_set_current_function): Init vector_red_partition.
26141 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26142 (nvptx_red_partition): New insn.
26143 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26144
26145 2019-01-07 Tom de Vries <tdevries@suse.de>
26146
26147 PR target/85381
26148 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26149 empty loops.
26150
26151 2019-01-07 Tom de Vries <tdevries@suse.de>
26152
26153 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26154 (nvptx_option_override): Init oacc_bcast_partition.
26155 (nvptx_init_oacc_workers): New function.
26156 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26157 (nvptx_needs_shared_bcast): New function.
26158 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26159 to propagate state.
26160 (nvptx_shared_propagate): Initialize vector bcast partition and
26161 synchronization state.
26162 (nvptx_single): Generalize to enable vectors to use shared-memory
26163 to propagate state.
26164 (nvptx_process_pars): Likewise.
26165 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26166 * config/nvptx/nvptx.h (struct machine_function): Add
26167 bcast_partition and sync_bar members.
26168
26169 2019-01-07 Tom de Vries <tdevries@suse.de>
26170
26171 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26172 (nvptx_apply_dim_limits): New function.
26173 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26174 PTX_WARP_SIZE.
26175
26176 2019-01-07 Tom de Vries <tdevries@suse.de>
26177
26178 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26179 as late as possible.
26180
26181 2019-01-07 Tom de Vries <tdevries@suse.de>
26182
26183 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26184 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26185 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26186 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26187 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26188
26189 2019-01-07 Tom de Vries <tdevries@suse.de>
26190
26191 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26192
26193 2019-01-07 Tom de Vries <tdevries@suse.de>
26194
26195 * omp-offload.c (oacc_get_min_dim): New function.
26196 * omp-offload.h (oacc_get_min_dim): Declare.
26197
26198 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26199
26200 PR target/88521
26201 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26202 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26203
26204 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26205
26206 PR tree-opt/86020
26207 Revert:
26208 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26209
26210 * ipa-inline.c (edge_badness): Use inlined_time instead of
26211 inline_summaries->get.
26212
26213 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26214
26215 * opts.c (enable_fdo_optimizations): Enable
26216 version-loops-for-strides, loop-interchange, unrol-and-jam
26217 and tree-loop-distribution.
26218 * invoke.texi: Document newly enabled options.
26219
26220 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26221
26222 * doc/invoke.texi (max-inline-insns-small): New parameters.
26223 * ipa-inline.c (want_early_inline_function_p): simplify.
26224 (want_inline_small_function_p): Fix pasto from previous patch;
26225 use max-inline-insns-small bound.
26226 * params.def (max-inline-insns-small): New param.
26227 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26228 variables correctly.
26229
26230 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26231
26232 * doc/invoke.texi: Document max-inline-insns-size,
26233 uninlined-function-insns, uninlined-function-time,
26234 uninlined-thunk-insns and uninlined-thunk-time.
26235 * params.def: Add max-inline-insns-size,
26236 uninlined-function-insns, uninlined-function-time,
26237 uninlined-thunk-insns and uninlined-thunk-time.
26238 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26239 new parameters.
26240 * ipa-inline.c (can_inline_edge_by_limits_p,
26241 want_inline_small_function_p): Use new parameters.
26242
26243 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26244
26245 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26246
26247 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26248
26249 PR middle-end/82564
26250 PR target/88620
26251 * expr.c (expand_assignment): For calls returning VLA structures
26252 if to_rtx is not a MEM, force it into a stack temporary.
26253
26254 PR debug/88635
26255 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26256 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26257 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26258 subexpressions of both operands.
26259 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26260 subrtxes are CONSTANT_P.
26261 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26262 2018-11-09 changes.
26263
26264 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26265
26266 * params.def (hot-bb-count-ws-permille): Set to 990.
26267
26268 2019-01-04 Martin Sebor <msebor@redhat.com>
26269
26270 PR c/88546
26271 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26272 leaf.
26273
26274 2019-01-04 Martin Sebor <msebor@redhat.com>
26275
26276 PR c/88363
26277 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26278
26279 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26280
26281 * gdbinit.in: Turn off pagination for the skip commands, restore
26282 it to previous state afterwards.
26283
26284 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26285
26286 PR target/88594
26287 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26288 of GET_MODE (opN) as modes of the libcall arguments.
26289
26290 2019-01-04 Jan Beulich <jbeulich@suse.com>
26291
26292 * config/i386/sse.md
26293 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26294 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26295 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26296 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26297 avx512f_vmcmp<mode>3<round_saeonly_name>,
26298 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26299 avx512f_maskcmp<mode>3,
26300 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26301 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26302 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26303 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26304 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26305 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26306 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26307 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26308 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26309 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26310 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26311 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26312 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26313 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26314 avx512cd_maskb_vec_dup<mode>,
26315 avx512cd_maskw_vec_dup<mode>,
26316 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26317 avx512dq_vmfpclass<mode>,
26318 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26319 instead of =Yk.
26320
26321 2019-01-03 Martin Sebor <msebor@redhat.com>
26322
26323 PR tree-optimization/88659
26324 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26325
26326 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26327
26328 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26329 unaligned vsx and avoid lxvd2x/stxvd2x.
26330 (gen_lvx_v4si_move): New function.
26331
26332 2019-01-03 Tom de Vries <tdevries@suse.de>
26333
26334 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26335 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26336 function.
26337 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26338
26339 2019-01-03 Tom de Vries <tdevries@suse.de>
26340
26341 * config/nvptx/nvptx.c (struct offload_attrs): New.
26342 (populate_offload_attrs): New function. Factor mask extraction out of
26343 nvptx_reorg. Add extraction of dimensions.
26344 (nvptx_reorg): Use populate_offload_attrs.
26345
26346 2019-01-03 Tom de Vries <tdevries@suse.de>
26347
26348 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26349 cases for oacc_min_dims_p and routine_p. Add asserts for
26350 oacc_default_dims_p and offload_region_p.
26351
26352 2019-01-03 Tom de Vries <tdevries@suse.de>
26353
26354 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26355 factored out of ...
26356 (nvptx_goacc_validate_dims): ... here.
26357
26358 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26359
26360 PR tree-optimization/85574
26361 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26362 structure.
26363 (struct ssa_equip_hash_traits): Declare.
26364 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26365
26366 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26367
26368 PR debug/88644
26369 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26370 change it to qualified_type.
26371
26372 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26373
26374 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26375 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26376
26377 2019-01-02 Martin Sebor <msebor@redhat.com>
26378 Jeff Law <law@redhat.com>
26379
26380 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26381 (get_range_strlen_tree): Update appropriately.
26382 (get_range_strlen)
26383 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26384
26385 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26386 rather than set_range_info.
26387 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26388 maybe_set_strlen_range. Handle potentially boundary crossing
26389 cases more conservatively.
26390 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26391 Call set_strlen_range.
26392 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26393
26394 PR middle-end/88663
26395 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26396 need the flexp argument.
26397 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26398 from calls to get_range_strlen. Update comments. Just update
26399 VAL for an unterminated const char array and let the reset of the
26400 code handle it normally. No longer try to set *flexp. Adjust
26401 return value.
26402 (get_range_strlen): Update for the new get_range_strlen API.
26403 (get_maxval_strlen): Similarly.
26404 (gimple_fold_builtin_strlen): Handle update meaning of return value
26405 from get_range_strlen.
26406 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26407 get_range_strlen API.
26408
26409 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26410
26411 PR lto/88130
26412 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26413 false at WPA time when body was removed.
26414
26415 2019-01-02 Martin Liska <mliska@suse.cz>
26416
26417 PR tree-optimization/88650
26418 * predict.c (set_even_probabilities): Calculate probability
26419 remainer only when really used.
26420
26421 2019-01-02 Richard Biener <rguenther@suse.de>
26422
26423 PR middle-end/88651
26424 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26425 widest_ints when mangling max_stmt_execution results.
26426
26427 2019-01-02 Richard Biener <rguenther@suse.de>
26428
26429 PR tree-optimization/88621
26430 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26431 bitfields when canoncalizing.
26432
26433 2019-01-02 Richard Biener <rguenther@suse.de>
26434
26435 PR target/87545
26436 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26437 cost of cheap SSE instruction.
26438
26439 2019-01-02 Richard Biener <rguenther@suse.de>
26440
26441 PR ipa/85574
26442 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26443 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26444 function.
26445 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26446 set after UIDs before splitting them.
26447
26448 2019-01-01 Martin Sebor <msebor@redhat.com>
26449 Jeff Law <law@redhat.com>
26450
26451 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26452 length is optimistic. If it is, then arrange to compute the
26453 conservative length as well.
26454
26455 * gimple-fold.h (get_range_strlen): Update prototype.
26456 * builtins.c (check_access): Update call to get_range_strlen to use
26457 c_strlen_data pointer. Change various variable accesses to instead
26458 pull data from the c_strlen_data structure.
26459 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26460 * calls.c (maybe_warn_nonstring_arg): Likewise.
26461 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26462 minimum length if maximum lengh is unknown.
26463 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26464 that used c_strlen, it's no longer needed. Restructure slightly.
26465 (format_string): Set unlikely range appropriately.
26466 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26467 formatting issues.
26468 (get_range_strlen): Accept c_strlen_data pointer for external
26469 call sites as well. Pass through to call to internal get_range_strlen.
26470 Adjust minlen, maxlen and maxbound as needed.
26471 (get_maxval_strlen): Update comments.
26472 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26473 to use c_strlen_data pointer. Change variable accesses to instead
26474 use c_strlen_data data members.
26475
26476 * gimple-fold.c (get_range_strlen): Update prototype.
26477 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26478 local variables. Use pdata to return information to caller.
26479 Update calls to get_range_strlen. Update pdata->maxbound.
26480 (get_range_strlen -- static version): Similarly.
26481 (get_range_strlen -- extern version): Update for internal
26482 get_range_strlen API change. Convert to external data format.
26483 (get_maxval_strlen): Similarly.
26484
26485 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26486
26487 * coverage.c (get_coverage_counts): Use current_function_decl.
26488 * profile.c (read_thunk_profile): New function.
26489 (branch_prob): Add THUNK parameter.
26490 * tree-profile.c (tree_profiling): Handle thunks.
26491 * value-prof.c (init_node_map): Handle thunks.
26492 * value-prof.h (branch_prob): Upate prototype.
26493 (read_thunk_profile): Declare.
26494
26495 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26496
26497 Update copyright years.
26498
26499 * gcc.c (process_command): Update copyright notice dates.
26500 * gcov-dump.c (print_version): Ditto.
26501 * gcov.c (print_version): Ditto.
26502 * gcov-tool.c (print_version): Ditto.
26503 * gengtype.c (create_file): Ditto.
26504 * doc/cpp.texi: Bump @copying's copyright year.
26505 * doc/cppinternals.texi: Ditto.
26506 * doc/gcc.texi: Ditto.
26507 * doc/gccint.texi: Ditto.
26508 * doc/gcov.texi: Ditto.
26509 * doc/install.texi: Ditto.
26510 * doc/invoke.texi: Ditto.
26511 \f
26512 Copyright (C) 2019 Free Software Foundation, Inc.
26513
26514 Copying and distribution of this file, with or without modification,
26515 are permitted in any medium without royalty provided the copyright
26516 notice and this notice are preserved.