[PATCH] teach gengtype about 'mutable'
[gcc.git] / gcc / ChangeLog
1 2019-10-13 Nathan Sidwell <nathan@acm.org>
2
3 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
4
5 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6
7 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8 c99_runtime.
9
10 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
11
12 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
13 so non-virutal are before virutals.
14 (output_function): Avoid body modifications.
15
16 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
17
18 * config/pa/pa.c (pa_output_call): Load descriptor address to register
19 %r22. Load function address before global pointer.
20 (pa_attr_length_indirect_call): Adjust length of inline versions of
21 $$dyncall.
22 (pa_output_indirect_call): Remove fast inline version of $$dyncall
23 before normal cases. Update inline $$dyncall sequences to preserve
24 function descriptor address in register %r22.
25 (TRAMPOLINE_CODE_SIZE): Adjust.
26 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
27 register %r22 contains trampoline address.
28 (pa_trampoline_init): Adjust offsets.
29 (pa_trampoline_adjust_address): Likewise.
30 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
31
32 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
33
34 PR target/67183
35 * config/darwin.c (machopic_indirection): New field to flag
36 non-lazy-symbol-pointers in the data section.
37 (machopic_indirection_name): Compute if an indirection should
38 appear in the data section.
39 (machopic_output_data_section_indirection): New callback split
40 from machopic_output_indirection.
41 (machopic_output_stub_indirection): Likewise.
42 (machopic_output_indirection): Retain the code for non-lazy
43 symbol pointers in their regular section.
44 (machopic_finish): Use the new callbacks to order the indirection
45 output.
46
47 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
48
49 * config/darwin-protos.h (machopic_finish): Delete.
50 * config/darwin.c (machopic_finish): Make static.
51
52 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
53
54 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
55 sections when building kernel extension code.
56
57 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
58
59 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
60 later standard."
61
62 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
63
64 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
65 from warning.
66
67 2019-10-12 Jakub Jelinek <jakub@redhat.com>
68
69 PR middle-end/92063
70 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
71 <case VEC_COND_EXPR>: Return false with *handled = false.
72 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
73 recursing on the first operand.
74 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
75 instead of tree_could_trap_p.
76 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
77
78 2019-10-11 Jim Wilson <jimw@sifive.com>
79
80 PR rtl-optimization/91860
81 * combine.c (subst): If new_rtx is a constant, also check for
82 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
83
84 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
85
86 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
87 INTVAL when calling store_bit_field.
88
89 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
90
91 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
92 size.
93
94 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
95
96 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
97 vectorizable_live_operation.
98 (vectorizable_live_operation): Adjust parameters.
99 * tree-vect-stmts.c (vect_init_vector,
100 vect_gen_widened_results_half): Fix typo in function comment.
101 (can_vectorize_live_stmts): Adjust function comment.
102 Adjust parameters. Adjust call to vectorizable_live_operation.
103 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
104 (vect_transform_stmt): Adjust function comment. Adjust call to
105 can_vectorize_live_stmts.
106 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
107
108 2019-10-11 Richard Biener <rguenther@suse.de>
109
110 PR tree-optimization/90883
111 PR tree-optimization/91091
112 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
113 alias-sets both for recording VN table entries and continuing
114 walking after translating through copies. Handle same-sized
115 reads from SSA names by returning the plain SSA name.
116 (eliminate_dom_walker::eliminate_stmt): Properly handle
117 non-size precision stores in redundant store elimination.
118
119 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
120
121 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
122 (ggc_collect): Dump later to not interfere with release_page dump.
123 (ggc_trim): New function.
124 * ggc-none.c (ggc_trim): New.
125 * ggc.h (ggc_trim): Declare.
126
127 2019-10-11 Richard Biener <rguenther@suse.de>
128
129 PR tree-optimization/92066
130 PR tree-optimization/92046
131 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
132 Fix bogus cost model check.
133
134 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
135
136 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
137 (LANG_HOOKS_DECLS): Add it.
138 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
139 update comment for omp_is_optional_argument.
140 * omp-general.c (omp_is_allocatable_or_ptr): New.
141 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
142 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
143 Fortran's optional arguments and allocatable/pointer scalars
144 with use_device_addr.
145
146 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
147
148 PR target/77918
149 * config/s390/2827.md: Add new opcodes.
150 * config/s390/2964.md: Likewise.
151 * config/s390/3906.md: Likewise.
152 * config/s390/8561.md: Likewise.
153 * config/s390/s390-builtins.def (s390_vfchesb): Use
154 the new vec_cmpgev4sf_quiet_nocc.
155 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
156 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
157 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
158 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
159 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
160 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
161 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
162 * config/s390/s390-modes.def (CCSFPS): New mode.
163 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
164 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
165 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
166 (s390_expand_vec_compare): Use non-signaling patterns where
167 necessary.
168 (s390_reverse_condition): Support CCSFPS.
169 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
170 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
171 (asm_fcmp_op): Likewise.
172 (*smaxv2df3_vx): Use pattern for quiet comparison.
173 (*sminv2df3_vx): Likewise.
174 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
175 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
176 (vec_cmpgt<mode>_quiet_nocc): Likewise.
177 (vec_cmplt<mode>_quiet_nocc): New expander.
178 (vec_cmpge<mode>_quiet_nocc): New pattern.
179 (vec_cmple<mode>_quiet_nocc): New expander.
180 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
181 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
182 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
183 (*vec_cmpge<mode>_signaling_nocc): Likewise.
184 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
185 (vec_cmpungt<mode>): New expander.
186 (vec_cmpunge<mode>): Likewise.
187 (vec_cmpuneq<mode>): Use quiet patterns.
188 (vec_cmpltgt<mode>): Allow only on z14+.
189 (vec_cmpordered<mode>): Use quiet patterns.
190 (vec_cmpunordered<mode>): Likewise.
191 (VEC_CMP_EXPAND): Add ungt and unge.
192
193 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
194
195 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
196 parameter.
197 * lto-streamer-out.c: Include tree-dfa.h.
198 (output_cfg): Do not use cfun.
199 (lto_prepare_function_for_streaming): New.
200 (output_function): Do not push cfun; do not initialize loop optimizer.
201 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
202 * passes.c (ipa_write_summaries): Use it.
203 (ipa_write_optimization_summaries): Do not modify bodies.
204 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
205 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
206 * tree-ssa-dse.c (pass_dse::execute): Update use of
207 renumber_gimple_stmt_uids.
208 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
209
210 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
211
212 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
213 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
214
215 2019-10-10 Joseph Myers <joseph@codesourcery.com>
216
217 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
218 macros.
219 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
220 Also define DFP macros for these conditions.
221 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
222 DEC128_SUBNORMAL_MIN): Do not define.
223 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
224 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
225
226 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
227 Sandra Loosemore <sandra@codesourcery.com>
228
229 PR middle-end/26241
230 * doc/lto.texi (IPA): Reference to the IPA passes.
231 * doc/passes.texi (Pass manager): Add node IPA passes and
232 description for each IPA pass.
233
234 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
235
236 * ipa-reference.c: Do not include splay-tree.h
237 (reference_vars_to_consider): Turn to hash map.
238 (get_static_name, ipa_init, analyze_function, propagate,
239 stream_out_bitmap, ipa_reference_write_optimization_summary,
240 ipa_reference_write_optimization_summary): Update.
241
242 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
243
244 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
245
246 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
247
248 * config/darwin.c: Lookup Objective C metadata and force indirection
249 for IVAR refs.
250
251 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
252
253 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
254 addresses.
255 (mem_operand_gpr): Add check for prefixed addresses.
256 (mem_operand_ds_form): Add check for prefixed addresses.
257 (rs6000_legitimate_offset_address_p): If we support prefixed
258 addresses, check for a 34-bit offset instead of 16-bit.
259 (rs6000_legitimate_address_p): Add check for prefixed addresses.
260 Do not allow load/store with update if the address is prefixed.
261 (rs6000_mode_dependent_address): If we support prefixed
262 addresses, check for a 34-bit offset instead of 16-bit.
263
264 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
265
266 PR target/77918
267 * config/s390/vector.md (vcond_comparison_operator): New
268 predicate.
269 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
270
271 2019-10-10 David Malcolm <dmalcolm@redhat.com>
272
273 PR 87488
274 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
275 -D.
276 * configure.ac (--with-documentation-root-url): New option.
277 * configure: Regenerate.
278 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
279 option URL, add it as a new string field of the diagnostic option.
280 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
281 (print_option_information): If get_option_url is non-NULL, call
282 it, and if the result is non-NULL, potentially emit an escape
283 sequence to markup the option text with the resulting URL.
284 * diagnostic.h (diagnostic_context::get_option_url): New callback.
285 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
286 example of JSON output.
287 * opts-diagnostic.h (get_option_url): New decl.
288 * opts.c (get_option_url): New function.
289 * toplev.c (general_init): Initialize the get_option_url callback.
290
291 2019-10-10 David Malcolm <dmalcolm@redhat.com>
292
293 PR 87488
294 * common.opt (fdiagnostics-urls=): New option.
295 (diagnostic-url.h): Add SourceInclude.
296 (diagnostic_url_rule): New enum.
297 * diagnostic-color.c: Include "diagnostic-url.h".
298 (diagnostic_urls_enabled_p): New function.
299 * diagnostic-url.h: New file.
300 * diagnostic.c: Include "diagnostic-url.h".
301 (diagnostic_urls_init): New function.
302 * diagnostic.h (diagnostic_urls_init): New decl.
303 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
304 -fdiagnostics-urls to the list.
305 (-fdiagnostics-urls): New option.
306 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
307 (driver::global_initializations): Call diagnostic_urls_init.
308 * opts-global.c (init_options_once): Likewise.
309 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
310 * pretty-print.c (pretty_printer::pretty_printer): Initialize
311 show_urls.
312 (pp_begin_url): New function.
313 (pp_end_url): New function.
314 (selftest::test_urls): New selftest.
315 (selftest::pretty_print_c_tests): Call it.
316 * pretty-print.h (pretty_printer::show_urls): New field.
317 (pp_begin_url): New decl.
318 (pp_end_url): New decl.
319
320 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
321
322 PR target/92022
323 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
324
325 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
326
327 PR target/88630
328 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
329 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
330 also for TARGET_FPU_SH4_300.
331 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
332 TARGET_SH4_300.
333 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
334 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
335 (*negsf2_i): Split into ...
336 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
337 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
338 (**abssf2_i): Split into ...
339 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
340 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
341 (*negdf2_i): Split into ...
342 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
343 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
344 (**abssf2_i): Split into ...
345 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
346
347 2019-10-10 Richard Biener <rguenther@suse.de>
348
349 PR middle-end/92046
350 * opts.c (finish_options): Do not influence global --params
351 from options that are adjustable per function.
352 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
353 Apply --param adjustment based on active cost-model.
354 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
355 further store-sinking when vectorization or if-conversion
356 are not enabled.
357
358 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
359
360 PR middle-end/92037
361 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
362 rather than ggc_alloc_cleared to alloc symbol table.
363 * toplev.c (general_init): Likewise.
364 * cgraph.h (symbol_table): Explicitly construct every field.
365
366 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
367
368 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
369 (PF_Z15): ... this.
370 * config.gcc: Add z15 as option for --with-arch and --with-tune
371 configure switches.
372 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
373 error reporting for unsupported builtins.
374 * config/s390/s390-opts.h (enum processor_type): Rename
375 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
376 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
377 * config/s390/driver-native.c (s390_host_detect_local_cpu):
378 Likewise.
379 * config/s390/s390-builtins.def: Likewise.
380 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
381 (s390_expand_builtin): Add missing check for unsupported builtins.
382 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
383 (s390_rtx_costs): Likewise.
384 (s390_get_sched_attrmask): Rename arch13 to z15.
385 (s390_get_unit_mask): Likewise.
386 (s390_is_fpd): Likewise.
387 (s390_is_fxd): Likewise.
388 * config/s390/s390.h (enum processor_flags): Likewise.
389 * config/s390/s390.md: Likewise.
390 * config/s390/vector.md: Likewise.
391 * config/s390/vx-builtins.md: Likewise.
392 * config/s390/s390.opt: Add z15 to processor_type value.
393
394 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
395
396 PR target/91035
397 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
398 prototype.
399 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
400 ("split_stack_data", "split_stack_call")
401 ("split_stack_call_<mode>", "split_stack_cond_call")
402 ("split_stack_cond_call_<mode>"): Remove.
403 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
404 insn definition.
405 * config/s390/s390.c (s390_output_split_stack_data): New function.
406 (s390_expand_split_stack_prologue): Use the merged expander.
407
408 2019-10-09 Martin Sebor <msebor@redhat.com>
409
410 PR tree-optimization/90879
411 * builtins.c (check_access): Avoid using maxbound when null.
412 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
413 * doc/invoke.texi (-Wstring-compare): Document new warning option.
414 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
415 conditional.
416 (get_range_strlen): Overwrite initial maxbound when non-null.
417 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
418 changes.
419 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
420 (used_only_for_zero_equality): New function.
421 (handle_builtin_memcmp): Call it.
422 (determine_min_objsize): Return an integer instead of tree.
423 (get_len_or_size, strxcmp_eqz_result): New functions.
424 (maybe_warn_pointless_strcmp): New function.
425 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
426 between a longer string and a smaller array.
427 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
428
429 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
430
431 * config/darwin.c (darwin_override_options): Make the check for
432 Objective-C ABI version more specific for 64bit code.
433
434 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
435
436 * config/darwin.c (machopic_indirect_data_reference): Set flag to
437 indicate that the new symbol is an indirection.
438 (machopic_indirect_call_target): Likewise.
439 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
440 (MACHO_SYMBOL_INDIRECTION_P): New.
441 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
442
443 2019-10-08 Jason Merrill <jason@redhat.com>
444
445 * doc/invoke.texi: Document -fconcepts-ts.
446
447 2019-10-09 Richard Biener <rguenther@suse.de>
448
449 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
450 allow stmts other than GIMPLE_ASSIGN in nested cycles.
451
452 2019-10-08 Richard Biener <rguenther@suse.de>
453
454 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
455 (_stmt_vec_info::force_single_cycle): Likewise.
456 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
457 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
458 * tree-vect-loop.c (vectorizable_reduction): Set
459 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
460 (vect_transform_reduction): Use them to remove redundant code.
461 (vect_transform_cycle_phi): Likewise.
462
463 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
464
465 PR tree-optimization/90836
466 * gcc/match.pd (popcount): New pattern.
467
468 2019-10-08 Martin Sebor <msebor@redhat.com>
469
470 PR middle-end/92026
471 PR middle-end/92014
472 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
473 again once nbytes has been set. Set the access size when not yet set.
474
475 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
476
477 * config/darwin.c (machopic_select_section): Remove dead code for
478 old Objective-C section selection method, replace with unreachable.
479
480 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
481
482 * config/darwin.c (machopic_indirect_data_reference): Check for
483 required indirections before making direct access to defined
484 values.
485 (machopic_output_indirection): Place the indirected pointes for
486 required indirections into the non-lazy symbol pointers section.
487 (darwin_encode_section_info):
488 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
489 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
490
491 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
492
493 PR target/91994
494 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
495 instead of ALL_SSE_REG to check if function call preserves some
496 256-bit SSE registers.
497
498 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
499
500 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
501 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
502 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
503
504 2019-10-08 Richard Biener <rguenther@suse.de>
505
506 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
507 (_stmt_vec_info::is_reduc_info): Add.
508 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
509 (vectorizable_condition): Remove.
510 (vectorizable_shift): Likewise.
511 (vectorizable_reduction): Adjust.
512 (info_for_reduction): New.
513 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
514 (vect_analyze_scalar_cycles_1): ... here.
515 (vect_analyze_loop_operations): Adjust.
516 (needs_fold_left_reduction_p): Simplify for single caller.
517 (vect_is_simple_reduction): Likewise. Remove stmt restriction
518 for nested cycles not part of double reductions.
519 (vect_model_reduction_cost): Pass in the reduction type.
520 (info_for_reduction): New function.
521 (vect_create_epilog_for_reduction): Use it, access reduction
522 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
523 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
524 (vectorize_fold_left_reduction): Remove pointless assert.
525 (vectorizable_reduction): Analyze the full reduction when
526 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
527 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
528 stmt code-generation to vectorizable_* in most cases. Verify
529 code-generation only for cases handled by
530 vect_transform_reductuon.
531 (vect_transform_reduction): Use info_for_reduction to get at
532 reduction meta. Simplify.
533 (vect_transform_cycle_phi): Likewise.
534 (vectorizable_live_operation): Likewise.
535 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
536 at the PHI node for STMT_VINFO_REDUC_TYPE.
537 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
538 longer necessary code.
539 * tree-vect-stmts.c (vectorizable_shift): Make static again.
540 (vectorizable_condition): Likewise. Get at reduction related
541 info via info_for_reduction.
542 (vect_analyze_stmt): Adjust.
543 (vect_transform_stmt): Likewise.
544 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
545 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
546
547 2019-10-08 Joseph Myers <joseph@codesourcery.com>
548
549 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
550 -fno-fp-int-builtin-inexact default for C2X.
551
552 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
553 Richard Biener <rguenther@suse.de>
554
555 PR tree-optimization/91532
556 * tree-if-conv.c: Include tree-ssa-dse.h.
557 (ifcvt_local_dce): Change param from bb to loop,
558 and call dse_classify_store.
559 (tree_if_conversion): Pass loop instead of loop->header as arg
560 to ifcvt_local_dce.
561 * tree-ssa-dse.c: Include tree-ssa-dse.h.
562 (delete_dead_or_redundant_assignment): Remove static qualifier from
563 declaration, and add prototype in tree-ssa-dse.h.
564 (dse_store_status): Move to tree-ssa-dse.h.
565 (dse_classify_store): Remove static qualifier and add new tree param
566 stop_at_vuse, and add prototype in tree-ssa-dse.h.
567 * tree-ssa-dse.h: New header.
568
569 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
570
571 * config/darwin.c (machopic_output_indirection): Don't put
572 hidden symbol indirections into the .data section, use the
573 non-lazy symbol pointers section as normal.
574 (darwin_encode_section_info): Record if a symbol is hidden.
575 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
576 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
577
578 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
579
580 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
581 predicates instead of accessing bits directly.
582 (machopic_indirect_call_target): Likewise.
583 (machopic_output_indirection): Likewise.
584 (darwin_encode_section_info): Improve description. Use renamed
585 symbol flags. Use predicate macros for variables and functions.
586 * config/darwin.h:
587 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
588 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
589 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
590 (MACHO_SYMBOL_VARIABLE_P): New.
591 (MACHO_SYMBOL_DEFINED_P):New.
592 (MACHO_SYMBOL_STATIC_P): New.
593 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
594 (SYMBOL_FLAG_SUBT_DEP): New.
595 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
596
597 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
598
599 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
600 (msp430_expand_epilogue): Likewise.
601 * config/msp430/predicates.md: Likewise.
602 * config/msp430/msp430.md: Likewise.
603 Replace blocks of 8 spaces with tabs.
604
605 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
606
607 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
608 * config/msp430/msp430.c (msp430_split_addsi): New.
609 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
610 a block of C code for splitting addsi.
611
612 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
613
614 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
615 ix86_expand_rounddf_32): Reorder functions.
616 * config/i386/i386-protos.h: Update.
617
618 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
619
620 * config.in: Regenerate.
621 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
622 Add new "Yx" constraint.
623 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
624 function.
625 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
626 prototype.
627 * config/msp430/msp430.c (msp430_option_override): Allow the lower
628 code/data region to be selected in the small memory model.
629 (msp430_section_attr): Don't warn if the "section" and "lower"
630 attributes are used together.
631 (msp430_handle_generic_attribute): Likewise.
632 (msp430_var_in_low_mem): New function.
633 (TARGET_ENCODE_SECTION_INFO): Define.
634 (msp430_encode_section_info): New function.
635 (gen_prefix): Return early in the small memory model.
636 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
637 ".lower" prefix if -m{code,data}-region=lower have been passed.
638 (msp430_output_aligned_decl_common): Emit common symbols when
639 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
640 set.
641 (TARGET_ASM_FILE_END): Define.
642 (msp430_file_end): New function.
643 (msp430_do_not_relax_short_jumps): Allow relaxation when
644 function will be in the lower region.
645 (msp430_op_not_in_high_mem): New function.
646 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
647 the 'X' operand selector.
648 Clarify comment for 'x' operand selector.
649 * config/msp430/msp430.h (LINK_SPEC): Propagate
650 -m{code,data}-region to the linker via spec function
651 msp430_propagate_region_opt.
652 (msp430_propagate_region_opt): New prototype.
653 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
654 (SYMBOL_FLAG_LOW_MEM): Define.
655 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
656 selector.
657 (zero_extendqihi2): Fix operand number used by "%X" selector.
658 (zero_extendqisi2): Likewise.
659 (zero_extendhisi2): Likewise.
660 (movqi): Use "Yx" constraint in place of "%X" operand selector.
661 (movhi): Likewise.
662 (addqi3): Likewise.
663 (addhi3): Likewise.
664 (addsi3): Likewise.
665 (addhi3_cy): Likewise.
666 (addchi4_cy): Likewise.
667 (subqi3): Likewise.
668 (subhi3): Likewise.
669 (subsi3): Likewise.
670 (bic<mode>3): Likewise.
671 (and<mode>3): Likewise.
672 (ior<mode>3): Likewise.
673 (xor<mode>3): Likewise.
674 (slli_1): Add missing "%X" operand selector.
675 (slll_1): Likewise.
676 (slll_2): Likewise.
677 (srai_1): Likewise.
678 (sral_1): Likewise.
679 (sral_2): Likewise.
680 (srli_1): Likewise.
681 (srll_1): Likewise.
682 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
683 selector.
684 (cbranchhi4_real): Likewise.
685 (cbranchqi4_reversed): Likewise.
686 (cbranchhi4_reversed): Likewise.
687 (*bitbranch<mode>4): Likewise.
688 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
689 * config/msp430/msp430.opt (mcode-region=): Set default to
690 MSP430_REGION_LOWER. Improve docstring.
691 (mdata-region=): Likewise.
692 (muse-lower-region-prefix): New option.
693 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
694 mdata-region=none multilib.
695 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
696 mdata-region=none multilib.
697 MULTILIB_EXCEPTIONS: Remove.
698 MULTILIB_REQUIRED: Define.
699 * configure: Regenerate.
700 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
701 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
702 * doc/extend.texi: Clarify comment for {upper,lower,either}
703 function attributes.
704 Add separate description for "lower" variable attribute.
705
706 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
707
708 PR target/77918
709 * optabs-tree.c (vcond_icode_p): New function.
710 (vcond_eq_icode_p): Likewise.
711 (expand_vec_cond_expr_p): Use vcond_icode_p and
712 vcond_eq_icode_p.
713 * optabs.c (can_vcond_compare_p): New function.
714 * optabs.h (can_vcond_compare_p): Likewise.
715
716 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
717
718 PR target/77918
719 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
720 caller passes a non-trapping condition.
721 (is_gimple_condexpr): Allow trapping conditions.
722 (is_gimple_condexpr_1): New helper function.
723 (is_gimple_condexpr_for_cond): New function, acts like old
724 is_gimple_condexpr.
725 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
726 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
727 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
728 * gimplify.c (gimplify_cond_expr): Use
729 is_gimple_condexpr_for_cond.
730 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
731 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
732 VEC_COND_EXPR.
733 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
734 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
735 is_gimple_condexpr_for_cond, remove pointless tmp check
736 (forward_propagate_into_cond): Remove pointless tmp check.
737
738 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
739
740 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
741 match that of other gsi_next_* functions. Adjust the comment.
742 (gsi_start_nonvirtual_phis): New function.
743 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
744 gsi_next_nonvirtual_phi accordingly. (No functional change.)
745
746 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
747
748 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
749 setjmp situation here. Fix a verb's ending: "the exact variables or
750 elements for which there are warnings depends" -> "... depend".
751
752 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
753
754 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
755
756 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
757
758 * ipa-prop.c (ipa_vr::nonzero_p): New.
759 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
760 non-zero range.
761 * ipa-prop.h (class ipa_vr): Add nonzero_p.
762 * tree-vrp.c (range_has_numeric_bounds_p): New.
763 (range_int_cst_p): Use range_has_numeric_bounds_p.
764 (get_range_op_handler): New.
765 (supported_types_p): New.
766 (defined_ranges_p): New.
767 (drop_undefines_to_varying): New.
768 (range_fold_binary_symbolics_p): New.
769 (range_fold_unary_symbolics_p): New.
770 (range_fold_unary_expr): Extract out into above functions.
771 (range_fold_binary_expr): Same.
772 (value_range_base::normalize_addresses): New.
773 (value_range_base::normalize_symbolics): Normalize addresses.
774 * tree-vrp.h (class value_range_base): Add normalize_addresses.
775
776 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
777
778 * tree-vrp.c (value_range_base::singleton_p): Use
779 value_range_base::num_pairs instead of vrp_val_is* to check
780 if a range has one sub-range.
781
782 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
783
784 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
785 DEF is not a true earlyclobber but is tied to a specific input
786 operand, and so is effectively earlyclobber wrt inputs that have
787 different values.
788 (make_early_clobber_and_input_conflicts): Pass this case to the above.
789
790 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
791
792 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
793 (pod_mode): Mark operators likewise.
794 (scalar_int_mode): Mark non-default constructors and
795 operators with CONSTEXPR.
796 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
797 (fixed_size_mode): Likewise.
798
799 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
800
801 PR target/91994
802 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
803 and wrap the unspec_volatile in a parallel.
804 (*avx_vzeroupper): New define_insn. Use a match_parallel around
805 the unspec_volatile.
806 * config/i386/predicates.md (vzeroupper_pattern): Expect the
807 unspec_volatile to be wrapped in a parallel.
808 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
809 (ix86_add_reg_usage_to_vzerouppers): New functions.
810 (rest_of_handle_insert_vzeroupper): Use them to add register
811 usage information to the vzeroupper instructions.
812
813 2019-10-07 Richard Biener <rguenther@suse.de>
814
815 PR tree-optimization/91975
816 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
817 handle invariants.
818
819 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
820
821 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
822 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
823
824 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
825
826 * config/darwin.c (darwin_override_options): Adjust objective-c
827 ABI version error messages to avoid punctuation and contracted
828 negations.
829
830 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
831
832 * ipa-inline.c: Fix type; compute size rather than self_size
833 for size of caller function.
834
835 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
836
837 PR target/59888
838 * config/darwin.c (darwin_rodata_section): Add relocation flag,
839 choose const_data section for constants with relocations.
840 (machopic_select_section): Pass relocation flag to
841 darwin_rodata_section ().
842
843 2019-10-05 Jakub Jelinek <jakub@redhat.com>
844
845 PR tree-optimization/91734
846 * generic-match-head.c: Include fold-const-call.h.
847 * match.pd (sqrt(x) cmp c): Check the boundary value and
848 in case inexact computation of c*c affects comparison of the boundary,
849 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
850 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
851 for -frounding-math. For c2, try the next smaller or larger floating
852 point constant depending on comparison code and if it has the same
853 sqrt as c2, use it instead of c2.
854
855 2019-10-04 Martin Sebor <msebor@redhat.com>
856
857 PR middle-end/91977
858 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
859 MEM_REF right operand. Avoid failing for MEM_REF assignments from
860 uninitialized objects.
861
862 2019-10-04 Martin Sebor <msebor@redhat.com>
863
864 * builtins.c (compute_objsize): Add an argument.
865 * tree-object-size.c (addr_object_size): Same.
866 (compute_builtin_object_size): Same.
867 * tree-object-size.h (compute_builtin_object): Same.
868
869 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
870
871 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
872
873 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
874
875 * match.pd (sinh (x) / cosh (x)): New simplification rule.
876
877 2019-10-04 Martin Jambor <mjambor@suse.cz>
878
879 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
880 fntype when switching to calling memcpy instead of memset.
881
882 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
883
884 * hash-table.h (hash_table::empty_slow): Don't assign
885 size_t values to int variables.
886
887 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
888
889 * expr.c (convert_mode_scalar): Remove shadowing local var.
890 (emit_block_move): Rename local vars.
891 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
892 (emit_push_insn): Rename local vars.
893 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
894 shadowing local vars.
895 (store_constructor): Remove shadowing local vars. Rename local var.
896 (store_field, expand_cond_expr_using_cmove,
897 expand_expr_real_2): Remove shadowing local vars.
898 (expand_expr_real_1,
899 do_store_flag): Remove shadowing local vars. Rename local vars.
900
901 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
902
903 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
904
905 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
906
907 * genmatch.c (commutate): Rename local var.
908 (lower_cond): Reuse local var.
909 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
910 dt_operand::gen, dt_operand::gen_gimple_expr,
911 dt_simplify::gen): Add a param. Rename generated vars.
912 (decision_tree::insert_operand,
913 (capture_info::walk_match, capture_info::walk_result,
914 capture_info::walk_c_expr): Rename local vars.
915 (expr::gen_transform): Rename generated vars.
916 Use snprintf. Rename local vars.
917 (capture::gen_transform, dt_operand::get_name,
918 dt_operand::gen_opname): Rename generated vars.
919 (write_predicate): Adjust call to gen_kids.
920 (parser::get_internal_capture_id): Rename generated vars.
921 (parser::parse_expr): Rename local vars.
922 (parser::parse_if): Remove local var.
923 (parser::parse_pattern, add_operator): Rename local vars.
924
925 2019-10-04 Joseph Myers <joseph@codesourcery.com>
926
927 * builtins.def (DEF_C2X_BUILTIN): New macro.
928 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
929 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
930 (strndup): Use DEF_C2X_BUILTIN.
931 * coretypes.h (enum function_class): Add function_c2x_misc.
932
933 2019-10-04 Maya Rashish <coypu@sdf.org>
934
935 * ira-color.c (update_costs_from_allocno): Call
936 ira_init_register_move_cost_if_necessary.
937
938 2019-10-04 Jeff Law <law@redhat.com>
939
940 * config/h8300/h8300.md (cpymemsi): Disable.
941 (movmd, movmd_internal_<mode>, movstr, movsd):
942 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
943 (movmd splitter, movsd splitter): Likewise.
944
945 * range-op.cc (range_tests): Avoid two tests when ints and
946 shorts are the same size.
947
948 2019-10-04 Richard Biener <rguenther@suse.de>
949
950 PR lto/91968
951 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
952 BLOCK_VARS.
953
954 2019-10-04 Richard Biener <rguenther@suse.de>
955
956 PR tree-optimization/91982
957 * tree-vect-loop.c (vectorizable_live_operation): Also guard
958 against EXTRACT_LAST_REDUCTION.
959 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
960
961 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
962
963 * range-op.o (value_range_from_overflowed_bounds): Rename from
964 adjust_overflow_bound.
965 (value_range_with_overflow): Rename from
966 create_range_with_overflow.
967 (create_possibly_reversed_range): Adjusted for above renames.
968 (operator_*::wi_fold): Same.
969 (cross_product_operator::wi_cross_productor): Same.
970
971 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
972
973 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
974 -Wshadow=compatible-local): Fix description.
975 Add an example where -Wshadow=compatible-local does not
976 warn.
977
978 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
979
980 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
981
982 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
983 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
984
985 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
986
987 * expr.c (emit_block_move_hints): Slightly cleaner fix to
988 can_move_by_pieces issue.
989
990 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
991
992 PR target/87243
993 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
994 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
995 is available and the user has not set one on the command line.
996
997 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
998
999 PR target/91769
1000 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1001 instead of REGNO equality check on addr.reg.
1002
1003 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1004
1005 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1006 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1007 * doc/invoke.texi (inline-heuristics-hint-percent,
1008 inline-heuristics-hint-percent-O2): Document.
1009 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1010 hint attribute.
1011 (can_inline_edge_by_limits_p): Use it.
1012
1013 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1014
1015 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1016 to print CONST_DOUBLEs.
1017
1018 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1019
1020 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1021 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1022 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1023
1024 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1025
1026 * Makefile.in (OBJS): Add range.o and range-op.o.
1027 Remove wide-int-range.o.
1028 * function-tests.c (test_ranges): New.
1029 (function_tests_c_tests): Call test_ranges.
1030 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1031 range_fold_unary_expr instead of extract_range_from_unary_expr.
1032 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1033 * range-op.cc: New file.
1034 * range-op.h: New file.
1035 * range.cc: New file.
1036 * range.h: New file.
1037 * selftest.h (range_tests): New prototype.
1038 * ssa.h: Include range.h.
1039 * tree-vrp.c (value_range_base::value_range_base): New
1040 constructors.
1041 (value_range_base::singleton_p): Do not call
1042 ranges_from_anti_range until sure we will need to.
1043 (value_range_base::type): Rename gcc_assert to
1044 gcc_checking_assert.
1045 (vrp_val_is_max): New argument.
1046 (vrp_val_is_min): Same.
1047 (wide_int_range_set_zero_nonzero_bits): Move from
1048 wide-int-range.cc.
1049 (extract_range_into_wide_ints): Remove.
1050 (extract_range_from_multiplicative_op): Remove.
1051 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1052 from extract_range_from_binary_expr.
1053 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1054 from extract_range_from_binary_expr.
1055 (extract_range_from_binary_expr): Remove.
1056 (normalize_for_range_ops): New.
1057 (range_fold_binary_expr): New.
1058 (range_fold_unary_expr): New.
1059 (value_range_base::num_pairs): New.
1060 (value_range_base::lower_bound): New.
1061 (value_range_base::upper_bound): New.
1062 (value_range_base::upper_bound): New.
1063 (value_range_base::contains_p): New.
1064 (value_range_base::invert): New.
1065 (value_range_base::union_): New.
1066 (value_range_base::intersect): New.
1067 (range_compatible_p): New.
1068 (value_range_base::operator==): New.
1069 (determine_value_range_1): Call range_fold_*expr instead of
1070 extract_range_from_*expr.
1071 * tree-vrp.h (class value_range_base): Add new constructors.
1072 Add methods for union_, intersect, operator==, contains_p,
1073 num_pairs, lower_bound, upper_bound, invert.
1074 (vrp_val_is_min): Add handle_pointers argument.
1075 (vrp_val_is_max): Same.
1076 (extract_range_from_unary_expr): Remove.
1077 (extract_range_from_binary_expr): Remove.
1078 (range_fold_unary_expr): New.
1079 (range_fold_binary_expr): New.
1080 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1081 range_fold_binary_expr instead of extract_range_from_binary_expr.
1082 (vr_values::extract_range_basic): Same.
1083 (vr_values::extract_range_from_unary_expr): Call
1084 range_fold_unary_expr instead of extract_range_from_unary_expr.
1085 * wide-int-range.cc: Remove.
1086 * wide-int-range.h: Remove.
1087
1088 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1089
1090 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1091 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1092 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1093 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1094 macro.
1095
1096 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1097
1098 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1099 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1100 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1101 * glimits.h: Likewise.
1102
1103 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR rtl-optimization/91976
1106 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1107 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1108 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1109
1110 2019-10-02 Martin Sebor <msebor@redhat.com>
1111
1112 PR tree-optimization/80936
1113 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1114
1115 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1116
1117 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1118 instead of reg_class_contents[ALL_REGS].
1119
1120 2019-09-30 Jason Merrill <jason@redhat.com>
1121
1122 Add some hash_map_safe_* functions like vec_safe_*.
1123 * hash-map.h (default_hash_map_size): New variable.
1124 (create_ggc): Use it as default argument.
1125 (hash_map_maybe_create, hash_map_safe_get)
1126 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1127
1128 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1129
1130 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1131 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1132 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1133 (can_inline_edge_by_limits_p): Use it.
1134 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1135 (want_inline_small_function_p): Use O2 bounds.
1136 (edge_badness): LIkewise.
1137 * opts.c (default_options): Add OPT_finline_functions.
1138 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1139 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1140 New parameters.
1141 * doc/invoke.texi (-finline-functions): Update documentation.
1142 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1143 inline-min-speedup-O2): Document.
1144 (early-inlining-insns-O2): Simplify docs.
1145
1146 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1147
1148 PR rtl-optimization/87047
1149 * ifcvt.c (average_cost): New static function. Use it...
1150 (noce_process_if_block): ... here.
1151
1152 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1153
1154 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1155 * config/rs6000/rs6000-string.c (expand_block_move): Add
1156 might_overlap parm.
1157 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1158 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1159
1160 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1161
1162 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1163 (expand_builtin_memcpy): Use might_overlap parm.
1164 (expand_builtin_mempcpy_args): Use might_overlap parm.
1165 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1166 (expand_builtin_memory_copy_args): Add might_overlap parm.
1167 * expr.c (emit_block_move_via_cpymem): Rename to
1168 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1169 or movmem optab as appropriate.
1170 (emit_block_move_hints): Add might_overlap parm, do the right
1171 thing for might_overlap==true.
1172 * expr.h (emit_block_move_hints): Update prototype.
1173
1174 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1175
1176 * tree-eh.h (unsplit_eh_edges): Declare.
1177 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1178 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1179 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1180 (struct store_immediate_info): Add lp_nr field.
1181 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1182 initialize lp_nr with it.
1183 (struct merged_store_group): Add lp_nr and only_constants fields.
1184 (merged_store_group::merged_store_group): Initialize them.
1185 (merged_store_group::can_be_merged_into): Deal with them.
1186 (pass_store_merging): Rename terminate_and_release_chain into
1187 terminate_and_process_chain.
1188 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1189 renaming and remove useless assertions.
1190 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1191 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1192 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1193 instead of always recomputing it and compare lp_nr.
1194 (imm_store_chain_info::output_merged_store): If the group is in an
1195 active EH region, register new stores if they can throw. Moreover,
1196 if the insertion has created new basic blocks, adjust the PHI nodes
1197 of the post landing pad.
1198 (imm_store_chain_info::output_merged_stores): If the original stores
1199 are in an active EH region, deregister them.
1200 (lhs_valid_for_store_merging_p): Prettify.
1201 (adjust_bit_pos): New function extracted from...
1202 (mem_valid_for_store_merging): ...here. Use it for the base address
1203 and also for the offset if it is the addition of a constant.
1204 (lp_nr_for_store): New function.
1205 (pass_store_merging::process_store): Change return type to bool.
1206 Call lp_nr_for_store to initialize the store info. Propagate the
1207 return status of various called functions to the return value.
1208 (store_valid_for_store_merging_p): New predicate.
1209 (enum basic_block_status): New enumeration.
1210 (get_status_for_store_merging): New function.
1211 (pass_store_merging::execute): If the function can throw and catch
1212 non-call exceptions, unsplit the EH edges on entry and clean up the
1213 CFG on exit if something changed. Call get_status_for_store_merging
1214 for every basic block and keep the chains open across basic blocks
1215 when possible. Terminate and process open chains at the end, if any.
1216
1217 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1218
1219 * reginfo.c (globalize_reg): Fix shadowed variable in
1220 function_abis walk.
1221
1222 2019-10-02 Martin Jambor <mjambor@suse.cz>
1223
1224 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1225 do not compute some stuff when set.
1226 (cgraph_node::create_edge): Likewise.
1227 (cgraph_node::create_indirect_edge): Renamed last parameter to
1228 coning_p and flipped its meaning, don't even calculate
1229 inline_failed when set.
1230 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1231 (symbol_table::::create_edge): Likewise.
1232 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1233 the default value.
1234 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1235 call graph edge creating functions.
1236
1237 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1238
1239 PR c++/91222
1240 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1241 namespace types.
1242
1243 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1244
1245 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1246
1247 2019-10-02 Richard Biener <rguenther@suse.de>
1248
1249 * tree-vectorizer.h (vect_transform_reduction): Declare.
1250 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1251 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1252 stmt transform to ...
1253 (vect_transform_reduction): ... this.
1254
1255 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1256
1257 * omp-low.c (lower_omp_target): Dereference optional argument
1258 to work with the right pointer.
1259
1260 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1261
1262 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1263 false.
1264 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1265 * langhooks.h (omp_is_optional_argument): New hook.
1266 * omp-general.c (omp_is_optional_argument): New.
1267 * omp-general.h (omp_is_optional_argument): New declaration.
1268 * omp-low.c (lower_omp_target): Create temporary for received value
1269 and take the address for new_var if the original variable was a
1270 DECL_BY_REFERENCE. Use size of referenced object when a
1271 pass-by-reference optional argument used as argument to firstprivate.
1272
1273 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1274
1275 PR tree-optimization/91940
1276 * tree-vect-patterns.c: Include tree-vector-builder.h and
1277 vec-perm-indices.h.
1278 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1279 unpromoting the argument back to uint16_t, or by converting into a
1280 rotate, or into shifts plus ior.
1281
1282 2019-10-02 Richard Biener <rguenther@suse.de>
1283
1284 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1285 New.
1286 (vect_transform_cycle_phi): Declare.
1287 * tree-vect-stmts.c (vect_transform_stmt): Call
1288 vect_transform_cycle_phi.
1289 * tree-vect-loop.c (vectorizable_reduction): Split out
1290 PHI transformation stage to ...
1291 (vect_transform_cycle_phi): ... here.
1292
1293 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1294
1295 PR middle-end/91957
1296 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1297 eliminable registers.
1298 (make_hard_regno_live): Likewise, and don't make them live.
1299
1300 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1301
1302 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1303 Call pp_emit_prefix.
1304 (layout::print_source_line): Likewise.
1305 (layout::start_annotation_line): Likewise.
1306 (diagnostic_show_locus): Remove call to temporarily clear the
1307 prefix.
1308 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1309 interaction of pp_set_prefix with rulers and fix-it hints.
1310 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1311 prefix when calling diagnostic_show_locus, rather than destroying
1312 it afterwards.
1313 (print_parseable_fixits): Temporarily clear prefix.
1314 * pretty-print.c (pp_format): Save and restore line_length, rather
1315 than assuming it is zero.
1316 (pp_output_formatted_text): Remove assertion that line_length is
1317 zero.
1318
1319 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1320
1321 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1322 Rename to ...
1323 (nonoverlapping_refs_since_match_p): ... this; handle also
1324 ARRAY_REFs.
1325 (alias_stats): Update stats.
1326 (dump_alias_stats): Likewise.
1327 (cheap_array_ref_low_bound): New function.
1328 (aliasing_matching_component_refs_p): Add partial_overlap
1329 argument;
1330 pass it to nonoverlapping_refs_since_match_p.
1331 (aliasing_component_refs_walk): Update call of
1332 aliasing_matching_component_refs_p
1333 (nonoverlapping_array_refs_p): New function.
1334 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1335 indirect_refs_may_alias_p): Update calls of
1336 nonoverlapping_refs_since_match_p.
1337
1338 2019-10-01 Maya Rashish <coypu@sdf.org>
1339
1340 PR target/85401
1341 * ira-color.c (allocno_copy_cost_saving): Call
1342 ira_init_register_move_cost_if_necessary.
1343
1344 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1345
1346 * Makefile.in (gnat_install_lib): New variable.
1347 * configure.ac: Substitute it.
1348 * configure: Regenerate.
1349
1350 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1351
1352 PR lto/91222
1353 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1354 is matched with non-C++ type
1355
1356 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1357
1358 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1359 after local CSE.
1360
1361 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1362
1363 * doc/invoke.texi (early-inlining-insns-O2): Document.
1364 (early-inlining-insns): Update.
1365 * params.def (early-inlining-insns-O2): New bound.
1366 (early-inlining-insns): Update docs.
1367 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1368
1369 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1370
1371 PR target/88562
1372 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1373 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1374 a memory access insn.
1375
1376 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1377
1378 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1379 vpmsumd.
1380
1381 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1382
1383 PR target/77918
1384 * config/s390/s390.c (s390_expand_vec_compare): Use
1385 gen_vec_cmpordered and gen_vec_cmpunordered.
1386 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1387 vec_unordered): Delete.
1388 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1389 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1390 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1391 (vec_cmp<code>): Generic dispatcher.
1392
1393 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1394
1395 PR target/77918
1396 * config/s390/vector.md (V_HW): Add V1TI in order to make
1397 vcond$a$b generate vcondv1tiv1tf.
1398
1399 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1400
1401 PR rtl-optimization/91948
1402 * ira-build.c (ira_create_allocno): Initialize
1403 ALLOCNO_CROSSED_CALLS_ABIS.
1404 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1405 than regno to ira_need_caller_save_p.
1406
1407 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1408
1409 * config/i386/i386-options.c
1410 (ix86_recompute_optlev_based_flags): New, moved out of...
1411 (ix86_option_override_internal): ... this. Call it.
1412 (ix86_override_options_after_change): Call it here too.
1413
1414 PR debug/91507
1415 * dwarf2out.c (override_type_for_decl_p): New.
1416 (gen_variable_die): Use it.
1417
1418 2019-10-01 Richard Biener <rguenther@suse.de>
1419
1420 * tree-vect-loop.c (vectorizable_reduction): Move variables
1421 to where they are used.
1422
1423 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1424
1425 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1426 (build_def_use): Use PC instead of CC0 in a comment.
1427
1428 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1429
1430 * rtl.def (CLOBBER_HIGH): Delete.
1431 * doc/rtl.texi (clobber_high): Remove documentation.
1432 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1433 (reg_is_clobbered_by_clobber_high): Delete.
1434 (gen_hard_reg_clobber_high): Likewise.
1435 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1436 * cfgexpand.c (expand_gimple_stmt): Likewise.
1437 * combine-stack-adj.c (single_set_for_csa): Likewise.
1438 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1439 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1440 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1441 * cse.c (invalidate_reg): Remove clobber_high parameter.
1442 (invalidate): Update call accordingly.
1443 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1444 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1445 (count_reg_usage, insn_live_p): Likewise.
1446 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1447 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1448 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1449 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1450 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1451 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1452 (mark_nonreg_stores_2): Likewise.
1453 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1454 (df_get_call_refs): Likewise.
1455 * dwarf2out.c (mem_loc_descriptor): Likewise.
1456 * emit-rtl.c (verify_rtx_sharing): Likewise.
1457 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1458 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1459 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1460 * genemit.c (gen_exp, gen_insn): Likewise.
1461 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1462 * haifa-sched.c (haifa_classify_rtx): Likewise.
1463 * ira-build.c (create_insn_allocnos): Likewise.
1464 * ira-costs.c (scan_one_insn): Likewise.
1465 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1466 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1467 * jump.c (mark_jump_label_1): Likewise.
1468 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1469 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1470 handling.
1471 (mark_not_eliminable): Likewise.
1472 * lra-lives.c (process_bb_lives): Likewise.
1473 * lra.c (new_insn_reg): Remove clobber_high parameter.
1474 (collect_non_operand_hard_regs): Likewise. Update call to new
1475 insn_reg. Remove CLOBBER_HIGH handling.
1476 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1477 to collect_non_operand_hard_regs.
1478 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1479 Update call to new_insn_reg.
1480 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1481 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1482 (move2add_note_store): Likewise.
1483 * print-rtl.c (print_pattern): Likewise.
1484 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1485 (if_test_bypass_p): Likewise.
1486 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1487 * reginfo.c (reg_scan_mark_refs): Likewise.
1488 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1489 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1490 (forget_old_reloads_1): Likewise.
1491 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1492 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1493 (dbr_schedule): Likewise.
1494 * resource.c (update_live_status, mark_referenced_resources)
1495 (mark_set_resources): Likewise.
1496 * rtl.c (copy_rtx): Likewise.
1497 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1498 (note_pattern_stores): Likewise.
1499 (reg_is_clobbered_by_clobber_high): Delete.
1500 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1501 CLOBBER_HIGH handling.
1502
1503 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1504
1505 PR target/91452
1506 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1507 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1508 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1509 Handle ARM_PCS_TLSDESC.
1510 (aarch64_tlsdesc_abi_id): New function.
1511 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1512 rtx instead of a list of clobbers and clobber_highs.
1513 (tlsdesc_small_<mode>): Update accordingly.
1514
1515 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1516
1517 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1518 extra callee_abi argument.
1519 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1520 Insert a CALLEE_ABI unspec into the call pattern as the second
1521 element in the PARALLEL.
1522 (aarch64_simd_call_p): Delete.
1523 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1524 the new CALLEE_ABI element of the PARALLEL.
1525 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1526 from the function type, if given.
1527 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1528 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1529 when passed the function_arg_info end marker.
1530 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1531 final argument of gen_sibcall.
1532 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1533 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1534 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1535 pattern.
1536 (call_value): Likewise operand 3.
1537 (sibcall): Likewise operand 2. Place the unspec before rather than
1538 after the return.
1539 (sibcall_value): Likewise operand 3.
1540 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1541 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1542 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1543 constraint strings.
1544 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1545
1546 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1547
1548 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1549 choose_hard_reg_mode.
1550 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1551
1552 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1553
1554 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1555 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1556 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1557
1558 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1559
1560 * diagnostic-show-locus.c (line_label::line_label): Initialize
1561 m_has_vbar.
1562 (line_label::comparator): Reverse the sort order by m_state_idx,
1563 so that when the list is walked backwards the labels appear in
1564 order of insertion into the rich_location.
1565 (line_label::m_has_vbar): New field.
1566 (layout::print_any_labels): When dealing with multiple labels at
1567 the same line and column, only print vertical bars for the one
1568 with the highest label_line.
1569 (selftest::test_one_liner_labels): Update test for multiple labels
1570 to expect the labels to be in the order of insertion into the
1571 rich_location. Add a test for many such labels, where the column
1572 numbers are out-of-order relative to the insertion order.
1573
1574 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1575
1576 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1577 (ix86_frame::expensive_count): Likewise.
1578 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1579 of use_fast_prologue_epilogue robust against incidental changes
1580 in function size.
1581
1582 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1583
1584 PR target/77918
1585 * config/s390/vector.md (vec_unordered<mode>): Call
1586 gen_vec_ordered<mode>.
1587
1588 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1589
1590 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1591 New pattern for ASRD.
1592 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1593 * internal-fn.def (IFN_DIV_POW2): New internal function.
1594 * optabs.def (sdiv_pow2_optab): New optab.
1595 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1596 Modify pattern to support new operation.
1597 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1598 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1599 Document new target selector.
1600
1601 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1602
1603 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1604 to test whether we're compiling a vector PCS function and to test
1605 whether the function needs to save a particular register.
1606 Remove the vector PCS handling of df_set_regs_ever_live.
1607 (aarch64_components_for_bb): Use crtl->abi to test whether
1608 the function needs to save a particular register.
1609 (aarch64_process_components): Use crtl->abi to test whether
1610 we're compiling a vector PCS function.
1611 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1612 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1613
1614 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1615
1616 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1617 Delete.
1618 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1619 whether the block calls a function that clobbers more registers
1620 than the current function is allowed to.
1621 (aarch64_use_simple_return_insn_p): Delete.
1622 * config/aarch64/aarch64.md (simple_return): Remove condition.
1623
1624 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1625
1626 * function-abi.h (function_abi_aggregator): New class.
1627 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1628 function.
1629 * ira.c (update_equiv_regs_prescan): New function. Call
1630 set_paradoxical_subreg here rather than...
1631 (update_equiv_regs): ...here.
1632 (ira): Call update_equiv_regs_prescan.
1633
1634 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1635
1636 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1637 IN_TARGET_CODE.
1638 (call_used_or_fixed_regs): Likewise.
1639 (call_used_or_fixed_reg_p): Likewise.
1640 * reginfo.c (regs_invalidated_by_call): New macro.
1641
1642 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1643
1644 * shrink-wrap.c: Include function-abi.h.
1645 (requires_stack_frame_p): Use crtl->abi to test whether the
1646 current function can use a register without saving it first.
1647
1648 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1649
1650 * sel-sched-ir.h (_def::crosses_call): Replace with...
1651 (_def::crossed_call_abis): ..this new field.
1652 (def_list_add): Take a mask of ABIs instead of a crosses_call
1653 boolean.
1654 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1655 of _def accordingly.
1656 * sel-sched.c: Include function-abi.h.
1657 (hard_regs_data::regs_for_call_clobbered): Delete.
1658 (reg_rename::crosses_call): Replace with...
1659 (reg_rename::crossed_call_abis): ...this new field.
1660 (fur_static_params::crosses_call): Replace with...
1661 (fur_static_params::crossed_call_abis): ...this new field.
1662 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1663 (init_hard_regs_data): Use crtl->abi to test which registers the
1664 current function would need to save before it uses them.
1665 (mark_unavailable_hard_regs): Update handling of call-clobbered
1666 registers, using call_clobbers_in_region to find out which registers
1667 might be call-clobbered (but without taking -fipa-ra into account
1668 for now). Remove separate handling of partially call-clobbered
1669 registers.
1670 (verify_target_availability): Use crossed_call_abis instead of
1671 crosses_call.
1672 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1673 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1674
1675 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1676
1677 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1678 function to test whether a register is fully or partly clobbered.
1679
1680 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1681
1682 * rtlanal.c: Include function-abi.h.
1683 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1684 function and clobbers_reg_p to test whether the register
1685 is call-clobbered.
1686 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1687 to get the ABI of the called function and full_reg_clobbers to
1688 get the set of fully call-clobbered registers. Warn about the
1689 pitfalls of using this mode.
1690
1691 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1692
1693 * reload.c: Include function-abi.h.
1694 (find_equiv_reg): Use clobbers_reg_p to test whether either
1695 of the equivalent registers is clobbered by a call.
1696 * reload1.c: Include function-abi.h.
1697 (reg_reloaded_call_part_clobbered): Delete.
1698 (reload): Use crtl->abi to test which registers would need
1699 saving in the prologue before use.
1700 (find_reg): Likewise.
1701 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1702 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1703 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1704
1705 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1706
1707 * regrename.h (du_head::call_clobber_mask): New field.
1708 (du_head::need_caller_save_reg): Replace with...
1709 (du_head::call_abis): ...this new field.
1710 * regrename.c: Include function-abi.h.
1711 (call_clobbered_in_chain_p): New function.
1712 (check_new_reg_p): Use crtl->abi when deciding whether a register
1713 is free for use after RA. Use call_clobbered_in_chain_p to test
1714 whether a candidate register would be clobbered by a call.
1715 (find_rename_reg): Don't add call-clobber conflicts here.
1716 (rename_chains): Check call_abis instead of need_caller_save_reg.
1717 (merge_chains): Update for changes to du_head.
1718 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1719 target. Record the ABI identifier in call_abis and the set of
1720 fully or partially clobbered registers in call_clobber_mask.
1721 Add fully-clobbered registers to hard_conflicts here rather
1722 than in find_rename_reg.
1723 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1724 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1725 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1726 function-abi.h.
1727 * config/c6x/c6x.c: Likewise.
1728
1729 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1730
1731 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1732 mode of the register when deciding whether it is no longer
1733 available after a call.
1734
1735 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1736
1737 * recog.c: Include function-abi.h.
1738 (peep2_find_free_register): Use crtl->abi when deciding whether
1739 a register is free for use after RA.
1740
1741 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1742
1743 * postreload-gcse.c: Include regs.h and function-abi.h.
1744 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1745 call insn target. Conservatively assume that partially-clobbered
1746 registers are altered.
1747
1748 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1749
1750 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1751 when deciding whether a register is free for use after RA.
1752 (reload_combine): Remove unnecessary use of fixed_reg_set.
1753 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1754 call insn target. Use reg_mode when testing whether a register
1755 is no longer available.
1756
1757 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1758
1759 * target.def (return_call_with_max_clobbers): Delete.
1760 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1761 * doc/tm.texi: Regenerate.
1762 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1763 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1764 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1765 (lra_reg::call_insn): Delete.
1766 * lra.c: Include function-abi.h.
1767 (initialize_lra_reg_info_element): Don't initialize the fields above.
1768 (lra): Use crtl->abi to test whether the current function needs to
1769 save a register in the prologue. Remove special pre-inheritance
1770 lra_create_live_ranges pass for flag_ipa_ra.
1771 * lra-assigns.c: Include function-abi.h
1772 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1773 function needs to save a register in the prologue.
1774 (lra_assign): Assert that registers aren't allocated to a
1775 conflicting register, rather than checking only for overlaps
1776 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1777 and for registers that are not live across a call.
1778 * lra-constraints.c (last_call_for_abi): New variable.
1779 (full_and_partial_call_clobbers): Likewise.
1780 (setup_next_usage_insn): Remove the register from
1781 full_and_partial_call_clobbers.
1782 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1783 whether the register needs a caller save.
1784 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1785 of call_used_or_fixed_regs.
1786 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1787 full_and_partial_call_clobbers.
1788 * lra-lives.c (check_pseudos_live_through_calls): Replace
1789 last_call_used_reg_set and call_insn arguments with an abi argument.
1790 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1791 as the set of conflicting registers.
1792 (calls_have_same_clobbers_p): Delete.
1793 (process_bb_lives): Track the ABI of the last call instead of an
1794 insn/HARD_REG_SET pair. Update calls to
1795 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1796 the set of registers that could be clobbered by an EH edge.
1797 Include partially-clobbered as well as fully-clobbered registers.
1798 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1799 * lra-remat.c: Include function-abi.h.
1800 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1801 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1802 registers and bitmap_view to combine them into dead_regs.
1803 (call_used_input_regno_present_p): Take a function_abi argument
1804 and use it to test whether a register is call-clobbered.
1805 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1806 call insn target. Update tje call to call_used_input_regno_present_p.
1807 (do_remat): Likewise.
1808 (lra_remat): Remove the initialization of call_used_regs_arr_len
1809 and call_used_regs_arr.
1810
1811 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1812
1813 * loop-iv.c: Include regs.h and function-abi.h.
1814 (simplify_using_initial_values): Use insn_callee_abi to get the
1815 ABI of the call insn target. Conservatively assume that
1816 partially-clobbered registers are altered.
1817
1818 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1819
1820 * function-abi.h (call_clobbers_in_region): Declare.
1821 (call_clobbered_in_region_p): New function.
1822 * function-abi.cc (call_clobbers_in_region): Likewise.
1823 * ira-int.h: Include function-abi.h.
1824 (ira_allocno::crossed_calls_abis): New field.
1825 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1826 (ira_need_caller_save_regs): New function.
1827 (ira_need_caller_save_p): Likewise.
1828 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1829 of call_used_or_fixed_regs.
1830 (do_reload): Use crtl->abi to test whether the current function
1831 needs to save a register in the prologue. Count registers that
1832 need to be saved rather than registers that don't.
1833 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1834 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1835 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1836 (propagate_some_info_from_allocno): Likewise.
1837 (copy_info_to_removed_store_destinations): Likewise.
1838 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1839 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1840 (ira_build): Use ira_need_caller_save_regs instead of
1841 call_used_or_fixed_regs.
1842 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1843 whether the current function would need to save a register
1844 before using it.
1845 (calculate_spill_cost): Likewise.
1846 (allocno_reload_assign): Use ira_need_caller_save_regs and
1847 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1848 * ira-conflicts.c (ira_build_conflicts): Use
1849 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1850 as the set of call-clobbered registers. Remove the
1851 call_used_or_fixed_regs mask from the calculation of
1852 temp_hard_reg_set and mask its use instead. Remove special
1853 handling of partially-clobbered registers.
1854 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1855 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1856 calculate the set of conflicting registers for calls that
1857 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1858 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1859 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1860 Use eh_edge_abi to calculate the set of registers that could
1861 be clobbered by an EH edge. Include partially-clobbered as
1862 well as fully-clobbered registers.
1863
1864 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1865
1866 * haifa-sched.c: Include function-abi.h.
1867 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1868 the function would need to save a register before using it.
1869
1870 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1871
1872 * gcse.c: Include function-abi.h.
1873 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1874 the call insn target. Invalidate partially call-clobbered
1875 registers as well as fully call-clobbered ones.
1876
1877 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1878
1879 * function.c (aggregate_value_p): Work out which ABI the
1880 function is using before testing which registers are at least
1881 partly preserved by a call.
1882
1883 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1884
1885 * early-remat.c: Include regs.h and function-abi.h.
1886 (early_remat::maybe_add_candidate): Don't check for call-clobbered
1887 registers here.
1888 (early_remat::restrict_remat_for_unavail_regs): New function.
1889 (early_remat::restrict_remat_for_call): Likewise.
1890 (early_remat::process_block): Before calling emit_remat_insns
1891 for a previous call in the block, invalidate any candidates
1892 that would clobber call-preserved registers.
1893 (early_remat::emit_remat_insns_for_block): Likewise for the
1894 final call in a block. Do the same thing for live-in registers
1895 when calling emit_remat_insns at the head of a block.
1896
1897 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1898
1899 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1900 whether the current function needs to save at least part of a
1901 register before using it.
1902 (df_get_exit_block_use_set): Likewise for epilogue restores.
1903
1904 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1905
1906 * df-problems.c: Include regs.h and function-abi.h.
1907 (df_rd_problem_data): Rename sparse_invalidated_by_call to
1908 sparse_invalidated_by_eh and dense_invalidated_by_call to
1909 dense_invalidated_by_eh.
1910 (df_print_bb_index): Update accordingly.
1911 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1912 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1913 that are clobbered by an EH edge. Clobber partially-clobbered
1914 registers as well as fully-clobbered ones.
1915 (df_md_confluence_n): Likewise.
1916 (df_rd_local_compute): Likewise. Update for changes to
1917 df_rd_problem_data.
1918 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1919 of registers that are clobbered by an EH edge. Includde partially-
1920 clobbered registers as well as fully-clobbered ones.
1921
1922 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1923
1924 * cselib.c (cselib_process_insn): If we know what mode a
1925 register was set in, check whether it is clobbered in that
1926 mode by a call. Only fall back to reg_raw_mode if that fails.
1927
1928 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1929
1930 * cse.c: Include regs.h and function-abi.h.
1931 (invalidate_for_call): Take the call insn as an argument.
1932 Use insn_callee_abi to get the ABI of the call and invalidate
1933 partially clobbered registers as well as fully clobbered ones.
1934 (cse_insn): Update call accordingly.
1935
1936 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1937
1938 * combine.c: Include function-abi.h.
1939 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1940 of the target of call insns. Invalidate partially-clobbered
1941 registers as well as fully-clobbered ones.
1942
1943 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1944
1945 * cfgloopanal.c: Include regs.h and function-abi.h.
1946 (init_set_costs): Use default_function_abi to test whether
1947 a general register is call-clobbered.
1948
1949 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1950
1951 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
1952 instead of the call-clobbered sets.
1953
1954 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1955
1956 * caller-save.c (setup_save_areas): Remove redundant |s of
1957 fixed_reg_set.
1958 (save_call_clobbered_regs): Likewise. Use the call ABI rather
1959 than call_used_or_fixed_regs to decide whether a REG_RETURNED
1960 value is useful.
1961
1962 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1963
1964 * rtl.h (predefined_function_abi): Declare.
1965 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1966 instead of a boolean call_save flag.
1967 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
1968 accordingly.
1969 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1970 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1971 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
1972 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1973 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1974 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
1975 * reginfo.c (init_reg_modes_target): Likewise.
1976 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
1977 instead of a boolean call_save flag.
1978 * targhooks.c: Include function-abi.h.
1979 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
1980 using eh_edge_abi to choose the mode.
1981
1982 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1983
1984 * target.def (hard_regno_call_part_clobbered): Take an ABI
1985 identifier instead of an rtx_insn.
1986 * doc/tm.texi: Regenerate.
1987 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
1988 (hook_bool_uint_uint_mode_false): New function.
1989 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
1990 (hook_bool_uint_uint_mode_false): New function.
1991 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1992 Take an ABI identifier instead of an rtx_insn.
1993 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
1994 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
1995 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
1996 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
1997 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
1998 Likewise.
1999 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2000 * cselib.c: Include function-abi.h.
2001 (cselib_process_insn): Update call to
2002 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2003 to get the appropriate ABI identifier.
2004 * function-abi.cc (predefined_function_abi::initialize): Update call
2005 to targetm.hard_regno_call_part_clobbered.
2006 * ira-conflicts.c (ira_build_conflicts): Likewise.
2007 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2008 * lra-constraints.c: Include function-abi.h.
2009 (need_for_call_save_p): Update call to
2010 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2011 to get the appropriate ABI identifier.
2012 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2013 * regcprop.c (copyprop_hardreg_forward_1): Update call
2014 to targetm.hard_regno_call_part_clobbered.
2015 * reginfo.c (choose_hard_reg_mode): Likewise.
2016 * regrename.c (check_new_reg_p): Likewise.
2017 * reload.c (find_equiv_reg): Likewise.
2018 * reload1.c (emit_reload_insns): Likewise.
2019 * sched-deps.c: Include function-abi.h.
2020 (deps_analyze_insn): Update call to
2021 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2022 to get the appropriate ABI identifier.
2023 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2024 call to targetm.hard_regno_call_part_clobbered.
2025 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2026
2027 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2028
2029 * config/i386/i386.c: Include function-abi.h.
2030 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2031 if they preserve some 256-bit or 512-bit SSE registers.
2032
2033 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2034
2035 * target.def (insn_callee_abi): New hook.
2036 (remove_extra_call_preserved_regs): Delete.
2037 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2038 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2039 * doc/tm.texi: Regenerate.
2040 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2041 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2042 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2043 insn argument.
2044 (aarch64_remove_extra_call_preserved_regs): Delete.
2045 (aarch64_insn_callee_abi): New function.
2046 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2047 (TARGET_INSN_CALLEE_ABI): New macro.
2048 * rtl.h (get_call_fndecl): Declare.
2049 (cgraph_rtl_info): Fix formatting. Tweak comment for
2050 function_used_regs. Remove function_used_regs_valid.
2051 * rtlanal.c (get_call_fndecl): Moved from final.c
2052 * function-abi.h (insn_callee_abi): Declare.
2053 (target_function_abi_info): Mention insn_callee_abi.
2054 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2055 way to get_call_reg_set_usage did.
2056 (insn_callee_abi): New function.
2057 * regs.h (get_call_reg_set_usage): Delete.
2058 * final.c: Include function-abi.h.
2059 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2060 function_used_regs before the main loop rather than afterwards.
2061 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2062 if function_used_regs ends up not being useful.
2063 (get_call_fndecl): Move to rtlanal.c
2064 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2065 * caller-save.c: Include function-abi.h.
2066 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2067 instead of get_call_reg_set_usage.
2068 * cfgcleanup.c: Include function-abi.h.
2069 (old_insns_match_p): Use insn_callee_abi instead of
2070 get_call_reg_set_usage.
2071 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2072 a tree.
2073 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2074 function_used_regs.
2075 * df-scan.c: Include function-abi.h.
2076 (df_get_call_refs): Use insn_callee_abi instead of
2077 get_call_reg_set_usage.
2078 * ira-lives.c: Include function-abi.h.
2079 (process_bb_node_lives): Use insn_callee_abi instead of
2080 get_call_reg_set_usage.
2081 * lra-lives.c: Include function-abi.h.
2082 (process_bb_lives): Use insn_callee_abi instead of
2083 get_call_reg_set_usage.
2084 * postreload.c: Include function-abi.h.
2085 (reload_combine): Use insn_callee_abi instead of
2086 get_call_reg_set_usage.
2087 * regcprop.c: Include function-abi.h.
2088 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2089 get_call_reg_set_usage.
2090 * resource.c: Include function-abi.h.
2091 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2092 instead of get_call_reg_set_usage.
2093 * var-tracking.c: Include function-abi.h.
2094 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2095 get_call_reg_set_usage.
2096
2097 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2098
2099 * target.def (fntype_abi): New target hook.
2100 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2101 * doc/tm.texi: Regenerate.
2102 * target.h (predefined_function_abi): Declare.
2103 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2104 if defined.
2105 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2106 * config/aarch64/aarch64.c: Include function-abi.h.
2107 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2108 (TARGET_FNTYPE_ABI): Define.
2109
2110 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2111
2112 * Makefile.in (OBJS): Add function-abi.o.
2113 (GTFILES): Add function-abi.h.
2114 * function-abi.cc: New file.
2115 * function-abi.h: Likewise.
2116 * emit-rtl.h (rtl_data::abi): New field.
2117 * function.c: Include function-abi.h.
2118 (prepare_function_start): Initialize crtl->abi.
2119 * read-rtl-function.c: Include regs.h and function-abi.h.
2120 (read_rtl_function_body): Initialize crtl->abi.
2121 (read_rtl_function_body_from_file_range): Likewise.
2122 * reginfo.c: Include function-abi.h.
2123 (init_reg_sets_1): Initialize default_function_abi.
2124 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2125 when making a register global.
2126 * target-globals.h (this_target_function_abi_info): Declare.
2127 (target_globals::function_abi_info): New field.
2128 (restore_target_globals): Copy it.
2129 * target-globals.c: Include function-abi.h.
2130 (default_target_globals): Initialize the function_abi_info field.
2131 (target_globals): Allocate it.
2132 (save_target_globals): Free it.
2133
2134 2019-09-30 Nick Clifton <nickc@redhat.com>
2135
2136 PR target/85978
2137 * config/frv/frv.c (frv_register_move_cost): Add break statements
2138 to avoid falling through to the wrong cases. Tidy code.
2139
2140 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2141
2142 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2143 For multi-registers modes, test how big each register part is.
2144
2145 2019-09-30 Nick Clifton <nickc@redhat.com>
2146
2147 PR target/59205
2148 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2149 (TARGET_ASM_SELECT_SECTION): Remove definition.
2150 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2151
2152 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2153
2154 * emit-rtl.c (init_raw_REG): New function.
2155 (gen_raw_REG): Use init_raw_REG.
2156 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2157 macros.
2158 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2159 * rtl.h (rtx_init): New function.
2160 (rtx_alloca): New function.
2161 (init_raw_REG): New function.
2162 (alloca_raw_REG): New macro.
2163
2164 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2165
2166 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2167 (pcrel_local_address): Replace pcrel_address predicate, use the
2168 new function address_to_insn_form.
2169 (pcrel_external_address): Replace with new implementation using
2170 address_to_insn_form..
2171 (prefixed_mem_operand): Delete predicate which is now unused.
2172 (pcrel_external_mem_operand): Delete predicate which is now
2173 unused.
2174 * config/rs6000/rs6000-protos.h (enum insn_form): New
2175 enumeration.
2176 (enum non_prefixed_form): New enumeration.
2177 (address_to_insn_form): New declaration.
2178 (prefixed_load_p): New declaration.
2179 (prefixed_store_p): New declaration.
2180 (prefixed_paddi_p): New declaration.
2181 (rs6000_asm_output_opcode): New declaration.
2182 (rs6000_final_prescan_insn): Move declaration and update calling
2183 signature.
2184 (address_is_prefixed): New helper inline function.
2185 * config/rs6000/rs6000.c(print_operand_address): Check for either
2186 PC-relative local symbols or PC-relative external symbols.
2187 (rs6000_emit_move): Support loading PC-relative addresses.
2188 (mode_supports_prefixed_address_p): Delete, no longer used.
2189 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2190 (address_to_insn_form): New function to decode an address format.
2191 (reg_to_non_prefixed): New function to identify what the
2192 non-prefixed memory instruction format is for a register.
2193 (prefixed_load_p): New function to identify prefixed loads.
2194 (prefixed_store_p): New function to identify prefixed stores.
2195 (prefixed_paddi_p): New function to identify prefixed load
2196 immediates.
2197 (next_insn_prefixed_p): New static state variable.
2198 (rs6000_final_prescan_insn): New function to determine if an insn
2199 uses a prefixed instruction.
2200 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2201 prefixed instruction.
2202 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2203 (ASM_OUTPUT_OPCODE): New target hook.
2204 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2205 prefixed instructions.
2206 (prefixed_length): New insn attribute for the size of prefixed
2207 instructions.
2208 (non_prefixed_length): New insn attribute for the size of
2209 non-prefixed instructions.
2210 (pcrel_local_addr): New insn to load up a local PC-relative
2211 address.
2212 (pcrel_extern_addr): New insn to load up an external PC-relative
2213 address.
2214 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2215 GPR and loading a 128-bit floating point type to a GPR.
2216
2217 2019-09-30 Richard Biener <rguenther@suse.de>
2218
2219 * gimple.c (gimple_get_lhs): For PHIs return the result.
2220 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2221 SLP instance as argument.
2222 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2223 double-reduction PHIs with vectorizable_lc_phi.
2224 (vect_analyze_loop_operations): Adjust.
2225 (vect_create_epilog_for_reduction): Remove all code not dealing
2226 with reduction LC PHI or epilogue generation.
2227 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2228 for live stmts of reductions.
2229 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2230 do not handle defs that are not vect_internal_def.
2231 (can_vectorize_live_stmts): Adjust.
2232 (vect_analyze_stmt): When the vectorized stmt defined a value
2233 used on backedges adjust the backedge uses of vectorized PHIs.
2234
2235 2019-09-30 Martin Jambor <mjambor@suse.cz>
2236
2237 PR ipa/91853
2238 * tree-inline.c (force_value_to_type): New function.
2239 (setup_one_parameter): Use force_value_to_type to convert type.
2240 * tree-inline.c (force_value_to_type): Declare.
2241 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2242 with register type mismatches.
2243
2244 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2245
2246 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2247 32-bit PowerPC.
2248 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2249 * config/rs6000/t-freebsd64: Make use of the above define and build
2250 the 32-bit libraries with secure-plt.
2251
2252 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2253
2254 PR target/91931
2255 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2256 gen_int_mode instead of GEN_INT.
2257
2258 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2259
2260 * config/darwin.c (gen_macho_low): Amend to include the mode
2261 argument.
2262 (machopic_indirect_data_reference): Amend gen_macho_low call
2263 to include mode argument
2264 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2265 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2266 the macho_high expander and two define_insn entries.
2267
2268 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2269
2270 PR bootstrap/90543
2271 * optc-save-gen.awk: Fix up printing string option differences.
2272
2273 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2274
2275 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2276 vec_perm cost to 1 for non-Power7 VSX architectures.
2277
2278 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2279
2280 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2281 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2282 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2283
2284 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2285
2286 * config/darwin.c (gen_macho_high): Amend to include the mode
2287 argument.
2288 (machopic_indirect_data_reference): Amend gen_macho_high call
2289 to include mode argument.
2290 (machopic_legitimize_pic_address): Likewise.
2291 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2292 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2293 the macho_high expander and two define_insn entries.
2294
2295 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2296
2297 PR target/86805
2298 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2299
2300 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2301
2302 PR target/80672
2303 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2304 std::string::compare instead of std::string::find.
2305
2306 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2307
2308 * configure: Regenerate.
2309
2310 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2311
2312 PR middle-end/91920
2313 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2314 variables as shared.
2315
2316 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2317
2318 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2319 replaces the expander and two define_insn entries.
2320 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2321 call.
2322 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2323
2324 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2325
2326 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2327 (fibonacci_heap::nodes): Likewise.
2328 (fibonacci_heap::min_key): Likewise.
2329 (fibonacci_heap::min): Likewise.
2330
2331 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2332
2333 * cgraph.c (cgraph_node::get_fun): Make const.
2334 * cgraph.h (cgraph_node::get_fun): Likewise.
2335
2336 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2337
2338 PR target/91919
2339 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2340 of SImode MULT.
2341
2342 2019-09-27 Richard Biener <rguenther@suse.de>
2343
2344 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2345 (STMT_VINFO_REDUC_FN): Likewise.
2346 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2347 STMT_VINFO_REDUC_FN.
2348 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2349 for condition reductions.
2350 (vect_create_epilog_for_reduction): Compute all required state
2351 from the stmt to be vectorized.
2352 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2353 invocation and remove then dead code. For single def-use chains
2354 record only a single vector stmt.
2355
2356 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2357
2358 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2359 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2360 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2361 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2362 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2363 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2364 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2365 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2366 (aarch64_general_builtin_rsqrt): Declare.
2367 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2368 New function.
2369 (aarch64_mangle_builtin_type): Rename to...
2370 (aarch64_general_mangle_builtin_type): ...this.
2371 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2372 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2373 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2374 aarch64_general_add_builtin instead of add_builtin_function.
2375 (aarch64_init_builtins): Rename to...
2376 (aarch64_general_init_builtins): ...this. Use
2377 aarch64_general_add_builtin instead of add_builtin_function.
2378 (aarch64_builtin_decl): Rename to...
2379 (aarch64_general_builtin_decl): ...this and remove the unused
2380 arguments.
2381 (aarch64_expand_builtin): Rename to...
2382 (aarch64_general_expand_builtin): ...this and remove the unused
2383 arguments.
2384 (aarch64_builtin_rsqrt): Rename to...
2385 (aarch64_general_builtin_rsqrt): ...this.
2386 (aarch64_fold_builtin): Rename to...
2387 (aarch64_general_fold_builtin): ...this. Take the function subcode
2388 and return type as arguments. Remove the "ignored" argument.
2389 (aarch64_gimple_fold_builtin): Rename to...
2390 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2391 subcode and gcall as arguments, and return the new function call.
2392 * config/aarch64/aarch64.c (aarch64_init_builtins)
2393 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2394 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2395 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2396 instead of aarch64_builtin_rsqrt.
2397 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2398 instead of aarch64_mangle_builtin_type.
2399
2400 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2401
2402 * target.def (check_builtin_call): New target hook.
2403 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2404 * doc/tm.texi: Regenerate.
2405
2406 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2407
2408 PR tree-optimization/91909
2409 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2410 reduc_index parameter. When handling COND_REDUCTION, make sure
2411 that the reduction phi operand is in the correct arm of the
2412 VEC_COND_EXPR.
2413 (vectorizable_reduction): Pass reduc_index to the above.
2414
2415 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2416
2417 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2418 New combine pattern.
2419
2420 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2421
2422 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2423 loop instruction into new basic block before the loop when basic
2424 block that precedes the loop is empty.
2425
2426 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2427
2428 * function.c (gimplify_parameters): Use build_clobber function.
2429 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2430 * tree-inline.c (expand_call_inline): Likewise.
2431 * tree-sra.c (clobber_subtree): Likewise.
2432 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2433 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2434 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2435 lower_omp_target): Likewise.
2436 * omp-expand.c (expand_omp_for_generic): Likewise.
2437 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2438
2439 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2440
2441 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2442 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2443 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2444 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2445 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2446 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2447 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2448 LD_ELEMREV_V16QI): Use the PURE attribute.
2449
2450 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2451
2452 * config/rs6000/darwin.md: Replace the expanders for
2453 load_macho_picbase and reload_macho_picbase with use of '@'
2454 and <mode> in their respective define_insns.
2455 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2456 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2457 Pmode to gen_load_macho_picbase.
2458 * config/rs6000/rs6000.md: Likewise.
2459
2460 2019-09-25 Richard Biener <rguenther@suse.de>
2461
2462 PR tree-optimization/91896
2463 * tree-vect-loop.c (vectorizable_reduction): The single
2464 def-use cycle optimization cannot apply when there's more
2465 than one pattern stmt involved.
2466
2467 2019-09-26 Richard Biener <rguenther@suse.de>
2468
2469 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2470 loop-closed PHIs that are vect_internal_def.
2471 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2472 Simplify.
2473 (vectorizable_lc_phi): New.
2474 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2475 (vect_transform_stmt): Likewise.
2476 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2477 (vectorizable_lc_phi): Declare.
2478
2479 2019-09-26 Richard Biener <rguenther@suse.de>
2480
2481 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2482 vectorizable_reduction for vect_double_reduction_def.
2483 (vect_transform_loop): Likewise.
2484 (vect_create_epilog_for_reduction): Move double-reduction
2485 PHI creation and preheader argument setting of PHIs ...
2486 (vectorizable_reduction): ... here. Also process
2487 vect_double_reduction_def PHIs, creating the vectorized
2488 PHI nodes, remembering the scalar adjustment computed for
2489 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2490 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2491 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2492 Initialize STMT_VINFO_REDUC_CODE.
2493 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2494 (_stmt_vec_info::reduc_code): Likewise.
2495 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2496 (STMT_VINFO_REDUC_CODE): Likewise.
2497
2498 2019-09-26 Matt Turner <mattst88@gmail.com>
2499
2500 PR driver/69471
2501 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2502 (mtune=): Add Negative(mtune=).
2503 (mcpu=): Add Negative(mcpu=).
2504 * config/arm/arm.opt: Likewise.
2505
2506 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2507
2508 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2509 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2510 Define.
2511 * config/arm/arm_acle.h: Define builtins for the above.
2512 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2513 (simd32_op): Handle the above.
2514 * config/arm/unspecs.md: Define unspecs for the above.
2515
2516 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2517
2518 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2519 (arm_<sup>xtb16): Likewise.
2520 (arm_usada8): Likewise.
2521 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2522 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2523 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2524 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2525 __sxtb16, __uxtab16, __uxtb16): Define.
2526 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2527 * config/arm/unspecs.md: Define unspecs for the above.
2528 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2529 (USXTB16): Likewise.
2530 (simd32_op): New int_attribute.
2531 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2532 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2533
2534 2019-09-26 Martin Jambor <mjambor@suse.cz>
2535
2536 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2537 internal_error.
2538
2539 2019-09-26 Martin Jambor <mjambor@suse.cz>
2540
2541 * ipa-sra.c (process_scan_results): Fix continue condition.
2542
2543 2019-09-26 Martin Liska <mliska@suse.cz>
2544
2545 PR tree-optimization/91885
2546 * tree-vectorizer.c (try_vectorize_loop_1): Add
2547 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2548
2549 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2550
2551 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2552 aarch64_plus_immediate rather than aarch64_uimm12_shift
2553 to test for valid PLUS immediates.
2554
2555 2019-09-25 Martin Jambor <mjambor@suse.cz>
2556
2557 * tree-sra.c (no_accesses_p): Remove.
2558 (no_accesses_representant): Likewise.
2559
2560 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2561
2562 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2563 consistenly.
2564 (vaba_s16): Likewise.
2565 (vaba_s32): Likewise.
2566 (vaba_u8): Likewise.
2567 (vaba_u16): Likewise.
2568 (vaba_u32): Likewise.
2569 (vabal_high_s8): Likewise.
2570 (vabal_high_s16): Likewise.
2571 (vabal_high_s32): Likewise.
2572 (vabal_high_u8): Likewise.
2573 (vabal_high_u16): Likewise.
2574 (vabal_high_u32): Likewise.
2575 (vabal_s8): Likewise.
2576 (vabal_s16): Likewise.
2577 (vabal_s32): Likewise.
2578 (vabal_u8): Likewise.
2579 (vabal_u16): Likewise.
2580 (vabal_u32): Likewise.
2581 (vabaq_s8): Likewise.
2582 (vabaq_s16): Likewise.
2583 (vabaq_s32): Likewise.
2584 (vabaq_u8): Likewise.
2585 (vabaq_u16): Likewise.
2586 (vabaq_u32): Likewise.
2587 (vabd_s8): Likewise.
2588 (vabd_s16): Likewise.
2589 (vabd_s32): Likewise.
2590 (vabd_u8): Likewise.
2591 (vabd_u16): Likewise.
2592 (vabd_u32): Likewise.
2593 (vabdl_high_s8): Likewise.
2594 (vabdl_high_s16): Likewise.
2595 (vabdl_high_s32): Likewise.
2596 (vabdl_high_u8): Likewise.
2597 (vabdl_high_u16): Likewise.
2598 (vabdl_high_u32): Likewise.
2599 (vabdl_s8): Likewise.
2600 (vabdl_s16): Likewise.
2601 (vabdl_s32): Likewise.
2602 (vabdl_u8): Likewise.
2603 (vabdl_u16): Likewise.
2604 (vabdl_u32): Likewise.
2605 (vabdq_s8): Likewise.
2606 (vabdq_s16): Likewise.
2607 (vabdq_s32): Likewise.
2608 (vabdq_u8): Likewise.
2609 (vabdq_u16): Likewise.
2610 (vabdq_u32): Likewise.
2611 (vaddlv_s8): Likewise.
2612 (vaddlv_s16): Likewise.
2613 (vaddlv_u8): Likewise.
2614 (vaddlv_u16): Likewise.
2615 (vaddlvq_s8): Likewise.
2616 (vaddlvq_s16): Likewise.
2617 (vaddlvq_s32): Likewise.
2618 (vaddlvq_u8): Likewise.
2619 (vaddlvq_u16): Likewise.
2620 (vaddlvq_u32): Likewise.
2621 (vcvtx_f32_f64): Likewise.
2622 (vcvtx_high_f32_f64): Likewise.
2623 (vcvtxd_f32_f64): Likewise.
2624 (vmla_n_f32): Likewise.
2625 (vmla_n_s16): Likewise.
2626 (vmla_n_s32): Likewise.
2627 (vmla_n_u16): Likewise.
2628 (vmla_n_u32): Likewise.
2629 (vmla_s8): Likewise.
2630 (vmla_s16): Likewise.
2631 (vmla_s32): Likewise.
2632 (vmla_u8): Likewise.
2633 (vmla_u16): Likewise.
2634 (vmla_u32): Likewise.
2635 (vmlal_high_n_s16): Likewise.
2636 (vmlal_high_n_s32): Likewise.
2637 (vmlal_high_n_u16): Likewise.
2638 (vmlal_high_n_u32): Likewise.
2639 (vmlal_high_s8): Likewise.
2640 (vmlal_high_s16): Likewise.
2641 (vmlal_high_s32): Likewise.
2642 (vmlal_high_u8): Likewise.
2643 (vmlal_high_u16): Likewise.
2644 (vmlal_high_u32): Likewise.
2645 (vmlal_n_s16): Likewise.
2646 (vmlal_n_s32): Likewise.
2647 (vmlal_n_u16): Likewise.
2648 (vmlal_n_u32): Likewise.
2649 (vmlal_s8): Likewise.
2650 (vmlal_s16): Likewise.
2651 (vmlal_s32): Likewise.
2652 (vmlal_u8): Likewise.
2653 (vmlal_u16): Likewise.
2654 (vmlal_u32): Likewise.
2655 (vmlaq_n_f32): Likewise.
2656 (vmlaq_n_s16): Likewise.
2657 (vmlaq_n_s32): Likewise.
2658 (vmlaq_n_u16): Likewise.
2659 (vmlaq_n_u32): Likewise.
2660 (vmlaq_s8): Likewise.
2661 (vmlaq_s16): Likewise.
2662 (vmlaq_s32): Likewise.
2663 (vmlaq_u8): Likewise.
2664 (vmlaq_u16): Likewise.
2665 (vmlaq_u32): Likewise.
2666 (vmls_n_f32): Likewise.
2667 (vmls_n_s16): Likewise.
2668 (vmls_n_s32): Likewise.
2669 (vmls_n_u16): Likewise.
2670 (vmls_n_u32): Likewise.
2671 (vmls_s8): Likewise.
2672 (vmls_s16): Likewise.
2673 (vmls_s32): Likewise.
2674 (vmls_u8): Likewise.
2675 (vmls_u16): Likewise.
2676 (vmls_u32): Likewise.
2677 (vmlsl_high_n_s16): Likewise.
2678 (vmlsl_high_n_s32): Likewise.
2679 (vmlsl_high_n_u16): Likewise.
2680 (vmlsl_high_n_u32): Likewise.
2681 (vmlsl_high_s8): Likewise.
2682 (vmlsl_high_s16): Likewise.
2683 (vmlsl_high_s32): Likewise.
2684 (vmlsl_high_u8): Likewise.
2685 (vmlsl_high_u16): Likewise.
2686 (vmlsl_high_u32): Likewise.
2687 (vmlsl_n_s16): Likewise.
2688 (vmlsl_n_s32): Likewise.
2689 (vmlsl_n_u16): Likewise.
2690 (vmlsl_n_u32): Likewise.
2691 (vmlsl_s8): Likewise.
2692 (vmlsl_s16): Likewise.
2693 (vmlsl_s32): Likewise.
2694 (vmlsl_u8): Likewise.
2695 (vmlsl_u16): Likewise.
2696 (vmlsl_u32): Likewise.
2697 (vmlsq_n_f32): Likewise.
2698 (vmlsq_n_s16): Likewise.
2699 (vmlsq_n_s32): Likewise.
2700 (vmlsq_n_u16): Likewise.
2701 (vmlsq_n_u32): Likewise.
2702 (vmlsq_s8): Likewise.
2703 (vmlsq_s16): Likewise.
2704 (vmlsq_s32): Likewise.
2705 (vmlsq_u8): Likewise.
2706 (vmlsq_u16): Likewise.
2707 (vmlsq_u32): Likewise.
2708 (vmovl_high_s8): Likewise.
2709 (vmovl_high_s16): Likewise.
2710 (vmovl_high_s32): Likewise.
2711 (vmovl_high_u8): Likewise.
2712 (vmovl_high_u16): Likewise.
2713 (vmovl_high_u32): Likewise.
2714 (vmovl_s8): Likewise.
2715 (vmovl_s16): Likewise.
2716 (vmovl_s32): Likewise.
2717 (vmovl_u8): Likewise.
2718 (vmovl_u16): Likewise.
2719 (vmovl_u32): Likewise.
2720 (vmovn_high_s16): Likewise.
2721 (vmovn_high_s32): Likewise.
2722 (vmovn_high_s64): Likewise.
2723 (vmovn_high_u16): Likewise.
2724 (vmovn_high_u32): Likewise.
2725 (vmovn_high_u64): Likewise.
2726 (vmovn_s16): Likewise.
2727 (vmovn_s32): Likewise.
2728 (vmovn_s64): Likewise.
2729 (vmovn_u16): Likewise.
2730 (vmovn_u32): Likewise.
2731 (vmovn_u64): Likewise.
2732 (vmull_high_n_s16): Likewise.
2733 (vmull_high_n_s32): Likewise.
2734 (vmull_high_n_u16): Likewise.
2735 (vmull_high_n_u32): Likewise.
2736 (vmull_high_p8): Likewise.
2737 (vmull_high_s8): Likewise.
2738 (vmull_high_s16): Likewise.
2739 (vmull_high_s32): Likewise.
2740 (vmull_high_u8): Likewise.
2741 (vmull_high_u16): Likewise.
2742 (vmull_high_u32): Likewise.
2743 (vmull_n_s16): Likewise.
2744 (vmull_n_s32): Likewise.
2745 (vmull_n_u16): Likewise.
2746 (vmull_n_u32): Likewise.
2747 (vmull_p8): Likewise.
2748 (vmull_s8): Likewise.
2749 (vmull_s16): Likewise.
2750 (vmull_s32): Likewise.
2751 (vmull_u8): Likewise.
2752 (vmull_u16): Likewise.
2753 (vmull_u32): Likewise.
2754 (vpadal_s8): Likewise.
2755 (vpadal_s16): Likewise.
2756 (vpadal_s32): Likewise.
2757 (vpadal_u8): Likewise.
2758 (vpadal_u16): Likewise.
2759 (vpadal_u32): Likewise.
2760 (vpadalq_s8): Likewise.
2761 (vpadalq_s16): Likewise.
2762 (vpadalq_s32): Likewise.
2763 (vpadalq_u8): Likewise.
2764 (vpadalq_u16): Likewise.
2765 (vpadalq_u32): Likewise.
2766 (vpaddl_s8): Likewise.
2767 (vpaddl_s16): Likewise.
2768 (vpaddl_s32): Likewise.
2769 (vpaddl_u8): Likewise.
2770 (vpaddl_u16): Likewise.
2771 (vpaddl_u32): Likewise.
2772 (vpaddlq_s8): Likewise.
2773 (vpaddlq_s16): Likewise.
2774 (vpaddlq_s32): Likewise.
2775 (vpaddlq_u8): Likewise.
2776 (vpaddlq_u16): Likewise.
2777 (vpaddlq_u32): Likewise.
2778 (vpaddq_s8): Likewise.
2779 (vpaddq_s16): Likewise.
2780 (vpaddq_s32): Likewise.
2781 (vpaddq_s64): Likewise.
2782 (vpaddq_u8): Likewise.
2783 (vpaddq_u16): Likewise.
2784 (vpaddq_u32): Likewise.
2785 (vpaddq_u64): Likewise.
2786 (vqdmulh_n_s16): Likewise.
2787 (vqdmulh_n_s32): Likewise.
2788 (vqdmulhq_n_s16): Likewise.
2789 (vqdmulhq_n_s32): Likewise.
2790 (vqmovn_high_s16): Likewise.
2791 (vqmovn_high_s32): Likewise.
2792 (vqmovn_high_s64): Likewise.
2793 (vqmovn_high_u16): Likewise.
2794 (vqmovn_high_u32): Likewise.
2795 (vqmovn_high_u64): Likewise.
2796 (vqmovun_high_s16): Likewise.
2797 (vqmovun_high_s32): Likewise.
2798 (vqmovun_high_s64): Likewise.
2799 (vqrdmulh_n_s16): Likewise.
2800 (vqrdmulh_n_s32): Likewise.
2801 (vqrdmulhq_n_s16): Likewise.
2802 (vqrdmulhq_n_s32): Likewise.
2803 (vrsqrte_u32): Likewise.
2804 (vrsqrteq_u32): Likewise.
2805 (vtst_p8): Likewise.
2806 (vtst_p16): Likewise.
2807 (vtst_p64): Likewise.
2808 (vtstq_p8): Likewise.
2809 (vtstq_p16): Likewise.
2810 (vtstq_p64): Likewise.
2811 (vaddlv_s32): Likewise.
2812 (vaddlv_u32): Likewise.
2813 (vqtbl1_p8): Likewise.
2814 (vqtbl1_s8): Likewise.
2815 (vqtbl1_u8): Likewise.
2816 (vqtbl1q_p8): Likewise.
2817 (vqtbl1q_s8): Likewise.
2818 (vqtbl1q_u8): Likewise.
2819 (vqtbx1_s8): Likewise.
2820 (vqtbx1_u8): Likewise.
2821 (vqtbx1_p8): Likewise.
2822 (vqtbx1q_s8): Likewise.
2823 (vqtbx1q_u8): Likewise.
2824 (vqtbx1q_p8): Likewise.
2825 (vtbl1_s8): Likewise.
2826 (vtbl1_u8): Likewise.
2827 (vtbl1_p8): Likewise.
2828 (vtbl2_s8): Likewise.
2829 (vtbl2_u8): Likewise.
2830 (vtbl2_p8): Likewise.
2831 (vtbl3_s8): Likewise.
2832 (vtbl3_u8): Likewise.
2833 (vtbl3_p8): Likewise.
2834 (vtbl4_s8): Likewise.
2835 (vtbl4_u8): Likewise.
2836 (vtbl4_p8): Likewise.
2837 (vtbx2_s8): Likewise.
2838 (vtbx2_u8): Likewise.
2839 (vtbx2_p8): Likewise.
2840 (vld1_f32): Likewise.
2841 (vld1_f64): Likewise.
2842 (vld1_p8): Likewise.
2843 (vld1_p16): Likewise.
2844 (vld1_p64): Likewise.
2845 (vld1_s8): Likewise.
2846 (vld1_s16): Likewise.
2847 (vld1_s32): Likewise.
2848 (vld1_s64): Likewise.
2849 (vld1_u8): Likewise.
2850 (vld1_u16): Likewise.
2851 (vld1_u32): Likewise.
2852 (vld1_u64): Likewise.
2853 (vld1q_f32): Likewise.
2854 (vld1q_f64): Likewise.
2855 (vld1q_p8): Likewise.
2856 (vld1q_p16): Likewise.
2857 (vld1q_p64): Likewise.
2858 (vld1q_s8): Likewise.
2859 (vld1q_s16): Likewise.
2860 (vld1q_s32): Likewise.
2861 (vld1q_s64): Likewise.
2862 (vld1q_u8): Likewise.
2863 (vld1q_u16): Likewise.
2864 (vld1q_u32): Likewise.
2865 (vld1q_u64): Likewise.
2866 (vpmax_s8): Likewise.
2867 (vpmax_s16): Likewise.
2868 (vpmax_s32): Likewise.
2869 (vpmax_u8): Likewise.
2870 (vpmax_u16): Likewise.
2871 (vpmax_u32): Likewise.
2872 (vpmaxq_s8): Likewise.
2873 (vpmaxq_s16): Likewise.
2874 (vpmaxq_s32): Likewise.
2875 (vpmaxq_u8): Likewise.
2876 (vpmaxq_u16): Likewise.
2877 (vpmaxq_u32): Likewise.
2878 (vpmax_f32): Likewise.
2879 (vpmaxq_f32): Likewise.
2880 (vpmaxq_f64): Likewise.
2881 (vpmaxqd_f64): Likewise.
2882 (vpmaxs_f32): Likewise.
2883 (vpmaxnm_f32): Likewise.
2884 (vpmaxnmq_f32): Likewise.
2885 (vpmaxnmq_f64): Likewise.
2886 (vpmaxnmqd_f64): Likewise.
2887 (vpmaxnms_f32): Likewise.
2888 (vpmin_s8): Likewise.
2889 (vpmin_s16): Likewise.
2890 (vpmin_s32): Likewise.
2891 (vpmin_u8): Likewise.
2892 (vpmin_u16): Likewise.
2893 (vpmin_u32): Likewise.
2894 (vpminq_s8): Likewise.
2895 (vpminq_s16): Likewise.
2896 (vpminq_s32): Likewise.
2897 (vpminq_u8): Likewise.
2898 (vpminq_u16): Likewise.
2899 (vpminq_u32): Likewise.
2900 (vpmin_f32): Likewise.
2901 (vpminq_f32): Likewise.
2902 (vpminq_f64): Likewise.
2903 (vpminqd_f64): Likewise.
2904 (vpmins_f32): Likewise.
2905 (vpminnm_f32): Likewise.
2906 (vpminnmq_f32): Likewise.
2907 (vpminnmq_f64): Likewise.
2908 (vpminnmqd_f64): Likewise.
2909 (vpminnms_f32): Likewise.
2910 (vmla_f32): Likewise.
2911 (vmlaq_f32): Likewise.
2912 (vmlaq_f64): Likewise.
2913 (vmls_f32): Likewise.
2914 (vmlsq_f32): Likewise.
2915 (vmlsq_f64): Likewise.
2916 (vqtbl2_s8): Likewise.
2917 (vqtbl2_u8): Likewise.
2918 (vqtbl2_p8): Likewise.
2919 (vqtbl2q_s8): Likewise.
2920 (vqtbl2q_u8): Likewise.
2921 (vqtbl2q_p8): Likewise.
2922 (vqtbl3_s8): Likewise.
2923 (vqtbl3_u8): Likewise.
2924 (vqtbl3_p8): Likewise.
2925 (vqtbl3q_s8): Likewise.
2926 (vqtbl3q_u8): Likewise.
2927 (vqtbl3q_p8): Likewise.
2928 (vqtbl4_s8): Likewise.
2929 (vqtbl4_u8): Likewise.
2930 (vqtbl4_p8): Likewise.
2931 (vqtbl4q_s8): Likewise.
2932 (vqtbl4q_u8): Likewise.
2933 (vqtbl4q_p8): Likewise.
2934 (vqtbx2_s8): Likewise.
2935 (vqtbx2_u8): Likewise.
2936 (vqtbx2_p8): Likewise.
2937 (vqtbx2q_s8): Likewise.
2938 (vqtbx2q_u8): Likewise.
2939 (vqtbx2q_p8): Likewise.
2940 (vqtbx3_s8): Likewise.
2941 (vqtbx3_u8): Likewise.
2942 (vqtbx3_p8): Likewise.
2943 (vqtbx3q_s8): Likewise.
2944 (vqtbx3q_u8): Likewise.
2945 (vqtbx3q_p8): Likewise.
2946 (vqtbx4_s8): Likewise.
2947 (vqtbx4_u8): Likewise.
2948 (vqtbx4_p8): Likewise.
2949 (vqtbx4q_s8): Likewise.
2950 (vqtbx4q_u8): Likewise.
2951 (vqtbx4q_p8): Likewise.
2952 (vrev16_p8): Likewise.
2953 (vrev16_s8): Likewise.
2954 (vrev16_u8): Likewise.
2955 (vrev16q_p8): Likewise.
2956 (vrev16q_s8): Likewise.
2957 (vrev16q_u8): Likewise.
2958 (vrev32_p8): Likewise.
2959 (vrev32_p16): Likewise.
2960 (vrev32_s8): Likewise.
2961 (vrev32_s16): Likewise.
2962 (vrev32_u8): Likewise.
2963 (vrev32_u16): Likewise.
2964 (vrev32q_p8): Likewise.
2965 (vrev32q_p16): Likewise.
2966 (vrev32q_s8): Likewise.
2967 (vrev32q_s16): Likewise.
2968 (vrev32q_u8): Likewise.
2969 (vrev32q_u16): Likewise.
2970 (vrev64_f32): Likewise.
2971 (vrev64_p8): Likewise.
2972 (vrev64_p16): Likewise.
2973 (vrev64_s8): Likewise.
2974 (vrev64_s16): Likewise.
2975 (vrev64_s32): Likewise.
2976 (vrev64_u8): Likewise.
2977 (vrev64_u16): Likewise.
2978 (vrev64_u32): Likewise.
2979 (vrev64q_f32): Likewise.
2980 (vrev64q_p8): Likewise.
2981 (vrev64q_p16): Likewise.
2982 (vrev64q_s8): Likewise.
2983 (vrev64q_s16): Likewise.
2984 (vrev64q_s32): Likewise.
2985 (vrev64q_u8): Likewise.
2986 (vrev64q_u16): Likewise.
2987 (vrev64q_u32): Likewise.
2988 (vsha1cq_u32): Likewise.
2989 (vsha1mq_u32): Likewise.
2990 (vsha1pq_u32): Likewise.
2991 (vsha1h_u32): Likewise.
2992 (vsha1su0q_u32): Likewise.
2993 (vsha1su1q_u32): Likewise.
2994 (vsha256hq_u32): Likewise.
2995 (vsha256h2q_u32): Likewise.
2996 (vsha256su0q_u32): Likewise.
2997 (vsha256su1q_u32): Likewise.
2998 (vmull_p64): Likewise.
2999 (vmull_high_p64): Likewise.
3000 (vsqrt_f32): Likewise.
3001 (vsqrtq_f32): Likewise.
3002 (vsqrt_f64): Likewise.
3003 (vsqrtq_f64): Likewise.
3004 (vst1_f32): Likewise.
3005 (vst1_f64): Likewise.
3006 (vst1_p8): Likewise.
3007 (vst1_p16): Likewise.
3008 (vst1_p64): Likewise.
3009 (vst1_s8): Likewise.
3010 (vst1_s16): Likewise.
3011 (vst1_s32): Likewise.
3012 (vst1_s64): Likewise.
3013 (vst1_u8): Likewise.
3014 (vst1_u16): Likewise.
3015 (vst1_u32): Likewise.
3016 (vst1_u64): Likewise.
3017 (vst1q_f32): Likewise.
3018 (vst1q_f64): Likewise.
3019 (vst1q_p8): Likewise.
3020 (vst1q_p16): Likewise.
3021 (vst1q_p64): Likewise.
3022 (vst1q_s8): Likewise.
3023 (vst1q_s16): Likewise.
3024 (vst1q_s32): Likewise.
3025 (vst1q_s64): Likewise.
3026 (vst1q_u8): Likewise.
3027 (vst1q_u16): Likewise.
3028 (vst1q_u32): Likewise.
3029 (vst1q_u64): Likewise.
3030 (vst1_s64_x2): Likewise.
3031 (vst1_u64_x2): Likewise.
3032 (vst1_f64_x2): Likewise.
3033 (vst1_s8_x2): Likewise.
3034 (vst1_p8_x2): Likewise.
3035 (vst1_s16_x2): Likewise.
3036 (vst1_p16_x2): Likewise.
3037 (vst1_s32_x2): Likewise.
3038 (vst1_u8_x2): Likewise.
3039 (vst1_u16_x2): Likewise.
3040 (vst1_u32_x2): Likewise.
3041 (vst1_f16_x2): Likewise.
3042 (vst1_f32_x2): Likewise.
3043 (vst1_p64_x2): Likewise.
3044 (vst1q_s8_x2): Likewise.
3045 (vst1q_p8_x2): Likewise.
3046 (vst1q_s16_x2): Likewise.
3047 (vst1q_p16_x2): Likewise.
3048 (vst1q_s32_x2): Likewise.
3049 (vst1q_s64_x2): Likewise.
3050 (vst1q_u8_x2): Likewise.
3051 (vst1q_u16_x2): Likewise.
3052 (vst1q_u32_x2): Likewise.
3053 (vst1q_u64_x2): Likewise.
3054 (vst1q_f16_x2): Likewise.
3055 (vst1q_f32_x2): Likewise.
3056 (vst1q_f64_x2): Likewise.
3057 (vst1q_p64_x2): Likewise.
3058 (vst1_s64_x3): Likewise.
3059 (vst1_u64_x3): Likewise.
3060 (vst1_f64_x3): Likewise.
3061 (vst1_s8_x3): Likewise.
3062 (vst1_p8_x3): Likewise.
3063 (vst1_s16_x3): Likewise.
3064 (vst1_p16_x3): Likewise.
3065 (vst1_s32_x3): Likewise.
3066 (vst1_u8_x3): Likewise.
3067 (vst1_u16_x3): Likewise.
3068 (vst1_u32_x3): Likewise.
3069 (vst1_f16_x3): Likewise.
3070 (vst1_f32_x3): Likewise.
3071 (vst1_p64_x3): Likewise.
3072 (vst1q_s8_x3): Likewise.
3073 (vst1q_p8_x3): Likewise.
3074 (vst1q_s16_x3): Likewise.
3075 (vst1q_p16_x3): Likewise.
3076 (vst1q_s32_x3): Likewise.
3077 (vst1q_s64_x3): Likewise.
3078 (vst1q_u8_x3): Likewise.
3079 (vst1q_u16_x3): Likewise.
3080 (vst1q_u32_x3): Likewise.
3081 (vst1q_u64_x3): Likewise.
3082 (vst1q_f16_x3): Likewise.
3083 (vst1q_f32_x3): Likewise.
3084 (vst1q_f64_x3): Likewise.
3085 (vst1q_p64_x3): Likewise.
3086 (vst2_s64): Likewise.
3087 (vst2_u64): Likewise.
3088 (vst2_f64): Likewise.
3089 (vst2_s8): Likewise.
3090 (vst2_p8): Likewise.
3091 (vst2_s16): Likewise.
3092 (vst2_p16): Likewise.
3093 (vst2_s32): Likewise.
3094 (vst2_u8): Likewise.
3095 (vst2_u16): Likewise.
3096 (vst2_u32): Likewise.
3097 (vst2_f16): Likewise.
3098 (vst2_f32): Likewise.
3099 (vst2_p64): Likewise.
3100 (vst2q_s8): Likewise.
3101 (vst2q_p8): Likewise.
3102 (vst2q_s16): Likewise.
3103 (vst2q_p16): Likewise.
3104 (vst2q_s32): Likewise.
3105 (vst2q_s64): Likewise.
3106 (vst2q_u8): Likewise.
3107 (vst2q_u16): Likewise.
3108 (vst2q_u32): Likewise.
3109 (vst2q_u64): Likewise.
3110 (vst2q_f16): Likewise.
3111 (vst2q_f32): Likewise.
3112 (vst2q_f64): Likewise.
3113 (vst2q_p64): Likewise.
3114 (vst3_s64): Likewise.
3115 (vst3_u64): Likewise.
3116 (vst3_f64): Likewise.
3117 (vst3_s8): Likewise.
3118 (vst3_p8): Likewise.
3119 (vst3_s16): Likewise.
3120 (vst3_p16): Likewise.
3121 (vst3_s32): Likewise.
3122 (vst3_u8): Likewise.
3123 (vst3_u16): Likewise.
3124 (vst3_u32): Likewise.
3125 (vst3_f16): Likewise.
3126 (vst3_f32): Likewise.
3127 (vst3_p64): Likewise.
3128 (vst3q_s8): Likewise.
3129 (vst3q_p8): Likewise.
3130 (vst3q_s16): Likewise.
3131 (vst3q_p16): Likewise.
3132 (vst3q_s32): Likewise.
3133 (vst3q_s64): Likewise.
3134 (vst3q_u8): Likewise.
3135 (vst3q_u16): Likewise.
3136 (vst3q_u32): Likewise.
3137 (vst3q_u64): Likewise.
3138 (vst3q_f16): Likewise.
3139 (vst3q_f32): Likewise.
3140 (vst3q_f64): Likewise.
3141 (vst3q_p64): Likewise.
3142 (vst4_s64): Likewise.
3143 (vst4_u64): Likewise.
3144 (vst4_f64): Likewise.
3145 (vst4_s8): Likewise.
3146 (vst4_p8): Likewise.
3147 (vst4_s16): Likewise.
3148 (vst4_p16): Likewise.
3149 (vst4_s32): Likewise.
3150 (vst4_u8): Likewise.
3151 (vst4_u16): Likewise.
3152 (vst4_u32): Likewise.
3153 (vst4_f16): Likewise.
3154 (vst4_f32): Likewise.
3155 (vst4_p64): Likewise.
3156 (vst4q_s8): Likewise.
3157 (vst4q_p8): Likewise.
3158 (vst4q_s16): Likewise.
3159 (vst4q_p16): Likewise.
3160 (vst4q_s32): Likewise.
3161 (vst4q_s64): Likewise.
3162 (vst4q_u8): Likewise.
3163 (vst4q_u16): Likewise.
3164 (vst4q_u32): Likewise.
3165 (vst4q_u64): Likewise.
3166 (vst4q_f16): Likewise.
3167 (vst4q_f32): Likewise.
3168 (vst4q_f64): Likewise.
3169 (vst4q_p64): Likewise.
3170 (vtbx4_s8): Likewise.
3171 (vtbx4_u8): Likewise.
3172 (vtbx4_p8): Likewise.
3173 (vtrn_f32): Likewise.
3174 (vtrn_p8): Likewise.
3175 (vtrn_p16): Likewise.
3176 (vtrn_s8): Likewise.
3177 (vtrn_s16): Likewise.
3178 (vtrn_s32): Likewise.
3179 (vtrn_u8): Likewise.
3180 (vtrn_u16): Likewise.
3181 (vtrn_u32): Likewise.
3182 (vtrnq_f32): Likewise.
3183 (vtrnq_p8): Likewise.
3184 (vtrnq_p16): Likewise.
3185 (vtrnq_s8): Likewise.
3186 (vtrnq_s16): Likewise.
3187 (vtrnq_s32): Likewise.
3188 (vtrnq_u8): Likewise.
3189 (vtrnq_u16): Likewise.
3190 (vtrnq_u32): Likewise.
3191 (vrsqrte_f16): Likewise.
3192 (vrsqrteq_f16): Likewise.
3193 (vsqrt_f16): Likewise.
3194 (vsqrtq_f16): Likewise.
3195 (vabd_f16): Likewise.
3196 (vabdq_f16): Likewise.
3197 (vpadd_f16): Likewise.
3198 (vpaddq_f16): Likewise.
3199 (vpmax_f16): Likewise.
3200 (vpmaxq_f16): Likewise.
3201 (vpmaxnm_f16): Likewise.
3202 (vpmaxnmq_f16): Likewise.
3203 (vpmin_f16): Likewise.
3204 (vpminq_f16): Likewise.
3205 (vpminnm_f16): Likewise.
3206 (vpminnmq_f16): Likewise.
3207 (vrsqrts_f16): Likewise.
3208 (vrsqrtsq_f16): Likewise.
3209
3210 2019-09-25 Richard Biener <rguenther@suse.de>
3211
3212 PR tree-optimization/91896
3213 * tree-vect-loop.c (vectorizable_reduction): The single
3214 def-use cycle optimization cannot apply when there's more
3215 than one pattern stmt involved.
3216
3217 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3218
3219 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3220 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3221 (reload_macho_picbase_<mode>): Likewise.
3222
3223 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3224
3225 * config/rs6000/rs6000.md: Move darwin.md include until
3226 after the definition of the mode iterators.
3227
3228 2019-09-23 Martin Sebor <msebor@redhat.com>
3229
3230 PR tree-optimization/91570
3231 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3232 non-constant minlen, maxlen and maxbound.
3233
3234 2019-09-24 Richard Biener <rguenther@suse.de>
3235
3236 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3237 Rename to...
3238 (_stmt_vec_info::cond_reduc_code): ... this.
3239 (_stmt_vec_info::induc_cond_initial_val): Add.
3240 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3241 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3242 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3243 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3244 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3245 the reduction code.
3246 (vect_create_epilog_for_reduction): Drop special
3247 induction condition reduction params, pass in reduction code
3248 and simplify.
3249 (vectorizable_reduction): Perform condition reduction kind
3250 selection only at analysis time. Adjust passing on state.
3251
3252 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3253
3254 * config/aarch64/aarch64.md (mov<mode>): Don't call
3255 aarch64_split_dimode_const_store on volatile MEM.
3256
3257 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3258
3259 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3260 Update hwcap string for fp16fml.
3261
3262 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3263
3264 PR middle-end/91866
3265 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3266 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3267
3268 2019-09-24 Martin Liska <mliska@suse.cz>
3269
3270 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3271 instead of if-elseif-elseif-...
3272 * gimple-expr.c (extract_ops_from_tree): Likewise.
3273 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3274 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3275
3276 2019-09-24 Martin Jambor <mjambor@suse.cz>
3277
3278 PR ipa/91831
3279 * ipa-param-manipulation.c (carry_over_param): Make a method of
3280 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3281 in case of a context mismatch.
3282 (ipa_param_body_adjustments::common_initialization): Adjust call to
3283 carry_over_param.
3284 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3285 private method carry_over_param.
3286
3287 2019-09-24 Martin Jambor <mjambor@suse.cz>
3288
3289 PR ipa/91832
3290 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3291
3292 2019-09-24 Richard Biener <rguenther@suse.de>
3293
3294 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3295 base.
3296
3297 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3298
3299 * config/arm/t-arm (arm-builtins.o): Add dependency on
3300 arm_acle_builtins.def.
3301
3302 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3303
3304 PR target/91823
3305 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3306 canonical CONST_INTs. Use gen_rtvec.
3307
3308 2019-09-23 Richard Biener <rguenther@suse.de>
3309
3310 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3311 avoid adjusting by + 0 or * 1.
3312 (vect_create_epilog_for_reduction): Get reduction code only
3313 when necessary. Deal with adjustment_def only when necessary.
3314
3315 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3316
3317 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3318 memmodel index.
3319
3320 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3321
3322 PR ipa/91835
3323 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3324 "ipa-sra".
3325
3326 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3327
3328 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3329 code. Merge code blocks with common conditionals. Use declared
3330 macro instead of a magic number for PIC level.
3331
3332 2019-09-21 Martin Sebor <msebor@redhat.com>
3333
3334 PR middle-end/91830
3335 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3336 Simplify computation of the offset of the referenced subobject.
3337
3338 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3339
3340 * config/darwin.c (machopic_legitimize_pic_address): Check
3341 for lra not reload.
3342
3343 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3344
3345 * ira-conflicts.c (can_use_same_reg_p): New function.
3346 (process_reg_shuffles): Take an insn parameter. Ignore cases
3347 in which input operand op_num could seemingly never be allocated
3348 to the same register as the destination.
3349 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3350
3351 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3352
3353 * simplify-rtx.c (neg_const_int): Replace with...
3354 (neg_poly_int_rtx): ...this new function.
3355 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3356 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3357 (simplify_plus_minus): Likewise for constant terms here.
3358
3359 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3360
3361 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3362 HOST_WIDE_PRINT_UNSIGNED.
3363
3364 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3365
3366 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3367 character.
3368
3369 2019-09-20 Maya Rashish <coypu@sdf.org>
3370
3371 PR target/86811
3372 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3373 Define to speculation_safe_value_not_needed.
3374
3375 2019-09-20 Richard Biener <rguenther@suse.de>
3376 Uros Bizjak <ubizjak@gmail.com>
3377
3378 PR target/91814
3379 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3380 previous change.
3381 (general_scalar_chain::convert_op): Force not suitable memory
3382 operands to a register.
3383
3384 2019-09-20 Richard Biener <rguenther@suse.de>
3385
3386 PR tree-optimization/91821
3387 * tree-vect-loop.c (check_reduction_path): Check we can compute
3388 reduc_idx.
3389 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3390 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3391 operands in canonical order.
3392 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3393 STMT_VINFO_REDUC_IDX.
3394 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3395 (STMT_VINFO_REDUC_IDX): Likewise.
3396
3397 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3398
3399 PR target/91269
3400 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3401
3402 2019-09-20 Richard Biener <rguenther@suse.de>
3403
3404 PR tree-optimization/91822
3405 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3406 parameter.
3407 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3408 for reduc_index in nested cycles, adjust vectorizable_condition
3409 calls.
3410 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3411 parameter.
3412 (vect_analyze_stmt): Adjust.
3413 (vect_transform_stmt): Likewise.
3414
3415 2019-09-20 Richard Biener <rguenther@suse.de>
3416
3417 PR target/91767
3418 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3419 Ensure there's a sequence point between allocating the new register
3420 and passing a reference to a reg via regno_reg_rtx.
3421
3422 2019-09-20 Martin Jambor <mjambor@suse.cz>
3423
3424 * coretypes.h (cgraph_edge): Declare.
3425 * ipa-param-manipulation.c: Rewrite.
3426 * ipa-param-manipulation.h: Likewise.
3427 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3428 (OBJS): Added ipa-sra.o.
3429 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3430 and ref_p, added fields param_adjustments and performed_splits.
3431 (struct cgraph_clone_info): Remove ags_to_skip and
3432 combined_args_to_skip, new field param_adjustments.
3433 (cgraph_node::create_clone): Changed parameters to use
3434 ipa_param_adjustments.
3435 (cgraph_node::create_virtual_clone): Likewise.
3436 (cgraph_node::create_virtual_clone_with_body): Likewise.
3437 (tree_function_versioning): Likewise.
3438 (cgraph_build_function_type_skip_args): Removed.
3439 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3440 using ipa_param_adjustments.
3441 (clone_of_p): Likewise.
3442 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3443 (build_function_decl_skip_args): Likewise.
3444 (duplicate_thunk_for_node): Adjust parameters using
3445 ipa_param_body_adjustments, copy param_adjustments instead of
3446 args_to_skip.
3447 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3448 (cgraph_node::create_virtual_clone): Likewise.
3449 (cgraph_node::create_version_clone_with_body): Likewise.
3450 (cgraph_materialize_clone): Likewise.
3451 (symbol_table::materialize_all_clones): Likewise.
3452 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3453 ipa_replace_map check.
3454 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3455 (initialize_node_lattices): Make aware that some parameters might have
3456 already been removed.
3457 (want_remove_some_param_p): New function.
3458 (create_specialized_node): Convert to using ipa_param_adjustments and
3459 deal with possibly pre-existing adjustments.
3460 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3461 (output_node_opt_summary): Do not stream removed fields. Stream
3462 parameter adjustments instead of argumetns to skip.
3463 (input_node_opt_summary): Likewise.
3464 (input_node_opt_summary): Likewise.
3465 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3466 * lto-streamer.h (lto_section_type): Likewise.
3467 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3468 param_body_adjs.
3469 (copy_decl_to_var): Declare.
3470 * tree-inline.c (update_clone_info): Do not remap old_tree.
3471 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3472 statements, walk all extra generated statements and remap their
3473 operands.
3474 (redirect_all_calls): Add killed SSA names to a hash set.
3475 (remap_ssa_name): Do not remap killed SSA names.
3476 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3477 half of functionality moved to ipa_param_body_adjustments.
3478 (copy_decl_to_var): Make exported.
3479 (copy_body): Destroy killed_new_ssa_names hash set.
3480 (expand_call_inline): Remap performed splits.
3481 (update_clone_info): Likewise.
3482 (tree_function_versioning): Simplify tree_map processing. Updated to
3483 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3484 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3485 for the new interface.
3486 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3487 (simd_clone_compute_base_data_type): Likewise.
3488 (simd_clone_init_simd_arrays): Adjust for the new interface.
3489 (simd_clone_adjust_argument_types): Likewise.
3490 (struct modify_stmt_info): Likewise.
3491 (ipa_simd_modify_stmt_ops): Likewise.
3492 (ipa_simd_modify_function_body): Likewise.
3493 (simd_clone_adjust): Likewise.
3494 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3495 (type_internals_preclude_sra_p): Make public.
3496 * tree-sra.h: New file.
3497 * ipa-inline-transform.c (save_inline_function_body): Update to
3498 refelct new tree_function_versioning signature.
3499 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3500 ipa_param_adjustments to get current parameter indices.
3501 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3502 (ipcp_update_bits): Likewise.
3503 (ipcp_update_vr): Likewise.
3504 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3505 * ipa-sra.c: New file.
3506 * multiple_target.c (create_target_clone): Update to reflet new type
3507 of create_version_clone_with_body.
3508 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3509 tree_function_versioning.
3510 (modify_function): Update to reflect new type of
3511 tree_function_versioning.
3512 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3513 * passes.def: Remove old IPA-SRA and add new one.
3514 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3515 (make_pass_ipa_sra): Declare.
3516 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3517 ipa_sra_retvalues.
3518 * doc/invoke.texi (ipa-sra-max-replacements): New.
3519
3520 2019-09-19 Martin Sebor <msebor@redhat.com>
3521
3522 PR middle-end/91631
3523 * builtins.c (component_size): Correct trailing array computation,
3524 rename to component_ref_size and move...
3525 (compute_objsize): Adjust.
3526 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3527 (builtin_access::strict): Do not consider memmove.
3528 (builtin_access::write_off): New function.
3529 (builtin_memref::builtin_memref): Initialize refsize.
3530 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3531 refsize.
3532 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3533 Handle refsize.
3534 (builtin_access::builtin_access): Initialize dstoff to destination
3535 refeence offset here instead of in maybe_diag_overlap. Adjust
3536 referencess even to unrelated objects. Adjust sizrange of bounded
3537 string functions to reflect bound. For strcat, adjust destination
3538 sizrange by that of source.
3539 (builtin_access::strcat_overlap): Adjust offsets and sizes
3540 to reflect the increase in destination sizrange above.
3541 (builtin_access::overlap): Do not set dstoff here but instead
3542 in builtin_access::builtin_access.
3543 (check_bounds_or_overlap): Use builtin_access::write_off.
3544 (maybe_diag_access_bounds): Add argument. Add informational notes.
3545 (dump_builtin_memref, dump_builtin_access): New functions.
3546 * tree.c (component_ref_size): ...to here.
3547 * tree.h (component_ref_size): Declare.
3548 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3549 nul in the size of the source string.
3550
3551 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3552
3553 PR c/67224
3554 * doc/cpp.texi: Document support for extended characters in
3555 identifiers.
3556 * doc/cppopts.texi: Likewise.
3557
3558 2019-09-19 Richard Biener <rguenther@suse.de>
3559
3560 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3561 (check_reduction_path): New overload having the path as result.
3562 (vect_is_simple_reduction): From the detected reduction
3563 path build a SLP reduction chain if possible.
3564
3565 2019-09-19 Richard Biener <rguenther@suse.de>
3566
3567 PR target/91814
3568 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3569 Force operand to a register if it isn't nonimmediate_operand.
3570
3571 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3572
3573 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3574 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3575 (logical_op): Remove code attribute.
3576 (logical_OP): Likewise.
3577
3578 2019-09-19 Martin Liska <mliska@suse.cz>
3579
3580 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3581 Use proper casting.
3582
3583 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3584
3585 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3586 registers with %R.
3587
3588 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3589 for NE comparison of TImode values.
3590 (aarch64_emit_load_exclusive): Add support for TImode.
3591 (aarch64_emit_store_exclusive): Likewise.
3592 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3593 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3594 Change iterator from ALLI to ALLI_TI.
3595 (@atomic_compare_and_swap<JUST_TI>): New.
3596 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3597 (aarch64_load_exclusive_pair): New.
3598 (aarch64_store_exclusive_pair): New.
3599 * config/aarch64/iterators.md (JUST_TI): New.
3600
3601 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3602 strong_zero_p for aarch64_track_speculation; unify some code paths;
3603 use aarch64_gen_compare_reg instead of open-coding.
3604
3605 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3606 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3607 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3608 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3609 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3610 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3611 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3612 (atomic_<atomic_op><ALLI>): Likewise.
3613 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3614 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3615 * doc/invoke.texi: Document -moutline-atomics.
3616
3617 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3618
3619 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3620 trivial predicate for condition branch.
3621 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3622 for switch case.
3623 (compute_bb_predicates): Update predicate based on post-dominating
3624 relationship.
3625 (analyze_function_body): Calculate post-dominating information.
3626
3627 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3628
3629 * tree-vectorizer.h (vectorizable_condition): Take an int
3630 reduction index instead of a boolean flag.
3631 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3632 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3633 reductions if the reduction accumulator is the "then" rather
3634 than the "else" value.
3635 (vect_analyze_stmt): Update call accordingly.
3636 (vect_transform_stmt): Likewise.
3637 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3638 asserting that the index is > 0.
3639
3640 2019-09-19 Martin Liska <mliska@suse.cz>
3641
3642 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3643 (sort_congruence_classes_by_decl_uid): Likewise.
3644 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3645 easier sorting.
3646 (sem_item_optimizer::merge_classes): Likewise.
3647
3648 2019-09-19 Richard Biener <rguenther@suse.de>
3649
3650 PR tree-optimization/91812
3651 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3652 volatile loads.
3653
3654 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3655
3656 * defaults.h (TARGET_UNIT): New macro.
3657 (target_unit): New type.
3658 * rtl.h (native_encode_rtx, native_decode_rtx)
3659 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3660 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3661 * rtlanal.c (subreg_lsb_1): Delete.
3662 (subreg_size_lsb): New function.
3663 * simplify-rtx.c: Include rtx-vector-builder.h
3664 (simplify_immed_subreg): Delete.
3665 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3666 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3667 functions.
3668 (simplify_subreg): Use them.
3669 (test_vector_subregs_modes, test_vector_subregs_repeating)
3670 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3671 (test_vector_subregs): New functions.
3672 (test_vector_ops): Call test_vector_subregs for integer vector
3673 modes with at least 2 elements.
3674
3675 2019-09-19 Richard Biener <rguenther@suse.de>
3676
3677 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3678 LOOP_VINFO_OPERANDS_SWAPPED.
3679 (parloops_is_simple_reduction): Likewise.
3680 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3681 initialize operands_swapped.
3682 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3683 (vect_is_slp_reduction): Do not swap operands.
3684 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3685 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3686
3687 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3688
3689 PR target/87007
3690 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3691 Add avx_partial_xmm_update.
3692
3693 2019-09-18 Jim Wilson <jimw@sifive.com>
3694
3695 PR target/91683
3696 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3697 (riscv_move_integer): Likewise.
3698 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3699 riscv_move_integer arg.
3700 (riscv_legitimize_move): Likewise.
3701 (riscv_force_temporary): New parameter in_splitter. Don't call
3702 force_reg if true.
3703 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3704 arg.
3705 (riscv_add_offset): Likewise.
3706 (riscv_split_symbol): New parameter in_splitter. Pass to
3707 riscv_force_temporary.
3708 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3709 arg.
3710 (riscv_move_integer): New parameter in_splitter. New local
3711 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3712 in_splitter TRUE.
3713 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3714 riscv_split_symbol, and riscv_force_temporary args.
3715 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3716 riscv_move_integer arg.
3717 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3718
3719 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3720
3721 PR target/90878
3722 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3723 hard register store cost to 6.
3724
3725 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3726
3727 PR target/91446
3728 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3729 pseudo register store cost from 3 to 6 to make it the same as
3730 QImode and HImode.
3731
3732 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3733
3734 PR target/91738
3735 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3736 (one_cmpldi2): Likewise.
3737 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3738 of the constant parts is simple.
3739 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3740 (logical_op): Add new code attribute.
3741 (logical_OP): Likewise.
3742 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3743 (arm_iordi_operand): Add predicate.
3744 (arm_xordi_operand): Add predicate.
3745
3746 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3747
3748 * config/arm/arm.md (maddsidi4): Remove expander.
3749 (mulsidi3adddi): Remove pattern.
3750 (mulsidi3adddi_v6): Likewise.
3751 (mulsidi3_nov6): Likewise.
3752 (mulsidi3_v6): Likewise.
3753 (umulsidi3): Remove expander.
3754 (umulsidi3_nov6): Remove pattern.
3755 (umulsidi3_v6): Likewise.
3756 (umulsidi3adddi): Likewise.
3757 (umulsidi3adddi_v6): Likewise.
3758 (<Us>mulsidi3): Add combined expander.
3759 (<Us>maddsidi4): Likewise.
3760 (<US>mull): Add combined umull and smull pattern.
3761 (<US>mlal): Likewise.
3762 * config/arm/iterators.md (Us): Add new iterator.
3763
3764 2019-09-18 Richard Biener <rguenther@suse.de>
3765
3766 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3767 swapping.
3768 (vectorize_fold_left_reduction): Remove assert.
3769 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3770 operand in position 2. Remove assert.
3771
3772 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3773
3774 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3775 (smulsi3_highpart_nov6): Remove pattern.
3776 (smulsi3_highpart_v6): Likewise.
3777 (umulsi3_highpart): Likewise.
3778 (umulsi3_highpart_nov6): Likewise.
3779 (umulsi3_highpart_v6): Likewise.
3780 (<US>mull_high): Add new combined multiply pattern.
3781
3782 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3783
3784 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3785 (arm_mulsi3_v6): Likewise.
3786 (mulsi3addsi_v6): Likewise.
3787 (mulsi3subsi): Likewise.
3788 (mul): Add new multiply pattern.
3789 (mla): Likewise.
3790 (mls): Likewise.
3791
3792 2019-09-18 Richard Biener <rguenther@suse.de>
3793
3794 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3795 (parloops_valid_reduction_input_p): Copy from
3796 valid_reduction_input_p.
3797 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3798 (parloops_needs_fold_left_reduction_p): Copy from
3799 needs_fold_left_reduction_p.
3800 (parloops_is_simple_reduction): Copy from
3801 vect_is_simple_reduction.
3802 (parloops_force_simple_reduction): Copy from
3803 vect_force_simple_reduction.
3804 (gather_scalar_reductions): Adjust.
3805 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3806 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3807
3808 2019-09-18 Richard Biener <rguenther@suse.de>
3809
3810 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3811 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3812 static.
3813 (vect_create_epilog_for_reduction): Remove dead code.
3814
3815 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3816
3817 * varasm.c (assemble_real): Generate canonical const_ints.
3818
3819 2019-09-18 Richard Biener <rguenther@suse.de>
3820
3821 PR lto/91763
3822 * lto-streamer-in.c (input_eh_regions): Move EH init to
3823 lto_materialize_function.
3824 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3825 Likewise.
3826
3827 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3828
3829 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3830 are INTEGER_CSTs.
3831
3832 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3833
3834 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3835 of checking specifically for INTEGER_CST.
3836
3837 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3838
3839 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3840 sizes instead of uhwi sizes.
3841
3842 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3843
3844 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3845 (add_const_value_attribute): Handle CONST_POLY_INT.
3846
3847 2019-09-18 Martin Liska <mliska@suse.cz>
3848
3849 * dbgcnt.def (store_merging): New counter.
3850 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3851 Use it in store merging.
3852
3853 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3854
3855 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3856 function.
3857 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3858 * config/arm/arm.c (arm_sched_variable_issue): New function.
3859 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3860
3861 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3862
3863 * config/arm/types.md (no_reservation): New reservation.
3864 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3865 no_insn here.
3866 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3867 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3868 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3869 * config/arm/arm1020e.md (1020alu_op): Likewise.
3870 * config/arm/arm1026ejs.md (alu_op): Likewise.
3871 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3872 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3873 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3874 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3875 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3876 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3877 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3878 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3879 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3880 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3881 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3882 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3883 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3884 * config/arm/fa526.md (526_alu_op): Likewise.
3885 * config/arm/fa606te.md (606te_alu_op): Likewise.
3886 * config/arm/fa626te.md (626te_alu_op): Likewise.
3887 * config/arm/fa726te.md (726te_alu_op): Likewise.
3888 * config/arm/xgene1.md (xgene1_nop): Likewise.
3889
3890 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3891
3892 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3893 "no_insn" to "branch".
3894
3895 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3896
3897 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3898
3899 2019-09-17 Richard Biener <rguenther@suse.de>
3900
3901 PR debug/91772
3902 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3903 was missing generate locations only once.
3904
3905 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
3906
3907 PR ipa/91089
3908 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3909 option.
3910 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3911 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3912 for switch default case using range analysis information.
3913
3914 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
3915
3916 PR target/91749
3917 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3918 mode attributed is supported by FDPIC.
3919
3920 2019-09-17 Richard Biener <rguenther@suse.de>
3921
3922 PR tree-optimization/91790
3923 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3924 use the correct DR for setting up realignment.
3925
3926 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
3927
3928 PR target/91719
3929 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3930 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3931 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3932 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3933
3934 2019-09-16 Jason Merrill <jason@redhat.com>
3935
3936 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3937
3938 2019-09-16 Martin Liska <mliska@suse.cz>
3939
3940 * gimple-fold.c (or_comparisons_1): Remove rules moved
3941 to ...
3942 * match.pd: ... here.
3943
3944 2019-09-16 Martin Liska <mliska@suse.cz>
3945
3946 * gimple-fold.c (or_comparisons_1): Remove rules
3947 moved to ...
3948 * match.pd: ... here.
3949
3950 2019-09-16 Martin Liska <mliska@suse.cz>
3951
3952 * genmatch.c (dt_node::append_simplify): Do not print
3953 warning when we have duplicate patterns belonging
3954 to a same simplify rule.
3955 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
3956 (maybe_fold_comparisons_from_match_pd): Handle
3957 tcc_comparison as a results.
3958 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
3959
3960 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3961 Qi Feng <ffengqi@linux.ibm.com>
3962
3963 PR middle-end/88784
3964 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
3965 (x > y && x == XXX_MIN): Optimize into 'false'.
3966 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
3967 (x < y && x != XXX_MAX): Optimize into 'x < y'.
3968 (x < y && x == XXX_MAX): Optimize into 'false'.
3969 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
3970 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
3971 (x <= y || x != XXX_MIN): Optimize into 'true'.
3972 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
3973 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
3974 (x >= y || x != XXX_MAX): Optimize into 'true'.
3975 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
3976
3977 2019-09-16 Li Jia He <helijia@linux.ibm.com>
3978 Martin Liska <mliska@suse.cz>
3979
3980 * gimple-fold.c (and_comparisons_1): Add type as first
3981 argument.
3982 (and_var_with_comparison): Likewise.
3983 (and_var_with_comparison_1): Likewise.
3984 (or_comparisons_1): Likewise.
3985 (or_var_with_comparison): Likewise.
3986 (or_var_with_comparison_1): Likewise.
3987 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
3988 (maybe_fold_or_comparisons): Likewise.
3989 (maybe_fold_comparisons_from_match_pd): New.
3990 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
3991 (maybe_fold_or_comparisons): Likewise.
3992 * gimple.c (gimple_size): Make it public and add num_ops argument.
3993 (gimple_init): New function.
3994 (gimple_alloc): Call gimple_init.
3995 * gimple.h (gimple_size): New.
3996 (gimple_init): Likewise.
3997 * tree-if-conv.c (fold_or_predicates): Pass type.
3998 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3999 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4000 (optimize_vec_cond_expr): Likewise.
4001 (ovce_extract_ops): Return type of conditional expression.
4002 * tree-ssanames.c (init_ssa_name_imm_use): New.
4003 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4004 * tree-ssanames.h (init_ssa_name_imm_use): New.
4005
4006 2019-09-16 Richard Biener <rguenther@suse.de>
4007
4008 PR tree-optimization/91756
4009 PR tree-optimization/87132
4010 * tree-ssa-alias.h (enum translate_flags): New.
4011 (get_continuation_for_phi): Use it instead of simple bool flag.
4012 (walk_non_aliased_vuses): Likewise.
4013 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4014 (get_continuation_for_phi): When looking across backedges only
4015 disallow valueization.
4016 (walk_non_aliased_vuses): Adjust.
4017 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4018 if requested.
4019
4020 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4021
4022 PR middle-end/80791
4023 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4024 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4025 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4026 * target.def (have_count_reg_decr_p): New hook.
4027 (doloop_cost_for_generic): Likewise.
4028 (doloop_cost_for_address): Likewise.
4029 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4030 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4031 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4032 * doc/tm.texi: Regenerate.
4033 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4034 addend.
4035 (record_group): Init doloop_p.
4036 (add_candidate_1): Add optional argument doloop, change the handlings
4037 accordingly.
4038 (add_candidate): Likewise.
4039 (generic_predict_doloop_p): Update attribute.
4040 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4041 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4042 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4043 MIN_EXPR.
4044 (get_computation_cost): Update for doloop IV cand extra cost.
4045 (determine_group_iv_cost_cond): Update for doloop IV cand.
4046 (determine_iv_cost): Likewise.
4047 (ivopts_estimate_reg_pressure): Likewise.
4048 (may_eliminate_iv): Update handlings for doloop IV cand.
4049 (add_iv_candidate_for_doloop): New function.
4050 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4051 (iv_ca_set_no_cp): Update for doloop IV cand.
4052 (iv_ca_set_cp): Likewise.
4053 (iv_ca_dump): Dump register cost.
4054 (find_doloop_use): New function.
4055 (analyze_and_mark_doloop_use): Likewise.
4056 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4057
4058 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4059
4060 PR middle-end/91708
4061 * cse.c (cse_insn): Do not replace anything with a
4062 MEM.
4063
4064 2019-09-13 Ian Lance Taylor <iant@golang.org>
4065
4066 * doc/invoke.texi (Optimize Options): Fix typo.
4067
4068 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4069
4070 PR tree-optimization/89386
4071 * config/i386/sse.md (smulhrs<mode>3): New expander.
4072 (smulhrsv4hi3): Ditto.
4073
4074 2019-09-12 Richard Biener <rguenther@suse.de>
4075
4076 PR tree-optimization/91750
4077 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4078 in the type of the evolution.
4079
4080 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4081
4082 PR tree-optimization/89386
4083 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4084 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4085 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4086 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4087 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4088 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4089 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4090 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4091 (su, r): Handle the unspecs above.
4092 (bt): New int attribute.
4093 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4094 * internal-fn.c (first_commutative_argument): Commutativity info for
4095 above.
4096 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4097 (umulhrs_optab): New optabs.
4098 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4099 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4100 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4101 function.
4102 (vect_vect_recog_func_ptrs): Add it.
4103
4104 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4105
4106 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4107 code.
4108
4109 2019-09-11 Nathan Sidwell <nathan@acm.org>
4110
4111 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4112 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4113
4114 2019-09-11 Richard Biener <rguenther@suse.de>
4115
4116 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4117 * lto-wrapper.c (merge_and_complain): Pick up -g.
4118 (append_compiler_options): Likewise.
4119 (run_gcc): Re-instantiate handling -g0 at link-time.
4120 * doc/invoke.texi (flto): Document debug info generation.
4121
4122 2019-09-11 Richard Biener <rguenther@suse.de>
4123
4124 PR tree-optimization/90387
4125 * vr-values.c (vr_values::extract_range_basic): After inlining
4126 simplify non-constant __builtin_constant_p to false.
4127
4128 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4129
4130 PR rtl-optimization/89795
4131 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4132 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4133
4134 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4135
4136 PR tree-optimization/91723
4137 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4138 instead of pointer equality when checking if argument vectypes are
4139 the same.
4140
4141 PR middle-end/91725
4142 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4143 of get_nonzero_bits, only call it for integral types.
4144
4145 2019-09-11 Richard Biener <rguenther@suse.de>
4146
4147 Revert
4148 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4149
4150 * match.pd: Add flag_unsafe_math_optimizations check
4151 before deciding on the widest type in a binary math operation.
4152
4153 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4154
4155 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4156 and CALL_REALLY_USED_REGISTERS must be defined, and that
4157 CALL_REALLY_USED_REGISTERS is preferred.
4158 * doc/tm.texi: Regenerate.
4159 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4160 (call_really_used_regs): Likewise.
4161 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4162 CALL_REALLY_USED_REGISTERS are defined.
4163 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4164 initial value if defined.
4165 (initial_call_really_used_regs): Delete.
4166 (saved_call_really_used_regs): Likewise.
4167 (CALL_REALLY_USED_REGNO_P): Likewise.
4168 (init_reg_sets): Remove handling of call_really_used_regs.
4169 (save_register_info, restore_register_info, globalize_reg): Likewise.
4170 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4171 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4172 outside operand_reg_set.
4173 (fix_register): Don't change call_used_regs if
4174 CALL_REALLY_USED_REGISTERS is defined.
4175 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4176 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4177 instead of call_really_used_regs.
4178 (csky_conditional_register_usage): Remove the old handling of
4179 call_used_regs and change the handling of call_really_used_regs
4180 to use call_used_regs instead.
4181 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4182 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4183 making a register fixed.
4184 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4185 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4186 instead of call_really_used_regs.
4187 (m32r_conditional_register_usage): Don't set call_used_regs when
4188 making a register fixed.
4189 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4190 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4191 instead of call_really_used_regs.
4192 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4193 (mips_cfun_call_saved_reg_p): Likewise.
4194 (mips_swap_registers): Remove the old handling of call_used_regs
4195 and change the handling of call_really_used_regs to use call_used_regs
4196 instead.
4197 (mips_conditional_register_usage): Likewise.
4198 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4199 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4200 instead of call_really_used_regs.
4201 (mn10300_get_live_callee_saved_regs): Likewise.
4202 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4203 (mn10300_conditional_register_usage): Don't set call_used_regs when
4204 making a register fixed.
4205 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4206 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4207 Remove the old handling of call_used_regs and change the handling
4208 of call_really_used_regs to use call_used_regs instead.
4209 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4210 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4211 instead of call_really_used_regs.
4212 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4213 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4214 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4215 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4216 (s390_conditional_register_usage): Remove the old handling of
4217 call_used_regs and change the handling of call_really_used_regs
4218 to use call_used_regs instead.
4219 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4220 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4221 (sh_fix_range, reg_unused_after): Likewise.
4222 (sh_conditional_register_usage): Remove the old handling of
4223 call_used_regs and change the handling of call_really_used_regs
4224 to use call_used_regs instead.
4225 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4226 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4227 call_used_regs when making a register fixed.
4228 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4229 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4230 call_used_regs when making a register fixed.
4231 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4232 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4233 set call_used_regs when making a register fixed.
4234 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4235 * config/visium/visium.c (visium_conditional_register_usage): Remove
4236 the old handling of call_used_regs and change the handling of
4237 call_really_used_regs to use call_used_regs instead.
4238
4239 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4240
4241 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4242 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4243 * reginfo.c (call_used_regs): New macro.
4244
4245 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4246
4247 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4248 fixed_regs test.
4249 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4250 (bpf_expand_epilogue): Likewise.
4251 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4252 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4253 (ft32_expand_epilogue): Likewise.
4254 * config/i386/i386.c (ix86_save_reg): Likewise.
4255 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4256 (moxie_expand_epilogue): Likewise.
4257 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4258 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4259 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4260
4261 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4262
4263 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4264 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4265 instead of testing call_used_regs directly.
4266 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4267 (aarch64_components_for_bb): Likewise.
4268 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4269 * config/arc/arc.c (arc_must_save_register): Likewise.
4270 (arc_epilogue_uses): Likewise.
4271 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4272 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4273 (arm_compute_save_reg0_reg12_mask): Likewise.
4274 (arm_compute_save_core_reg_mask): Likewise.
4275 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4276 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4277 (cmse_nonsecure_entry_clear_before_return): Likewise.
4278 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4279 (arm_expand_epilogue): Likewise.
4280 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4281 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4282 (_reg_unused_after): Likewise.
4283 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4284 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4285 (add_to_reg, hwloop_optimize): Likewise.
4286 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4287 (bpf_expand_epilogue): Likewise.
4288 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4289 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4290 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4291 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4292 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4293 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4294 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4295 * config/frv/frv.c (frv_stack_info): Likewise.
4296 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4297 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4298 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4299 (move_callee_saved_registers): Likewise.
4300 * config/h8300/h8300.c (byte_reg): Likewise.
4301 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4302 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4303 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4304 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4305 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4306 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4307 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4308 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4309 * config/m32c/m32c.c (need_to_save): Likewise.
4310 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4311 * config/mcore/mcore.c (calc_live_regs): Likewise.
4312 * config/microblaze/microblaze.c (microblaze_must_save_register):
4313 Likewise.
4314 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4315 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4316 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4317 (mmix_expand_epilogue): Likewise.
4318 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4319 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4320 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4321 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4322 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4323 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4324 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4325 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4326 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4327 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4328 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4329 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4330 * config/rl78/rl78.c (need_to_save): Likewise.
4331 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4332 (rs6000_stack_info, generate_set_vrsave): Likewise.
4333 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4334 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4335 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4336 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4337 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4338 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4339 (save_local_or_in_reg_p): Likewise.
4340 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4341 (xstormy16_epilogue_uses): Likewise.
4342 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4343 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4344 * config/v850/v850.c (compute_register_save_size): Likewise.
4345 * config/vax/vax.c (vax_expand_prologue): Likewise.
4346 * config/visium/visium.c (visium_save_reg_p): Likewise.
4347 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4348 * cselib.c (cselib_process_insn): Likewise.
4349 * df-scan.c (df_get_entry_block_def_set): Likewise.
4350 * function.c (aggregate_value_p): Likewise.
4351 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4352 * ira-lives.c (process_bb_node_lives): Likewise.
4353 * ira.c (do_reload): Likewise.
4354 * lra-lives.c (process_bb_lives): Likewise.
4355 * lra-remat.c (lra_remat): Likewise.
4356 * lra.c (lra): Likewise.
4357 * postreload.c (reload_combine_recognize_pattern): Likewise.
4358 (reload_cse_move2add): Likewise.
4359 * recog.c (peep2_find_free_register): Likewise.
4360 * regrename.c (check_new_reg_p): Likewise.
4361 * reload.c (find_equiv_reg): Likewise.
4362 * reload1.c (reload, find_reg): Likewise.
4363 * sel-sched.c (init_hard_regs_data): Likewise.
4364
4365 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4366
4367 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4368 regs_invalidated_by_call & ~fixed_reg_set instead of
4369 call_used_or_fixed_regs & ~fixed_reg_set.
4370 * config/sh/sh.c (output_stack_adjust): Likewise.
4371
4372 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4373
4374 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4375 (call_used_reg_set): Delete.
4376 (call_used_or_fixed_regs): New macro.
4377 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4378 of call_used_reg_set.
4379 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4380 instead of call_used_regs.
4381 (save_call_clobbered_regs): Likewise.
4382 * cfgcleanup.c (old_insns_match_p): Likewise.
4383 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4384 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4385 Likewise.
4386 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4387 * config/sh/sh.c (output_stack_adjust): Likewise.
4388 * final.c (collect_fn_hard_reg_usage): Likewise.
4389 * ira-build.c (ira_build): Likewise.
4390 * ira-color.c (calculate_saved_nregs): Likewise.
4391 (allocno_reload_assign, calculate_spill_cost): Likewise.
4392 * ira-conflicts.c (ira_build_conflicts): Likewise.
4393 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4394 * ira-lives.c (process_bb_node_lives): Likewise.
4395 * ira.c (setup_reg_renumber): Likewise.
4396 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4397 * lra-constraints.c (need_for_call_save_p): Likewise.
4398 (need_for_split_p, inherit_in_ebb): Likewise.
4399 * lra-lives.c (process_bb_lives): Likewise.
4400 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4401 * postreload.c (reload_combine): Likewise.
4402 * regrename.c (find_rename_reg): Likewise.
4403 * reload1.c (reload_as_needed): Likewise.
4404 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4405 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4406 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4407
4408 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4409
4410 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4411 (no_caller_save_reg_set): Delete.
4412 * caller-save.c (init_caller_save): Don't initialize it.
4413 * ira-conflicts.c (ira_build_conflicts): Calculate
4414 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4415
4416 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4417
4418 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4419 (target_hard_regs::x_savable_regs): New field.
4420 (call_fixed_reg_set): Delete.
4421 (savable_regs): New macro,
4422 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4423 (init_reg_sets_1): Likewise. Initialize savable_regs.
4424 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4425 for all registers. Set savable_regs instead of call_fixed_reg_set.
4426 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4427 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4428 * config/sh/sh.c (output_stack_adjust): Likewise.
4429
4430 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4431
4432 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4433 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4434 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4435
4436 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4437
4438 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4439 * rtlanal.c (get_call_rtx_from): Likewise.
4440 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4441 than the pattern to get_call_rtx_from.
4442 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4443 an rtx_insn * instead of an rtx.
4444 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4445
4446 2019-09-10 Martin Liska <mliska@suse.cz>
4447
4448 * common.opt: Use newly added WarnRemoved.
4449 * config/aarch64/aarch64.opt: Likewise.
4450 * config/arm/arm.opt: Likewise.
4451 * config/i386/i386.opt: Likewise.
4452 * config/ia64/ia64.opt: Likewise.
4453 * config/rs6000/rs6000.opt: Likewise.
4454 * doc/options.texi: Document WarnRemoved properly.
4455 * dwarf2out.c (gen_producer_string): Handle renamed
4456 OPT_SPECIAL_warn_removed.
4457 * lto-opts.c (lto_write_options): Likewise.
4458 * lto-wrapper.c (merge_and_complain): Likewise.
4459 * opts-common.c (decode_cmdline_option): Likewise.
4460 (prune_options): Likewise.
4461 (read_cmdline_option): Likewise.
4462 (control_warning_option): Likewise.
4463 * opts.c (print_filtered_help): Likewise.
4464 * optc-gen.awk: Parse for WarnRemoved and make usage
4465 of Deprecated an error.
4466 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4467
4468 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4469
4470 * doc/install.texi: Fix syntax for html generation.
4471
4472 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4473
4474 PR middle-end/91680
4475 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4476 the shift type to type.
4477
4478 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4479
4480 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4481 FDPIC mode.
4482 (stack_protect_combined_test_insn): Likewise.
4483
4484 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4485 Mickaël Guêné <mickael.guene@st.com>
4486
4487 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4488 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4489 (load_tp_soft_fdpic): New pattern.
4490 (load_tp_soft): Disable in FDPIC mode.
4491
4492 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4493 Mickaël Guêné <mickael.guene@st.com>
4494
4495 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4496 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4497 (arm_call_tls_get_addr): Add FDPIC support.
4498 (legitimize_tls_address): Likewise.
4499 (arm_emit_tls_decoration): Likewise.
4500
4501 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4502 Mickaël Guêné <mickael.guene@st.com>
4503
4504 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4505 support.
4506 (arm_trampoline_init): Likewise.
4507 (arm_trampoline_adjust_address): Likewise.
4508 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4509
4510 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4511 Mickaël Guêné <mickael.guene@st.com>
4512
4513 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4514 (legitimize_pic_address): Enforce binding rules on function
4515 pointers in FDPIC mode.
4516 (arm_assemble_integer): Likewise.
4517
4518 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4519 Mickaël Guêné <mickael.guene@st.com>
4520
4521 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4522 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4523 FDPIC.
4524
4525 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4526 Mickaël Guêné <mickael.guene@st.com>
4527
4528 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4529 field.
4530
4531 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4532 Mickaël Guêné <mickael.guene@st.com>
4533
4534 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4535 in FDPIC mode.
4536 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4537 new function.
4538 * config/arm/arm.c (arm_option_override): Define pic register to
4539 FDPIC_REGNUM.
4540 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4541 have no decl or go through PLT.
4542 (calculate_pic_address_constant): New function.
4543 (legitimize_pic_address): Call calculate_pic_address_constant.
4544 (arm_load_pic_register): Handle TARGET_FDPIC.
4545 (arm_is_segment_info_known): New function.
4546 (arm_pic_static_addr): Add support for FDPIC.
4547 (arm_load_function_descriptor): New function.
4548 (arm_emit_call_insn): Add support for FDPIC.
4549 (arm_assemble_integer): Add support for FDPIC.
4550 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4551 Define. (FDPIC_REGNUM): New define.
4552 * config/arm/arm.md (call): Add support for FDPIC.
4553 (call_value): Likewise.
4554 (restore_pic_register_after_call): New pattern.
4555 (untyped_call): Disable if FDPIC.
4556 (untyped_return): Likewise.
4557 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4558
4559 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4560 Mickaël Guêné <mickael.guene@st.com>
4561
4562 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4563 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4564 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4565 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4566 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4567 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4568 * config/arm/uclinuxfdpiceabi.h: New file.
4569
4570 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4571
4572 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4573
4574 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4575 Mickaël Guêné <mickael.guene@st.com>
4576
4577 * config/arm/arm.opt: Add -mfdpic option.
4578 * doc/invoke.texi: Add documentation for -mfdpic.
4579
4580 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4581
4582 * expmed.c (extract_bit_field): Update function comment
4583 regarding alt_rtl.
4584 * expr.c (expand_expr_real): Update function comment
4585 regarding alt_rtl.
4586 (expand_misaligned_mem_ref): New helper function.
4587 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4588 Remove duplicate assignment to "base" at case MEM_REF.
4589 Remove a shadowed variable "unsignedp" at case VCE.
4590
4591 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4592
4593 * regset.h (regs_invalidated_by_call_regset): Delete.
4594 (fixed_reg_set_regset): Likewise.
4595 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4596 (fixed_reg_set_regset, persistent_obstack): Likewise.
4597 (init_reg_sets_1, globalize_reg): Update accordingly.
4598 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4599 instead of a bitmap.
4600 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4601 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4602 instead of regs_invalidated_by_call_regset.
4603 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4604 * df-scan.c (df_scan_start_dump): Likewise.
4605 * dse.c (copy_fixed_regs): Likewise.
4606 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4607
4608 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4609
4610 * array-traits.h: New file.
4611 * coretypes.h (array_traits, bitmap_view): New types.
4612 * bitmap.h: Include "array-traits.h"
4613 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4614 (base_bitmap_view, bitmap_view): New classes.
4615 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4616 * hard-reg-set.h: Include array-traits.h.
4617 (array_traits<HARD_REG_SET>): New struct.
4618 * regset.h (IOR_REG_SET_HRS): New macro.
4619 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4620 rather than iterating over each hard register.
4621 * sched-deps.c (sched_analyze_insn): Likewise.
4622 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4623
4624 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4625
4626 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4627 instead of a HARD_REG_SET *.
4628 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4629 (ira_build): Update call accordingly.
4630 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4631
4632 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4633
4634 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4635 (HARD_REG_SET::operator!=): Likewise.
4636 (hard_reg_set_equal_p): Delete.
4637 * cfgcleanup.c (old_insns_match_p): Use == instead of
4638 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4639 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4640 (add_allocno_hard_regs_to_forest): Likewise.
4641 (setup_allocno_available_regs_num): Likewise.
4642 * ira.c (setup_pressure_classes): Likewise.
4643 (setup_allocno_and_important_classes): Likewise.
4644 (setup_reg_class_relations): Likewise.
4645 * lra-lives.c (process_bb_lives): Likewise.
4646 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4647
4648 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4649
4650 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4651 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4652 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4653 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4654 Likewise.
4655 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4656 * ira.c (setup_reg_renumber): Likewise.
4657 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4658 * regrename.c (regrename_find_superclass): Likewise.
4659 * reload1.c (find_reg): Likewise.
4660
4661 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4662
4663 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4664 * caller-save.c (setup_save_areas): Use "&~" instead of
4665 AND_COMPL_HARD_REG_SET.
4666 (save_call_clobbered_regs): Likewise.
4667 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4668 Likewise.
4669 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4670 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4671 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4672 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4673 (mips_conditional_register_usage): Likewise.
4674 * config/sh/sh.c (output_stack_adjust): Likewise.
4675 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4676 (setup_profitable_hard_regs): Likewise.
4677 (get_conflict_and_start_profitable_regs): Likewise.
4678 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4679 (ira_build_conflicts): Likewise.
4680 * ira-costs.c (restrict_cost_classes): Likewise.
4681 (setup_regno_cost_classes_by_aclass): Likewise.
4682 * ira-lives.c (process_bb_node_lives): Likewise.
4683 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4684 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4685 (setup_allocno_and_important_classes, setup_class_translate_array)
4686 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4687 Likewise.
4688 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4689 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4690 (process_alt_operands, inherit_in_ebb): Likewise.
4691 * lra-eliminations.c (update_reg_eliminate): Likewise.
4692 * lra-lives.c (process_bb_lives): Likewise.
4693 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4694 * resource.c (find_dead_or_set_registers): Likewise.
4695 (mark_target_live_regs): Likewise.
4696 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4697 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4698 (implicit_clobber_conflict_p): Likewise.
4699 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4700 (try_shrink_wrapping): Likewise.
4701
4702 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4703
4704 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4705 (HARD_REG_SET::operator|=): Likewise.
4706 (IOR_HARD_REG_SET): Delete.
4707 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4708 IOR_HARD_REG_SET.
4709 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4710 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4711 * final.c (collect_fn_hard_reg_usage): Likewise.
4712 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4713 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4714 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4715 (propagate_some_info_from_allocno): Likewise.
4716 (copy_info_to_removed_store_destinations): Likewise.
4717 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4718 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4719 (fast_allocation): Likewise.
4720 * ira-conflicts.c (ira_build_conflicts): Likewise.
4721 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4722 (process_bb_node_lives): Likewise.
4723 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4724 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4725 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4726 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4727 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4728 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4729 (process_bb_lives): Likewise.
4730 * lra-spills.c (assign_spill_hard_regs): Likewise.
4731 * postreload.c (reload_combine): Likewise.
4732 * reginfo.c (init_reg_sets_1): Likewise.
4733 * regrename.c (merge_overlapping_regs, find_rename_reg)
4734 (merge_chains): Likewise.
4735 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4736 (find_reload_regs, finish_spills, choose_reload_regs_init)
4737 (emit_reload_insns): Likewise.
4738 * reorg.c (redundant_insn): Likewise.
4739 * resource.c (find_dead_or_set_registers, mark_set_resources)
4740 (mark_target_live_regs): Likewise.
4741 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4742 * sched-deps.c (sched_analyze_insn): Likewise.
4743 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4744 (find_best_reg_for_expr): Likewise.
4745 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4746
4747 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4748
4749 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4750 (HARD_REG_SET::operator&): Likewise.
4751 (AND_HARD_REG_SET): Delete.
4752 * caller-save.c (setup_save_areas): Use "&" instead of
4753 AND_HARD_REG_SET.
4754 (save_call_clobbered_regs): Likewise.
4755 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4756 * config/m32c/m32c.c (reduce_class): Likewise.
4757 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4758 * final.c (get_call_reg_set_usage): Likewise.
4759 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4760 (setup_left_conflict_sizes_p): Likewise.
4761 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4762 (ira_build_conflicts): Likewise.
4763 * ira-costs.c (restrict_cost_classes): Likewise.
4764 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4765 (setup_reg_class_relations): Likewise.
4766 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4767 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4768 * resource.c (find_dead_or_set_registers): Likewise.
4769 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4770
4771 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4772
4773 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4774 (COMPL_HARD_REG_SET): Delete.
4775 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4776 of COMPL_HARD_REG_SET.
4777 (try_rename_operands): Likewise.
4778 * config/sh/sh.c (push_regs): Likewise.
4779 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4780 * lra-constraints.c (contains_reg_p): Likewise.
4781 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4782
4783 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4784
4785 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4786 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4787 of COPY_HARD_REG_SET.
4788 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4789 (epiphany_conditional_register_usage): Likewise.
4790 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4791 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4792 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4793 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4794 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4795 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4796 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4797 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4798 * config/sh/sh.c (output_stack_adjust): Likewise.
4799 * final.c (collect_fn_hard_reg_usage): Likewise.
4800 (get_call_reg_set_usage): Likewise.
4801 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4802 (ira_flattening): Likewise.
4803 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4804 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4805 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4806 (ira_reassign_pseudos): Likewise.
4807 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4808 (ira_build_conflicts): Likewise.
4809 * ira-costs.c (restrict_cost_classes): Likewise.
4810 (setup_regno_cost_classes_by_aclass): Likewise.
4811 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4812 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4813 (setup_stack_reg_pressure_class, setup_pressure_classes)
4814 (setup_allocno_and_important_classes, setup_class_translate_array)
4815 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4816 (ira_setup_eliminable_regset): Likewise.
4817 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4818 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4819 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4820 (process_alt_operands, inherit_in_ebb): Likewise.
4821 * lra-lives.c (process_bb_lives): Likewise.
4822 * lra-spills.c (assign_spill_hard_regs): Likewise.
4823 * lra.c (lra): Likewise.
4824 * mode-switching.c (new_seginfo): Likewise.
4825 * postreload.c (reload_combine): Likewise.
4826 * reg-stack.c (straighten_stack): Likewise.
4827 * reginfo.c (save_register_info, restore_register_info): Likewise.
4828 (init_reg_sets_1, record_subregs_of_mode): Likewise
4829 * regrename.c (create_new_chain, rename_chains): Likewise.
4830 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4831 (find_reload_regs): Likewise.
4832 * resource.c (find_dead_or_set_registers): Likewise.
4833 (mark_target_live_regs): Likewise.
4834 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4835
4836 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4837
4838 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4839 (note_pattern_stores): Declare.
4840 (note_stores): Take an rtx_insn *.
4841 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4842 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4843 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4844 (note_stores): Take an rtx_insn * as argument and process
4845 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4846 (note_pattern_stores): ...this.
4847 (find_first_parameter_load): Pass the insn rather than
4848 its pattern to note_stores.
4849 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4850 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4851 (insert_one_insn): Likewise.
4852 * combine.c (combine_instructions): Likewise.
4853 (likely_spilled_retval_p): Likewise.
4854 (try_combine): Use note_pattern_stores instead of note_stores.
4855 (record_dead_and_set_regs): Pass the insn rather than its pattern
4856 to note_stores.
4857 (reg_dead_at_p): Likewise.
4858 * config/bfin/bfin.c (workaround_speculation): Likewise.
4859 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4860 rather than an rtx.
4861 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4862 instead of note_stores.
4863 (frv_optimize_membar_local): Pass the insn rather than its pattern
4864 to note_stores.
4865 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4866 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4867 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4868 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4869 (mips_reorg_process_insns): Likewise.
4870 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4871 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4872 rather than rtxes.
4873 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4874 its pattern to note_stores.
4875 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4876 of note_stores.
4877 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4878 the insn to note_stores.
4879 (prescan_insns_for_dce): Update call accordingly.
4880 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4881 to note_stores.
4882 * df-problems.c (can_move_insns_across): Likewise.
4883 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4884 * function.c (assign_parm_setup_reg): Likewise.
4885 * gcse-common.c (record_last_mem_set_info_common): Likewise.
4886 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4887 (single_set_gcse): Likewise.
4888 * ira.c (validate_equiv_mem): Likewise.
4889 (update_equiv_regs): Use note_pattern_stores rather than note_stores
4890 for no_equiv.
4891 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4892 pattern to note_stores.
4893 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4894 * loop-iv.c (simplify_using_initial_values): Likewise.
4895 * mode-switching.c (optimize_mode_switching): Likewise.
4896 * optabs.c (emit_libcall_block_1): Likewise.
4897 (expand_atomic_compare_and_swap): Likewise.
4898 * postreload-gcse.c (load_killed_in_block_p): Likewise.
4899 (record_opr_changes): Likewise. Remove explicit handling of
4900 CALL_INSN_FUNCTION_USAGE.
4901 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4902 * regcprop.c (kill_clobbered_values): Likewise.
4903 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4904 to note_stores.
4905 * regrename.c (build_def_use): Likewise.
4906 * reload1.c (reload): Use note_pattern_stores instead of note_stores
4907 for mark_not_eliminable.
4908 (reload_as_needed): Pass the insn rather than its pattern
4909 to note_stores.
4910 (emit_output_reload_insns): Likewise.
4911 * resource.c (mark_target_live_regs): Likewise.
4912 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4913 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4914 instead of note_stores.
4915 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4916 its pattern to note_stores.
4917 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4918 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4919
4920 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4921
4922 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4923 than a #define. Use a structure rather than an array as the
4924 fallback definition. Remove special cases for low array sizes.
4925 (const_hard_reg_set): New typedef.
4926 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4927 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4928 (hard_reg_set_empty_p): Likewise.
4929 (SET_HARD_REG_BIT): Use a function rather than a macro to
4930 handle the case in which HARD_REG_SET is a structure.
4931 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4932 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4933 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4934 (IOR_COMPL_HARD_REG_SET): Likewise.
4935 (hard_reg_set_iterator::pset): Constify the pointer target.
4936 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4937 of a "const HARD_REG_SET". Update the handling of non-integer
4938 HARD_REG_SETs.
4939 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4940 * reload.h: Likewise.
4941 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4942 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4943 of a "const HARD_REG_SET".
4944 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4945 (range_in_hard_reg_set_p): Likewise.
4946 * ira-costs.c (restrict_cost_classes): Likewise.
4947 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
4948 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
4949 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
4950 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
4951 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
4952 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
4953 take an unsigned int and open-code the HARD_REG_SET operations.
4954
4955 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4956
4957 * Makefile.in (OBJS): Remove bt-load.o.
4958 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
4959 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4960 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
4961 document that the option no longer does anything.
4962 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
4963 * target.def (branch_target_register_class): Delete.
4964 (branch_target_register_callee_saved): Likewise.
4965 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
4966 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
4967 * doc/tm.texi: Regenerate.
4968 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
4969 (make_pass_branch_target_load_optimize2): Likewise.
4970 * passes.def (pass_branch_target_load_optimize1): Likewise.
4971 (pass_branch_target_load_optimize2): Likewise.
4972 * targhooks.h (default_branch_target_register_class): Likewise.
4973 * targhooks.c (default_branch_target_register_class): Likewise.
4974 * opt-suggestions.c (test_completion_valid_options): Remove
4975 -fbtr-bb-exclusive from the list of test options.
4976 * bt-load.c: Remove.
4977
4978 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4979
4980 * match.pd: Add flag_unsafe_math_optimizations check
4981 before deciding on the widest type in a binary math operation.
4982
4983 2019-09-09 Martin Liska <mliska@suse.cz>
4984
4985 * config/i386/i386.opt: Update comment of removed
4986 options that are preserved only for backward
4987 compatibility.
4988
4989 2019-09-09 Jakub Jelinek <jakub@redhat.com>
4990
4991 PR target/87853
4992 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
4993 instead of __v16qs.
4994
4995 PR target/91704
4996 * config/i386/avxintrin.h (__v32qs): New typedef.
4997 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
4998 instead of __v32qi.
4999
5000 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5001
5002 * doc/invoke.texi (Option Summary): Cover eBPF.
5003 (eBPF Options): New section.
5004 * doc/extend.texi (BPF Built-in Functions): Likewise.
5005 (BPF Kernel Helpers): Likewise.
5006
5007 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5008
5009 * config.gcc: Support for bpf-*-* targets.
5010 * common/config/bpf/bpf-common.c: New file.
5011 * config/bpf/t-bpf: Likewise.
5012 * config/bpf/predicates.md: Likewise.
5013 * config/bpf/constraints.md: Likewise.
5014 * config/bpf/bpf.opt: Likewise.
5015 * config/bpf/bpf.md: Likewise.
5016 * config/bpf/bpf.h: Likewise.
5017 * config/bpf/bpf.c: Likewise.
5018 * config/bpf/bpf-protos.h: Likewise.
5019 * config/bpf/bpf-opts.h: Likewise.
5020 * config/bpf/bpf-helpers.h: Likewise.
5021 * config/bpf/bpf-helpers.def: Likewise.
5022
5023 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5024
5025 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5026 indirect_calls.
5027
5028 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5029
5030 * opt-functions.awk (integer_range_info): Make sure values are in
5031 numeric context before operating with them.
5032
5033 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5034
5035 * genemit.c (gen_split): Print the filename and line number where the
5036 splitter (or peephole2) was defined, to the dump file.
5037
5038 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5039
5040 PR tree-optimization/91665
5041 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5042 incompatible with the type of PHI result.
5043
5044 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5045
5046 PR target/91684
5047 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5048 gen_unaligned_storedi for 4-byte aligned addresses.
5049
5050 2019-09-06 Jim Wilson <jimw@sifive.com>
5051
5052 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5053 change.
5054
5055 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5056
5057 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5058
5059 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5060
5061 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5062 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5063
5064 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5065
5066 PR target/91654
5067 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5068 cost of SSE->integer and integer->SSE moves from 2 to 6.
5069 (core_cost): Ditto.
5070
5071 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5072
5073 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5074 before testing TYPE_TRANSPARENT_AGGR.
5075 * calls.c (initialize_argument_information, load_register_parameters):
5076 Likewise.
5077
5078 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5079
5080 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5081 high regs.
5082 (cmp_ior): Likewise.
5083
5084 2019-09-06 Martin Liska <mliska@suse.cz>
5085
5086 * doc/match-and-simplify.texi: Separate tuples with ;.
5087
5088 2019-09-06 Martin Liska <mliska@suse.cz>
5089
5090 PR c++/91125
5091 * Makefile.in: Remove tlink.o.
5092 * collect2.c (do_link): New function isolated
5093 from do_tlink.
5094 (main): Use.
5095 * collect2.h (do_tlink): Remove declaration of do_tlink.
5096 * doc/extend.texi: Remove documentation of -frepo.
5097 * doc/invoke.texi: Likewise.
5098 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5099 * tlink.c: Remove.
5100
5101 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5102 Jim Wilson <jimw@sifive.com>
5103
5104 PR target/91635
5105 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5106 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5107 paradoxical_subreg_p (operands[0]).
5108 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5109 use as intermediate value.
5110
5111 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5112
5113 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5114 (sync_compare_and_swap<mode>_insn): Likewise.
5115
5116 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5117
5118 PR middle-end/91615
5119 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5120 without movmisalign optab.
5121
5122 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5123
5124 PR middle-end/91001
5125 PR middle-end/91105
5126 PR middle-end/91106
5127 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5128 types, use type of their first field instead of type of
5129 args[i].tree_value.
5130
5131 2019-09-05 Richard Biener <rguenther@suse.de>
5132
5133 PR rtl-optimization/91656
5134 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5135 of early out.
5136
5137 2019-09-05 Richard Biener <rguenther@suse.de>
5138
5139 PR middle-end/90501
5140 * tree-inline.c (declare_return_variable): Mark the return
5141 slot as addressable after building an address of it.
5142
5143 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5144
5145 * doc/install.texi: Update and clarify requirements to build GNAT.
5146
5147 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5148
5149 PR middle-end/91577
5150 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5151 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5152 call to be in memory.
5153 (pass_expand::execute): Call discover_nonconstant_array_refs before
5154 setting currently_expanding_to_rtl.
5155
5156 2019-09-04 Caroline Tice <cmtice@google.com>
5157
5158 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5159 specified together.
5160
5161 2019-09-04 Marek Polacek <polacek@redhat.com>
5162
5163 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5164
5165 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5166
5167 PR target/32413
5168 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5169 for QI and HImode moves between SSE and general registers.
5170
5171 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5172
5173 PR c/78736
5174 * doc/invoke.texi: Document -Wenum-conversion.
5175
5176 2019-09-04 Richard Biener <rguenther@suse.de>
5177
5178 PR rtl-optimization/36262
5179 * postreload-gcse.c: Include intl.h and gcse.h.
5180 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5181 to avoid linear list walk.
5182 (record_last_mem_set_info): Gate off if not computing transparentness.
5183 (get_bb_avail_insn): If transparentness isn't computed give up
5184 early.
5185 (gcse_after_reload_main): Skip compute_transp and extended PRE
5186 if gcse_or_cprop_is_too_expensive says so.
5187
5188 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5189
5190 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5191 noinit section.
5192 (msp430_select_section): Handle decls with the "noinit" attribute with
5193 default_elf_select_section.
5194 Handle SECCAT_RODATA_MERGE_* section types with
5195 default_elf_select_section.
5196 Add comments about handling of unsupported section types.
5197 (msp430_section_type_flags): Remove handling of the noinit section.
5198
5199 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5200
5201 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5202 conflicting msp430-specific attributes.
5203 (msp430_section_attr): Likewise.
5204 Add warnings about conflicts with generic "noinit" and "section"
5205 attributes.
5206 Fix grammar in -mlarge error message.
5207 (msp430_data_attr): Rename to msp430_persist_attr.
5208 Add warnings about conflicts with generic "noinit" and "section"
5209 attributes.
5210 Add warning for when variable is not initialized.
5211 Chain conditionals which prevent the attribute being added.
5212 (ATTR_EXCL): New helper.
5213 (attr_reent_exclusions): New exclusion table.
5214 (attr_naked_exclusions): Likewise.
5215 (attr_crit_exclusions): Likewise.
5216 (attr_lower_exclusions): Likewise.
5217 (attr_upper_exclusions): Likewise.
5218 (attr_either_exclusions): Likewise.
5219 (attr_persist_exclusions): Likewise.
5220 (msp430_attribute_table): Update with exclusion rules.
5221 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5222 has a section.
5223
5224 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5225
5226 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5227 (msp430_handle_generic_attribute): New function.
5228 * doc/tm.texi: Regenerate.
5229 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5230 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5231 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5232 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5233
5234 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5235
5236 PR tree-optimization/91504
5237 * match.pd: Add ((~a & b) ^a) --> (a | b).
5238
5239 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5240
5241 PR target/91604
5242 * config/i386/i386-expand.c (split_double_mode): If there is more than
5243 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5244 already split matching MEM operand instead of calling adjust_address
5245 again.
5246
5247 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5248
5249 * config.gcc: Obsolete spu target. Remove references to spu.
5250 * configure.ac: Remove references to spu.
5251 * configure: Regenerate.
5252 * config/spu/: Remove directory.
5253 * common/config/spu/: Remove directory.
5254
5255 * doc/extend.texi: Remove references to spu.
5256 * doc/invoke.texi: Likewise.
5257 * doc/md.texi: Likewise.
5258 * doc/sourcebuild.texi: Likewise.
5259
5260 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5261
5262 PR middle-end/91603
5263 PR middle-end/91612
5264 PR middle-end/91613
5265 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5266 and SSA_NAME referring to CONSTANT_P correctly.
5267
5268 2019-09-03 Richard Biener <rguenther@suse.de>
5269
5270 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5271 (vn_nary_op_insert): Likewise.
5272 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5273 (vn_nary_op_lookup): Likewise.
5274 (vn_nary_op_insert): Likewise.
5275
5276 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5277
5278 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5279 (*op0, 1) instead of XEXP (*op1, 0).
5280
5281 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5282
5283 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5284 (aarch64_fjcvtzs): New define_insn.
5285 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5286 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5287 Add AARCH64_JSCVT.
5288 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5289 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5290 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5291 __ARM_FEATURE_JCVT where appropriate.
5292 * config/aarch64/arm_acle.h (__jcvt): Define.
5293
5294 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5295
5296 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5297 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5298 (aarch64_<frintnzs_op><mode>): New define_insn.
5299 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5300 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5301 __ARM_FEATURE_FRINT when appropriate.
5302 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5303 frint32x, frint64z, frint64x.
5304 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5305 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5306 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5307 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5308 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5309 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5310 * config/aarch64/iterators.md (VSFDF): Define.
5311 (FRINTNZX): Likewise.
5312 (frintnzs_op): Likewise.
5313
5314 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5315
5316 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5317 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5318 Cortex-A34.
5319 * config/aarch64/aarch64-tune.md: Regenerated.
5320 * doc/invoke.texi: Document the new processors.
5321
5322 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5323
5324 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5325 string.
5326 (ssbs): Likewise.
5327 (sve2): Likewise.
5328 (sve2-sm4): Likewise.
5329 (sveaes): Likewise.
5330 (svesha3): Likewise.
5331 (svebitperm): Likewise.
5332
5333 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5334 Richard Biener <rguenther@suse.de>
5335
5336 PR tree-optimization/91597
5337 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5338 BIT_AND_EXPR optimization for pointers, even if both operand
5339 ranges don't include NULL, the result can be NULL.
5340
5341 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5342
5343 PR middle-end/91605
5344 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5345 (non_mem_decl_p): ...this.
5346 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5347 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5348 unconditionally as before.
5349
5350 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5351
5352 PR target/91323
5353 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5354 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5355 * tree.def (LTGT_EXPR): Likewise.
5356 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5357
5358 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5359
5360 PR go/91617
5361 * fold-const.c (range_check_type): For enumeral and boolean
5362 type, pass 1 to type_for_size langhook instead of
5363 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5364 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5365 (build_range_check): Don't call unsigned_type_for for pointer types.
5366 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5367 range_check_type result.
5368
5369 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5370
5371 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5372 (replace_ref): Do not replace a chain of only two candidates which are
5373 valid memory references.
5374
5375 2019-09-02 Martin Liska <mliska@suse.cz>
5376
5377 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5378 Bail out when we'll end up with the same number of clusters as
5379 at the beginning.
5380 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5381 (jump_table_cluster::can_be_handled): Remove the guard
5382 as it's already handled in ::is_enabled. Allocate output
5383 after early bail out.
5384
5385 2019-09-02 Martin Liska <mliska@suse.cz>
5386
5387 PR gcov-profile/91601
5388 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5389 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5390 also negative edges.
5391 (circuit): Handle also negative edges as they can happen
5392 in some situations.
5393
5394 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5395
5396 PR target/91472
5397 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5398 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5399 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5400
5401 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5402
5403 PR middle-end/91623
5404 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5405 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5406 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5407 zero vector.
5408
5409 PR lto/91572
5410 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5411 GIMPLE_ASM TREE_LIST operands.
5412
5413 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5414
5415 * doc/generic.texi (Unary and Binary Expressions): Mark up
5416 an instance of TYPE_MIN.
5417
5418 2019-08-31 Stafford Horne <shorne@gmail.com>
5419
5420 * config/or1k/constraints.md (t): New constraint.
5421 * config/or1k/or1k.h (GOT_REGS): New register class.
5422 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5423
5424 2019-08-30 Jim Wilson <jimw@sifive.com>
5425
5426 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5427 and -fpic and -mplt then disable -msave-restore and warn.
5428
5429 2019-08-30 Martin Sebor <msebor@redhat.com>
5430
5431 PR middle-end/91599
5432 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5433 the statement doesn't have one.
5434 * gimple-pretty-print.c (percent_G_format): Same.
5435
5436 PR middle-end/91584
5437 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5438 before using them to validate MEM_REF offset.
5439
5440 2019-08-30 Marek Polacek <polacek@redhat.com>
5441
5442 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5443
5444 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5445
5446 * config/arm/arm.md (unaligned_loaddi,
5447 unaligned_storedi): New unspec insn patterns.
5448 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5449 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5450 and unaligned_storedi for 4-byte aligned memory.
5451 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5452 4-byte aligned memory.
5453
5454 2019-08-30 Martin Jambor <mjambor@suse.cz>
5455
5456 tree-optimization/91579
5457 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5458 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5459 appropriate.
5460 (arg_needs_copy_p): Removed.
5461 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5462 arg_needs_copy_p.
5463 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5464
5465 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5466
5467 * config/i386/i386-features.c
5468 (general_scalar_chain::compute_convert_gain):
5469 Correct cost for double-word shifts.
5470 (general_scalar_to_vector_candidate_p): Reject count operands
5471 greater or equal to mode bitsize.
5472
5473 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5474
5475 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5476 for moves between SSE and non-general registers and between
5477 mask and non-general registers.
5478 (ix86_register_move_cost): Remove stalled comment.
5479
5480 2019-08-29 Richard Biener <rguenther@suse.de>
5481
5482 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5483 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5484
5485 2019-08-29 Richard Biener <rguenther@suse.de>
5486
5487 PR bootstrap/91580
5488 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5489 Do not emit scalar copies for debug-insns, instead replace
5490 their uses with the reg copy used in the chain or reset them
5491 if there is a reaching definition outside of the chain as well.
5492
5493 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5494
5495 PR target/91560
5496 * config/i386/i386-expand.c (expand_vec_perm_movs,
5497 expand_vec_perm_blend, expand_vec_perm_vpermil,
5498 expand_vec_perm_pshufb, expand_vec_perm_1,
5499 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5500 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5501 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5502 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5503 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5504 comments - replace ix86_expand_vec_perm_builtin_1 with
5505 ix86_expand_vec_perm_const_1.
5506 (expand_vec_perm2_vperm2f128_vblend): New function.
5507 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5508 expand_vec_perm2_vperm2f128_vblend as last resort.
5509 (canonicalize_perm): Formatting fix.
5510
5511 PR tree-optimization/91351
5512 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5513 unsigned_type_for.
5514 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5515 range_check_type returns NULL.
5516 * tree-switch-conversion.c (switch_conversion::build_one_array):
5517 Use range_check_type instead of unsigned_type_for, don't perform
5518 linear opt if it returns NULL.
5519 (bit_test_cluster::find_bit_tests): Formatting fix.
5520 (bit_test_cluster::emit): Use range_check_type instead of
5521 unsigned_type_for.
5522 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5523 returns NULL.
5524
5525 2019-08-29 Richard Biener <rguenther@suse.de>
5526
5527 PR tree-optimization/91568
5528 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5529 (vect_update_max_nunits): Add overload for poly_uint64.
5530 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5531 (vect_build_slp_tree): Record max_nunits into the subtree
5532 and merge it upwards.
5533 (vect_print_slp_tree): Print max_nunits.
5534
5535 2019-08-28 Marek Polacek <polacek@redhat.com>
5536
5537 Implement P1152R4: Deprecating some uses of volatile.
5538 PR c++/91361
5539 * doc/invoke.texi: Document -Wvolatile.
5540
5541 2019-08-28 Marek Polacek <polacek@redhat.com>
5542
5543 PR c++/91360 - Implement C++20 P1143R2: constinit.
5544 * doc/invoke.texi: Document -Wc++20-compat.
5545
5546 2019-08-28 Martin Sebor <msebor@redhat.com>
5547
5548 PR tree-optimization/91457
5549 * builtins.c (component_size): New function.
5550 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5551 * builtins.h (compute_objsize): Add argument.
5552 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5553 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5554 (vrp_prop::check_mem_ref): Same.
5555 (vrp_prop::search_for_addr_array): Set no-warning bit.
5556 (check_array_bounds): Same.
5557
5558 2019-08-28 Martin Sebor <msebor@redhat.com>
5559
5560 PR driver/80545
5561 * opts-common.c (option_enabled): Correct checking for language
5562 options.
5563
5564 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5565
5566 * config/i386/i386.c (ix86_register_move_cost): Do not
5567 limit the cost of moves to/from XMM register to minimum 8.
5568
5569 2019-08-28 Martin Jambor <mjambor@suse.cz>
5570
5571 PR ipa/91468
5572 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5573 checking assert a normal assert to test it really is redundant.
5574 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5575 redundant test.
5576 (update_jump_functions_after_inlining): Removed combining unary
5577 arithmetic operations with an ancestor jump function.
5578 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5579 instead of t.
5580
5581 2019-08-28 Richard Biener <rguenther@suse.de>
5582
5583 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5584 add the MD problem.
5585
5586 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5587 Richard Biener <rguenther@suse.de>
5588
5589 * expr.c (expand_assignment): Handle misaligned DECLs.
5590 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5591 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5592 too.
5593 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5594 * varasm.c (build_constant_desc): Align constants of misaligned types.
5595 * config/arm/predicates.md (aligned_operand): New predicate.
5596 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5597 aligned_operand to check restrictions on memory addresses.
5598 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5599 * config/arm/vec-common.md (mov<VALL>): Likewise.
5600
5601 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5602
5603 PR libgomp/91530
5604 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5605 V_128 iterator instead of VI_128.
5606
5607 2019-08-28 Martin Liska <mliska@suse.cz>
5608
5609 PR tree-optimization/90970
5610 * builtins.c (check_access): Remove assignment to maxread
5611 as it hasn't been used since when it was introduced in r255755.
5612
5613 2019-08-27 Martin Sebor <msebor@redhat.com>
5614
5615 PR tree-optimization/91567
5616 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5617 of unknown strings.
5618 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5619 to PTRDIFF_MAX - 2.
5620
5621 2019-08-27 Jeff Law <law@redhat.com>
5622
5623 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5624 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5625
5626 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5627
5628 PR target/91528
5629 * config/i386/i386-features.c (convert_scalars_to_vector):
5630 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5631 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5632 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5633 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5634
5635 2019-08-27 Richard Biener <rguenther@suse.de>
5636
5637 * config/i386/i386-features.h
5638 (general_scalar_chain::~general_scalar_chain): Add.
5639 (general_scalar_chain::insns_conv): New bitmap.
5640 (general_scalar_chain::n_sse_to_integer): New.
5641 (general_scalar_chain::n_integer_to_sse): Likewise.
5642 (general_scalar_chain::make_vector_copies): Adjust signature.
5643 * config/i386/i386-features.c
5644 (general_scalar_chain::general_scalar_chain): Outline,
5645 initialize new members.
5646 (general_scalar_chain::~general_scalar_chain): New.
5647 (general_scalar_chain::mark_dual_mode_def): Record insns
5648 we need to insert conversions at and count them.
5649 (general_scalar_chain::compute_convert_gain): Account
5650 for conversion instructions at chain boundary.
5651 (general_scalar_chain::make_vector_copies): Generate a single
5652 copy for a def by a specific insn.
5653 (general_scalar_chain::convert_registers): First populate
5654 defs_map, then make copies at out-of chain insns.
5655
5656 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5657
5658 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5659 comment.
5660 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5661
5662 2019-08-27 Martin Liska <mliska@suse.cz>
5663
5664 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5665 loop.
5666 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5667 Enclose in anonymous namespace.
5668 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5669 hard_register initialization in braces.
5670 * tree-vrp.h (value_range_base::supports_type_p): Return false
5671 for function with boolean return type.
5672
5673 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5674
5675 * config/i386/i386.c (emit_i387_cw_initialization)
5676 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5677
5678 2019-08-26 Martin Sebor <msebor@redhat.com>
5679
5680 PR c++/83431
5681 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5682 (sprintf_dom_walker): Remove class.
5683 (get_int_range): Make argument const.
5684 (directive::fmtfunc, directive::set_precision): Same.
5685 (format_none): Same.
5686 (build_intmax_type_nodes): Same.
5687 (adjust_range_for_overflow): Same.
5688 (format_floating): Same.
5689 (format_character): Same.
5690 (format_string): Same.
5691 (format_plain): Same.
5692 (get_int_range): Cast away constness.
5693 (format_integer): Same.
5694 (get_string_length): Call get_range_strlen_dynamic. Handle
5695 null lendata.maxbound.
5696 (should_warn_p): Adjust argument scope qualifier.
5697 (maybe_warn): Same.
5698 (format_directive): Same.
5699 (parse_directive): Same.
5700 (is_call_safe): Same.
5701 (try_substitute_return_value): Same.
5702 (sprintf_dom_walker::handle_printf_call): Rename...
5703 (handle_printf_call): ...to this. Initialize target to host charmap
5704 here instead of in pass_sprintf_length::execute.
5705 (struct call_info): Make global.
5706 (sprintf_dom_walker::compute_format_length): Make global.
5707 (sprintf_dom_walker::handle_gimple_call): Same.
5708 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5709 * print-rtl.c (print_pattern): Reduce the number of spaces to
5710 avoid -Wformat-truncation.
5711 * tree-pass.h (make_pass_warn_printf): New function.
5712 * tree-ssa-strlen.c (strlen_optimize): New variable.
5713 (get_string_length): Add comments.
5714 (get_range_strlen_dynamic): New function.
5715 (check_and_optimize_call): New function.
5716 (handle_integral_assign): New function.
5717 (strlen_check_and_optimize_stmt): Factor code out into
5718 strlen_check_and_optimize_call and handle_integral_assign.
5719 (strlen_dom_walker::evrp): New member.
5720 (strlen_dom_walker::before_dom_children): Use evrp member.
5721 (strlen_dom_walker::after_dom_children): Use evrp member.
5722 (printf_strlen_execute): New function.
5723 (pass_strlen::gate): Update to handle printf calls.
5724 (dump_strlen_info): New function.
5725 (pass_data_warn_printf): New variable.
5726 (pass_warn_printf): New class.
5727 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5728 (handle_printf_call): Same.
5729 * tree-vrp.c (value_range_base::type): Adjust assertion.
5730 * vr-values.c (vr_values::update_value_range): Use type of the first
5731 argument rather than the second.
5732
5733 2019-08-26 Richard Biener <rguenther@suse.de>
5734
5735 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5736 Remove.
5737 (convert_scalars_to_vector): Do not call it.
5738
5739 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5740 Uros Bizjak <ubizjak@gmail.com>
5741
5742 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5743 CASE_MATHFN_FLOATN for roundeven.
5744 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5745 I387_ROUNDEVEN.
5746 (ix86_mode_needed): Likewise.
5747 (ix86_mode_after): Likewise.
5748 (ix86_mode_entry): Likewise.
5749 (ix86_mode_exit): Likewise.
5750 (ix86_emit_mode_set): Likewise.
5751 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5752 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5753 (ix86_entity): Add I387_ROUNDEVEN.
5754 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5755 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5756 (define_int_iterator): Likewise.
5757 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5758 (define_constant): Define ROUND_ROUNDEVEN mode.
5759 (define_attr): Add roundeven mode for i387_cw.
5760 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5761 * internal-fn.def (ROUNDEVEN): New builtin function.
5762 * optabs.def (roundeven_optab): New optab.
5763
5764 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5765
5766 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5767 for ROUNDEVEN.
5768 * builtins.def: Added function definitions for roundeven function
5769 variants.
5770 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5771 function call. Adjust condition for floor, ceil, trunc and round.
5772 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5773 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5774 (integer_valued_real_call_p): Added case for roundeven function.
5775 * real.c (is_even): New function. Returns true if real number is even,
5776 otherwise returns false.
5777 (is_halfway_below): New function. Returns true if real number is
5778 halfway between two integers, else return false.
5779 (real_roundeven): New function. Round real number to nearest integer,
5780 rounding halfway cases towards even.
5781 * real.h (real_value): Added descriptive comments. Added function
5782 declaration for roundeven function.
5783 * doc/extend.texi (Other Builtins): List roundeven variants among
5784 functions which can be handled as builtins.
5785
5786 2019-08-26 Richard Biener <rguenther@suse.de>
5787
5788 PR target/91522
5789 PR target/91527
5790 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5791 New member.
5792 (general_scalar_chain::replace_with_subreg): Remove.
5793 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5794 (general_scalar_chain::convert_reg): Adjust signature.
5795 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5796 iterate over all defs of a reg.
5797 (general_scalar_chain::replace_with_subreg): Remove.
5798 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5799 (general_scalar_chain::make_vector_copies): Populate defs_map,
5800 place copy only after defs that are used as vectors in the chain.
5801 (general_scalar_chain::convert_reg): Emit a copy for a specific
5802 def in a specific instruction.
5803 (general_scalar_chain::convert_op): All reg uses are converted here.
5804 (general_scalar_chain::convert_insn): Emit copies for scalar
5805 uses of defs here. Replace uses with the copies we created.
5806 Replace and convert the def. Adjust REG_DEAD notes, remove
5807 REG_EQUIV/EQUAL notes.
5808 (general_scalar_chain::convert_registers): Only handle copies
5809 into the chain here.
5810
5811 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5812
5813 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5814
5815 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5816
5817 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5818 Add nop_convert case.
5819 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5820 Fold all statements if requested.
5821 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5822 Allow to fold all statements.
5823 * tree-vrp.c (class vrp_folder):
5824 Let substitute_and_fold_engine fold all statements.
5825
5826 2019-08-26 Richard Biener <rguenther@suse.de>
5827
5828 PR tree-optimization/91526
5829 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5830 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5831 TODO_update_address_taken.
5832
5833 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5834
5835 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5836 __STDC_HOSTED__.
5837
5838 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5839
5840 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5841 machine mode for unspec_volatile operand.
5842
5843 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5844
5845 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5846 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5847 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5848 (prefer_neon_for_64bits): Remove.
5849 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5850 (tune_params): Remove PREF_NEON_64_FALSE uses.
5851 (arm_option_override): Remove prefer_neon selection code.
5852 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5853 * gcc/config/arm/arm-protos.h (tune_params): Remove
5854 prefer_neon_for_64bits.
5855 (prefer_neon_for_64bits): Remove.
5856
5857 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5858
5859 PR pch/61250
5860 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5861 and issue any diagnostics needed before collecting the pre-PCH
5862 state.
5863
5864 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5865
5866 PR middle-end/91283
5867 * common.opt (fexcess-precision=): Add Optimization flag. Use
5868 flag_excess_precision variable instead of
5869 flag_excess_precision_cmdline.
5870 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5871 member.
5872 (flag_excess_precision): Don't define.
5873 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5874 flag_excess_precision_cmdline. Remove comment.
5875 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5876 and x_flag_excess_precision instead of
5877 frontend_set_flag_excess_precision_cmdline and
5878 x_flag_excess_precision_cmdline.
5879 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5880 x_flag_excess_precision_cmdline.
5881 * toplev.c (init_excess_precision): Remove.
5882 (lang_dependent_init_target): Don't call it.
5883
5884 2019-08-23 Martin Liska <mliska@suse.cz>
5885
5886 * lto-wrapper.c (run_gcc): When setting jobserver
5887 set also parallel to 1. This was done so before r273908.
5888
5889 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
5890
5891 * config/arm/arm-cpus.in (cortex-m35p): New entry.
5892 (cortex-a76ae): Likewise.
5893 (cortex-a77): Likewise
5894 * config/arm/arm-tables.opt: Regenerate.
5895 * config/arm/arm-tune.md: Likewise.
5896 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5897 cortex-a77 CPU options.
5898
5899 2019-08-23 Martin Liska <mliska@suse.cz>
5900
5901 * profile.c (instrument_values): Do not set
5902 0 as last argument.
5903 * tree-profile.c (gimple_gen_interval_profiler): Remove
5904 last argument.
5905 (gimple_gen_pow2_profiler): Likewise.
5906 (gimple_gen_topn_values_profiler): Likewise.
5907 (gimple_gen_ic_profiler): Likewise.
5908 (gimple_gen_time_profiler): Likewise.
5909 (gimple_gen_average_profiler): Likewise.
5910 (gimple_gen_ior_profiler): Likewise.
5911 * value-prof.c (dump_histogram_value): Use default
5912 in switch statement instead of HIST_TYPE_MAX.
5913 (stream_in_histogram_value): Likewise.
5914 (gimple_duplicate_stmt_histograms): Do not
5915 use NULL for implicitly set arguments.
5916 (gimple_divmod_values_to_profile): Do not use
5917 reserve+quick_push.
5918 (gimple_indirect_call_to_profile): Likewise.
5919 (gimple_find_values_to_profile): Use implicit
5920 function call arguments.
5921 * value-prof.h (gimple_alloc_histogram_value):
5922 Set default values.
5923 (gimple_gen_interval_profiler): Remove last argument.
5924 (gimple_gen_pow2_profiler): Likewise.
5925 (gimple_gen_topn_values_profiler): Likewise.
5926 (gimple_gen_ic_profiler): Likewise.
5927 (gimple_gen_time_profiler): Likewise.
5928 (gimple_gen_average_profiler): Likewise.
5929 (gimple_gen_ior_profiler): Likewise.
5930
5931 2019-08-22 Martin Sebor <msebor@redhat.com>
5932
5933 PR middle-end/91490
5934 * builtins.c (c_strlen): Rename argument and introduce new local.
5935 Set no-warning bit on original argument.
5936 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5937 Fold empty and zero constructors into empty strings.
5938 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5939 for missing initializers.
5940 * tree.c (build_string_literal): Handle optional argument.
5941 * tree.h (build_string_literal): Add defaulted argument.
5942 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5943 no-warning bit on original expression.
5944
5945 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5946
5947 PR target/91481
5948 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5949 and UNSPEC_DARN_RAW.
5950 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
5951 UNSPECV_DARN_RAW.
5952 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
5953 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
5954 (darn): Use an unspec_volatile, and UNSPECV_DARN.
5955
5956 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
5957
5958 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
5959 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
5960 * config/rs6000/rs6000.md (unspec): ... here.
5961 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
5962 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5963 cmpeqb, *cmpeqb_internal): Delete, move to...
5964 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
5965 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
5966 cmpeqb, *cmpeqb_internal): ... here.
5967
5968 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5969
5970 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
5971 intrinsics if __ARM_FP.
5972 Use __ARM_FEATURE_CRC32 ifdef guard.
5973
5974 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5975
5976 * config/arm/arm.md (neon_for_64bits): Remove.
5977 (avoid_neon_for_64bits): Remove.
5978 (arm_adddi3): Always split early.
5979 (arm_subdi3): Always split early.
5980 (negdi2): Remove Neon expansion.
5981 (split zero_extend): Split before reload.
5982 (split sign_extend): Split before reload.
5983
5984 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
5985
5986 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
5987 (qhs_extenddi_cstr): Likewise.
5988 * config/arm/arm.md (ashldi3): Always expand early.
5989 (ashlsi3): Likewise.
5990 (ashrsi3): Likewise.
5991 (zero_extend<mode>di2): Remove Neon variants.
5992 (extend<mode>di2): Likewise.
5993 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
5994 (signed_shift_di3_neon): Likewise.
5995 (unsigned_shift_di3_neon): Likewise.
5996 (ashrdi3_neon_imm_noclobber): Likewise.
5997 (lshrdi3_neon_imm_noclobber): Likewise.
5998 (<shift>di3_neon): Likewise.
5999 (split extend): Remove DI extend split patterns.
6000
6001 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6002
6003 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6004 (split not): Add DImode not splitter.
6005 (anddi3): Remove pattern.
6006 (anddi3_insn): Likewise.
6007 (anddi_zesidi_di): Likewise.
6008 (anddi_sesdi_di): Likewise.
6009 (anddi_notdi_di): Likewise.
6010 (anddi_notzesidi_di): Likewise.
6011 (anddi_notsesidi_di): Likewise.
6012 (iordi3): Likewise.
6013 (iordi3_insn): Likewise.
6014 (iordi_zesidi_di): Likewise.
6015 (iordi_sesidi_di): Likewise.
6016 (xordi3): Likewise.
6017 (xordi3_insn): Likewise.
6018 (xordi_sesidi_di): Likewise.
6019 (xordi_zesidi_di): Likewise.
6020 (one_cmpldi2): Likewise.
6021 (one_cmpldi2_insn): Likewise.
6022 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6023 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6024 alternative.
6025 (iwmmxt_xordi3): Likewise.
6026 (iwmmxt_anddi3): Likewise.
6027 * config/arm/neon.md (orndi3_neon): Remove pattern.
6028 (anddi_notdi_di): Likewise.
6029 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6030 (arm_iordi_operand_neon): Likewise.
6031 (arm_xordi_operand_neon): Likewise.
6032 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6033 (iordi_notzesidi_di): Likewise.
6034 (iordi_notdi_zesidi): Likewise.
6035 (iordi_notsesidi_di): Likewise.
6036
6037 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6038
6039 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6040 insn.
6041 (iorsi3_compare0_scratch): Likewise.
6042
6043 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6044
6045 * config/aarch64/aarch64-simd-builtins.def:
6046 (ld1x4): New.
6047 (st1x4): Likewise.
6048 * config/aarch64/aarch64-simd.md:
6049 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6050 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6051 (aarch64_ld1_x4_<mode>): Likewise.
6052 (aarch64_st1_x4_<mode>): Likewise.
6053 * config/aarch64/arm_neon.h:
6054 (vld1_s8_x4): New function.
6055 (vld1q_s8_x4): Likewise.
6056 (vld1_s16_x4): Likewise.
6057 (vld1q_s16_x4): Likewise.
6058 (vld1_s32_x4): Likewise.
6059 (vld1q_s32_x4): Likewise.
6060 (vld1_u8_x4): Likewise.
6061 (vld1q_u8_x4): Likewise.
6062 (vld1_u16_x4): Likewise.
6063 (vld1q_u16_x4): Likewise.
6064 (vld1_u32_x4): Likewise.
6065 (vld1q_u32_x4): Likewise.
6066 (vld1_f16_x4): Likewise.
6067 (vld1q_f16_x4): Likewise.
6068 (vld1_f32_x4): Likewise.
6069 (vld1q_f32_x4): Likewise.
6070 (vld1_p8_x4): Likewise.
6071 (vld1q_p8_x4): Likewise.
6072 (vld1_p16_x4): Likewise.
6073 (vld1q_p16_x4): Likewise.
6074 (vld1_s64_x4): Likewise.
6075 (vld1_u64_x4): Likewise.
6076 (vld1_p64_x4): Likewise.
6077 (vld1q_s64_x4): Likewise.
6078 (vld1q_u64_x4): Likewise.
6079 (vld1q_p64_x4): Likewise.
6080 (vld1_f64_x4): Likewise.
6081 (vld1q_f64_x4): Likewise.
6082 (vst1_s8_x4): Likewise.
6083 (vst1q_s8_x4): Likewise.
6084 (vst1_s16_x4): Likewise.
6085 (vst1q_s16_x4): Likewise.
6086 (vst1_s32_x4): Likewise.
6087 (vst1q_s32_x4): Likewise.
6088 (vst1_u8_x4): Likewise.
6089 (vst1q_u8_x4): Likewise.
6090 (vst1_u16_x4): Likewise.
6091 (vst1q_u16_x4): Likewise.
6092 (vst1_u32_x4): Likewise.
6093 (vst1q_u32_x4): Likewise.
6094 (vst1_f16_x4): Likewise.
6095 (vst1q_f16_x4): Likewise.
6096 (vst1_f32_x4): Likewise.
6097 (vst1q_f32_x4): Likewise.
6098 (vst1_p8_x4): Likewise.
6099 (vst1q_p8_x4): Likewise.
6100 (vst1_p16_x4): Likewise.
6101 (vst1q_p16_x4): Likewise.
6102 (vst1_s64_x4): Likewise.
6103 (vst1_u64_x4): Likewise.
6104 (vst1_p64_x4): Likewise.
6105 (vst1q_s64_x4): Likewise.
6106 (vst1q_u64_x4): Likewise.
6107 (vst1q_p64_x4): Likewise.
6108 (vst1_f64_x4): Likewise.
6109 (vst1q_f64_x4): Likewise.
6110
6111 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6112
6113 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6114
6115 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6116 Richard Sandiford <richard.sandiford@arm.com>
6117
6118 PR target/88839
6119 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6120 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6121
6122 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6123
6124 PR target/90724
6125 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6126 in reg if it fails aarch64_plus_operand predicate.
6127
6128 2019-08-21 Richard Biener <rguenther@suse.de>
6129
6130 PR tree-optimization/91482
6131 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6132 BUILT_IN_ASSUME_ALIGNED calls.
6133
6134 2019-08-21 Richard Biener <rguenther@suse.de>
6135
6136 PR target/91498
6137 PR target/91503
6138 * config/i386/i386-features.c
6139 (general_scalar_chain::make_vector_copies): Copy stack temporary
6140 rtx when using it multiple times.
6141 (general_scalar_chain::convert_reg): Likewise.
6142
6143 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6144
6145 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6146
6147 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6148
6149 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6150 catch more redundant zero initialization cases.
6151 (dse_dom_walker::dse_optimize_stmt): Likewise.
6152
6153 2019-08-20 Richard Biener <rguenther@suse.de>
6154
6155 PR lto/91307
6156 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6157 by collect2 when targetm.have_ctors_dtors which avoids dragging
6158 in temporary filenames from LTO input objects.
6159
6160 2019-08-20 Richard Biener <rguenther@suse.de>
6161
6162 PR tree-optimization/37242
6163 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6164 to (T)a + (T)b if we know that a + b does not overflow.
6165
6166 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6167
6168 PR rtl-optimization/91347
6169 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6170 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6171
6172 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6173
6174 * calls.h (function_arg_info): Add a pass_by_reference field,
6175 defaulting to false.
6176 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6177 when applying pass-by-reference semantics.
6178 (initialize_argument_information): Likewise.
6179 (emit_library_call_value_1): Likewise.
6180 * function.c (assign_parm_data_one): Remove passed_pointer field.
6181 (assign_parm_find_data_types): Don't set it.
6182 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6183 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6184 arg.pass_by_reference instead of passed_pointer.
6185
6186 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6187
6188 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6189 into a single function_arg_info, updating its fields when we
6190 apply pass-by-reference and promotion semantics. Use the
6191 function_arg_info to track the mode rather than keeping it in
6192 a separate local variable.
6193 (initialize_argument_information): Likewise. Base the final
6194 arg_to_skip on this new function_arg_info rather than creating
6195 a new one from scratch.
6196
6197 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6198
6199 * function.c (assign_parm_data_one): Replace passed_type,
6200 promoted_mode and named_arg with a function_arg_info field.
6201 (assign_parm_find_data_types): Remove local variables and
6202 assign directly to "data". Make data->passed_mode shadow
6203 data->arg.mode until promotion, then assign the promoted
6204 mode to data->arg.mode.
6205 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6206 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6207 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6208 (assign_parm_setup_block, assign_parm_setup_reg)
6209 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6210 arg.mode instead of promoted_mode, arg.type instead of passed_type
6211 and arg.named instead of named_arg. Use data->arg for
6212 function_arg_info structures that had the field values passed_type,
6213 promoted_mode and named_arg. Base other function_arg_infos on
6214 data->arg, changing the necessary properties.
6215
6216 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6217
6218 * calls.h (apply_pass_by_reference_rules): Declare.
6219 * calls.c (apply_pass_by_reference_rules): New function.
6220 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6221 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6222 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6223 * function.c (assign_parm_find_data_types): Likewise.
6224 * var-tracking.c (prepare_call_arguments): Likewise.
6225
6226 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6227
6228 * target.def (must_pass_in_stack): Take a function_arg_info instead
6229 of a mode and a type.
6230 * doc/tm.texi: Regenerate.
6231 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6232 instead of a mode and a type.
6233 (must_pass_in_stack_var_size_or_pad): Likewise.
6234 * calls.c (must_pass_in_stack_var_size): Likewise.
6235 (must_pass_in_stack_var_size_or_pad): Likewise.
6236 (initialize_argument_information): Update call to
6237 targetm.calls.must_pass_in_stack.
6238 (must_pass_va_arg_on_stack): Likewise.
6239 * function.c (assign_parm_find_entry_rtl): Likewise.
6240 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6241 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6242 (alpha_function_arg_advance): Likewise.
6243 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6244 (cr16_function_arg_advance): Likewise.
6245 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6246 (cris_arg_partial_bytes): Likewise.
6247 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6248 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6249 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6250 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6251 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6252 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6253 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6254 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6255 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6256 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6257 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6258 instead of a mode and a type.
6259 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6260 (fr30_num_arg_regs): Likewise.
6261 (fr30_setup_incoming_varargs): Update calls accordingly.
6262 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6263 (fr30_function_arg_advance): Likewise.
6264 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6265 instead of a mode and a type.
6266 * config/gcn/gcn.c (num_arg_regs): Likewise.
6267 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6268 num_arg_regs and targetm.calls.must_pass_in_stack.
6269 (gcn_arg_partial_bytes): Likewise.
6270 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6271 function_arg_info instead of a mode and a type.
6272 (classify_argument): Update call accordingly.
6273 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6274 function_arg_info instead of a mode and a type.
6275 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6276 Likewise.
6277 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6278 (rs6000_parm_needs_stack): Update call accordingly.
6279 (setup_incoming_varargs): Likewise.
6280
6281 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6282
6283 * target.def (callee_copies): Take a function_arg_info instead
6284 of a mode, type and named flag.
6285 * doc/tm.texi: Regenerate.
6286 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6287 instead of a mode, type and named flag.
6288 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6289 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6290 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6291 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6292 instead of a mode, type and named flag.
6293 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6294 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6295 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6296 * calls.h (reference_callee_copied): Take a function_arg_info
6297 instead of a mode, type and named flag.
6298 * calls.c (reference_callee_copied): Likewise.
6299 (initialize_argument_information): Update call accordingly.
6300 (emit_library_call_value_1): Likewise.
6301 * function.c (gimplify_parameters): Likewise.
6302 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6303 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6304 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6305 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6306 (TARGET_CALLEE_COPIES): Define to
6307 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6308 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6309 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6310 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6311 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6312 instead of a mode, type and named flag.
6313 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6314 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6315 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6316 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6317 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6318 (TARGET_CALLEE_COPIES): Define to
6319 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6320 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6321 instead of a mode, type and named flag.
6322 * config/sh/sh.c (sh_callee_copies): Likewise.
6323 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6324 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6325 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6326
6327 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6328
6329 * target.def (function_arg_advance): Take a function_arg_info instead
6330 of a mode, type and named flag.
6331 * doc/tm.texi: Regenerate.
6332 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6333 instead of a mode, type and named flag.
6334 * targhooks.c (default_function_arg_advance): Likewise.
6335 * calls.c (initialize_argument_information): Update call to
6336 targetm.calls.function_arg_advance.
6337 (emit_library_call_value_1): Likewise.
6338 * dse.c (get_call_args): Likewise.
6339 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6340 * function.c (assign_parms, gimplify_parameters): Likewise.
6341 * var-tracking.c (prepare_call_arguments): Likewise.
6342 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6343 function_arg_info instead of a mode, type and named flag.
6344 (aarch64_setup_incoming_varargs): Update call accordingly.
6345 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6346 function_arg_info instead of a mode, type and named flag.
6347 (alpha_setup_incoming_varargs): Update call accordingly.
6348 * config/arc/arc.c (arc_function_arg_advance): Take a
6349 function_arg_info instead of a mode, type and named flag.
6350 (arc_setup_incoming_varargs): Update call accordingly.
6351 * config/arm/arm.c (arm_function_arg_advance): Take a
6352 function_arg_info instead of a mode, type and named flag.
6353 (cmse_func_args_or_return_in_stack): Update call accordingly.
6354 (arm_function_ok_for_sibcall): Likewise.
6355 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6356 * config/avr/avr.c (avr_function_arg_advance): Take a
6357 function_arg_info instead of a mode, type and named flag.
6358 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6359 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6360 (c6x_call_saved_register_used): Update call accordingly.
6361 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6362 function_arg_info instead of a mode, type and named flag.
6363 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6364 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6365 (csky_setup_incoming_varargs): Update call accordingly.
6366 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6367 function_arg_info instead of a mode, type and named flag.
6368 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6369 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6370 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6371 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6372 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6373 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6374 (ix86_setup_incoming_varargs): Update call accordingly.
6375 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6376 function_arg_info instead of a mode, type and named flag.
6377 (ia64_setup_incoming_varargs): Update call accordingly.
6378 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6379 function_arg_info instead of a mode, type and named flag.
6380 (iq2000_expand_prologue): Update call accordingly.
6381 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6382 function_arg_info instead of a mode, type and named flag.
6383 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6384 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6385 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6386 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6387 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6388 Likewise.
6389 (microblaze_expand_prologue): Update call accordingly.
6390 * config/mips/mips.c (mips_function_arg_advance): Take a
6391 function_arg_info instead of a mode, type and named flag.
6392 (mips_setup_incoming_varargs): Update call accordingly.
6393 (mips_output_args_xfer): Likewise.
6394 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6395 function_arg_info instead of a mode, type and named flag.
6396 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6397 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6398 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6399 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6400 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6401 (nios2_setup_incoming_varargs): Update call accordingly.
6402 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6403 function_arg_info instead of a mode, type and named flag.
6404 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6405 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6406 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6407 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6408 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6409 (riscv_setup_incoming_varargs): Update call accordingly.
6410 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6411 function_arg_info instead of a mode, type and named flag.
6412 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6413 Likewise.
6414 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6415 (rs6000_parm_needs_stack): Update call accordingly.
6416 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6417 instead of a mode, type and named flag.
6418 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6419 (s390_call_saved_register_used): Update call accordingly.
6420 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6421 instead of a mode, type and named flag.
6422 (sh_output_mi_thunk): Update call accordingly.
6423 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6424 function_arg_info instead of a mode, type and named flag.
6425 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6426 (spu_setup_incoming_varargs): Update call accordingly.
6427 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6428 function_arg_info instead of a mode, type and named flag.
6429 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6430 (tilegx_setup_incoming_varargs): Update call accordingly.
6431 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6432 function_arg_info instead of a mode, type and named flag.
6433 (tilegx_setup_incoming_varargs): Update call accordingly.
6434 * config/v850/v850.c (v850_function_arg_advance): Take a
6435 function_arg_info instead of a mode, type and named flag.
6436 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6437 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6438 (visium_setup_incoming_varargs): Update call accordingly.
6439 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6440 function_arg_info instead of a mode, type and named flag.
6441
6442 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6443
6444 * target.def (function_arg, function_incoming_arg): Take a
6445 function_arg_info instead of a mode, tree and named flag.
6446 * doc/tm.texi: Regenerate.
6447 * targhooks.h (default_function_arg): Take a function_arg_info
6448 instead of a mode, tree and named flag.
6449 (default_function_incoming_arg): Likewise.
6450 * targhooks.c (default_function_arg): Likewise.
6451 (default_function_incoming_arg): Likewise.
6452 * calls.h (function_arg_info::end_marker_p): New function.
6453 (function_arg_info::end_marker): Likewise.
6454 * calls.c (prepare_call_address, initialize_argument_information)
6455 (expand_call, emit_library_call_value_1): Update calls to
6456 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6457 * dse.c: Include calls.h.
6458 (get_call_args): Update call to targetm.calls.function_arg.
6459 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6460 * var-tracking.c (prepare_call_arguments): Likewise.
6461 * function.c (assign_parm_find_entry_rtl): Update call to
6462 targetm.calls.function_incoming_arg.
6463 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6464 function_arg_info instead of a mode, tree and named flag.
6465 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6466 * config/arc/arc.c (arc_function_arg): Likewise.
6467 * config/arm/arm.c (arm_function_arg): Likewise.
6468 (cmse_func_args_or_return_in_stack): Update call accordingly.
6469 (arm_function_ok_for_sibcall): Likewise.
6470 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6471 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6472 instead of a mode, tree and named flag.
6473 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6474 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6475 (c6x_call_saved_register_used): Update call accordingly.
6476 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6477 instead of a mode, tree and named flag.
6478 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6479 (cris_function_arg_1): Likewise.
6480 * config/csky/csky.c (csky_function_arg): Likewise.
6481 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6482 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6483 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6484 (frv_function_arg_1): Likewise.
6485 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6486 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6487 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6488 * config/i386/i386.c (ix86_function_arg): Likewise.
6489 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6490 (ia64_function_arg_1): Likewise.
6491 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6492 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6493 accordingly.
6494 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6495 instead of a mode, tree and named flag.
6496 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6497 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6498 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6499 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6500 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6501 (microblaze_expand_prologue): Update call accordingly.
6502 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6503 instead of a mode, tree and named flag.
6504 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6505 (mmix_function_arg_1): Likewise.
6506 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6507 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6508 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6509 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6510 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6511 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6512 (nvptx_function_incoming_arg): Likewise.
6513 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6514 * config/pa/pa.c (pa_function_arg): Likewise.
6515 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6516 * config/pru/pru.c (pru_function_arg): Likewise.
6517 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6518 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6519 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6520 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6521 (rs6000_parm_needs_stack): Update call accordingly.
6522 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6523 instead of a mode, tree and named flag.
6524 * config/s390/s390.c (s390_function_arg): Likewise.
6525 (s390_call_saved_register_used): Update call accordingly.
6526 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6527 instead of a mode, tree and named flag.
6528 (sh_output_mi_thunk): Update call accordingly.
6529 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6530 (sparc_function_incoming_arg): Take a function_arg_info instead of
6531 a mode, tree and named flag.
6532 * config/spu/spu.c (spu_function_arg): Likewise.
6533 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6534 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6535 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6536 * config/v850/v850.c (v850_function_arg): Likewise.
6537 * config/vax/vax.c (vax_function_arg): Likewise.
6538 * config/visium/visium.c (visium_function_arg): Likewise.
6539 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6540 (xtensa_function_incoming_arg): Likewise.
6541
6542 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6543
6544 * target.def (setup_incoming_varargs): Take a function_arg_info
6545 instead of a mode and tree.
6546 * doc/tm.texi: Regenerate.
6547 * targhooks.h (default_setup_incoming_varargs): Take a
6548 function_arg_info instead of a mode and tree.
6549 * targhooks.c (default_setup_incoming_varargs): Likewise.
6550 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6551 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6552 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6553 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6554 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6555 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6556 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6557 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6558 Likewise.
6559 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6560 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6561 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6562 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6563 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6564 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6565 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6566 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6567 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6568 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6569 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6570 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6571 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6572 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6573 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6574 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6575 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6576 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6577 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6578 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6579 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6580 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6581 * function.c (assign_parms_setup_varargs): Update call to
6582 targetm.calls.setup_incoming_varargs.
6583
6584 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6585
6586 * target.def (pass_by_reference): Take a function_arg_info instead
6587 of a mode, type and named flag.
6588 * doc/tm.texi: Regenerate.
6589 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6590 accordingly.
6591 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6592 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6593 function_arg_info instead of a mode, type and named flag.
6594 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6595 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6596 mode, type and named flag.
6597 * calls.c (pass_by_reference): Likewise.
6598 (pass_va_arg_by_reference): Update call accordingly.
6599 (initialize_argument_information): Likewise.
6600 (emit_library_call_value_1): Likewise.
6601 * function.c (assign_parm_find_data_types): Likewise.
6602 * var-tracking.c (prepare_call_arguments): Likewise.
6603 * stor-layout.c: Include calls.h.
6604 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6605 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6606 function_arg_info instead of a mode, type and named flag.
6607 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6608 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6609 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6610 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6611 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6612 (c6x_call_saved_register_used): Update call to pass_by_reference.
6613 * config/cris/cris.c (cris_pass_by_reference): Take a
6614 function_arg_info instead of a mode, type and named flag.
6615 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6616 function_arg_info instead of a mode, type and named flag.
6617 (epiphany_arg_partial_bytes): Update call accordingly.
6618 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6619 function_arg_info instead of a mode, type and named flag.
6620 (ft32_arg_partial_bytes): Update call accordingly.
6621 * config/i386/i386.c (ix86_pass_by_reference): Take a
6622 function_arg_info instead of a mode, type and named flag.
6623 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6624 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6625 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6626 (m32r_return_in_memory): Update call accordingly.
6627 * config/mips/mips.c (mips_pass_by_reference): Take a
6628 function_arg_info instead of a mode, type and named flag.
6629 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6630 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6631 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6632 (moxie_arg_partial_bytes): Update call accordingly.
6633 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6634 function_arg_info instead of a mode, type and named flag.
6635 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6636 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6637 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6638 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6639 (riscv_return_in_memory): Update call accordingly.
6640 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6641 function_arg_info instead of a mode, type and named flag.
6642 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6643 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6644 * config/s390/s390.c (s390_pass_by_reference): Take a
6645 function_arg_info instead of a mode, type and named flag.
6646 (s390_call_saved_register_used): Update call accordingly.
6647 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6648 instead of a mode, type and named flag.
6649 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6650 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6651 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6652 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6653 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6654 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6655
6656 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6657
6658 * target.def (arg_partial_bytes): Take a function_arg_info instead
6659 of a mode, type and named flag.
6660 * doc/tm.texi: Regenerate.
6661 * target.h (function_arg_info): Declare.
6662 * calls.h (function_arg_info): New class.
6663 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6664 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6665 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6666 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6667 * calls.c (initialize_argument_information): Update call to
6668 targetm.calls.partial_bytes.
6669 (emit_library_call_value_1): Likewise.
6670 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6671 * function.c (assign_parm_find_entry_rtl): Likewise.
6672 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6673 function_arg_info instead of a mode, type and named flag.
6674 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6675 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6676 (cmse_func_args_or_return_in_stack): Update accordingly.
6677 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6678 function_arg_info instead of a mode, type and named flag.
6679 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6680 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6681 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6682 * config/fr30/fr30.c: Include calls.h.
6683 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6684 type and named flag.
6685 * config/frv/frv.c: Include calls.h.
6686 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6687 type and named flag.
6688 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6689 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6690 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6691 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6692 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6693 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6694 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6695 Likewise.
6696 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6697 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6698 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6699 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6700 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6701 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6702 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6703 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6704 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6705 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6706 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6707 (rs6000_parm_needs_stack): Update call accordingly.
6708 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6709 function_arg_info instead of a mode, type and named flag.
6710 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6711 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6712
6713 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6714
6715 * calls.h (must_pass_va_arg_in_stack): Declare.
6716 * calls.c (must_pass_va_arg_in_stack): New function.
6717 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6718 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6719 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6720 Likewise.
6721 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6722
6723 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6724
6725 * calls.h (pass_va_arg_by_reference): Declare.
6726 * calls.c (pass_va_arg_by_reference): New function.
6727 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6728 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6729 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6730 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6731 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6732 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6733 (mips_gimplify_va_arg_expr): Likewise.
6734 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6735 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6736 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6737 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6738 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6739 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6740 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6741 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6742 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6743 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6744 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6745
6746 2019-08-20 Richard Biener <rguenther@suse.de>
6747
6748 PR target/91498
6749 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6750 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6751 (convert_scalars_to_vector): Add timode_p parameter and use it
6752 to guard TImode-only operation.
6753 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6754 (pass_stv::execute): Pass down timode_p.
6755
6756 2019-08-20 Lili Cui <lili.cui@intel.com>
6757
6758 * common/config/i386/i386-common.c
6759 (processor_names): Add tigerlake and cooperlake.
6760 (processor_alias_table): Add tigerlake and cooperlake.
6761 * config.gcc: Add -march=tigerlake and cooperlake.
6762 * config/i386/driver-i386.c
6763 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6764 Add "has_avx" to classify processor.
6765 * config/i386/i386-builtins.c (processor_model) :
6766 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6767 (arch_names_table): Add tigerlake and cooperlake.
6768 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6769 and PROCESSOR_COOPERLAKE.
6770 * config/i386/i386-c.c
6771 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6772 * config/i386/i386-options.c
6773 (m_TIGERLAKE) : Define.
6774 (m_COOPERLAKE) : Ditto.
6775 (m_CORE_AVX512): Ditto.
6776 (processor_cost_table): Add cascadelake.
6777 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6778 * config/i386/i386.h
6779 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6780 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6781 (PTA_MOVDIRI): Ditto.
6782 (PTA_MOVDIR64B): Ditto.
6783 (PTA_COOPERLAKE) : Ditto.
6784 (PTA_TIGERLAKE) : Ditto.
6785 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6786 * doc/extend.texi: Add tigerlake and cooperlake.
6787 * doc/invoke.texi: Add tigerlake and cooperlake.
6788
6789 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6790
6791 * doc/install.texi (Specific, alpha): Remove note to use
6792 binutils 2.11.2 or later.
6793
6794 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6795
6796 PR middle-end/89544
6797 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6798 when possible.
6799
6800 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6801
6802 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6803 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6804 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6805 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6806 * config/aarch64/constraints.md (Dt): New constraint
6807 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6808
6809 2019-08-19 Richard Biener <rguenther@suse.de>
6810
6811 PR tree-optimization/91403
6812 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6813 cases we can handle with tail-recursion...
6814 (follow_ssa_edge_expr): ... here. Do so.
6815
6816 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6817
6818 PR target/91441
6819 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6820 implemented for -fsanitize=kernel-address, and merge check logic
6821 with -fsanitize=address.
6822
6823 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6824
6825 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6826 for cpu and machine. Factor 64/32b builtins.
6827
6828 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6829
6830 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6831 gone, point to sourceforge.net.
6832
6833 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6834
6835 * doc/ux.texi (User Experience Guidelines): Update reference.
6836
6837 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6838
6839 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6840 not LGPL".
6841
6842 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6843
6844 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6845 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6846
6847 2019-08-16 Martin Sebor <msebor@redhat.com>
6848
6849 * tree.def (TYPE_SIZE): Clarify.
6850 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6851
6852 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6853
6854 PR tree-optimization/91109
6855 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6856 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6857 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6858
6859 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6860
6861 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6862 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6863 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6864 (uavg<mode>3_ceil): New expander.
6865 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6866 mode iterator when creating CONST1_RTX.
6867 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6868 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6869 mode iterator for const1_operand predicate.
6870
6871 2019-08-16 Richard Biener <rguenther@suse.de>
6872
6873 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6874 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6875 follow_ssa_edge.
6876 (follow_ssa_edge_in_condition_phi_branch): Likewise.
6877 (analyze_evolution_in_loop): Likewise.
6878 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6879 (follow_ssa_edge_expr): ... here. Refactor code.
6880
6881 2019-08-16 Richard Biener <rguenther@suse.de>
6882
6883 PR target/91469
6884 * config/i386/i386-features.c
6885 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6886
6887 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6888
6889 PR other/91255
6890 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6891 only if subst_name matches curr_attr string.
6892
6893 2019-08-16 Richard Biener <rguenther@suse.de>
6894
6895 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6896 stmt at gsi_p, instead replace it with a NOP removed later.
6897 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6898 that became dead because of that.
6899
6900 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
6901
6902 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6903 for which we can't represent a range.
6904 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6905 set_varying.
6906 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6907 Set VR_UNDEFINED if type is not supported.
6908 * tree-ssanames.c (get_range_info): Pass type to set_varying.
6909 * tree-vrp.c (value_range_base::check): Assert that a varying has
6910 min/max set.
6911 (value_range_base::equal_p): Early bail for undefines.
6912 (value_range_base::set_varying): Accept a type.
6913 (value_range::set_varying): Same.
6914 (value_range_base::type): VARYING can have a type, while UNDEFINE
6915 is typeless.
6916 (value_range_base::dump): Print type for VARYING nodes.
6917 (value_range_base::set): Add type to VARYING.
6918 (extract_range_from_multiplicative_op): Pass type to set_varying.
6919 (extract_range_from_binary_expr): Same.
6920 (value_range_base::intersect_helper): Same.
6921 (value_range_base::union_helper): Same.
6922 (value_range_base::normalize_symbolics): Same.
6923 (determine_value_range_1): Same.
6924 * tree-vrp.h (class value_range_base): Add type to set_varying.
6925 Add prototype for dump(void).
6926 Add prototype for supports_type_p.
6927 (class value_range): Add type to set_varying.
6928 Add prototype for dump(void).
6929 * vr-values.c (set_value_range_to_truthvalue): Pass type to
6930 set_varying.
6931 (vr_values::get_lattice_entry): Set varying even if propagation
6932 finished.
6933 Pass type to set_varying.
6934 (vr_values::get_value_range): Remove vr_const_varying.
6935 Reallocate the lattice if needed.
6936 (vr_values::update_value_range): Pass type to set_varying.
6937 (vr_values::extract_range_for_var_from_comparison_expr): Same.
6938 (vr_values::extract_range_from_binary_expr): Same.
6939 (vr_values::extract_range_from_unary_expr): Same.
6940 (vr_values::extract_range_from_cond_expr): Same.
6941 (vr_values::check_for_binary_op_overflow): Same.
6942 (vr_values::extract_range_basic): Same.
6943 (vr_values::extract_range_from_assignment): Same.
6944 (vr_values::vr_values): Increase size of num_vr_values.
6945 (vr_values::extract_range_from_phi_node): Pass type to
6946 set_varying.
6947
6948 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
6949
6950 PR target/90878
6951 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
6952 for costs of hard register moves.
6953 (ix86_register_move_cost): Likewise.
6954 * config/i386/i386.h (processor_costs): Move costs of hard
6955 register moves to hard_register. Add int_load, int_store,
6956 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6957 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
6958 for costs of RTL expressions.
6959 * config/i386/x86-tune-costs.h: Move costs of hard register
6960 moves to hard_register. Duplicate int_load, int_store,
6961 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
6962 sse_load, sse_store for costs of RTL expressions.
6963
6964 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
6965
6966 * target.def (setup_incoming_vararg_bounds): Remove.
6967 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
6968 * doc/tm.texi: Regenerate.
6969 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
6970 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
6971 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6972 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
6973
6974 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6975
6976 MSP430: Fix lines over 80 characters long in
6977 config/msp430/*.{c,h} files
6978
6979 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
6980 specifier in string.
6981 (msp430_select_hwmult_lib): Split line more than 80 characters long.
6982 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
6983 redundant old comment.
6984 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
6985 Split line more than 80 characters long.
6986 * config/msp430/msp430.c (msp430_option_override): Likewise.
6987 (msp430_return_in_memory): Likewise.
6988 (msp430_gimplify_va_arg_expr): Likewise.
6989 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
6990 (msp430_legitimate_constant): Likewise.
6991 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
6992 (msp430_attr): Likewise.
6993 (msp430_data_attr): Likewise.
6994 (msp430_start_function): Likewise.
6995 (gen_prefix): Likewise.
6996 (msp430_init_sections): Likewise.
6997 (msp430_select_section): Likewise.
6998 (msp430_function_section): Likewise.
6999 (msp430_unique_section): Likewise.
7000 (msp430_output_aligned_decl_common): Likewise.
7001 (msp430_do_not_relax_short_jumps): Likewise.
7002 (msp430_init_builtins): Likewise.
7003 (msp430_expand_delay_cycles): Likewise.
7004 (msp430_expand_prologue): Likewise.
7005 (msp430_expand_epilogue): Likewise.
7006 (msp430_expand_helper): Likewise.
7007 (msp430_split_movsi): Likewise.
7008 (msp430_print_operand): Likewise.
7009 (msp430_return_addr_rtx): Likewise.
7010 (msp430x_extendhisi): Likewise.
7011 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7012 (ASM_SPEC): Likewise.
7013 Remove very obvious comments.
7014 (LIB_SPEC): Split line more than 80 characters long.
7015 (EH_RETURN_HANDLER_RTX): Likewise.
7016 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7017
7018 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7019
7020 MSP430: Fix whitespace errors and incorrect indentation in
7021 config/msp430/*.{c,h} files
7022
7023 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7024 (msp430_select_hwmult_lib): Likewise.
7025 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7026 (msp430_extract_mcu_data): Likewise.
7027 (struct t_msp430_mcu_data): Likewise.
7028 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7029 before left square bracket.
7030 (msp430_option_override): Fix indentation.
7031 (msp430_hard_regno_nregs_with_padding): Likewise.
7032 (msp430_initial_elimination_offset): Likewise.
7033 (msp430_special_register_convention_p): Remove whitespace before left
7034 square bracket and after exclamation mark.
7035 (msp430_evaluate_arg): Likewise.
7036 (msp430_callee_copies): Fix indentation.
7037 (msp430_gimplify_va_arg_expr): Likewise.
7038 (msp430_function_arg_advance): Remove whitespace before left square
7039 bracket.
7040 (reg_ok_for_addr): Likewise.
7041 (msp430_preserve_reg_p): Likewise.
7042 (msp430_compute_frame_info): Likewise.
7043 (msp430_asm_output_addr_const_extra): Add space between function name
7044 and open parenthesis.
7045 (has_section_name): Fix indentation.
7046 (msp430_attr): Remove trailing whitespace.
7047 (msp430_section_attr): Likewise.
7048 (msp430_data_attr): Likewise.
7049 (struct msp430_attribute_table): Fix comment and whitespace.
7050 (msp430_start_function): Remove whitespace before left square bracket.
7051 Add space between function name and open parenthesis.
7052 (msp430_select_section): Remove trailing whitespace.
7053 (msp430_section_type_flags): Remove trailing whitespace.
7054 (msp430_unique_section): Remove space before closing parenthesis.
7055 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7056 (msp430_builtins): Remove whitespace before left square bracket.
7057 (msp430_init_builtins): Fix indentation.
7058 (msp430_expand_prologue): Remove whitespace before left square bracket.
7059 Remove space before closing parenthesis.
7060 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7061 (msp430_split_movsi): Remove space before closing parenthesis.
7062 (helper_function_name_mappings): Fix indentation.
7063 (msp430_use_f5_series_hwmult): Fix whitespace.
7064 (use_32bit_hwmult): Likewise.
7065 (msp430_no_hwmult): Likewise.
7066 (msp430_output_labelref): Remove whitespace before left square bracket.
7067 (msp430_print_operand_raw): Likewise.
7068 (msp430_print_operand_addr): Likewise.
7069 (msp430_print_operand): Add two spaces after '.' in comment.
7070 Fix trailing whitespace.
7071 (msp430x_extendhisi): Fix indentation.
7072 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7073 tab.
7074 (PC_REGNUM): Likewise.
7075 (STACK_POINTER_REGNUM): Likewise.
7076 (CC_REGNUM): Likewise.
7077
7078 2019-08-15 Richard Biener <rguenther@suse.de>
7079
7080 PR target/91454
7081 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7082 helper.
7083 (general_scalar_chain::make_vector_copies): Use it.
7084
7085 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7086
7087 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7088
7089 2019-08-15 Martin Liska <mliska@suse.cz>
7090
7091 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7092 operators with no arguments.
7093 (eliminate_unnecessary_stmts): Likewise here.
7094
7095 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7096
7097 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7098 <case COMPARE>: Revert 2019-08-14 change.
7099 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7100 for (TARGET_64BIT || mode != DImode).
7101
7102 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7103
7104 * tree-vrp.c (value_range_base::set): Merge in code from
7105 value_range_base::set_and_canonicalize.
7106 Enforce canonicalization at set time.
7107 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7108 (value_range_base::set_undefined): Inline call to set().
7109 (value_range_base::set_varying): Same.
7110 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7111 (vrp_val_max): New argument handle_pointers.
7112 (vrp_val_min): Same.
7113 (ranges_from_anti_range): Same.
7114 (extract_range_into_wide_ints): Use tree argument instead of sign
7115 and precision.
7116 (extract_range_from_multiplicative_op): Take in tree type instead
7117 of precision and sign. Adapt function for canonicalized ranges.
7118 (extract_range_from_binary_expr): Pass type to
7119 extract_range_from_multiplicative_op.
7120 Adapt for canonicalized ranges.
7121 (extract_range_from_unary_expr): Same.
7122 (value_range_base::intersect_helper): Adjust for canonicalized
7123 ranges.
7124 (value_range_base::union_helper): Same.
7125 (value_range_base::normalize_symbolics): New.
7126 * tree-vrp.h (class value_range_base): Remove
7127 set_and_canonicalize.
7128 New prototype for normalize_symbolics.
7129 (class value_range): Remove set_and_canonicalize.
7130 (vrp_val_min): Adjust prototype.
7131 (vrp_val_max): Same.
7132 * vr-values.c
7133 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7134 instead of set_and_canonicalize.
7135
7136 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7137
7138 PR middle-end/91444
7139 * tree-vect-stmts.c (vectorizable_call): Check that the function
7140 is a BUILT_IN_MD function before passing it to
7141 targetm.vectorize.builtin_md_vectorized_function.
7142
7143 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7144
7145 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7146 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7147 (aarch64_select_early_remat_modes): Use it.
7148
7149 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7150
7151 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7152 16 for SVE predicates even if they are fixed-length.
7153
7154 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7155
7156 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7157 operand order match the MOV /Z alias.
7158
7159 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7160
7161 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7162 the vector pattern as an aarch64_svpattern argument. Update the
7163 overloaded caller accordingly.
7164 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7165 (aarch64_output_sve_vector_inc_dec): Likewise.
7166
7167 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7168
7169 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7170 multiplication case, try to compute VG * (lowest set bit) directly
7171 rather than always basing the multiplication on VG. Use
7172 expand_mult for the multiplication if we can.
7173
7174 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7175
7176 * config/aarch64/aarch64-protos.h
7177 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7178 (aarch64_sve_inc_dec_immediate_p): Rename to...
7179 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7180 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7181 (aarch64_output_sve_scalar_inc_dec): Declare.
7182 (aarch64_output_sve_inc_dec_immediate): Rename to...
7183 (aarch64_output_sve_vector_inc_dec): ...this.
7184 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7185 (aarch64_output_sve_scalar_inc_dec): New functions.
7186 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7187 arguments. Only handle true ADDVL and ADDPL instructions;
7188 don't emit an INC or DEC.
7189 (aarch64_sve_inc_dec_immediate_p): Rename to...
7190 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7191 (aarch64_output_sve_inc_dec_immediate): Rename to...
7192 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7193 aarch64_sve_vector_inc_dec_immediate_p.
7194 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7195 (aarch64_sve_plus_immediate): New predicates.
7196 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7197 rather than aarch64_sve_addvl_addpl_immediate.
7198 (aarch64_sve_inc_dec_immediate): Rename to...
7199 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7200 aarch64_sve_vector_inc_dec_immediate_p.
7201 (aarch64_sve_add_operand): Update accordingly.
7202 * config/aarch64/constraints.md (Uai): New constraint.
7203 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7204 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7205 operand into a register if it satisfies aarch64_sve_plus_immediate.
7206 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7207 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7208 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7209 aarch64_output_sve_vector_inc_dec instead of
7210 aarch64_output_sve_inc_dec_immediate.
7211
7212 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7213
7214 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7215 (UNSPEC_REVW): New constants.
7216 (elem_bits): New mode attribute.
7217 (SVE_INT_UNARY): New int iterator.
7218 (optab): Handle UNSPEC_REV[BHW].
7219 (sve_int_op): New int attribute.
7220 (min_elem_bits): Handle VNx16QI and the predicate modes.
7221 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7222 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7223 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7224 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7225 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7226 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7227 unspecs based on the total width of the reversed data.
7228 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7229 reinterpret followed by a subreg on big-endian targets.
7230
7231 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7232 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7233
7234 * config/aarch64/aarch64-sve.md
7235 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7236 alternatives in which one of the inputs is in the same register
7237 as the output.
7238
7239 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7240
7241 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7242 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7243
7244 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7245
7246 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7247 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7248
7249 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7250 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7251
7252 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7253 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7254 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7255
7256 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7257 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7258
7259 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7260 Add an alternative that uses reversed shifts.
7261
7262 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7263
7264 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7265 struct.
7266
7267 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7268
7269 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7270 a commutativity marker.
7271
7272 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7273 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7274
7275 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7276 (aarch64_prepare_sve_cond_int_fma): Declare.
7277 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7278 (aarch64_prepare_sve_int_fma): New functions.
7279 (aarch64_prepare_sve_cond_int_fma): Likewise.
7280 * config/aarch64/aarch64-sve.md
7281 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7282 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7283 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7284 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7285 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7286 (*madd<mode>): Rename to...
7287 (*fma<mode>4): ...this.
7288 (*msub<mode>): Rename to...
7289 (*fnma<mode>4): ...this.
7290
7291 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7292 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7293
7294 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7295 Print 2.0 naturally.
7296 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7297 * config/aarch64/predicates.md
7298 (aarch64_sve_float_negated_arith_immediate): New predicate,
7299 renamed from aarch64_sve_float_arith_with_sub_immediate.
7300 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7301 positive and negative constants.
7302 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7303 or an aarch64_sve_float_arith_with_sub_immediate.
7304 * config/aarch64/constraints.md (vsN): Use
7305 aarch64_sve_float_negated_arith_immediate.
7306 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7307 iterator.
7308 (sve_pred_fp_rhs2_immediate): New int attribute.
7309 * config/aarch64/aarch64-sve.md
7310 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7311 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7312 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7313 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7314 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7315 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7316
7317 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7318 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7319
7320 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7321 (*aarch64_cond_abd<SVE_F:mode>_3)
7322 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7323
7324 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7325 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7326
7327 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7328 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7329
7330 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7331 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7332
7333 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7334 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7335 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7336 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7337 optabs.
7338 * optabs.h (create_convert_operand_from): Expand comment.
7339 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7340 when mapping scalar rtxes to vector operands.
7341 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7342 ashiftrt and lshiftrt.
7343 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7344 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7345 (*cond_<optab><mode>_any_const): New patterns.
7346
7347 2019-08-15 Martin Liska <mliska@suse.cz>
7348
7349 PR ipa/91438
7350 * cgraph.c (cgraph_node::remove): When setting
7351 n->origin = NULL for all nested functions, reset
7352 also next_nested.
7353
7354 2019-08-15 Martin Liska <mliska@suse.cz>
7355
7356 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7357 and next_nested.
7358
7359 2019-08-15 Martin Liska <mliska@suse.cz>
7360
7361 PR ipa/91404
7362 * passes.c (order): Remove.
7363 (uid_hash_t): Likewise).
7364 (remove_cgraph_node_from_order): Remove from set
7365 of pointers (cgraph_node *).
7366 (insert_cgraph_node_to_order): New.
7367 (duplicate_cgraph_node_to_order): New.
7368 (do_per_function_toporder): Register all 3 cgraph hooks.
7369 Skip removed_nodes now as we know about all of them.
7370
7371 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7372
7373 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7374 <case E_V8QImode>: Use vector_set path for
7375 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7376 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7377 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7378
7379 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7380
7381 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7382
7383 2019-08-14 Martin Sebor <msebor@redhat.com>
7384
7385 PR tree-optimization/91294
7386 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7387 source length as exact.
7388
7389 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7390
7391 * doc/extend.texi: Add "noinit" attribute documentation.
7392 * doc/sourcebuild.texi: Add noinit effective target documentation.
7393 * varasm.c (default_section_type_flags): Add support for "noinit"
7394 section.
7395 (default_elf_select_section): Add support for "noinit" attribute.
7396 * config/msp430/msp430.c (msp430_attribute_table): Remove
7397 "noinit" entry.
7398
7399 2019-08-14 Richard Biener <rguenther@suse.de>
7400 Uroš Bizjak <ubizjak@gmail.com>
7401
7402 PR target/91154
7403 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7404 mode arguments.
7405 (scalar_chain::smode): New member.
7406 (scalar_chain::vmode): Likewise.
7407 (dimode_scalar_chain): Rename to...
7408 (general_scalar_chain): ... this.
7409 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7410 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7411 base with TImode and V1TImode.
7412 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7413 (general_scalar_chain::vector_const_cost): Adjust for SImode
7414 chains.
7415 (general_scalar_chain::compute_convert_gain): Likewise. Add
7416 {S,U}{MIN,MAX} support.
7417 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7418 (general_scalar_chain::make_vector_copies): Likewise. Handle
7419 non-DImode chains appropriately.
7420 (general_scalar_chain::convert_reg): Likewise.
7421 (general_scalar_chain::convert_op): Likewise.
7422 (general_scalar_chain::convert_insn): Likewise. Add
7423 fatal_insn_not_found if the result is not recognized.
7424 (convertible_comparison_p): Pass in the scalar mode and use that.
7425 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7426 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7427 (scalar_to_vector_candidate_p): Remove by inlining into single
7428 caller.
7429 (general_remove_non_convertible_regs): Rename from
7430 dimode_remove_non_convertible_regs.
7431 (remove_non_convertible_regs): Remove by inlining into single caller.
7432 (convert_scalars_to_vector): Handle SImode and DImode chains
7433 in addition to TImode chains.
7434 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7435 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7436 (*<maxmin>di3_doubleword): Likewise.
7437
7438 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7439 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7440
7441 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7442 (*cond_bic<mode>_any): New patterns.
7443
7444 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7445
7446 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7447 take the equivalent mask, as well as a bit count.
7448 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7449 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7450 (aarch64_sve_pred_and_operand): New predicates.
7451 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7452 code attribute.
7453 * config/aarch64/aarch64-sve.md
7454 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7455 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7456
7457 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7458
7459 * config/aarch64/aarch64-sve.md
7460 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7461 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7462 New patterns.
7463
7464 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7465 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7466
7467 * config/aarch64/aarch64-sve.md
7468 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7469 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7470
7471 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7472 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7473
7474 * config/aarch64/aarch64-sve.md
7475 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7476 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7477
7478 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7479
7480 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7481 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7482 New pattern.
7483
7484 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7485 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7486
7487 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7488
7489 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7490 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7491
7492 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7493 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7494 (aarch64_print_operand): Add support for %I.
7495 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7496 Bitcast floating-point constants to the corresponding integer constant.
7497 (aarch64_float_const_representable_p): Handle vectors as well
7498 as scalars.
7499 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7500 for the new vcond_mask_<mode><vpred> expander.
7501 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7502 test aarch64_float_const_representable_p.
7503 (aarch64_sve_reg_or_dup_imm): New predicate.
7504 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7505 gen_vcond_mask_<mode><vpred> instead of
7506 gen_aarch64_sve_dup<mode>_const.
7507 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7508 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7509 for operands 1 and 2 respectively. Force operand 2 into a
7510 register if operand 1 is a register. Fold old define_insn...
7511 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7512 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7513 floating-point constants that can be moved as integers. Add
7514 alternatives for MOV /M and FMOV /M.
7515 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7516 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7517 1 and 2 respectively.
7518 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7519 as scalars.
7520 (vss): New constraint.
7521
7522 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7523
7524 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7525 (aarch64_sve_float_maxmin_operand): New predicates.
7526 * config/aarch64/constraints.md (vsB): New constraint.
7527 (vsM): Fix typo.
7528 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7529 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7530 UNSPEC_COND_FMINNM.
7531 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7532 Use aarch64_sve_float_maxmin_operand for operand 2.
7533 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7534 Add alternatives for the constant forms.
7535
7536 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7537
7538 * config/aarch64/constraints.md (vsb): New constraint.
7539 (vsm): Generalize description.
7540 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7541 iterator.
7542 (sve_imm_con): Handle smax, smin, umax and umin.
7543 (sve_imm_prefix): New code attribute.
7544 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7545 (aarch64_sve_vsb_operand): New predicates.
7546 (aarch64_sve_mul_immediate): Rename to...
7547 (aarch64_sve_vsm_immediate): ...this.
7548 (aarch64_sve_mul_operand): Rename to...
7549 (aarch64_sve_vsm_operand): ...this.
7550 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7551 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7552 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7553 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7554 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7555 add movprfx support for the immediate alternatives.
7556 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7557 of the above.
7558 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7559 for operand 3.
7560
7561 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7562
7563 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7564 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7565 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7566
7567 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7568
7569 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7570 (optab, sve_int_op): Handle them.
7571 * config/aarch64/aarch64-sve.md: Expand comment.
7572
7573 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7574
7575 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7576 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7577 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7578
7579 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7580
7581 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7582 (aarch64_expand_sve_const_pred_trn): New functions.
7583 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7584 use the above functions when the parameter is true.
7585 (aarch64_expand_sve_const_pred): Update call accordingly.
7586 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7587 Rename to...
7588 (@aarch64_sve_<perm_insn><mode>): ...this.
7589
7590 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7591
7592 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7593 Declare.
7594 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7595 (aarch64_sve_emit_int_cmp): New functions.
7596 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7597 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7598 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7599 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7600 (UNSPEC_PRED_Z): New unspec.
7601 (set_clobber_cc_nzc): Delete.
7602 * config/aarch64/aarch64-sve.md: Add a block comment about
7603 UNSPEC_PRED_Z.
7604 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7605 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7606 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7607 UNSPEC_MERGE_PTRUE.
7608 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7609 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7610 check for compatible predicates.
7611 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7612 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7613 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7614 comparisons above.
7615
7616 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7617
7618 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7619 * config/aarch64/aarch64-sve.md: Add a section describing it.
7620 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7621 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7622 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7623 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7624 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7625 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7626 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7627 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7628 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7629 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7630 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7631 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7632 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7633 (aarch64_evpc_rev_local): Update accordingly.
7634
7635 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7636
7637 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7638 iterators.
7639 (SVE_BHSI, SVE_SDI): Tweak comment.
7640 (SVE_HSDI): Likewise. Fix definition.
7641 (SVE_SDF): New mode iterator.
7642 (elem_bits): New mode attribute.
7643 (SVE_COND_FCVT): New int iterator.
7644 * config/aarch64/aarch64-sve.md
7645 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7646 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7647 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7648 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7649 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7650 ...these new patterns.
7651 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7652 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7653 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7654 Merge into...
7655 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7656 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7657 ...these new patterns.
7658 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7659 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7660 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7661 ...this new pattern.
7662 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7663 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7664 ...this new pattern.
7665 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7666
7667 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7668
7669 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7670 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7671 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7672 unspecs.
7673 (optab, su): Handle them.
7674 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7675 * config/aarch64/aarch64-sve.md
7676 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7677 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7678 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7679 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7680 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7681 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7682 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7683 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7684 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7685 FIXUORS.
7686 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7687 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7688 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7689 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7690 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7691 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7692 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7693 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7694 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7695 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7696 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7697 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7698 of UNSPEC_FLOAT_CONVERT.
7699 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7700 aarch64_sve_extend<mode><Vwide>2.
7701
7702 2019-08-14 Richard Biener <rguenther@suse.de>
7703
7704 PR target/91154
7705 * config/i386/i386-features.c
7706 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7707 individual instruction gain. Fix reg-reg copy GRP cost. Use
7708 ix86_cost->sse_op for vector instruction costs.
7709
7710 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7711
7712 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7713 (cmp_op): Handle it.
7714 (SVE_COND_FP_CMP): Rename to...
7715 (SVE_COND_FP_CMP_I0): ...this.
7716 (SVE_FP_CMP): Remove.
7717 * config/aarch64/aarch64-sve.md
7718 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7719 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7720 using unspecs to represent the comparison.
7721 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7722 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7723 accordingly.
7724 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7725 (aarch64_unspec_cond_code): Move after integer code. Handle
7726 UNORDERED.
7727 (aarch64_emit_sve_predicated_cond): Replace with...
7728 (aarch64_emit_sve_fp_cond): ...this new function.
7729 (aarch64_emit_sve_or_conds): Replace with...
7730 (aarch64_emit_sve_or_fp_conds): ...this new function.
7731 (aarch64_emit_sve_inverted_cond): Replace with...
7732 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7733 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7734
7735 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7736
7737 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7738 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7739 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7740 SVE_HSD instead of SVE_SD.
7741
7742 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7743 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7744
7745 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7746 iterator.
7747 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7748 attributes.
7749 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7750 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7751 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7752 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7753 (*div<SVE_F:mode>3): Generalize to...
7754 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7755
7756 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7757 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7758
7759 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7760 constants.
7761 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7762 predicate.
7763 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7764 Declare.
7765 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7766 function.
7767 * config/aarch64/aarch64-sve.md: Add a block comment about the
7768 handling of predicated FP operations.
7769 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7770 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7771 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7772 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7773 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7774 operand.
7775 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7776 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7777 operand.
7778 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7779 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7780 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7781 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7782 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7783 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7784 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7785 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7786 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7787 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7788 strictness operands. Use aarch64_sve_pred_dominates_p to check
7789 whether the predicate on the conditional operation is suitable
7790 for merging. Split patterns into the canonical equal-predicate form.
7791 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7792 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7793
7794 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7795 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7796
7797 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7798 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7799 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7800 rtx codes.
7801 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7802 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7803 unspecs.
7804
7805 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7806 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7807
7808 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7809 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7810 actually has, rather than relying on REG_EQUAL notes.
7811 Make the insn operand order match the SVE operand order.
7812 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7813 the SVE operand order.
7814
7815 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7816
7817 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7818 (aarch64_emit_set_immediate): Likewise.
7819 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7820 (aarch64_pfalse_reg): Likewise.
7821 (aarch64_convert_sve_data_to_pred): New function.
7822 (aarch64_sve_move_pred_via_while): Take an optional target register
7823 and the required register mode.
7824 (aarch64_expand_sve_const_pred_1): New function.
7825 (aarch64_expand_sve_const_pred): Likewise.
7826 (aarch64_expand_mov_immediate): Build an all-true predicate
7827 if the significant bits of the immediate are all true. Use
7828 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7829 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7830 before register allocation.
7831 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7832 a VNx16BI PTRUE when splitting the memory alternative.
7833 (vec_duplicate<mode>): Update accordingly.
7834 (*pred_cmp<cmp_op><mode>): Rename to...
7835 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7836
7837 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7838
7839 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7840 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7841 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7842 (UNSPEC_PTEST): New unspec.
7843 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7844 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7845 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7846 * config/aarch64/aarch64-sve.md: Add a new section describing the
7847 handling of UNSPEC_PTEST.
7848 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7849 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7850 (ptest_ptrue<mode>): Replace with...
7851 (aarch64_ptest<mode>): ...this new pattern.
7852 (cbranch<mode>4): Update after above changes.
7853 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7854 UNSPEC_PTEST_PTRUE.
7855 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7856 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7857 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7858
7859 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7860
7861 PR lto/91287
7862 * builtins.c (builtin_with_linkage_p): New function.
7863 * builtins.h (builtin_with_linkage_p): New function.
7864 * symtab.c (write_symbol): Remove redundant assert.
7865 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7866 Remove FIXME and use builtin_with_linkage_p.
7867
7868 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7869
7870 PR middle-end/91421
7871 * tree-core.h (function_decl::function_code): Change type to
7872 unsigned int.
7873 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7874 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7875 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7876 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
7877 is BUILT_IN_NORMAL.
7878 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7879 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7880 (fndecl_built_in_p): Change the type of the "name" argument to
7881 unsigned int.
7882 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7883 after check for DECL_BUILT_IN_CLASS.
7884 * cgraphclones.c (build_function_decl_skip_args): Use
7885 set_decl_built_in_function.
7886 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7887 * ipa-split.c (split_function): Likewise.
7888 * langhooks.c (add_builtin_function_common): Likewise.
7889 * omp-simd-clone.c (simd_clone_create): Likewise.
7890 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7891 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7892 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7893 DECL_FUNCTION_CODE.
7894 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7895 instead of DECL_FUNCTION_CODE.
7896 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7897 instead of DECL_FUNCTION_CODE.
7898 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7899 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7900 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
7901 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7902 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7903 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7904 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7905 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7906 (alpha_gimple_fold_builtin): Likewise.
7907 * config/arc/arc.c (arc_expand_builtin): Likewise.
7908 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7909 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7910 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7911 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7912 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7913 * config/frv/frv.c (frv_expand_builtin): Likewise.
7914 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7915 (gcn_expand_builtin): Likewise.
7916 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7917 (fold_builtin_cpu): Likewise.
7918 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7919 * config/i386/i386.c (ix86_fold_builtin): Likewise.
7920 (ix86_gimple_fold_builtin): Likewise.
7921 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7922 (ia64_expand_builtin): Likewise.
7923 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7924 * config/mips/mips.c (mips_expand_builtin): Likewise.
7925 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7926 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7927 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7928 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7929 * config/pa/pa.c (pa_expand_builtin): Likewise.
7930 * config/pru/pru.c (pru_expand_builtin): Likewise.
7931 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7932 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7933 Likewise.
7934 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7935 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7936 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7937 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7938 (rs6000_builtin_reciprocal): Likewise.
7939 * config/rx/rx.c (rx_expand_builtin): Likewise.
7940 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7941 * config/s390/s390.c (s390_expand_builtin): Likewise.
7942 * config/sh/sh.c (sh_expand_builtin): Likewise.
7943 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7944 (sparc_fold_builtin): Likewise.
7945 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
7946 * config/spu/spu.c (spu_expand_builtin): Likewise.
7947 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
7948 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
7949 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
7950 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
7951 (xtensa_expand_builtin): Likewise.
7952
7953 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7954
7955 PR middle-end/91421
7956 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
7957 before the DECL_FUNCTION_CODE.
7958 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
7959 to check for a BUILT_IN_ALLOCA call.
7960 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
7961 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
7962 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
7963 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7964 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
7965 for BUILT_IN_NORMAL functions.
7966 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
7967 test for BUILT_IN_TM_ABORT.
7968 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
7969 to check for a BUILT_IN_STACK_RESTORE call.
7970 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
7971 * tree-ssa-threadedge.c
7972 (record_temporary_equivalences_from_stmts_at_dest): Check for a
7973 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
7974 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
7975 test for a BUILT_IN_NORMAL call instead of a negative test for
7976 an internal function call.
7977
7978 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7979
7980 * tree.h (build_vector_a_then_b): Declare.
7981 * tree.c (build_vector_a_then_b): New function.
7982 * fold-const-call.c (fold_while_ult): Likewise.
7983 (fold_const_call): Use it to handle IFN_WHILE_ULT.
7984 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
7985 (aarch64_svpattern): New enum.
7986 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
7987 constants through aarch64_expand_mov_immediate.
7988 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
7989 than general_operand as the predicate for operand 1.
7990 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
7991 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
7992 insn_type.
7993 (simd_immediate_info::simd_immediate_info): New overload that
7994 takes a scalar_int_mode and an svpattern.
7995 (simd_immediate_info::u): Add a "pattern" field.
7996 (svpattern_token): New function.
7997 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
7998 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
7999 (aarch64_sve_move_pred_via_while): New functions.
8000 (aarch64_expand_mov_immediate): Try using
8001 aarch64_sve_move_pred_via_while for predicates that contain N ones
8002 followed by M zeros but that do not correspond to a VLnnn pattern.
8003 (aarch64_sve_pred_valid_immediate): New function.
8004 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8005 with PTRUE and PFALSE.
8006 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8007 forms.
8008
8009 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8010
8011 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8012 flag.
8013 (darwin_override_options): Likewise.
8014 * config/darwin.h: Likewise.
8015 * config/darwin.opt: Likewise.
8016 * config/i386/i386.c (output_pic_addr_const): Likewise.
8017 * config/rs6000/darwin.h: Likewise.
8018 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8019 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8020 ... this TARGET_MACHO_SYMBOL_STUBS.
8021 (FUNCTION_PROFILER):Likewise.
8022 * config/i386/i386.h: Likewise.
8023
8024 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8025
8026 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8027 <case E_V2SImode>: Use vec_extr path for
8028 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8029 <case E_V8QImode>: Ditto.
8030 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8031 Use SWI48 mode iterator. Use %k to output operand 0.
8032 (*mmx_pextrw): New insn pattern.
8033 (*mmx_pextrb): Ditto.
8034 (*mmx_pextrb_zext): Ditto.
8035
8036 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8037
8038 * target.def (libc_has_function, libc_has_fast_function): Improve
8039 documentation strings.
8040 * doc/tm.texi: Regenerate.
8041
8042 2019-08-13 Caroline Tice <cmtice@google.com>
8043
8044 PR other/91396
8045 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8046 vtv_end.o or vtv_end_preinit.o files if !static.
8047
8048 2019-08-13 Olivier Hainque <hainque@adacore.com>
8049
8050 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8051
8052 2019-08-13 Olivier Hainque <hainque@adacore.com>
8053
8054 * rtlanal.c (tablejump_casesi_pattern): New function, to
8055 determine if a tablejump insn is a casesi dispatcher. Extracted
8056 from patch_jump_insn.
8057 * rtl.h (tablejump_casesi_pattern): Declare.
8058 * cfgrtl.c (patch_jump_insn): Use it.
8059 * dwarf2cfi.c (create_trace_edges): Use it.
8060
8061 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8062
8063 PR target/81800
8064 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8065 operand is larger than a long int.
8066
8067 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8068
8069 * machmode.h (opt_mode::else_mode): New function.
8070 (opt_mode::else_blk): Use it.
8071 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8072 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8073 (aarch64_gen_stepped_int_parallel): Likewise.
8074 (aarch64_stepped_int_parallel_p): Likewise.
8075 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8076 argument.
8077 * config/aarch64/aarch64.c
8078 (aarch64_expand_sve_widened_duplicate): Delete.
8079 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8080 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8081 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8082 argument. Use early returns in the !CONST_INT_P handling.
8083 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8084 than handling some inline.
8085 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8086 from...
8087 (aarch64_simd_container_mode): ...here.
8088 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8089 (aarch64_sve_ld1rq_operand_p): New functions.
8090 * config/aarch64/predicates.md (descending_int_parallel)
8091 (aarch64_sve_ld1rq_operand): New predicates.
8092 * config/aarch64/constraints.md (UtQ): New constraint.
8093 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8094 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8095 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8096 (@aarch64_sve_reinterpret<mode>): New expander.
8097 (*aarch64_sve_reinterpret<mode>): New pattern.
8098 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8099 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8100 (*sve_ld1rq<Vesize>): Replace with...
8101 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8102
8103 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8104
8105 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8106 16:12.
8107
8108 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8109
8110 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8111 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8112 (msp430_check_path_for_devices): New.
8113 (parse_devices_csv_1): New.
8114 (parse_devices_csv): New.
8115 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8116 MCU data in devices.csv before using the hard-coded data.
8117 Warn if devices.csv isn't found and the MCU wasn't found in the
8118 hard-coded data either.
8119 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8120 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8121 Search for devices.csv on -I and -L paths.
8122 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8123 msp430_set_driver_var.
8124 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8125 -mdevices-csv-loc=.
8126 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8127 searched for devices.csv.
8128 (mwarn-devices-csv): Document option.
8129
8130 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8131
8132 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8133 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8134 Use a single Dn alternative instead of separate Dz and Dm
8135 alternatives. Use aarch64_output_sve_move_immediate.
8136 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8137 function.
8138 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8139 for predicates too.
8140 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8141 (aarch64_output_ptrue): Delete.
8142
8143 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8144
8145 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8146 INDEX.
8147 (simd_immediate_info::value, simd_immediate_info::step)
8148 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8149 with...
8150 (simd_immediate_info::u): ...this new union.
8151 (simd_immediate_info::simd_immediate_info): Update accordingly.
8152 (aarch64_output_simd_mov_immediate): Likewise.
8153 (aarch64_output_sve_mov_immediate): Likewise.
8154
8155 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8156
8157 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8158 extra_gcc_objs.
8159 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8160 (msp430_select_cpu): New spec function.
8161 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8162 MCU data.
8163 * config/msp430/msp430-devices.c: New file.
8164 * config/msp430/msp430-devices.h: New file.
8165 * config/msp430/msp430.c: Remove msp430_mcu_data.
8166 (msp430_option_override): Use msp430_extract_mcu_data to extract
8167 MCU data.
8168 (msp430_use_f5_series_hwmult): Likewise.
8169 (use_32bit_hwmult): Likewise.
8170 (msp430_no_hwmult): Likewise.
8171 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8172 assembler.
8173 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8174 and -mcpu option.
8175 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8176 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8177 Remove hard-coded MCU multilib data.
8178
8179 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8180
8181 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8182 based on the mode instead of testing properties of it.
8183
8184 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8185
8186 * doc/md.texi: Document the x and y constraints for AArch64.
8187 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8188 (FP_LO8_REGS): New reg_class.
8189 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8190 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8191 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8192 * config/aarch64/predicates.md (aarch64_simd_register): Use
8193 FP_REGNUM_P instead of checking the classes manually.
8194 * config/aarch64/constraints.md (y): New constraint.
8195
8196 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8197
8198 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8199 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8200 * config/aarch64/aarch64-simd.md
8201 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8202 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8203 from the asm template.
8204 * config/aarch64/aarch64-sve.md
8205 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8206 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8207 from the asm template.
8208 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8209 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8210 from the asm template.
8211 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8212
8213 2019-08-13 Martin Liska <mliska@suse.cz>
8214
8215 * value-prof.c (gimple_ic_transform): Add new line.
8216 Print details with MSG_NOTE.
8217
8218 2019-08-13 Martin Liska <mliska@suse.cz>
8219
8220 * doc/invoke.texi: Document automatic detection of jobserver.
8221 * lto-wrapper.c (run_gcc): Detect jobserver always.
8222
8223 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8224
8225 * config/i386/i386-expand.c (ix86_expand_vector_set)
8226 <case E_V2SImode>: Use vec_merge path for
8227 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8228 <case E_V8QImode>: Ditto.
8229 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8230 (*mmx_pinsrb): Ditto.
8231
8232 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8233
8234 PR target/83250
8235 PR target/91340
8236 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8237 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8238 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8239 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8240 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8241
8242 2019-08-12 Richard Biener <rguenther@suse.de>
8243
8244 PR lto/91375
8245 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8246 flag_devirtualize.
8247
8248 2019-08-12 Richard Biener <rguenther@suse.de>
8249
8250 PR driver/91130
8251 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8252 lang_mask option, always use CL_DRIVER.
8253 (get_options_from_collect_gcc_options): Adjust.
8254 (find_and_merge_options): Likewise.
8255 (run_gcc): Likewise.
8256
8257 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8258
8259 * ipa-predicate.c (add_condition): Restore inverted test.
8260
8261 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8262
8263 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8264 (enum omp_clause_device_type_kind): New enum.
8265 (struct tree_omp_clause): Add subcode.device_type_kind.
8266 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8267 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8268 for device_type clause.
8269 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8270 * tree-pretty-print.c (dump_omp_clause): Likewise.
8271
8272 PR target/91408
8273 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8274 vector_operand.
8275
8276 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8277
8278 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8279 handling spilled pseudos.
8280
8281 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8282
8283 PR target/91386
8284 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8285 to preserve the contents of the original insns.
8286
8287 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8288
8289 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8290 (addsi3_compare_op2): Likewise.
8291
8292 2019-08-09 Martin Liska <mliska@suse.cz>
8293
8294 * alias.c (alias_ptr_types_compatible_p): Strengten
8295 type comparison in LTO mode.
8296
8297 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8298
8299 PR middle-end/90313
8300 * tree-tailcall.c (find_tail_calls): Reject calls that might
8301 read from an escaped RESULT_DECL.
8302
8303 2019-08-09 Martin Liska <mliska@suse.cz>
8304
8305 * doc/invoke.texi: Document the option value.
8306 * lto-wrapper.c (run_gcc): Set auto_parallel
8307 only with -flto=auto.
8308
8309 2019-08-09 Martin Liska <mliska@suse.cz>
8310
8311 * opts.c (common_handle_option): Error for an invalid argument
8312 to -flto=.
8313
8314 2019-08-09 Martin Liska <mliska@suse.cz>
8315
8316 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8317 use dump_printf to report optimization.
8318 (sem_variable::merge): Likwise.
8319 (sem_item_optimizer::merge_classes): Use dump_printf to report
8320 ICF hits.
8321
8322 2019-08-09 Martin Liska <mliska@suse.cz>
8323
8324 * value-prof.c (gimple_divmod_fixed_value_transform):
8325 Use dump_printf_loc.
8326 (gimple_mod_pow2_value_transform): Likewise.
8327 (gimple_mod_subtract_transform): Likewise.
8328 (init_node_map): Likewise.
8329 (gimple_ic_transform): Likewise.
8330 (gimple_stringops_transform): Likewise.
8331
8332 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8333
8334 * doc/extend.texi: Add const qualifier to ld intrinsics.
8335
8336 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8337
8338 * config/rs6000/dfp.md (D64_D128): Rename to ...
8339 (DDTD): ... this, throughout.
8340 (dfp_suffix): Rename to ...
8341 (q): ... this, throughout.
8342
8343 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8344
8345 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8346 (dfp_suffix): Ditto.
8347 (adddd3, addtd3): Merge to ...
8348 (add<mode>3 for D64_D128): ... this.
8349 (subdd3, subtd3): Merge to ...
8350 (sub<mode>3 for D64_D128): ... this.
8351 (muldd3, multd3): Merge to ...
8352 (mul<mode>3 for D64_D128): ... this.
8353 (divdd3, divtd3): Merge to ...
8354 (div<mode>3 for D64_D128): ... this.
8355 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8356 (*cmp<mode>_internal1 for D64_D128): ... this.
8357 (ftruncdd2, ftrunctd2): Merge to ...
8358 (ftrunc<mode>2 for D64_D128): ... this.
8359 (fixdddi2, fixtddi2): Merge to ...
8360 (fix<mode>di2 for D64_D128): ... this.
8361
8362 2019-08-08 Jim Wilson <jimw@sifive.com>
8363
8364 PR target/91229
8365 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8366 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8367 Pass into recursive call.
8368 (riscv_flatten_aggregate_argument): New arg. Pass to
8369 riscv_flatten_aggregate_field.
8370 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8371 riscv_flatten_aggregate_argument twice, with false and true as last
8372 arg. Process result twice. Compare results and warn if different.
8373 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8374
8375 2019-08-08 Martin Liska <mliska@suse.cz>
8376
8377 PR bootstrap/91352
8378 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8379 * lto-wrapper.c (jobserver_active_p): Likewise.
8380
8381 2019-08-08 Martin Liska <mliska@suse.cz>
8382
8383 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8384 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8385 (create_version_clone_with_body): Likewise.
8386
8387 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8388
8389 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8390 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8391 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8392 GOVD_EXPLICIT flags.
8393 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8394 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8395 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8396 call install_var_field with mask 11 instead of 3.
8397 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8398 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8399
8400 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8401
8402 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8403 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8404
8405 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8406
8407 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8408 MOVPRFX alternatives. Make the GPR alternatives more expensive
8409 than the FPR ones.
8410
8411 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8412
8413 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8414 Disparage the GPR alternative relative to the FPR one.
8415 Fix handling of 8-bit and 16-bit FPR values.
8416
8417 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8418
8419 * config/aarch64/iterators.md (BITWISEV): Delete.
8420 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8421 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8422 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8423 UNSPEC_FMINNMV, UNSPEC_FMINV.
8424 (bit_reduc_op): Delete.
8425 (sve_int_op): New int attribute.
8426 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8427 UNSPEC_FMINNMV, UNSPEC_FMINV.
8428 * config/aarch64/aarch64-sve.md
8429 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8430 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8431 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8432 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8433 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8434 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8435 new patterns.
8436 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8437 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8438 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8439 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8440 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8441 new patterns.
8442
8443 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8444
8445 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8446 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8447 (fms<mode>4, *fms<mode>4): Replace with...
8448 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8449 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8450 Use unspecs instead of rtx codes.
8451 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8452 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8453
8454 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8455
8456 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8457 int iterator.
8458 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8459 * config/aarch64/aarch64-sve.md
8460 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8461 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8462 use a single unspec for the rhs.
8463 (*<su><maxmin><mode>3): Delete.
8464 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8465
8466 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8467
8468 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8469 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8470 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8471 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8472 (optab, sve_fp_op): Handle them.
8473 (SVE_FP_UNARY): Delete.
8474 (optab): Remove sqrt entry.
8475 (sve_fp_op): Remove neg, abs and sqrt entries.
8476 (SVE_COND_FP_UNARY): New int iterator.
8477 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8478 (*<frint_pattern><mode>2): Delete.
8479 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8480 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8481 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8482 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8483
8484 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8485
8486 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8487
8488 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8489
8490 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8491 (UNSPEC_COND_FADD): ...this.
8492 (UNSPEC_COND_SUB): Rename to...
8493 (UNSPEC_COND_FSUB): ...this.
8494 (UNSPEC_COND_MUL): Rename to...
8495 (UNSPEC_COND_FMUL): ...this.
8496 (UNSPEC_COND_DIV): Rename to...
8497 (UNSPEC_COND_FDIV): ...this.
8498 (UNSPEC_COND_MAX): Rename to...
8499 (UNSPEC_COND_FMAXNM): ...this.
8500 (UNSPEC_COND_MIN): Rename to...
8501 (UNSPEC_COND_FMINNM): ...this.
8502 (UNSPEC_COND_LT): Rename to...
8503 (UNSPEC_COND_FCMLT): ...this.
8504 (UNSPEC_COND_LE): Rename to...
8505 (UNSPEC_COND_FCMLE): ...this.
8506 (UNSPEC_COND_EQ): Rename to...
8507 (UNSPEC_COND_FCMEQ): ...this.
8508 (UNSPEC_COND_NE): Rename to...
8509 (UNSPEC_COND_FCMNE): ...this.
8510 (UNSPEC_COND_GE): Rename to...
8511 (UNSPEC_COND_FCMGE): ...this.
8512 (UNSPEC_COND_GT): Rename to...
8513 (UNSPEC_COND_FCMGT): ...this.
8514 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8515 (sve_fp_op_rev): Update accordingly.
8516 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8517
8518 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8519
8520 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8521 banner comments.
8522 * config/aarch64/check-sve-md.awk: New file.
8523 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8524 (insn-conditions.md): Depend on it.
8525
8526 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8527
8528 PR target/91385
8529 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8530 (*negsi2_cmpz_zext): Ditto.
8531
8532 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8533
8534 * config/aarch64/iterators.md (commutative): Remove.
8535
8536 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8537
8538 PR driver/91130
8539 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8540 processing COLLECT_GCC_OPTIONS.
8541 (run_gcc): Likewise.
8542
8543 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8544
8545 PR tree-optimization/91109
8546 * lra-remat.c (update_scratch_ops): Remove assignment of the
8547 hard register.
8548
8549 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8550
8551 * data-streamer.h (streamer_write_poly_uint64): Declare.
8552 (streamer_read_poly_uint64): Likewise.
8553 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8554 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8555 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8556 (add_condition): Take a poly_int64 size.
8557 * ipa-predicate.c (add_condition): Likewise.
8558 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8559 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8560 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8561 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8562 condition::size as a poly_int64.
8563 (unmodified_parm_1): Take a poly_int64 size pointer.
8564 (unmodified_parm): Likewise.
8565 (unmodified_parm_or_parm_agg_item): Likewise.
8566 (set_cond_stmt_execution_predicate): Update accordingly.
8567 (set_switch_stmt_execution_predicate): Likewise.
8568 (will_be_nonconstant_expr_predicate): Likewise.
8569 (will_be_nonconstant_predicate): Likewise.
8570 (inline_read_section): Stream condition::size as a poly_int.
8571 (ipa_fn_summary_write): Likewise.
8572
8573 2019-08-07 Martin Liska <mliska@suse.cz>
8574
8575 * fold-const.c (twoval_comparison_p): Replace int
8576 with bool as a return type.
8577 (simple_operand_p): Likewise.
8578 (operand_equal_p): Replace int with bool as a return type.
8579 * fold-const.h (operand_equal_p): Likewise.
8580
8581 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8582
8583 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8584 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8585 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8586 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8587 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8588 * tree-pretty-print.c (dump_omp_clause): Likewise.
8589 * tree-nested.c (convert_nonlocal_omp_clauses,
8590 convert_local_omp_clauses): Likewise.
8591 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8592 Likewise.
8593 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8594 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8595 clause with array or reference to array types, no matter what type
8596 except for reference it has.
8597
8598 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8599
8600 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8601
8602 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8603
8604 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8605 (arch_canonicalize): Support rv32g and rv64g and fix error
8606 handling.
8607
8608 2019-08-06 Martin Liska <mliska@suse.cz>
8609
8610 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8611 and DECL_IS_OPERATOR_DELETE_P.
8612
8613 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8614
8615 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8616 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8617 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8618 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8619 (gimplify_omp_for): Don't do C++ random access iterator clause
8620 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8621 don't predetermine the artificial iterator in case of C++ random
8622 access iterators as lastprivate, but private. For OMP_LOOP, force
8623 bind expr around simd body and force for_pre_body before the
8624 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8625 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8626 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8627 diff var of C++ random access iterators. Handle
8628 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8629 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8630 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8631 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8632 * omp-low.c (lower_rec_input_clauses): For
8633 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8634 variables instead of default constructing them.
8635 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8636 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8637 is_taskloop_ctx check from the assert to the guarding condition.
8638
8639 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8640
8641 * config/riscv/multilib-generator: (canonical_order): New.
8642 (arch_canonicalize): Dito.
8643 Apply arch_canonicalize for alts.
8644
8645 2019-08-05 Martin Sebor <msebor@redhat.com>
8646
8647 * doc/extend.texi (Common Variable Attributes): Document alias
8648 attribute.
8649
8650 2019-08-05 Marek Polacek <polacek@redhat.com>
8651
8652 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8653 * doc/invoke.texi: Document -Wcomma-subscript.
8654
8655 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8656
8657 * tree-core.h (tree_function_decl): Make function_code an
8658 independent field. Group the remaining bitfields into bytes
8659 and move decl_type so that it contines to be at a byte boundary.
8660 Leave 12 bits for future expansion.
8661
8662 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8663
8664 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8665 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8666 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8667 IFN_MASK_STORE.
8668
8669 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8670
8671 * gimple.h (gimple_move_vops): Declare.
8672 * gimple.c (gimple_move_vops): New function
8673 * gimple-fold.c (replace_call_with_call_and_fold)
8674 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8675 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8676 (gimple_fold_call): Use it.
8677 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8678 * tree-call-cdce.c (use_internal_fn): Likewise.
8679 * tree-if-conv.c (predicate_load_or_store): Likewise.
8680 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8681 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8682 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8683 (update_call_from_tree): Likewise.
8684 * tree-vect-stmts.c (vectorizable_load): Likewise.
8685 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8686
8687 2019-08-05 Martin Liska <mliska@suse.cz>
8688
8689 PR c++/91334
8690 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8691 with not arguments.
8692 (eliminate_unnecessary_stmts): Likewise.
8693
8694 2019-08-05 Richard Biener <rguenther@suse.de>
8695
8696 PR middle-end/91169
8697 * fold-const.c (get_array_ctor_element_at_index): Create
8698 offset_ints according to the sign of the index type and treat
8699 that as signed if it is obviously so.
8700
8701 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8702
8703 PR target/91341
8704 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8705 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8706 _mm256_storeu2_m128i): New function.
8707
8708 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8709
8710 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8711 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8712
8713 2019-08-05 Alan Modra <amodra@gmail.com>
8714
8715 PR target/91349
8716 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8717 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8718
8719 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8720
8721 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8722 bug that was fixed in Tcl 8.6.1.
8723
8724 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8725
8726 * config/rs6000/future.md: New file.
8727 * config/rs6000/rs6000.md: Include future.md.
8728 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8729
8730 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8731
8732 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8733 check to use targetm.slow_unaligned_access instead.
8734
8735 * function.c (assign_param_data_one): Remove unused data members.
8736
8737 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8738
8739 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8740 build_distinct_type_copy.
8741 (simd_clone_adjust_argument_types): Ditto.
8742 (simd_clone_adjust): Call build_distinct_type_copy here.
8743 (expand_simd_clones): Ditto.
8744
8745 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8746
8747 PR target/91201
8748 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8749
8750 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8751
8752 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8753 from 'const void *'.
8754 (sort_locs_in_loop_postorder_cmp): Likewise.
8755
8756 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8757
8758 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8759 (hot-bb-count-ws-permille): Likewise.
8760 (hot-bb-frequency-fraction): Likewise.
8761 (unlikely-bb-count-fraction): Likewise.
8762 * params.def (hot-bb-count-fraction): Rework description.
8763 (hot-bb-count-ws-permille): Likewise.
8764 (hot-bb-frequency-fraction): Likewise.
8765 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8766 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8767
8768 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8769
8770 PR target/91323
8771 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8772 Return false.
8773
8774 2019-08-02 Richard Biener <rguenther@suse.de>
8775
8776 * vec.h (vec::sort): Add gcc_qsort_r support.
8777 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8778 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8779 to gcc_qsort_r style callback.
8780 (sort_locs_in_loop_postorder_cmp): Likewise.
8781 (analyze_memory_references): Use gcc_sort_r interfaces.
8782 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8783
8784 2019-08-02 Martin Liska <mliska@suse.cz>
8785
8786 PR lto/91313
8787 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8788 to detect working job server.
8789 (driver::detect_jobserver): Test whether jobserver
8790 is active from GCC driver. That will prevent situation where
8791 GCC is invoked from a LD plugin and the linker already uses
8792 file descriptors suggested by make. That leads to a wrong
8793 detection.
8794 * gcc.h (driver): Add detect_jobserver.
8795 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8796 not scanning for --jobserver-auth prefix.
8797
8798 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8799
8800 PR tree-optimization/91201
8801 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8802 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8803 extraction.
8804
8805 2019-08-01 Martin Sebor <msebor@redhat.com>
8806
8807 PR c++/90947
8808 * tree.c (type_initializer_zero_p): Define.
8809 * tree.h (type_initializer_zero_p): New function.
8810
8811 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8812
8813 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8814
8815 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8816
8817 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8818 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8819 * predict.c (maybe_hot_count_p): Likewise.
8820 (maybe_hot_bb_p): Tweak comment.
8821 (maybe_hot_edge_p): Likewise.
8822 (probably_never_executed): Likewise. Minor tweak.
8823 (probably_never_executed_bb_p): Likewise.
8824 (unlikely_executed_edge_p): Likewise.
8825 (probably_never_executed_edge_p): Likewise.
8826 (optimize_function_for_size_p): Likewise.
8827 (optimize_function_for_speed_p): Likewise.
8828 (function_optimization_type): Likewise.
8829 (optimize_bb_for_size_p): Likewise.
8830 (optimize_bb_for_speed_p): Likewise.
8831 (bb_optimization_type): Likewise.
8832 (optimize_edge_for_size_p): Likewise.
8833 (optimize_edge_for_speed_p): Likewise.
8834 (optimize_insn_for_size_p): Likewise.
8835 (optimize_insn_for_speed_p): Likewise.
8836 (optimize_loop_for_size_p): Likewise.
8837 (optimize_loop_for_speed_p): Likewise.
8838 (optimize_loop_nest_for_speed_p): Likewise.
8839 (optimize_loop_nest_for_size_p): Likewise.
8840 (predictable_edge_p): Likewise.
8841 (handle_missing_profiles): Minor tweak.
8842
8843 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8844
8845 * config/rs6000/predicates.md (pcrel_external_address): Update
8846 comment.
8847
8848 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8849
8850 PR target/85693
8851 * config/i386/mmx.md (usadv8qi): New expander.
8852
8853 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8854
8855 PR c++/90590
8856 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8857 with reserved names that are in a system header.
8858
8859 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8860
8861 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8862 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8863 (*vec_extractv2si_0_zext): Ditto.
8864 (*vec_extractv2si_1): Add (rm,x) alternative.
8865 (*vec_extractv2si_1_zext): New insn pattern.
8866 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8867 insn constraint.
8868
8869 2019-08-01 Richard Biener <rguenther@suse.de>
8870
8871 * domwalk.c (bb_postorder): Remove static variable.
8872 (cmp_bb_postorder): Adjust.
8873 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8874 (dom_walker::walk): Adjust.
8875
8876 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
8877
8878 * sort.cc (sort_r_ctx): New struct.
8879 (reorder23): Make templated on context type.
8880 (reorder45): Ditto.
8881 (cmp1): Ditto. Adjust signature.
8882 (netsort): Ditto.
8883 (mergesort): Ditto.
8884 [CHECKING_P] (cmp2to3): New static function. Use it...
8885 (gcc_qsort) [CHECKING_P]: ...here.
8886 (gcc_sort_r): New function.
8887 * system.h (sort_r_cmp_fn): New function typedef.
8888 (qsort_chk): Adjust signature.
8889 (gcc_sort_r): Declare.
8890 * vec.c (qsort_chk_error): Adjust.
8891 (qsort_chk): Adjust.
8892
8893 2019-08-01 Richard Biener <rguenther@suse.de>
8894
8895 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8896 (compute_antic): Localize it here.
8897
8898 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
8899
8900 * common/config/riscv/riscv-common.c: Check -march string ends
8901 with null.
8902
8903 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
8904
8905 * ipa-devirt.c (type_warning_cmp): Make static.
8906 (decl_warning_cmp): Ditto.
8907
8908 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
8909
8910 PR target/91050
8911 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8912 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8913 use of deleted rs6000_dejagnu_cpu_index variable.
8914 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8915 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8916 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8917 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8918 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8919 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8920
8921 2019-07-31 Richard Biener <rguenther@suse.de>
8922
8923 PR tree-optimization/91280
8924 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8925 Decompose MEM_REF manually for offset handling.
8926
8927 2019-07-31 Richard Biener <rguenther@suse.de>
8928
8929 PR tree-optimization/91293
8930 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8931 of reduction stmts.
8932
8933 2019-07-31 Matt Thomas <matt@3am-software.com>
8934 Nick Hudson <nick@nthcliff.demon.co.uk>
8935 Matthew Green <mrg@eterna.com.au>
8936 Maya Rashish <coypu@sdf.org>
8937
8938 * config.gcc (hppa*-*-netbsd*): New target.
8939 * config/pa/pa-netbsd.h: New file.
8940 * config/pa/pa32-netbsd.h: New file.
8941
8942 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8943
8944 PR tree-optimization/91201
8945 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
8946
8947 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
8948
8949 * config/gcn/gcn-valu.md
8950 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
8951 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
8952 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
8953 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
8954 struct ilist. Add nops for delayeduse insns.
8955 * config/gcn/gcn.md (delayeduse): New attribute.
8956 (*movbi): Remove s_waitcnt from stores.
8957 (*mov<mode>_insn): Likewise.
8958 (*movti_insn): Likewise. Add delayeduse attribute.
8959 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
8960 (atomic_store<mode>): Remove or adjust s_waitcnt.
8961
8962 2019-07-31 Richard Biener <rguenther@suse.de>
8963
8964 * vr-values.h (vr_values::swap_vr_value): New.
8965 (vr_values::free_value_range): likewise.
8966 * vr-values.c (vr_values::swap_vr_value): Implement.
8967 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
8968 Do not return a range or take a var.
8969 (evrp_range_analyzer::stack): Change back to recording a non-const
8970 value_range *.
8971 * gimple-ssa-evrp-analyze.c
8972 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
8973 value-range.
8974 (evrp_range_analyzer::pop_to_marker): Adjust.
8975 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
8976 (evrp_range_analyzer::pop_value_range): Likewise. Free the
8977 no longer needed value-range.
8978
8979 2019-07-31 Martin Liska <mliska@suse.cz>
8980
8981 * tree-ssa-dce.c (propagate_necessity): Delete operator can
8982 have size and (or) alignment as 2nd and later arguments.
8983 Mark all of them as necessary.
8984
8985 2019-07-31 Richard Biener <rguenther@suse.de>
8986
8987 PR tree-optimization/91178
8988 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8989 Use tail-recursion.
8990
8991 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8992
8993 PR tree-optimization/91201
8994 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
8995 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
8996 TARGET_AVX512F.
8997 (reduc_plus_scal_<mode>): Improve formatting by introducing
8998 a temporary.
8999
9000 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9001
9002 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9003 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9004 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9005 (aarch64_init_tme_builtins): New.
9006 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9007 (aarch64_expand_builtin_tme): New.
9008 (aarch64_expand_builtin): Handle TME builtins.
9009 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9010 __ARM_FEATURE_TME when enabled.
9011 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9012 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9013 (TARGET_TME): New.
9014 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9015 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9016 UNSPECV_TCANCEL.
9017 (tstart, ttest, tcommit, tcancel): New instructions.
9018 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9019 (__tcancel, __ttest): New.
9020 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9021 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9022 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9023 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9024 * config/arm/types.md: Add new tme type attr.
9025 * doc/invoke.texi: Document "tme".
9026
9027 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9028
9029 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9030 warn_unused_result attribute.
9031 (cmse_check_address_range): Add warn_unused_result attribute.
9032
9033 2019-07-31 Richard Biener <rguenther@suse.de>
9034
9035 PR tree-optimization/91257
9036 * tree-vrp.c (union_ranges): Unify equality and less tests
9037 by using compare_values. Re-order cheap tests first.
9038
9039 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9040
9041 PR middle-end/91301
9042 * gimplify.c (gimplify_omp_for): If for class iterator on
9043 distribute parallel for there is no data sharing clause
9044 on inner_for_stmt, look for private clause on combined
9045 parallel too and if found, move it to inner_for_stmt.
9046
9047 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9048
9049 * lra-int.h (lra_operand_data): Remove early_clobber field.
9050 (lra_insn_reg): Likewise.
9051 * lra.c (debug_operand_data): Update accordingly.
9052 (setup_operand_alternative): Likewise.
9053 (new_insn_reg): Likewise. Remove early_clobber parameter.
9054 (collect_non_operand_hard_regs): Update call accordingly.
9055 Don't assign to lra_insn_reg::early_clobber.
9056 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9057 and update calls to new_insn_reg.
9058 (lra_update_insn_regno_info): Update calls accordingly.
9059 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9060 alternative number as a parameter and test whether the operand
9061 is earlyclobbered in that particular alternative.
9062 (process_alt_operands): Update call accordingly. Use per-alternative
9063 checks for earyclobber here too.
9064 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9065 against zero for IRA_UNKNOWN_ALT.
9066
9067 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9068
9069 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9070
9071 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9072
9073 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9074 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9075
9076 2019-07-30 Martin Liska <mliska@suse.cz>
9077
9078 PR ipa/89330
9079 * cgraph.c (cgraph_edge::make_direct): Use
9080 edge->indirect_unknown_callee as edge->resolve_speculation can
9081 deallocate edge which is this pointer.
9082
9083 2019-07-30 Richard Biener <rguenther@suse.de>
9084
9085 PR tree-optimization/91257
9086 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9087
9088 2019-07-30 Martin Liska <mliska@suse.cz>
9089
9090 * doc/invoke.texi: Document new behavior.
9091 * lto-wrapper.c (cpuset_popcount): New function
9092 is a copy of libgomp/config/linux/proc.c.
9093 (init_num_threads): Likewise.
9094 (run_gcc): Automatically detect core count for -flto.
9095 (jobserver_active_p): New function.
9096
9097 2019-07-30 Richard Biener <rguenther@suse.de>
9098
9099 PR tree-optimization/91257
9100 * bitmap.h (bitmap_ior_into_and_free): Declare.
9101 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9102 whether to add the unliked element to the freelist.
9103 (bitmap_list_insert_element_after): Add defaulted param for
9104 an already allocated element.
9105 (bitmap_ior_into_and_free): New function.
9106 * tree-ssa-structalias.c (condense_visit): Reduce the
9107 ponts-to and edge bitmaps of the SCC members in a
9108 logarithmic fashion rather than all to one.
9109
9110 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9111
9112 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9113 parameter. When nonnull, make sure that the addition or subtraction
9114 has the same condition.
9115 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9116 for CFN_COND_MUL too.
9117
9118 2019-07-30 Richard Biener <rguenther@suse.de>
9119
9120 PR tree-optimization/91291
9121 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9122 constant values.
9123
9124 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9125
9126 PR middle-end/91216
9127 * omp-low.c (global_nonaddressable_vars): New variable.
9128 (use_pointer_for_field): For global decls, if they are non-addressable,
9129 remember it in the global_nonaddressable_vars bitmap, if they are
9130 addressable and in the global_nonaddressable_vars bitmap, ignore their
9131 TREE_ADDRESSABLE bit.
9132 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9133 vars in global_nonaddressable_vars bitmap.
9134 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9135
9136 PR target/91150
9137 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9138 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9139 comparison to unsigned HOST_WIDE_INT before shifting it left.
9140
9141 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9142
9143 * config/i386/i386.md (movstrict<mode>): Use register_operand
9144 predicate for operand 0. Add expander condition. Assert that
9145 operand 0 is a SUBREG RTX.
9146 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9147 Update operand constraints and insn condition.
9148 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9149 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9150 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9151 Update operand 0 constraints.
9152 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9153
9154 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9155
9156 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9157 when -m{code,data}-region are used without -mlarge.
9158 * config/msp430/msp430.c (msp430_option_override): Error when a
9159 non-default code or data region is used without -mlarge.
9160 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9161 attributes when they are used without -mlarge.
9162
9163 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9164
9165 PR target/70320
9166 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9167
9168 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9169
9170 PR middle-end/91242
9171 * wide-int.h (generic_wide_int::sext_elt): New function.
9172 * inchash.h (hash::add_wide_int): Use it instead of elt.
9173
9174 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9175
9176 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9177 CODE_FOR_arm_##.
9178 * config/arm/arm.md (<crc_variant>): Rename to...
9179 (arm_<crc_variant>): ... This.
9180 (<cdp>): Rename to...
9181 (arm_<cdp>): ... This.
9182 (<ldc>): Rename to...
9183 (arm_<ldc>): ... This.
9184 (<stc>): Rename to...
9185 (arm_<stc>): ... This.
9186 (<mcr>): Rename to...
9187 (arm_<mcr>): ... This.
9188 (<mrc>): Rename to...
9189 (arm_<mrc>): ... This.
9190 (<mcrr>): Rename to...
9191 (arm_<mcrr>): ... This.
9192 (<mrrc>): Rename to...
9193 (arm_<mrrc>): ... This.
9194
9195 2019-07-29 Richard Biener <rguenther@suse.de>
9196
9197 PR tree-optimization/91257
9198 * tree-ssa-sccvn.h (struct vn_avail): New.
9199 (struct vn_ssa_aux): Add avail member.
9200 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9201 member, add m_avail_freelist one.
9202 (rpo_elim::~rpo_elim): Remove.
9203 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9204 data structure.
9205 (rpo_elim::eliminate_push_avail): Likewise.
9206 (do_unwind): Likewise.
9207 (do_rpo_vn): Likewise.
9208
9209 2019-07-29 Richard Biener <rguenther@suse.de>
9210
9211 PR tree-optimization/91257
9212 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9213 most cases, instead call compare_values which handles the
9214 symbolic ranges we handle specially.
9215 (compare_values_warnv): Do not call operand_less_p but open-code
9216 the effective fold calls. Avoid converting so much.
9217
9218 2019-07-29 Martin Liska <mliska@suse.cz>
9219
9220 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9221 remove LHS of operator new call. It's handled latter.
9222
9223 2019-07-29 Richard Biener <rguenther@suse.de>
9224
9225 PR tree-optimization/91267
9226 * vr-values.c (vr_values::update_value_range): Add early return
9227 for effectively VARYING lattice entry.
9228
9229 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9230
9231 PR debug/86638
9232 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9233 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9234 necessary if keep_all_vdefs_p is true.
9235 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9236 that keep_all_vdefs_p is false.
9237 (mark_all_reaching_defs_necessary): Likewise.
9238 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9239
9240 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9241
9242 * common.opt (Og): Change the initial value of flag_dse to 0.
9243 * opts.c (default_options_table): Move OPT_ftree_dse from
9244 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9245 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9246 entry before the OPT_ftree_sra entry.
9247 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9248 of flags disabled by Og.
9249
9250 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9251
9252 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9253 variables for -Og.
9254
9255 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9256
9257 * doc/sourcebuild.texi (check-function-bodies): Document.
9258
9259 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9260
9261 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9262 VEC_DUPLICATE of a fixed-length vector even if the result
9263 is variable-length. Likewise fold a duplicate of a
9264 variable-length vector if the variable-length vector is
9265 itself a duplicate of a fixed-length sequence.
9266 (test_vector_ops_duplicate): Test more cases.
9267
9268 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9269
9270 * vector-builder.h (vector_builder): Add a shape template parameter.
9271 (vector_builder::new_unary_operation): New function, generalizing
9272 the old tree_vector_builder function.
9273 (vector_builder::new_binary_operation): Likewise.
9274 (vector_builder::binary_encoded_nelts): Likewise.
9275 * int-vector-builder.h (int_vector_builder): Update template
9276 parameters to vector_builder.
9277 (int_vector_builder::shape_nelts): New function.
9278 * rtx-vector-builder.h (rtx_vector_builder): Update template
9279 parameters to vector_builder.
9280 (rtx_vector_builder::shape_nelts): New function.
9281 (rtx_vector_builder::nelts_of): Likewise.
9282 (rtx_vector_builder::npatterns_of): Likewise.
9283 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9284 * tree-vector-builder.h (tree_vector_builder): Update template
9285 parameters to vector_builder.
9286 (tree_vector_builder::shape_nelts): New function.
9287 (tree_vector_builder::nelts_of): Likewise.
9288 (tree_vector_builder::npatterns_of): Likewise.
9289 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9290 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9291 (tree_vector_builder::new_binary_operation): Delete.
9292 (tree_vector_builder::binary_encoded_nelts): Likewise.
9293 * simplify-rtx.c: Include rtx-vector-builder.h.
9294 (distributes_over_addition_p): New function.
9295 (simplify_const_unary_operation)
9296 (simplify_const_binary_operation): Generalize handling of vector
9297 constants to include variable-length vectors.
9298 (test_vector_ops_series): Add more tests.
9299
9300 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9301
9302 PR lto/91222
9303 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9304 than INDENTIFIER_POINTER.
9305
9306 2019-07-28 Martin Liska <mliska@suse.cz>
9307
9308 PR ipa/89330
9309 * cgraph.c (symbol_table::create_edge): Always allocate
9310 a cgraph_edge.
9311 (symbol_table::free_edge): Store summary_id to
9312 edge_released_summary_ids if != -1;
9313 * cgraph.h (NEXT_FREE_NODE): Remove.
9314 (SET_NEXT_FREE_NODE): Likewise.
9315 (NEXT_FREE_EDGE): Likewise.
9316 (symbol_table::release_symbol): Store summary_id to
9317 cgraph_released_summary_ids if != -1;
9318 (symbol_table::allocate_cgraph_symbol): Always allocate
9319 a cgraph_node.
9320
9321 2019-07-28 Alan Modra <amodra@gmail.com>
9322
9323 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9324 gen_sibcall.
9325
9326 2019-07-28 Alan Modra <amodra@gmail.com>
9327
9328 PR target/91135
9329 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9330 define.
9331 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9332 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9333 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9334
9335 2019-07-28 Alan Modra <amodra@gmail.com>
9336
9337 PR target/91050
9338 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9339 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9340 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9341 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9342 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9343 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9344 in asm_default spec.
9345 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9346 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9347
9348 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9349
9350 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9351
9352 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9353
9354 PR target/89517
9355 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9356 * config/aarch64/aarch64-option-extensions.def: Add new comments
9357 and restore easier to read options.
9358
9359 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9360
9361 * convert.c (convert_to_real_1): Move part of conversion code...
9362 * match.pd: ...To here.
9363
9364 2019-07-26 Martin Jambor <mjambor@suse.cz>
9365
9366 PR ipa/89330
9367 * ipa-inline-transform.c (check_speculations_1): New function.
9368 (push_all_edges_in_set_to_vec): Likewise.
9369 (check_speculations): Use check_speculations_1, new parameter
9370 new_edges.
9371 (inline_call): Pass new_edges to check_speculations.
9372 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9373 NULL.
9374 (speculation_useful_p): Early return true if edge is inlined, remove
9375 later checks for inline_failed.
9376
9377 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9378
9379 PR rtl-optimization/91223
9380 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9381 matching with INOUT operand.
9382
9383 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9384
9385 * stmt.c (expand_case): Try to narrow the index type if it's larger
9386 than a word. Tidy up.
9387
9388 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9389
9390 * cif-code.def (NEVER_CALL): New code.
9391 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9392 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9393
9394 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9395
9396 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9397 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9398
9399 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9400
9401 * ipa-devirt.c (add_type_duplicate): Fix return value.
9402
9403 2019-07-25 Richard Biener <rguenther@suse.de>
9404
9405 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9406 type parameter and use it instead of guessing expression
9407 type from the first operand.
9408 (extract_range_from_binary_expr): Pass expr_type down.
9409
9410 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9411
9412 * config/arm/arm.md (SATrev): Change to code attribute.
9413 (*satsi_<SAT:code>): Adjust for the above.
9414 (*satsi_<SAT:code>_shift): Likewise.
9415
9416 2019-07-25 Richard Biener <rguenther@suse.de>
9417
9418 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9419 Make value_range * temporary const.
9420 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9421 Likewise.
9422 (evrp_range_analyzer::record_ranges_from_): Likewise.
9423 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9424 deal with having recorded a const one.
9425 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9426 Return a const value_range *.
9427 (evrp_range_analyzer::pop_value_range): Likewise.
9428 (evrp_range_analyzer::stack): Record const value_range *s.
9429 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9430 Adjust.
9431 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9432 (format_integer): Likewise.
9433 (sprintf_dom_walker::handle_gimple_call): Likewise.
9434 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9435 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9436 (vrp_prop::get_value_range): Adjust.
9437 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9438 modifying the lattice in-place.
9439 (vrp_prop::visit_stmt): Likewise.
9440 * vr-values.c (vr_values::get_lattice_entry): New private method.
9441 (vr_values::get_value_range): Wrap it and return a const
9442 value_range *.
9443 (vr_values::set_def_to_varying): New.
9444 (vr_values::set_defs_to_varying): Use it.
9445 (vr_values::update_value_range): Likewise.
9446 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9447 (values::op_with_constant_singleton_va): Likewise.
9448 (vr_values::extract_range_for_var_from_co): Likewise.
9449 (vr_values::extract_range_from_ssa_name): Likewise.
9450 (vr_values::extract_range_from_cond_expr): Likewise.
9451 (vr_values::extract_range_basic): Likewise.
9452 (compare_ranges): Take const value_range *, adjust.
9453 (compare_range_with_value): Likewise.
9454 (vrp_valueize): Adjust.
9455 (vrp_valueize_1): Likewise.
9456 (vr_values::get_vr_for_comparison): Return a const value_range *.
9457 (vr_values::compare_name_with_value): Adjust.
9458 (vr_values::compare_names): Likewise.
9459 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9460 Likewise.
9461 (vr_values::vrp_evaluate_conditional): Likewise.
9462 (find_case_label_ranges): Take a const value_range *.
9463 (vr_values::vrp_visit_switch_stmt): Adjust.
9464 (vr_values::extract_range_from_phi_node): Likewise.
9465 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9466 (vr_values::simplify_abs_using_ranges): Likewise.
9467 (test_for_singularity): Take a const value_range *.
9468 (range_fits_type_p): Likewise.
9469 (vr_values::simplify_cond_using_ranges_1): Adjust.
9470 (vr_values::simplify_cond_using_ranges_2): Likewise.
9471 (vr_values::simplify_switch_using_ranges): Likewise.
9472 (vr_values::simplify_float_conversion_usi): Likewise.
9473 (vr_values::two_valued_val_range_p): Likewise.
9474 * vr-values.h (vr_values::get_value_range): Return a const
9475 value_range *.
9476 (vr_values::set_def_to_varying): New.
9477 (vr_values::get_lattice_entry): New private method.
9478 (vr_values::get_vr_for_comparison): Return a const value_range *.
9479
9480 2019-07-25 Martin Liska <mliska@suse.cz>
9481 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9482
9483 PR c++/23383
9484 * common.opt: Add -fallocation-dce
9485 * gimple.c (gimple_call_operator_delete_p): New.
9486 * gimple.h (gimple_call_operator_delete_p): Likewise.
9487 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9488 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9489 DECL_IS_OPERATOR_DELETE_P.
9490 (mark_all_reaching_defs_necessary_1): Likewise.
9491 (propagate_necessity): Likewise.
9492 (eliminate_unnecessary_stmts): Handle
9493 gimple_call_operator_delete_p.
9494 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9495 Add packing of OPERATOR_DELETE.
9496 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9497 Similarly here.
9498 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9499 (DECL_SET_IS_OPERATOR_DELETE): New.
9500 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9501
9502 2019-07-25 Martin Liska <mliska@suse.cz>
9503
9504 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9505 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9506 * coverage.c (coverage_begin_function): Likewise.
9507 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9508 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9509 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9510 (sem_item::hash_referenced_symbol_properties): Likewise.
9511 * lto-streamer-out.c (hash_tree): Likewise.
9512 * predict.c (expr_expected_value_1): Likewise.
9513 * tree-inline.c (expand_call_inline): Likewise.
9514 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9515 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9516 * tree-core.h (enum function_decl_type): New enum.
9517 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9518 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9519 (set_function_decl_type): Likewise.
9520 (DECL_IS_OPERATOR_NEW_P): New.
9521 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9522 (DECL_LAMBDA_FUNCTION): Likewise.
9523 (DECL_LAMBDA_FUNCTION_P): Likewise.
9524 (DECL_IS_OPERATOR_NEW): Remove.
9525 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9526
9527 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9528
9529 * ipa-profile.c (get_most_common_single_value): Use
9530 get_nth_most_common_value.
9531 * profile.c (sort_hist_value): New function.
9532 (compute_value_histograms): Call sort_hist_value to sort the
9533 values after loading from disk.
9534 * value-prof.c (get_most_common_single_value): Rename to ...
9535 get_nth_most_common_value. Add input params n, return
9536 the n_th value and count.
9537 (gimple_divmod_fixed_value_transform): Use
9538 get_nth_most_common_value.
9539 (gimple_ic_transform): Likewise.
9540 (gimple_stringops_transform): Likewise.
9541 * value-prof.h (get_most_common_single_value): Add input params
9542 n, default to 0.
9543
9544 2019-07-25 Richard Biener <rguenther@suse.de>
9545
9546 PR tree-optimization/91236
9547 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9548 size of CONSTRUCTOR write. Fix buffer size we pass to
9549 native_encode_expr.
9550
9551 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9552
9553 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9554 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9555 r273773.
9556
9557 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9558
9559 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9560 explicitly disabled with --disable-initfini-array.
9561
9562 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9563
9564 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9565 if-exists.
9566
9567 2019-07-24 Martin Sebor <msebor@redhat.com>
9568
9569 PR tree-optimization/91183
9570 PR tree-optimization/86688
9571 * builtins.c (compute_objsize): Handle MEM_REF.
9572 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9573 (get_min_string_length): Remove.
9574 (count_nonzero_bytes): New function.
9575 (handle_char_store): Rename...
9576 (handle_store): to this. Handle multibyte stores via integer types.
9577 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9578 function name.
9579
9580 2019-07-24 Martin Sebor <msebor@redhat.com>
9581
9582 PR driver/80545
9583 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9584 (diagnostic_report_diagnostic): Same.
9585 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9586 (diagnostic_context::lang_mask): New data member.
9587 * ipa-pure-const.c (suggest_attribute): Use
9588 lang_hooks.option_lang_mask ().
9589 * opts-common.c (option_enabled): Handle new argument.
9590 (get_option_state): Pass an additional argument.
9591 * opts.c (print_filtered_help): Print supported languages for
9592 unsupported options. Adjust printing of current state.
9593 * opts.h (option_enabled): Add argument.
9594 * toplev.c (print_switch_values): Use lang_mask.
9595 (general_init): Set global_dc->lang_mask.
9596
9597 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9598
9599 PR bootstrap/87030
9600 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9601
9602 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9603
9604 * cgraphunit.c (symbol_table::compile): Start and stop
9605 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9606 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9607
9608 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9609
9610 * gimplify.c (flag_instrument_functions_exclude_p): Include
9611 namespace/class information in the printable name.
9612 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9613 to tokens entered into the vector.
9614
9615 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9616
9617 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9618 (get_static_chain): Call it instead of build_simple_mem_ref.
9619 (get_frame_field): Likewise.
9620 (get_nonlocal_debug_decl): Likewise.
9621 (convert_nonlocal_reference_op): Likewise.
9622
9623 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9624
9625 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9626 declaration.
9627 (arc_compute_frame_size): Millicode is disabled when compiling
9628 ISR.
9629 (arc_return_address_register): Likewise.
9630 (arc_compute_function_type): Likewise.
9631 (arc_compute_frame_size): Likewise.
9632 (secondary_reload_info): Likewise.
9633 (arc_get_unalign): Likewise.
9634 (arc_can_use_return_insn): Declare.
9635 * config/arc/arc.c (AUX_LP_START): Define
9636 (AUX_LP_END): Likewise.
9637 (arc_frame_info): Update gmask member to 64-bit datum.
9638 (GMASK_LEN): Update.
9639 (arc_compute_function_type): Make it static, move it forward.
9640 (arc_must_save_register): Update, consider the extra regs.
9641 (arc_compute_millicode_save_restore_regs): Update to use the 64
9642 bit gmask.
9643 (arc_compute_frame_size): Likewise.
9644 (arc_enter_leave_p): Likewise.
9645 (arc_save_callee_saves): Likewise.
9646 (arc_restore_callee_saves): Likewise.
9647 (arc_save_callee_enter): Likewise.
9648 (arc_restore_callee_leave): Likewise.
9649 (arc_save_callee_milli): Likewise.
9650 (arc_restore_callee_milli): Likewise.
9651 (arc_expand_prologue): Add new interrupt handling.
9652 (arc_return_address_register): Make it static, move it forward.
9653 (arc_expand_epilogue): Add new interrupt handling.
9654 (arc_get_unalign): Delete.
9655 (arc_epilogue_uses): Make sure we do not remove the extra
9656 saved/restored registers when interrupt.
9657 (arc_can_use_return_insn): New function.
9658 (push_reg): Likewise.
9659 (pop_reg): Likewise.
9660 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9661 procedures.
9662 (arc_restore_callee_saves): Likewise, but restoring.
9663 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9664 (R33_REG): Likewise.
9665 (R34_REG): Likewise.
9666 (R35_REG): Likewise.
9667 (R36_REG): Likewise.
9668 (R37_REG): Likewise.
9669 (R38_REG): Likewise.
9670 (R39_REG): Likewise.
9671 (R45_REG): Likewise.
9672 (R46_REG): Likewise.
9673 (R47_REG): Likewise.
9674 (R48_REG): Likewise.
9675 (R49_REG): Likewise.
9676 (R50_REG): Likewise.
9677 (R51_REG): Likewise.
9678 (R52_REG): Likewise.
9679 (R53_REG): Likewise.
9680 (R54_REG): Likewise.
9681 (R55_REG): Likewise.
9682 (R56_REG): Likewise.
9683 (R58_REG): Likewise.
9684 (type): Add rtie attribute.
9685 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9686 (movsi_insn): Accept moves to lp_count.
9687 (rtie): Update pattern.
9688 (simple_return): Simplify it, don't use this pattern as a return
9689 from an interrupt.
9690 (arc600_rtie): New pattern.
9691 (p_return_i): Clean up.
9692 (return): Likewise.
9693 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9694 family CPUs.
9695 * config/arc/predicates.md (move_src_operand): Consider lp_count
9696 as a register.
9697
9698 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9699
9700 * config/s390/predicates.md (addv_const_operand): New predicate.
9701 * config/s390/s390-modes.def (CCO): New condition code mode.
9702 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9703 (s390_branch_condition_mask): Likewise.
9704 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9705 ("mulv<mode>4"): New expanders.
9706 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9707 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9708 pattern definitions.
9709
9710 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9711
9712 PR middle-end/91166
9713 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9714 (define_predicates): Add entry for uniform_vector_p.
9715 (vec_same_elem_p): New match pattern.
9716
9717 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9718
9719 PR bootstrap/87030
9720 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9721 * config/i386/darwin32-biarch.h .. to here.
9722 * config/i386/darwin64-biarch.h: Adjust comments.
9723 * config/rs6000/darwin32-biarch.h: Likewise.
9724 * config/rs6000/darwin64-biarch.h: Likewise.
9725 * config.gcc: Missed commit from r273746
9726 (*-*-darwin*): Don't include CPU t-darwin here.
9727 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9728 an error message if i686-darwin configuration is attempted for
9729 Darwin >= 18.
9730
9731 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9732
9733 PR bootstrap/87030
9734 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9735 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9736 an error message if i686-darwin configuration is attempted for
9737 Darwin >= 18.
9738 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9739 (powerpc-*-darwin*): Use biarch files where needed.
9740 (powerpc64-*-darwin*): Likewise.
9741 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9742 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9743 arch case.
9744 * config/i386/darwin32-biarch.h: New.
9745 * config/i386/darwin64.h: Rename.
9746 * config/i386/darwin64-biarch.h: To this.
9747 * config/i386/t-darwin: Rename.
9748 * config/i386/t-darwin32-biarch: To this.
9749 * config/i386/t-darwin64: Rename.
9750 * config/i386/t-darwin64-biarch: To this.
9751 * config/rs6000/darwin32-biarch.h: New.
9752 * config/rs6000/darwin64.h: Rename.
9753 * config/rs6000/darwin64-biarch.h: To this.
9754 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9755 arch case.
9756 * config/rs6000/t-darwin8: Rename.
9757 * config/rs6000/t-darwin32-biarch: To this.
9758 * config/rs6000/t-darwin64 Rename.
9759 * config/rs6000/t-darwin64-biarch: To this.
9760
9761 2019-07-23 Martin Sebor <msebor@redhat.com>
9762
9763 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9764
9765 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9766
9767 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9768 (rh): New alias for it.
9769
9770 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9771
9772 * gdbhooks.py: Pass replace=True to
9773 gdb.printing.register_pretty_printer.
9774
9775 2019-07-23 Richard Biener <rguenther@suse.de>
9776
9777 PR debug/91231
9778 * lto-streamer-in.c (input_function): Drop inline-entry markers
9779 that ended up with an unknown location block.
9780
9781 2019-07-23 Richard Biener <rguenther@suse.de>
9782
9783 PR tree-optimization/83518
9784 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9785 init from a constant even when partial defs are already recorded.
9786
9787 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9788
9789 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9790 * config/i386/znver1.md: Enable patterns for znver2 and add store
9791 variants which use extra AGU unit.
9792
9793 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9794
9795 * config/i386/i386-options.c (ix86_option_override_internal): Default
9796 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9797 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9798 for ZNVER2.
9799
9800 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9801
9802 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9803 (znver2_costs): Update 256 bit SSE costs and multiplication.
9804
9805 2019-07-23 Jan Beulich <jbeulich@suse.com>
9806
9807 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9808 Require only AVX512F.
9809 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9810 alternative expanding to vpternlog.
9811
9812 2019-07-23 Martin Liska <mliska@suse.cz>
9813
9814 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9815 to -flto in dwarf producer string.
9816
9817 2019-07-23 Richard Biener <rguenther@suse.de>
9818
9819 * tree-cfg.c (label_for_bb): Remove global var.
9820 (main_block_label): Take label_for_bb as argument.
9821 (cleanup_dead_labels_eh): Likewise, adjust.
9822 (cleanup_dead_labels): Adjust.
9823
9824 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9825
9826 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9827 Configurations): Add documentation for __builtin_mtfsf.
9828
9829 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9830
9831 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9832 * config/riscv/riscv.c (riscv_constant_alignment): Use
9833 riscv_align_data_type.
9834 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9835 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9836 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9837 * config/riscv/riscv.opt (malign-data): New.
9838 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9839
9840 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9841
9842 * cgraph.c (dump_graphviz): New function.
9843 * cgraph.h (dump_graphviz): New function.
9844 * symtab.c (dump_graphviz): New function.
9845
9846 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9847
9848 * config/aarch64/aarch64-simd.md
9849 (*aarch64_simd_sra<mode>): New.
9850 * config/aarch64/iterators.md
9851 (SHIFTRT): New iterator.
9852 (sra_op): New attribute.
9853
9854 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9855
9856 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9857 callee-saved regs R4->R10 in an interrupt function that calls another
9858 function.
9859
9860 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9861
9862 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9863 (_mm_blendv_epi8): New.
9864
9865 2019-07-22 Richard Biener <rguenther@suse.de>
9866
9867 PR tree-optimization/91221
9868 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9869 restrict partial-def handling of empty constructors and
9870 memset to refs with known offset.
9871
9872 2019-07-22 Jan Beulich <jbeulich@suse.com>
9873
9874 * config/i386/sse.md (ternlogsuffix): New.
9875 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9876 AVX512F is in use.
9877 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9878
9879 2019-07-22 Martin Liska <mliska@suse.cz>
9880
9881 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9882 comment.
9883 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9884
9885 2019-07-22 Martin Liska <mliska@suse.cz>
9886
9887 * lto-section-in.c (lto_get_section_data):
9888 Use new function get_compression.
9889 * lto-streamer-out.c (produce_lto_section): Use
9890 set_compression to encode compression algorithm.
9891 * lto-streamer.h (struct lto_section): Do not
9892 use bitfields in the format.
9893
9894 2019-07-22 Martin Liska <mliska@suse.cz>
9895
9896 PR driver/91172
9897 * opts-common.c (decode_cmdline_option): Decode
9898 argument of -Werror and check it for a wrong language.
9899 * opts-global.c (complain_wrong_lang): Remove such case.
9900
9901 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
9902
9903 * config/arc/arc.c (prepare_move_operands): Always use an
9904 intermediate register when storing a TLS symbols.
9905
9906 2019-07-22 Stafford Horne <shorne@gmail.com>
9907
9908 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9909 force_reg.
9910
9911 2019-07-22 Stafford Horne <shorne@gmail.com>
9912
9913 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9914 and munordered-float validations.
9915 * config/or1k/constraints.md (d): New register constraint.
9916 * config/or1k/predicates.md (fp_comparison_operator): New.
9917 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9918 operands.
9919 (or1k_expand_compare): Normalize unordered comparisons.
9920 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9921 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9922 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9923 * config/or1k/or1k.md (type): Add fpu.
9924 (fpu): New instruction reservation.
9925 (F, f, fr, fi, FI, FOP, fop): New.
9926 (<fop><F:mode>3): New ALU instruction definition.
9927 (float<fi><F:mode>2): New conversion instruction definition.
9928 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9929 (fpcmpcc): New code iterator.
9930 (*sf_fp_insn): New instruction definition.
9931 (cstore<F:mode>4): New expand definition.
9932 (cbranch<F:mode>4): New expand definition.
9933 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9934 munordered-float): New options.
9935 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9936 munordered-float.
9937
9938 2019-07-22 Stafford Horne <shorne@gmail.com>
9939
9940 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9941 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9942 documenation to be more clear.
9943 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9944 more clear.
9945 * config/or1k/or1k.opt (mrori): New option.
9946 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
9947 msfimm, mshftimm): Rewrite documentation to be more clear.
9948 * config/or1k/or1k.md (insn_support): Add ror and rori.
9949 (enabled): Add conditions for ror and rori.
9950 (rotrsi3): Replace condition for shftimm with ror and rori.
9951
9952 2019-07-22 Stafford Horne <shorne@gmail.com>
9953
9954 PR target/90363
9955 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
9956 (extend<mode>si2): Update predicate.
9957 * config/or1k/predicates.md (volatile_mem_operand): New.
9958 (reg_or_mem_operand): New.
9959
9960 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
9961
9962 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
9963 * config/rs6000/rs6000-call.c: ... to here.
9964
9965 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9966
9967 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
9968 memory.
9969
9970 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9971
9972 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
9973
9974 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9975
9976 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
9977
9978 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
9979
9980 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
9981 (any_memory_operand): New predicate.
9982 (reg_or_mem_operand): Use it.
9983
9984 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9985
9986 PR target/91204
9987 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
9988
9989 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
9990
9991 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
9992 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
9993
9994 2019-07-20 Jakub Jelinek <jakub@redhat.com>
9995
9996 * tree.def (OMP_LOOP): New tree code.
9997 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
9998 (enum omp_clause_bind_kind): New enum.
9999 (struct tree_omp_clause): Add subcode.bind_kind.
10000 * tree.h (OMP_LOOP_CHECK): Rename to ...
10001 (OMP_LOOPING_CHECK): ... this.
10002 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10003 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10004 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10005 (OMP_CLAUSE_BIND_KIND): Define.
10006 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10007 bind clause entries.
10008 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10009 * tree-pretty-print.c (dump_omp_clause): Likewise.
10010 (dump_generic_node): Handle OMP_LOOP.
10011 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10012 (in_omp_construct): New variable.
10013 (is_gimple_stmt): Handle OMP_LOOP.
10014 (gimplify_scan_omp_clauses): For lastprivate don't set
10015 check_non_private if code == OMP_LOOP. For reduction clause
10016 on OMP_LOOP combined with parallel or teams propagate as shared
10017 on the combined construct. Handle OMP_CLAUSE_BIND.
10018 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10019 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10020 for constructs from a loop construct to gimplify_scan_omp_clauses.
10021 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10022 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10023 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10024 to match the implicit ORT_TARGET construct around whole body.
10025 Temporarily clear in_omp_construct when processing body.
10026 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10027 etc. temporarily set in_omp_construct when processing body.
10028 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10029 * omp-low.c (struct omp_context): Add loop_p.
10030 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10031 in that the original var might be private.
10032 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10033 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10034 addition of loop construct.
10035 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10036
10037 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10038 lastprivate non-addressable iterator of a collapse(1) simd.
10039
10040 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10041
10042 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10043 as in rs6000.c.
10044
10045 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10046
10047 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10048 refer to default conditions. Warn for the 'y' spec which is ignored
10049 by current linkers.
10050
10051 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10052
10053 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10054 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10055 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10056 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10057 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10058 init_cumulative_args, rs6000_promote_function_mode,
10059 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10060 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10061 rs6000_function_arg_boundary, rs6000_parm_offset,
10062 rs6000_parm_start, rs6000_arg_size,
10063 rs6000_darwin64_record_arg_advance_flush,
10064 rs6000_darwin64_record_arg_advance_recurse,
10065 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10066 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10067 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10068 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10069 rs6000_finish_function_arg, rs6000_function_arg,
10070 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10071 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10072 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10073 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10074 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10075 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10076 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10077 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10078 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10079 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10080 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10081 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10082 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10083 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10084 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10085 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10086 get_element_number, altivec_expand_vec_set_builtin,
10087 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10088 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10089 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10090 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10091 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10092 rs6000_expand_builtin, rs6000_vector_type,
10093 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10094 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10095 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10096 to rs6000-call.c.
10097 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10098 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10099 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10100 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10101 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10102 init_cumulative_args, rs6000_promote_function_mode,
10103 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10104 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10105 rs6000_function_arg_boundary, rs6000_parm_offset,
10106 rs6000_parm_start, rs6000_arg_size,
10107 rs6000_darwin64_record_arg_advance_flush,
10108 rs6000_darwin64_record_arg_advance_recurse,
10109 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10110 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10111 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10112 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10113 rs6000_finish_function_arg, rs6000_function_arg,
10114 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10115 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10116 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10117 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10118 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10119 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10120 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10121 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10122 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10123 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10124 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10125 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10126 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10127 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10128 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10129 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10130 get_element_number, altivec_expand_vec_set_builtin,
10131 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10132 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10133 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10134 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10135 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10136 rs6000_expand_builtin, rs6000_vector_type,
10137 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10138 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10139 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10140 to here from rs6000.c.
10141 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10142 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10143 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10144 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10145 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10146 rs6000_return_in_memory, rs6000_return_in_msb,
10147 rs6000_pass_by_reference, setup_incoming_varargs,
10148 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10149 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10150 rs6000_function_arg_padding, rs6000_function_arg,
10151 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10152 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10153 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10154 rs6000_passes_long_double, rs6000_passes_vector,
10155 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10156 altivec_builtin_mask_for_load) Add declarations.
10157 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10158 * config/config.gcc: Add new source file rs6000-call.c to garbage
10159 collector and extra_objs.
10160
10161 2019-07-19 Jeff Law <law@redhat.com>
10162
10163 PR tree-optimization/86061
10164 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10165 strncpy. Drop some trivial dead code.
10166 (maybe_trim_memstar_call): Handle strncpy.
10167
10168 2019-07-19 Richard Biener <rguenther@suse.de>
10169
10170 PR tree-optimization/91211
10171 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10172 memset encoding size.
10173
10174 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10175
10176 PR target/91204
10177 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10178
10179 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10180
10181 PR ipa/91194
10182 * ipa-inline.c (recursive_inlining): Fix limits check.
10183
10184 2019-07-19 Richard Biener <rguenther@suse.de>
10185
10186 PR tree-optimization/91200
10187 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10188 no PHI nodes in middle-bb.
10189
10190 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10191
10192 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10193 to +sve-bitperm.
10194 * config/aarch64/aarch64-option-extensions.def: Likewise.
10195
10196 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10197
10198 PR middle-end/91190
10199 * function.c (insert_temp_slot_address): Store into the hash table
10200 a copy of address to avoid RTL sharing issues.
10201
10202 2019-07-19 Richard Biener <rguenther@suse.de>
10203
10204 PR tree-optimization/91207
10205 Revert
10206 2019-07-17 Richard Biener <rguenther@suse.de>
10207
10208 PR tree-optimization/91178
10209 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10210 loads with a gap larger than the vector size always use
10211 VMAT_STRIDED_SLP.
10212 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10213 avoid loading vectors that are only contained in the gap
10214 and thus are not needed.
10215
10216 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10217
10218 * config/i386/i386.md (*addqi_2_slp): Remove.
10219 (*<code>qi_2_slp): Ditto.
10220
10221 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10222
10223 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10224 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10225 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10226 Rename function from rs6000_prefixed_address.
10227 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10228 TARGET_HAS_TOC.
10229 (TARGET_TOC): Likewise.
10230 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10231 rs6000.h.
10232 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10233 TARGET_HAS_TOC.
10234 (TARGET_TOC): Likewise.
10235 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10236 rs6000.h.
10237 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10238 TARGET_HAS_TOC.
10239 (TARGET_TOC): Likewise.
10240 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10241 check to require -mcmodel=medium for pc-relative addressing.
10242 (create_TOC_reference): Add assertion for TARGET_TOC.
10243 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10244 TARGET_NO_TOC.
10245 (rs6000_emit_move): Likewise.
10246 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10247 to 'TOC_alias_set'.
10248 (get_TOC_alias_set): Likewise.
10249 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10250 TARGET_NO_TOC.
10251 (rs6000_can_eliminate): Likewise.
10252 (rs6000_prefixed_address_mode_p): Rename function from
10253 rs6000_prefixed_address.
10254 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10255 TARGET_HAS_TOC and not pc-relative.
10256 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10257 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10258 TARGET_HAS_TOC.
10259 (TARGET_TOC): Likewise.
10260 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10261 rs6000.h.
10262
10263 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10264
10265 PR target/91188
10266 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10267 for operand 0. Do not use (match_dup) to match operand 1 with
10268 operand 0. Add check in insn constraint that either input operand
10269 matches operand 0. Use SWI12 mode iterator to also handle
10270 HImode operands.
10271 (*and<mode>_1_slp): Ditto.
10272 (*<code>qi_1_slp): Ditto.
10273 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10274 Do not use (match_dup) to match operand 1 with operand 0. Add
10275 check in insn constraint that operand 1 matches operand 0.
10276 Use SWI12 mode iterator to also handle HImode operands.
10277 (*ashl<mode>3_1_slp): Ditto.
10278 (*<shift_insn><mode>3_1_slp): Ditto.
10279 (*<rotate_insn><mode>3_1_slp): Ditto.
10280
10281 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10282
10283 * config/arm/arm-builtins.c
10284 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10285 (arm_expand_unop_builtin): Likewise.
10286 * config/arm/crypto.md
10287 (crypto_sha1h): Convert from define_insn to define_expand.
10288 (crypto_<crypto_pattern>): Likewise.
10289 (crypto_sha1h_lb): New define_insn.
10290 (crypto_<crypto_pattern>_lb): Likewise.
10291
10292 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10293
10294 PR target/90317
10295 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10296 (vsha1cq_u32): Likewise.
10297 (vsha1pq_u32): Likewise.
10298 (vsha1mq_u32): Likewise.
10299 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10300 vec select.
10301 (crypto_sha1c): Correct vec select.
10302 (crypto_sha1m): Likewise.
10303 (crypto_sha1p): Likewise.
10304
10305 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10306
10307 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10308 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10309 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10310 (subdi_zesidi_zesidi): Likewise.
10311 (negdi2_compare, negdi2_insn): Likewise.
10312 (negdi_extensidi): Likewise.
10313 (negdi_zero_extendsidi): Likewise.
10314 (arm_cmpdi_insn): Likewise.
10315 (subsi3_carryin): Use arm_borrow_operation.
10316 (subsi3_carryin_const): Likewise.
10317 (subsi3_carryin_const0): Likewise.
10318 (subsi3_carryin_compare): Likewise.
10319 (subsi3_carryin_compare_const): Likewise.
10320 (subsi3_carryin_compare_const0): Likewise.
10321 (subsi3_carryin_shift): Likewise.
10322 (rsbsi3_carryin_shift): Likewise.
10323 (negsi2_carryin_compare): Likewise.
10324
10325 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10326
10327 PR tree-optimization/91137
10328 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10329 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10330 Init, use and fini the above new field.
10331 (determine_base_object_1): New function.
10332 (determine_base_object): Reimplement using walk_tree.
10333
10334 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10335
10336 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10337 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10338 CLEANUP_FORCE_FAST_DCE is set.
10339 * ifcvt.c (rest_of_handle_if_conversion): Pass
10340 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10341 if-conversion succeeded.
10342
10343 2019-07-18 Richard Biener <rguenther@suse.de>
10344
10345 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10346 branches to make code less indented.
10347
10348 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10349
10350 PR middle-end/81824
10351 * attribs.c (decls_mismatched_attributes): Simplify the logic
10352 that avoids duplicates and false positives.
10353
10354 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10355
10356 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10357 data into data section when generating PIC code.
10358 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10359 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10360 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10361 return 2 for SOM and 0 for other targets.
10362
10363 2019-07-17 Jeff Law <law@redhat.com>
10364
10365 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10366 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10367 avoid unexpected switch statement fallthru.
10368
10369 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10370
10371 * config/i386/i386.md (*add<dwi>3_doubleword):
10372 Remove redundant constraints.
10373 (*add<mode>_1): Ditto.
10374 (*addhi_1): Ditto.
10375 (*addqi_1): Ditto.
10376 (*addqi_1_slp): Ditto.
10377 (*add<mode>_2): Ditto.
10378 (*addv<mode>4): Ditto.
10379 (*sub<dwi>3_doubleword): Ditto.
10380 (*sub<mode>_1): Ditto.
10381 (*subqi_1_slp): Ditto.
10382 (*sub<mode>_2): Ditto.
10383 (*subv<mode>4): Ditto.
10384 (*sub<mode>_3): Ditto.
10385 (@add<mode>3_carry): Ditto.
10386 (@sub<mode>3_carry): Ditto.
10387 (*add<mode>3_cc_overflow_1): Ditto.
10388 (*add<mode>3_zext_cc_overflow_2): Ditto.
10389 (*anddi_1): Ditto.
10390 (*and<mode>_1): Ditto.
10391 (*andqi_1): Ditto.
10392 (*andqi_1_slp): Ditto.
10393 (*anddi_2): Ditto.
10394 (*andqi_2_maybe_si): Ditto.
10395 (*and<mode>_2): Ditto.
10396 (*andqi_2_slp): Ditto.
10397 (*<code><mode>_1): Ditto.
10398 (*<code>qi_1): Ditto.
10399 (*<code>qi_1_slp): Ditto.
10400 (*<code><mode>_2): Ditto.
10401 (*<code>qi_2_slp): Ditto.
10402
10403 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10404
10405 * alias.c (record_component_aliases): Do not simplify pointed-to
10406 types of ODR types.
10407
10408 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10409
10410 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10411 partial reg stall on alternative 2.
10412
10413 2019-07-17 Richard Biener <rguenther@suse.de>
10414
10415 PR tree-optimization/91178
10416 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10417 lower SSA names to avoid quadratic behavior in the common case.
10418 * tree-data-ref.c (split_constant_offset): Add limit argument
10419 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10420 (split_constant_offset_1): Add limit argument and use it to
10421 limit SSA def walking. Optimize the common plus/minus case.
10422
10423 2019-07-17 Richard Biener <rguenther@suse.de>
10424
10425 PR tree-optimization/91178
10426 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10427 loads with a gap larger than the vector size always use
10428 VMAT_STRIDED_SLP.
10429 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10430 avoid loading vectors that are only contained in the gap
10431 and thus are not needed.
10432
10433 2019-07-17 Richard Biener <rguenther@suse.de>
10434
10435 PR tree-optimization/91180
10436 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10437 computation for memset partial defs.
10438
10439 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10440
10441 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10442 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10443 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10444 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10445 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10446 * omp-grid.c (grid_process_grid_body,
10447 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10448 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10449 == GF_OMP_FOR_KIND_SIMD.
10450 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10451 check_omp_nesting_restrictions, scan_omp_1_stmt,
10452 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10453 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10454 omp_find_scan): Likewise.
10455 * omp-expand.c (expand_omp_for): Likewise.
10456 * omp-general.c (omp_extract_for_data): Likewise.
10457
10458 PR tree-optimization/91157
10459 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10460 a vector boolean with scalar mode.
10461 (expand_vector_condition): Handle first operand being a vector boolean
10462 with scalar mode.
10463 (expand_vector_operations_1): For comparisons, don't bail out early
10464 if the return type is vector boolean with scalar mode, but comparison
10465 operand type is not.
10466
10467 2019-07-17 Richard Biener <rguenther@suse.de>
10468
10469 PR tree-optimization/91181
10470 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10471 IFN_LOADs as calls.
10472
10473 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10474
10475 * config/i386/i386.md (*testdi_1): Match CCZmode for
10476 constants that might have the SImode sign bit set.
10477 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10478 Use correct constraints for pentium pairing.
10479 (*test<mode>_1): Ditto.
10480
10481 2019-07-16 Jeff Law <law@redhat.com>
10482
10483 PR rtl-optimization/91173
10484 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10485 SSA_NAME with a constant value, fold its value into the offset
10486 and clear the base before calling gen_addr_rtx.
10487
10488 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10489
10490 PR rtl-optimization/91164
10491 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10492 invalidate dominance info.
10493
10494 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10495
10496 * read-md.h (md_reader::record_potential_iterator_use): Add a
10497 file_location parameter.
10498 * read-rtl.c (attribute_use::loc): New field.
10499 (map_attr_string): Take a file_location parameter. Report cases
10500 in which attributes map to multiple distinct values.
10501 (apply_attribute_uses): Update call accordingly.
10502 (md_reader::handle_overloaded_name): Likewise.
10503 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10504 nonnull strings.
10505 (record_attribute_use): Take a file_location parameter.
10506 Initialize attribute_use::loc.
10507 (md_reader::record_potential_iterator_use): Take a file_location
10508 parameter. Update call to record_attribute_use.
10509 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10510 (rtx_reader::read_rtx_code): Likewise.
10511 (rtx_reader::read_rtx_operand): Likewise. Record a location
10512 for implicitly-expanded empty strings.
10513
10514 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10515
10516 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10517 Use file_location instead of separate fields.
10518 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10519 separate filename and line number.
10520 * read-md.c (ptr_loc): As above.
10521 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10522 (md_reader::fprint_md_ptr_loc): Likewise.
10523 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10524 instead of a separate filename and line number.
10525 (md_reader::read_string): Update call accordingly.
10526
10527 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10528
10529 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10530 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10531 leaving the choice between SFDF and P implicit.
10532 (*mov<mode>_update2): Likewise.
10533 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10534 rather than leaving the choice betweem IBM128 and GPR implicit.
10535 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10536 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10537 QHSI implicit.
10538 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10539 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10540 * config/rs6000/vsx.md
10541 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10542 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10543 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10544 and VSX_EXTRACT_I implicit.
10545
10546 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10547
10548 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10549 Explicitly use <MOVEP1:MODE> for the mode attribute.
10550
10551 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10552
10553 PR bootstrap/91176
10554 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10555
10556 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10557
10558 PR target/91050
10559 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10560 .machine directive.
10561
10562 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10563
10564 * config/i386/i386.md (@test<mode>_ccno_1):
10565 Rename from test<mode>_ccno_1.
10566 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10567 (*testqi_1_maybe_si): Remove modrm attribute.
10568 (*test<mode>_1): Ditto.
10569 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10570 gen_test_ccno_1 and gen_extend_insn.
10571
10572 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10573
10574 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10575 to 0.
10576
10577 2019-07-15 Richard Biener <rguenther@suse.de>
10578
10579 PR middle-end/91162
10580 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10581 node make sure to replace all uses with something valid.
10582
10583 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10584
10585 PR tree-optimization/88497
10586 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10587 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10588 function undistribute_bitref_for_vector.
10589 (undistribute_bitref_for_vector): New function.
10590 (cleanup_vinfo_map): Likewise.
10591 (sort_by_mach_mode): Likewise.
10592
10593 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10594
10595 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10596 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10597 and testdi_ccno_1 using SWI48 mode attribute.
10598 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10599 x86_64_szext_general_operand.
10600 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10601 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10602 instead of genera_operand mode attribute.
10603
10604 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10605
10606 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10607 fopen and fclose to their respective types.
10608 (DotFn.invoke): Ditto.
10609
10610 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10611
10612 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10613 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10614 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10615 (array_index_predicate): Remove.
10616 (analyze_function_body): Account cost for variable ofsetted array
10617 indexing.
10618 (estimate_node_size_and_time): Do not compute array index hint.
10619 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10620 (inline_read_section): Do not read array index hint.
10621 (ipa_fn_summary_write): Do not write array index hint.
10622 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10623 * ipa-cp.c (hint_time_bonus): Remove.
10624 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10625 (ipa_fnsummary): Remove array_index.
10626 * ipa-inline.c (want_inline_small_function_p): Do not use
10627 array_index.
10628 (edge_badness): Likewise.
10629 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10630
10631 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10632
10633 PR target/91148
10634 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10635 superfluous "builtin function" phrasing.
10636
10637 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10638
10639 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10640 Break out from ...
10641 (aliasing_component_refs_walk): Break out from ...
10642 (aliasing_component_refs_p): ... here.
10643
10644 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10645
10646 PR target/91148
10647 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10648 "builtin function" phrasing.
10649
10650 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10651
10652 PR target/90723
10653 * recog.h (temporary_volatile_ok): New class.
10654 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10655 volatile_ok temporarily to true using temporary_volatile_ok.
10656 * expr.c (emit_block_move_via_cpymem): Likewise.
10657 * optabs.c (maybe_legitimize_operand): Likewise.
10658
10659 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10660
10661 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10662 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10663 uses inside of order(concurrent) constructs.
10664 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10665 OMP_CLAUSE_ORDER is seen.
10666 * omp-low.c (struct omp_context): Add order_concurrent member.
10667 (scan_sharing_clauses): Set ctx->order_concurrent if
10668 OMP_CLAUSE_ORDER is seen.
10669 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10670 of simd order(concurrent). Diagnose constructs not allowed inside of
10671 for order(concurrent).
10672 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10673 complaining about static double setjmp (double); or class static
10674 methods or non-global namespace setjmps.
10675 (omp_runtime_api_call): New function.
10676 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10677 order(concurrent) loops.
10678
10679 2019-07-12 Martin Sebor <msebor@redhat.com>
10680
10681 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10682 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10683 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10684 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10685
10686 2019-07-12 Jan Hubicka <jh@suse.cz>
10687
10688 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10689 (indirect_refs_may_alias_p): ... here.
10690 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10691 mem refs in the access paths.
10692
10693 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10694
10695 PR tree-optimization/89430
10696 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10697 store elimination for local variable without address escape.
10698
10699 2019-07-12 Jeff Law <law@redhat.com>
10700
10701 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10702 for the ".far" section.
10703
10704 2019-07-12 Richard Biener <rguenther@suse.de>
10705
10706 PR tree-optimization/91145
10707 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10708 chain check.
10709
10710 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10711
10712 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10713 rather than this_state as the lowering context for the ELSE
10714 seq in a GIMPLE_EH_ELSE.
10715
10716 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10717
10718 * vector-builder.h (vector_builder::elt): Allow already-supplied
10719 elements to be read back before building is complete.
10720
10721 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10722
10723 PR rtl-optimization/91136
10724 * df-core.c (ACCESSING REFS): Fix typos in comment.
10725 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10726 the beginning of the block to the initial set of live registers.
10727
10728 2019-07-12 Richard Biener <rguenther@suse.de>
10729
10730 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10731 * fold-const.c (get_array_ctor_element_at_index): Add
10732 ctor_idx output parameter informing the caller where in
10733 the constructor the element was (not) found. Add early exit
10734 for when the ctor is sorted.
10735 * gimple-fold.c (fold_array_ctor_reference): Support constant
10736 folding across multiple array elements.
10737
10738 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10739
10740 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10741 doesn't have location, set the current location to the function's end.
10742
10743 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10744
10745 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10746 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10747 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10748 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10749 * config/aarch64/aarch64-simd.md
10750 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10751 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10752 * config/aarch64/aarch64-sve.md
10753 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10754 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10755
10756 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10757
10758 * doc/md.texi: Document that @ patterns can have different
10759 numbers of operands.
10760 * genemit.c (handle_overloaded_gen): Handle this case.
10761 * genopinit.c (handle_overloaded_gen): Likewise.
10762 * gensupport.c (replace_operands_with_dups): Iterate over
10763 the new rtx's format rather than the old one's.
10764
10765 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10766
10767 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10768 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10769 order clause entries.
10770 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10771 * tree-pretty-print.c (dump_omp_clause): Likewise.
10772 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10773 Likewise.
10774 * omp-low.c (scan_sharing_clauses): Likewise.
10775 * tree-nested.c (convert_nonlocal_omp_clauses,
10776 convert_local_omp_clauses): Likewise.
10777
10778 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10779
10780 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10781 fallthrough target of current basic block isn't the placed
10782 right next.
10783
10784 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10785
10786 PR target/90980
10787 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10788 (_mm512_storeu_epi64): Likewise.
10789 (_mm512_loadu_epi32): Likewise.
10790 (_mm512_storeu_epi32): Likewise.
10791 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10792 (_mm_storeu_epi64): Likewise.
10793 (_mm256_storeu_epi32): Likewise.
10794 (_mm_storeu_epi32): Likewise.
10795
10796 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10797
10798 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10799
10800 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10801
10802 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10803 Handle Modula-2.
10804
10805 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10806
10807 PR target/91124
10808 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10809 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10810 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10811 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10812 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10813 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10814 define_insns.
10815 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10816 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10817 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10818 define_insns.
10819 (sse2_cvttpd2dq<mask_name>): Change into ...
10820 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10821 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10822 (*sse2_cvtpd2dq<mask_name>): Change into ...
10823 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10824 Add "C" constraint to const0_operand.
10825 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10826 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10827 changes.
10828
10829 PR target/91124
10830 * config/i386/i386-builtin-types.def
10831 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10832 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10833 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10834 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10835 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10836 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10837 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10838 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10839 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10840 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10841 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10842 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10843 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10844 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10845 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10846 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10847 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10848 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10849 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10850 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10851 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10852 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10853 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10854 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10855 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10856 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10857 __builtin_ia32_vpdpbusd_v4si_maskz,
10858 __builtin_ia32_vpdpbusds_v16si_mask,
10859 __builtin_ia32_vpdpbusds_v16si_maskz,
10860 __builtin_ia32_vpdpbusds_v8si_mask,
10861 __builtin_ia32_vpdpbusds_v8si_maskz,
10862 __builtin_ia32_vpdpbusds_v4si_mask,
10863 __builtin_ia32_vpdpbusds_v4si_maskz,
10864 __builtin_ia32_vpdpwssd_v16si_mask,
10865 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10866 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10867 __builtin_ia32_vpdpwssd_v4si_maskz,
10868 __builtin_ia32_vpdpwssds_v16si_mask,
10869 __builtin_ia32_vpdpwssds_v16si_maskz,
10870 __builtin_ia32_vpdpwssds_v8si_mask,
10871 __builtin_ia32_vpdpwssds_v8si_maskz,
10872 __builtin_ia32_vpdpwssds_v4si_mask,
10873 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10874 suffixed types rather than *_INT.
10875 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10876 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10877 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10878 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10879 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10880 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10881
10882 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
10883
10884 * tree-vrp.c (intersect_ranges): If we know the intersection is
10885 empty, there is no need to conservatively add anything else to
10886 the set.
10887
10888 2019-07-11 Richard Biener <rguenther@suse.de>
10889
10890 PR middle-end/91131
10891 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10892 when the object is volatile and we have not cleared it even though
10893 there are no nonzero elements.
10894
10895 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
10896
10897 * config/rs6000/predicates.md (cint34_operand): Update
10898 SIGNED_34BIT_OFFSET_P call.
10899 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10900 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10901 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10902 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10903 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10904 argument.
10905 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10906 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10907 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10908 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10909 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10910
10911 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
10912
10913 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10914 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10915 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10916 (DEF_MIN_OSX_VERSION): New.
10917
10918 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10919
10920 * fold-const.c (fold_relational_const): Fix folding of
10921 vector-to-scalar NE_EXPRs.
10922 (test_vector_folding): Add more tests.
10923
10924 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10925
10926 PR target/91060
10927 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10928 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10929 (vec_setv2di_internal): Reexpress as...
10930 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10931 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10932 rather than gen_neon_vset_lane<mode>.
10933
10934 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
10935
10936 PR target/91102
10937 * lra-constraints.c (process_alt_operands): Don't match user
10938 defined regs only if they are early clobbers.
10939
10940 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
10941
10942 * wide-int.h (wi::lshift): Reject negative values for the fast path.
10943
10944 2019-07-10 Richard Biener <rguenther@suse.de>
10945
10946 PR tree-optimization/91126
10947 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
10948 native encoding offset for BYTES_BIG_ENDIAN.
10949 (vn_reference_lookup_3): Likewise.
10950
10951 2019-07-10 Richard Biener <rguenther@suse.de>
10952
10953 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
10954 LHS whenever possible.
10955
10956 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
10957
10958 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
10959 from ...; work also on duplicated types.
10960 (nonoverlapping_component_refs_since_match): ... here
10961 (ncr_type_uid): Break out from ...
10962 (ncr_compar): ... here; look for TYPE_UID of canonical type if
10963 available.
10964 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
10965 the types and nonoverlapping_component_refs_p_1 to disambiguate.
10966
10967 2019-07-09 Martin Sebor <msebor@redhat.com>
10968
10969 PR tree-optimization/90989
10970 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
10971 optimization to just single character stores.
10972
10973 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
10974
10975 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
10976 Swap operands only once.
10977
10978 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10979
10980 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
10981 for both call instructions.
10982
10983 2019-07-09 John Darrington <john@darrington.wattle.id.au>
10984
10985 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
10986 rather than GET_MODE_BITSIZE to better handle partial integer modes.
10987
10988 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
10989
10990 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
10991 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
10992 function from rs6000-logue.c back to rs6000.c.
10993 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
10994
10995 2019-07-09 Martin Sebor <msebor@redhat.com>
10996
10997 PR c++/61339
10998 * auto-profile.c: Change class-key of PODs to struct and others
10999 to class.
11000 * basic-block.h: Same.
11001 * bitmap.c (bitmap_alloc): Same.
11002 * bitmap.h: Same.
11003 * builtins.c (expand_builtin_prefetch): Same.
11004 (expand_builtin_interclass_mathfn): Same.
11005 (expand_builtin_strlen): Same.
11006 (expand_builtin_mempcpy_args): Same.
11007 (expand_cmpstr): Same.
11008 (expand_builtin___clear_cache): Same.
11009 (expand_ifn_atomic_bit_test_and): Same.
11010 (expand_builtin_thread_pointer): Same.
11011 (expand_builtin_set_thread_pointer): Same.
11012 * caller-save.c (setup_save_areas): Same.
11013 (replace_reg_with_saved_mem): Same.
11014 (insert_restore): Same.
11015 (insert_save): Same.
11016 (add_used_regs): Same.
11017 * cfg.c (get_bb_copy): Same.
11018 (set_loop_copy): Same.
11019 * cfg.h: Same.
11020 * cfganal.h: Same.
11021 * cfgexpand.c (alloc_stack_frame_space): Same.
11022 (add_stack_var): Same.
11023 (add_stack_var_conflict): Same.
11024 (add_scope_conflicts_1): Same.
11025 (update_alias_info_with_stack_vars): Same.
11026 (expand_used_vars): Same.
11027 * cfghooks.c (redirect_edge_and_branch_force): Same.
11028 (delete_basic_block): Same.
11029 (split_edge): Same.
11030 (make_forwarder_block): Same.
11031 (force_nonfallthru): Same.
11032 (duplicate_block): Same.
11033 (lv_flush_pending_stmts): Same.
11034 * cfghooks.h: Same.
11035 * cfgloop.c (flow_loops_cfg_dump): Same.
11036 (flow_loop_nested_p): Same.
11037 (superloop_at_depth): Same.
11038 (get_loop_latch_edges): Same.
11039 (flow_loop_dump): Same.
11040 (flow_loops_dump): Same.
11041 (flow_loops_free): Same.
11042 (flow_loop_nodes_find): Same.
11043 (establish_preds): Same.
11044 (flow_loop_tree_node_add): Same.
11045 (flow_loop_tree_node_remove): Same.
11046 (flow_loops_find): Same.
11047 (find_subloop_latch_edge_by_profile): Same.
11048 (find_subloop_latch_edge_by_ivs): Same.
11049 (mfb_redirect_edges_in_set): Same.
11050 (form_subloop): Same.
11051 (merge_latch_edges): Same.
11052 (disambiguate_multiple_latches): Same.
11053 (disambiguate_loops_with_multiple_latches): Same.
11054 (flow_bb_inside_loop_p): Same.
11055 (glb_enum_p): Same.
11056 (get_loop_body_with_size): Same.
11057 (get_loop_body): Same.
11058 (fill_sons_in_loop): Same.
11059 (get_loop_body_in_dom_order): Same.
11060 (get_loop_body_in_custom_order): Same.
11061 (release_recorded_exits): Same.
11062 (get_loop_exit_edges): Same.
11063 (num_loop_branches): Same.
11064 (remove_bb_from_loops): Same.
11065 (find_common_loop): Same.
11066 (delete_loop): Same.
11067 (cancel_loop): Same.
11068 (verify_loop_structure): Same.
11069 (loop_preheader_edge): Same.
11070 (loop_exit_edge_p): Same.
11071 (single_exit): Same.
11072 (loop_exits_to_bb_p): Same.
11073 (loop_exits_from_bb_p): Same.
11074 (get_loop_location): Same.
11075 (record_niter_bound): Same.
11076 (get_estimated_loop_iterations_int): Same.
11077 (max_stmt_executions_int): Same.
11078 (likely_max_stmt_executions_int): Same.
11079 (get_estimated_loop_iterations): Same.
11080 (get_max_loop_iterations): Same.
11081 (get_max_loop_iterations_int): Same.
11082 (get_likely_max_loop_iterations): Same.
11083 * cfgloop.h (simple_loop_desc): Same.
11084 (get_loop): Same.
11085 (loop_depth): Same.
11086 (loop_outer): Same.
11087 (loop_iterator::next): Same.
11088 (loop_outermost): Same.
11089 * cfgloopanal.c (mark_irreducible_loops): Same.
11090 (num_loop_insns): Same.
11091 (average_num_loop_insns): Same.
11092 (expected_loop_iterations_unbounded): Same.
11093 (expected_loop_iterations): Same.
11094 (mark_loop_exit_edges): Same.
11095 (single_likely_exit): Same.
11096 * cfgloopmanip.c (fix_bb_placement): Same.
11097 (fix_bb_placements): Same.
11098 (remove_path): Same.
11099 (place_new_loop): Same.
11100 (add_loop): Same.
11101 (scale_loop_frequencies): Same.
11102 (scale_loop_profile): Same.
11103 (create_empty_if_region_on_edge): Same.
11104 (create_empty_loop_on_edge): Same.
11105 (loopify): Same.
11106 (unloop): Same.
11107 (fix_loop_placements): Same.
11108 (copy_loop_info): Same.
11109 (duplicate_loop): Same.
11110 (duplicate_subloops): Same.
11111 (loop_redirect_edge): Same.
11112 (can_duplicate_loop_p): Same.
11113 (duplicate_loop_to_header_edge): Same.
11114 (mfb_keep_just): Same.
11115 (has_preds_from_loop): Same.
11116 (create_preheader): Same.
11117 (create_preheaders): Same.
11118 (lv_adjust_loop_entry_edge): Same.
11119 (loop_version): Same.
11120 * cfgloopmanip.h: Same.
11121 * cgraph.h: Same.
11122 * cgraphbuild.c: Same.
11123 * combine.c (make_extraction): Same.
11124 * config/i386/i386-features.c: Same.
11125 * config/i386/i386-features.h: Same.
11126 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11127 (ix86_emit_outlined_ms2sysv_restore): Same.
11128 (ix86_noce_conversion_profitable_p): Same.
11129 (ix86_init_cost): Same.
11130 (ix86_simd_clone_usable): Same.
11131 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11132 Wstruct-not-pod.
11133 * coretypes.h: Same.
11134 * data-streamer-in.c (string_for_index): Change class-key of PODs
11135 to struct and others to class.
11136 (streamer_read_indexed_string): Same.
11137 (streamer_read_string): Same.
11138 (bp_unpack_indexed_string): Same.
11139 (bp_unpack_string): Same.
11140 (streamer_read_uhwi): Same.
11141 (streamer_read_hwi): Same.
11142 (streamer_read_gcov_count): Same.
11143 (streamer_read_wide_int): Same.
11144 * data-streamer.h (streamer_write_bitpack): Same.
11145 (bp_unpack_value): Same.
11146 (streamer_write_char_stream): Same.
11147 (streamer_write_hwi_in_range): Same.
11148 (streamer_write_record_start): Same.
11149 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11150 (add_cross_iteration_register_deps): Same.
11151 (build_intra_loop_deps): Same.
11152 * df-core.c (df_analyze): Same.
11153 (loop_post_order_compute): Same.
11154 (loop_inverted_post_order_compute): Same.
11155 * df-problems.c (df_rd_alloc): Same.
11156 (df_rd_simulate_one_insn): Same.
11157 (df_rd_local_compute): Same.
11158 (df_rd_init_solution): Same.
11159 (df_rd_confluence_n): Same.
11160 (df_rd_transfer_function): Same.
11161 (df_rd_free): Same.
11162 (df_rd_dump_defs_set): Same.
11163 (df_rd_top_dump): Same.
11164 (df_lr_alloc): Same.
11165 (df_lr_reset): Same.
11166 (df_lr_local_compute): Same.
11167 (df_lr_init): Same.
11168 (df_lr_confluence_n): Same.
11169 (df_lr_free): Same.
11170 (df_lr_top_dump): Same.
11171 (df_lr_verify_transfer_functions): Same.
11172 (df_live_alloc): Same.
11173 (df_live_reset): Same.
11174 (df_live_init): Same.
11175 (df_live_confluence_n): Same.
11176 (df_live_finalize): Same.
11177 (df_live_free): Same.
11178 (df_live_top_dump): Same.
11179 (df_live_verify_transfer_functions): Same.
11180 (df_mir_alloc): Same.
11181 (df_mir_reset): Same.
11182 (df_mir_init): Same.
11183 (df_mir_confluence_n): Same.
11184 (df_mir_free): Same.
11185 (df_mir_top_dump): Same.
11186 (df_word_lr_alloc): Same.
11187 (df_word_lr_reset): Same.
11188 (df_word_lr_init): Same.
11189 (df_word_lr_confluence_n): Same.
11190 (df_word_lr_free): Same.
11191 (df_word_lr_top_dump): Same.
11192 (df_md_alloc): Same.
11193 (df_md_simulate_one_insn): Same.
11194 (df_md_reset): Same.
11195 (df_md_init): Same.
11196 (df_md_free): Same.
11197 (df_md_top_dump): Same.
11198 * df-scan.c (df_insn_delete): Same.
11199 (df_insn_rescan): Same.
11200 (df_notes_rescan): Same.
11201 (df_sort_and_compress_mws): Same.
11202 (df_install_mws): Same.
11203 (df_refs_add_to_chains): Same.
11204 (df_ref_create_structure): Same.
11205 (df_ref_record): Same.
11206 (df_def_record_1): Same.
11207 (df_find_hard_reg_defs): Same.
11208 (df_uses_record): Same.
11209 (df_get_conditional_uses): Same.
11210 (df_get_call_refs): Same.
11211 (df_recompute_luids): Same.
11212 (df_get_entry_block_def_set): Same.
11213 (df_entry_block_defs_collect): Same.
11214 (df_get_exit_block_use_set): Same.
11215 (df_exit_block_uses_collect): Same.
11216 (df_mws_verify): Same.
11217 (df_bb_verify): Same.
11218 * df.h (df_scan_get_bb_info): Same.
11219 * doc/tm.texi: Same.
11220 * dse.c (record_store): Same.
11221 * dumpfile.h: Same.
11222 * emit-rtl.c (const_fixed_hasher::equal): Same.
11223 (set_mem_attributes_minus_bitpos): Same.
11224 (change_address): Same.
11225 (adjust_address_1): Same.
11226 (offset_address): Same.
11227 * emit-rtl.h: Same.
11228 * except.c (dw2_build_landing_pads): Same.
11229 (sjlj_emit_dispatch_table): Same.
11230 * explow.c (allocate_dynamic_stack_space): Same.
11231 (emit_stack_probe): Same.
11232 (probe_stack_range): Same.
11233 * expmed.c (store_bit_field_using_insv): Same.
11234 (store_bit_field_1): Same.
11235 (store_integral_bit_field): Same.
11236 (extract_bit_field_using_extv): Same.
11237 (extract_bit_field_1): Same.
11238 (emit_cstore): Same.
11239 * expr.c (emit_block_move_via_cpymem): Same.
11240 (expand_cmpstrn_or_cmpmem): Same.
11241 (set_storage_via_setmem): Same.
11242 (emit_single_push_insn_1): Same.
11243 (expand_assignment): Same.
11244 (store_constructor): Same.
11245 (expand_expr_real_2): Same.
11246 (expand_expr_real_1): Same.
11247 (try_casesi): Same.
11248 * flags.h: Same.
11249 * function.c (try_fit_stack_local): Same.
11250 (assign_stack_local_1): Same.
11251 (assign_stack_local): Same.
11252 (cut_slot_from_list): Same.
11253 (insert_slot_to_list): Same.
11254 (max_slot_level): Same.
11255 (move_slot_to_level): Same.
11256 (temp_address_hasher::equal): Same.
11257 (remove_unused_temp_slot_addresses): Same.
11258 (assign_temp): Same.
11259 (combine_temp_slots): Same.
11260 (update_temp_slot_address): Same.
11261 (preserve_temp_slots): Same.
11262 * function.h: Same.
11263 * fwprop.c: Same.
11264 * gcc-rich-location.h: Same.
11265 * gcov.c: Same.
11266 * genattrtab.c (check_attr_test): Same.
11267 (check_attr_value): Same.
11268 (convert_set_attr_alternative): Same.
11269 (convert_set_attr): Same.
11270 (check_defs): Same.
11271 (copy_boolean): Same.
11272 (get_attr_value): Same.
11273 (expand_delays): Same.
11274 (make_length_attrs): Same.
11275 (min_fn): Same.
11276 (make_alternative_compare): Same.
11277 (simplify_test_exp): Same.
11278 (tests_attr_p): Same.
11279 (get_attr_order): Same.
11280 (clear_struct_flag): Same.
11281 (gen_attr): Same.
11282 (compares_alternatives_p): Same.
11283 (gen_insn): Same.
11284 (gen_delay): Same.
11285 (find_attrs_to_cache): Same.
11286 (write_test_expr): Same.
11287 (walk_attr_value): Same.
11288 (write_attr_get): Same.
11289 (eliminate_known_true): Same.
11290 (write_insn_cases): Same.
11291 (write_attr_case): Same.
11292 (write_attr_valueq): Same.
11293 (write_attr_value): Same.
11294 (write_dummy_eligible_delay): Same.
11295 (next_comma_elt): Same.
11296 (find_attr): Same.
11297 (make_internal_attr): Same.
11298 (copy_rtx_unchanging): Same.
11299 (gen_insn_reserv): Same.
11300 (check_tune_attr): Same.
11301 (make_automaton_attrs): Same.
11302 (handle_arg): Same.
11303 * genextract.c (gen_insn): Same.
11304 (VEC_char_to_string): Same.
11305 * genmatch.c (print_operand): Same.
11306 (lower): Same.
11307 (parser::parse_operation): Same.
11308 (parser::parse_capture): Same.
11309 (parser::parse_c_expr): Same.
11310 (parser::parse_simplify): Same.
11311 (main): Same.
11312 * genoutput.c (output_operand_data): Same.
11313 (output_get_insn_name): Same.
11314 (compare_operands): Same.
11315 (place_operands): Same.
11316 (process_template): Same.
11317 (validate_insn_alternatives): Same.
11318 (validate_insn_operands): Same.
11319 (gen_expand): Same.
11320 (note_constraint): Same.
11321 * genpreds.c (write_one_predicate_function): Same.
11322 (add_constraint): Same.
11323 (process_define_register_constraint): Same.
11324 (write_lookup_constraint_1): Same.
11325 (write_lookup_constraint_array): Same.
11326 (write_insn_constraint_len): Same.
11327 (write_reg_class_for_constraint_1): Same.
11328 (write_constraint_satisfied_p_array): Same.
11329 * genrecog.c (optimize_subroutine_group): Same.
11330 * gensupport.c (process_define_predicate): Same.
11331 (queue_pattern): Same.
11332 (remove_from_queue): Same.
11333 (process_rtx): Same.
11334 (is_predicable): Same.
11335 (change_subst_attribute): Same.
11336 (subst_pattern_match): Same.
11337 (alter_constraints): Same.
11338 (alter_attrs_for_insn): Same.
11339 (shift_output_template): Same.
11340 (alter_output_for_subst_insn): Same.
11341 (process_one_cond_exec): Same.
11342 (subst_dup): Same.
11343 (process_define_cond_exec): Same.
11344 (mnemonic_htab_callback): Same.
11345 (gen_mnemonic_attr): Same.
11346 (read_md_rtx): Same.
11347 * ggc-page.c: Same.
11348 * gimple-loop-interchange.cc (dump_reduction): Same.
11349 (dump_induction): Same.
11350 (loop_cand::~loop_cand): Same.
11351 (free_data_refs_with_aux): Same.
11352 (tree_loop_interchange::interchange_loops): Same.
11353 (tree_loop_interchange::map_inductions_to_loop): Same.
11354 (tree_loop_interchange::move_code_to_inner_loop): Same.
11355 (compute_access_stride): Same.
11356 (compute_access_strides): Same.
11357 (proper_loop_form_for_interchange): Same.
11358 (tree_loop_interchange_compute_ddrs): Same.
11359 (prune_datarefs_not_in_loop): Same.
11360 (prepare_data_references): Same.
11361 (pass_linterchange::execute): Same.
11362 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11363 (unroll_jam_possible_p): Same.
11364 (fuse_loops): Same.
11365 (adjust_unroll_factor): Same.
11366 (tree_loop_unroll_and_jam): Same.
11367 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11368 (loop_versioning::expensive_stmt_p): Same.
11369 (loop_versioning::version_for_unity): Same.
11370 (loop_versioning::dump_inner_likelihood): Same.
11371 (loop_versioning::find_per_loop_multiplication): Same.
11372 (loop_versioning::analyze_term_using_scevs): Same.
11373 (loop_versioning::record_address_fragment): Same.
11374 (loop_versioning::analyze_expr): Same.
11375 (loop_versioning::analyze_blocks): Same.
11376 (loop_versioning::prune_conditions): Same.
11377 (loop_versioning::merge_loop_info): Same.
11378 (loop_versioning::add_loop_to_queue): Same.
11379 (loop_versioning::decide_whether_loop_is_versionable): Same.
11380 (loop_versioning::make_versioning_decisions): Same.
11381 (loop_versioning::implement_versioning_decisions): Same.
11382 * gimple-ssa-evrp-analyze.c
11383 (evrp_range_analyzer::record_ranges_from_phis): Same.
11384 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11385 (count_multiple_uses): Same.
11386 (split_group): Same.
11387 (imm_store_chain_info::output_merged_store): Same.
11388 (pass_store_merging::process_store): Same.
11389 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11390 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11391 (is_max): Same.
11392 (alloca_call_type): Same.
11393 (pass_walloca::execute): Same.
11394 * gimple-streamer-in.c (input_phi): Same.
11395 (input_gimple_stmt): Same.
11396 * gimple-streamer.h: Same.
11397 * godump.c (go_force_record_alignment): Same.
11398 (go_format_type): Same.
11399 (go_output_type): Same.
11400 (go_output_fndecl): Same.
11401 (go_output_typedef): Same.
11402 (keyword_hash_init): Same.
11403 (find_dummy_types): Same.
11404 * graph.c (draw_cfg_nodes_no_loops): Same.
11405 (draw_cfg_nodes_for_loop): Same.
11406 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11407 * hsa-brig.c: Same.
11408 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11409 * hsa-dump.c (dump_hsa_cfun): Same.
11410 * hsa-gen.c (gen_function_def_parameters): Same.
11411 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11412 * input.c (dump_line_table_statistics): Same.
11413 (test_lexer): Same.
11414 * input.h: Same.
11415 * internal-fn.c (get_multi_vector_move): Same.
11416 (expand_load_lanes_optab_fn): Same.
11417 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11418 (expand_GOMP_SIMT_EXIT): Same.
11419 (expand_GOMP_SIMT_LAST_LANE): Same.
11420 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11421 (expand_GOMP_SIMT_VOTE_ANY): Same.
11422 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11423 (expand_GOMP_SIMT_XCHG_IDX): Same.
11424 (expand_addsub_overflow): Same.
11425 (expand_neg_overflow): Same.
11426 (expand_mul_overflow): Same.
11427 (expand_call_mem_ref): Same.
11428 (expand_mask_load_optab_fn): Same.
11429 (expand_scatter_store_optab_fn): Same.
11430 (expand_gather_load_optab_fn): Same.
11431 * ipa-cp.c (ipa_get_parm_lattices): Same.
11432 (print_all_lattices): Same.
11433 (ignore_edge_p): Same.
11434 (build_toporder_info): Same.
11435 (free_toporder_info): Same.
11436 (push_node_to_stack): Same.
11437 (ipcp_lattice<valtype>::set_contains_variable): Same.
11438 (set_agg_lats_to_bottom): Same.
11439 (ipcp_bits_lattice::meet_with): Same.
11440 (set_single_call_flag): Same.
11441 (initialize_node_lattices): Same.
11442 (ipa_get_jf_ancestor_result): Same.
11443 (ipcp_verify_propagated_values): Same.
11444 (propagate_scalar_across_jump_function): Same.
11445 (propagate_context_across_jump_function): Same.
11446 (propagate_bits_across_jump_function): Same.
11447 (ipa_vr_operation_and_type_effects): Same.
11448 (propagate_vr_across_jump_function): Same.
11449 (set_check_aggs_by_ref): Same.
11450 (set_chain_of_aglats_contains_variable): Same.
11451 (merge_aggregate_lattices): Same.
11452 (agg_pass_through_permissible_p): Same.
11453 (propagate_aggs_across_jump_function): Same.
11454 (call_passes_through_thunk_p): Same.
11455 (propagate_constants_across_call): Same.
11456 (devirtualization_time_bonus): Same.
11457 (good_cloning_opportunity_p): Same.
11458 (context_independent_aggregate_values): Same.
11459 (gather_context_independent_values): Same.
11460 (perform_estimation_of_a_value): Same.
11461 (estimate_local_effects): Same.
11462 (value_topo_info<valtype>::add_val): Same.
11463 (add_all_node_vals_to_toposort): Same.
11464 (value_topo_info<valtype>::propagate_effects): Same.
11465 (ipcp_propagate_stage): Same.
11466 (ipcp_discover_new_direct_edges): Same.
11467 (same_node_or_its_all_contexts_clone_p): Same.
11468 (cgraph_edge_brings_value_p): Same.
11469 (gather_edges_for_value): Same.
11470 (create_specialized_node): Same.
11471 (find_more_scalar_values_for_callers_subset): Same.
11472 (find_more_contexts_for_caller_subset): Same.
11473 (copy_plats_to_inter): Same.
11474 (intersect_aggregates_with_edge): Same.
11475 (find_aggregate_values_for_callers_subset): Same.
11476 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11477 (decide_about_value): Same.
11478 (decide_whether_version_node): Same.
11479 (spread_undeadness): Same.
11480 (identify_dead_nodes): Same.
11481 (ipcp_store_vr_results): Same.
11482 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11483 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11484 (redirect_to_unreachable): Same.
11485 (edge_set_predicate): Same.
11486 (evaluate_conditions_for_known_args): Same.
11487 (evaluate_properties_for_edge): Same.
11488 (ipa_fn_summary_t::duplicate): Same.
11489 (ipa_call_summary_t::duplicate): Same.
11490 (dump_ipa_call_summary): Same.
11491 (ipa_dump_fn_summary): Same.
11492 (eliminated_by_inlining_prob): Same.
11493 (set_cond_stmt_execution_predicate): Same.
11494 (set_switch_stmt_execution_predicate): Same.
11495 (compute_bb_predicates): Same.
11496 (will_be_nonconstant_expr_predicate): Same.
11497 (phi_result_unknown_predicate): Same.
11498 (analyze_function_body): Same.
11499 (compute_fn_summary): Same.
11500 (estimate_edge_devirt_benefit): Same.
11501 (estimate_edge_size_and_time): Same.
11502 (estimate_calls_size_and_time): Same.
11503 (estimate_node_size_and_time): Same.
11504 (remap_edge_change_prob): Same.
11505 (remap_edge_summaries): Same.
11506 (ipa_merge_fn_summary_after_inlining): Same.
11507 (ipa_fn_summary_generate): Same.
11508 (inline_read_section): Same.
11509 (ipa_fn_summary_read): Same.
11510 (ipa_fn_summary_write): Same.
11511 * ipa-fnsummary.h: Same.
11512 * ipa-hsa.c (ipa_hsa_read_section): Same.
11513 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11514 * ipa-icf.c (sem_function::param_used_p): Same.
11515 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11516 * ipa-inline.c (edge_badness): Same.
11517 (inline_small_functions): Same.
11518 * ipa-polymorphic-call.c
11519 (ipa_polymorphic_call_context::stream_out): Same.
11520 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11521 (predicate::remap_after_inlining): Same.
11522 (predicate::stream_out): Same.
11523 * ipa-predicate.h: Same.
11524 * ipa-profile.c (ipa_profile_read_summary): Same.
11525 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11526 (count_formal_params): Same.
11527 (ipa_dump_param): Same.
11528 (ipa_alloc_node_params): Same.
11529 (ipa_print_node_jump_functions_for_edge): Same.
11530 (ipa_print_node_jump_functions): Same.
11531 (ipa_load_from_parm_agg): Same.
11532 (get_ancestor_addr_info): Same.
11533 (ipa_compute_jump_functions_for_edge): Same.
11534 (ipa_analyze_virtual_call_uses): Same.
11535 (ipa_analyze_stmt_uses): Same.
11536 (ipa_analyze_params_uses_in_bb): Same.
11537 (update_jump_functions_after_inlining): Same.
11538 (try_decrement_rdesc_refcount): Same.
11539 (ipa_impossible_devirt_target): Same.
11540 (update_indirect_edges_after_inlining): Same.
11541 (combine_controlled_uses_counters): Same.
11542 (ipa_edge_args_sum_t::duplicate): Same.
11543 (ipa_write_jump_function): Same.
11544 (ipa_write_indirect_edge_info): Same.
11545 (ipa_write_node_info): Same.
11546 (ipa_read_edge_info): Same.
11547 (ipa_prop_read_section): Same.
11548 (read_replacements_section): Same.
11549 * ipa-prop.h (ipa_get_param_count): Same.
11550 (ipa_get_param): Same.
11551 (ipa_get_type): Same.
11552 (ipa_get_param_move_cost): Same.
11553 (ipa_set_param_used): Same.
11554 (ipa_get_controlled_uses): Same.
11555 (ipa_set_controlled_uses): Same.
11556 (ipa_get_cs_argument_count): Same.
11557 * ipa-pure-const.c (analyze_function): Same.
11558 (pure_const_read_summary): Same.
11559 * ipa-ref.h: Same.
11560 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11561 * ipa-split.c (test_nonssa_use): Same.
11562 (dump_split_point): Same.
11563 (dominated_by_forbidden): Same.
11564 (split_part_set_ssa_name_p): Same.
11565 (find_split_points): Same.
11566 * ira-build.c (finish_loop_tree_nodes): Same.
11567 (low_pressure_loop_node_p): Same.
11568 * ira-color.c (ira_reuse_stack_slot): Same.
11569 * ira-int.h: Same.
11570 * ira.c (setup_reg_equiv): Same.
11571 (print_insn_chain): Same.
11572 (ira): Same.
11573 * loop-doloop.c (doloop_condition_get): Same.
11574 (add_test): Same.
11575 (record_reg_sets): Same.
11576 (doloop_optimize): Same.
11577 * loop-init.c (loop_optimizer_init): Same.
11578 (fix_loop_structure): Same.
11579 * loop-invariant.c (merge_identical_invariants): Same.
11580 (compute_always_reached): Same.
11581 (find_exits): Same.
11582 (may_assign_reg_p): Same.
11583 (find_invariants_bb): Same.
11584 (find_invariants_body): Same.
11585 (replace_uses): Same.
11586 (can_move_invariant_reg): Same.
11587 (free_inv_motion_data): Same.
11588 (move_single_loop_invariants): Same.
11589 (change_pressure): Same.
11590 (mark_ref_regs): Same.
11591 (calculate_loop_reg_pressure): Same.
11592 * loop-iv.c (biv_entry_hasher::equal): Same.
11593 (iv_extend_to_rtx_code): Same.
11594 (check_iv_ref_table_size): Same.
11595 (clear_iv_info): Same.
11596 (latch_dominating_def): Same.
11597 (iv_get_reaching_def): Same.
11598 (iv_constant): Same.
11599 (iv_subreg): Same.
11600 (iv_extend): Same.
11601 (iv_neg): Same.
11602 (iv_add): Same.
11603 (iv_mult): Same.
11604 (get_biv_step): Same.
11605 (record_iv): Same.
11606 (analyzed_for_bivness_p): Same.
11607 (record_biv): Same.
11608 (iv_analyze_biv): Same.
11609 (iv_analyze_expr): Same.
11610 (iv_analyze_def): Same.
11611 (iv_analyze_op): Same.
11612 (iv_analyze): Same.
11613 (iv_analyze_result): Same.
11614 (biv_p): Same.
11615 (eliminate_implied_conditions): Same.
11616 (simplify_using_initial_values): Same.
11617 (shorten_into_mode): Same.
11618 (canonicalize_iv_subregs): Same.
11619 (determine_max_iter): Same.
11620 (check_simple_exit): Same.
11621 (find_simple_exit): Same.
11622 (get_simple_loop_desc): Same.
11623 * loop-unroll.c (report_unroll): Same.
11624 (decide_unrolling): Same.
11625 (unroll_loops): Same.
11626 (loop_exit_at_end_p): Same.
11627 (decide_unroll_constant_iterations): Same.
11628 (unroll_loop_constant_iterations): Same.
11629 (compare_and_jump_seq): Same.
11630 (unroll_loop_runtime_iterations): Same.
11631 (decide_unroll_stupid): Same.
11632 (unroll_loop_stupid): Same.
11633 (referenced_in_one_insn_in_loop_p): Same.
11634 (reset_debug_uses_in_loop): Same.
11635 (analyze_iv_to_split_insn): Same.
11636 * lra-eliminations.c (lra_debug_elim_table): Same.
11637 (setup_can_eliminate): Same.
11638 (form_sum): Same.
11639 (lra_get_elimination_hard_regno): Same.
11640 (lra_eliminate_regs_1): Same.
11641 (eliminate_regs_in_insn): Same.
11642 (update_reg_eliminate): Same.
11643 (init_elimination): Same.
11644 (lra_eliminate): Same.
11645 * lra-int.h: Same.
11646 * lra-lives.c (initiate_live_solver): Same.
11647 * lra-remat.c (create_remat_bb_data): Same.
11648 * lra-spills.c (lra_spill): Same.
11649 * lra.c (lra_set_insn_recog_data): Same.
11650 (lra_set_used_insn_alternative_by_uid): Same.
11651 (init_reg_info): Same.
11652 (expand_reg_info): Same.
11653 * lto-cgraph.c (output_symtab): Same.
11654 (read_identifier): Same.
11655 (get_alias_symbol): Same.
11656 (input_node): Same.
11657 (input_varpool_node): Same.
11658 (input_ref): Same.
11659 (input_edge): Same.
11660 (input_cgraph_1): Same.
11661 (input_refs): Same.
11662 (input_symtab): Same.
11663 (input_offload_tables): Same.
11664 (output_cgraph_opt_summary): Same.
11665 (input_edge_opt_summary): Same.
11666 (input_cgraph_opt_section): Same.
11667 * lto-section-in.c (lto_free_raw_section_data): Same.
11668 (lto_create_simple_input_block): Same.
11669 (lto_free_function_in_decl_state_for_node): Same.
11670 * lto-streamer-in.c (lto_tag_check_set): Same.
11671 (lto_location_cache::revert_location_cache): Same.
11672 (lto_location_cache::input_location): Same.
11673 (lto_input_location): Same.
11674 (stream_input_location_now): Same.
11675 (lto_input_tree_ref): Same.
11676 (lto_input_eh_catch_list): Same.
11677 (input_eh_region): Same.
11678 (lto_init_eh): Same.
11679 (make_new_block): Same.
11680 (input_cfg): Same.
11681 (fixup_call_stmt_edges): Same.
11682 (input_struct_function_base): Same.
11683 (input_function): Same.
11684 (lto_read_body_or_constructor): Same.
11685 (lto_read_tree_1): Same.
11686 (lto_read_tree): Same.
11687 (lto_input_scc): Same.
11688 (lto_input_tree_1): Same.
11689 (lto_input_toplevel_asms): Same.
11690 (lto_input_mode_table): Same.
11691 (lto_reader_init): Same.
11692 (lto_data_in_create): Same.
11693 * lto-streamer-out.c (output_cfg): Same.
11694 * lto-streamer.h: Same.
11695 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11696 (generate_prolog_epilog): Same.
11697 (mark_loop_unsched): Same.
11698 (dump_insn_location): Same.
11699 (loop_canon_p): Same.
11700 (sms_schedule): Same.
11701 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11702 (expand_omp_for_generic): Same.
11703 (expand_omp_for_static_nochunk): Same.
11704 (expand_omp_for_static_chunk): Same.
11705 (expand_omp_simd): Same.
11706 (expand_omp_taskloop_for_inner): Same.
11707 (expand_oacc_for): Same.
11708 (expand_omp_atomic_pipeline): Same.
11709 (mark_loops_in_oacc_kernels_region): Same.
11710 * omp-offload.c (oacc_xform_loop): Same.
11711 * omp-simd-clone.c (simd_clone_adjust): Same.
11712 * optabs-query.c (get_traditional_extraction_insn): Same.
11713 * optabs.c (expand_vector_broadcast): Same.
11714 (expand_binop_directly): Same.
11715 (expand_twoval_unop): Same.
11716 (expand_twoval_binop): Same.
11717 (expand_unop_direct): Same.
11718 (emit_indirect_jump): Same.
11719 (emit_conditional_move): Same.
11720 (emit_conditional_neg_or_complement): Same.
11721 (emit_conditional_add): Same.
11722 (vector_compare_rtx): Same.
11723 (expand_vec_perm_1): Same.
11724 (expand_vec_perm_const): Same.
11725 (expand_vec_cond_expr): Same.
11726 (expand_vec_series_expr): Same.
11727 (maybe_emit_atomic_exchange): Same.
11728 (maybe_emit_sync_lock_test_and_set): Same.
11729 (expand_atomic_compare_and_swap): Same.
11730 (expand_atomic_load): Same.
11731 (expand_atomic_store): Same.
11732 (maybe_emit_op): Same.
11733 (valid_multiword_target_p): Same.
11734 (create_integer_operand): Same.
11735 (maybe_legitimize_operand_same_code): Same.
11736 (maybe_legitimize_operand): Same.
11737 (create_convert_operand_from_type): Same.
11738 (can_reuse_operands_p): Same.
11739 (maybe_legitimize_operands): Same.
11740 (maybe_gen_insn): Same.
11741 (maybe_expand_insn): Same.
11742 (maybe_expand_jump_insn): Same.
11743 (expand_insn): Same.
11744 * optabs.h (create_expand_operand): Same.
11745 (create_fixed_operand): Same.
11746 (create_output_operand): Same.
11747 (create_input_operand): Same.
11748 (create_convert_operand_to): Same.
11749 (create_convert_operand_from): Same.
11750 * optinfo.h: Same.
11751 * poly-int.h: Same.
11752 * predict.c (optimize_insn_for_speed_p): Same.
11753 (optimize_loop_for_size_p): Same.
11754 (optimize_loop_for_speed_p): Same.
11755 (optimize_loop_nest_for_speed_p): Same.
11756 (get_base_value): Same.
11757 (predicted_by_loop_heuristics_p): Same.
11758 (predict_extra_loop_exits): Same.
11759 (predict_loops): Same.
11760 (predict_paths_for_bb): Same.
11761 (predict_paths_leading_to): Same.
11762 (propagate_freq): Same.
11763 (pass_profile::execute): Same.
11764 * predict.h: Same.
11765 * profile-count.c (profile_count::differs_from_p): Same.
11766 (profile_probability::differs_lot_from_p): Same.
11767 * profile-count.h: Same.
11768 * profile.c (branch_prob): Same.
11769 * regrename.c (free_chain_data): Same.
11770 (mark_conflict): Same.
11771 (create_new_chain): Same.
11772 (merge_overlapping_regs): Same.
11773 (init_rename_info): Same.
11774 (merge_chains): Same.
11775 (regrename_analyze): Same.
11776 (regrename_do_replace): Same.
11777 (scan_rtx_reg): Same.
11778 (record_out_operands): Same.
11779 (build_def_use): Same.
11780 * regrename.h: Same.
11781 * reload.h: Same.
11782 * reload1.c (init_reload): Same.
11783 (maybe_fix_stack_asms): Same.
11784 (copy_reloads): Same.
11785 (count_pseudo): Same.
11786 (count_spilled_pseudo): Same.
11787 (find_reg): Same.
11788 (find_reload_regs): Same.
11789 (select_reload_regs): Same.
11790 (spill_hard_reg): Same.
11791 (fixup_eh_region_note): Same.
11792 (set_reload_reg): Same.
11793 (allocate_reload_reg): Same.
11794 (compute_reload_subreg_offset): Same.
11795 (reload_adjust_reg_for_icode): Same.
11796 (emit_input_reload_insns): Same.
11797 (emit_output_reload_insns): Same.
11798 (do_input_reload): Same.
11799 (inherit_piecemeal_p): Same.
11800 * rtl.h: Same.
11801 * sanopt.c (maybe_get_dominating_check): Same.
11802 (maybe_optimize_ubsan_ptr_ifn): Same.
11803 (can_remove_asan_check): Same.
11804 (maybe_optimize_asan_check_ifn): Same.
11805 (sanopt_optimize_walker): Same.
11806 * sched-deps.c (add_dependence_list): Same.
11807 (chain_to_prev_insn): Same.
11808 (add_insn_mem_dependence): Same.
11809 (create_insn_reg_set): Same.
11810 (maybe_extend_reg_info_p): Same.
11811 (sched_analyze_reg): Same.
11812 (sched_analyze_1): Same.
11813 (get_implicit_reg_pending_clobbers): Same.
11814 (chain_to_prev_insn_p): Same.
11815 (deps_analyze_insn): Same.
11816 (deps_start_bb): Same.
11817 (sched_free_deps): Same.
11818 (init_deps): Same.
11819 (init_deps_reg_last): Same.
11820 (free_deps): Same.
11821 * sched-ebb.c: Same.
11822 * sched-int.h: Same.
11823 * sched-rgn.c (add_branch_dependences): Same.
11824 (concat_insn_mem_list): Same.
11825 (deps_join): Same.
11826 (sched_rgn_compute_dependencies): Same.
11827 * sel-sched-ir.c (reset_target_context): Same.
11828 (copy_deps_context): Same.
11829 (init_id_from_df): Same.
11830 (has_dependence_p): Same.
11831 (change_loops_latches): Same.
11832 (bb_top_order_comparator): Same.
11833 (make_region_from_loop_preheader): Same.
11834 (sel_init_pipelining): Same.
11835 (get_loop_nest_for_rgn): Same.
11836 (make_regions_from_the_rest): Same.
11837 (sel_is_loop_preheader_p): Same.
11838 * sel-sched-ir.h (inner_loop_header_p): Same.
11839 (get_all_loop_exits): Same.
11840 * selftest.h: Same.
11841 * sese.c (sese_build_liveouts): Same.
11842 (sese_insert_phis_for_liveouts): Same.
11843 * sese.h (defined_in_sese_p): Same.
11844 * sreal.c (sreal::stream_out): Same.
11845 * sreal.h: Same.
11846 * streamer-hooks.h: Same.
11847 * target-globals.c (save_target_globals): Same.
11848 * target-globals.h: Same.
11849 * target.def: Same.
11850 * target.h: Same.
11851 * targhooks.c (default_has_ifunc_p): Same.
11852 (default_empty_mask_is_expensive): Same.
11853 (default_init_cost): Same.
11854 * targhooks.h: Same.
11855 * toplev.c: Same.
11856 * tree-affine.c (aff_combination_mult): Same.
11857 (aff_combination_expand): Same.
11858 (aff_combination_constant_multiple_p): Same.
11859 * tree-affine.h: Same.
11860 * tree-cfg.c (build_gimple_cfg): Same.
11861 (replace_loop_annotate_in_block): Same.
11862 (replace_uses_by): Same.
11863 (remove_bb): Same.
11864 (dump_cfg_stats): Same.
11865 (gimple_duplicate_sese_region): Same.
11866 (gimple_duplicate_sese_tail): Same.
11867 (move_block_to_fn): Same.
11868 (replace_block_vars_by_duplicates): Same.
11869 (move_sese_region_to_fn): Same.
11870 (print_loops_bb): Same.
11871 (print_loop): Same.
11872 (print_loops): Same.
11873 (debug): Same.
11874 (debug_loops): Same.
11875 * tree-cfg.h: Same.
11876 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11877 (chrec_fold_multiply_poly_poly): Same.
11878 (chrec_evaluate): Same.
11879 (chrec_component_in_loop_num): Same.
11880 (reset_evolution_in_loop): Same.
11881 (is_multivariate_chrec): Same.
11882 (chrec_contains_symbols): Same.
11883 (nb_vars_in_chrec): Same.
11884 (chrec_convert_1): Same.
11885 (chrec_convert_aggressive): Same.
11886 * tree-chrec.h: Same.
11887 * tree-core.h: Same.
11888 * tree-data-ref.c (dump_data_dependence_relation): Same.
11889 (canonicalize_base_object_address): Same.
11890 (data_ref_compare_tree): Same.
11891 (prune_runtime_alias_test_list): Same.
11892 (get_segment_min_max): Same.
11893 (create_intersect_range_checks): Same.
11894 (conflict_fn_no_dependence): Same.
11895 (object_address_invariant_in_loop_p): Same.
11896 (analyze_ziv_subscript): Same.
11897 (analyze_siv_subscript_cst_affine): Same.
11898 (analyze_miv_subscript): Same.
11899 (analyze_overlapping_iterations): Same.
11900 (build_classic_dist_vector_1): Same.
11901 (add_other_self_distances): Same.
11902 (same_access_functions): Same.
11903 (build_classic_dir_vector): Same.
11904 (subscript_dependence_tester_1): Same.
11905 (subscript_dependence_tester): Same.
11906 (access_functions_are_affine_or_constant_p): Same.
11907 (get_references_in_stmt): Same.
11908 (loop_nest_has_data_refs): Same.
11909 (graphite_find_data_references_in_stmt): Same.
11910 (find_data_references_in_bb): Same.
11911 (get_base_for_alignment): Same.
11912 (find_loop_nest_1): Same.
11913 (find_loop_nest): Same.
11914 * tree-data-ref.h (dr_alignment): Same.
11915 (ddr_dependence_level): Same.
11916 * tree-if-conv.c (fold_build_cond_expr): Same.
11917 (add_to_predicate_list): Same.
11918 (add_to_dst_predicate_list): Same.
11919 (phi_convertible_by_degenerating_args): Same.
11920 (idx_within_array_bound): Same.
11921 (all_preds_critical_p): Same.
11922 (pred_blocks_visited_p): Same.
11923 (predicate_bbs): Same.
11924 (build_region): Same.
11925 (if_convertible_loop_p_1): Same.
11926 (is_cond_scalar_reduction): Same.
11927 (predicate_scalar_phi): Same.
11928 (remove_conditions_and_labels): Same.
11929 (combine_blocks): Same.
11930 (version_loop_for_if_conversion): Same.
11931 (versionable_outer_loop_p): Same.
11932 (ifcvt_local_dce): Same.
11933 (tree_if_conversion): Same.
11934 (pass_if_conversion::gate): Same.
11935 * tree-if-conv.h: Same.
11936 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11937 * tree-loop-distribution.c (bb_top_order_cmp): Same.
11938 (free_rdg): Same.
11939 (stmt_has_scalar_dependences_outside_loop): Same.
11940 (copy_loop_before): Same.
11941 (create_bb_after_loop): Same.
11942 (const_with_all_bytes_same): Same.
11943 (generate_memset_builtin): Same.
11944 (generate_memcpy_builtin): Same.
11945 (destroy_loop): Same.
11946 (build_rdg_partition_for_vertex): Same.
11947 (compute_access_range): Same.
11948 (data_ref_segment_size): Same.
11949 (latch_dominated_by_data_ref): Same.
11950 (compute_alias_check_pairs): Same.
11951 (fuse_memset_builtins): Same.
11952 (finalize_partitions): Same.
11953 (find_seed_stmts_for_distribution): Same.
11954 (prepare_perfect_loop_nest): Same.
11955 * tree-parloops.c (lambda_transform_legal_p): Same.
11956 (loop_parallel_p): Same.
11957 (reduc_stmt_res): Same.
11958 (add_field_for_name): Same.
11959 (create_call_for_reduction_1): Same.
11960 (replace_uses_in_bb_by): Same.
11961 (transform_to_exit_first_loop_alt): Same.
11962 (try_transform_to_exit_first_loop_alt): Same.
11963 (transform_to_exit_first_loop): Same.
11964 (num_phis): Same.
11965 (gen_parallel_loop): Same.
11966 (gather_scalar_reductions): Same.
11967 (get_omp_data_i_param): Same.
11968 (try_create_reduction_list): Same.
11969 (oacc_entry_exit_single_gang): Same.
11970 (parallelize_loops): Same.
11971 * tree-pass.h: Same.
11972 * tree-predcom.c (determine_offset): Same.
11973 (last_always_executed_block): Same.
11974 (split_data_refs_to_components): Same.
11975 (suitable_component_p): Same.
11976 (valid_initializer_p): Same.
11977 (find_looparound_phi): Same.
11978 (insert_looparound_copy): Same.
11979 (add_looparound_copies): Same.
11980 (determine_roots_comp): Same.
11981 (predcom_tmp_var): Same.
11982 (initialize_root_vars): Same.
11983 (initialize_root_vars_store_elim_1): Same.
11984 (initialize_root_vars_store_elim_2): Same.
11985 (finalize_eliminated_stores): Same.
11986 (initialize_root_vars_lm): Same.
11987 (remove_stmt): Same.
11988 (determine_unroll_factor): Same.
11989 (execute_pred_commoning_cbck): Same.
11990 (base_names_in_chain_on): Same.
11991 (combine_chains): Same.
11992 (pcom_stmt_dominates_stmt_p): Same.
11993 (try_combine_chains): Same.
11994 (prepare_initializers_chain_store_elim): Same.
11995 (prepare_initializers_chain): Same.
11996 (prepare_initializers): Same.
11997 (prepare_finalizers_chain): Same.
11998 (prepare_finalizers): Same.
11999 (insert_init_seqs): Same.
12000 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12001 (compute_overall_effect_of_inner_loop): Same.
12002 (add_to_evolution_1): Same.
12003 (add_to_evolution): Same.
12004 (follow_ssa_edge_binary): Same.
12005 (follow_ssa_edge_expr): Same.
12006 (backedge_phi_arg_p): Same.
12007 (follow_ssa_edge_in_condition_phi_branch): Same.
12008 (follow_ssa_edge_in_condition_phi): Same.
12009 (follow_ssa_edge_inner_loop_phi): Same.
12010 (follow_ssa_edge): Same.
12011 (analyze_evolution_in_loop): Same.
12012 (analyze_initial_condition): Same.
12013 (interpret_loop_phi): Same.
12014 (interpret_condition_phi): Same.
12015 (interpret_rhs_expr): Same.
12016 (interpret_expr): Same.
12017 (interpret_gimple_assign): Same.
12018 (analyze_scalar_evolution_1): Same.
12019 (analyze_scalar_evolution): Same.
12020 (analyze_scalar_evolution_for_address_of): Same.
12021 (get_instantiated_value_entry): Same.
12022 (loop_closed_phi_def): Same.
12023 (instantiate_scev_name): Same.
12024 (instantiate_scev_poly): Same.
12025 (instantiate_scev_binary): Same.
12026 (instantiate_scev_convert): Same.
12027 (instantiate_scev_not): Same.
12028 (instantiate_scev_r): Same.
12029 (instantiate_scev): Same.
12030 (resolve_mixers): Same.
12031 (initialize_scalar_evolutions_analyzer): Same.
12032 (scev_reset_htab): Same.
12033 (scev_reset): Same.
12034 (derive_simple_iv_with_niters): Same.
12035 (simple_iv_with_niters): Same.
12036 (expression_expensive_p): Same.
12037 (final_value_replacement_loop): Same.
12038 * tree-scalar-evolution.h (block_before_loop): Same.
12039 * tree-ssa-address.h: Same.
12040 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12041 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12042 (record_edge_info): Same.
12043 * tree-ssa-live.c (var_map_base_fini): Same.
12044 (remove_unused_locals): Same.
12045 * tree-ssa-live.h: Same.
12046 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12047 (pass_ch_vect::execute): Same.
12048 (pass_ch::process_loop_p): Same.
12049 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12050 (movement_possibility): Same.
12051 (outermost_invariant_loop): Same.
12052 (stmt_cost): Same.
12053 (determine_max_movement): Same.
12054 (invariantness_dom_walker::before_dom_children): Same.
12055 (move_computations): Same.
12056 (may_move_till): Same.
12057 (force_move_till_op): Same.
12058 (force_move_till): Same.
12059 (memref_free): Same.
12060 (record_mem_ref_loc): Same.
12061 (set_ref_stored_in_loop): Same.
12062 (mark_ref_stored): Same.
12063 (sort_bbs_in_loop_postorder_cmp): Same.
12064 (sort_locs_in_loop_postorder_cmp): Same.
12065 (analyze_memory_references): Same.
12066 (mem_refs_may_alias_p): Same.
12067 (find_ref_loc_in_loop_cmp): Same.
12068 (rewrite_mem_ref_loc::operator): Same.
12069 (first_mem_ref_loc_1::operator): Same.
12070 (sm_set_flag_if_changed::operator): Same.
12071 (execute_sm_if_changed_flag_set): Same.
12072 (execute_sm): Same.
12073 (hoist_memory_references): Same.
12074 (ref_always_accessed::operator): Same.
12075 (refs_independent_p): Same.
12076 (record_dep_loop): Same.
12077 (ref_indep_loop_p_1): Same.
12078 (ref_indep_loop_p): Same.
12079 (can_sm_ref_p): Same.
12080 (find_refs_for_sm): Same.
12081 (loop_suitable_for_sm): Same.
12082 (store_motion_loop): Same.
12083 (store_motion): Same.
12084 (fill_always_executed_in): Same.
12085 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12086 (estimated_unrolled_size): Same.
12087 (loop_edge_to_cancel): Same.
12088 (remove_exits_and_undefined_stmts): Same.
12089 (remove_redundant_iv_tests): Same.
12090 (unloop_loops): Same.
12091 (estimated_peeled_sequence_size): Same.
12092 (try_peel_loop): Same.
12093 (canonicalize_loop_induction_variables): Same.
12094 (canonicalize_induction_variables): Same.
12095 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12096 (name_info): Same.
12097 (stmt_after_inc_pos): Same.
12098 (contains_abnormal_ssa_name_p): Same.
12099 (niter_for_exit): Same.
12100 (find_bivs): Same.
12101 (mark_bivs): Same.
12102 (find_givs_in_bb): Same.
12103 (find_induction_variables): Same.
12104 (find_interesting_uses_cond): Same.
12105 (outermost_invariant_loop_for_expr): Same.
12106 (idx_find_step): Same.
12107 (add_candidate_1): Same.
12108 (add_iv_candidate_derived_from_uses): Same.
12109 (alloc_use_cost_map): Same.
12110 (prepare_decl_rtl): Same.
12111 (generic_predict_doloop_p): Same.
12112 (computation_cost): Same.
12113 (determine_common_wider_type): Same.
12114 (get_computation_aff_1): Same.
12115 (get_use_type): Same.
12116 (determine_group_iv_cost_address): Same.
12117 (iv_period): Same.
12118 (difference_cannot_overflow_p): Same.
12119 (may_eliminate_iv): Same.
12120 (determine_set_costs): Same.
12121 (cheaper_cost_pair): Same.
12122 (compare_cost_pair): Same.
12123 (iv_ca_cand_for_group): Same.
12124 (iv_ca_recount_cost): Same.
12125 (iv_ca_set_remove_invs): Same.
12126 (iv_ca_set_no_cp): Same.
12127 (iv_ca_set_add_invs): Same.
12128 (iv_ca_set_cp): Same.
12129 (iv_ca_add_group): Same.
12130 (iv_ca_cost): Same.
12131 (iv_ca_compare_deps): Same.
12132 (iv_ca_delta_reverse): Same.
12133 (iv_ca_delta_commit): Same.
12134 (iv_ca_cand_used_p): Same.
12135 (iv_ca_delta_free): Same.
12136 (iv_ca_new): Same.
12137 (iv_ca_free): Same.
12138 (iv_ca_dump): Same.
12139 (iv_ca_extend): Same.
12140 (iv_ca_narrow): Same.
12141 (iv_ca_prune): Same.
12142 (cheaper_cost_with_cand): Same.
12143 (iv_ca_replace): Same.
12144 (try_add_cand_for): Same.
12145 (get_initial_solution): Same.
12146 (try_improve_iv_set): Same.
12147 (find_optimal_iv_set_1): Same.
12148 (create_new_iv): Same.
12149 (rewrite_use_compare): Same.
12150 (remove_unused_ivs): Same.
12151 (determine_scaling_factor): Same.
12152 * tree-ssa-loop-ivopts.h: Same.
12153 * tree-ssa-loop-manip.c (create_iv): Same.
12154 (compute_live_loop_exits): Same.
12155 (add_exit_phi): Same.
12156 (add_exit_phis): Same.
12157 (find_uses_to_rename_use): Same.
12158 (find_uses_to_rename_def): Same.
12159 (find_uses_to_rename_in_loop): Same.
12160 (rewrite_into_loop_closed_ssa): Same.
12161 (check_loop_closed_ssa_bb): Same.
12162 (split_loop_exit_edge): Same.
12163 (ip_end_pos): Same.
12164 (ip_normal_pos): Same.
12165 (copy_phi_node_args): Same.
12166 (gimple_duplicate_loop_to_header_edge): Same.
12167 (can_unroll_loop_p): Same.
12168 (determine_exit_conditions): Same.
12169 (scale_dominated_blocks_in_loop): Same.
12170 (niter_for_unrolled_loop): Same.
12171 (tree_transform_and_unroll_loop): Same.
12172 (rewrite_all_phi_nodes_with_iv): Same.
12173 * tree-ssa-loop-manip.h: Same.
12174 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12175 (number_of_iterations_ne): Same.
12176 (assert_no_overflow_lt): Same.
12177 (assert_loop_rolls_lt): Same.
12178 (number_of_iterations_lt): Same.
12179 (adjust_cond_for_loop_until_wrap): Same.
12180 (tree_simplify_using_condition): Same.
12181 (simplify_using_initial_conditions): Same.
12182 (simplify_using_outer_evolutions): Same.
12183 (loop_only_exit_p): Same.
12184 (ssa_defined_by_minus_one_stmt_p): Same.
12185 (number_of_iterations_popcount): Same.
12186 (number_of_iterations_exit): Same.
12187 (find_loop_niter): Same.
12188 (finite_loop_p): Same.
12189 (chain_of_csts_start): Same.
12190 (get_val_for): Same.
12191 (loop_niter_by_eval): Same.
12192 (derive_constant_upper_bound_ops): Same.
12193 (do_warn_aggressive_loop_optimizations): Same.
12194 (record_estimate): Same.
12195 (get_cst_init_from_scev): Same.
12196 (record_nonwrapping_iv): Same.
12197 (idx_infer_loop_bounds): Same.
12198 (infer_loop_bounds_from_ref): Same.
12199 (infer_loop_bounds_from_array): Same.
12200 (infer_loop_bounds_from_pointer_arith): Same.
12201 (infer_loop_bounds_from_signedness): Same.
12202 (bound_index): Same.
12203 (discover_iteration_bound_by_body_walk): Same.
12204 (maybe_lower_iteration_bound): Same.
12205 (estimate_numbers_of_iterations): Same.
12206 (estimated_loop_iterations): Same.
12207 (estimated_loop_iterations_int): Same.
12208 (max_loop_iterations): Same.
12209 (max_loop_iterations_int): Same.
12210 (likely_max_loop_iterations): Same.
12211 (likely_max_loop_iterations_int): Same.
12212 (estimated_stmt_executions_int): Same.
12213 (max_stmt_executions): Same.
12214 (likely_max_stmt_executions): Same.
12215 (estimated_stmt_executions): Same.
12216 (stmt_dominates_stmt_p): Same.
12217 (nowrap_type_p): Same.
12218 (loop_exits_before_overflow): Same.
12219 (scev_var_range_cant_overflow): Same.
12220 (scev_probably_wraps_p): Same.
12221 (free_numbers_of_iterations_estimates): Same.
12222 * tree-ssa-loop-niter.h: Same.
12223 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12224 (idx_analyze_ref): Same.
12225 (analyze_ref): Same.
12226 (gather_memory_references_ref): Same.
12227 (mark_nontemporal_store): Same.
12228 (emit_mfence_after_loop): Same.
12229 (may_use_storent_in_loop_p): Same.
12230 (mark_nontemporal_stores): Same.
12231 (should_unroll_loop_p): Same.
12232 (volume_of_dist_vector): Same.
12233 (add_subscript_strides): Same.
12234 (self_reuse_distance): Same.
12235 (insn_to_prefetch_ratio_too_small_p): Same.
12236 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12237 (patch_loop_exit): Same.
12238 (find_or_create_guard_phi): Same.
12239 (easy_exit_values): Same.
12240 (connect_loop_phis): Same.
12241 (connect_loops): Same.
12242 (compute_new_first_bound): Same.
12243 (split_loop): Same.
12244 (tree_ssa_split_loops): Same.
12245 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12246 (is_maybe_undefined): Same.
12247 (tree_may_unswitch_on): Same.
12248 (simplify_using_entry_checks): Same.
12249 (tree_unswitch_single_loop): Same.
12250 (tree_unswitch_loop): Same.
12251 (tree_unswitch_outer_loop): Same.
12252 (empty_bb_without_guard_p): Same.
12253 (used_outside_loop_p): Same.
12254 (get_vop_from_header): Same.
12255 (hoist_guard): Same.
12256 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12257 (get_lsm_tmp_name): Same.
12258 * tree-ssa-loop.h: Same.
12259 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12260 (build_and_add_sum): Same.
12261 (no_side_effect_bb): Same.
12262 (get_ops): Same.
12263 (linearize_expr): Same.
12264 (should_break_up_subtract): Same.
12265 (linearize_expr_tree): Same.
12266 * tree-ssa-scopedtables.c: Same.
12267 * tree-ssa-scopedtables.h: Same.
12268 * tree-ssa-structalias.c (condense_visit): Same.
12269 (label_visit): Same.
12270 (dump_pred_graph): Same.
12271 (perform_var_substitution): Same.
12272 (move_complex_constraints): Same.
12273 (remove_preds_and_fake_succs): Same.
12274 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12275 (determine_bb_domination_status): Same.
12276 (duplicate_thread_path): Same.
12277 (thread_through_all_blocks): Same.
12278 * tree-ssa-threadupdate.h: Same.
12279 * tree-streamer-in.c (streamer_read_string_cst): Same.
12280 (input_identifier): Same.
12281 (unpack_ts_type_common_value_fields): Same.
12282 (unpack_ts_block_value_fields): Same.
12283 (unpack_ts_translation_unit_decl_value_fields): Same.
12284 (unpack_ts_omp_clause_value_fields): Same.
12285 (streamer_read_tree_bitfields): Same.
12286 (streamer_alloc_tree): Same.
12287 (lto_input_ts_common_tree_pointers): Same.
12288 (lto_input_ts_vector_tree_pointers): Same.
12289 (lto_input_ts_poly_tree_pointers): Same.
12290 (lto_input_ts_complex_tree_pointers): Same.
12291 (lto_input_ts_decl_minimal_tree_pointers): Same.
12292 (lto_input_ts_decl_common_tree_pointers): Same.
12293 (lto_input_ts_decl_non_common_tree_pointers): Same.
12294 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12295 (lto_input_ts_field_decl_tree_pointers): Same.
12296 (lto_input_ts_function_decl_tree_pointers): Same.
12297 (lto_input_ts_type_common_tree_pointers): Same.
12298 (lto_input_ts_type_non_common_tree_pointers): Same.
12299 (lto_input_ts_list_tree_pointers): Same.
12300 (lto_input_ts_vec_tree_pointers): Same.
12301 (lto_input_ts_exp_tree_pointers): Same.
12302 (lto_input_ts_block_tree_pointers): Same.
12303 (lto_input_ts_binfo_tree_pointers): Same.
12304 (lto_input_ts_constructor_tree_pointers): Same.
12305 (lto_input_ts_omp_clause_tree_pointers): Same.
12306 (streamer_read_tree_body): Same.
12307 * tree-streamer.h: Same.
12308 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12309 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12310 (vect_analyze_possibly_independent_ddr): Same.
12311 (vect_analyze_data_ref_dependence): Same.
12312 (vect_compute_data_ref_alignment): Same.
12313 (vect_enhance_data_refs_alignment): Same.
12314 (vect_analyze_data_ref_access): Same.
12315 (vect_check_gather_scatter): Same.
12316 (vect_find_stmt_data_reference): Same.
12317 (vect_create_addr_base_for_vector_ref): Same.
12318 (vect_setup_realignment): Same.
12319 (vect_supportable_dr_alignment): Same.
12320 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12321 (adjust_phi_and_debug_stmts): Same.
12322 (vect_set_loop_mask): Same.
12323 (add_preheader_seq): Same.
12324 (vect_maybe_permute_loop_masks): Same.
12325 (vect_set_loop_masks_directly): Same.
12326 (vect_set_loop_condition_masked): Same.
12327 (vect_set_loop_condition_unmasked): Same.
12328 (slpeel_duplicate_current_defs_from_edges): Same.
12329 (slpeel_add_loop_guard): Same.
12330 (slpeel_can_duplicate_loop_p): Same.
12331 (create_lcssa_for_virtual_phi): Same.
12332 (iv_phi_p): Same.
12333 (vect_update_ivs_after_vectorizer): Same.
12334 (vect_gen_vector_loop_niters_mult_vf): Same.
12335 (slpeel_update_phi_nodes_for_loops): Same.
12336 (slpeel_update_phi_nodes_for_guard1): Same.
12337 (find_guard_arg): Same.
12338 (slpeel_update_phi_nodes_for_guard2): Same.
12339 (slpeel_update_phi_nodes_for_lcssa): Same.
12340 (vect_do_peeling): Same.
12341 (vect_create_cond_for_alias_checks): Same.
12342 (vect_loop_versioning): Same.
12343 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12344 (vect_inner_phi_in_double_reduction_p): Same.
12345 (vect_analyze_scalar_cycles_1): Same.
12346 (vect_fixup_scalar_cycles_with_patterns): Same.
12347 (vect_get_loop_niters): Same.
12348 (bb_in_loop_p): Same.
12349 (vect_get_max_nscalars_per_iter): Same.
12350 (vect_verify_full_masking): Same.
12351 (vect_compute_single_scalar_iteration_cost): Same.
12352 (vect_analyze_loop_form_1): Same.
12353 (vect_analyze_loop_form): Same.
12354 (vect_active_double_reduction_p): Same.
12355 (vect_analyze_loop_operations): Same.
12356 (neutral_op_for_slp_reduction): Same.
12357 (vect_is_simple_reduction): Same.
12358 (vect_model_reduction_cost): Same.
12359 (get_initial_def_for_reduction): Same.
12360 (get_initial_defs_for_reduction): Same.
12361 (vect_create_epilog_for_reduction): Same.
12362 (vectorize_fold_left_reduction): Same.
12363 (vectorizable_reduction): Same.
12364 (vectorizable_induction): Same.
12365 (vectorizable_live_operation): Same.
12366 (loop_niters_no_overflow): Same.
12367 (vect_get_loop_mask): Same.
12368 (vect_transform_loop_stmt): Same.
12369 (vect_transform_loop): Same.
12370 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12371 (vect_determine_precisions): Same.
12372 (vect_pattern_recog_1): Same.
12373 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12374 * tree-vect-stmts.c (stmt_vectype): Same.
12375 (process_use): Same.
12376 (vect_init_vector_1): Same.
12377 (vect_truncate_gather_scatter_offset): Same.
12378 (get_group_load_store_type): Same.
12379 (vect_build_gather_load_calls): Same.
12380 (vect_get_strided_load_store_ops): Same.
12381 (vectorizable_simd_clone_call): Same.
12382 (vectorizable_store): Same.
12383 (permute_vec_elements): Same.
12384 (vectorizable_load): Same.
12385 (vect_transform_stmt): Same.
12386 (supportable_widening_operation): Same.
12387 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12388 (vec_info::free_stmt_vec_info): Same.
12389 (vect_free_loop_info_assumptions): Same.
12390 (vect_loop_vectorized_call): Same.
12391 (set_uid_loop_bbs): Same.
12392 (vectorize_loops): Same.
12393 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12394 * tree.c (add_tree_to_fld_list): Same.
12395 (fld_type_variant_equal_p): Same.
12396 (fld_decl_context): Same.
12397 (fld_incomplete_type_of): Same.
12398 (free_lang_data_in_binfo): Same.
12399 (need_assembler_name_p): Same.
12400 (find_decls_types_r): Same.
12401 (get_eh_types_for_runtime): Same.
12402 (find_decls_types_in_eh_region): Same.
12403 (find_decls_types_in_node): Same.
12404 (assign_assembler_name_if_needed): Same.
12405 * value-prof.c (stream_out_histogram_value): Same.
12406 * value-prof.h: Same.
12407 * var-tracking.c (use_narrower_mode): Same.
12408 (prepare_call_arguments): Same.
12409 (vt_expand_loc_callback): Same.
12410 (resolve_expansions_pending_recursion): Same.
12411 (vt_expand_loc): Same.
12412 * varasm.c (const_hash_1): Same.
12413 (compare_constant): Same.
12414 (tree_output_constant_def): Same.
12415 (simplify_subtraction): Same.
12416 (get_pool_constant): Same.
12417 (output_constant_pool_2): Same.
12418 (output_constant_pool_1): Same.
12419 (mark_constants_in_pattern): Same.
12420 (mark_constant_pool): Same.
12421 (get_section_anchor): Same.
12422 * vr-values.c (compare_range_with_value): Same.
12423 (vr_values::extract_range_from_phi_node): Same.
12424 * vr-values.h: Same.
12425 * web.c (unionfind_union): Same.
12426 * wide-int.h: Same.
12427
12428 2019-07-09 Martin Sebor <msebor@redhat.com>
12429
12430 PR c++/61339
12431 * align.h: Change class-key from class to struct and vice versa
12432 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12433 * alloc-pool.h: Same.
12434 * asan.c (shadow_mem_size): Same.
12435 * auto-profile.c: Same.
12436 * basic-block.h: Same.
12437 * bitmap.h: Same.
12438 * cfgexpand.c (set_rtl): Same.
12439 (expand_one_stack_var_at): Same.
12440 * cfghooks.h: Same.
12441 * cfgloop.h: Same.
12442 * cgraph.h: Same.
12443 * config/i386/i386.h: Same.
12444 * df-problems.c (df_print_bb_index): Same.
12445 * df-scan.c: Same.
12446 * df.h (df_single_use): Same.
12447 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12448 (layout::annotation_line_showed_range_p): Same.
12449 (get_printed_columns): Same.
12450 (correction::ensure_terminated): Same.
12451 (line_corrections::~line_corrections): Same.
12452 * dojump.h: Same.
12453 * dse.c: Same.
12454 * dump-context.h: Same.
12455 * dumpfile.h: Same.
12456 * dwarf2out.c: Same.
12457 * edit-context.c: Same.
12458 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12459 * flags.h: Same.
12460 * function.c (assign_stack_local): Same.
12461 * function.h: Same.
12462 * gcc.c: Same.
12463 * gcov.c (block_info::block_info): Same.
12464 * genattrtab.c: Same.
12465 * genextract.c: Same.
12466 * genmatch.c (comparison_code_p): Same.
12467 (id_base::id_base): Same.
12468 (decision_tree::print): Same.
12469 * genoutput.c: Same.
12470 * genpreds.c (write_one_predicate_function): Same.
12471 * genrecog.c (validate_pattern): Same.
12472 (find_operand_positions): Same.
12473 (optimize_subroutine_group): Same.
12474 (merge_pattern_transition::merge_pattern_transition): Same.
12475 (merge_pattern_info::merge_pattern_info): Same.
12476 (merge_state_result::merge_state_result): Same.
12477 (merge_into_state): Same.
12478 * gensupport.c: Same.
12479 * gensupport.h: Same.
12480 * ggc-common.c (init_ggc_heuristics): Same.
12481 * ggc-tests.c (test_union): Same.
12482 * gimple-loop-interchange.cc (dump_induction): Same.
12483 * gimple-loop-versioning.cc: Same.
12484 * gimple-match.h (gimple_match_cond::any_else): Same.
12485 * gimple-ssa-backprop.c: Same.
12486 * gimple-ssa-sprintf.c: Same.
12487 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12488 Same.
12489 (store_immediate_info::store_immediate_info): Same.
12490 (merged_store_group::apply_stores): Same.
12491 (get_location_for_stmts): Same.
12492 * gimple-ssa-strength-reduction.c: Same.
12493 * gimple-ssa-warn-alloca.c: Same.
12494 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12495 * godump.c (go_type_decl): Same.
12496 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12497 * hash-map.h: Same.
12498 * hash-set-tests.c (test_set_of_strings): Same.
12499 * hsa-brig.c: Same.
12500 * hsa-common.h: Same.
12501 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12502 * input.c (assert_loceq): Same.
12503 * input.h: Same.
12504 * ipa-cp.c: Same.
12505 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12506 * ipa-fnsummary.h: Same.
12507 * ipa-inline.h: Same.
12508 * ipa-prop.h: Same.
12509 * ipa-split.c (visit_bb): Same.
12510 * ira-int.h (minmax_set_iter_next): Same.
12511 * loop-invariant.c: Same.
12512 * loop-iv.c: Same.
12513 * lra-eliminations.c: Same.
12514 * lra-int.h: Same.
12515 * lra-lives.c (mark_regno_dead): Same.
12516 * lra-remat.c: Same.
12517 * lra-spills.c: Same.
12518 * lto-streamer.h: Same.
12519 * mem-stats.h: Same.
12520 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12521 * omp-low.c (omp_clause_aligned_alignment): Same.
12522 * optabs-query.h (get_vcond_eq_icode): Same.
12523 * optabs.h: Same.
12524 * opts.c (wrap_help): Same.
12525 * poly-int.h: Same.
12526 * predict.c (predict_paths_leading_to_edge): Same.
12527 * pretty-print.h: Same.
12528 * profile-count.h: Same.
12529 * read-md.h: Same.
12530 * read-rtl-function.c: Same.
12531 * ree.c: Same.
12532 * reginfo.c: Same.
12533 * regrename.c: Same.
12534 * regrename.h: Same.
12535 * reload.h: Same.
12536 * rtl-iter.h: Same.
12537 * rtl.h (costs_add_n_insns): Same.
12538 * sanopt.c: Same.
12539 * sched-int.h: Same.
12540 * sel-sched-ir.h: Same.
12541 * selftest.h: Same.
12542 * sese.h (vec_find): Same.
12543 * stmt.c: Same.
12544 * target-globals.h: Same.
12545 * tree-affine.c (aff_combination_find_elt): Same.
12546 * tree-affine.h: Same.
12547 * tree-data-ref.h: Same.
12548 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12549 * tree-predcom.c: Same.
12550 * tree-scalar-evolution.c (find_var_scev_info): Same.
12551 * tree-ssa-alias.h: Same.
12552 * tree-ssa-ccp.c: Same.
12553 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12554 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12555 (rewrite_mem_refs): Same.
12556 (execute_sm_if_changed): Same.
12557 (hoist_memory_references): Same.
12558 * tree-ssa-loop-ivopts.c (operator<=): Same.
12559 * tree-ssa-loop.h: Same.
12560 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12561 * tree-ssa-structalias.c: Same.
12562 * tree-switch-conversion.h (cluster::cluster): Same.
12563 (simple_cluster::simple_cluster): Same.
12564 * tree-vect-patterns.c (type_conversion_p): Same.
12565 * tree-vectorizer.c (dump_stmt_cost): Same.
12566 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12567 * tree.c (protected_set_expr_location): Same.
12568 * tree.h (desired_pro_or_demotion_p): Same.
12569 (fndecl_built_in_p): Same.
12570 * unique-ptr-tests.cc: Same.
12571 * var-tracking.c (delete_variable_part): Same.
12572 * varasm.c (assemble_real): Same.
12573 (tree_output_constant_def): Same.
12574 * vec.c: Same.
12575 * wide-int-bitmask.h: Same.
12576 * wide-int.h (decompose): Same.
12577
12578 2019-07-09 Richard Biener <rguenther@suse.de>
12579
12580 PR tree-optimization/91114
12581 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12582 find a vector type isn't fatal.
12583
12584 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12585
12586 * config/aarch64/aarch64-simd.md
12587 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12588 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12589 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12590 (*aarch64_crypto_aese_fused,
12591 *aarch64_crypto_aesd_fused): Update to new definition.
12592 * config/aarch64/aarch64.c
12593 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12594
12595 2019-07-09 Richard Biener <rguenther@suse.de>
12596
12597 * gimple-match.h (gimple_match_op::resimplify): New.
12598 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12599 gimple_resimplify4, gimple_resimplify5): Remove.
12600 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12601 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12602 Make static.
12603 (gimple_match_op::resimplify): New.
12604 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12605 according to availability. Use gimple_match_op::resimplify.
12606
12607 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12608
12609 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12610
12611 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12612
12613 * config/arm/crypto.md:
12614 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12615 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12616 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12617 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12618 * config/arm/arm.c
12619 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12620 * config/arm/aarch-common-protos.h
12621 (aarch_crypto_can_dual_issue): Remove.
12622 * config/arm/aarch-common.c
12623 (aarch_crypto_can_dual_issue): Likewise.
12624 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12625 * config/arm/cortex-a53.md: Likewise.
12626 * config/arm/cortex-a57.md: Likewise.
12627 * config/arm/iterators.md:
12628 (CRYPTO_BINARY): Redefine.
12629 (CRYPTO_UNARY): Removed.
12630 (CRYPTO_AES, CRYPTO_AESMC): New.
12631
12632 2019-07-09 Richard Biener <rguenther@suse.de>
12633
12634 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12635 (vn_reference_lookup_3): If the main ref has no access path recorded
12636 but orig_ref has use it to do access-path based disambiguation.
12637 (vn_reference_lookup_pieces): Adjust.
12638 (vn_reference_lookup): Pass down original ref if we valueized.
12639
12640 2019-07-09 Martin Liska <mliska@suse.cz>
12641
12642 * doc/extend.texi: Document influence on loop
12643 optimizers.
12644
12645 2019-07-09 Martin Liska <mliska@suse.cz>
12646
12647 * lto-compress.c (lto_normalized_zstd_level): Do not use
12648 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12649 of libzstd. One can use 0 as a default compression level.
12650
12651 2019-07-09 Martin Liska <mliska@suse.cz>
12652
12653 * doc/invoke.texi: Add link from -fprofile-dir option.
12654 Use better wording for 'gcno filename'.
12655
12656 2019-07-08 Martin Sebor <msebor@redhat.com>
12657
12658 PR middle-end/71924
12659 PR middle-end/90549
12660 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12661 comment.
12662 (args_loc_t): New type.
12663 (args_loc_t, locmap_t): same.
12664 (diag_returned_locals): New function.
12665 (is_addr_local): Same.
12666 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12667 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12668 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12669
12670 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12671
12672 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12673 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12674 and casts in offset when different, both through gimple stmts
12675 and through trees. Rewritten using loops to minimize code duplication
12676 for each operand.
12677
12678 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12679
12680 * emit-rtl.c (set_insn_locations): New function moved from...
12681 * function.c (set_insn_locations): ...here.
12682 * ira-emit.c (emit_moves): Propagate location of the first instruction
12683 to the inserted move instructions.
12684 * reg-stack.c (compensate_edge): Set the location if the sequence is
12685 inserted on the edge.
12686 * rtl.h (set_insn_locations): Declare.
12687
12688 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12689
12690 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12691 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12692 .machine string.
12693
12694 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12695
12696 PR rtl-optimization/88233
12697 * common.opt (fsplit-wide-types-early): New option.
12698 * common/config/rs6000/rs6000-common.c
12699 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12700 OPT_LEVELS_ALL.
12701 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12702 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12703 flag_split_wide_types_early.
12704 (pass_data_lower_subreg3): New.
12705 (pass_lower_subreg3): New.
12706 (make_pass_lower_subreg3): New.
12707 * passes.def (pass_lower_subreg2): Move after the loop passes.
12708 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12709 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12710 the pass pipeline; its previous place is taken by ...
12711 (make_pass_lower_subreg3): ... this.
12712
12713 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12714
12715 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12716 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12717
12718 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12719
12720 * config/s390/constraints.md: Add new jsc constraint.
12721 * config/s390/predicates.md: New predicates.
12722 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12723 * config/s390/s390.c (s390_valid_shift_count): New function.
12724 (print_shift_count_operand): Use s390_valid_shift_count.
12725 (print_operand): Likewise.
12726 * config/s390/s390.md: Use new predicate.
12727 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12728 * config/s390/vector.md: Use new predicate.
12729
12730 2019-07-08 Andrew Waterman <andrew@sifive.com>
12731 Jim Wilson <jimw@sifive.com>
12732
12733 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12734 bitsize instead of BITS_PER_WORD.
12735
12736 2019-07-08 Martin Liska <mliska@suse.cz>
12737
12738 * collect2.c (defined): Revert to before r254460.
12739 (scan_prog_file): Revert to before r254460.
12740
12741 2019-07-08 Richard Biener <rguenther@suse.de>
12742
12743 PR tree-optimization/83518
12744 * tree-ssa-sccvn.c: Include splay-tree.h.
12745 (struct pd_range, struct pd_data): New.
12746 (struct vn_walk_cb_data): Add data to track partial definitions.
12747 (vn_walk_cb_data::~vn_walk_cb_data): New.
12748 (vn_walk_cb_data::push_partial_def): New.
12749 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12750 (vn_reference_lookup_2): When partial defs are registered give up.
12751 (vn_reference_lookup_3): Track partial defs for memset and
12752 constructor zeroing and for defs from constants.
12753
12754 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12755
12756 * doc/install.texi (bootstrap-Og): Document.
12757
12758 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12759
12760 * config/riscv/pic.md (*local_pic_load_s<mode>)
12761 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12762 referenced by <mode>, giving...
12763 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12764 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12765 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12766 use <X:MODE> for the mode attribute.
12767
12768 2019-07-07 Jeff Law <law@redhat.com>
12769
12770 PR tree-optimization/91090
12771 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12772 in handling of ranges to simplify switch statements.
12773
12774 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12775
12776 * config/darwin.c (darwin_override_options): Make a final check on PIC
12777 options.
12778
12779 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12780
12781 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12782 on for kernel code.
12783
12784 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12785
12786 PR target/91068
12787 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12788 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12789 instead of matching them to "l" output operands.
12790
12791 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12792
12793 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12794 and check whether addr.reg is nonnull before using it.
12795
12796 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12797
12798 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12799 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12800 variable(s). For conditional lastprivate look through outer
12801 GIMPLE_OMP_SCAN context.
12802 (lower_omp_1): For conditional lastprivate look through outer
12803 GIMPLE_OMP_SCAN context.
12804
12805 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12806 member to combined_into_simd_safelen1.
12807 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12808 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12809 clauses if ctx->combined_into_simd_safelen1 put statements after the
12810 predicate conditionalized block rather than into it.
12811
12812 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12813
12814 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12815 operand 1.
12816 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12817 Make the choice of <mode> explicit, giving...
12818 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12819
12820 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12821
12822 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12823 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12824 of .md attributes.
12825 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12826 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12827 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12828 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12829 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12830 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12831 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12832 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12833 (*avx512f_scatterdi<mode>): Likewise.
12834 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12835
12836 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12837
12838 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12839 specify the mode iterator referenced by <mode>, giving...
12840 (*push1_h8300hs_<QHI:mode>): ...this.
12841
12842 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12843
12844 * config/gcn/gcn-valu.md
12845 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12846 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12847 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12848 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12849 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12850 but using the _exec comparison patterns.
12851 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12852 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12853 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12854 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12855 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12856 but using the _exec comparison patterns.
12857
12858 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12859
12860 * config/arm/sync.md
12861 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12862 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12863 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12864 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12865 <SIDI:cas_cmp_str>.
12866
12867 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12868
12869 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12870 (maybe_lookup_ctx): Add forward declaration.
12871 (omp_find_scan): Likewise. Walk into body of simd if composited
12872 with worksharing loop.
12873 (scan_omp_simd_scan): New function.
12874 (scan_omp_1_stmt): Call it.
12875 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12876 ctx->for_simd_scan_phase.
12877 (lower_rec_input_clauses): Do much less work for inscan reductions
12878 in ctx->for_simd_scan_phase is_simd regions.
12879 (lower_omp_scan): Set is_simd also on simd constructs composited
12880 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
12881 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
12882 emit their body after in simd constructs composited with worksharing
12883 loop.
12884 (lower_omp_for_scan): Handle worksharing loop composited with simd.
12885
12886 * omp-low.c (omp_find_scan): Make static.
12887 (lower_omp_for_scan): Fix order of merge arguments in input phase of
12888 the second loop, var2 represents the first partial sum and so needs
12889 to go before rprivb[ivar].
12890
12891 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
12892
12893 * config/rs6000/rs6000-logue.c: Remove unused code.
12894
12895 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12896
12897 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12898
12899 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
12900
12901 PR target/90712
12902 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12903 check with a frame laid out check.
12904
12905 2019-07-05 Richard Biener <rguenther@suse.de>
12906
12907 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12908 when comparing against a store with possibly the same value.
12909
12910 2019-07-05 Richard Biener <rguenther@suse.de>
12911
12912 PR tree-optimization/91091
12913 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12914 (walk_non_aliased_vuses): Likewise.
12915 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12916 (get_continuation_for_phi): New tbaa_p parameter and pass
12917 it down.
12918 (walk_non_aliased_vuses): Likewise.
12919 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12920 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12921 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12922 Likewise.
12923 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12924 (adjust_offsets_for_equal_base_address): New function.
12925 (vn_reference_lookup_3): Use it to catch more base equivalences.
12926 Handle and pass down tbaa_p flag.
12927 (vn_reference_lookup_pieces): Adjust.
12928 (vn_reference_lookup): Remove alias-set altering, instead pass
12929 down false as tbaa_p.
12930
12931 2019-07-05 Richard Biener <rguenther@suse.de>
12932
12933 PR tree-optimization/91091
12934 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12935 accesses can happen with -fno-strict-aliasing.
12936
12937 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
12938
12939 * tree-ssa-alias.c (alias_stats): Add
12940 nonoverlapping_component_refs_since_match_p_must_overlap.
12941 (dump_alias_stats): Print it.
12942 (nonoverlapping_component_refs_since_match_p): Add early exit.
12943 (nonoverlapping_component_refs_p): Do not account early exit.
12944
12945 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12946
12947 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
12948 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
12949 (emit_eh_dispatch): Delete.
12950 (lower_catch): Emit the eh_dispatch manually and set the location of
12951 the first catch statement onto it.
12952 (lower_eh_filter): Emit the eh_dispatch manually and set location.
12953 (lower_eh_dispatch): Propagate location.
12954 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
12955 (eliminate_build): Likewise.
12956
12957 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12958
12959 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
12960 phi nodes if possible.
12961 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
12962 location info on the newly created statement.
12963 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
12964 newly created increment if needed.
12965
12966 2019-07-04 Jakub Jelinek <jakub@redhat.com>
12967
12968 PR middle-end/78884
12969 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
12970 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
12971 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
12972 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
12973 ctx->add_safelen1 is set.
12974
12975 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
12976 GOMP_loop_start at the start of second worksharing loop in a scan.
12977 For nowait, don't emit GOMP_loop_end_nowait at the end of first
12978 worksharing loop in a scan even if there are conditional lastprivates,
12979 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
12980
12981 2019-07-04 Jan Hubicka <jh@suse.cz>
12982
12983 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
12984 Fix check for match in the ref walk.
12985
12986 2019-07-04 Martin Liska <mliska@suse.cz>
12987
12988 * tree-ssa-loop-niter.c
12989 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
12990 (estimate_numbers_of_iterations):
12991 Support __builtin_expect_with_probability for analysis
12992 of # of loop iterations.
12993
12994 2019-07-04 Alexandre Oliva <oliva@adacore.com>
12995
12996 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
12997 * except.c: Likewise.
12998 * expr.c (expand_expr_real_1): Reject it.
12999 * gimplify.c (gimplify_expr): Gimplify it, within
13000 TRY_FINALLY_EXPR.
13001 * tree-dump.c (dequeue_and_dump): Dump it.
13002 * tree-pretty-print.c (dump_generic_node): Likewise.
13003 * tree.c (block_may_fallthru): Handle it.
13004 * tree.def (EH_ELSE_EXPR): Introduce it.
13005 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13006 with GIMPLE_EH_ELSE as try/finally/else.
13007
13008 2019-07-04 Richard Biener <rguenther@suse.de>
13009
13010 PR ipa/91062
13011 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13012 parameter whether to disable GC collection.
13013 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13014 honor it.
13015 (execute_all_ipa_transforms): Likewise and pass it down.
13016 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13017 collection from applying IPA transforms.
13018 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13019 from applying IPA transforms.
13020
13021 2019-07-04 Richard Biener <rguenther@suse.de>
13022
13023 PR tree-optimization/90911
13024 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13025 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13026 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13027 scalar_loop_scaling.
13028 (vect_transform_loop): Scale scalar loop profile if needed.
13029 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13030 the loop copy from if-conversion adjust edge probabilities
13031 and scale the vectorized loop body profile, queue the scalar
13032 profile for updating after peeling.
13033
13034 2019-07-04 Jan Hubicka <jh@suse.cz>
13035
13036 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13037 parameters; return early for must-alias.
13038 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13039 outer types match, try nonoverlapping_component_refs
13040 if must-alias is not obvious.
13041 (indirect_refs_may_alias_p): Likewise.
13042 (refs_may_alias_p_2): Likewise.
13043
13044 2019-07-04 Richard Biener <rguenther@suse.de>
13045
13046 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13047 argument.
13048 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13049 globals into...
13050 (struct vn_walk_cb_data): New callback data struct.
13051 (vn_reference_lookup_2): Adjust.
13052 (vn_reference_lookup_3): Likewise.
13053 (vn_reference_lookup_pieces): Likewise.
13054 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13055 (visit_reference_op_load): Adjust.
13056
13057 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13058
13059 PR tree-optimization/91063
13060 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13061 stmt from stmts sequence before calling vect_init_vector_1.
13062 Formatting fix.
13063
13064 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13065
13066 PR target/88833
13067 * fwprop.c (reg_single_def_p): New function.
13068 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13069 (forward_propagate_into): New parameter reg_prop_only
13070 with default value false.
13071 Propagate def's src into loop only if SET_SRC and SET_DEST
13072 of def_set have single definitions.
13073 Likewise if reg_prop_only is set to true.
13074 (fwprop): New param fwprop_addr_p.
13075 Integrate fwprop_addr into fwprop.
13076 (fwprop_addr): Remove.
13077 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13078 to true.
13079 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13080 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13081 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13082
13083 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13084
13085 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13086 in worksharing loop scans.
13087
13088 PR tree-optimization/91074
13089 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13090 temporary.
13091
13092 PR rtl-optimization/90756
13093 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13094 for VECTOR_TYPE_P.
13095
13096 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13097
13098 * config/aarch64/aarch64.md: Remove redundant constraints from
13099 define_expand but keep some patterns untouched if they are
13100 specially selected by TARGET_SECONDARY_RELOAD hook.
13101 * config/aarch64/aarch64-sve.md: Likewise.
13102 * config/aarch64/atomics.md: Remove redundant constraints from
13103 define_expand.
13104 * config/aarch64/aarch64-simd.md: Likewise.
13105
13106 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13107
13108 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13109 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13110 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13111 clauses.
13112 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13113 DARWIN_NOPIE_SPEC.
13114
13115 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13116
13117 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13118 (STARTFILE_SPEC): Split crt3 into a separate spec.
13119 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13120 (DARWIN_CRT2_SPEC): New.
13121 (DARWIN_CRT3_SPEC): New.
13122 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13123 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13124 (DARWIN_CRT3_SPEC): New.
13125
13126 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13127
13128 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13129 Change the RTL attribute "length" from "4" to "*" to allow the
13130 length attribute to be adjusted automatically for prefixed load,
13131 store, and add immediate instructions.
13132 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13133 Likewise.
13134 (extendsi<mode>2, EXTSI iterator): Likewise.
13135 (movsi_internal1): Likewise.
13136 (movsi_from_sf): Likewise.
13137 (movdi_from_sf_zero_ext): Likewise.
13138 (mov<mode>_internal): Likewise.
13139 (movcc_internal1, QHI iterator): Likewise.
13140 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13141 (movsf_from_si): Likewise.
13142 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13143 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13144 (mov<mode>, FMOVE128 iterator): Likewise.
13145 (movdi_internal64): Likewise.
13146 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13147 Likewise.
13148 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13149 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13150 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13151 (vsx_splat_v4sf): Likewise.
13152
13153 2019-07-03 Mark Wielaard <mark@klomp.org>
13154
13155 PR debug/90981
13156 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13157 DW_AT_addr_base if there is actually a .debug_addr section with
13158 addresses.
13159 (output_addr_table): Add DWARF5 table header generation here after
13160 checking there are actually any addresses from...
13161 (dwarf2out_finish): ...here.
13162
13163 2019-07-03 Richard Biener <rguenther@suse.de>
13164
13165 PR middle-end/91069
13166 * match.pd (vec_perm -> bit_insert): Fix element read from
13167 first vector.
13168
13169 2019-07-03 Martin Liska <mliska@suse.cz>
13170
13171 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13172 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13173 condition.
13174 * generic-match-head.c: Include dbgcnt.h.
13175 * gimple-match-head.c: Likewise.
13176
13177 2019-07-03 Martin Liska <mliska@suse.cz>
13178
13179 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13180 (GCOV_COUNTER_V_TOPN): New.
13181 (GCOV_COUNTER_V_INDIR): Use _topn.
13182 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13183 (GCOV_TOPN_VALUES): New.
13184 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13185 (GCOV_TOPN_VALUES_COUNTERS): New.
13186 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13187 * tree-profile.c:
13188 (gimple_init_gcov_profiler): Rename variables from one_value
13189 to topn_values.
13190 (gimple_gen_one_value_profiler): Remove.
13191 (gimple_gen_topn_values_profiler): New function.
13192 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13193 names instead of SINGLE_VALUE.
13194 (stream_out_histogram_value): Likewise.
13195 (stream_in_histogram_value): Likewise.
13196 (get_most_common_single_value): Likewise.
13197 (gimple_divmod_fixed_value_transform): Likewise.
13198 (gimple_stringops_transform): Likewise.
13199 (gimple_divmod_values_to_profile): Likewise.
13200 (gimple_stringops_values_to_profile): Likewise.
13201 (gimple_find_values_to_profile): Likewise.
13202 * value-prof.h (enum hist_type): Rename to TOPN.
13203 (gimple_gen_one_value_profiler): Remove.
13204 (gimple_gen_topn_values_profiler): New.
13205
13206 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13207
13208 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13209 if it has the DW_AT_data_member_location attribute.
13210
13211 2019-07-03 Richard Biener <rguenther@suse.de>
13212
13213 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13214 dumping.
13215
13216 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13217
13218 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13219 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13220 (tlsdesc_small_sve_<mode>): Likewise.
13221
13222 2019-07-03 Martin Liska <mliska@suse.cz>
13223
13224 * Makefile.in: Define ZSTD_LIB.
13225 * common.opt: Adjust compression level
13226 to support also zstd levels.
13227 * config.in: Regenerate.
13228 * configure: Likewise.
13229 * configure.ac: Add --with-zstd and --with-zstd-include options
13230 and detect ZSTD.
13231 * doc/install.texi: Mention zstd dependency.
13232 * gcc.c: Print supported LTO compression algorithms.
13233 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13234 (lto_compression_zstd): Likewise.
13235 (lto_uncompression_zstd): Likewise.
13236 (lto_end_compression): Dispatch in between zlib and zstd.
13237 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13238 (lto_uncompression_zlib): Make it static.
13239 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13240 * lto-section-in.c (lto_get_section_data): Pass info
13241 about used compression.
13242 * lto-streamer-out.c: By default use zstd when possible.
13243 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13244 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13245
13246 2019-07-03 Martin Liska <mliska@suse.cz>
13247
13248 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13249 * lto-section-out.c (lto_destroy_simple_output_block): Never
13250 compress LTO_section_lto section.
13251 * lto-streamer-out.c (produce_asm): Do not set major_version
13252 and minor_version.
13253 (lto_output_toplevel_asms): Likewise.
13254 (produce_lto_section): New function.
13255 (lto_output): Call produce_lto_section.
13256 (lto_write_mode_table): Do not set major_version and
13257 minor_version.
13258 (produce_asm_for_decls): Likewise.
13259 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13260 type.
13261 (struct lto_header): Remove.
13262 (struct lto_section): New struct.
13263 (struct lto_simple_header): Do not inherit from lto_header.
13264 (struct lto_file_decl_data): Add lto_section_header field.
13265
13266 2019-07-03 Martin Liska <mliska@suse.cz>
13267
13268 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13269 dead assignemts.
13270 * reg-stack.c (check_asm_stack_operands): Likewise.
13271 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13272 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13273 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13274 force_expand_binop.
13275
13276 2019-07-03 Martin Liska <mliska@suse.cz>
13277
13278 PR tree-optimization/90892
13279 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13280 in string constants.
13281
13282 2019-07-03 Martin Liska <mliska@suse.cz>
13283
13284 PR middle-end/90899
13285 * multiple_target.c (create_dispatcher_calls): Add to comdat
13286 group only if set for ifunc.
13287
13288 2019-07-03 Martin Liska <mliska@suse.cz>
13289
13290 PR target/88056
13291 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13292 Define local_object_name in outer scope in order to handle
13293 use-after-scope issue.
13294
13295 2019-07-03 Martin Liska <mliska@suse.cz>
13296
13297 * common.opt: Add fprofile-note.
13298 * coverage.c (coverage_init): Append the option
13299 to bbg_file_name.
13300 * doc/invoke.texi: Document -fprofile-note.
13301
13302 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13303
13304 PR tree-optimization/91033
13305 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13306 vect_analyze_data_refs): Add bool * arguments.
13307 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13308 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13309 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13310 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13311 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13312 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13313 vect_analyze_data_refs caller.
13314
13315 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13316 clause.
13317 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13318 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13319 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13320 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13321 OMP_CLAUSE__SCANTEMP_ entry.
13322 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13323 * tree-pretty-print.c (dump_omp_clause): Likewise.
13324 * tree-nested.c (convert_nonlocal_omp_clauses,
13325 convert_local_omp_clauses): Likewise.
13326 * omp-general.h (struct omp_for_data): Add have_scantemp and
13327 have_nonctrl_scantemp members.
13328 * omp-general.c (omp_extract_for_data): Initialize them.
13329 * omp-low.c (struct omp_context): Add scan_exclusive member.
13330 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13331 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13332 ctx->scan_exclusive.
13333 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13334 of !ctx->scan_inclusive.
13335 (lower_rec_input_clauses): Simplify gimplification of dtors using
13336 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13337 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13338 loops. Don't add barrier for reduction_omp_orig_ref if
13339 ctx->scan_??xclusive.
13340 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13341 (lower_omp_scan): Use ctx->scan_exclusive instead
13342 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13343 reductions. Use new_vard != new_var instead of repeated
13344 omp_is_reference calls.
13345 (omp_find_scan, lower_omp_for_scan): New functions.
13346 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13347 inscan reductions.
13348 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13349 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13350 and fd->have_scantemp.
13351
13352 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13353 on worksharing loop propagate it as shared clause to containing
13354 combined parallel.
13355
13356 * omp-expand.c (expand_omp_for_static_nochunk,
13357 expand_omp_for_static_chunk): For nowait worksharing loop with
13358 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13359 at the end.
13360
13361 2019-07-02 qing zhao <qing.zhao@oracle.com>
13362
13363 PR preprocessor/90581
13364 * doc/cppopts.texi: Add document for -fmax-include-depth.
13365 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13366
13367 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13368
13369 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13370 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13371 (mmx_packssdw): Ditto.
13372 (mmx_punpckhbw): Ditto.
13373 (mmx_punpcklbw): Ditto.
13374 (mmx_punpckhwd): Ditto.
13375 (mmx_punpcklwd): Ditto.
13376 (mmx_punpckhdq): Ditto.
13377 (mmx_punpckldq): Ditto.
13378 (*vec_dupv4hi): Ditto.
13379 (*vec_dupv2si): Ditto.
13380 (mmx_pmovmskb): Ditto.
13381 * config/i386/sse.md (sse_cvtpi2ps): Use
13382 TARGET_SSE2 && SSE_REG_P in split condition.
13383 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13384 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13385 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13386 (ssse3_pshufbv8qi3): Ditto.
13387 (ssse3_palignrdi): Ditto.
13388
13389 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13390
13391 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13392 with inlined save and restore.
13393
13394 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13395
13396 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13397 to be inserted on single successor edge of the entry block. Then call
13398 commit_edge_insertions instead of inserting the instructions manually.
13399 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13400 RTL expansion and rebuild jump labels chain.
13401
13402 2019-07-02 Richard Biener <rguenther@suse.de>
13403
13404 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13405 TI_CHREC_KNOWN.
13406 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13407 Define here.
13408 * tree.c (build_common_tree_nodes): Initialize them.
13409 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13410 Make declarations comments.
13411 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13412 chrec_known): Remove definitions.
13413 (initialize_scalar_evolutions_analyzer): Remove.
13414 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13415 * tree-streamer.c (preload_common_nodes): Do not preload
13416 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13417
13418 2019-07-02 Jan Hubicka <jh@suse.cz>
13419
13420 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13421 sanity check.
13422
13423 2019-07-02 Jan Hubicka <jh@suse.cz>
13424
13425 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13426 to ..
13427 (nonoverlapping_component_refs_since_match_p): ... this one;
13428 handle also non-decl bases; return -1 if search gave up.
13429 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13430 nonoverlapping_component_refs_of_decl_p_no_alias to
13431 nonoverlapping_component_refs_since_match_p_may_alias,
13432 nonoverlapping_component_refs_since_match_p_no_alias.
13433 (dump_alias_stats): Update dumping.
13434 (aliasing_matching_component_refs_p): Break out from ...;
13435 dispatch to nonoverlapping_component_refs_for_decl_p
13436 and nonoverlapping_component_refs_since_match_p.
13437 (aliasing_component_refs_p): ... here; call
13438 nonoverlapping_component_refs_p in scenarios where we can not
13439 precisely determine base match.
13440 (decl_refs_may_alias_p): Use
13441 nonoverlapping_component_refs_since_match_p.
13442 (indirect_ref_may_alias_decl_p): Do not call
13443 nonoverlapping_component_refs_p.
13444 (indirect_refs_may_alias_p): Likewise.
13445
13446 2019-07-02 Jan Hubicka <jh@suse.cz>
13447
13448 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13449 to clobber of return value.
13450
13451 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13452
13453 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13454 for is_neon_type instructions that have not already been categorized.
13455
13456 2019-07-02 Richard Biener <rguenther@suse.de>
13457
13458 PR tree-optimization/58483
13459 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13460 for MEM_REF base hashing.
13461 (equal_mem_array_ref_p): Likewise for base comparison.
13462
13463 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13464
13465 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13466 parameterized name.
13467 (signbit<mode>2): Use that name. Simplify.
13468
13469 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13470
13471 PR middle-end/66726
13472 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13473 Tune heuristic from PR71016 to allow MIN / MAX.
13474
13475 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13476
13477 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13478 parameterized name.
13479 (abs<mode>2): Use that name. Simplify.
13480
13481 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13482
13483 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13484 parameterized name.
13485 (neg<mode>2): Use that name. Simplify.
13486
13487 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13488
13489 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13490 name.
13491 (abs<mode>2): Use that name. Simplify.
13492
13493 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13494
13495 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13496 name.
13497 (neg<mode>2): Use that name. Simplify.
13498
13499 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13500
13501 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13502 ("enabled" attribute): Handle sse_noavx isa attribute.
13503 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13504 Use TARGET_SSE && SSE_REGNO_P in split condition.
13505 (*vec_dupv2sf): Ditto.
13506
13507 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13508
13509 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13510 name.
13511 (floatsi<mode>2): Use that name. Simplify.
13512
13513 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13514
13515 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13516 parameterized name.
13517 (extenddf<mode>2_vsx): Make this a parameterized name.
13518 (extenddf<mode>2): Use those names. Simplify.
13519
13520 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13521
13522 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13523 name.
13524 (eh_return): Use that name. Simplify.
13525
13526 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13527
13528 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13529 (doloop_end): Use that name. Simplify.
13530
13531 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13532
13533 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13534 parameterized name.
13535 (indirect_jump): Use that name. Simplify.
13536
13537 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13538
13539 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13540 parameterized name.
13541 (abs<mode>2): Use that name. Simplify.
13542
13543 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13544
13545 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13546 parameterized name.
13547 (fix_trunc<mode>si2): Use that name. Simplify.
13548
13549 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13550
13551 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13552 (allocate_stack): Use that name. Simplify.
13553
13554 2019-07-01 Martin Sebor <msebor@redhat.com>
13555
13556 PR middle-end/90923
13557 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13558 (hash_map::get_or_insert): Same. Reformat comment.
13559 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13560 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13561 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13562 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13563 (hash_table::hash_table (const hash_table&)): Use copy ctor
13564 instead of assignment to copy elements.
13565
13566 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13567 John David Anglin <danglin@gcc.gnu.org>
13568
13569 PR target/90963
13570 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13571 using saved frame pointer.
13572
13573 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13574
13575 PR middle-end/64242
13576 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13577 Add frame clobber and schedule blockage.
13578
13579 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13580
13581 * doc/invoke.texi (Link Options): Further editorial changes to
13582 -flinker-output docs.
13583
13584 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13585
13586 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13587 Load both operands of a PLUS into registers separately.
13588
13589 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13590
13591 * config/s390/vector.md: Fix shift count operand printing.
13592
13593 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13594
13595 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13596
13597 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13598
13599 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13600 Use recog_data to test for an output operand.
13601
13602 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13603
13604 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13605 exclude any others that are disparaged or that are bound to need
13606 a reload or spill.
13607 (ira_get_dup_out_num): Expand comment.
13608
13609 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13610
13611 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13612 constraint string for each operand/alternative combo. Only handle
13613 '%' at the start of constraint strings, and look for it outside
13614 the main loop.
13615
13616 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13617
13618 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13619 alternative_mask instead of HARD_REG_SET to represent a
13620 bitmask of alternatives.
13621 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13622 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13623
13624 2019-07-01 Martin Liska <mliska@suse.cz>
13625
13626 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13627 use () for a constructor call.
13628 (test_applying_fixits_line_out_of_range): Likewise.
13629 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13630 argument.
13631 (free_page): Likewise.
13632
13633 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13634
13635 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13636 parameter names to match usage (no functional change).
13637 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13638
13639 2019-07-01 Richard Biener <rguenther@suse.de>
13640
13641 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13642 pass parameter.
13643 (pass_fre::execute): Honor it.
13644 * passes.def: Adjust pass_fre invocations to allow iterating,
13645 add non-iterating pass_fre before late threading/dom.
13646
13647 2019-07-01 Richard Biener <rguenther@suse.de>
13648
13649 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13650 TARGET_MEM_REF handling to also handle address-taken ones.
13651
13652 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13653
13654 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13655 hardware attributes): Document avx512vp2intersect.
13656
13657 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13658
13659 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13660 (abs<mode>2): New expander.
13661 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13662 Use CODE_FOR_ssse3_absv8qi2.
13663 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13664 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13665
13666 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13667
13668 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13669 to sse, sse_noavx and avx. Update all uses.
13670
13671 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13672
13673 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13674 (*mmx_<plusminus_insn><mode>3): Ditto.
13675 (*mmx_mulv4hi3"): Ditto.
13676 (*mmx_smulv4hi3_highpart): Ditto.
13677 (*mmx_umulv4hi3_highpart): Ditto.
13678 (*mmx_pmaddwd): Ditto.
13679 (*sse2_umulv1siv1di3): Ditto.
13680 (*mmx_<code>v4hi3): Ditto.
13681 (*mmx_<code>v8qi3): Ditto.
13682 (mmx_ashr<mode>3): Ditto.
13683 ("mmx_<shift_insn><mode>3): Ditto.
13684 (*mmx_eq<mode>3): Ditto.
13685 (mmx_gt<mode>3): Ditto.
13686 (mmx_andnot<mode>3): Ditto.
13687 (*mmx_<code><mode>3): Ditto.
13688 (*mmx_pinsrw): Ditto.
13689 (*mmx_pextrw): Ditto.
13690 (mmx_pshufw_1): Ditto.
13691 (*mmx_uavgv8qi3): Ditto.
13692 (*mmx_uavgv4hi3): Ditto.
13693 ("mmx_psadbw): Ditto.
13694 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13695 (sse_cvttps2pi): Ditto.
13696 (ssse3_pmaddubsw): Ditto.
13697 (*ssse3_pmulhrswv4hi3): Ditto.
13698 (ssse3_psign<mode>3): Ditto.
13699
13700 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13701
13702 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13703 adjustment for bit-fields to all aggregate types.
13704
13705 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13706
13707 * config/rs6000/predicates.md (pcrel_address): Use
13708 SYMBOL_REF_LOCAL_P to determine if a label is local.
13709 (pcrel_external_address): New predicate.
13710 (non_prefixed_mem_operand): Delete, predicate not used.
13711 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13712 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13713 addressing.
13714 (SYMBOL_REF_PCREL_P): Likewise.
13715
13716 PR target/91009
13717 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13718 alternative.
13719 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13720 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13721 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13722
13723 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13724
13725 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13726 override on extra_headers.
13727
13728 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13729
13730 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13731 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13732 from warning.
13733 (darwin_driver_init): Likewise.
13734
13735 2019-06-28 Jan Beulich <jbeulich@suse.com>
13736
13737 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13738 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13739 Eliminate redundant alternative.
13740
13741 2019-06-28 Jan Beulich <jbeulich@suse.com>
13742
13743 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13744 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13745 Use vector_operand.
13746
13747 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13748
13749 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13750 having a lower cost regardless of the speed option.
13751
13752 2019-06-28 Jan Beulich <jbeulich@suse.com>
13753
13754 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13755 vector_operand plus, on both alternatives, "Bm" constraint.
13756
13757 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13758
13759 * config/arm/arm.md: Remove redundant constraints from
13760 define_expand but leave reload_inm and reload_outm patterns
13761 untouched since they need special constraints to work.
13762 * config/arm/arm-fixed.md: Remove redundant constraints from
13763 define_expand.
13764 * config/arm/iwmmxt.md: Likewise.
13765 * config/arm/neon.md: Likewise.
13766 * config/arm/sync.md: Likewise.
13767 * config/arm/thumb1.md: Likewise.
13768 * config/arm/vec-common.md: Likewise.
13769
13770 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13771
13772 * doc/install.texi: Document --disable-tm-clone-registry.
13773
13774 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13775
13776 PR c++/91024
13777 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13778 statements.
13779
13780 PR tree-optimization/91010
13781 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13782 return true. Otherwise, don't call operand_equal_p if offset1 or
13783 offset2 is NULL and just return false.
13784
13785 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13786
13787 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13788 user-specified float mode choice for kernel mode code.
13789
13790 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13791
13792 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13793 spec.
13794
13795 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13796
13797 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13798 use longcall for 64b code.
13799
13800 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13801
13802 * builtins.c (get_memory_rtx): Fix comment.
13803 * optabs.def (movmem_optab): Change to cpymem_optab.
13804 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13805 (emit_block_move_hints): Change movmem to cpymem.
13806 * defaults.h: Change movmem to cpymem.
13807 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13808 (default_use_by_pieces_infrastructure_p): Ditto.
13809 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13810 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13811 to cpymem.
13812 * config/aarch64/aarch64.h: Change movmem to cpymem.
13813 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13814 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13815 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13816 movmem to cpymem.
13817 * config/arc/arc-protos.h: Change movmem to cpymem.
13818 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13819 * config/arc/arc.h: Change movmem to cpymem in comment.
13820 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13821 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13822 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13823 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13824 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13825 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13826 * config/avr/avr-protos.h: Change movmem to cpymem.
13827 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13828 avr_out_movmem): Change movmem to cpymem.
13829 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13830 Change movmem to cpymem.
13831 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13832 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13833 Change movmem to cpymem.
13834 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13835 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13836 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13837 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13838 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13839 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13840 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13841 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13842 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13843 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13844 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13845 expand_small_cpymem_or_setmem,
13846 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13847 expand_set_or_cpymem_constant_prologue,
13848 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13849 * config/i386/i386-protos.h: Change movmem to cpymem.
13850 * config/i386/i386.h: Change movmem to cpymem in comment.
13851 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13852 (setmem<mode>): Change expansion function name.
13853 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13854 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13855 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13856 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13857 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13858 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13859 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13860 to cpymem.
13861 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13862 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13863 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13864 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13865 Change movmem to cpymem.
13866 * config/mips/mips.h: Change movmem to cpymem.
13867 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13868 * config/nds32/nds32-memory-manipulation.c
13869 (nds32_expand_movmemsi_loop_unknown_size,
13870 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13871 nds32_expand_movmemsi_unroll,
13872 nds32_expand_movmemsi): Change movmem to cpymem.
13873 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13874 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13875 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13876 (pa_adjust_insn_length): Change call to compute_movmem_length.
13877 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13878 movmemdi, movmemdi_prereload,
13879 movmemdi_postreload): Change movmem to cpymem.
13880 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13881 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13882 * config/riscv/riscv.c: Change movmem to cpymem in comment.
13883 * config/riscv/riscv.h: Change movmem to cpymem.
13884 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13885 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13886 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13887 movmem to cpymem.
13888 * config/s390/s390-protos.h: Change movmem to cpymem.
13889 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13890 s390_expand_insv): Change movmem to cpymem.
13891 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13892 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13893 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13894 * config/sparc/sparc.h: Change movmem to cpymem in comment.
13895 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13896 for nonexistent function.
13897 * config/vax/vax.h: Change movmem to cpymem in comment.
13898 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13899 * config/visium/visium.h: Change movmem to cpymem in comment.
13900 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13901 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13902 * doc/md.texi: Change movmem to cpymem and update description to match.
13903 * doc/rtl.texi: Change movmem to cpymem.
13904 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13905 * doc/tm.texi: Regenerate.
13906
13907 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
13908
13909 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13910 -fvariable-expansion-in-unroller by default.
13911 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13912 default for Power.
13913
13914 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
13915
13916 Revert
13917 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13918 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13919
13920 * config.gcc(rs6000-*-*): Define target_gtfiles.
13921
13922 2019-06-27 Jan Hubicka <jh@suse.cz>
13923
13924 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13925 (add_type_duplicate): When odr hash is not allocated, to nothing.
13926 (odr_based_tbaa_p): New function.
13927 (set_type_canonical_for_odr_type): New function.
13928 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13929 set_type_canonical_for_odr_type): New.
13930 * tree.c (gimple_canonical_types_compatible_p): ODR types with
13931 ODR based TBAA are not equivalent to non-ODR types.
13932
13933 2019-06-27 Martin Liska <mliska@suse.cz>
13934
13935 PR tree-optimization/90974
13936 PR rtl-optimization/90975
13937 PR rtl-optimization/90976
13938 PR target/91016
13939 PR tree-optimization/91017
13940 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13941 unused tmp.
13942 * lra.c (lra_set_insn_recog_data): Remove a leftover from
13943 initial commit of IRA.
13944 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13945 of op0 and op1.
13946 * tree-vect-loop.c (vect_create_epilog_for_reduction):
13947 Remove unused mode1.
13948 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
13949 to new_stmt_info.
13950
13951 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13952
13953 PR target/90991
13954 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
13955 instead of register_operand for operands[1], add m to its constraints
13956 if operands[2] uses "C" constraint. Ensure in condition that if
13957 operands[2] is not 0, then operands[1] is not a MEM. For last two
13958 alternatives, use unaligned loads instead of aligned if operands[1] is
13959 misaligned_operand.
13960
13961 2019-06-27 Martin Liska <mliska@suse.cz>
13962
13963 * asan.c (asan_emit_allocas_unpoison): Remove obviously
13964 dead assignments.
13965 * bt-load.c (move_btr_def): Likewise.
13966 * builtins.c (expand_builtin_apply_args_1): Likewise.
13967 (expand_builtin_apply): Likewise.
13968 * cfgexpand.c (expand_asm_stmt): Likewise.
13969 (construct_init_block): Likewise.
13970 * cfghooks.c (verify_flow_info): Likewise.
13971 * cfgloopmanip.c (remove_path): Likewise.
13972 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
13973 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
13974 * combine.c (simplify_if_then_else): Likewise.
13975 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13976 (choose_basereg): Likewise.
13977 (ix86_expand_prologue): Likewise.
13978 (ix86_preferred_output_reload_class): Likewise.
13979 * cselib.c (cselib_record_sets): Likewise.
13980 * df-scan.c (df_scan_alloc): Likewise.
13981 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
13982 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
13983 * emit-rtl.c (try_split): Likewise.
13984 * graphite-scop-detection.c (assign_parameter_index_in_region):
13985 Likewise.
13986 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
13987 * ira-color.c (setup_profitable_hard_regs): Likewise.
13988 * ira.c (rtx_moveable_p): Likewise.
13989 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
13990 * read-rtl.c (read_subst_mapping): Likewise.
13991 * regrename.c (scan_rtx): Likewise.
13992 * reorg.c (fill_slots_from_thread): Likewise.
13993 * tree-inline.c (tree_function_versioning): Likewise.
13994 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13995 * tree-ssa-sink.c (statement_sink_location): Likewise.
13996 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
13997 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
13998 (vect_create_epilog_for_reduction): Likewise.
13999 * tree.c (build_nonstandard_integer_type): Likewise.
14000
14001 2019-06-27 Richard Biener <rguenther@suse.de>
14002
14003 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14004
14005 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14006
14007 PR tree-optimization/89772
14008 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14009 out-of-bound accesses checking.
14010
14011 2019-06-27 Martin Liska <mliska@suse.cz>
14012
14013 PR tree-optimization/91014
14014 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14015 when LHS is NULL_TREE.
14016
14017 2019-06-27 Martin Liska <mliska@suse.cz>
14018
14019 * symbol-summary.h (traverse): Pass
14020 argument a to the call of callback.
14021 (gt_ggc_mx): Mark arguments as unused.
14022 (gt_pch_nx): Likewise.
14023
14024 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14025
14026 PR target/62147
14027 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14028 finiteness.
14029
14030 2019-06-26 Jeff Law <law@redhat.com>
14031
14032 PR tree-optimization/90883
14033 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14034 (delete_dead_or_redundant_assignment): Likewise.
14035
14036 PR tree-optimization/90883
14037 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14038 * tree-ssa-dse.c: Update various comments to distinguish between
14039 dead and redundant stores.
14040 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14041 (dse_optimize_redundant_stores): New function.
14042 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14043 Distinguish between dead and redundant calls in dump output. All
14044 callers updated.
14045 (delete_dead_or_redundant_assignment): Similarly for assignments.
14046 (dse_optimize_stmt): Handle _CHK variants. For statements which
14047 store 0 into multiple memory locations, try to prove a subsequent
14048 store is redundant.
14049
14050 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14051
14052 PR target/89021
14053 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14054 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14055
14056 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14057
14058 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14059 (branch_islands): New extern.
14060 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14061 * config/rs6000/rs6000.c: .. here.
14062
14063 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14064
14065 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14066 (powerpc*-*-*) ... to here.
14067
14068 2019-06-26 Jeff Law <law@redhat.com>
14069
14070 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14071 memcpy, memmove and memset builtins.
14072 (maybe_trim_memstar_call): Likewise.
14073
14074 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14075
14076 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14077
14078 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14079
14080 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14081
14082 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14083
14084 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14085 declaration.
14086 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14087 "static".
14088 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14089 declaration.
14090
14091 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14092
14093 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14094
14095 2019-06-26 Richard Biener <rguenther@suse.de>
14096
14097 PR ipa/90982
14098 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14099
14100 2019-06-26 Richard Biener <rguenther@suse.de>
14101
14102 * lto-streamer.h (lto_bitmap_alloc): Remove.
14103 (lto_bitmap_free): Likewise.
14104 * lto-streamer.c (lto_bitmap_alloc): Remove.
14105 (lto_bitmap_free): Likewise.
14106 (lto_obstack): Likewise.
14107 (lto_obstack_initialized): Likewise.
14108 * lto-streamer-out.c (lto_output): Use own obstack for local
14109 bitmap, free it consistently.
14110
14111 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14112
14113 PR target/90991
14114 * config/i386/sse.md
14115 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14116 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14117 insns if operands[2] is misaligned_operand.
14118
14119 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14120
14121 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14122 TARGET_POWERPC64.
14123 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14124 to GPR.
14125
14126 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14127
14128 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14129
14130 2019-06-26 Martin Liska <mliska@suse.cz>
14131
14132 PR tree-optimization/90973
14133 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14134 epilogue_cost_vec instead of prologue_cost_vec for
14135 a epilogue cost.
14136
14137 2019-06-26 Martin Liska <mliska@suse.cz>
14138
14139 * bb-reorder.c (connect_better_edge_p): Add missing else
14140 statement in the middle of if-else statements.
14141
14142 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14143 H.J. Lu <hongjiu.lu@intel.com>
14144 Olga Makhotina <olga.makhotina@intel.com>
14145
14146 * common/config/i386/i386-common.c
14147 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14148 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14149 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14150 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14151 (ix86_handle_option): Handle -mavx512vp2intersect.
14152 * config/i386/avx512vp2intersectintrin.h: New.
14153 * config/i386/avx512vp2intersectvlintrin.h: New.
14154 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14155 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14156 AVX512VP2INTERSECT.
14157 * config/i386/i386-builtin-types.def: Add new types.
14158 * config/i386/i386-builtin.def: Add new builtins.
14159 * config/i386/i386-builtins.c: (enum processor_features): Add
14160 F_AVX512VP2INTERSECT.
14161 (static const _isa_names_table isa_names_table): Ditto.
14162 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14163 __AVX512VP2INTERSECT__.
14164 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14165 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14166 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14167 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14168 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14169 * config/i386/i386-options.c (ix86_target_string): Add
14170 -mavx512vp2intersect.
14171 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14172 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14173 P2HImode and P2QImode.
14174 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14175 number for P2QImode and P2HImode.
14176 (ix86_regmode_natural_size): New function.
14177 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14178 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14179 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14180 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14181 * config/i386/i386.opt: Add -mavx512vp2intersect.
14182 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14183 avx512vp2intersectvlintrin.h.
14184 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14185 (define_mode_iterator VI48_AVX512VP2VL): New.
14186 (avx512vp2intersect_2intersect<mode>,
14187 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14188 * config.gcc: Add avx512vp2intersectvlintrin.h and
14189 avx512vp2intersectintrin.h to extra_headers.
14190 * doc/invoke.texi: Document -mavx512vp2intersect.
14191
14192 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14193
14194 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14195
14196 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14197
14198 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14199 savres_routine_syms, savres_routine_name, morestack_ref,
14200 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14201 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14202 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14203 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14204 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14205 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14206 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14207 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14208 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14209 get_stack_clash_protection_probe_interval,
14210 get_stack_clash_protection_guard_size,
14211 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14212 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14213 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14214 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14215 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14216 gen_frame_mem_offset, rs6000_savres_routine_name,
14217 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14218 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14219 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14220 rs6000_global_entry_point_prologue_needed_p,
14221 rs6000_get_separate_components, rs6000_components_for_bb,
14222 rs6000_disqualify_components, rs6000_emit_prologue_components,
14223 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14224 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14225 rs6000_output_savres_externs, rs6000_output_function_prologue,
14226 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14227 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14228 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14229 rs6000_output_function_epilogue, gen_add3_const,
14230 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14231 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14232 to rs6000-logue.c.
14233 (machine_function): Moved to rs6000.h.
14234 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14235 rs6000-internal.h.
14236 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14237 savres_routine_syms, savres_routine_name, morestack_ref,
14238 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14239 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14240 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14241 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14242 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14243 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14244 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14245 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14246 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14247 get_stack_clash_protection_probe_interval,
14248 get_stack_clash_protection_guard_size,
14249 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14250 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14251 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14252 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14253 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14254 gen_frame_mem_offset, rs6000_savres_routine_name,
14255 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14256 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14257 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14258 rs6000_global_entry_point_prologue_needed_p,
14259 rs6000_get_separate_components, rs6000_components_for_bb,
14260 rs6000_disqualify_components, rs6000_emit_prologue_components,
14261 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14262 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14263 rs6000_output_savres_externs, rs6000_output_function_prologue,
14264 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14265 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14266 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14267 rs6000_output_function_epilogue, gen_add3_const,
14268 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14269 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14270 to here from rs6000.c.
14271 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14272 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14273 quad_address_offset_p) Moved to here from rs6000.c.
14274 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14275 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14276 collector.
14277
14278 2019-06-25 Martin Liska <mliska@suse.cz>
14279
14280 * hash-table.c (hashtab_chk_error): Move here from ...
14281 * hash-table.h (hashtab_chk_error): ... here.
14282
14283 2019-06-25 Martin Liska <mliska@suse.cz>
14284
14285 PR tree-optimization/90978
14286 * df-scan.c (df_update_entry_block_defs): Remove dead else
14287 branch.
14288 (df_update_exit_block_uses): Likewise.
14289
14290 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14291 Andrew Stubbs <ams@codesourcery.com>
14292
14293 * config.gcc (thread_file): Set to gcn for AMD GCN.
14294 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14295 (TARGET_EMUTLS_VAR_INIT): New hook.
14296
14297 2019-06-25 Martin Jambor <mjambor@suse.cz>
14298
14299 PR ipa/90939
14300 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14301
14302 2019-06-25 Richard Biener <rguenther@suse.de>
14303
14304 PR tree-optimization/90930
14305 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14306 into parallel form in the last pass instance.
14307
14308 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14309
14310 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14311 (arc_legitimize_pic_address): Simplify and cleanup the function.
14312 (SYMBOLIC_CONST): Remove.
14313 (prepare_pic_move): Likewise.
14314 (prepare_move_operands): Handle complex mov cases here.
14315 (arc_legitimize_address_0): Remove call to
14316 arc_legitimize_pic_address.
14317 (arc_legitimize_address): Remove call to
14318 arc_legitimize_tls_address.
14319 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14320 (movhi_insn): Likewise.
14321
14322 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14323
14324 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14325 PTRDIFF_TYPE.
14326 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14327 format of "__intN" types for UINTMAX_TYPE.
14328 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14329 format of "__intN" types for SIZETYPE.
14330 * tree.c (build_common_tree_nodes): Accept "__intN__"
14331 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14332 * doc/invoke.texi: Document that __intN__ disables pedantic
14333 warnings.
14334
14335 2019-06-25 Jan Hubicka <jh@suse.cz>
14336
14337 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14338 base2_alias_set is non-zero before doing TBAA based disambiguation.
14339
14340 2019-06-25 Martin Liska <mliska@suse.cz>
14341
14342 PR tree-optimization/90973
14343 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14344 of prologue and epilogue.
14345
14346 2019-06-24 Jan Hubicka <jh@suse.cz>
14347
14348 * ipa-utils.h (type_with_linkage_p): Verify that type is
14349 CXX_ODR_P.
14350 (odr_type_p): Remove extra return.
14351 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14352 hash STRING_FLAG only for arrays and integers.
14353 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14354 Update analogously.
14355 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14356 Likewise.
14357 * print-tree.c (print_node): Print cxx-odr-p
14358 and string-flag.
14359 * tree.c (need_assembler_name_p): Also check that type
14360 is CXX_ODR_TYPE_P
14361 (verify_type_variant): Update verification of SRING_FLAG;
14362 also check CXX_ODR_P.
14363 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14364 (TYPE_STRING_FLAG): Use it.
14365 (TYPE_CXX_ODR_P): New macro.
14366 * dwarf2out.c (gen_array_type_die): First check that type
14367 is an array and then test string flag.
14368
14369 2019-06-24 Richard Biener <rguenther@suse.de>
14370
14371 PR tree-optimization/90972
14372 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14373 in common code, dealing with STRING_CST properly.
14374
14375 2019-06-24 Richard Biener <rguenther@suse.de>
14376
14377 PR tree-optimization/90930
14378 PR tree-optimization/90316
14379 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14380 decrement of limit.
14381
14382 2019-06-24 Martin Sebor <msebor@redhat.com>
14383
14384 * tree-pretty-print.h: Remove unnecessary punctuation characters
14385 from a diagnostic.
14386 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14387
14388 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14389
14390 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14391 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14392 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14393
14394 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14395
14396 * config/rs6000/darwin.h: Handle GCC target pragma.
14397
14398 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14399
14400 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14401
14402 2019-06-22 Jeff Law <law@redhat.com>
14403
14404 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14405
14406 2019-06-22 Jan Hubicka <jh@suse.cz>
14407
14408 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14409 give up on bitfields; continue searching for different refs
14410 appearing later.
14411
14412 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14413
14414 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14415 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14416 containing the offset as possible simd lane access. Look through
14417 widening conversion. Move the
14418 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14419
14420 2019-06-21 Richard Biener <rguenther@suse.de>
14421
14422 PR tree-optimization/90930
14423 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14424 flag on new stmts to avoid re-processing them.
14425
14426 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14427
14428 PR c++/90875 - added -Wswitch-outside-range option
14429 * doc/invoke.texi (Wswitch-outside-range): Document.
14430
14431 2019-06-21 Jeff Law <law@redhat.com>
14432
14433 PR tree-optimization/90949
14434 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14435 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14436
14437 2019-06-21 Richard Biener <rguenther@suse.de>
14438
14439 PR debug/90914
14440 * dwarf2out.c (prune_unused_types_walk): Always consider
14441 function-local extern declarations as used.
14442
14443 2019-06-21 Richard Biener <rguenther@suse.de>
14444
14445 PR tree-optimization/90913
14446 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14447 the scalar variant of if-conversion versioning.
14448
14449 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14450
14451 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14452 create another "omp scan inscan exclusive" array if
14453 !ctx->scan_inclusive.
14454 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14455 (lower_omp_scan): Likewise.
14456 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14457 2-bit bitfield for simd_lane_access_p member.
14458 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14459 aux == (void *)-4 as simd lane access.
14460 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14461 comment with permutations to show the canonical permutation order.
14462 (vectorizable_scan_store): Handle exclusive scan.
14463 (vectorizable_store): Call vectorizable_scan_store even for
14464 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14465
14466 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14467 "omp simd array" arrays with one byte elements.
14468
14469 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14470
14471 * config/alpha/alpha.md (@unaligned_store<mode>):
14472 Rename from unaligned_store<mode>.
14473 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14474 * config/alpha/sync.md (@load_locked_<mode>): Rename
14475 from load_locked_<mode>.
14476 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14477 (@atomic_compare_and_swap<mode>_1): Rename
14478 from atomic_compare_and_swap<mode>_1.
14479 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14480 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14481 Use gen_reload_in_aligned and gen_unaligned_store.
14482 (emit_load_locked): Remove.
14483 (emit_store_conditional): Ditto.
14484 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14485 (alpha_split_compare_and_swap): Ditto.
14486 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14487 (alpha_split_compare_and_swap_12): Use gen_load_locked
14488 and gen_store_conditional.
14489 (alpha_split_atomic_exchange): Ditto.
14490 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14491 (alpha_split_atomic_exchange_12): Use gen_load_locked
14492 and gen_store_conditional.
14493
14494 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14495
14496 * config/aarch64/aarch64-errata.h: New file.
14497 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14498 (CA53_ERR_843419_SPEC): Delete.
14499 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14500 * config/aarch64/aarch64-linux.h: Likewise.
14501 * config/aarch64/aarch64-netbsd.h: Likewise.
14502 * config/aarch64/aarch64-freebsd.h: Likewise.
14503
14504 2019-06-20 Marek Polacek <polacek@redhat.com>
14505
14506 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14507
14508 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14509
14510 * config/rs6000/rs6000.md (isa attribute): Add support for
14511 for a future processor.
14512
14513 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14514
14515 PR target/54855
14516 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14517 standard scalar operation pattern for V2DF.
14518 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14519 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14520 (*ieee_<ieee_maxmin><mode>3): Likewise.
14521 (vec_setv2df_0): Likewise.
14522
14523 2019-06-20 Jan Hubicka <jh@suse.cz>
14524
14525 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14526 parameter; it has no use in gimple memory model.
14527 (indirect_ref_may_alias_decl_p): Update.
14528
14529 2019-06-20 Martin Liska <mliska@suse.cz>
14530
14531 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14532 to 10.
14533
14534 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14535
14536 * tree-vect-stmts.c (enum scan_store_kind): New type.
14537 (scan_store_can_perm_p): Change last argument from int * to
14538 vec<enum scan_store_kind> *, record precisely which permutations
14539 need whole vector left shift or that plus VEC_COND_EXPR.
14540 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14541 and additional VEC_COND_EXPR only for those iterations that need it.
14542
14543 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14544
14545 * config.gcc: Fix ARM --with-fpu checking and error message.
14546
14547 2019-06-19 Marek Polacek <polacek@redhat.com>
14548
14549 PR c++/60364 - noreturn after first decl not diagnosed.
14550 * attribs.c (get_attribute_namespace): No longer static.
14551 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14552 attributes.
14553 (attr_noreturn_exclusions): Make it extern.
14554 * attribs.h (get_attribute_namespace): Declare.
14555 * tree-inline.c (function_attribute_inlinable_p): Use
14556 get_attribute_name.
14557
14558 2019-06-19 Martin Sebor <msebor@redhat.com>
14559
14560 PR tree-optimization/90626
14561 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14562
14563 PR tree-optimization/90626
14564 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14565 (handle_builtin_string_cmp): Call it.
14566
14567 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14568
14569 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14570 and DARWIN_NOPIE_SPEC.
14571 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14572 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14573 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14574 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14575 (DARWIN_EXPORT_DYNAMIC): Delete.
14576 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14577 and pie options processing to darwin.h.
14578 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14579
14580 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14581
14582 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14583 in computing the number of options to be moved.
14584
14585 2019-06-19 Maya Rashish <coypu@sdf.org>
14586
14587 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14588 (CLEAR_INSN_CACHE) Use it.
14589
14590 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14591
14592 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14593
14594 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14595
14596 PR middle-end/84521
14597 * builtins.c (expand_builtin_setjmp_setup): Save
14598 hard_frame_pointer_rtx.
14599 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14600 restore fp.
14601 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14602 non-local goto.
14603 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14604 elimination code.
14605 (remove_reg_equal_offset_note): Remove unused function.
14606 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14607 code.
14608 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14609 (arc_builtin_setjmp_frame_value): Remove function.
14610 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14611 (avr_builtin_setjmp_frame_value): Remove function.
14612 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14613 (ix86_builtin_setjmp_frame_value): Remove function.
14614 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14615 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14616 (sparc_builtin_setjmp_frame_value): Remove function.
14617 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14618 (vax_builtin_setjmp_frame_value): Remove function.
14619 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14620 pointer if has_nonlocal_label.
14621
14622 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14623
14624 * doc/md.texi: Document vec_shl_<mode> pattern.
14625 * optabs.def (vec_shl_optab): New optab.
14626 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14627 argument, if == vec_shl_optab, check for left whole vector shift
14628 pattern rather than right shift.
14629 (expand_vec_perm_const): Add vec_shl_optab support.
14630 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14631 in the comment.
14632 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14633 can be handled by vec_shl_optab.
14634 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14635 (check_scan_store): Use it.
14636 (vectorizable_scan_store): If target can't do normal permutations,
14637 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14638 after it.
14639 * config/i386/sse.md (vec_shl_<mode>): New expander.
14640
14641 * omp-low.c (lower_rec_input_clauses): Handle references properly
14642 in inscan clauses.
14643 (lower_omp_scan): Likewise.
14644
14645 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14646
14647 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14648 mem_mode is BLKmode.
14649
14650 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14651
14652 PR target/90922
14653 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14654 pointer adjustment for the case of no callee-saved registers and
14655 stack frame bigger than 128 bytes.
14656
14657 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14658
14659 PR middle-end/90862
14660 * omp-low.c (check_omp_nesting_restrictions): Handle
14661 GF_OMP_TARGET_KIND_OACC_DECLARE.
14662
14663 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14664
14665 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14666 (@add<mode>3_carry): Rename from add<mode>3_carry.
14667 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14668 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14669 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14670 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14671 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14672 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14673 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14674 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14675 (cmpstrnsi): Use gen_cmp_1.
14676 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14677 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14678 (@umonitor_<mode>): Rename from umonitor_<mode>.
14679 * config/i386/i386-expand.c (ix86_expand_copysign):
14680 Use gen_copysign3_const and gen_copysign3_var.
14681 (ix86_expand_xorsign): Use gen_xorsign3_1.
14682 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14683 gen_sub3_carry_ccgz and gen_cmp1.
14684 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14685 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14686 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14687 (ix86_split_lshr): Ditto.
14688 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14689
14690 2019-06-18 Jason Merrill <jason@redhat.com>
14691
14692 * tree.c (build_constructor): Add MEM_STAT_DECL.
14693
14694 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14695
14696 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14697 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14698 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14699 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14700 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14701 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14702 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14703 Use CC_NZC instead of CC.
14704 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14705 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14706 (aarch64_print_operand): Handle E_CC_NZCmode.
14707 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14708 of gen_set_clobber_cc.
14709
14710 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14711
14712 * config/aarch64/aarch64-sve.md: Tabify file.
14713
14714 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14715
14716 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14717 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14718 * config/aarch64/aarch64-sve.md: Use it.
14719
14720 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14721
14722 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14723 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14724 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14725 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14726 (aarch64_expand_sve_vec_cmp_int): Use it.
14727 (aarch64_expand_sve_vec_cmp_float): Likewise.
14728 * config/aarch64/aarch64-sve.md: Likewise throughout.
14729
14730 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14731 Kugan Vivekanandarajah <kuganv@linaro.org>
14732
14733 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14734 (*cond_<optab><mode>_z): Fold into...
14735 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14736 operand 4 can be tied to operand 0 (either inherently or via RA).
14737
14738 2019-06-18 Richard Biener <rguenther@suse.de>
14739
14740 PR debug/90900
14741 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14742 as if optimized away.
14743
14744 2019-06-18 Tom de Vries <tdevries@suse.de>
14745
14746 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14747 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14748 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14749 Rename to ...
14750 (define_insn "@set_softstack_<mode>"): ... this.
14751 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14752 (define_insn "@omp_simt_enter_<mode>"): ... this.
14753 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14754 (define_insn "@omp_simt_exit_<mode>"): ... this.
14755
14756 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14757
14758 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14759 vf parameter. Restore the previous iv step of nscalars_step,
14760 but give it iv_type rather than compare_type. Tweak code order
14761 to match the comments.
14762 (vect_set_loop_condition_masked): Update accordingly.
14763 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14764 for iv_precision. Tweak comment formatting.
14765
14766 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14767
14768 * config/darwin.c: Strip trailing whitespace.
14769
14770 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14771
14772 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14773 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14774
14775 2019-06-18 Martin Jambor <mjambor@suse.cz>
14776
14777 PR ipa/90889
14778 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14779 caller does not have flag_ipa_cp set.
14780
14781 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14782
14783 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14784 from "*fold_left_plus_<mode>", updated operands order.
14785 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14786 * internal-fn.c (mask_fold_left_direct): New define.
14787 (expand_mask_fold_left_optab_fn): Likewise.
14788 (direct_mask_fold_left_optab_supported_p): Likewise.
14789 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14790 * optabs.def (mask_fold_left_plus_optab): New optab.
14791 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14792 masked internal_fn for a reduction ifn.
14793 (vectorize_fold_left_reduction): Add support for masking reductions.
14794
14795 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14796
14797 PR middle-end/80791
14798 * target.def (predict_doloop_p): New hook.
14799 * targhooks.h (default_predict_doloop_p): New declaration.
14800 * targhooks.c (default_predict_doloop_p): New function.
14801 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14802 * doc/tm.texi: Regenerate.
14803 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14804 (TARGET_PREDICT_DOLOOP_P): New macro.
14805 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14806
14807 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14808
14809 * omp-low.c (struct omp_context): Add scan_inclusive field.
14810 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14811 if inclusive scan.
14812 (struct omplow_simd_context): Add lastlane member.
14813 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14814 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14815 1 or 2 argument.
14816 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14817 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14818 (lower_omp_scan): New function.
14819 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14820 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14821 check 3rd argument if present rather than 2nd.
14822 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14823 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14824 2-bit bitfield.
14825 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14826 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14827 than 2nd.
14828 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14829 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14830 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14831 init.
14832 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14833 IFN_GOMP_SIMD_LANE argument.
14834 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14835 encoded ->aux value.
14836 * tree-vect-stmts.c: Include attribs.h.
14837 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14838 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14839 functions.
14840 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14841 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14842
14843 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14844
14845 PR target/62055
14846 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14847 (*nabs<mode>2_1): Ditto.
14848 (nabs sse-reg splitter): New splitter.
14849 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14850
14851 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14852
14853 PR bootstrap/90873.
14854 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14855 TMR index check.
14856
14857 2019-06-17 Tom de Vries <tdevries@suse.de>
14858
14859 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14860 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14861 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14862 ...
14863 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14864 match_operand 0.
14865 (define_insn "omp_simt_enter_insn"): Rename to ...
14866 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14867 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14868 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14869 gen_omp_simt_enter_si.
14870 (define_expand "omp_simt_exit"): New.
14871 (define_insn "omp_simt_exit"): Rename to ...
14872 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14873 match_operand 0.
14874
14875 2019-06-17 Matthew Green <mrg@eterna.com.au>
14876 Maya Rashish <coypu@sdf.org>
14877
14878 * config.gcc (aarch64*-*-netbsd*): New target.
14879 * config/aarch64/aarch64-netbsd.h: New file.
14880 * config/aarch64/t-aarch64-netbsd: Likewise.
14881
14882 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14883
14884 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14885 the access path from base to first VIEW_CONVERT_EXPR or
14886 BIT_FIELD_REF.
14887
14888 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14889
14890 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14891 access path on BIT_FIELD_REFs.
14892
14893 2019-06-17 Martin Liska <mliska@suse.cz>
14894
14895 PR ipa/90874
14896 * ipa-utils.h (odr_type_p): Remove dead code.
14897
14898 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14899
14900 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14901 alternative Solaris 11.4 format.
14902 * configure: Regenerate.
14903
14904 2019-06-17 Tom de Vries <tdevries@suse.de>
14905
14906 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14907 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
14908 match_operand 0.
14909 (define_insn "call_value_insn"): Rename to ...
14910 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
14911 match_operand 0.
14912 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14913 DI.
14914
14915 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
14916
14917 PR middle-end/64242
14918 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
14919 frame clobbers and schedule block.
14920 (builtin_longjmp): Likewise.
14921
14922 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14923
14924 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14925 describe how to perform MSPABI compliant 64-bit shift.
14926 * config/msp430/msp430.md (ashldi3): New define_expand.
14927 (ashrdi3): New define_expand.
14928 (lshrdi3): New define_expand.
14929
14930 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14931
14932 * doc/sourcebuild.texi: Document new effective target keyword
14933 longlong64.
14934
14935 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14936
14937 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14938 indirect_refs_may_alias_p): Revert accidental commits.
14939
14940 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14941 at the end of structures.
14942
14943 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14944
14945 * config/darwin.c (machopic_indirect_call_target): Use renamed
14946 darwin_picsymbol_stubs to decide on output.
14947 (darwin_override_options): Handle darwin_picsymbol_stubs.
14948 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
14949 (LD64_VERSION): Revise default.
14950 * config/darwin.opt: (mpic-symbol-stubs): New option.
14951 (darwin_picsymbol_stubs): New variable.
14952 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
14953 rename to TARGET_MACHO_PICSYM_STUBS.
14954 * config/i386/i386.c (output_pic_addr_const): Likewise.
14955 * config/i386/i386.h Likewise.
14956 * config/rs6000/darwin.h: Likewise.
14957 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
14958 darwin_picsymbol_stubs.
14959
14960 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14961
14962 * config/darwin.opt (prebind, noprebind, seglinkedit,
14963 noseglinkedit): Add RejectNegative.
14964
14965 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14966
14967 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
14968 in my previous patch.
14969
14970 2019-06-16 Tom de Vries <tdevries@suse.de>
14971
14972 PR tree-optimization/89376
14973 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
14974
14975 2019-06-15 Maya Rashish <coypu@sdf.org>
14976
14977 * doc/invoke.texi (Spec Files): Update location of the
14978 Fortran spec file.
14979
14980 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
14981
14982 * doc/extend.texi (Common Function Attributes): Clarify
14983 no_sanitize. Fix grammar.
14984
14985 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
14986
14987 * tree-ssa-alias.c (alias_stats): Add
14988 nonoverlapping_component_refs_p_may_alias,
14989 nonoverlapping_component_refs_p_no_alias,
14990 nonoverlapping_component_refs_of_decl_p_may_alias,
14991 nonoverlapping_component_refs_of_decl_p_no_alias.
14992 (dump_alias_stats): Dump them.
14993 (nonoverlapping_component_refs_of_decl_p): Add stats.
14994 (nonoverlapping_component_refs_p): Add stats; do not stop on first
14995 ARRAY_REF.
14996
14997 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
14998
14999 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15000 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15001 only.
15002 (*anddi3_doubleword): Split before reload. Merge with
15003 anddi->zext pre-reload splitter.
15004 (*andndi3_doubleword): Split before reload.
15005 (*<code>di3_doubleword): Ditto.
15006 (*one_cmpldi2_doubleword): Ditto.
15007
15008 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15009
15010 PR middle-end/90779
15011 * gimplify.c: Include omp-offload.h and context.h.
15012 (gimplify_bind_expr): Add "omp declare target" attributes
15013 to static block scope variables inside of target region or target
15014 functions.
15015
15016 2019-06-15 Tom de Vries <tdevries@suse.de>
15017
15018 PR tree-optimization/90009
15019 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15020 Return NULL if bb contains IFN_UNIQUE.
15021
15022 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15023
15024 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15025 (un): New define_mode_attr.
15026 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15027 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15028 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15029 merge into ...
15030 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15031
15032 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15033
15034 * config/darwin.opt: Add RejectNegative where needed, reorder
15035 and add minimal functional descriptions.
15036
15037 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15038
15039 PR rtl-optimization/90765
15040 * calls.c (update_stack_alignment_for_call): New function.
15041 (expand_call): Call update_stack_alignment_for_call when
15042 outgoing parameter is passed in the stack.
15043 (emit_library_call_value_1): Likewise.
15044 * function.c (locate_and_pad_parm): Don't update
15045 stack_alignment_needed and preferred_stack_boundary.
15046
15047 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15048
15049 PR target/90877
15050 * config/i386/i386-features.c
15051 (dimode_scalar_chain::compute_convert_gain): Replace
15052 mmxsse_to_integer with sse_to_integer.
15053 * config/i386/i386.c (ix86_register_move_cost): Verify that
15054 moves between MMX and non-MMX units require secondary memory.
15055 Correct costs of moves between SSE and integer units.
15056 * config/i386/i386.h (processor_costs): Rename cost of moving
15057 SSE register to integer to sse_to_integer. Rename cost of
15058
15059 2019-06-14 Matt Thomas <matt@3am-software.com>
15060 Matthew Green <mrg@eterna.com.au>
15061 Nick Hudson <skrll@netbsd.org>
15062 Maya Rashish <coypu@sdf.org>
15063 Richard Earnshaw <rearnsha@arm.com>
15064
15065 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15066 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15067 * config/arm/netbsd-eabi.h: New file.
15068 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15069 redefining.
15070 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15071 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15072 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15073 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15074
15075 2019-06-14 Richard Biener <rguenther@suse.de>
15076
15077 * tree-loop-distribution.c (classify_partition): Return
15078 whether a reduction appeared in all partitions and do not
15079 stop builtin detection because of this.
15080 (distribute_loop): Sort a non-builtin partition last if
15081 there's a reduction in all partitions and make sure the
15082 partition prevailing as last is not a builtin.
15083
15084 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15085
15086 PR ipa/90401
15087 * ipa-prop.c (add_to_agg_contents_list): New function.
15088 (clobber_by_agg_contents_list_p): Likewise.
15089 (extract_mem_content): Likewise.
15090 (get_place_in_agg_contents_list): Delete.
15091 (determine_known_aggregate_parts): Renamed from
15092 determine_locally_known_aggregate_parts. New parameter
15093 aa_walk_budget_p.
15094
15095 2019-06-13 Martin Sebor <msebor@redhat.com>
15096
15097 PR tree-optimization/90662
15098 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15099 to the same type.
15100
15101 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15102
15103 PR bootstrap/90873
15104 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15105 dbase is not TARGET_MEM_REF.
15106
15107 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15108
15109 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15110 Update all uses.
15111 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15112 Do not generate DImode extends for 32bit targets.
15113 (and->zext post-reload splitter): Use gen_extend_insn
15114 instead of indirect functions.
15115 (anddi->zext pre-reload splitter): New.
15116 (*zext<mode>_doubleword_and): Remove.
15117 (*zext<mode>_doubleword): Ditto.
15118 (*zextsi_doubleword): Dittto.
15119
15120 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15121
15122 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15123 Use gen_sub3_insn instead of indirect function.
15124 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15125 indirect function.
15126 (ix86_adjust_counter): Ditto.
15127
15128 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15129 Lijia He <helijia@linux.ibm.com>
15130
15131 PR tree-optimization/77820
15132 * tree-ssa-threadedge.c
15133 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15134 function.
15135 (thread_across_edge): Add call to
15136 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15137
15138 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15139
15140 * config/darwin-driver.c (validate_macosx_version_min): New.
15141 (darwin_default_min_version): Cleanup and validate supplied version.
15142 (darwin_driver_init): Likewise and push cleaned version into opts.
15143
15144 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15145
15146 PR tree-optimization/90869
15147 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15148 converts in MEM_REF referencing decl rather than view converts
15149 from decl type to MEM_REF type.
15150
15151 2019-06-13 Richard Biener <rguenther@suse.de>
15152
15153 PR tree-optimization/90856
15154 * tree-sra.c (build_ref_for_model): Only use
15155 build_reconstructed_reference when address-spaces are the same.
15156
15157 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15158
15159 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15160 wrap ei variable name in the declaration in ()s.
15161 (nvptx_single): Actually use mode_label variable. Formatting fix.
15162
15163 2019-06-13 Richard Biener <rguenther@suse.de>
15164
15165 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15166 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15167 also return the condition stmt.
15168 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15169 loop we can version and version that, reusing the loop version
15170 created by if-conversion instead of versioning again.
15171
15172 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15173
15174 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15175 may_contain_p.
15176 * tree-vrp (value_range_base::may_contain_p): Call into
15177 value_inside_range.
15178 (value_inside_range): Make private inside value_range_base class.
15179 Take min/max from *this.
15180 (range_includes_p): Remove.
15181 * tree-vrp.h (value_range_base): Add value_inside_range.
15182 (range_includes_p): Remove.
15183 (range_includes_zero_p): Call may_contain_p.
15184 * vr-values.c (compare_range_with_value): Same.
15185
15186 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15187
15188 * doc/extend.texi (ARC Function Attributes): Update info.
15189
15190 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15191
15192 PR tree-optimization/89713
15193 * doc/invoke.texi (-ffinite-loops): Document new option.
15194 * common.opt (-ffinite-loops): New option.
15195 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15196 IFN_GOACC_LOOP calls as necessary.
15197 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15198 is finite.
15199 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15200 IFN_GOACC_LOOP call is not used.
15201 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15202
15203 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15204
15205 PR target/88838
15206 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15207 compare_type is not with Pmode size, we will create an IV with
15208 Pmode size with truncated use (i.e. converted to the correct type).
15209 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15210 (vect_iv_limit_for_full_masking): New. Factored out of
15211 vect_set_loop_condition_masked.
15212 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15213 (vect_iv_limit_for_full_masking): Declare.
15214
15215 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15216
15217 PR target/88834
15218 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15219 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15220 (get_alias_ptr_type_for_ptr_address): Likewise.
15221 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15222 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15223 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15224 allow_reg_index_p.
15225
15226 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15227
15228 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15229
15230 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15231
15232 * common/config/pru/pru-common.c: New file.
15233 * config.gcc: Add PRU target.
15234 * config/pru/alu-zext.md: New file.
15235 * config/pru/constraints.md: New file.
15236 * config/pru/predicates.md: New file.
15237 * config/pru/pru-opts.h: New file.
15238 * config/pru/pru-passes.c: New file.
15239 * config/pru/pru-pragma.c: New file.
15240 * config/pru/pru-protos.h: New file.
15241 * config/pru/pru.c: New file.
15242 * config/pru/pru.h: New file.
15243 * config/pru/pru.md: New file.
15244 * config/pru/pru.opt: New file.
15245 * config/pru/t-pru: New file.
15246 * doc/extend.texi: Document PRU pragmas.
15247 * doc/invoke.texi: Document PRU-specific options.
15248 * doc/md.texi: Document PRU asm constraints.
15249
15250 2019-06-12 Martin Sebor <msebor@redhat.com>
15251
15252 PR middle-end/90676
15253 * tree-pretty-print.c (dump_mem_ref): New function. Include
15254 MEM_REF type in output when different size than operand.
15255 (dump_generic_node): Move code to dump_mem_ref and call it.
15256
15257 2019-06-12 Martin Sebor <msebor@redhat.com>
15258
15259 PR tree-optimization/90662
15260 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15261 to arrays.
15262
15263 2019-06-12 Tom de Vries <tdevries@suse.de>
15264
15265 PR tree-optimization/90009
15266 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15267
15268 2019-06-12 Martin Liska <mliska@suse.cz>
15269
15270 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15271 the created map.
15272 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15273 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15274 Do not sanitize created maps.
15275
15276 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15277
15278 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15279 value_range::singleton_p.
15280 * tree-vrp.c (value_range_constant_singleton): Remove.
15281 * tree-vrp.h (value_range_constant_singleton): Remove.
15282 * vr-values.c (vr_values::singleton): Use
15283 value_range::singleton_p.
15284
15285 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15286
15287 PR target/90811
15288 * cfgexpand.c (align_local_variable): Add really_expand argument,
15289 don't SET_DECL_ALIGN if it is false.
15290 (add_stack_var): Add really_expand argument, pass it through to
15291 align_local_variable.
15292 (expand_one_stack_var_1): Pass true as really_expand to
15293 align_local_variable.
15294 (expand_one_ssa_partition): Pass true as really_expand to
15295 add_stack_var.
15296 (expand_one_var): Pass really_expand through to add_stack_var.
15297
15298 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15299
15300 * config/arm/iterators.md (VABAL): New int iterator.
15301 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15302 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15303 UNSPEC_VABAL_U values.
15304
15305 2019-06-12 Martin Liska <mliska@suse.cz>
15306
15307 * value-prof.c (stream_out_histogram_value): Only first value
15308 can't be negative.
15309
15310 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15311
15312 PR c/90760
15313 * symtab.c (symtab_node::set_section): Allow being called on aliases
15314 as long as they aren't analyzed yet.
15315
15316 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15317
15318 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15319 to `mips_set_text_contents_type' to indicate whether a
15320 non-debug insn follows.
15321
15322 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15323
15324 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15325 enabling -mpcrel by default.
15326 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15327 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15328 that the test against -mcpu=future is done first. Then test if
15329 -mprefixed-addr is on for -mpcrel.
15330 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15331
15332 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15333
15334 PR target/90811
15335 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15336 instead of and.u%d.
15337
15338 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15339
15340 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15341
15342 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15343
15344 PR c++/90449 - add -Winaccessible-base option.
15345 * doc/invoke.texi (Winaccessible-base): Document.
15346
15347 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15348
15349 PR tree-optimization/62041
15350 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15351
15352 2019-06-11 Jason Merrill <jason@redhat.com>
15353
15354 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15355 * tree.c (get_tree_code_name): Likewise.
15356 * print-tree.c (print_node): Only briefly print a node with an
15357 invalid code.
15358
15359 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15360
15361 PR bootstrap/90819
15362 * trans-mem.c (tm_memopt_compute_available): Add assertion
15363 that blocks is not empty. Formatting fix.
15364
15365 2019-06-11 Martin Liska <mliska@suse.cz>
15366
15367 PR c++/87847
15368 * hash-table.h: Extend create_gcc, add one parameter
15369 that is passed into hash_table::hash_table.
15370
15371 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15372
15373 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15374 New prototype.
15375 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15376 Emit clobber also for non-sse operations.
15377 (ix86_split_fp_absneg_operator): New function.
15378 * config/i386/i386.md (SSEMODEF): New mode iterator.
15379 (ssevecmodef): New mode attribute.
15380 (<code>tf2): Use absneg code iterator.
15381 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15382 Add three-operand AVX alternatives.
15383 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15384 Use absneg code iterator and X87MODEF mode iterator.
15385 (absneg fp_reg non-sse splitter): Call absneg code iterator
15386 and X87MODEF mode iterator.
15387 (absneg general_reg non-sse splitter): Use absneg code iterator
15388 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15389 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15390 code iterator. Add three-operand AVX alternative.
15391 (absneg sse_reg splitter): Use absneg code iterator
15392 and SSEMODEF mode iterator. Handle AVX operands.
15393 (absneg fp_reg splitter): Use absneg code iterator
15394 and MODEF mode iterator.
15395 (absneg general_reg splitter): Merge splitters using MODEF mode
15396 iterator. Use absneg code iterator. Call
15397 ix86_split_fp_absneg_operator.
15398 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15399 Do not enable for non-sse modes before reload.
15400 (CSGNMODE): Remove.
15401 (CSGNVMODE): Ditto.
15402 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15403 ssevecmodef mode attribute instaed of CSGNVMODE.
15404 (copysign<mode>3_const): Ditto.
15405 (copysign<mode>3_var): Ditto.
15406 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15407 Use absneg code iterator. Simplify code using std::swap.
15408 * config/i386/predicates.md (absneg_operator): Remove.
15409
15410 2019-06-10 Martin Sebor <msebor@redhat.com>
15411
15412 * gimple-fold.c (get_range_strlen): Update comment that didn't
15413 make it into r267503 or related commits.
15414
15415 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15416
15417 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15418 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15419
15420 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15421
15422 * tree.def (OMP_SCAN): New tree code.
15423 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15424 OMP_CLAUSE_EXCLUSIVE.
15425 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15426 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15427 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15428 OMP_CLAUSE_{IN,EX}CLUSIVE.
15429 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15430 * tree-nested.c (convert_nonlocal_reference_stmt,
15431 convert_local_reference_stmt, convert_gimple_call): Handle
15432 GIMPLE_OMP_SCAN.
15433 * tree-pretty-print.c (dump_omp_clause): Handle
15434 OMP_CLAUSE_{IN,EX}CLUSIVE.
15435 (dump_generic_node): Handle OMP_SCAN.
15436 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15437 * gimple.h (gomp_scan): New type.
15438 (is_a_helper <gomp_scan *>::test,
15439 is_a_helper <const gomp_scan *>::test): New templates.
15440 (gimple_build_omp_scan): Declare.
15441 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15442 gimple_omp_scan_set_clauses): New inline functions.
15443 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15444 * gimple.c (gimple_build_omp_scan): New function.
15445 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15446 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15447 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15448 GIMPLE_OMP_TASKGROUP.
15449 (dump_gimple_omp_scan): New function.
15450 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15451 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15452 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15453 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15454 (is_gimple_stmt): Handle OMP_SCAN.
15455 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15456 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15457 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15458 mentioned in nested #pragma omp scan. Handle
15459 OMP_CLAUSE_{IN,EX}CLUSIVE.
15460 (gimplify_expr): Handle OMP_SCAN.
15461 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15462 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15463 simd constructs.
15464 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15465 GIMPLE_OMP_SCAN.
15466
15467 2019-06-10 Martin Liska <mliska@suse.cz>
15468
15469 * ipa-cp.c (ignore_edge_p): New function.
15470 (build_toporder_info): Use it.
15471 * ipa-inline.c (ignore_edge_p): New function.
15472 (inline_small_functions): Use it.
15473 * ipa-pure-const.c (ignore_edge_for_nothrow):
15474 Verify opt_for_fn for caller and callee.
15475 (ignore_edge_for_pure_const): Likewise.
15476 * ipa-reference.c (ignore_edge_p): Extend to check
15477 for opt_for_fn.
15478 * ipa-utils.c (searchc): Refactor.
15479 * ipa-utils.h: Fix coding style.
15480
15481 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15482
15483 * config/arc/arc.c (arc_rtx_costs): Update costs.
15484
15485 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15486
15487 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15488 (arc_split_ior): Likewise.
15489 (arc_check_mov_const): Likewise.
15490 (arc_split_mov_const): Likewise.
15491 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15492 (arc_rtx_costs): Replace check Crr with Cax constraint.
15493 (prepare_move_operands): Cleanup, remove unused code.
15494 (arc_split_ior): New function.
15495 (arc_check_ior_const): Likewise.
15496 (arc_split_mov_const): Likewise.
15497 (arc_check_mov_const): Likewise.
15498 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15499 in define_insn_and_split pattern.
15500 (iorsi3): Likewise.
15501 (mulsi3_v2): Add new matching variant.
15502 (andsi3_i): Cleanup pattern.
15503 (rotrsi3_cnt1): Update pattern.
15504 (rotrsi3_cnt8): New pattern.
15505 (ashlsi2_cnt8): Likewise.
15506 (ashlsi2_cnt16): Likewise.
15507 * config/arc/constraints.md (C0p): Update constraint.
15508 (Crr): Remove it.
15509 (C0x): New pattern.
15510 (Cax): New pattern.
15511
15512 2019-06-10 Martin Liska <mliska@suse.cz>
15513
15514 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15515 Update coding style.
15516 (sem_item_optimizer::dump_cong_classes):
15517 Print how many items are in a non-singular class. Improve
15518 coding style.
15519
15520 2019-06-10 Martin Liska <mliska@suse.cz>
15521
15522 * value-prof.c (dump_histogram_value): Change dump format.
15523 (gimple_mod_subtract_transform): Remove legacy comment.
15524
15525 2019-06-10 Martin Liska <mliska@suse.cz>
15526
15527 * value-prof.c (dump_histogram_value): Print histogram values
15528 only if present.
15529
15530 2019-06-10 Martin Liska <mliska@suse.cz>
15531
15532 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15533 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15534 * ipa-profile.c (ipa_profile_generate_summary):
15535 Use get_most_common_single_value.
15536 * tree-profile.c (gimple_init_gcov_profiler):
15537 Instrument with __gcov_one_value_profiler_v2
15538 and __gcov_indirect_call_profiler_v4.
15539 * value-prof.c (dump_histogram_value):
15540 Print all values for HIST_TYPE_SINGLE_VALUE.
15541 (stream_out_histogram_value): Update assert for
15542 N values.
15543 (stream_in_histogram_value): Set number of
15544 counters for HIST_TYPE_SINGLE_VALUE.
15545 (get_most_common_single_value): New.
15546 (gimple_divmod_fixed_value_transform):
15547 Use get_most_common_single_value.
15548 (gimple_ic_transform): Likewise.
15549 (gimple_stringops_transform): Likewise.
15550 (gimple_find_values_to_profile): Set number
15551 of counters for HIST_TYPE_SINGLE_VALUE.
15552 * value-prof.h (get_most_common_single_value): New.
15553
15554 2019-06-10 Martin Liska <mliska@suse.cz>
15555
15556 * hash-map.h: Pass default value to hash_table ctor.
15557 * hash-table.h: Add default value to call of a ctor.
15558
15559 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15560
15561 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15562 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15563
15564 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15565
15566 PR target/90751
15567 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15568 Call pa_output_function_label.
15569 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15570 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15571 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15572 to declaration.
15573 (pa_linux_output_function_prologue): Declare.
15574 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15575 (pa_output_function_label): New.
15576 (pa_output_function_prologue): Revise to use pa_output_function_label.
15577 (pa_linux_output_function_prologue): New.
15578 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15579
15580 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15581
15582 * tree-vrp.h (value_range_base::intersect): New.
15583 (value_range::intersect_helper): Move from here...
15584 (value_range_base::intersect_helper): ...to here.
15585 * tree-vrp.c (value_range::intersect_helper): Rename to...
15586 (value_range_base::intersect_helper): ...this, and rewrite to
15587 return a value instead of modifying THIS in place.
15588 Also, move equivalence handling...
15589 (value_range::intersect): ...here, while calling intersect_helper.
15590 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15591 calling intersect.
15592 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15593 Same.
15594 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15595
15596 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15597
15598 * Makefile.in (genprogerr): Add condmd.
15599 (genprog): Remove it here.
15600
15601 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15602
15603 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15604
15605 2019-06-07 Richard Biener <rguenther@suse.de>
15606
15607 PR debug/90574
15608 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15609 that appear after user labels.
15610
15611 2019-06-07 Martin Liska <mliska@suse.cz>
15612
15613 * cselib.c (cselib_init): Disable hash table
15614 sanitization.
15615 * hash-set.h: Pass new default argument to m_table.
15616 * hash-table.c: Add global variable with hash table
15617 sanitization limit.
15618 * hash-table.h (Allocator>::hash_table): Add new argument
15619 to ctor.
15620 (hashtab_chk_error): New.
15621 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15622 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15623 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15624
15625 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15626
15627 * common.opt (flto-odr-type-merging): Ignore.
15628 * invoke.texi (-flto-odr-type-merging): Remove.
15629 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15630 (can_be_vtable_hashed_p): Remove.
15631 (hash_odr_vtable): Remove.
15632 (odr_vtable_hasher::hash): Remove.
15633 (types_same_for_odr): Remove.
15634 (types_odr_comparable): Remove.
15635 (odr_vtable_hasher::equal): Remove.
15636 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15637 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15638 (get_odr_type): Do not use vtable hash.
15639 (dump_odr_type): Remove commented out code.
15640 (build_type_inheritance_graph): Do not allocate vtable hash.
15641 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15642 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15643 (odr_type_p): Likewise.
15644 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15645 test.
15646
15647 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15648
15649 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15650 immediately after same_types_for_tbaa_p returns -1 and continue
15651 looking for possible exact match; if matching types are arrays
15652 watch for partial overlaps.
15653 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15654 (indirect_refs_may_alias_p): Do type based disambiguation first;
15655 update comment.
15656
15657 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15658
15659 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15660
15661 2019-06-07 Martin Liska <mliska@suse.cz>
15662
15663 * doc/invoke.texi: Remove param.
15664 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15665 Remove.
15666 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15667 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15668 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15669 * profile.c (instrument_values): Remove
15670 HIST_TYPE_INDIR_CALL_TOPN.
15671 * tree-profile.c (init_ic_make_global_vars):
15672 Always build __gcov_indirect_call only.
15673 (gimple_init_gcov_profiler): Remove usage
15674 of PARAM_INDIR_CALL_TOPN_PROFILE.
15675 (gimple_gen_ic_profiler): Likewise.
15676 * value-prof.c (dump_histogram_value): Likewise.
15677 (stream_in_histogram_value): Likewise.
15678 (gimple_indirect_call_to_profile): Likewise.
15679 (gimple_find_values_to_profile): Likewise.
15680 * value-prof.h (enum hist_type): Likewise.
15681
15682 2019-06-07 Martin Liska <mliska@suse.cz>
15683
15684 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15685 function.
15686
15687 2019-06-07 Martin Liska <mliska@suse.cz>
15688
15689 PR tree-optimization/78902
15690 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15691 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15692 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15693 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15694 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15695 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15696 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15697 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15698 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15699 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15700 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15701 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15702 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15703 New.
15704 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15705 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15706 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15707 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15708 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15709 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15710 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15711 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15712 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15713 warn_unused_result attribute.
15714 (BUILT_IN_STRDUP): Likewise.
15715 (BUILT_IN_STRNDUP): Likewise.
15716 (BUILT_IN_ALLOCA): Likewise.
15717 (BUILT_IN_CALLOC): Likewise.
15718 (BUILT_IN_MALLOC): Likewise.
15719 (BUILT_IN_REALLOC): Likewise.
15720
15721 2019-06-06 Jim Wilson <jimw@sifive.com>
15722
15723 PR target/89955
15724 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15725 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15726 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15727
15728 2019-06-06 Martin Sebor <msebor@redhat.com>
15729
15730 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15731 (handle_builtin_malloc): Remove trailing spaces.
15732 (handle_builtin_memset): Same.
15733 (handle_builtin_memcmp): Same.
15734 (compute_string_length): Same.
15735 (determine_min_objsize): Same.
15736 (handle_builtin_string_cmp): Same.
15737 (handle_char_store): Same. Break up excessively long line.
15738
15739 2019-06-06 Martin Jambor <mjambor@suse.cz>
15740
15741 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15742 check.
15743
15744 2019-06-06 Martin Jambor <mjambor@suse.cz>
15745
15746 * tree-sra.c (struct access): New field grp_same_access_path.
15747 (dump_access): Dump it.
15748 (build_reconstructed_reference): New function.
15749 (build_ref_for_model): Use it if possible.
15750 (path_comparable_for_same_access): New function.
15751 (same_access_path_p): Likewise.
15752 (sort_and_splice_var_accesses): Set the new flag.
15753 (analyze_access_subtree): Likewise.
15754 (propagate_subaccesses_across_link): Propagate zero value of the new
15755 flag down the access tree.
15756
15757 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15758
15759 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15760 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15761 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15762 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15763 Add gfx906.
15764
15765 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15766
15767 PR tree-optimization/90332
15768 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15769 Handle VALS containing two vectors.
15770 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15771 to...
15772 (@aarch64_combinez<mode>): ... This.
15773 (*aarch64_combinez_be<mode>): Rename to...
15774 (@aarch64_combinez_be<mode>): ... This.
15775 (vec_init<mode><Vhalf>): New define_expand.
15776 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15777
15778 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15779
15780 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15781 library functions only when not optimizing for size.
15782 (ashlsi3): Likewise.
15783 (ashrhi3): Likewise.
15784 (ashrsi3): Likewise.
15785 (lshrhi3): Likewise.
15786 (lshrsi3): Likewise.
15787
15788 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15789
15790 PR rtl-optimization/88751
15791 * ira.c (ira): Use the number of the actually referenced registers
15792 when calculating the threshold.
15793
15794 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15795
15796 * configure: Regenerate.
15797
15798 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15799
15800 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15801 register if it is in memory, so the shift can be emulated with a rotate
15802 instruction.
15803 (ashrhi3): Likewise.
15804 (lshrhi3): Likewise.
15805
15806 2019-06-06 Martin Liska <mliska@suse.cz>
15807
15808 PR tree-optimization/87954
15809 * match.pd: Simplify mult where both arguments are 0 or 1.
15810
15811 2019-06-06 Richard Biener <rguenther@suse.de>
15812
15813 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15814 put equivalences on UNDEFINED ranges.
15815 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15816 Make sure to drop defs of stmts added during simplification
15817 to VARYING.
15818
15819 2019-06-06 Richard Biener <rguenther@suse.de>
15820
15821 * tree-ssa-structalias.c: Include tree-cfg.h.
15822 (make_heapvar): Do not make heap vars artificial.
15823 (find_func_aliases_for_builtin_call): Handle stack allocation
15824 functions.
15825 (find_func_aliases): Delay processing of simple enough returns
15826 in non-IPA mode.
15827 (set_uids_in_ptset): Adjust.
15828 (find_what_var_points_to): Likewise.
15829 (solve_constraints): Do not dump points-to sets here.
15830 (compute_points_to_sets): Post-process return statements,
15831 amending the escaped solution. Dump points-to sets afterwards.
15832 (ipa_pta_execute): Dump points-to sets.
15833
15834 2019-06-06 Martin Liska <mliska@suse.cz>
15835
15836 PR web/87933
15837 * doc/install.texi: Fix HTML headers and
15838 titles for 'Installing GCC' pages.
15839
15840 2019-06-06 Martin Liska <mliska@suse.cz>
15841
15842 * ipa-icf-gimple.h (dump_message_1): Remove.
15843 (dump_message): Likewise.
15844 (return_false_with_message_1): Print also file.
15845 (return_false_with_msg): Likewise.
15846 (return_with_result): Likewise.
15847 (return_with_debug): Likewise.
15848 * ipa-icf.c (sem_function::equals_private): Remove call
15849 to dump_message.
15850
15851 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15852
15853 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15854 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15855 memory operand for it.
15856 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15857
15858 2019-06-05 Martin Sebor <msebor@redhat.com>
15859
15860 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15861 Adjust quoting and hyphenation.
15862 * convert.c (convert_to_real_1): Same.
15863 * gcc.c (driver_wrong_lang_callback): Same.
15864 (driver::handle_unrecognized_options): Same.
15865 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15866 * opts-common.c (cmdline_handle_error): Same.
15867 (read_cmdline_option): Same.
15868 * opts-global.c (complain_wrong_lang): Same.
15869 (print_ignored_options): Same.
15870 (handle_common_deferred_options): Same.
15871 * pretty-print.h: Same.
15872 * print-rtl.c (debug_bb_n_slim): Same.
15873 * sched-rgn.c (make_pass_sched_fusion): Same.
15874 * tree-cfg.c (verify_gimple_assign_unary): Same.
15875 (verify_gimple_label): Same.
15876 * tree-ssa-operands.c (verify_ssa_operands): Same.
15877 * varasm.c (do_assemble_alias): Same.
15878 (assemble_alias): Same.
15879
15880 2019-06-05 Richard Henderson <rth@twiddle.net>
15881
15882 * config/alpha/alpha.c (direct_return): Move down after
15883 struct machine_function definition; use saved frame_size;
15884 return bool.
15885 (struct machine_function): Add sa_mask, sa_size, frame_size.
15886 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15887 (alpha_compute_frame_layout): ... new function.
15888 (TARGET_COMPUTE_FRAME_LAYOUT): New.
15889 (alpha_initial_elimination_offset): Use saved sa_size.
15890 (alpha_vms_initial_elimination_offset): Likewise.
15891 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15892 (alpha_expand_prologue): Use saved frame data. Merge integer
15893 and fp register save loops.
15894 (alpha_expand_epilogue): Likewise.
15895 (alpha_start_function): Use saved frame data.
15896 * config/alpha/alpha-protos.h (direct_return): Update.
15897 (alpha_sa_size): Remove.
15898
15899 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
15900
15901 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15902 multiplication by a power-of-two value.
15903 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15904 and turn the modulo operation into a masking operation.
15905
15906 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15907
15908 PR debug/90733
15909 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15910 with VOIDmode inner operands.
15911
15912 2019-06-05 Richard Biener <rguenther@suse.de>
15913
15914 PR middle-end/90726
15915 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15916 turn an expression graph into a tree.
15917
15918 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15919
15920 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15921 member.
15922 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15923 treat it like explicit monotonic schedule modifier.
15924 (expand_omp_for): Initialize has_lastprivate_conditional.
15925 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15926 schedule modifier.
15927
15928 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15929 references, lookup in in hash map MEM_REF operand instead of the
15930 MEM_REF itself.
15931 (lower_omp_1): When looking for lastprivate conditional assignments,
15932 handle MEM_REFs with REFERENCE_TYPE operands.
15933
15934 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15935 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15936 and references a VLA. Handle references to non-VLAs if is_simd
15937 all privatization clauses like reductions.
15938 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15939 If omp_is_reference, use always omp simd arrays and set
15940 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15941 fails, emit reference initialization.
15942
15943 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15944
15945 PR target/89803
15946 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
15947 _mm_mask_fpclass_sd_mask): New intrinsics.
15948 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
15949 * config/i386/i386-builtin.def
15950 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
15951 New builtins.
15952 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
15953 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
15954 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
15955 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
15956 case QI_FTYPE_V2SF_INT): Ditto.
15957 * config/i386/sse.md
15958 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
15959 Extended to insnstructions with mask operands.
15960
15961 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15962
15963 * config/rs6000/constraints.md (define_register_constraint "wp"):
15964 Delete.
15965 (define_register_constraint "wq"): Delete.
15966 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15967 (rs6000_init_hard_regno_mode_ok): Adjust.
15968 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15969 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
15970 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
15971 (define_mode_attr VSa): Delete.
15972 (define_mode_attr VSisa): New.
15973 (rest of file): Adjust.
15974 * doc/md.texi (Machine Constraints): Adjust.
15975
15976 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15977
15978 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
15979 (define_attr "enabled"): Handle those new isa values.
15980
15981 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15982
15983 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
15984 (define_mode_attr VSr5): Delete.
15985 (define_mode_attr VStype_sqrt): Delete.
15986 (define_mode_iterator VSX_SPDP): Delete.
15987 (define_mode_attr VS_spdp_res): Delete.
15988 (define_mode_attr VS_spdp_insn): Delete.
15989 (define_mode_attr VS_spdp_type): Delete.
15990 (*vsx_sqrt<mode>2): Adjust.
15991 (vsx_<VS_spdp_insn>): Delete, split to...
15992 (vsx_xscvdpsp): ... this. New. And...
15993 (vsx_xvcvspdp): ... this. New. And...
15994 (vsx_xvcvdpsp): ... this. New.
15995
15996 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
15997
15998 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
15999 and V2DF.
16000 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16001 (rest of file): Adjust.
16002
16003 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16004
16005 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16006 (vsx_extract_<mode>_var): Ditto.
16007
16008 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16009
16010 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16011 with just "wa".
16012
16013 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16014
16015 * config/rs6000/constraints.md (define_register_constraint "ww"):
16016 Delete.
16017 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16018 (rs6000_init_hard_regno_mode_ok): Adjust.
16019 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16020 RS6000_CONSTRAINT_ww.
16021 * config/rs6000/rs6000.md: Adjust.
16022 * config/rs6000/vsx.md: Adjust.
16023 * doc/md.texi (Machine Constraints): Adjust.
16024
16025 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16026
16027 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16028 (define_mode_attr sd): New.
16029 (define_mode_attr s): New.
16030 (define_mode_attr Ftrad): Delete.
16031 (define_mode_attr Fvsx): Delete.
16032 (define_mode_attr Fs): Delete.
16033 (rest of file): Use the new mode attributes.
16034 * config.rs6000/vsx.md: Use the new mode attributes.
16035
16036 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16037
16038 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16039 with just "wa".
16040
16041 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16042
16043 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16044 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16045 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16046
16047 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16048
16049 PR target/78263
16050 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16051 C++ with strict ANSI requirements.
16052
16053 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16054
16055 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16056 computations when step is 1.
16057
16058 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16059
16060 * config/rs6000/constraints.md (define_register_constraint "wf"):
16061 Delete.
16062 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16063 (rs6000_init_hard_regno_mode_ok): Adjust.
16064 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16065 RS6000_CONSTRAINT_wf.
16066 * config/rs6000/rs6000.md: Adjust.
16067 * config/rs6000/vsx.md: Adjust.
16068 * doc/md.texi (Machine Constraints): Adjust.
16069
16070 2019-06-04 Andrew Pinski <apinski@marvell.com>
16071
16072 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16073 Fix ILP32 value.
16074
16075 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16076
16077 * config/rs6000/constraints.md (define_register_constraint "wd"):
16078 Delete.
16079 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16080 (rs6000_init_hard_regno_mode_ok): Adjust.
16081 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16082 RS6000_CONSTRAINT_wd.
16083 * config/rs6000/rs6000.md: Adjust.
16084 * config/rs6000/vsx.md: Adjust.
16085 * doc/md.texi (Machine Constraints): Adjust.
16086
16087 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16088
16089 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16090 (rest of file): Adjust.
16091
16092 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16093
16094 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16095 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16096 (vsx_splat_<mode>_reg): Adjust.
16097
16098 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16099
16100 * config/rs6000/constraints.md (define_register_constraint "ws"):
16101 Delete.
16102 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16103 (rs6000_init_hard_regno_mode_ok): Adjust.
16104 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16105 RS6000_CONSTRAINT_ws.
16106 * config/rs6000/rs6000.md: Adjust.
16107 * config/rs6000/vsx.md: Adjust.
16108 * doc/md.texi (Machine Constraints): Adjust.
16109
16110 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16111
16112 * config/rs6000/constraints.md (define_register_constraint "wv"):
16113 Delete.
16114 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16115 (rs6000_init_hard_regno_mode_ok): Adjust.
16116 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16117 RS6000_CONSTRAINT_wv.
16118 * config/rs6000/rs6000.md: Adjust.
16119 * config/rs6000/vsx.md: Adjust.
16120 * doc/md.texi (Machine Constraints): Adjust.
16121
16122 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16123
16124 * config/rs6000/constraints.md (define_register_constraint "wi"):
16125 Delete.
16126 (define_register_constraint "wt"): Delete.
16127 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16128 (rs6000_init_hard_regno_mode_ok): Adjust.
16129 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16130 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16131 * config/rs6000/rs6000.md: Adjust.
16132 * config/rs6000/vsx.md: Adjust.
16133 * doc/md.texi (Machine Constraints): Adjust.
16134
16135 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16136
16137 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16138 const.
16139 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16140 default_elf_asm_output_external.
16141
16142 2019-06-04 Martin Liska <mliska@suse.cz>
16143
16144 * ipa-icf.c (INCLUDE_LIST): Remove.
16145 (sem_item_optimizer::execute): Remove call to init_wpa.
16146 * ipa-icf.h (init_wpa): Remove.
16147
16148 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16149
16150 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16151 conditional on combined for simd.
16152 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16153 member.
16154 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16155 constructs, don't remove lastprivate_conditional_map, but instead set
16156 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16157 to parent construct temporaries.
16158 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16159 like !ctx->lastprivate_conditional_map.
16160 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16161 use up->outer context instead of up.
16162 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16163 gimple_omp_for_combined_p.
16164 (expand_omp_for_static_nochunk): Likewise.
16165 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16166 probably moved over into expand_omp_for_generic rather than being copied
16167 there.
16168
16169 2019-06-04 Martin Liska <mliska@suse.cz>
16170
16171 * value-prof.c (dump_histogram_value): Fix typo.
16172 (gimple_mod_subtract_transform): Likewise.
16173
16174 2019-06-04 Richard Biener <rguenther@suse.de>
16175
16176 PR middle-end/90726
16177 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16178 (tree_contains_chrecs): Likewise.
16179 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16180 exponential behaivor from ...
16181 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16182 ... here.
16183 (expression_expensive_p): Avoid exponential behavior and compute
16184 expanded size, rejecting any expansion.
16185 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16186 (idx_contains_abnormal_ssa_name_p): Likewise.
16187 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16188 (contains_abnormal_ssa_name_p): Simplify and use
16189 walk_tree_without_duplicates.
16190
16191 2019-06-04 Richard Biener <rguenther@suse.de>
16192
16193 PR tree-optimization/90738
16194 Revert
16195 2019-06-03 Richard Biener <rguenther@suse.de>
16196
16197 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16198 full reference tree and record in ref->ref.
16199 (vn_reference_lookup_3): Pass in original ref to
16200 ao_ref_init_from_vn_reference.
16201 (vn_reference_lookup): Likewise.
16202 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16203 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16204 Handle non-decl bases in the original reference.
16205
16206 2019-06-04 Martin Liska <mliska@suse.cz>
16207
16208 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16209 number of references.
16210 (sem_item_optimizer::do_congruence_step):
16211 (sem_item_optimizer::worklist_push): Dump how references
16212 a class has.
16213 (sem_item_optimizer::worklist_pop): Use heap.
16214 (sem_item_optimizer::process_cong_reduction): Likewise.
16215 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16216
16217 2019-06-04 Martin Liska <mliska@suse.cz>
16218
16219 * ipa-icf.h (struct sem_usage_pair_hash): New.
16220 (sem_usage_pair_hash::hash): Likewise.
16221 (sem_usage_pair_hash::equal): Likewise.
16222 (struct sem_usage_hash): Likewise.
16223 * ipa-icf.c (sem_item::sem_item): Initialize
16224 referenced_by_count.
16225 (sem_item::add_reference): Register a reference
16226 in ref_map and not in target->usages.
16227 (sem_item::setup): Remove initialization of
16228 dead vectors.
16229 (sem_item::~sem_item): Remove usage of dead vectors.
16230 (sem_item::dump): Remove dump of references.
16231 (sem_item_optimizer::sem_item_optimizer): Initialize
16232 m_references.
16233 (sem_item_optimizer::read_section): Remove useless
16234 dump.
16235 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16236 (sem_item_optimizer::build_graph): Pass m_references
16237 to ::add_reference.
16238 (sem_item_optimizer::verify_classes): Remove usage of dead
16239 vectors.
16240 (sem_item_optimizer::traverse_congruence_split): Return true
16241 when a class is split.
16242 (sem_item_optimizer::do_congruence_step_for_index): Use
16243 hash_map for look up of (sem_item *, index). That brings
16244 significant speed up.
16245 (sem_item_optimizer::do_congruence_step): Return true
16246 when a split is done.
16247 (congruence_class::is_class_used): Use referenced_by_count.
16248
16249 2019-06-04 Alan Modra <amodra@gmail.com>
16250
16251 PR target/90689
16252 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16253 error.
16254
16255 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16256
16257 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16258 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16259 (rs6000_secondary_reload_simple_move): Adjust.
16260 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16261 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16262 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16263 comment.
16264 (power6x): Adjust.
16265 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16266 (floatunssi<mode>2_lfiwzx): Adjust.
16267 (fix_trunc<mode>si2_stfiwx): Adjust.
16268 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16269 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16270 (mfpgpr): Mark as deprecated.
16271 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16272 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16273 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16274
16275 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16276
16277 * config/rs6000/constraints.md (define_register_constraint "wg"):
16278 Delete.
16279 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16280 RS6000_CONSTRAINT_wg.
16281 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16282 (rs6000_init_hard_regno_mode_ok): Adjust.
16283 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16284 Delete "wg" alternatives.
16285 * doc/md.texi (Machine Constraints): Adjust.
16286
16287 2019-06-03 Alan Modra <amodra@gmail.com>
16288
16289 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16290 (get_uncond_jump_length): Assert length less than INT_MAX and
16291 non-negative.
16292
16293 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16294
16295 PR middle-end/64242
16296 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16297 block.
16298 (expand_builtin_nonlocal_goto): Likewise.
16299
16300 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16301
16302 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16303 (aarch64_asm_output_external): Declare.
16304 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16305 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16306 (aarch64_asm_output_alias): New.
16307 (aarch64_asm_output_external): New.
16308 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16309 (ASM_OUTPUT_EXTERNAL): Define.
16310
16311 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16312 * tree-vrp.h (value_range_base::nonzero_p): New.
16313 (value_range_base::set_nonnull): Rename to...
16314 (value_range_base::set_nonzero): ...this.
16315 (value_range_base::set_null): Rename to...
16316 (value_range_base::set_zero): ...this.
16317 (value_range::set_nonnull): Remove.
16318 (value_range::set_null): Remove.
16319 * tree-vrp.c (range_is_null): Remove.
16320 (range_is_nonnull): Remove.
16321 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16322 instead of range_is_*null.
16323 (extract_range_from_unary_expr): Same.
16324 (value_range_base::set_nonnull): Rename to...
16325 (value_range_base::set_nonzero): ...this.
16326 (value_range::set_nonnull): Remove.
16327 (value_range_base::set_null): Rename to...
16328 (value_range_base::set_zero): ...this.
16329 (value_range::set_null): Remove.
16330 (extract_range_from_binary_expr): Rename set_*null uses to
16331 set_*zero.
16332 (extract_range_from_unary_expr): Same.
16333 (union_helper): Same.
16334 * vr-values.c (get_value_range): Use set_*zero instead of
16335 set_*null.
16336 (vr_values::extract_range_from_binary_expr): Same.
16337 (vr_values::extract_range_basic): Same.
16338
16339 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16340
16341 PR driver/90684
16342 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16343
16344 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16345
16346 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16347 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16348 Rename to...
16349 (aarch64_<su>abd<mode>_3): ... This.
16350 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16351
16352 2019-06-03 Richard Biener <rguenther@suse.de>
16353
16354 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16355 full reference tree and record in ref->ref.
16356 (vn_reference_lookup_3): Pass in original ref to
16357 ao_ref_init_from_vn_reference.
16358 (vn_reference_lookup): Likewise.
16359 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16360 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16361 Handle non-decl bases in the original reference.
16362
16363 2019-06-03 Martin Liska <mliska@suse.cz>
16364
16365 * doc/generic.texi: Remove Java Trees.
16366
16367 2019-06-03 Martin Liska <mliska@suse.cz>
16368
16369 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16370 returns 0 when operands are equal.
16371
16372 2019-06-03 Richard Biener <rguenther@suse.de>
16373
16374 PR tree-optimization/90716
16375 * tree-loop-distribution.c (destroy_loop): Process blocks in
16376 correct order.
16377
16378 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16379
16380 PR target/88837
16381 * vector-builder.h (vector_builder::count_dups): New method.
16382 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16383 Declare prototype.
16384 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16385 (vec_init<mode><Vel>): New pattern.
16386 * config/aarch64/aarch64.c (emit_insr): New function.
16387 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16388 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16389 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16390 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16391
16392 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16393
16394 PR tree-optimization/90681
16395 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16396 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16397 special case for SLP, but fail on non-groupped loads.
16398
16399 2019-06-03 Martin Liska <mliska@suse.cz>
16400
16401 * cfg.c (debug): Use TDF_DETAILS for debug and
16402 print edge info only once.
16403
16404 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16405
16406 PR fortran/90539
16407 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16408
16409 2019-06-01 Martin Sebor <msebor@redhat.com>
16410
16411 PR middle-end/90694
16412 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16413
16414 2019-05-31 Jan Hubicka <jh@suse.cz>
16415
16416 * alias.c: Include ipa-utils.h.
16417 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16418 * ipa-devirt.c (prevailing_odr_type): New.
16419 * ipa-utils.h (previaling_odr_type): Declare.
16420
16421 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16422 Hongtao Liu <hongtao.liu@intel.com>
16423
16424 PR target/89355
16425 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16426 NOTE_INSN_DELETED_LABEL check.
16427
16428 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16429 Robert Suchanek <robert.suchanek@mips.com>
16430
16431 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16432 and 3rd operands of the fmadd/fmsub/maddv builtin.
16433
16434 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16435
16436 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16437 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16438 on OMP_SIMD if not nested inside of worksharing loop that also has
16439 lastprivate conditional clause for the same decl.
16440 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16441 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16442 on simd.
16443 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16444 on simd construct.
16445 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16446 on simd construct.
16447 (lower_lastprivate_clauses): Likewise.
16448 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16449 calling lower_rec_input_clauses.
16450 (lower_omp_for): Likewise.
16451 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16452 clause on simd construct.
16453 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16454 OMP_CLAUSE__CONDTEMP_ clause is present.
16455
16456 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16457 ivar and lvar.
16458
16459 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16460
16461 PR c/43673
16462 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16463 TEX_D32, TEX_D64 or TEX_D128.
16464
16465 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16466
16467 * match.pd (~(vec?cst1:cst2)): New transformation.
16468
16469 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16470
16471 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16472 ((size_t)(A /[ex] B) CMP C): New transformation.
16473
16474 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16475
16476 * doc/md.texi: Document define_insn_and_rewrite.
16477 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16478 * gensupport.c (queue_elem): Update comment.
16479 (replace_operands_with_dups): New function.
16480 (gen_rewrite_sequence): Likewise.
16481 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16482 * read-rtl.c (apply_subst_iterator): Likewise.
16483 (add_condition_to_rtx, named_rtx_p): Likewise.
16484 (rtx_reader::read_rtx_operand): Likewise.
16485 * config/aarch64/aarch64-sve.md
16486 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16487 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16488 define_insn_and_rewrite.
16489 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16490 Remove separate define_split.
16491
16492 2019-05-31 Jan Hubicka <jh@suse.cz>
16493
16494 * tree-ssa-alias.c (type_has_components_p): New function.
16495 (aliasing_component_refs_p): Use it.
16496
16497 2019-05-31 Martin Liska <mliska@suse.cz>
16498
16499 * gdbhooks.py: Add const_tree to TreePrinter.
16500
16501 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16502
16503 PR debug/86964
16504 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16505 * doc/invoke.texi (Debugging Options): Document new default of
16506 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16507
16508 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16509
16510 PR tree-optimization/90671
16511 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16512 template_block used to be empty on the first call, don't use
16513 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16514 seq with bb_seq and set it with set_bb_seq.
16515
16516 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16517
16518 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16519
16520 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16521 Michael Meissner <meissner@linux.ibm.com>
16522
16523 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16524 (prefixed_mem_operand): Likewise.
16525 (non_prefixed_mem_operand): Likewise.
16526 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16527 prototype.
16528 * config/rs6000/rs6000.c (print_operand_address): Handle
16529 PC-relative addresses.
16530 (mode_supports_prefixed_address_p): New function.
16531 (rs6000_prefixed_address): New function.
16532 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16533 (SYMBOL_REF_PCREL_P): Likewise.
16534
16535 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16536
16537 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16538 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16539 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16540 is nested inside of parallel region, add _condtemp_ clause to both.
16541 * tree-nested.c (convert_nonlocal_omp_clauses,
16542 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16543 assertion failure.
16544 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16545 member.
16546 * omp-general.c (omp_extract_for_data): Compute it.
16547 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16548 (lower_rec_input_clauses): Likewise.
16549 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16550 clause is already present, just add one further one after it.
16551 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16552 (lower_send_shared_vars): Clear _condtemp_ vars.
16553 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16554 or section or taskgroup.
16555 * omp-expand.c (determine_parallel_type): Disallow combining only if
16556 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16557 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16558 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16559 expand_omp_for_static_chunk, expand_omp_for): Use
16560 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16561 determine if a special set of API routines are needed and if condtemp
16562 needs to be initialized, while always initialize cond_var if
16563 fd->lastprivate_conditional is non-zero.
16564
16565 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16566 Michael Meissner <meissner@linux.ibm.com>
16567
16568 * config/rs6000/constraints.md (eI): New constraint.
16569 * config/rs6000/predicates.md (cint34_operand): New predicate.
16570 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16571 (SIGNED_34BIT_OFFSET_P): Likewise.
16572 * doc/md.texi (eI): Document constraint.
16573
16574 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16575
16576 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16577
16578 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16579 Michael Meissner <meissner@linux.ibm.com>
16580
16581 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16582 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16583 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16584 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16585 (OTHER_FUTURE_MASKS): Likewise.
16586 (POWERPC_MASKS): Likewise.
16587 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16588 specified without -mprefixed-addr or -mcpu=future. Error if
16589 -mprefixed-addr is specified without -mcpu=future.
16590 (rs6000_opt_masks): Add entry for prefixed-addr.
16591 * rs6000.opt (mprefixed-addr): New option.
16592
16593 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16594
16595 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16596 cfun->is_thunk check.
16597
16598 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16599
16600 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16601 to length.
16602
16603 2019-05-30 Martin Liska <mliska@suse.cz>
16604
16605 * gdbinit.in: Fix 'ptc' command. Add trt
16606 that prints TREE_TYPE($).
16607
16608 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16609 Alan Modra <amodra@gmail.com>
16610
16611 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16612 calls here...
16613 (rs6000_indirect_call_template_1): ...and here.
16614 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16615 plt16_ha, plt16_lo, mtctr indirect calls. Use
16616 rs6000_pltseq_enum.
16617 (rs6000_decl_ok_for_sibcall): New function.
16618 (rs6000_function_ok_for_sibcall): Refactor.
16619 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16620 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16621 when pcrel. Reorganize.
16622 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16623 * rs6000.h (rs6000_pltseq_enum): New enum.
16624 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16625 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16626 (*pltseq_plt16_ha): Likewise.
16627 (*pltseq_plt16_lo): Likewise.
16628 (*pltseq_mtctr): Likewise.
16629 (*pltseq_plt_pcrel): New insn.
16630 (*call_local_aix): Handle @notoc calls.
16631 (*call_value_local_aix): Likewise.
16632 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16633 (*call_value_nonlocal_aix): Likewise.
16634 (*call_indirect_pcrel): New insn.
16635 (*call_value_indirect_pcrel): Likewise.
16636
16637 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16638
16639 * config/i386/sse.md (*save_multiple<mode>): Rename from
16640 save_multiple<mode>.
16641 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16642 (*restore_multiple_and_return<mode>): Rename from
16643 restore_multiple_and_return<mode>.
16644 (*restore_multiple_leave_return<mode>): Rename from
16645 restore_multiple_leave_return<mode>.
16646
16647 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16648
16649 * config.gcc (rx-*-linux*): New target.
16650 * config/rx/elf.opt: New file.
16651 * config/rx/linux.h: Likewise.
16652 * config/rx/t-linux: Likewise.
16653 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16654 make it zero.
16655 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16656 (ASM_APP_OFF): Likewise.
16657 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16658 moved elsewhere.
16659
16660 2019-05-29 Jan Hubicka <jh@suse.cz>
16661
16662 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16663 variants are pointer equivalent.
16664
16665 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16666
16667 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16668 * config/aarch64/aarch64-sve2.md: New file.
16669 (<u>avg<mode>3_floor): New pattern.
16670 (<u>avg<mode>3_ceil): Likewise.
16671 (*<sur>h<addsub><mode>): Likewise.
16672 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16673 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16674
16675 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16676
16677 PR bootstrap/90543
16678 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16679 for var_opt_string printing. In cl_optimization_print_diff, print
16680 (null) instead of invoking undefined behavior if one of the
16681 var_opt_string pointers is NULL and use && instead of first || in the
16682 guarding condition. For var_target_other options, handle const char *
16683 target variables similarly to const char * optimize node variables.
16684
16685 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16686
16687 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16688 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16689 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16690 Add autib1716 and pacib1716 initialisation.
16691 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16692 for autib1716 and pacib1716.
16693 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16694 aarch64_post_cfi_startproc): Define.
16695 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16696 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16697 aarch64_handle_pac_ret_protection): Set default sign key to A.
16698 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16699 aarch64_expand_prologue): Add check for b-key.
16700 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16701 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16702 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16703 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16704 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16705 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16706 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16707 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16708 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16709 pauth_hint_num_a with pauth_hint_num.
16710 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16711 pauth_hint_num_a with pauth_hint_num.
16712 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16713 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16714 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16715 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16716 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16717 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16718 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16719 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16720 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16721 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16722 UNSPEC_AUTIA1716 respectively.
16723 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16724 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16725 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16726 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16727 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16728 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16729
16730 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16731
16732 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16733 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16734 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16735 explicit clause on combined parallel into implicit shared clause.
16736 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16737 and firstprivate if the decl has one too from combined parallel to
16738 the worksharing construct.
16739
16740 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16741 Michael Meissner <meissner@linux.ibm.com>
16742
16743 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16744
16745 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16746
16747 * rtl.h (LABEL_REF_P): New #define.
16748
16749 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16750
16751 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16752
16753 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16754
16755 * internal-fn.c: Marked mask_load_direct as vectorizable.
16756 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16757 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16758 combined even if masks different with allow_slp_p param.
16759 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16760 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16761 dissolve SLP-only vectorizable groups when SLP has been discarded.
16762 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16763 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16764 masks.
16765 (vect_build_slp_tree_1): Fixed comment typo.
16766 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16767 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16768 loads for SLP only.
16769 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16770 vectorizable.
16771 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16772
16773 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16774
16775 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16776 Remove obsolete use_thunk reference.
16777 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16778 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16779 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16780 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16781 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16782 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16783 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16784 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16785 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16786
16787 2019-05-28 Nathan Sidwell <nathan@acm.org>
16788
16789 * tree.h (IDENTIFIER_ANON_P): New.
16790 (anon_aggrname_format, anon_aggname_p): Don't declare.
16791 (make_anon_name): Declare.
16792 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16793 (hash_tree): Likewise.
16794 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16795 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16796 (anon_cnt, make_anon_name): New.
16797
16798 2019-05-28 Martin Liska <mliska@suse.cz>
16799
16800 PR other/90315
16801 * opts-global.c (decode_options): Print help for all
16802 help_option_arguments.
16803 * opts.c (print_help): Add new argument.
16804 (common_handle_option): Remember all values into
16805 help_option_arguments.
16806 * opts.h (print_help): Add new argument.
16807
16808 2019-05-28 Martin Liska <mliska@suse.cz>
16809
16810 PR ipa/90555
16811 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16812 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16813 (func_checker::compare_bb): Call compare_loops.
16814
16815 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16816
16817 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16818 on sections construct.
16819 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16820 construct.
16821 (lower_omp_sections): Handle lastprivate conditional.
16822 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16823 lastprivate_conditional_map.
16824 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16825
16826 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16827 critical, taskgroup and section regions when looking for a region
16828 with non-NULL lastprivate_conditional_map.
16829
16830 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16831
16832 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16833 (*ix86_gen_sub3): Ditto.
16834 (*ix86_gen_sub3_carry): Ditto.
16835 (*ix86_gen_one_cmpl2): Ditto.
16836 (*ix86_gen_andsp): Ditto.
16837 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16838 (gen_and2_insn): New static function.
16839 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16840 Use gen_add3_insn instead of ix86_gen_add3.
16841 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16842 instead of ix86_gen_add3.
16843 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16844 Use gen_sub3_insn instead of ix86_gen_sub3.
16845 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16846 instead of ix86_gen_add3.
16847 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16848 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16849 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16850 * config/i386/i386-options.c (ix86_option_override_internal):
16851 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16852 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16853
16854 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16855
16856 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16857 and DW_OP_GNU_const_index opcodes.
16858
16859 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16860
16861 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16862
16863 2019-05-27 Richard Biener <rguenther@suse.de>
16864
16865 PR tree-optimization/90637
16866 * tree-ssa-sink.c (statement_sink_location): Honor the
16867 computed sink location for single-uses.
16868
16869 2019-05-27 Richard Biener <rguenther@suse.de>
16870
16871 PR middle-end/90610
16872 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16873 a bit-insert.
16874
16875 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16876
16877 * config/i386/i386.md (@sub<mode>3_carry): Rename
16878 from sub<mode>3_carry.
16879 (@leave_<mode>): New expander.
16880 (*leave): Rename from leave.
16881 (*leave_rex64): Rename from leave_rex64.
16882 (@monitorx_<mode>): Rename from monitorx_<mode>.
16883 (@clzero_<mode>): Rename from clzero_<mode>.
16884 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16885 from sse3_monitor_<mode>.
16886 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16887 (*ix86_gen_leave): Ditto.
16888 (*ix86_gen_monitor): Ditto.
16889 (*ix86_gen_monitorx): Ditto.
16890 (*ix86_gen_clzero): Ditto.
16891 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16892 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16893 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16894 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16895 Use gen_sse3_monitor instead of ix86_gen_monitor.
16896 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16897 instead of ix86_gen_monitorx.
16898 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16899 instead of ix86_gen_clzero.
16900 * config/i386/i386-options.c (ix86_option_override_internal):
16901 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16902 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16903
16904 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16905
16906 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16907 Rename from tls_global_dynamic_64_<mode>.
16908 (@tls_local_dynamic_base_64_<mode>): Rename from
16909 tls_local_dynamic_base_64_<mode>.
16910 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16911 Remove indirect function.
16912 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16913 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16914 instead of ix86_gen_tls_global_dynamic_64.
16915 Use gen_tls_local_dynamic_base_64 instead of
16916 ix86_gen_tls_local_dynamic_base_64.
16917 * config/i386/i386-options.c (ix86_option_override_internal):
16918 Do not initialize ix86_gen_tls_global_dynamic_64 and
16919 ix86_gen_tls_local_dynamic_base_64.
16920
16921 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16922
16923 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16924 Rename from pro_epilogue_adjust_stack_<mode>_add.
16925 (@pro_epilogue_adjust_stack_sub_<mode>)
16926 Rename from pro_epilogue_adjust_stack_<mode>_sub.
16927 (@allocate_stack_worker_probe_<mode>):
16928 Rename from allocate_stack_worker_probe_<mode>.
16929 (allocate_stack): Use gen_allocate_stack_worker_probe.
16930 (probe_stack): Use gen_probe_stack_1.
16931 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16932 (@adjust_stack_and_probe_<mode>): Rename from
16933 adjust_stack_and_probe<mode>.
16934 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16935 (stack_protect_set): Use gen_stack_protect_set_1.
16936 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16937 (stack_protect_test): Use gen_stack_protect_test_1.
16938 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16939 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16940 Remove indirect function.
16941 (*ix86_gen_adjust_stack_and_probe): Ditto.
16942 (*ix86_gen_probe_stack_range): Ditto.
16943 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16944 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16945 (ix86_adjust_stack_and_probe_stack_clash): Use
16946 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
16947 (ix86_adjust_stack_and_probe): Ditto.
16948 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
16949 of ix86_gen_probe_stack_range.
16950 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
16951 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
16952 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
16953 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
16954 CODE_FOR_stack_protect_test_{si,di}.
16955 * config/i386/i386-options.c (ix86_option_override_internal):
16956 Do not initialize ix86_gen_allocate_stack_worker,
16957 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
16958
16959 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
16960
16961 * doc/invoke.texi (Link Options): Many editorial changes around
16962 -flinker-output.
16963
16964 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16965
16966 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
16967 pre-Solaris 11 referene and most Studio compiler details.
16968
16969 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
16970
16971 PR target/90530
16972 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
16973 DImode to SImode in floating-point registers on 64-bit target.
16974 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
16975 register_operand in xmpyu patterns.
16976
16977 2019-05-24 Jakub Jelinek <jakub@redhat.com>
16978
16979 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
16980 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
16981 OMP_CLAUSE__REDUCTEMP_.
16982 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16983 OMP_CLAUSE__CONDTEMP_.
16984 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
16985 * tree-pretty-print.c (dump_omp_clause): Likewise.
16986 * tree-nested.c (convert_nonlocal_omp_clauses,
16987 convert_local_omp_clauses): Likewise.
16988 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
16989 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
16990 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
16991 on OMP_FOR.
16992 (gimplify_omp_for): Warn and disable conditional modifier from
16993 lastprivate on loop iterators.
16994 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
16995 member.
16996 * omp-general.c (omp_extract_for_data): Initialize it.
16997 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
16998 member.
16999 (delete_omp_context): Delete it.
17000 (lower_lastprivate_conditional_clauses): New function.
17001 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17002 handle lastprivate conditional clauses.
17003 (lower_reduction_clauses): Add CLIST argument, emit it into
17004 the critical section if any.
17005 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17006 lower_reduction_clauses callers.
17007 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17008 to lower_lastprivate_clauses.
17009 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17010 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17011 clist into a critical section if not emitted there already by
17012 lower_reduction_clauses.
17013 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17014 callers.
17015 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17016 conditional variables.
17017 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17018 clause is present.
17019 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17020 expand_omp_for_static_chunk): Handle lastprivate conditional.
17021 (expand_omp_for): Handle fd.lastprivate_conditional like
17022 fd.have_reductemp.
17023
17024 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17025
17026 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17027 kernel does not exit cleanly.
17028 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17029
17030 2019-05-24 Jason Merrill <jason@redhat.com>
17031
17032 Revert:
17033 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17034
17035 2019-05-24 Richard Biener <rguenther@suse.de>
17036
17037 PR testsuite/90607
17038 * tree-loop-distribution.c (struct partition): Add location
17039 member.
17040 (partition_alloc): Initialize all fields.
17041 (generate_memset_builtin): Use the location recorded in the
17042 partition for the generated call.
17043 (generate_memcpy_builtin): Likewise.
17044 (classify_partition): Record the location of a single store
17045 as location for the partition.
17046
17047 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17048
17049 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17050 for lo-part.
17051
17052 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17053
17054 PR target/90588
17055 * common/config/aarch64/aarch64-common.c
17056 (aarch64_rewrite_selected_cpu): Change local temporary variable
17057 type from unsigned long to uint64_t.
17058 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17059 aarch64_get_extension_string_for_isa_flags): Change declaration to
17060 match new definition by replacing unsigned long with uint64_t.
17061
17062 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17063
17064 PR target/90568
17065 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17066 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17067 Handle stack_protect_test_<mode> codegen similarly to corresponding
17068 sub instruction.
17069
17070 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17071
17072 * config/i386/darwin.h: Reject -mfentry*.
17073 * doc/sourcebuild.texi: Document mfentry target support.
17074
17075 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17076
17077 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17078 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17079 false for PC-relative functions.
17080 (rs6000_output_function_prologue): Change called function name to
17081 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17082 name,1" for PC-relative functions.
17083 (rs6000_elf_declare_function_name): Change called function name to
17084 rs6000_global_entry_point_prologue_needed_p.
17085
17086 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17087
17088 PR target/90552
17089 * config/i386/i386.c (gen_rtx_cost):
17090 Use ix86_tune_cost instead of ix86_cost.
17091
17092 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17093 Michael Meissner <meissner@linux.ibm.com>
17094 Segher Boessenkool <segher@kernel.crashing.org>
17095
17096 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17097 OPTION_MASK_PCREL.
17098 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17099 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17100 (rs6000_fndecl_pcrel_p): Likewise.
17101 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17102 error if -mpcrel is requested without -mcpu=future.
17103 (rs6000_opt_masks): Add entry for pcrel.
17104 (rs6000_fndecl_pcrel_p): New function.
17105 (rs6000_pcrel_p): Likewise.
17106 * config/rs6000/rs6000.opt (mpcrel): New option.
17107 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17108
17109 2019-05-23 Jan Hubicka <jh@suse.cz>
17110 Martin Liska <mliska@suse.cz>
17111
17112 PR tree-optimization/90576
17113 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17114 poly_int_tree_p.
17115 (aliasing_component_refs_p): Fix three way size compare conditional;
17116 give up earlier in case we can not decide on equivalence.
17117
17118 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17119 Michael Meissner <meissner@linux.ibm.com>
17120 Segher Boessenkool <segher@kernel.crashing.org>
17121
17122 * config.gcc: Add future cpu.
17123 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17124 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17125 #define.
17126 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17127 (RS6000_CPU): New instantiation for future cpu.
17128 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17129 PROCESSOR_FUTURE.
17130 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17131 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17132 * config/rs6000/rs6000-tables.opt: Regenerate.
17133 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17134 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17135 (rs6000_machine_from_flags): Handle future cpu.
17136 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17137 PROCESSOR_POWER9 for now.
17138 (rs6000_adjust_cost): Likewise.
17139 (rs6000_issue_rate): Likewise.
17140 (rs6000_register_move_cost): Likewise.
17141 (rs6000_opt_masks): Add entry for future.
17142 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17143 (MASK_FUTURE): New #define.
17144 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17145 * config/rs6000/rs6000.opt (mfuture): New target option.
17146 * doc/invoke.texi (mcpu): Add future cpu.
17147
17148 2019-05-23 Martin Liska <mliska@suse.cz>
17149
17150 PR c++/90587
17151 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17152 operation points to a temporary (pointed via tree_to_wide_ref)
17153 that is out of scope after the &.
17154
17155 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17156
17157 PR c++/90592
17158 * doc/extend.texi (Function Names): Add missing word.
17159
17160 2019-05-23 Richard Biener <rguenther@suse.de>
17161
17162 PR tree-optimization/88440
17163 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17164 at -O[2s]+.
17165 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17166 generated call.
17167 (generate_memcpy_builtin): Likewise.
17168 (distribute_loop): Pass in whether to only distribute patterns.
17169 (prepare_perfect_loop_nest): Also allow size optimization.
17170 (pass_loop_distribution::execute): When optimizing a loop
17171 nest for size allow pattern replacement.
17172
17173 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17174
17175 PR target/90568
17176 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17177 of xor.
17178
17179 2019-05-23 Martin Liska <mliska@suse.cz>
17180
17181 PR sanitizer/90570
17182 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17183 expression similarly to gimplify_decl_expr.
17184
17185 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17186
17187 * cse.c (cse_dump_path): s/dump_file/f.
17188
17189 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17190
17191 PR c++/90462
17192 * diagnostic-format-json.cc: Include "selftest.h".
17193 (json_from_expanded_location): Only add "file" key for non-NULL
17194 file strings.
17195 (json_from_location_range): Don't add "start" and "finish"
17196 children if they are UNKNOWN_LOCATION.
17197 (selftest::test_unknown_location): New selftest.
17198 (selftest::test_bad_endpoints): New selftest.
17199 (selftest::diagnostic_format_json_cc_tests): New function.
17200 * json.cc (json::object::get): New function.
17201 (selftest::test_object_get): New selftest.
17202 (selftest::json_cc_tests): Call it.
17203 * json.h (json::object::get): New decl.
17204 * selftest-run-tests.c (selftest::run_tests): Call
17205 selftest::diagnostic_format_json_cc_tests.
17206 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17207 decl.
17208
17209 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17210 Andrew Stubbs <amd@codesourcery.com>
17211
17212 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17213 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17214 (kernel): Rename to...
17215 (main_kernel): ... this.
17216 (load_image): Load _init_array and _fini_array kernels.
17217 (run): Add argument for kernel to run.
17218 (main): Run init_array_kernel before main_kernel, and
17219 fini_array_kernel after.
17220 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17221 amdgpu_hsa_kernel attribute on functions.
17222 (gcn_disable_constructors): Delete.
17223 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17224 * config/gcn/crt0.c (size_t): Define.
17225 (_init_array, _fini_array): New.
17226 (__preinit_array_start, __preinit_array_end,
17227 __init_array_start, __init_array_end,
17228 __fini_array_start, __fini_array_end): Declare weak references.
17229
17230 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17231
17232 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17233
17234 2019-05-22 Jason Merrill <jason@redhat.com>
17235
17236 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17237
17238 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17239
17240 PR target/88483
17241 * config/i386/i386-options.c (ix86_init_machine_status): Set
17242 stack_frame_required to true.
17243 * config/i386/i386.c (ix86_get_frame_size): New function.
17244 (ix86_frame_pointer_required): Replace get_frame_size with
17245 ix86_get_frame_size.
17246 (ix86_compute_frame_layout): Likewise.
17247 (ix86_find_max_used_stack_alignment): Changed to void. Set
17248 stack_frame_required.
17249 (ix86_finalize_stack_frame_flags): Always call
17250 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17251 ix86_get_frame_size.
17252 * config/i386/i386.h (machine_function): Add stack_frame_required.
17253
17254 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17255
17256 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17257
17258 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17259
17260 * common/config/aarch64/aarch64-common.c
17261 (struct aarch64_option_extension, struct processor_name_to_arch,
17262 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17263 aarch64_contains_opt,
17264 aarch64_get_extension_string_for_isa_flags): Change type of
17265 variables storing flags to uint64_t.
17266 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17267 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17268 * config/aarch64/aarch64.c (struct processor,
17269 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17270 aarch64_validate_march, aarch64_override_options,
17271 aarch64_option_print, aarch64_handle_attr_isa_flags,
17272 aarch64_declare_function_name, aarch64_start_file): Make flag
17273 variables uint64_t.
17274 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17275 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17276 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17277 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17278 * config/aarch64/driver-aarch64.c
17279 (struct aarch64_arch_extension, struct aarch64_core_data,
17280 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17281 flag variables uint64_t.
17282 * doc/invoke.texi: Add documentation for new arguments.
17283
17284 2019-05-22 Richard Biener <rguenther@suse.de>
17285
17286 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17287 rewrite ...
17288 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17289
17290 2019-05-22 Martin Liska <mliska@suse.cz>
17291
17292 PR lto/90500
17293 * doc/extend.texi: Document the change.
17294
17295 2019-05-22 Richard Biener <rguenther@suse.de>
17296
17297 PR tree-optimization/90450
17298 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17299 (mem_ref_hasher::equal): Check it.
17300 (mem_ref_alloc): Initialize it.
17301 (gather_mem_refs_stmt): Set it.
17302
17303 2019-05-22 Richard Biener <rguenther@suse.de>
17304
17305 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17306 Add ABS_EXPR.
17307 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17308 as ABSU_EXPR.
17309
17310 2019-05-22 Alan Modra <amodra@gmail.com>
17311
17312 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17313 (ASM_CPU_SPEC): Conditionally add -many.
17314 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17315 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17316 (rs6000_file_start): ..extracted from here, and modified to
17317 test all ISA bits.
17318 (rs6000_output_function_prologue): Emit .machine as necessary.
17319
17320 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17321
17322 PR middle-end/90553
17323 * ira-lives.c (process_bb_node_lives): Consider defs
17324 for a call insn to be die before the call, not after.
17325
17326 * function.c (assign_parm_setup_block): Raise alignment of
17327 stacked parameter only for STRICT_ALIGNMENT targets.
17328
17329 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17330
17331 * config/rs6000/constraints.md (define_register_constraint "wz"):
17332 Delete.
17333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17334 RS6000_CONSTRAINT_wz.
17335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17336 (rs6000_init_hard_regno_mode_ok): Adjust.
17337 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17338 * doc/md.texi (Machine Constraints): Adjust.
17339
17340 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17341
17342 * config/rs6000/constraints.md (define_register_constraint "wl"):
17343 Delete.
17344 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17345 RS6000_CONSTRAINT_wl.
17346 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17347 (rs6000_init_hard_regno_mode_ok): Adjust.
17348 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17349 * doc/md.texi (Machine Constraints): Adjust.
17350
17351 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17352
17353 * config/rs6000/constraints.md (define_register_constraint "wm"):
17354 Delete.
17355 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17356 RS6000_CONSTRAINT_wm.
17357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17358 (rs6000_init_hard_regno_mode_ok): Adjust.
17359 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17360 * doc/md.texi (Machine Constraints): Adjust.
17361
17362 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17363
17364 * config/rs6000/constraints.md (define_register_constraint "wk"):
17365 Delete.
17366 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17367 RS6000_CONSTRAINT_wk.
17368 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17369 (rs6000_init_hard_regno_mode_ok): Adjust.
17370 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17371 * doc/md.texi (Machine Constraints): Adjust.
17372
17373 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17374
17375 * config/rs6000/constraints.md (define_register_constraint "wj"):
17376 Delete.
17377 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17378 RS6000_CONSTRAINT_wj.
17379 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17380 (rs6000_init_hard_regno_mode_ok): Adjust.
17381 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17382 (VS_64dm): Delete.
17383 * config/rs6000/vsx.md: Ditto.
17384 * doc/md.texi (Machine Constraints): Adjust.
17385
17386 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17387
17388 * config/rs6000/constraints.md (define_register_constraint "wh"):
17389 Delete.
17390 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17391 RS6000_CONSTRAINT_wh.
17392 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17393 (rs6000_init_hard_regno_mode_ok): Adjust.
17394 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17395 * doc/md.texi (Machine Constraints): Adjust.
17396
17397 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17398
17399 PR target/90547
17400 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17401 Avoid calling gen_lowpart with CONST operand.
17402
17403 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17404
17405 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17406 field template_last_to_copy.
17407 (ssa_create_duplicates): Set it, and use it. Attempt to
17408 preserve more debug stmts.
17409
17410 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17411
17412 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17413 (signbit<mode>2): New expander
17414
17415 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17416
17417 PR bootstrap/87338
17418 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17419 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17420
17421 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17422
17423 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17424 %ebx and %ecx bafore calling cpuid with leaf 1 or
17425 non-constant leaf argument.
17426
17427 2019-05-21 Alan Modra <amodra@gmail.com>
17428
17429 PR target/90545
17430 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17431 power9 direct move cost.
17432
17433 2019-05-21 Richard Biener <rguenther@suse.de>
17434
17435 PR middle-end/90510
17436 * fold-const.c (fold_read_from_vector): New function.
17437 * fold-const.h (fold_read_from_vector): Declare.
17438 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17439 single-element insert permutations. Canonicalize selector
17440 further and fix issue with last commit.
17441
17442 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17443
17444 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17445 parameter with default value false to declaration.
17446 (split_edges_for_insertion): New inline function. Wrapper for
17447 split_critical_edges with for_edge_insertion_p = true.
17448 * tree-cfg.c (split_critical_edges): Don't split non-critical
17449 edges if for_edge_insertion_p is false. Fix whitespace.
17450 * tree-ssa-pre.c (pass_pre::execute): Call
17451 split_edges_for_insertion instead of split_critical_edges.
17452 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17453 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17454 (pass_data_sink_code): Update function name in the comment.
17455
17456 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17457
17458 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17459 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17460 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17461 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17462 positives.
17463
17464 2019-05-21 Martin Liska <mliska@suse.cz>
17465
17466 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17467 an extra newline.
17468 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17469 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17470 vec_lvsr.
17471 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17472 Quote a C type.
17473 (rs6000_function_arg): Likewise.
17474 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17475 (rs6000_expand_ternop_builtin): Use interval syntax.
17476 (get_element_number): Likewise.
17477 (altivec_expand_builtin): Likewise.
17478 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17479
17480 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17481
17482 PR c++/59813
17483 PR target/90418
17484 * function.h (struct function): Add calls_eh_return member.
17485 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17486 gimplifying __builtin_eh_return call.
17487 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17488 to cfun.
17489 (expand_call_inline): Or in src_cfun->calls_eh_return into
17490 dst_cfun->calls_eh_return.
17491 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17492 cfun->calls_eh_return.
17493 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17494 * lto-streamer-out.c (output_struct_function_base): Write
17495 calls_eh_return.
17496
17497 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17498
17499 PR rtl-optimization/43147
17500 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17501 IX86_BUILTIN_SHUFPD.
17502
17503 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17504
17505 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17506 (refs_may_alias_p_1): ... here; update stats.
17507 (refs_may_alias_p): Do not update stats here.
17508
17509 2019-05-20 Richard Biener <rguenther@suse.de>
17510
17511 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17512 doesn't produce pointers.
17513 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17514 the first operand points to.
17515
17516 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17517
17518 * tree-ssa-alias.c (compare_sizes): New function.
17519 (sompare_type_sizes): New function
17520 (aliasing_component_refs_p): Use it.
17521 (indirect_ref_may_alias_decl_p): Likewise.
17522
17523 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17524
17525 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17526
17527 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17528
17529 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17530 (LIBLSAN_EARLY_SPEC): Likewise.
17531 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17532
17533 2019-05-20 Martin Liska <mliska@suse.cz>
17534
17535 * config/i386/i386.c (ix86_libc_has_fast_function):
17536 Add ATTRIBUTE_UNUSED for the argument.
17537
17538 2019-05-20 Richard Biener <rguenther@suse.de>
17539
17540 * gimple-match-head.c: Include vec-perm-indices.h.
17541 * generic-match-head.c: Likewise.
17542 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17543 is included.
17544 * fold-const.c (fold_vec_perm): Export.
17545 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17546 (match.pd): ...here.
17547
17548 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17549
17550 * cfgloop.h (struct loop): Add simdlen member.
17551 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17552 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17553 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17554 as new argument to autovectorize_vector_sizes target hook. If
17555 loop->simdlen, pick up vector size where the vectorization factor
17556 is equal to loop->simd, and if there is none, fall back to the first
17557 successful one.
17558 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17559 caller.
17560 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17561 * omp-general.c (omp_max_vf): Likewise.
17562 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17563 * tree-vect-slp.c (vect_slp_bb): Likewise.
17564 * target.def (autovectorize_vector_sizes): Add ALL argument and
17565 document it.
17566 * doc/tm.texi: Adjust documentation.
17567 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17568 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17569 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17570 bool argument.
17571 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17572 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17573 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17574 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17575 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17576 preferred vector size is not 512-bit or 256-bit, just put those
17577 unpreferred ones last.
17578
17579 2019-05-20 Martin Liska <mliska@suse.cz>
17580
17581 * targhooks.c (default_libc_has_fast_function): New function.
17582 * targhooks.h (default_libc_has_fast_function): Likewise.
17583
17584 2019-05-20 Martin Liska <mliska@suse.cz>
17585
17586 PR middle-end/90263
17587 * builtins.c (expand_builtin_memory_copy_args): When having a
17588 target with fast mempcpy implementation do now use memcpy.
17589 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17590 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17591 * doc/tm.texi: Likewise.
17592 * doc/tm.texi.in: Likewise.
17593 * target.def:
17594 * expr.c (emit_block_move_hints): Add 2 new arguments.
17595 * expr.h (emit_block_move_hints): Bail out when libcall
17596 to memcpy would be used.
17597
17598 2019-05-20 Martin Liska <mliska@suse.cz>
17599
17600 * profile-count.c: Add vertical spacing in order
17601 to separate functions.
17602 * profile-count.h: Likewise.
17603
17604 2019-05-20 Martin Liska <mliska@suse.cz>
17605
17606 * profile-count.h: Do not use full qualified
17607 names if possible.
17608 * profile-count.c (profile_count::to_frequency): Likewise.
17609
17610 2019-05-20 Martin Liska <mliska@suse.cz>
17611
17612 * profile-count.h (enum profile_quality): Use capital letters
17613 for enum value names. Use the adjusted names.
17614 * profile-count.c: Use the adjusted names.
17615
17616 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17617
17618 * config/rs6000/constraints.md (define_register_constraint "wH"):
17619 Delete.
17620 (define_register_constraint "wI"): Delete.
17621 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17622 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17623 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17624 (rs6000_init_hard_regno_mode_ok): Adjust.
17625 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17626 resp. "d", or with "wa" as appropriate, all with "p8v".
17627 * config/rs6000/vsx.md: Ditto.
17628 * doc/md.texi (Machine Constraints): Adjust.
17629
17630 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17631
17632 * config/rs6000/constraints.md (define_register_constraint "wy"):
17633 Delete.
17634 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17635 RS6000_CONSTRAINT_wy.
17636 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17637 (rs6000_init_hard_regno_mode_ok): Adjust.
17638 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17639 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17640 (define_mode_attr Fisa): New.
17641 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17642 * doc/md.texi (Machine Constraints): Adjust.
17643
17644 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17645
17646 * config/rs6000/constraints.md (define_register_constraint "wu"):
17647 Delete.
17648 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17649 RS6000_CONSTRAINT_wu.
17650 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17651 (rs6000_init_hard_regno_mode_ok): Adjust.
17652 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17653 both with "p8v".
17654 (define_mode_attr Fa): Delete.
17655 * config/rs6000/vsx.md: Ditto.
17656 * doc/md.texi (Machine Constraints): Adjust.
17657
17658 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17659
17660 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17661 Delete.
17662 (define_register_constraint "wK"): Delete.
17663 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17664 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17666 (rs6000_init_hard_regno_mode_ok): Adjust.
17667 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17668 Replace "wK" constraint by "wH" with "p9v".
17669 * config/rs6000/vsx.md: Ditto.
17670 * doc/md.texi (Machine Constraints): Adjust.
17671
17672 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17673
17674 * config/rs6000/constraints.md (define_register_constraint "wb"):
17675 Delete.
17676 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17677 RS6000_CONSTRAINT_wb.
17678 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17679 (rs6000_init_hard_regno_mode_ok): Adjust.
17680 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17681 * config/rs6000/vsx.md: Ditto.
17682 * doc/md.texi (Machine Constraints): Adjust.
17683
17684 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17685
17686 * config/rs6000/constraints.md (define_register_constraint "wo"):
17687 Delete.
17688 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17689 RS6000_CONSTRAINT_wo.
17690 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17691 (rs6000_init_hard_regno_mode_ok): Adjust.
17692 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17693 * config/rs6000/altivec.md: Ditto.
17694 * doc/md.texi (Machine Constraints): Adjust.
17695
17696 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17697
17698 * config/darwin-c.c (darwin_register_objc_includes): Do not
17699 prepend the sysroot when building gnu-runtime header search
17700 paths.
17701
17702 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17703
17704 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17705 instead of direct output of the asm.
17706
17707 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17708
17709 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17710 argument to be type bool (was int before).
17711 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17712 at first use. Use type bool for some variables. Fix a theoretical
17713 eh_return bug for svr4.
17714
17715 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17716
17717 * config/rs6000/rs6000.md (isa): New attribute.
17718 (enabled): New attribute.
17719
17720 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17721
17722 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17723 assemble_start_function and assemble_end_function.
17724
17725 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17726
17727 PR middle-end/89433
17728 * omp-general.c (oacc_verify_routine_clauses): Change formal
17729 parameters. Add checking if already marked with an OpenACC
17730 'routine' directive. Adjust all users.
17731
17732 PR middle-end/89433
17733 * omp-general.c (oacc_build_routine_dims): Move some of its
17734 processing into...
17735 (oacc_verify_routine_clauses): ... this new function.
17736 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17737
17738 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17739
17740 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17741 formating of picbase labels to match other ports.
17742
17743 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17744
17745 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17746 in the generated code.
17747
17748 2019-05-16 Martin Sebor <msebor@redhat.com>
17749
17750 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17751 identifiers, keywords, operators, and types in diagnostics. Correct
17752 quoting, spelling, and sentence capitalization issues.
17753 (expand_builtin_atomic_is_lock_free): Same.
17754 (fold_builtin_next_arg): Same.
17755 * cfgexpand.c (expand_one_var): Same.
17756 (tree_conflicts_with_clobbers_p): Same.
17757 (expand_asm_stmt): Same.
17758 (verify_loop_structure): Same.
17759 * cgraphunit.c (process_function_and_variable_attributes): Same.
17760 * collect-utils.c (collect_execute): Same.
17761 * collect2.c (maybe_run_lto_and_relink): Same.
17762 (is_lto_object_file): Same.
17763 (scan_prog_file): Same.
17764 * convert.c (convert_to_real_1): Same.
17765 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17766 * except.c (verify_eh_tree): Same.
17767 * gcc.c (execute): Same.
17768 (eval_spec_function): Same.
17769 (run_attempt): Same.
17770 (driver::set_up_specs): Same.
17771 (compare_debug_auxbase_opt_spec_function): Same.
17772 * gcov-tool.c (unlink_gcda_file): Same.
17773 (do_merge): Same.
17774 (do_rewrite): Same.
17775 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17776 * gimplify.c (gimplify_asm_expr): Same.
17777 (gimplify_adjust_omp_clauses): Same.
17778 * hsa-gen.c (gen_hsa_addr_insns): Same.
17779 (gen_hsa_insns_for_load): Same.
17780 (gen_hsa_cmp_insn_from_gimple): Same.
17781 (gen_hsa_insns_for_operation_assignment): Same.
17782 (gen_get_level): Same.
17783 (gen_hsa_alloca): Same.
17784 (omp_simple_builtin::generate): Same.
17785 (gen_hsa_atomic_for_builtin): Same.
17786 (gen_hsa_insns_for_call): Same.
17787 * input.c (dump_location_info): Same.
17788 * ipa-devirt.c (compare_virtual_tables): Same.
17789 * ira.c (ira_setup_eliminable_regset): Same.
17790 * lra-assigns.c (lra_assign): Same.
17791 * lra-constraints.c (lra_constraints): Same.
17792 * lto-streamer-in.c (lto_input_mode_table): Same.
17793 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17794 (merge_and_complain): Same.
17795 (compile_offload_image): Same.
17796 (compile_images_for_offload_targets): Same.
17797 (debug_objcopy): Same.
17798 (run_gcc): Same.
17799 (main): Same.
17800 * opts.c (print_specific_help): Same.
17801 (parse_no_sanitize_attribute): Same.
17802 (print_help): Same.
17803 (handle_param): Same.
17804 * plugin.c (add_new_plugin): Same.
17805 (parse_plugin_arg_opt): Same.
17806 (try_init_one_plugin): Same.
17807 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17808 operators, and types in diagnostics. Correct quoting and spelling
17809 issues.
17810 * read-rtl-function.c (parse_edge_flag_token): Same.
17811 (function_reader::parse_enum_value): Same.
17812 * reg-stack.c (check_asm_stack_operands): Same.
17813 * regcprop.c (validate_value_data): Same.
17814 * sched-rgn.c (make_pass_sched_fusion): Same.
17815 * stmt.c (check_unique_operand_names): Same.
17816 * targhooks.c (default_target_option_pragma_parse): Same.
17817 * tlink.c (recompile_files): Same.
17818 * toplev.c (process_options): Same.
17819 (do_compile): Same.
17820 * trans-mem.c (diagnose_tm_1): Same.
17821 (ipa_tm_scan_irr_block): Same.
17822 (ipa_tm_diagnose_transaction): Same.
17823 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17824 format a tree code name in a diagnostic.
17825 (verify_types_in_gimple_min_lval): Same.
17826 (verify_types_in_gimple_reference): Same.
17827 (verify_gimple_call): Same.
17828 (verify_gimple_assign_unary): Same.
17829 (verify_gimple_assign_binary): Same.
17830 (verify_gimple_assign_ternary): Same.
17831 (verify_gimple_assign_single): Same.
17832 (verify_gimple_switch): Same.
17833 (verify_gimple_label): Same.
17834 (verify_gimple_phi): Same.
17835 (verify_gimple_in_seq): Same.
17836 (verify_eh_throw_stmt_node): Same.
17837 (collect_subblocks): Same.
17838 (gimple_verify_flow_info): Same.
17839 (do_warn_unused_result): Same.
17840 * tree-inline.c (expand_call_inline): Same.
17841 * tree-into-ssa.c (update_ssa): Same.
17842 * tree.c (tree_int_cst_elt_check_failed): Same.
17843 (tree_vec_elt_check_failed): Same.
17844 (omp_clause_operand_check_failed): Same.
17845 (verify_type_variant): Same.
17846 (verify_type): Same.
17847 * value-prof.c (verify_histograms): Same.
17848 * varasm.c (assemble_start_function): Same.
17849
17850 2019-05-16 Martin Sebor <msebor@redhat.com>
17851
17852 * config/i386/i386-expand.c (get_element_number): Quote keywords
17853 and other internal names in diagnostics. Adjust other diagnostic
17854 formatting issues noted by -Wformat-diag.
17855 * config/i386/i386-features.c
17856 (ix86_mangle_function_version_assembler_name): Same.
17857 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17858 * config/i386/i386.c (ix86_function_type_abi): Same.
17859 (ix86_function_ms_hook_prologue): Same.
17860 (classify_argument): Same.
17861 (ix86_expand_prologue): Same.
17862 (ix86_md_asm_adjust): Same.
17863 (ix86_memmodel_check): Same.
17864
17865 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17866
17867 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17868 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17869 and fpxx modes.
17870
17871 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17872
17873 PR target/90497
17874 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17875 intrinsics without SSE/SSE2/SSSE3.
17876 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17877 check.
17878 (*mmx_uavgv8qi3): Likewise.
17879
17880 2019-05-17 Richard Biener <rguenther@suse.de>
17881
17882 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17883 VEC_PERM_EXPR as __VEC_PERM with -gimple.
17884
17885 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
17886
17887 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17888 vec_sldw insn pattern.
17889
17890 2019-05-17 Richard Biener <rguenther@suse.de>
17891
17892 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17893
17894 2019-05-17 Martin Liska <mliska@suse.cz>
17895
17896 PR driver/90496
17897 * toplev.c (output_stack_usage): With LTO and sanitizer it
17898 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17899 has no file location.
17900
17901 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17902
17903 PR c++/90484
17904 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17905 sz0 is equal to sz1, instead return false in that case.
17906
17907 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17908 has non-constant expression, force sctx.lane and use two
17909 argument IFN_GOMP_SIMD_LANE instead of single argument.
17910 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17911 two argument IFN_GOMP_SIMD_LANE without lhs.
17912 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17913 member.
17914 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17915 Define.
17916 (LOOP_REQUIRES_VERSIONING): Or in
17917 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17918 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17919 simd_if_cond.
17920 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17921 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17922 from simd if clause if needed.
17923
17924 2019-05-16 Richard Biener <rguenther@suse.de>
17925
17926 * tree-affine.c (expr_to_aff_combination): New function split
17927 out from...
17928 (tree_to_aff_combination): ... here.
17929 (aff_combination_expand): Avoid building a GENERIC tree.
17930
17931 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
17932
17933 * cgraphunit.c (cgraph_node::expand_thunk): Remove
17934 assemble_start_function and assemble_end_function calls.
17935 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17936 assemble_start_function and assemble_end_function.
17937 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17938 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17939 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17940 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17941 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17942 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17943 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17944 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17945 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17946 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17947 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17948 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
17949 Likewise.
17950 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
17951 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
17952 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
17953 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
17954 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17955 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17956 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
17957 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
17958 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17959 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
17960 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17961 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17962 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
17963 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
17964 Likewise.
17965 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17966 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17967 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
17968
17969 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
17970
17971 * tree-ssa-alias.c (alias_stats): Add
17972 aliasing_component_refs_p_may_alias and
17973 aliasing_component_refs_p_no_alias.
17974 (dump_alias_stats): Print aliasing_component_refs_p stats.
17975 (aliasing_component_refs_p): Update stats.
17976
17977 2019-05-16 Martin Liska <mliska@suse.cz>
17978
17979 PR lto/90500
17980 * multiple_target.c (expand_target_clones): Do not allow
17981 target_clones being used with a symbol that is an alias.
17982
17983 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
17984
17985 PR tree-optimization/90394
17986 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
17987 positives rather than ICE for cases where (code2 == NE_EXPR
17988 && code1 == BIT_AND_EXPR).
17989
17990 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17991
17992 PR fortran/90329
17993 * tree-core.h (struct tree_decl_common): Document
17994 decl_nonshareable_flag for PARM_DECLs.
17995 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
17996 * calls.c (expand_call): Don't try tail call if caller
17997 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
17998 passed on the stack and callee needs to pass any arguments on the
17999 stack.
18000 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18001 else if instead of series of mutually exclusive ifs. Handle
18002 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18003 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18004
18005 * lto-streamer.h (LTO_major_version): Bump to 9.
18006
18007 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18008
18009 PR tree-optimization/90106
18010 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18011 new parameter as new internal function call, also move it to new
18012 basic block.
18013 (use_internal_fn): Pass internal function call to
18014 shrink_wrap_one_built_in_call_with_conds.
18015
18016 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18017
18018 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18019 max_vf to 1.
18020 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18021 safelen_int and set loop->dont_vectorize.
18022
18023 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18024
18025 PR target/89021
18026 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18027 SSE/SSE2/SSSE3.
18028 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18029 Likewise.
18030 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18031 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18032 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18033 is defined.
18034
18035 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18036
18037 PR target/89021
18038 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18039 define_insn_and_split to support SSE emulation.
18040 (*vec_extractv2sf_0): Likewise.
18041 (*vec_extractv2sf_1): Likewise.
18042 (*vec_extractv2si_0): Likewise.
18043 (*vec_extractv2si_1): Likewise.
18044 (*vec_extractv2si_zext_mem): Likewise.
18045 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18046 (vec_extractv2sf_1 splitter): Likewise.
18047 (vec_extractv2sfsf): Likewise.
18048 (vec_setv2si): Likewise.
18049 (vec_extractv2si_1 splitter): Likewise.
18050 (vec_extractv2sisi): Likewise.
18051 (vec_setv4hi): Likewise.
18052 (vec_extractv4hihi): Likewise.
18053 (vec_setv8qi): Likewise.
18054 (vec_extractv8qiqi): Likewise.
18055 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18056 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18057 (vec_extractv2sisi): Likewise.
18058 (vec_extractv4hihi): Likewise.
18059 (vec_extractv8qiqi): Likewise.
18060 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18061 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18062 (vec_initv2sisi): Likewise.
18063 (vec_initv4hihi): Likewise.
18064 (vec_initv8qiqi): Likewise.
18065 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18066 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18067 (vec_setv4hi): Likewise.
18068 (vec_setv8qi): Likewise.
18069
18070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18071
18072 PR target/89021
18073 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18074 TARGET_MMX_WITH_SSE.
18075 (MMXMODE:*mov<mode>_internal): Likewise.
18076 (MMXMODE:movmisalign<mode>): Likewise.
18077
18078 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18079
18080 PR target/89021
18081 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18082 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18083 (sse2_cvtpd2pi): Ditto.
18084 (sse2_cvttpd2pi): Ditto.
18085 (*vec_concatv2sf_sse4_1): Ditto.
18086 (*vec_concatv2sf_sse): Ditto.
18087 (*vec_concatv2si_sse4_1): Ditto.
18088 (*vec_concatv2si): Ditto.
18089 (*vec_concatv4si_0): Ditto.
18090 (*vec_concatv2di_0): Ditto.
18091
18092 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18093
18094 PR target/89021
18095 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18096
18097 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18098
18099 PR target/89021
18100 * config/i386/sse.md (ssse3_palignrdi): Changed to
18101 define_insn_and_split to support SSE emulation.
18102
18103 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18104
18105 PR target/89021
18106 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18107
18108 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18109
18110 PR target/89021
18111 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18112 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18113 SSE emulation.
18114
18115 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18116
18117 PR target/89021
18118 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18119 or TARGET_MMX_WITH_SSE.
18120 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18121
18122 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18123
18124 PR target/89021
18125 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18126
18127 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18128
18129 PR target/89021
18130 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18131 Changed to define_insn_and_split to support SSE emulation.
18132
18133 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18134
18135 PR target/89021
18136 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18137 Changed to define_insn_and_split to support SSE emulation.
18138
18139 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18140
18141 PR target/89021
18142 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18143 (*mmx_<emms>): This.
18144 (mmx_<emms>): New expander.
18145
18146 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18147
18148 PR target/89021
18149 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18150 support.
18151 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18152
18153 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18154
18155 PR target/89021
18156 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18157
18158 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18159
18160 PR target/89021
18161 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18162
18163 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18164
18165 PR target/89021
18166 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18167 TARGET_MMX_WITH_SSE.
18168 (*mmx_uavgv4hi3): Add SSE emulation.
18169
18170 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18171
18172 PR target/89021
18173 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18174 and TARGET_MMX_WITH_SSE.
18175 (*mmx_uavgv8qi3): Add SSE emulation.
18176
18177 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18178
18179 PR target/89021
18180 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18181 maskmovdqu for __MMX_WITH_SSE__.
18182
18183 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18184
18185 PR target/89021
18186 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18187 TARGET_MMX and TARGET_MMX_WITH_SSE.
18188 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18189
18190 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18191
18192 PR target/89021
18193 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18194 define_insn_and_split to support SSE emulation.
18195
18196 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18197
18198 PR target/89021
18199 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18200 and TARGET_MMX_WITH_SSE.
18201 (mmx_<code>v8qi3): Likewise.
18202 (smaxmin:<code>v4hi3): New.
18203 (umaxmin:<code>v8qi3): Likewise.
18204 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18205 (umaxmin:*mmx_<code>v8qi3): Likewise.
18206
18207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18208
18209 PR target/89021
18210 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18211 TARGET_MMX_WITH_SSE.
18212 (*mmx_pinsrw): Add SSE emulation.
18213
18214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18215
18216 PR target/89021
18217 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18218
18219 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18220
18221 PR target/89021
18222 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18223 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18224 SSE emulation.
18225
18226 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18227
18228 PR target/89021
18229 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18230 (sse_cvttps2pi): Likewise.
18231
18232 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18233
18234 PR target/89021
18235 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18236 TARGET_MMX_WITH_SSE.
18237 (mmx_pshufw_1): Add SSE emulation.
18238 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18239 TARGET_MMX_WITH_SSE to support SSE emulation.
18240
18241 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18242
18243 PR target/89021
18244 * config/i386/constraints.md (Yw): New constraint.
18245 * config/i386/mmx.md (*vec_dupv2si): Changed to
18246 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18247 support SSE emulation.
18248
18249 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18250
18251 PR target/89021
18252 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18253 TARGET_MMX_WITH_SSE.
18254 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18255 support.
18256 (mmx_gt<mode>3): Likewise.
18257
18258 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18259
18260 PR target/89021
18261 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18262 TARGET_MMX_WITH_SSE. Add SSE support.
18263
18264 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18265
18266 PR target/89021
18267 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18268 TARGET_MMX_WITH_SSE.
18269 (any_logic:<code><mode>3): New.
18270 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18271 Add SSE support.
18272
18273 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18274
18275 PR target/89021
18276 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18277 TARGET_MMX_WITH_SSE. Add SSE emulation.
18278 (mmx_<shift_insn><mode>3): Likewise.
18279 (ashr<mode>3): New.
18280 (<shift_insn><mode>3): Likewise.
18281
18282 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18283
18284 PR target/89021
18285 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18286 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18287
18288 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18289
18290 PR target/89021
18291 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18292 TARGET_MMX_WITH_SSE.
18293 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18294 SSE support.
18295
18296 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18297
18298 PR target/89021
18299 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18300 TARGET_MMX_WITH_SSE.
18301 (mulv4hi3): New.
18302 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18303 support.
18304
18305 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18306
18307 PR target/89021
18308 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18309 (plusminus:mmx_<plusminus_insn><mode>3): Check
18310 TARGET_MMX_WITH_SSE.
18311 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18312 (<plusminus_insn><mode>3): New.
18313 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18314 (*mmx_<plusminus_insn><mode>3): Likewise.
18315
18316 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18317
18318 PR target/89021
18319 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18320 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18321 prototype.
18322 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18323 define_insn_and_split to support SSE emulation.
18324 (mmx_punpcklbw): Likewise.
18325 (mmx_punpckhwd): Likewise.
18326 (mmx_punpcklwd): Likewise.
18327 (mmx_punpckhdq): Likewise.
18328 (mmx_punpckldq): Likewise.
18329
18330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18331 Uros Bizjak <ubizjak@gmail.com>
18332
18333 PR target/89021
18334 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18335 New function.
18336 (ix86_split_mmx_pack): Likewise.
18337 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18338 New prototype.
18339 (ix86_split_mmx_pack): Likewise.
18340 * config/i386/i386.md (mmx_isa): New.
18341 (enabled): Also check mmx_isa.
18342 * config/i386/mmx.md (any_s_truncate): New code iterator.
18343 (s_trunsuffix): New code attr.
18344 (mmx_packsswb): Removed.
18345 (mmx_packssdw): Likewise.
18346 (mmx_packuswb): Likewise.
18347 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18348 MMX packsswb/packuswb with SSE2.
18349 (mmx_packssdw): Likewise.
18350 * config/i386/predicates.md (register_mmxmem_operand): New.
18351
18352 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18353
18354 PR target/89021
18355 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18356 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18357 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18358 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18359 (ix86_vector_mode_supported_p): Likewise.
18360 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18361
18362 2019-05-15 Martin Liska <mliska@suse.cz>
18363
18364 PR middle-end/90478
18365 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18366 Check for overflow.
18367
18368 2019-05-15 Richard Biener <rguenther@suse.de>
18369
18370 * tree-into-ssa.c (pass_build_ssa::execute): Run
18371 update_address_taken before going into SSA.
18372
18373 2019-05-15 Richard Biener <rguenther@suse.de>
18374
18375 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18376 as __BIT_FIELD_REF with type with -gimple.
18377
18378 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18379
18380 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18381 semantically equivalent branches (left over after prior refactorings).
18382
18383 2019-05-15 Richard Biener <rguenther@suse.de>
18384
18385 PR tree-optimization/88828
18386 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18387 bogus check.
18388
18389 2019-05-14 Richard Biener <rguenther@suse.de>
18390
18391 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18392 as __VIEW_CONVERT with -gimple.
18393
18394 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18395
18396 PR target/82920
18397 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18398 Darwin.
18399
18400 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18401
18402 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18403 define_split to become a define_insn_and_split.
18404
18405 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18406
18407 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18408 arguments.
18409 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18410 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18411 (sibcall_epilogue): Adjust.
18412 (epilogue): Adjust.
18413
18414 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18415
18416 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18417 to unsupported ones.
18418 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18419 * config.host: Likewise.
18420 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18421 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18422 __svr4__]: Remove "brand" fallback.
18423 [!KSTAT_DATA_STRING]: Remove.
18424 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18425 to *-*-solaris2*.
18426 (comdat_group): Likewise.
18427 (set_have_as_tls): Likewise.
18428 (gcc_cv_target_dl_iterate_phdr): Likewise.
18429 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18430 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18431 * configure: Regenerate.
18432 * doc/install.texi: Simplify Solaris target triplets.
18433 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18434 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18435 Remove Solaris 10 references.
18436 Remove obsolete Solaris bug reference.
18437 (Specific, sparc-sun-solaris2.10): Remove.
18438
18439 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18440
18441 * config/i386/i386.md (any_div): New code iterator.
18442 (paired_mod): New code attribute.
18443 (sgnprefix): Handle DIV and UDIV RTXes.
18444 (u): Ditto.
18445 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18446 and udivmod<mode>4 patterns using any_div code iterator.
18447 (divmod splitters): Macroize splitters using any_div code iterator.
18448 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18449 (*udivmodsi4_pow2_zext_2): Ditto.
18450 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18451 and *udivmod<mode>4_noext patterns using any_div code iterator.
18452 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18453 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18454 patterns using any_div code iterator.
18455 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18456 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18457 patterns using any_div code iterator.
18458 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18459 udivmodhiqi3 patterns using any_extend code iterator.
18460
18461 2019-05-14 Richard Biener <rguenther@suse.de>
18462 H.J. Lu <hongjiu.lu@intel.com>
18463
18464 PR tree-optimization/88828
18465 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18466 permuting in a single non-constant element not extracted
18467 from a vector.
18468
18469 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18470
18471 * internal-fn.def (SIGNBIT): New.
18472 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18473 defined.
18474 (signbitv4sf2): Likewise.
18475
18476 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18477
18478 PR target/90357
18479 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18480 next insn when the SRC reg is dead.
18481
18482 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18483
18484 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18485 (alloc_cand_and_find_basis): Ditto.
18486 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18487 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18488 (create_add_imm_cand, slsr_process_cast): Ditto.
18489 (slsr_process_copy, replace_mult_candidate): Ditto.
18490 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18491 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18492 (pass_strength_reduction::execute): Init the first NULL element.
18493
18494 2019-05-13 Nathan Sidwell <nathan@acm.org>
18495
18496 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18497 (run_attempt): Reformat line break.
18498
18499 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18500
18501 PR target/90418
18502 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18503 data registers in sibcall epilogues.
18504 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18505
18506 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18507
18508 PR target/89221
18509 * configure.ac (--enable-frame-pointer):
18510 Disable by default for cygwin and mingw.
18511 * configure: Regenerate.
18512
18513 2019-05-13 Nathan Sidwell <nathan@acm.org>
18514
18515 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18516 piece of code.
18517 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18518 (gen_member_die): Move abstract origin check earlier. Only VARs
18519 can be static_inline_p. Simplify splicing control flow.
18520
18521 2019-05-13 Richard Biener <rguenther@suse.de>
18522
18523 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18524 VIEW_CONVERT_EXPR.
18525 (vect_build_slp_tree_1): Likewise.
18526
18527 2019-05-13 Richard Biener <rguenther@suse.de>
18528
18529 PR tree-optimization/90402
18530 * tree-if-conv.c (tree_if_conversion): Value number only
18531 the loop body by making the latch an exit of the region
18532 as well.
18533 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18534 processing PHIs.
18535 (do_rpo_vn): Deal with multiple edges into the entry block
18536 that are not backedges inside the region by skipping PHIs
18537 of the entry block.
18538
18539 2019-05-13 Richard Biener <rguenther@suse.de>
18540
18541 PR tree-optimization/90316
18542 * tree-ssa-pre.c (insert_aux): Fold into ...
18543 (insert): ... this function. Use a RPO walk to reduce the
18544 number of required iterations.
18545
18546 2019-05-13 Martin Liska <mliska@suse.cz>
18547
18548 PR tree-optimization/90416
18549 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18550 string instead of passing the second part as va_arg argument.
18551
18552 2019-05-13 Martin Liska <mliska@suse.cz>
18553
18554 PR gcov-profile/90380
18555 * gcov.c (handle_cycle): Do not support zero cycle count,
18556 it should not be possible.
18557 (path_contains_zero_cycle_arc): New function.
18558 (circuit): Ignore zero cycle arc counts.
18559
18560 2019-05-13 Martin Liska <mliska@suse.cz>
18561
18562 PR gcov-profile/90380
18563 * gcov.c (enum loop_type): Remove the enum and
18564 the operator.
18565 (handle_cycle): Assert that we should not reach
18566 a negative count.
18567 (circuit): Use loop_found instead of a tri-state loop_type.
18568 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18569 happen.
18570
18571 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18572
18573 PR target/82920
18574 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18575 (ix86_output_indirect_branch_via_reg): Use output mechanism
18576 accounting for __USER_LABEL_PREFIX__.
18577 (ix86_output_indirect_branch_via_push): Likewise.
18578 (ix86_output_function_return): Likewise.
18579 (ix86_output_indirect_function_return): Likewise.
18580
18581 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18582
18583 * doc/md.texi: Document use of code attributes in rtx patterns.
18584 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18585 * read-rtl.c (find_code): Split out search loops into...
18586 (maybe_find_code): ...this new function.
18587 (check_code_iterator): Make the error message more informative.
18588 (check_code_attribute): New function.
18589 (rtx_reader::rtx_alloc_for_name): Likewise.
18590 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18591 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18592 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18593 <max_opp> directly as an rtx code instead of via a match_operator.
18594 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18595 (<su>abd<mode>_3): Update accordingly.
18596
18597 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18598
18599 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18600 is given, print the state of the EH "save world" computation for
18601 Darwin.
18602
18603 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18604
18605 PR c++/59813
18606 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18607 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18608
18609 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18610
18611 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18612 Use pinsrd for TARGET_SSE4_1.
18613 * config/i386/sse.md (movdi_to_sse): Ditto.
18614
18615 2019-05-10 Richard Biener <rguenther@suse.de>
18616
18617 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18618 (do_rpo_vn): Initialize next_value_id.
18619
18620 2019-05-10 Martin Liska <mliska@suse.cz>
18621
18622 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18623 Fix plural form.
18624
18625 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18626
18627 PR tree-optimization/90385
18628 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18629 arguments of the exit phis.
18630
18631 PR c++/90383
18632 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18633 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18634 id->do_not_fold.
18635 (copy_tree_body_r): Likewise.
18636 (copy_fn): Set id.do_not_fold to true.
18637
18638 2019-05-10 Martin Liska <mliska@suse.cz>
18639
18640 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18641 Reapply changes from r269790.
18642
18643 2019-05-10 Martin Liska <mliska@suse.cz>
18644
18645 PR middle-end/90340
18646 * doc/invoke.texi: New params.
18647 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18648 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18649 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18650 Use it.
18651 * tree-switch-conversion.h (struct jump_table_cluster):
18652 Likewise.
18653
18654 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18655
18656 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18657
18658 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18659
18660 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18661
18662 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18663
18664 PR rtl-optimization/88879
18665 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18666
18667 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18668
18669 PR target/90405
18670 * config/arm/arm.c (callee_saved_reg_p): Move before
18671 thumb_find_work_register.
18672 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18673 thumb_find_work_register. Only call df_get_live_out once.
18674 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18675 (thumb_find_work_register): Use
18676 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18677 algorithms to locate a spare call clobbered reg.
18678
18679 2019-05-09 Martin Liska <mliska@suse.cz>
18680
18681 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18682 and MAX_EXPR in GIMPLE FE format.
18683
18684 2019-05-09 Martin Liska <mliska@suse.cz>
18685
18686 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18687 * gimple-pretty-print.c (dump_gimple_bb_header):
18688 Dump BB count.
18689 (pp_cfg_jump): Dump edge probability.
18690 * profile-count.c (profile_quality_as_string): Simplify
18691 with a static array.
18692 (parse_profile_quality): New function.
18693 (profile_count::dump): Simplify with a static array.
18694 (profile_count::from_gcov_type): Add new argument.
18695 * profile-count.h (parse_profile_quality): Likewise.
18696 * predict.h (set_hot_bb_threshold): New.
18697 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18698 New param.
18699 * predict.c (get_hot_bb_threshold): Set from the new param.
18700 (set_hot_bb_threshold): New.
18701
18702 2019-05-09 Richard Biener <rguenther@suse.de>
18703
18704 PR tree-optimization/90395
18705 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18706 rewrite vector stores that throw internally.
18707
18708 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18709
18710 * cif-code.def (CHKP): Remove.
18711
18712 PR target/89221
18713 * configure.ac (--enable-frame-pointer): Disable by default for
18714 GNU systems.
18715 * configure: Regenerate.
18716
18717 2019-05-09 Alan Modra <amodra@gmail.com>
18718
18719 PR target/89271
18720 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18721 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18722 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18723 cost for general <-> vsx when direct moves are available.
18724 Cost union classes at minimal cost for any reg in the class.
18725 Correct calculation for moves between vsx, float, and altivec.
18726 Don't return a low cost for moves between special regs. Don't
18727 use hard coded register numbers.
18728 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18729 (rs6000_ira_change_pseudo_allocno_class): New function.
18730 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18731 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18732 alternatives.
18733 (movsi_internal1): Don't disparage vector alternatives.
18734 (mov<mode>_internal): Likewise, excepting alternative that
18735 will be split.
18736 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18737 we <- b alternative.
18738
18739 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18740
18741 PR c++/59813
18742 PR tree-optimization/89060
18743 * tree-ssa-live.h (live_vars_map): New typedef.
18744 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18745 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18746 (struct compute_live_vars_data): New type.
18747 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18748 live_vars_at_stmt, destroy_live_vars): New functions.
18749 * tree-tailcall.c: Include tree-ssa-live.h.
18750 (live_vars, live_vars_vec): New global variables.
18751 (find_tail_calls): Perform variable life analysis before punting.
18752 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18753 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18754 member.
18755 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18756 Perform variable life analysis to select variables that really need
18757 clobbers added.
18758 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18759 instead set id->eh_landing_pad_dest and assert it is the same.
18760 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18761
18762 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18763 Richard Earnshaw <rearnsha@arm.com>
18764
18765 PR target/88167
18766 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18767 function.
18768 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18769 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18770 register if both the epilogue and prologue can use call-clobbered
18771 regs.
18772 (thumb1_unexpanded_epilogue): Use
18773 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18774 picking temporaries for restoring high regs to match that of the
18775 prologue where possible.
18776 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18777 the list of work registers. Detect if the return address is still live
18778 at the end of the prologue and avoid using it for a work register if so.
18779 If the return address is not live, add LR to the list of pushable regs
18780 after the first pass.
18781
18782 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18783
18784 PR tree-optimization/90078
18785 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18786 (INFTY): Increase the value for infinite cost.
18787 (struct comp_cost): Promote type of members to int64_t.
18788 (infinite_cost): Don't set complexity in initialization.
18789 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18790 overflows to infinite_cost.
18791 (adjust_setup_cost): Promote type of parameter and cost computation
18792 to int64_t.
18793 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18794 int64_t.
18795 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18796 cost computation to int64_t.
18797 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18798 int64_t's format specifier in dump.
18799
18800 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18801
18802 PR tree-optimization/90240
18803 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18804 with respect to scaling factor pre-computed for each basic block.
18805 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18806 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18807 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18808 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18809 live range for array of loop's basic blocks. Cleanup aux field of
18810 loop's basic blocks.
18811
18812 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18813
18814 PR tree-optimization/90356
18815 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18816
18817 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18818
18819 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18820 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18821 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18822 (ix86_handle_option): Handle -mavx512bf16.
18823 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18824 to extra_headers.
18825 * config/i386/avx512bf16vlintrin.h: New.
18826 * config/i386/avx512bf16intrin.h: New.
18827 * config/i386/cpuid.h (bit_AVX512BF16): New.
18828 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18829 * config/i386/i386-builtin-types.def: Add new types.
18830 * config/i386/i386-builtin.def: Add new builtins.
18831 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18832 __AVX512BF16__.
18833 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18834 (ix86_option_override_internal): Handle BF16.
18835 (ix86_valid_target_attribute_inner_p): Ditto.
18836 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18837 * config/i386/i386-builtin.c (enum processor_features): Add
18838 F_AVX512BF16.
18839 (static const _isa_names_table isa_names_table): Ditto.
18840 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18841 (PTA_AVX512BF16): Ditto.
18842 * config/i386/i386.opt: Add -mavx512bf16.
18843 * config/i386/immintrin.h: Include avx512bf16intrin.h
18844 and avx512bf16vlintrin.h.
18845 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18846 avx512f_cvtneps2bf16_<mode><mask_name>,
18847 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18848 * config/i386/subst.md (mask_half): Add new subst.
18849 * doc/invoke.texi: Document -mavx512bf16.
18850
18851 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18852
18853 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18854 Delete declaration.
18855 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18856 (rs6000_debug_legitimize_reload_address): Delete.
18857 (rs6000_legitimize_reload_address_ptr): Delete.
18858 (rs6000_option_override_internal): Adjust.
18859 (mem_operand_gpr): Adjust comment.
18860 (legitimate_lo_sum_address_p): Ditto.
18861 (rs6000_legitimize_reload_address): Delete.
18862 (rs6000_debug_legitimize_reload_address): Delete.
18863 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18864
18865 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18866
18867 PR target/89765
18868 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18869 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18870 to compute vector element selector for both constant and variable
18871 operands.
18872
18873 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18874
18875 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18876 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18877 ashrdi3_cvt using SWI48 mode iterator.
18878
18879 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18880
18881 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18882 (aarch64_<su>abd<mode>_3): Likewise.
18883 (*aarch64_<su>abd<mode>_3): New define_insn.
18884 (<sur>sad<vsi2qi>): New define_expand.
18885 * config/aarch64/iterators.md: Added MAX_OPP attribute.
18886 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18887 (build_vect_cond_expr): Likewise.
18888
18889 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18890
18891 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18892 clobbers outside of accessible_reg_set.
18893 * config/i386/i386.c (ix86_conditional_register_usage):
18894 Disable register sets by clearing corresponding bits in
18895 accessible_reg_set. Do not set corresponding bits in fixed_regs,
18896 call_used_regs and don't clear corresponding reg_names array members.
18897
18898 2019-05-07 Richard Biener <rguenther@suse.de>
18899
18900 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18901 not specified still compute a comp_vectype for invariant
18902 compares.
18903
18904 2019-05-07 Richard Biener <rguenther@suse.de>
18905
18906 PR tree-optimization/90316
18907 * tree-ssa-pre.c (translate_vuse_through_block): When
18908 same_valid is NULL do not bother to search for a virtual
18909 PHI continuation.
18910 (phi_translate_1): When operands changed we cannot keep
18911 the same value-number so do not bother to ask whether
18912 that's possible from translate_vuse_through_block.
18913
18914 2019-05-07 Martin Liska <mliska@suse.cz>
18915
18916 * bitmap.c (bitmap_register): Come up with
18917 alloc_descriptor_max_uid and assign it for
18918 a new bitmap.
18919 (register_overhead): Use get_descriptor as
18920 a descriptor.
18921 (release_overhead): New.
18922 (bitmap_elem_to_freelist): Call it.
18923 (bitmap_elt_clear_from): Likewise.
18924 (bitmap_obstack_free): Likewise.
18925 (bitmap_move): Sensitively release memory.
18926 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18927 (bitmap_initialize): Initialize alloc_descriptor to zero.
18928 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18929
18930 2019-05-07 Richard Biener <rguenther@suse.de>
18931
18932 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18933 we build a SLP node. Remove max_size and limiting.
18934 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18935
18936 2019-05-07 Richard Biener <rguenther@suse.de>
18937
18938 PR tree-optimization/90316
18939 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18940 limit by reference.
18941 (walk_non_aliased_vuses): Take walking limit argument.
18942 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18943 walking if it is reached instead of just counting.
18944 (get_continuation_for_phi): Likewise.
18945 (walk_non_aliased_vuses): Likewise, instead of leaving counter
18946 limiting to the callback.
18947 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
18948 (vn_reference_lookup_3): Likewise.
18949 (vn_reference_lookup_pieces): Likewise.
18950 (vn_reference_lookup): Likewise.
18951 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
18952 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
18953 (avail_exprs_stack::lookup_avail_expr): Likewise.
18954
18955 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
18956
18957 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
18958 for comparaible types in the second direction even if first one
18959 hits incomparable type.
18960
18961 2019-05-07 Richard Biener <rguenther@suse.de>
18962
18963 PR lto/90369
18964 * lto-wrapper.c (debug_objcopy): Use the original filename
18965 including archive offset for the filename used for -save-temps.
18966
18967 2019-05-07 Li Jia He <helijia@linux.ibm.com>
18968
18969 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
18970 detection.
18971
18972 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
18973 Hongtao Liu <hongtao.liu@intel.com>
18974
18975 PR target/89750
18976 PR target/86444
18977 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
18978 Modified, original implementation isn't correct.
18979
18980 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
18981
18982 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
18983 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
18984 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
18985 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
18986 (FRAME_POINTER_REGNUM): Change numbering.
18987 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
18988 (alt_reg_names): Adjust.
18989 (rs6000_conditional_register_usage): Don't mark hard register 64 as
18990 fixed.
18991 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
18992 (DWARF_FRAME_REGISTERS): Delete.
18993 (DWARF2_FRAME_REG_OUT): Fix whitespace.
18994 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18995 Adjust.
18996 (REG_ALLOC_ORDER): Adjust.
18997 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
18998 (REG_CLASS_CONTENTS): Adjust.
18999 (RETURN_ADDR_RTX): Change comment.
19000 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19001 instead of 67.
19002 (REGISTER_NAMES): Adjust.
19003 (ADDITIONAL_REGISTER_NAMES): Adjust.
19004 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19005
19006 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19007
19008 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19009 Delete.
19010 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19011 (DWARF_FRAME_REGISTERS): Adjust.
19012 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19013 Adjust.
19014 (REG_ALLOC_ORDER): Adjust.
19015 (enum reg_class): Delete SPR_REGS.
19016 (REG_CLASS_NAMES): Delete SPR_REGS.
19017 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19018 (REGISTER_NAMES): Adjust.
19019 (ADDITIONAL_REGISTER_NAMES): Adjust.
19020 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19021 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19022 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19023 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19024 (htm_spr_regno): Delete.
19025 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19026 argument.
19027 (rs6000_dbx_register_number): Adjust.
19028
19029 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19030
19031 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19032
19033 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19034
19035 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19036 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19037
19038 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19039
19040 PR tree-optimization/88709
19041 PR tree-optimization/90271
19042 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19043 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19044 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19045 variable.
19046 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19047 of the store merging group is larger than
19048 PARAM_STORE_MERGING_MAX_SIZE parameter.
19049 (split_group): Add bzero_first argument. If set, always emit first
19050 the first store which must be = {} of the whole area and then for the
19051 rest of the stores consider all zero bytes as paddings.
19052 (imm_store_chain_info::output_merged_store): Check if first store
19053 is = {} of the whole area and if yes, determine which setting of
19054 bzero_first for split_group gives smaller number of stores. Adjust
19055 split_group callers.
19056 (lhs_valid_for_store_merging_p): Allow decls.
19057 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19058 no elts.
19059 (pass_store_merging::process_store): Likewise.
19060
19061 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19062
19063 PR target/89424
19064 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19065 handling of V1TImode.
19066
19067 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19068
19069 PR target/89221
19070 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19071 and enable_frame_pointer ...
19072 * configure.ac: ... here. Update help strings for
19073 --enable-frame-pointer.
19074 * configure: Regenerate.
19075 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19076 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19077 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19078 (USE_X86_64_FRAME_POINTER): Ditto.
19079
19080 2019-05-06 Martin Liska <mliska@suse.cz>
19081
19082 * config.gcc: Append to target_gtfiles and fix indentation.
19083
19084 2019-05-06 Richard Biener <rguenther@suse.de>
19085
19086 PR tree-optimization/90358
19087 * tree-vect-stmts.c (get_group_load_store_type): Properly
19088 detect unused upper half of load.
19089 (vectorizable_load): Likewise.
19090
19091 2019-05-06 Richard Biener <rguenther@suse.de>
19092
19093 PR tree-optimization/88828
19094 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19095 (simplify_vector_constructor): ...here. Handle constants in
19096 the constructor.
19097
19098 2019-05-06 Richard Biener <rguenther@suse.de>
19099
19100 PR tree-optimization/90328
19101 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19102 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19103 is valid in the loop nest before using it.
19104 (initialize_data_dependence_relation): Adjust.
19105 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19106 loop as loop-nest to dr_may_alias_p.
19107
19108 2019-05-06 Richard Biener <rguenther@suse.de>
19109
19110 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19111
19112 2019-05-06 Richard Biener <rguenther@suse.de>
19113
19114 PR tree-optimization/90316
19115 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19116 compute target on demand.
19117 (get_continuation_for_phi): Remove code walking stmts to
19118 get to a target virtual operand which could end up being
19119 quadratic.
19120
19121 2019-05-06 Martin Liska <mliska@suse.cz>
19122
19123 PR sanitizer/90312
19124 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19125 when -mabi is selected to a non-default version.
19126
19127 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19128 Martin Liska <mliska@suse.cz>
19129
19130 * Makefile.in: Add lto-dump.texi.
19131 * cgraph.h: Add new functions get_visibility_string and
19132 get_symtab_type_string.
19133 * doc/gcc.texi: Include lto-dump section.
19134 * doc/lto-dump.texi: New file.
19135 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19136 (parse_dump_option): Factor out this function.
19137 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19138 (parse_dump_option): Export the function.
19139 * symtab.c (symtab_node::get_visibility_string): New function.
19140 (symtab_node::get_symtab_type_string): Likewise.
19141
19142 2019-05-06 Martin Liska <mliska@suse.cz>
19143
19144 * config/i386/i386-builtins.c: New file.
19145 * config/i386/i386-builtins.h: New file.
19146 * config/i386/i386-expand.c: New file.
19147 * config/i386/i386-expand.h: New file.
19148 * config/i386/i386-features.c: New file.
19149 * config/i386/i386-features.h: New file.
19150 * config/i386/i386-options.c: New file.
19151 * config/i386/i386-options.h: New file.
19152 * config.gcc: Add new files into extra_objs and
19153 target_gtfiles.
19154 * config/i386/i386.c: Split content of the file
19155 into newly introduced files.
19156 * config/i386/i386.h: Declare common variables
19157 and macros.
19158 * config/i386/t-i386: Define dependencies for new files.
19159
19160 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19161
19162 PR target/89400
19163 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19164 Restrict 'all' variant to 32-bit configurations.
19165 (unaligned_loadhiu): Likewise.
19166 (unaligned_storehi): Likewise.
19167 (unaligned_storesi): Likewise.
19168 (unaligned_loadhis): Disable when compiling for thumb1.
19169
19170 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19171
19172 PR tree-optimization/90269
19173 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19174 Ignore clobbers.
19175
19176 2019-05-03 Martin Liska <mliska@suse.cz>
19177
19178 * hash-map.h: Add is_empty function.
19179 * hash-set.h: Likewise.
19180 * hash-table.h: Likewise.
19181 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19182 elements () == 0 (and similar usages).
19183 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19184 * gimplify.c (gimplify_bind_expr): Likewise.
19185 (gimplify_switch_expr): Likewise.
19186 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19187 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19188 * postreload-gcse.c (dump_hash_table): Likewise.
19189 (gcse_after_reload_main): Likewise.
19190 * predict.c (combine_predictions_for_bb): Likewise.
19191 * tree-parloops.c (reduction_phi): Likewise.
19192 (separate_decls_in_region): Likewise.
19193 (transform_to_exit_first_loop): Likewise.
19194 (gen_parallel_loop): Likewise.
19195 (gather_scalar_reductions): Likewise.
19196 (try_create_reduction_list): Likewise.
19197 * var-tracking.c (dump_vars): Likewise.
19198 (emit_notes_for_changes): Likewise.
19199 (vt_emit_notes): Likewise.
19200
19201 2019-05-03 Richard Biener <rguenther@suse.de>
19202
19203 PR tree-optimization/90316
19204 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19205 before running VN.
19206
19207 2019-05-03 Richard Biener <rguenther@suse.de>
19208
19209 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19210 peeling for gaps by loading only lower halves of vectors
19211 if possible.
19212 (vectorizable_load): Likewise.
19213
19214 2019-05-03 Richard Biener <rguenther@suse.de>
19215
19216 PR middle-end/89518
19217 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19218
19219 2019-05-03 Richard Biener <rguenther@suse.de>
19220
19221 PR middle-end/87314
19222 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19223 Handle STRING_CST vs DECL or STRING_CST.
19224
19225 2019-05-03 Richard Biener <rguenther@suse.de>
19226
19227 PR tree-optimization/88963
19228 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19229 vector loads feeding only BIT_FIELD_REFs to component
19230 loads. Rewrite stores fed by CONSTRUCTORs to component
19231 stores.
19232
19233 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19234
19235 * opts.h (finish_options): Remove lang_mask argument.
19236 (print_help, help_option_argument): Declare.
19237 * opts.c (print_help): Remove forward declaration, no longer static.
19238 (finish_options): Remove lang_mask argument, don't call print_help
19239 here.
19240 * opts-global.c (decode_options): Adjust finish_option caller, call
19241 print_help here.
19242
19243 PR tree-optimization/90303
19244 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19245 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19246
19247 2019-05-03 Richard Biener <rguenther@suse.de>
19248
19249 PR tree-optimization/89698
19250 * gimple-fold.c (canonicalize_constructor_val): Early out
19251 for constants, handle unfolded INTEGER_CSTs as they appear in
19252 C++ virtual table ctors.
19253
19254 2019-05-03 Richard Biener <rguenther@suse.de>
19255
19256 * passes.c (execute_function_todo): Remove dead code.
19257
19258 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19259
19260 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19261 the internal register number, for any "real" register.
19262
19263 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19264
19265 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19266 correct numbers for TFHAR, TFIAR, TEXASR.
19267
19268 2019-05-02 Richard Biener <rguenther@suse.de>
19269
19270 PR tree-optimization/89653
19271 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19272 update-address-taken before the pass.
19273 * passes.def (pass_tree_loop_init): Put comment before it.
19274
19275 2019-05-02 Richard Biener <rguenther@suse.de>
19276
19277 PR tree-optimization/89509
19278 * tree-ssa-structalias.c (compute_dependence_clique): Look
19279 at the first subvar when determining whether it is restrict.
19280
19281 2019-05-02 Richard Biener <rguenther@suse.de>
19282
19283 PR tree-optimization/90273
19284 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19285 useless debug stmts.
19286
19287 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19288
19289 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19290 ACLE branch.
19291 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19292 SVE ACLE branch.
19293 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19294 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19295 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19296 (vectorizable_reduction): Use the functions above to vectorize in a
19297 fully masked loop codes that don't have a conditional internal
19298 function.
19299
19300 2019-05-02 Martin Liska <mliska@suse.cz>
19301
19302 * cgraphclones.c: Call valid_attribute_p with 1 for
19303 target_clone.
19304 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19305 it's for target attribute.
19306 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19307 Add new boolean argument.
19308 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19309 Likewise.
19310 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19311 to ix86_valid_target_attribute_inner_p.
19312 (ix86_valid_target_attribute_p): Pass flags argument to
19313 ix86_valid_target_attribute_inner_p.
19314 (get_builtin_code_for_version): Use 0 as it's target attribute.
19315
19316 2019-05-02 Martin Liska <mliska@suse.cz>
19317
19318 * gcc.c (process_command): Add dummy file only
19319 if n_infiles == 0.
19320 * opts-global.c (decode_options): Pass lang_mask.
19321 * opts.c (print_help): New function.
19322 (finish_options): Print --help if help_option_argument
19323 is set.
19324 (common_handle_option): Factor out content of OPT__help_
19325 into print_help.
19326 * opts.h (finish_options): Add new argument.
19327
19328 2019-05-02 Martin Liska <mliska@suse.cz>
19329
19330 PR target/88809
19331 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19332 With -minline-all-stringops use inline expansion using 4B loop.
19333 * doc/invoke.texi: Document the change of
19334 -minline-all-stringops.
19335
19336 2019-05-01 Jeff Law <law@redhat.com>
19337
19338 PR tree-optimization/88797
19339 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19340 PHI feeds a conditional on the RHS of an assignment.
19341
19342 2019-04-30 Andrew Waterman <andrew@sifive.com>
19343 Jim Wilson <jimw@sifive.com>
19344
19345 * config/riscv/constraints.md (L): New.
19346 * config/riscv/predicates.md (lui_operand): New.
19347 (sfb_alu_operand): New.
19348 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19349 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19350 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19351 * config/riscv/risc.md (type): Add sfb_alu.
19352 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19353 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19354 (branch_zero<mode>): Delete.
19355 (mov<mode>cc): New.
19356 (mov<GPR:mode><X:mode>cc): Likewise.
19357 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19358
19359 2019-04-30 Nathan Sidwell <nathan@acm.org>
19360
19361 * tree.h (MARK_TS_EXP): New.
19362
19363 2019-04-30 Martin Liska <mliska@suse.cz>
19364
19365 * opts.c (enable_warning_as_error): Provide hints
19366 for unknown options.
19367
19368 2019-04-30 Martin Liska <mliska@suse.cz>
19369
19370 PR debug/90288
19371 * doc/invoke.texi: Add missing dash for gas-locview-support
19372 and gno-as-locview-support.
19373
19374 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19375
19376 PR target/89093
19377 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19378 whitespace at the start of target attribute string.
19379
19380 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19381
19382 PR target/86538
19383 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19384 Define __ARM_FEATURE_ATOMICS.
19385
19386 2019-04-30 Martin Liska <mliska@suse.cz>
19387
19388 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19389 into built_in_function enum. Remove code for endp == 2 and
19390 use BUILT_IN_* constants.
19391 (gimple_fold_builtin): Call the function with fcode.
19392
19393 2019-04-30 Martin Liska <mliska@suse.cz>
19394
19395 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19396 DECL_FUNCTION_CODE into ix86_builtins enum before
19397 the switch statement.
19398
19399 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19400
19401 PR tree-optimization/89475
19402 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19403 calls.
19404
19405 2019-04-30 Martin Liska <mliska@suse.cz>
19406
19407 PR translation/90274
19408 * opts.c (print_filtered_help): Wrap string in _(...).
19409
19410 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19411
19412 PR tree-optimization/90240
19413 Revert:
19414 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19415
19416 PR tree-optimization/90078
19417 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19418 checks for infinite_cost overflow.
19419
19420 2019-04-29 Jeff Law <law@redhat.com>
19421
19422 * passes.def: Move -Wrestrict pass after copy propagation.
19423
19424 2019-04-29 Maya Rashish <coypu@sdf.org>
19425
19426 * config.gcc (default_gnu_indirect_function): Default to yes
19427 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19428 sparc*-*-netbsd*, x86_64-*-netbsd*.
19429
19430 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19431
19432 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19433 where cond2 is NE_EXPR.
19434 (is_value_included_in): Update comment.
19435
19436 2019-04-29 Richard Biener <rguenther@suse.de>
19437
19438 PR tree-optimization/90278
19439 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19440 EH on comparison simplification.
19441
19442 2019-04-29 Jason Merrill <jason@redhat.com>
19443
19444 PR c++/82081 - tail call optimization breaks noexcept
19445 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19446 nothrow function to a might-throw function into a tail call.
19447
19448 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19449
19450 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19451 (DDR_INNER_LOOP): Likewise.
19452 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19453 (initialize_data_dependence_relation): Likewise.
19454 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19455
19456 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19457
19458 PR rtl-optimization/90257
19459 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19460 return value.
19461
19462 Revert the revert:
19463 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19464
19465 PR target/90178
19466 Revert:
19467 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19468
19469 Revert the revert:
19470 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19471
19472 Revert:
19473 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19474
19475 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19476
19477 2019-04-29 Richard Biener <rguenther@suse.de>
19478
19479 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19480 rhs issue a reset.
19481
19482 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19483
19484 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19485 varasm.h, and netbsd-protos.h.
19486
19487 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19488
19489 PR target/89261
19490 * config/i386/i386-protos.h (ix86_data_alignment): Change
19491 the second argument type to unsigned int.
19492 * config/i386/i386.c (ix86_data_alignment): Change "align"
19493 argument type to unsigned int.
19494
19495 2019-04-27 Martin Liska <mliska@suse.cz>
19496
19497 PR middle-end/90258
19498 * opt-suggestions.c (option_proposer::build_option_suggestions):
19499 When get_valid_option_values returns empty values, add the
19500 misspelling candidate.
19501
19502 2019-04-26 Jim Wilson <jimw@sifive.com>
19503
19504 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19505 parameter.
19506 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19507 Pass orig_mode to riscv_build_integer.
19508 (riscv_split_integer): Pass mode to riscv_move_integer.
19509 (riscv_legitimize_const_move): Likewise.
19510 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19511 promoted_mode. Replace force_reg call with code to load constant into
19512 promoted reg and then subreg it for the store.
19513 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19514 riscv_move_integer.
19515
19516 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19517
19518 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19519 corrupt codes.
19520
19521 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19522
19523 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19524 commentary about the encoding of precision.
19525
19526 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19527
19528 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19529 * config/i386/t-freebsd64: New file.
19530 * config.gcc: Add the t-freebsd64 for multilib support.
19531
19532 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19533
19534 * doc/extend.texi (vector_size): Add missing comma after @xref.
19535
19536 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19537
19538 * BASE-VER: Set to 10.0.0.
19539
19540 2019-04-25 Richard Biener <rguenther@suse.de>
19541
19542 PR middle-end/89765
19543 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19544 VIEW_CONVERT_EXPR into one operating on an rvalue.
19545
19546 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19547
19548 PR target/89929
19549 * config/i386/i386.c (feature_priority): Moved to file scope.
19550 (processor_features): Likewise.
19551 (processor_model): Likewise.
19552 (_arch_names_table): Likewise.
19553 (arch_names_table): Likewise.
19554 (_feature_list): Removed.
19555 (feature_list): Likewise.
19556 (_isa_names_table): Moved to file scope. Add priority.
19557 (isa_names_table): Likewise.
19558 (get_builtin_code_for_version): Replace feature_list with
19559 isa_names_table. Update error message for P_ZERO priority.
19560
19561 2019-04-25 Richard Biener <rguenther@suse.de>
19562
19563 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19564 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19565
19566 2019-04-24 Jeff Law <law@redhat.com>
19567
19568 PR tree-optimization/90037
19569 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19570 * passes.def: Replace all instance of phi-only cprop with the
19571 lattice propagator. Move propagation pass from after erroneous
19572 path isolation to before erroneous path isolation.
19573 * tree-ssa-phionlycprop.c: Remove.
19574
19575 2019-04-24 Richard Biener <rguenther@suse.de>
19576
19577 PR middle-end/90213
19578 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19579 by size and BITS_PER_UNIT on poly-wide-ints.
19580
19581 2019-04-25 Richard Biener <rguenther@suse.de>
19582
19583 PR middle-end/90194
19584 * match.pd: Add pattern to simplify view-conversion of an
19585 empty constructor.
19586
19587 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19588
19589 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19590 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19591 for Go on 32 bit AIX.
19592 * config/rs6000/aix72.h: Likewise.
19593
19594 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19595
19596 PR target/90193
19597 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19598 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19599
19600 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19601
19602 PR target/89952
19603 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19604 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19605 for restored hard frame pointer.
19606 (s390_sched_dependencies_evaluation): Implement new target hook.
19607 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19608
19609 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19610
19611 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19612 * config/arc/arc.c (arc_init): Cleanup warning message.
19613 (arc_override_options): Likewise.
19614
19615 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19616
19617 PR target/90187
19618 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19619 a register if both if_true and if_false are MEMs.
19620
19621 PR tree-optimization/90208
19622 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19623 after labels of new_bb, not before them.
19624
19625 PR tree-optimization/90211
19626 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19627 which are not SSA_NAMEs.
19628
19629 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19630
19631 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19632 AArch64.
19633 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19634
19635 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19636
19637 PR rtl-optimization/87979
19638 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19639 not equal zero.
19640
19641 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19642
19643 PR rtl-optimization/84032
19644 * modulo-sched.c (ps_insn_find_column): Change condition so that
19645 branch will always be the last insn in a row inside partial
19646 schedule.
19647
19648 2019-04-23 Richard Biener <rguenther@suse.de>
19649
19650 PR debug/90131
19651 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19652 dest_single_pred_p argument.
19653 (remove_forwarder_block): Adjust.
19654 (remove_forwarder_block_with_phi): Likewise.
19655
19656 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19657 Bernd Edlinger <bernd.edlinger@hotmail.de>
19658 Jakub Jelinek <jakub@redhat.com>
19659
19660 PR target/89093
19661 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19662 if used with general-regs-only.
19663 (arm_conditional_register_usage): Don't add non-general regs if
19664 general-regs-only.
19665 (arm_valid_target_attribute_rec): Handle general-regs-only.
19666 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19667 general-regs-only.
19668 (TARGET_HARD_FLOAT_SUB): Define.
19669 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19670 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19671 (TARGET_REALLY_IWMMXT2): Likewise.
19672 * config/arm/arm.opt: Add -mgeneral-regs-only.
19673 * doc/extend.texi: Document ARM general-regs-only target.
19674 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19675
19676 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19677
19678 PR tree-optimization/90078
19679 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19680 checks for infinite_cost overflow.
19681
19682 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19683
19684 PR tree-optimization/90021
19685 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19686 and check univariate against it.
19687 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19688 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19689
19690 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19691
19692 PR target/90178
19693 Revert:
19694 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19695
19696 Revert the revert:
19697 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19698
19699 Revert:
19700 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19701
19702 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19703
19704 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19705
19706 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19707 names using operand format, rather than hard-wired.
19708 (speculation_barrier): Likewise.
19709
19710 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19711
19712 PR tree-optimization/88055
19713 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19714 (gen_one_condition): Use it if !HONOR_NANS.
19715
19716 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19717
19718 PR middle-end/90139
19719 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19720 assign_temp instead of gen_reg_rtx.
19721
19722 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19723
19724 PR translation/90118
19725 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19726 Add missing space before %<.
19727
19728 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19729
19730 PR rtl-optimization/87871
19731 * ira-lives.c (make_object_dead): Don't add conflicts to
19732 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19733
19734 2019-04-18 Martin Sebor <msebor@redhat.com>
19735
19736 PR middle-end/89797
19737 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19738 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19739 assuming type size fits in SHWI.
19740
19741 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19742
19743 PR ipa/85051
19744 * ipa-inline.c (flatten_function): New parameter UPDATE.
19745 (ipa_inline, early_inliner): Use it.
19746
19747 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19748
19749 * fold-const.c (int_const_binop): Return early on failure.
19750
19751 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19752
19753 PR middle-end/85164
19754 * combine.c (force_int_to_mode): Cast the argument rather than
19755 the result of known_alignment.
19756 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19757
19758 2019-04-18 Richard Biener <rguenther@suse.de>
19759
19760 PR debug/90131
19761 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19762 out from ...
19763 (remove_forwarder_block): ... here.
19764 (remove_forwarder_block_with_phi): Also move debug stmts here.
19765
19766 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19767
19768 PR translation/79183
19769 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19770 inform where appropriate.
19771
19772 2019-04-18 Richard Biener <rguenther@suse.de>
19773
19774 * tree.c (get_qualified_type): Put found type variants at the
19775 head of the variant list.
19776
19777 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19778
19779 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19780
19781 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19782
19783 PR target/90125
19784 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19785 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19786 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19787 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19788 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19789
19790 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19791
19792 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19793 even for allocno's with no conflicts.
19794 (print_conflicts): Print an extra newline.
19795
19796 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19797
19798 * auto-inc-dec.c (attempt_change): Set the alignment of the
19799 temporary memory to that of the original.
19800
19801 2019-04-17 Joao Moreira <jmoreira@suse.de>
19802
19803 * targhooks.c (default_print_patchable_function_entry): Emit
19804 __patchable_function_entries section with writable flags to allow
19805 relocation resolution.
19806
19807 2019-04-17 Jonny Grant <jg@jguk.org>
19808
19809 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19810
19811 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19812
19813 PR middle-end/90095
19814 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19815 on lowpart SUBREGs.
19816
19817 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19818
19819 * config/arc/arc.c (arc_init): Format diagnostic string.
19820 (arc_override_options): Likewise.
19821 (check_if_valid_regno_const): Likewise.
19822 (arc_reorg): Likewise.
19823
19824 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19825
19826 PR target/17108
19827 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19828 name.
19829 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19830 name.
19831 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19832 (*movdi_update1): Use Pmode.
19833 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19834 (movdi_<mode>_update_stack): Rename to ...
19835 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19836 use Pmode.
19837 (*movsi_update1): Use Pmode.
19838 (*movsi_update2): Use Pmode.
19839 (movsi_update): Rename to ...
19840 (movsi_<mode>_update): ... this. Use Pmode.
19841 (movsi_update_stack): Fix condition.
19842 (*movhi_update1): Use Pmode. Fix argument to
19843 avoiding_indexed_address_p.
19844 (*movhi_update2): Ditto.
19845 (*movhi_update3): Ditto.
19846 (*movhi_update4): Ditto.
19847 (*movqi_update1): Ditto.
19848 (*movqi_update2): Ditto.
19849 (*movqi_update3): Ditto.
19850 (*movsf_update1, *movdf_update1): Merge, rename to...
19851 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19852 avoiding_indexed_address_p. Add "size" attribute.
19853 (*movsf_update2, *movdf_update2): Merge, rename to...
19854 (*mov<mode>_update2): This. Ditto.
19855 (*movsf_update3): Use Pmode. Fix argument to
19856 avoiding_indexed_address_p.
19857 (*movsf_update4): Ditto.
19858 (allocate_stack): Simplify condition. Adjust pattern names.
19859
19860 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19861
19862 PR target/89093
19863 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19864 whitespace at the start of target attribute string.
19865
19866 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19867
19868 PR target/84369
19869 * config/rs6000/power9.md: Add store forwarding bypass.
19870
19871 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19872
19873 PR debug/89528
19874 * valtrack.c (dead_debug_insert_temp): Reset debug references
19875 to the return value of a call being removed.
19876
19877 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19878
19879 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19880 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19881 implement target hook.
19882 (arc_memory_move_cost): New function.
19883 (TARGET_REGISTER_MOVE_COST): Define.
19884 (TARGET_MEMORY_MOVE_COST): Likewise.
19885 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19886 (MEMORY_MOVE_COST): Likewise.
19887
19888 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19889
19890 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19891 (sibcall_value_insn): Likewise.
19892 * config/arc/constraints.md (Rs5): Remove.
19893
19894 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19895
19896 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19897 for last two fake registers.
19898 (arc_conditional_register_usage): Make sure fake frame and arg
19899 pointer regs are in general regs class.
19900 (FRAME_POINTER_MASK): Remove.
19901 (RETURN_ADDR_MASK): Remove.
19902 (arc_must_save_register): Use hard frame regnum.
19903 (frame_restore_reg): Use hard_frame_pointer_rtx.
19904 (arc_save_callee_saves): Likewise.
19905 (arc_restore_callee_saves): Likewise.
19906 (arc_save_callee_enter): Likewise.
19907 (arc_restore_callee_leave): Likewise.
19908 (arc_save_callee_milli): Likewise.
19909 (arc_eh_return_address_location): Likewise.
19910 (arc_check_multi): Use hard frame regnum.
19911 (arc_can_eliminate): Likewise.
19912 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19913 for register allocator.
19914 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19915 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19916 (FRAME_POINTER_REGNUM): Change it to a fake register.
19917 (HARD_FRAME_POINTER_REGNUM): Defined.
19918 (ARG_POINTER_REGNUM): Change it to a new fake register.
19919 (ELIMINABLE_REGS): Update.
19920 (REGISTER_NAMES): Update names.
19921 * config/arc/arc.md (LP_START): Remove.
19922 (LP_END): Likewise.
19923 (shift_si3_loop): Update pattern.
19924
19925 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19926
19927 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19928 to avoid delay slot scheduling.
19929 (arc_must_save_register): Don't save SP.
19930 * config/arc/arc.md (stack_tie): Remove.
19931 (UNSPEC_ARC_STKTIE): Likewise.
19932
19933 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
19934 Shiva Chen <shiva0217@gmail.com>
19935
19936 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19937 code gen with large shift amount.
19938
19939 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
19940
19941 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19942 subreg.
19943
19944 2019-04-16 Jakub Jelinek <jakub@redhat.com>
19945
19946 PR target/90096
19947 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
19948 print -m64/-mx32/-m32 if it is true.
19949 (ix86_debug_options, ix86_function_specific_print): Pass true as
19950 ADD_ABI_P to ix86_target_string.
19951 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
19952 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
19953 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
19954
19955 PR rtl-optimization/90082
19956 * dce.c (can_delete_call): New function.
19957 (deletable_insn_p, mark_insn): Use it.
19958
19959 PR tree-optimization/90090
19960 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
19961 throw internally.
19962 (is_division_by_square): Likewise. Formatting fix.
19963
19964 2019-04-16 Richard Biener <rguenther@suse.de>
19965
19966 PR tree-optimization/56049
19967 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
19968 equality check if alias-set zero will prevail.
19969
19970 2019-04-15 Jeff Law <law@redhat.com>
19971
19972 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
19973 size and alignment as unsigned.
19974
19975 2019-04-15 Richard Biener <rguenther@suse.de>
19976
19977 PR debug/90074
19978 * tree-loop-distribution.c (destroy_loop): Preserve correct
19979 debug info.
19980
19981 2019-04-15 Richard Biener <rguenther@suse.de>
19982
19983 PR tree-optimization/90071
19984 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
19985 abnormal operands from def stmts.
19986
19987 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
19988
19989 PR rtl-optimization/89794
19990 * combine.c (count_auto_inc): New function.
19991 (try_combine): Count how many auto_inc expressions there were in the
19992 original instructions. Ensure we have the same number in the new
19993 instructions. Remove the code that tried to ensure auto_inc side
19994 effects on i1 and i0 are not lost.
19995
19996 2019-04-15 Richard Biener <rguenther@suse.de>
19997
19998 PR ipa/88936
19999 * tree.h (auto_var_p): Declare.
20000 * tree.c (auto_var_p): New function, split out from ...
20001 (auto_var_in_fn_p): ... here.
20002 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20003 member.
20004 (new_var_info): Initialize it.
20005 (set_uids_in_ptset): Also set the shadow variable uid if required.
20006 (ipa_pta_execute): Postprocess points-to solutions assigning
20007 shadow variable uids for locals that may reach their containing
20008 function recursively.
20009 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20010 assert but instead check whether the points-to solution is
20011 a singleton.
20012
20013 2019-04-15 Martin Jambor <mjambor@suse.cz>
20014
20015 PR ipa/pr89693
20016 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20017 the thunk chain.
20018
20019 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20020
20021 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20022
20023 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20024 Kito Cheng <kito.cheng@gmail.com>
20025 Shiva Chen <shiva0217@gmail.com>
20026
20027 * config/nds32/nds32-md-auxiliary.c
20028 (nds32_legitimize_pic_address): Use new PIC pattern.
20029 (nds32_legitimize_tls_address): Use new TLS pattern.
20030 (nds32_output_symrel): New.
20031 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20032 (nds32_alloc_relax_group_id): Ditto.
20033 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20034 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20035 relax_group_id.
20036 (nds32_group_tls_insn): Ditto.
20037 (nds32_group_float_insns): Ditto.
20038 * config/nds32/nds32.md (tls_le): New.
20039 (sym_got): Ditto.
20040
20041 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20042
20043 * configure: Add nds32 target for dwarf2 debug_line checking.
20044 * configure.ac: Regenerated.
20045
20046 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20047
20048 PR lto/89358
20049 * ipa-devirt.c (skip_in_fields_list_p): New.
20050 (odr_types_equivalent_p): Use it.
20051
20052 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20053
20054 PR target/89093
20055 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20056 instead of strncmp when checking for thumb and arm. Formatting fixes.
20057
20058 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20059
20060 * doc/install.texi: Document --with-target-system-zlib.
20061
20062 2019-04-12 Martin Sebor <msebor@redhat.com>
20063
20064 PR c/88383
20065 PR c/89288
20066 PR c/89798
20067 PR c/89797
20068 * targhooks.c (default_vector_alignment): Avoid assuming
20069 argument fits in SHWI.
20070 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20071 a shift expression.
20072 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20073
20074 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20075
20076 PR rtl-optimization/89965
20077 * dce.c: Include rtl-iter.h.
20078 (struct check_argument_load_data): New type.
20079 (check_argument_load): New function.
20080 (find_call_stack_args): Check for loads from stack slots still tracked
20081 in sp_bytes and punt if any is found.
20082
20083 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20084
20085 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20086
20087 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20088 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20089
20090 2019-04-12 Martin Liska <mliska@suse.cz>
20091
20092 PR middle-end/89970
20093 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20094 in error message.
20095 (separate_attrs): Handle multiple 'default's.
20096 (expand_target_clones): Rework error handling code.
20097
20098 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20099
20100 PR target/87532
20101 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20102 mode of vector rather than mode of destination for move instruction.
20103 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20104 Use QI inner mode with V16QI vector mode.
20105
20106 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20107
20108 PR target/52726
20109 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20110 "invalid %%t operand" in output_operand_lossage message.
20111
20112 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20113
20114 * config/s390/predicates.md (permute_pattern_operand): New
20115 predicate.
20116 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20117 operand for the permute pattern.
20118 ("*vec_perm<mode>"): New insn definition.
20119 ("bswap<mode>"): Generate the permute pattern operand in the
20120 expander and perform the operand reloads for pre arch13 level
20121 already.
20122 ("*bswap<mode>_emu"): Rename to ...
20123 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20124 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20125 Add the USE operand for the permute pattern.
20126 ("*vec_set_bswap_vec<mode>"): Likewise.
20127
20128 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20129
20130 PR c/89946
20131 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20132 and gcc_unreachable if it fails, just call tree_to_uhwi which
20133 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20134 Start warning message with a lower-case letter. Formatting fixes.
20135
20136 PR rtl-optimization/90026
20137 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20138 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20139 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20140 in cfglayout mode, use emit_barrier_after_bb.
20141
20142 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20143
20144 PR rtl-optimization/87763
20145 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20146 New Instruction.
20147
20148 2019-04-11 Tom de Vries <tdevries@suse.de>
20149
20150 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20151 max macro using statement expression.
20152
20153 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20154
20155 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20156 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20157 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20158 read_only_private_data_section using xcoff_private_rodata_section_name.
20159 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20160
20161 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20162
20163 PR target/90016
20164 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20165
20166 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20167
20168 PR rtl-optimization/89965
20169 * dce.c (sp_based_mem_offset): New function.
20170 (find_call_stack_args): Use sp_based_mem_offset.
20171
20172 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20173
20174 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20175
20176 2019-04-11 Richard Biener <rguenther@suse.de>
20177
20178 PR tree-optimization/90020
20179 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20180 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20181 * tree-ssa-pre.c (compute_avail): Use it to not put
20182 possibly trapping references after a call that might not
20183 return into EXP_GEN.
20184 * gcse.c (compute_hash_table_work): Do not elide
20185 marking a block containing a call if the call might not
20186 return.
20187
20188 2019-04-11 Richard Biener <rguenther@suse.de>
20189
20190 PR tree-optimization/90018
20191 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20192 Test both SLP and interleaving variants.
20193
20194 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20195
20196 * config/s390/8561.md: New file.
20197 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20198 Add arch13 cpu model.
20199 * config/s390/s390-opts.h (enum processor_type): Likewise.
20200 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20201 (s390_get_unit_mask): Likewise.
20202 (s390_is_fpd): Likewise.
20203 (s390_is_fxd): Likewise.
20204 * config/s390/s390.h (s390_tune_attr): Likewise.
20205 * config/s390/s390.md: Include arch13 pipeline description.
20206 * config/s390/s390.opt: Add arch13.
20207
20208 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20209
20210 PR rtl-optimization/87763
20211 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20212 New prototype.
20213 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20214 New function.
20215 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20216 New instruction.
20217 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20218 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20219 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20220 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20221
20222 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20223
20224 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20225 "Although" in -fipa-icf documentation.
20226
20227 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20228 of using multiple -g options.
20229
20230 2019-04-10 Martin Liska <mliska@suse.cz>
20231
20232 PR gcov-profile/89959
20233 * doc/gcov.texi: Make documentation of -x option
20234 more precise.
20235
20236 2019-04-10 Richard Biener <rguenther@suse.de>
20237
20238 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20239 member.
20240 (DR_GROUP_SAME_DR_STMT): Remove.
20241 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20242 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20243 replace with assert.
20244 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20245 (vect_record_grouped_load_vectors): Remove unreachable code.
20246
20247 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20248
20249 PR target/90016
20250 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20251 obsolete reference to N.
20252
20253 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20254
20255 PR middle-end/90025
20256 * expr.c (store_expr): Set properly size on the MEM passed to
20257 clear_storage.
20258
20259 PR c++/90010
20260 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20261 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20262 translation is needed, and when translation is needed, only append
20263 ... if the string length is hostsz or more bytes long. Avoid using
20264 strncpy or strcat.
20265
20266 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20267
20268 PR target/90024
20269 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20270 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20271 into three.
20272 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20273 differences directly.
20274 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20275
20276 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20277
20278 PR translation/90011
20279 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20280 from diagnostics.
20281 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20282 diagnostics.
20283 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20284 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20285 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20286 trailing space from -gsplit-dwarf diagnostics.
20287
20288 PR tree-optimization/89998
20289 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20290 instead of integer_type_node if possible, don't add ranges if return
20291 type is not compatible with int.
20292 * gimple-fold.c (gimple_fold_builtin_sprintf,
20293 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20294 integer_type_node.
20295
20296 2019-04-09 Martin Liska <mliska@suse.cz>
20297
20298 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20299 * doc/install.texi: Document the new config.
20300
20301 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20302
20303 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20304 use gimple_expr_type for load and store calls. Skip over the
20305 condition argument in a conditional internal function.
20306 Protect use of TREE_INT_CST_LOW.
20307
20308 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20309
20310 PR target/90015
20311 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20312 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20313 trailing period from it too.
20314
20315 2019-04-08 wu yuan <wuyuan5@huawei.com>
20316
20317 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20318 * config/aarch64/aarch64.md : Add "tsv110.md"
20319 * config/aarch64/tsv110.md: New file.
20320
20321 2019-04-08 Richard Biener <rguenther@suse.de>
20322
20323 PR tree-optimization/90006
20324 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20325 calls like lrint.
20326
20327 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20328
20329 PR target/83033
20330 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20331 construction.
20332 (fma_root_node): Likewise.
20333 (func_fma_steering): Likewise.
20334
20335 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20336
20337 PR rtl-optimization/89865
20338 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20339
20340 PR rtl-optimization/89865
20341 * config/i386/i386.md
20342 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20343 numbers not to clash with the additional operands[4].
20344 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20345 with extra register copy in the middle.
20346
20347 2019-04-08 Martin Liska <mliska@suse.cz>
20348
20349 PR gcov-profile/89961
20350 * doc/gcov.texi: Document data_file.
20351 * gcov.c (generate_results): Add data_info into JSON output.
20352
20353 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20354
20355 PR tree-optimization/89725
20356 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20357 loop's chrec as invariant symbol.
20358 * tree-chrec.h (chrec_contains_symbols): New parameter.
20359 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20360 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20361 function of loops not in DDR's loop_nest.
20362 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20363
20364 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20365
20366 PR target/89623
20367 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20368 Mask.
20369
20370 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20371
20372 PR target/89945
20373 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20374 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20375
20376 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20377
20378 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20379 targetm.fixed_condition_code_regs.
20380
20381 2019-04-05 Richard Biener <rguenther@suse.de>
20382
20383 PR debug/89892
20384 PR debug/89905
20385 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20386 debug bind stmts but reset them if they are not valid at the
20387 destination.
20388
20389 2019-04-05 Martin Liska <mliska@suse.cz>
20390
20391 PR translation/89936
20392 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20393 order to wrap keywords or arguments.
20394 * collect2.c (main): Likewise.
20395 (scan_prog_file): Likewise.
20396 (scan_libraries): Likewise.
20397 * common/config/riscv/riscv-common.c
20398 (riscv_subset_list::parsing_subset_version): Likewise.
20399 (riscv_subset_list::parse_std_ext): Likewise.
20400 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20401 Likewise.
20402 * config/arm/arm.c (arm_option_override): Likewise.
20403 * config/cris/cris.c (cris_print_operand): Likewise.
20404 * config/darwin-c.c (darwin_pragma_options): Likewise.
20405 (darwin_pragma_unused): Likewise.
20406 (darwin_pragma_ms_struct): Likewise.
20407 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20408 * config/i386/i386.c (print_reg): Likewise.
20409 (ix86_print_operand): Likewise.
20410 * config/i386/xm-djgpp.h: Likewise.
20411 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20412 * config/m32c/m32c.c (m32c_option_override): Likewise.
20413 * config/msp430/msp430.c (msp430_option_override): Likewise.
20414 * config/nds32/nds32.c (nds32_option_override): Likewise.
20415 * config/nvptx/mkoffload.c (main): Likewise.
20416 * config/rx/rx.c (rx_print_operand): Likewise.
20417 (valid_psw_flag): Likewise.
20418 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20419 (vms_pragma_nomember_alignment): Likewise.
20420 (vms_pragma_extern_model): Likewise.
20421 * lto-wrapper.c (compile_offload_image): Likewise.
20422 * omp-offload.c (oacc_parse_default_dims): Likewise.
20423 * symtab.c (symtab_node::verify_base): Likewise.
20424 * tlink.c (recompile_files): Likewise.
20425 (start_tweaking): Likewise.
20426 * tree-profile.c (parse_profile_filter): Likewise.
20427
20428 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20429
20430 PR tree-optimization/89956
20431 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20432 multiple negates of the same value.
20433
20434 2019-04-04 Martin Sebor <msebor@redhat.com>
20435
20436 PR middle-end/89957
20437 PR middle-end/89911
20438 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20439 have the same precision since the function crashes otherwise.
20440 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20441 has non-zero arguments.
20442
20443 2019-04-04 Martin Sebor <msebor@redhat.com>
20444
20445 PR middle-end/89934
20446 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20447 out if the number of arguments is less than expected.
20448
20449 2019-04-04 Jeff Law <law@redhat.com>
20450
20451 PR rtl-optimization/89399
20452 * ree.c (combine_set_extension): Use single_set rather than
20453 digging into PATTERN for items on the candidate list.
20454 (combine_reaching_defs): Likewise.
20455
20456 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20457
20458 PR rtl-optimization/46590
20459 * loop-invariant.c (find_defs): Move df_remove_problem and
20460 df_process_deferred_rescans to move_invariants.
20461 Move df_live_add_problem and df_live_set_all_dirty calls
20462 to move_invariants.
20463 (move_invariants): Likewise.
20464 (move_loop_invariants): Likewise, making the df_live calls
20465 conditional on -O. Remove the problem again if we added it
20466 locally.
20467
20468 2019-04-03 qing zhao <qing.zhao@oracle.com>
20469
20470 PR tree-optimization/89730
20471 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20472 -flive-patching=inline-only-static.
20473 (can_inline_edge_by_limits_p): Add the checking for
20474 -flive-patching=inline-only-static and grant always_inline
20475 even when -flive-patching=inline-only-static is specified.
20476
20477 2019-04-03 Jeff Law <law@redhat.com>
20478
20479 PR rtl-optimization/81025
20480 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20481
20482 2019-04-03 Richard Biener <rguenther@suse.de>
20483
20484 PR tree-optimization/84101
20485 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20486 regs.h for hard_regno_nregs.
20487 (cfun_returns): New helper.
20488 (vect_model_store_cost): When vectorizing a store to a decl
20489 we return and the function ABI returns in a multi-reg location
20490 account for the possible spilling that will happen.
20491
20492 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20493
20494 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20495 displacement addresses for vector mode operands.
20496
20497 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20498
20499 * config/arc/arc.c (GMASK_LEN): Define.
20500 (arc_restore_callee_saves): Restore first blink when
20501 !optimize_size.
20502
20503 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20504
20505 * doc/extend.texi: Add deprecated comment on sign-return-address
20506 function attribute and add mbranch-protection.
20507 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20508
20509 2019-04-03 Richard Biener <rguenther@suse.de>
20510
20511 PR lto/89896
20512 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20513 the all target phony.
20514
20515 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20516
20517 PR target/89902
20518 PR target/89903
20519 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20520 Return false for variable DImode shifts.
20521 (dimode_scalar_chain::compute_convert_gain): Do not handle
20522 register count operand in variable DImode shifts.
20523 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20524 count argument of a variable shift instruction to a vector register.
20525 (dimode_scalar_chain::convert_reg): Remove support to convert
20526 count argument of a variable shift instruction.
20527
20528 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20529
20530 PR rtl-optimization/84206
20531 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20532 iterating over loop headers.
20533
20534 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20535
20536 PR rtl-optimization/85876
20537 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20538 beyond the original fence.
20539
20540 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20541
20542 * config.gcc: Mark spu* targets as deprecated/obsolete.
20543
20544 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20545
20546 * config/s390/s390-builtin-types.def: New builtin function type
20547 definitions. Remove unused types.
20548 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20549 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20550 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20551 overloaded builtins.
20552 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20553 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20554 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20555 (vec_double, vec_signed, vec_unsigned): Define to use the new
20556 overloaded builtins.
20557 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20558 Remove expanders.
20559
20560 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20561
20562 * config/s390/s390-builtin-types.def: New builtin function type
20563 definitions.
20564 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20565 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20566 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20567 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20568 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20569 constant definitions.
20570 * config/s390/vecintrin.h (vec_search_string_cc)
20571 (vec_search_string_until_zero_cc): New builtin name definitions.
20572 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20573 expanders.
20574 ("vec_vstrs<mode>"): New insn definition.
20575
20576 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20577
20578 * config/s390/s390-builtin-types.def: Add new builtin function
20579 types.
20580 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20581 New overloaded builtins.
20582 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20583 s390_vsrd.
20584 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20585 (UNSPEC_VEC_SLDBYTE): ... this.
20586 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20587 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20588 definitions.
20589 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20590 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20591 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20592
20593 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20594
20595 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20596 New insn definition.
20597 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20598 * config/s390/vector.md (V_HW_HSD): ... here.
20599
20600 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20601
20602 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20603 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20604 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20605 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20606 New insn definitions.
20607
20608 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20609
20610 * config/s390/s390-builtin-types.def: Add new builtin function type.
20611 * config/s390/s390-builtins.def: Add overloaded builtin
20612 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20613 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20614 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20615 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20616 ("eltswap<mode>"): New expander.
20617 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20618 insn definitions.
20619
20620 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20621
20622 * config/s390/s390-builtin-types.def: Add new builtin function types.
20623 * config/s390/s390-builtins.def: Add overloaded builtin
20624 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20625 instructions.
20626 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20627 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20628 ("bswap<mode>"): New expander.
20629 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20630
20631 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20632
20633 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20634 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20635 vector builtin version number in __VEC__.
20636
20637 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20638
20639 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20640 iterators.
20641 (SFSI): New mode attribute.
20642 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20643 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20644 rename to ...
20645 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20646 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20647 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20648 ("floatsi<mode>2"): Add wcefb instruction.
20649
20650 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20651
20652 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20653 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20654 mode iterators.
20655 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20656 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20657 support 32 bit fp-int conversions. Rename to ...
20658 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20659 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20660 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20661 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20662 ... to these.
20663
20664 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20665
20666 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20667 if-then-else constructs if we can use the select instruction.
20668 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20669
20670 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20671
20672 * config/s390/s390.md ("*popcountdi_arch13_cc")
20673 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20674 definition.
20675 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20676 Append _z196 to make it ...
20677 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20678 ("popcounthi2_z196"): ... this.
20679 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20680 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20681
20682 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20683
20684 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20685 certain compares for arch13 in order to make use of the condition
20686 code result produced by the new instructions.
20687 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20688 nxrk, and nxgrk instruction patterns.
20689 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20690 (inv_no): Add new code iterator together with some attributes.
20691 ("*andc_split_<mode>"): Disable splitter for arch13.
20692 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20693 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20694 ("*<ANDOR:bitops_name>c<GPR:mode>")
20695 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20696 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20697 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20698 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20699
20700 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20701
20702 * common/config/s390/s390-common.c (processor_flags_table): New
20703 entry for arch13.
20704 * config.gcc: Support arch13 with the --with-arch= configure flag.
20705 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20706 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20707 * config/s390/s390.c (s390_get_sched_attrmask)
20708 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20709 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20710 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20711 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20712 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20713 definitions.
20714 * config/s390/s390.opt: Support arch13 as processor type in
20715 command line options.
20716
20717 2019-04-02 Martin Liska <mliska@suse.cz>
20718
20719 PR translation/89912
20720 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20721 Fix param description of graphite-max-arrays-per-scop.
20722
20723 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20724
20725 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20726 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20727 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20728
20729 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20730
20731 PR rtl-optimization/85412
20732 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20733 sel_sched_region_1, not after.
20734
20735 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20736
20737 PR rtl-optimization/86928
20738 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20739 compute_live if necessary.
20740 (sel_redirect_edge_and_branch): Likewise.
20741
20742 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20743
20744 PR rtl-optimization/89865
20745 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20746 register if it is a part of small class.
20747
20748 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20749
20750 PR rtl-optimization/87273
20751 * sel-sched-ir.c (merge_fences): Remove assert.
20752
20753 2019-04-01 Richard Biener <rguenther@suse.de>
20754
20755 PR tree-optimization/46590
20756 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20757 (dom_walker::m_reachability): Add in place of...
20758 (dom_walker::m_skip_unreachable_blocks): ...this.
20759 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20760 Move complex initialization ...
20761 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20762 lazily and initialize edge flags on each invocation.
20763 (dom_walker::bb_reachable): Use m_reachability.
20764
20765 2019-04-01 Martin Liska <mliska@suse.cz>
20766
20767 PR driver/89861
20768 * opt-suggestions.c (option_proposer::build_option_suggestions):
20769 Add variant without any argument in order to provide better
20770 hints.
20771
20772 2019-04-01 Richard Biener <rguenther@suse.de>
20773
20774 PR c/71598
20775 * gimple.c: Include langhooks.h.
20776 (gimple_get_alias_set): Treat enumeral types as the underlying
20777 integer type.
20778
20779 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20780 Eric Botcazou <ebotcazou@adacore.com>
20781
20782 PR rtl-optimization/89862
20783 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20784 that operates on the full registers for WORD_REGISTER_OPERATIONS
20785 architectures.
20786
20787 2019-03-29 Jim Wilson <jimw@sifive.com>
20788
20789 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20790 Clear MASK_RVC and then set if C subset supported.
20791
20792 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20793
20794 PR c/89872
20795 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20796 non-addressable complit into its initializer if it is volatile.
20797
20798 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20799
20800 * opts-common.c (integral_argument): Set errno properly in one case.
20801
20802 2019-03-29 Martin Liska <mliska@suse.cz>
20803
20804 * doc/invoke.texi: Remove -Wchkp from documentation.
20805
20806 2019-03-29 Martin Liska <mliska@suse.cz>
20807
20808 * dbgcnt.c (print_limit_reach): New function.
20809 (dbg_cnt): Use it.
20810
20811 2019-03-29 Martin Liska <mliska@suse.cz>
20812
20813 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20814 (dbg_cnt_process_opt): Parse first tokens aas
20815 dbg_cnt_process_single_pair is also using strtok.
20816
20817 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20818
20819 PR rtl-optimization/87485
20820 * function.c (expand_function_end): Move stack_protect_epilogue
20821 before loading of return value into hard register(s).
20822
20823 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20824
20825 PR middle-end/89621
20826 * tree-inline.h (struct copy_body_data): Add
20827 dont_remap_vla_if_no_change flag.
20828 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20829 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20830 and remap_type_2 returns false.
20831 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20832 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20833 only from where it is copied to nested contexts.
20834
20835 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20836
20837 PR target/89865
20838 * config/i386/i386.md (RMW operation with LEA peephole):
20839 Use LEAMODE mode attribute instead of SWI mode iterator for
20840 LEA pattern.
20841
20842 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20843
20844 PR target/89848
20845 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20846 Also process XEXP (src, 0) of a shift insn.
20847
20848 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20849
20850 PR middle-end/89725
20851 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20852 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20853
20854 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20855
20856 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20857 test.
20858 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20859 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20860 immediately after first one with df_analyze in between, but rather
20861 process all bbs, queueing ones that need second pass in a worklist,
20862 df_analyze, process queued debug insn changes and if second pass is
20863 needed, process bbs from worklist, df_analyze, process queued debug
20864 insns again.
20865
20866 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20867 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20868 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20869
20870 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20871
20872 PR c/79022
20873 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20874 definition.
20875
20876 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
20877
20878 PR target/85667
20879 * config/i386/i386.c (ix86_function_value_1): Call the newly added
20880 function for 32-bit MS_ABI.
20881 (function_value_ms_32): New function.
20882
20883 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
20884
20885 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20886 (movdi): Call gen_movdi_symbol_save_scc.
20887 (gen_movdi_symbol_save_scc): New insn and split.
20888
20889 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
20890
20891 PR rtl-optimization/89313
20892 * function.c (matching_constraint_num): New static function.
20893 (match_asm_constraints_1): Use it. Fixup white space and comment.
20894 Don't replace inputs with non-matching constraints which conflict
20895 with early clobber outputs.
20896
20897 2019-03-27 Jeff Law <law@redhat.com>
20898
20899 PR rtl-optimization/87761
20900 PR rtl-optimization/89826
20901 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20902 slightly later.
20903 (pass_cprop_hardreg::execute): Call df_analyze after adding the
20904 note problem to get REG_DEAD/REG_UNUSED notes updated.
20905
20906 2019-03-27 Richard Biener <rguenther@suse.de>
20907
20908 PR tree-optimization/89463
20909 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20910 queue edges to remove.
20911 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20912 dead stmts. Delay edge removal until PHIs are removed to
20913 make debug-stmt creation not confused by seemingly degenerate
20914 PHIs.
20915
20916 2019-03-27 Alan Modra <amodra@gmail.com>
20917
20918 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20919 throughout file.
20920 * config/rs6000/darwin.h: Likewise.
20921 * config/rs6000/rs6000.c: Likewise.
20922
20923 2019-03-27 Alan Modra <amodra@gmail.com>
20924
20925 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20926 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
20927
20928 2019-03-26 Andrew Waterman <andrew@sifive.com>
20929 Jim Wilson <jimw@sifive.com>
20930
20931 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20932 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20933 (generic_idivdi, generic_fmul_single, generic_fmul_double)
20934 (generic_fdiv, generic_fsqrt): Add check for generic tune.
20935 (generic_alu): Add auipc to type list.
20936 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20937 (riscv_microarchitecture): Declare.
20938 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20939 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20940 field.
20941 (riscv_microarchitecture): New.
20942 (sifive_7_tune_info): New.
20943 (riscv_cpu_info_table): Add microarchitecture value for rocket and
20944 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
20945 entries.
20946 (riscv_store_data_bypass_p): New.
20947 (riscv_option_override): Set riscv_microarchitecture from
20948 cpu->microarchitecture.
20949 * config/riscv/riscv.md: Include sifive-7.md.
20950 (type): Add auipc.
20951 (tune): New.
20952 (auipc<mode>): Change type to auipc.
20953 (restore_stack_nonlocal): New.
20954 * config/riscv/sifive-7.md: New.
20955 * doc/invoke.texi (RISC-V Options): Update mtune docs.
20956
20957 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
20958
20959 PR target/89827
20960 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
20961 Also process XEXP (src, 0) of a shift insn.
20962
20963 2019-03-26 Richard Biener <rguenther@suse.de>
20964
20965 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
20966 (copy_debug_stmt): Likewise.
20967 (expand_call_inline): Likewise.
20968 (copy_bb): Avoid redundant lookup & set of gimple_block.
20969 * gimple-low.c (lower_gimple_return): Likewise.
20970 (lower_builtin_setjmp): Likewise.
20971
20972 2019-03-26 Jakub Jelinek <jakub@redhat.com>
20973
20974 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
20975 is constant 0, turn into static const data member initialized to false.
20976 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
20977 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
20978
20979 2019-03-26 Jason Merrill <jason@redhat.com>
20980 Jakub Jelinek <jakub@redhat.com>
20981
20982 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
20983 method.
20984 (mem_alloc_description::release_object_overhead): Fix comment typos.
20985 * hash-table.h (hash_table::~hash_table): Call
20986 release_instance_overhead only if m_entries is non-NULL, otherwise
20987 call unregister_descriptor.
20988
20989 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
20990
20991 PR tree-optimization/81740
20992 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20993 In case of outer loop vectorization, check for backward dependence
20994 at the inner loop if outer loop dependence is reversed.
20995
20996 2019-03-26 Alan Modra <amodra@gmail.com>
20997
20998 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
20999 rs6000_vector_mem init. Correct wI and wJ comment.
21000
21001 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21002
21003 PR rtl-optimization/88347
21004 PR rtl-optimization/88423
21005 * sched-deps.c (sched_analyze_insn): Take into account that for
21006 tablejumps the barrier appears after a label and a jump_table_data.
21007
21008 2019-03-25 Martin Sebor <msebor@redhat.com>
21009
21010 PR c/89812
21011 * c-common.c (check_user_alignment): Rename local. Correct maximum
21012 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21013 convert it to UHWI when it fits.
21014
21015 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21016
21017 PR debug/86964
21018 * dwarf2out.c (premark_used_variables): New function.
21019 (prune_unused_types_walk): Do not mark not premarked external
21020 variables.
21021 (prune_unused_types): Call premark_used_variables.
21022
21023 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21024
21025 PR rtl-optimization/89676
21026 * lra-constraints.c (curr_insn_transform): Do match reload for
21027 early clobbers when the match was successful only for different
21028 registers.
21029
21030 2019-03-25 Martin Sebor <msebor@redhat.com>
21031
21032 * doc/extend.texi (Common Type Attributes): Document vector_size.
21033 (Common Variable Attributes): Mention size constraint. Correct
21034 quoting and typos.
21035 (Vector Extensions): Use @dfn when defining bas type. Clarify
21036 base type and size constraints.
21037
21038 2019-03-25 Richard Biener <rguenther@suse.de>
21039
21040 PR tree-optimization/89789
21041 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21042 changes from non-undefined back to undefined.
21043
21044 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21045
21046 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21047 heap string and a gc string, but since this variable is unknown to
21048 ggc the gc string might get reused and corrupted. Fixed by always
21049 using a heap string.
21050
21051 2019-03-25 Richard Biener <rguenther@suse.de>
21052
21053 PR tree-optimization/89779
21054 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21055 to remove IV defs, delay actual removal.
21056 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21057 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21058 very end, properly also reset loop control IV information.
21059
21060 2019-03-25 Richard Biener <rguenther@suse.de>
21061
21062 PR tree-optimization/89802
21063 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21064 move EH data to folded stmt.
21065
21066 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21067
21068 * config/s390/s390-builtin-types.def: Remove few unused types and
21069 fix sort order for others.
21070
21071 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21072
21073 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21074 expected and found types with -mdebug during builtin matching.
21075
21076 2019-03-25 Richard Biener <rguenther@suse.de>
21077
21078 PR middle-end/89790
21079 * fold-const.c (operand_equal_p): Revert last change with
21080 updated comment.
21081
21082 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21083
21084 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21085 notes for the result of the __tls_get_addr calls.
21086 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21087
21088 2019-03-24 Jeff Law <law@redhat.com>
21089
21090 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21091
21092 PR rtl-optimization/87761
21093 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21094 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21095 as needed.
21096 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21097 rescans. Reprocess blocks as needed, calling df_analyze before
21098 reprocessing. Always call df_analyze before fixing up debug bind
21099 insns.
21100
21101 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21102
21103 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21104 big endian.
21105
21106 2019-03-22 Andrew Pinski <apinski@marvell.com>
21107
21108 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21109 attrribute for uxtw.
21110
21111 2019-03-26 Jeff Law <law@redhat.com>
21112
21113 PR rtl-optimization/87761
21114 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21115 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21116 (mips_split_move): Accept new INSN argument. Try to forward SRC
21117 into the next instruction.
21118 (mips_split_move_insn): Pass INSN through to mips_split_move.
21119
21120 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21121
21122 PR rtl-optimization/89676
21123 * lra-constraints.c (curr_insn_transform): Do match reload for
21124 early clobbers even if the match was successful.
21125
21126 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21127
21128 PR c++/87481
21129 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21130
21131 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21132
21133 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21134
21135 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21136
21137 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21138 <avx512>_fmsub_<mode>_mask3<round_name>,
21139 <avx512>_fnmadd_<mode>_mask3<round_name>,
21140 <avx512>_fnmsub_<mode>_mask3<round_name>,
21141 avx512f_vmfmadd_<mode>_mask3<round_name>,
21142 avx512f_vmfmsub_<mode>_mask3<round_name>,
21143 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21144 instead of register_operand and %v instead of v for match_operand 1.
21145 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21146 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21147 <round_nimm_predicate> instead of register_operand and %v instead of v
21148 for match_operand 1.
21149
21150 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21151 <avx512>_fmadd_<mode>_mask3<round_name>,
21152 <avx512>_fmsub_<mode>_mask<round_name>,
21153 <avx512>_fmsub_<mode>_mask3<round_name>,
21154 <avx512>_fnmadd_<mode>_mask<round_name>,
21155 <avx512>_fnmadd_<mode>_mask3<round_name>,
21156 <avx512>_fnmsub_<mode>_mask<round_name>,
21157 <avx512>_fnmsub_<mode>_mask3<round_name>,
21158 <avx512>_fmaddsub_<mode>_mask<round_name>,
21159 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21160 <avx512>_fmsubadd_<mode>_mask<round_name>,
21161 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21162 <round_nimm_predicate> instead of nonimmediate_operand.
21163 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21164 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21165 Use register_operand instead of <round_nimm_predicate> for the
21166 operand that needs to match output.
21167 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21168 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21169 Likewise. Formatting fixes.
21170
21171 PR target/89784
21172 * config/i386/i386.c (enum ix86_builtins): Remove
21173 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21174 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21175 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21176 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21177 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21178 __builtin_ia32_vfmsubss3_mask3): New builtins.
21179 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21180 avx512f_vmfmadd_<mode>_mask3<round_name>,
21181 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21182 *avx512f_vmfmsub_<mode>_mask<round_name>,
21183 avx512f_vmfmsub_<mode>_mask3<round_name>,
21184 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21185 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21186 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21187 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21188 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21189 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21190 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21191 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21192 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21193 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21194 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21195 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21196 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21197 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21198 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21199 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21200 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21201 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21202 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21203 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21204 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21205 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21206 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21207 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21208 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21209 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21210 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21211 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21212
21213 2019-03-21 Martin Sebor <msebor@redhat.com>
21214
21215 PR tree-optimization/89350
21216 * builtins.c (compute_objsize): Also ignore offsets whose upper
21217 bound is negative.
21218 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21219 (builtin_memref::builtin_memref): Initialize new member.
21220 Allow EXPR to be null.
21221 (builtin_memref::extend_offset_range): Replace local with a member.
21222 Avoid assuming pointer offsets are unsigned.
21223 (builtin_memref::set_base_and_offset): Determine base object
21224 before computing offset range.
21225 (builtin_access::builtin_access): Handle memset.
21226 (builtin_access::generic_overlap): Replace local with a member.
21227 (builtin_access::strcat_overlap): Same.
21228 (builtin_access::overlap): Same.
21229 (maybe_diag_overlap): Same.
21230 (maybe_diag_access_bounds): Same.
21231 (wrestrict_dom_walker::check_call): Handle memset.
21232 (check_bounds_or_overlap): Same.
21233
21234 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21235 Jakub Jelinek <jakub@redhat.com>
21236
21237 PR lto/89692
21238 * tree.c (fld_type_variant, fld_incomplete_type_of,
21239 fld_process_array_type): Call fld->pset.add and don't call
21240 add_tree_to_fld_list if it returns true.
21241 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21242 non-marked types from TYPE_NEXT_VARIANT list.
21243 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21244
21245 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21246
21247 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21248 to false, if true, don't alloc_entries during construction, but defer
21249 it to the first method that needs m_entries allocated.
21250 (hash_table::hash_table, hash_table::~hash_table,
21251 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21252 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21253 hash_table::clear_slot, hash_table::traverse_noresize,
21254 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21255 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21256 false.
21257 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21258 NO_INSERT instead of find_with_hash.
21259 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21260 hash_set::m_table): Add Lazy to template params of hash_table.
21261 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21262 * attribs.c (test_attribute_exclusions): Likewise.
21263 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21264 hash_set. Add tests for hash_set with Lazy = true.
21265
21266 2019-03-21 Richard Biener <rguenther@suse.de>
21267
21268 PR tree-optimization/89779
21269 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21270 checks with respect to released SSA names now having error_mark_node
21271 type.
21272 * fold-const.c (operand_equal_p): Likewise.
21273
21274 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21275
21276 PR target/89775
21277 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21278 available to ...
21279 (s390_optimize_register_info): Use global_not_special_regno_p to
21280 check for global regs.
21281
21282 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21283
21284 PR target/89752
21285 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21286 update this_alternative nor this_alternative_set.
21287
21288 2019-03-19 Jim Wilson <jimw@sifive.com>
21289
21290 PR target/89411
21291 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21292 align, size, offset. Use them to handle a BLKmode reference. Update
21293 comment.
21294 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21295
21296 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21297
21298 PR rtl-optimization/89768
21299 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21300 instead of GEN_INT.
21301 (unroll_loop_runtime_iterations): Likewise.
21302
21303 2019-03-19 Martin Sebor <msebor@redhat.com>
21304
21305 PR tree-optimization/89644
21306 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21307 rather than endptr as an indicator of nul-termination.
21308
21309 PR tree-optimization/89644
21310 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21311 arrays in determining sequence sizes in strncpy and stpncpy.
21312
21313 2019-03-19 Martin Liska <mliska@suse.cz>
21314
21315 PR middle-end/89737
21316 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21317 unlikely_edges if there's an edge that belongs to both these sets.
21318
21319 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21320
21321 PR target/89746
21322 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21323 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21324 go via a stack temporary.
21325
21326 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21327
21328 PR target/89378
21329 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21330 instead of gen_rtx_SUBREG.
21331 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21332
21333 2019-03-19 Richard Biener <rguenther@suse.de>
21334
21335 PR debug/88389
21336 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21337
21338 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21339
21340 PR lto/87809
21341 PR lto/89335
21342 * tree.c (free_lang_data_in_decl): Do not free context of C++
21343 destrutors.
21344
21345 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21346
21347 PR target/89506
21348 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21349 subs for the first alternative except when operands[3] is 1.
21350
21351 PR target/89752
21352 * gimplify.c (gimplify_asm_expr): For output argument with
21353 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21354 diagnose error.
21355
21356 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21357
21358 PR rtl-optimization/89753
21359 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21360 explicit unrolling factor even more robust.
21361
21362 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21363
21364 PR target/89726
21365 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21366 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21367 signed zeros, do another copysign after the compensation.
21368
21369 2019-03-18 Martin Sebor <msebor@redhat.com>
21370
21371 PR tree-optimization/89720
21372 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21373 more conservatively, the same as anti-range.
21374
21375 2019-03-18 Richard Biener <rguenther@suse.de>
21376
21377 PR middle-end/88945
21378 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21379 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21380 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21381 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21382
21383 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21384
21385 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21386 Extend queue to 1024 entries.
21387 Add "consumed" field.
21388 (gomp_print_output): Remove print_index parameter.
21389 Add final parameter.
21390 Change limit to unsigned.
21391 Use consumed field to implement circular buffer.
21392 Detect interrupted print in final pass.
21393 Flush output at the end.
21394 (run): Update gomp_print_output usage.
21395 (main): Initialize kernargs->output_data.consumed.
21396
21397 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21398
21399 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21400 calculation of the minimum number of scalar iterations for
21401 fully-predicated loops.
21402
21403 2019-03-18 Martin Jambor <mjambor@suse.cz>
21404
21405 PR tree-optimization/89546
21406 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21407 any propagation to its children took place.
21408
21409 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21410
21411 PR target/89627
21412 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21413 parameter, and make use of it.
21414 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21415
21416 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21417
21418 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21419 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21420 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21421 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21422 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21423 match what the ops is doing.
21424 (push_multi_fp_blink): Likewise.
21425 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21426 compiling for size and elf target.
21427 (arc_save_callee_enter): Adjust note to match what enter/leave
21428 operation does.
21429
21430 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21431
21432 * config/arc/arc.md (tst_movb): Fix constraint.
21433
21434 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21435
21436 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21437
21438 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21439
21440 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21441 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21442 reg_alloc_order references.
21443 (size_alloc_order): Define.
21444 (arc_adjust_reg_alloc_order): New function.
21445 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21446 order.
21447 (ADJUST_REG_ALLOC_ORDER): Define.
21448 (HONOR_REG_ALLOC_ORDER): Likewise.
21449
21450 2019-03-18 Richard Biener <rguenther@suse.de>
21451
21452 PR target/87561
21453 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21454 loads and stores a bit more.
21455
21456 2019-03-18 Richard Biener <rguenther@suse.de>
21457
21458 PR target/87561
21459 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21460 load pessimization to stores as well.
21461
21462 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21463
21464 PR middle-end/86979
21465 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21466 successor, use NULL as its av set.
21467
21468 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21469
21470 PR rtl-optimization/89721
21471 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21472
21473 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21474
21475 PR target/87532
21476 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21477 When handling vec_extract, use modular arithmetic to allow
21478 constant selectors greater than vector length.
21479 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21480 V1TImode vectors to have constant selector values greater than 0.
21481 Use modular arithmetic to compute vector index.
21482 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21483 index for in-memory vectors. Correct code generation for
21484 in-register vectors.
21485 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21486 compute index.
21487
21488 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21489
21490 PR c++/88534
21491 PR c++/88537
21492 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21493 VAR_DECL args.
21494
21495 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21496
21497 PR c++/89709
21498 * tree.c (inchash::add_expr): Strip any location wrappers.
21499 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21500 after hash verification.
21501
21502 PR debug/89704
21503 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21504 SIGN_EXTEND and ZERO_EXTEND.
21505
21506 2019-03-14 Jason Merrill <jason@redhat.com>
21507 Jakub Jelinek <jakub@redhat.com>
21508
21509 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21510 than if is_empty (*slot).
21511 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21512 existing elt and for elt removal.
21513 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21514 of already removed elt.
21515
21516 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21517
21518 PR target/89650
21519 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21520 REG_EH_REGION note.
21521
21522 2019-03-14 Martin Liska <mliska@suse.cz>
21523
21524 PR other/89712
21525 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21526
21527 2019-03-14 Richard Biener <rguenther@suse.de>
21528
21529 PR target/89711
21530 * config/i386/i386.c (make_resolver_func): Properly set
21531 DECL_CONTEXT on the RESULT_DECL.
21532 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21533
21534 2019-03-14 Richard Biener <rguenther@suse.de>
21535
21536 * gimple-pretty-print.c: Include cfgloop.h.
21537 (dump_gimple_phi): Adjust.
21538 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21539 (pp_cfg_jump): Adjust.
21540 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21541 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21542 (lower_phi_internal_fn): Remove.
21543 (verify_gimple_call): Remove IFN_PHI special-casing.
21544 (dump_function_to_file): Dump IL state.
21545 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21546 done to deal with PHI nodes being present in non-SSA state.
21547
21548 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21549
21550 PR ipa/89684
21551 * multiple_target.c (create_dispatcher_calls): Change
21552 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21553 In the node->iterate_referring loop, push *ref rather than ref, call
21554 ref->remove_reference () and always pass 0 to iterate_referring.
21555
21556 PR rtl-optimization/89679
21557 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21558 would contain a paradoxical SUBREG.
21559
21560 2019-03-14 Richard Biener <rguenther@suse.de>
21561
21562 PR tree-optimization/89710
21563 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21564 safe_dyn_cast.
21565
21566 2019-03-14 Martin Liska <mliska@suse.cz>
21567
21568 * coverage.c (coverage_begin_function): Stream also
21569 end_column.
21570 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21571 documentation about function declaration location.
21572 * gcov-dump.c (tag_function): Print whole range
21573 of function declaration.
21574 * gcov.c (struct function_info): Add end_column field.
21575 (function_info::function_info): Initialize it.
21576 (output_json_intermediate_file): Output {start,end}_column
21577 fields.
21578 (read_graph_file): Read end_column.
21579
21580 2019-03-14 Richard Biener <rguenther@suse.de>
21581
21582 PR middle-end/89698
21583 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21584 that the access types are similar.
21585
21586 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21587
21588 PR tree-optimization/89703
21589 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21590 aren't compatible also with builtin_decl_explicit. Check pure
21591 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21592 and BUILT_IN_STPNCPY{,_CHK}.
21593
21594 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21595
21596 PR target/89523
21597 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21598 addr32 prefix to VSIB address for X32.
21599 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21600 "%M2" to opcode.
21601 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21602 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21603 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21604 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21605 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21606 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21607 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21608 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21609 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21610 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21611 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21612 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21613 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21614 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21615 (*avx512f_scatterdi<mode>): Likewise.
21616
21617 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21618
21619 PR target/85860
21620 * lra-constraints.c (inherit_in_ebb): Update
21621 potential_reload_hard_regs along with live_hard_regs.
21622
21623 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21624
21625 PR debug/89498
21626 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21627 DWARF_OFFSET_SIZE.
21628 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21629
21630 2019-03-13 Martin Sebor <msebor@redhat.com>
21631
21632 PR tree-optimization/89662
21633 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21634 has a size.
21635
21636 2019-03-13 Richard Biener <rguenther@suse.de>
21637
21638 PR middle-end/89677
21639 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21640 throw FP expressions at tree-affine.
21641
21642 2019-03-14 Richard Biener <rguenther@suse.de>
21643
21644 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21645 dump negative integer constants using _Literal (type) -num.
21646
21647 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21648
21649 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21650 nonlocal_value member.
21651
21652 PR middle-end/88588
21653 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21654 (ipa_simd_modify_function_body): Handle PHIs.
21655
21656 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21657
21658 * config/s390/s390.c (s390_option_override_internal): Use more
21659 aggressive inlining parameters.
21660
21661 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21662
21663 * config/s390/3906.md: New file.
21664 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21665 (LONGRUNNING_THRESHOLD): Remove.
21666 (MAX_SCHED_MIX_SCORE): Decrease.
21667 (MAX_SCHED_MIX_DISTANCE): Decrease.
21668 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21669 (struct s390_sched_state): New struct to hold scheduling state.
21670 (S390_SCHED_STATE_NORMAL): Remove.
21671 (S390_SCHED_STATE_CRACKED): Remove.
21672 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21673 (s390_get_sched_attrmask): Use new attribute.
21674 (s390_get_unit_mask): Use new units.
21675 (s390_is_fpd): New function.
21676 (s390_is_fxd): New function.
21677 (s390_is_longrunning): New function.
21678 (s390_sched_score): Use new functions.
21679 (s390_sched_reorder): Likewise.
21680 (s390_sched_variable_issue): Rework and use new functions.
21681 (s390_sched_init): Use new functions.
21682 * config/s390/s390.h (s390_tune_attr): Add z14.
21683 * config/s390/s390.md: Add z14.
21684
21685 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21686
21687 * config/s390/2964.md: Update pipeline description.
21688 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21689 (LONGRUNNING_THRESHOLD): Remove.
21690 (LATENCY_FACTOR): Remove.
21691 (s390_get_unit_mask): Add unit.
21692 (s390_sched_score): Use fxd/fpd.
21693 (s390_sched_variable_issue): Use fxd/fpd.
21694
21695 2019-03-12 Martin Liska <mliska@suse.cz>
21696
21697 * config/i386/i386.c: Reword an error message.
21698
21699 2019-03-12 Martin Jambor <mjambor@suse.cz>
21700
21701 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21702 terminate with newline.
21703
21704 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21705
21706 PR target/52726
21707 * config/s390/s390.md (tabort): Use %wd instead of
21708 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21709 letters and periods.
21710 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21711 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21712 's with %< and %>.
21713
21714 PR middle-end/89663
21715 * builtins.c (expand_builtin_int_roundingfn,
21716 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21717 gcc_unreachable if validate_arglist fails.
21718
21719 2019-03-12 Richard Biener <rguenther@suse.de>
21720
21721 PR tree-optimization/89664
21722 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21723 free the occurance tree after the early out.
21724
21725 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21726
21727 PR middle-end/89655
21728 PR bootstrap/89656
21729 * vr-values.c (vr_values::update_value_range): If
21730 old_vr->varying_p (), don't update it, make new_vr also VARYING
21731 and return false.
21732
21733 2019-03-11 Martin Liska <mliska@suse.cz>
21734
21735 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21736 Fix double string quoting.
21737
21738 2019-03-11 Martin Liska <mliska@suse.cz>
21739
21740 * collect-utils.c (collect_wait): Wrap apostrophes
21741 in gcc internal format with %'.
21742 * collect2.c (main): Likewise.
21743 (scan_prog_file): Likewise.
21744 (scan_libraries): Likewise.
21745 * config/i386/i386.c (ix86_expand_call): Likewise.
21746 (ix86_handle_interrupt_attribute): Likewise.
21747 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21748 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21749 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21750 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21751 * symtab.c (symtab_node::verify_base): Likewise.
21752 * tree-cfg.c (verify_gimple_label): Likewise.
21753 * tree.c (verify_type_variant): Likewise.
21754
21755 2019-03-11 Martin Liska <mliska@suse.cz>
21756
21757 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21758 in a string format message and fix GNU coding style.
21759 (expand_builtin_set_thread_pointer): Likewise.
21760 * common/config/aarch64/aarch64-common.c
21761 (aarch64_rewrite_selected_cpu): Likewise.
21762 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21763 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21764 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21765 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21766 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21767 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21768 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21769 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21770 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21771 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21772 Likewise.
21773 * common/config/riscv/riscv-common.c
21774 (riscv_subset_list::parsing_subset_version): Likewise.
21775 (riscv_subset_list::parse_std_ext): Likewise.
21776 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21777 (riscv_subset_list::parse): Likewise.
21778 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21779 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21780 (aarch64_override_options_internal): Likewise.
21781 (aarch64_validate_mcpu): Likewise.
21782 (aarch64_validate_march): Likewise.
21783 (aarch64_validate_mtune): Likewise.
21784 (aarch64_override_options): Likewise.
21785 * config/alpha/alpha.c (alpha_option_override): Likewise.
21786 * config/arc/arc.c (arc_init): Likewise.
21787 (parse_mrgf_banked_regs_option): Likewise.
21788 (arc_override_options): Likewise.
21789 (arc_expand_builtin_aligned): Likewise.
21790 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21791 (arm_expand_builtin): Likewise.
21792 * config/arm/arm.c (arm_option_check_internal): Likewise.
21793 (arm_configure_build_target): Likewise.
21794 (arm_option_override): Likewise.
21795 (arm_options_perform_arch_sanity_checks): Likewise.
21796 (arm_handle_cmse_nonsecure_entry): Likewise.
21797 (arm_handle_cmse_nonsecure_call): Likewise.
21798 (arm_tls_referenced_p): Likewise.
21799 (thumb1_expand_prologue): Likewise.
21800 * config/avr/avr.c (avr_option_override): Likewise.
21801 * config/bfin/bfin.c (bfin_option_override): Likewise.
21802 * config/c6x/c6x.c (c6x_option_override): Likewise.
21803 * config/cr16/cr16.c (cr16_override_options): Likewise.
21804 * config/cris/cris.c (cris_option_override): Likewise.
21805 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21806 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21807 * config/darwin.c (darwin_override_options): Likewise.
21808 * config/frv/frv.c (frv_expand_builtin): Likewise.
21809 * config/h8300/h8300.c (h8300_option_override): Likewise.
21810 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21811 (ix86_option_override_internal): Likewise.
21812 (warn_once_call_ms2sysv_xlogues): Likewise.
21813 (ix86_expand_prologue): Likewise.
21814 (split_stack_prologue_scratch_regno): Likewise.
21815 (ix86_warn_parameter_passing_abi): Likewise.
21816 * config/ia64/ia64.c (fix_range): Likewise.
21817 * config/m68k/m68k.c (m68k_option_override): Likewise.
21818 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21819 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21820 (mips_set_compression_mode): Likewise.
21821 * config/mmix/mmix.c (mmix_option_override): Likewise.
21822 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21823 * config/msp430/msp430.c (msp430_option_override): Likewise.
21824 * config/nds32/nds32.c (nds32_option_override): Likewise.
21825 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21826 (nios2_option_override): Likewise.
21827 (nios2_expand_custom_builtin): Likewise.
21828 * config/nvptx/mkoffload.c (main): Likewise.
21829 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21830 * config/pa/pa.c (fix_range): Likewise.
21831 (pa_option_override): Likewise.
21832 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21833 (riscv_option_override): Likewise.
21834 * config/rl78/rl78.c (rl78_option_override): Likewise.
21835 * config/rs6000/aix61.h: Likewise.
21836 * config/rs6000/aix71.h: Likewise.
21837 * config/rs6000/aix72.h: Likewise.
21838 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21839 * config/rs6000/freebsd64.h: Likewise.
21840 * config/rs6000/linux64.h: Likewise.
21841 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21842 (rs6000_expand_zeroop_builtin): Likewise.
21843 (rs6000_expand_mtfsb_builtin): Likewise.
21844 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21845 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21846 (rs6000_invalid_builtin): Likewise.
21847 (rs6000_expand_split_stack_prologue): Likewise.
21848 * config/rs6000/rtems.h: Likewise.
21849 * config/rx/rx.c (valid_psw_flag): Likewise.
21850 (rx_expand_builtin): Likewise.
21851 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21852 * config/s390/s390.c (s390_expand_builtin): Likewise.
21853 (s390_function_profiler): Likewise.
21854 (s390_option_override_internal): Likewise.
21855 (s390_option_override): Likewise.
21856 * config/sh/sh.c (sh_option_override): Likewise.
21857 (sh_builtin_saveregs): Likewise.
21858 (sh_fix_range): Likewise.
21859 * config/sh/vxworks.h: Likewise.
21860 * config/sparc/sparc.c (sparc_option_override): Likewise.
21861 * config/spu/spu.c (spu_option_override): Likewise.
21862 (fix_range): Likewise.
21863 * config/visium/visium.c (visium_option_override): Likewise.
21864 (visium_handle_interrupt_attr): Likewise.
21865 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21866 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21867 (dbg_cnt_process_opt): Likewise.
21868 * dwarf2out.c (output_dwarf_version): Likewise.
21869 * except.c (expand_eh_return): Likewise.
21870 * gcc.c (defined): Likewise.
21871 (driver_handle_option): Likewise.
21872 (process_command): Likewise.
21873 (compare_files): Likewise.
21874 (driver::prepare_infiles): Likewise.
21875 (driver::do_spec_on_infiles): Likewise.
21876 (driver::maybe_run_linker): Likewise.
21877 * omp-offload.c (oacc_parse_default_dims): Likewise.
21878 * opts-global.c (handle_common_deferred_options): Likewise.
21879 * opts.c (parse_sanitizer_options): Likewise.
21880 (common_handle_option): Likewise.
21881 (enable_warning_as_error): Likewise.
21882 * passes.c (enable_disable_pass): Likewise.
21883 * plugin.c (parse_plugin_arg_opt): Likewise.
21884 (default_plugin_dir_name): Likewise.
21885 * targhooks.c (default_expand_builtin_saveregs): Likewise.
21886 (default_pch_valid_p): Likewise.
21887 * toplev.c (init_asm_output): Likewise.
21888 (process_options): Likewise.
21889 (toplev::run_self_tests): Likewise.
21890 * tree-cfg.c (verify_gimple_call): Likewise.
21891 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21892 (tree_inlinable_function_p): Likewise.
21893 * var-tracking.c (vt_find_locations): Likewise.
21894
21895 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
21896
21897 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21898 only on the else branch.
21899
21900 2019-03-11 Martin Liska <mliska@suse.cz>
21901
21902 * gcov.c (output_intermediate_json_line): Print function
21903 name of each line.
21904 (output_json_intermediate_file): Add new argument.
21905 * doc/gcov.texi: Document the change.
21906
21907 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
21908
21909 PR rtl-optimization/89588
21910 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21911 explicit unrolling factor more robust.
21912
21913 2019-03-11 Richard Biener <rguenther@suse.de>
21914
21915 PR tree-optimization/89649
21916 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21917 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21918 on the prolog and epilog loops.
21919 (vect_loop_versioning): Return copy of loop.
21920 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21921 on the non-vectorized version of the loop.
21922
21923 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
21924
21925 PR target/68924
21926 * config/i386/sse.md (*vec_extractv2di_0_sse):
21927 Add (=r,x) alternative and corresponding splitter.
21928
21929 2019-03-10 Martin Jambor <mjambor@suse.cz>
21930
21931 PR tree-optimization/85762
21932 PR tree-optimization/87008
21933 PR tree-optimization/85459
21934 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21935 it points to if there is a type changing MEM_REF. Adjust all callers.
21936 (build_accesses_from_assign): Disable total scalarization if
21937 contains_vce_or_bfcref_p returns true through the new parameter, for
21938 both rhs and lhs.
21939
21940 2019-03-09 Jakub Jelinek <jakub@redhat.com>
21941
21942 PR c/88568
21943 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21944 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21945
21946 PR target/79645
21947 * common.opt (fdiagnostics-show-labels,
21948 fdiagnostics-show-line-numbers, fdiagnostics-format=,
21949 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
21950 gas-locview-support, ginline-points, ginternal-reset-location-views):
21951 Terminate description text with a dot.
21952 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
21953 * config/mcore/mcore.opt (m210, m340): Likewise.
21954 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
21955 mnops=): Start description text with a capital letter.
21956 * config/arc/arc.opt (msize-level=): Likewise.
21957 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
21958 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
21959 mnewlib): Likewise.
21960 * config/ft32/ft32.opt (msim): Likewise.
21961 (mft32b, mcompress): Likewise. Terminate description text with a dot.
21962 (mnodiv, mnopm): Terminate description text with a dot.
21963 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
21964 a colon.
21965 * config/i386/i386.opt (prefer_vector_width, instrument_return):
21966 Likewise.
21967 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
21968 text.
21969
21970 PR rtl-optimization/89634
21971 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
21972 are modified in BB_END (e->src) instruction.
21973
21974 2019-03-08 David Malcolm <dmalcolm@redhat.com>
21975
21976 PR target/79926
21977 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
21978 messages more amenable to translation, and improve wording.
21979
21980 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
21981
21982 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
21983 ud- and du-chains between phases.
21984
21985 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
21986
21987 PR debug/89631
21988 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
21989 instead of POLY_INT_CST.
21990
21991 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
21992
21993 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
21994 requirement.
21995
21996 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
21997
21998 PR target/68924
21999 PR target/78782
22000 PR target/87558
22001 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22002 (_mm_storeu_si64): Ditto.
22003
22004 2019-03-08 Martin Liska <mliska@suse.cz>
22005
22006 PR target/86952
22007 * config/i386/i386.c (ix86_option_override_internal): Disable
22008 jump tables when retpolines are used.
22009
22010 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22011
22012 PR go/63560
22013 * ipa-split.c (execute_split_functions): Do not split
22014 'noinline' or 'section' function.
22015
22016 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22017
22018 PR target/79846
22019 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22020 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22021 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22022
22023 PR ipa/80000
22024 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22025 from diagnostics. Formatting fixes.
22026
22027 PR target/85665
22028 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22029 warn_odr diagnostics.
22030
22031 PR other/80058
22032 * lra-constraints.c (process_alt_operands): Avoid one space before
22033 " at the end of line and another after " on another line in a string
22034 literal.
22035 * attribs.c (handle_dll_attribute): Likewise.
22036 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22037
22038 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22039 warning_at or inform messages in G_() if there is no ?:.
22040
22041 PR tree-optimization/89550
22042 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22043 returned true. Formatting fixes.
22044 (expand_builtin_strnlen): Formatting fixes.
22045 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22046 if warning_at returned true.
22047 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22048
22049 2019-03-08 Richard Biener <rguenther@suse.de>
22050
22051 PR middle-end/89578
22052 * cfgloop.h (struct loop): Add owned_clique field.
22053 * cfgloopmanip.c (copy_loop_info): Copy it.
22054 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22055 cliques.
22056 * tree-inline.c (copy_loops): Remap owned_clique.
22057 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22058 * lto-streamer-out.c (output_cfg): Likewise.
22059
22060 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22061
22062 PR target/80190
22063 * config/darwin.c: Include intl.h.
22064 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22065 composing the message out of two separate parts.
22066
22067 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22068
22069 PR target/80003
22070 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22071 doesn't start with a capital letter and doesn't end with a dot.
22072 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22073 with a capital letter.
22074 (ix86_mangle_function_version_assembler_name): Likewise.
22075 (ix86_generate_version_dispatcher_body): Likewise.
22076 (fold_builtin_cpu): Likewise.
22077 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22078 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22079 translators, wrap full type name in %qs.
22080
22081 PR translation/79999
22082 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22083 depend clause with source (or sink) modifier.
22084 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22085
22086 PR target/89602
22087 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22088 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22089 (avx512f_load<mode>_mask): New define_expand.
22090 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22091 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22092 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22093 __builtin_ia32_movess_mask): New builtins.
22094 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22095 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22096 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22097 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22098
22099 2019-03-07 Martin Jambor <mjambor@suse.cz>
22100
22101 PR lto/87525
22102 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22103 for extern inline functions.
22104
22105 2019-03-07 Martin Jambor <mjambor@suse.cz>
22106
22107 PR ipa/88235
22108 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22109 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22110 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22111 have multiple callees. At the end check if declarations match as
22112 opposed to cgraph_nodes.
22113
22114 2019-03-07 Martin Liska <mliska@suse.cz>
22115
22116 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22117 which is equivalent to searching for this in clones chain.
22118 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22119 names with a neighbour and special case first node in a chain.
22120
22121 2019-01-25 Jason Merrill <jason@redhat.com>
22122
22123 PR c++/80916 - spurious "static but not defined" warning.
22124 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22125 for an internal symbol with DECL_EXTERNAL.
22126
22127 2019-04-07 Richard Biener <rguenther@suse.de>
22128
22129 PR middle-end/89618
22130 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22131 * tree-inline.c (copy_loops): Simplify.
22132
22133 2019-03-07 Martin Liska <mliska@suse.cz>
22134
22135 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22136
22137 2019-03-07 Richard Biener <rguenther@suse.de>
22138
22139 PR tree-optimization/89595
22140 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22141 stmt iterator as reference, take boolean output parameter to
22142 indicate whether the stmt was removed and thus the iterator
22143 already advanced.
22144 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22145 stmts created by folding.
22146
22147 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22148
22149 PR c++/89585
22150 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22151 at toplevel.
22152
22153 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22154
22155 PR rtl-optimization/88845
22156 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22157 LRA.
22158 * lra.c (remove_scratches_1): New function.
22159 (remove_scratches): Use it.
22160 (lra_emit_move): Likewise.
22161
22162 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22163
22164 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22165 unaligned_access variable.
22166 * config/arc/arc.c (arc_override_options): Set unaligned access
22167 default on for HS CPUs.
22168 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22169
22170 2019-03-06 Martin Liska <mliska@suse.cz>
22171
22172 PR gcov-profile/89577
22173 * doc/gcov.texi: Prefer to use --coverage.
22174 * doc/sourcebuild.texi: Likewise.
22175
22176 2019-03-02 Jason Merrill <jason@redhat.com>
22177
22178 PR c++/86485 - -Wmaybe-unused with empty class ?:
22179 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22180
22181 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22182
22183 PR target/89587
22184 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22185 if_multiarch.
22186
22187 PR middle-end/89590
22188 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22189 exactly one argument.
22190
22191 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22192 Richard Sandiford <richard.sandiford@arm.com>
22193
22194 PR tree-optimization/89570
22195 * match.pd (vec_cond into cond_op simplification): Don't use
22196 get_conditional_internal_fn, use as_internal_fn (cond_op).
22197
22198 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22199
22200 PR target/89222
22201 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22202 to decide when to split off a non-zero offset from a symbol.
22203 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22204 in function symbols.
22205
22206 2019-03-05 Richard Biener <rguenther@suse.de>
22207
22208 PR tree-optimization/89594
22209 * tree-if-conv.c (pass_if_conversion::execute): Handle
22210 case where .LOOP_VECTORIZED_FUNCTION was removed.
22211
22212 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22213
22214 PR bootstrap/89560
22215 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22216 instead alloca it only when needed with the needed size.
22217
22218 PR tree-optimization/89570
22219 * match.pd (vec_cond into cond_op simplification): Guard with
22220 vectorized_internal_fn_supported_p test and #if GIMPLE.
22221
22222 PR tree-optimization/89566
22223 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22224 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22225 Punt if get_user_idx_format succeeds, but idx_format argument is
22226 not provided or doesn't have pointer type, or if idx_args is above
22227 number of provided arguments.
22228
22229 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22230
22231 PR tree-optimization/89437
22232 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22233
22234 2019-03-04 Richard Biener <rguenther@suse.de>
22235
22236 PR middle-end/89572
22237 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22238 safe_dyn_cast.
22239
22240 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22241
22242 PR tree-optimization/89487
22243 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22244 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22245 (distribute_loop): Don't do runtime alias check if there is non-
22246 addressable data reference.
22247 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22248 is a register variable.
22249
22250 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22251
22252 PR target/89506
22253 * config/arm/arm.md (cmpsi2_addneg): Use
22254 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22255 If operands[2] is 0 or INT_MIN, force use of subs.
22256 (*compare_scc splitter): Use gen_int_mode.
22257 (*negscc): Likewise.
22258 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22259
22260 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22261 Monk Chiang <sh.chiang04@gmail.com>
22262
22263 * common/config/riscv/riscv-common.c: Include sstream.
22264 (riscv_subset_list::to_string): New.
22265 (riscv_arch_str): Likewise.
22266 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22267 * config.in: Regen.
22268 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22269 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22270 (riscv_emit_attribute): New.
22271 (riscv_file_start): Emit attribute if needed.
22272 (riscv_option_override): Init riscv_emit_attribute_p.
22273 * config/riscv/riscv.opt (mriscv-attribute): New option.
22274 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22275 * configure: Regen.
22276 * doc/install.texi: Document --with-riscv-attribute.
22277 * doc/invoke.texi: Document -mriscv-attribute.
22278
22279 * common/config/riscv/riscv-common.c:
22280 Include config/riscv/riscv-protos.h.
22281 (INCLUDE_STRING): Defined.
22282 (RISCV_DONT_CARE_VERSION): Defined.
22283 (riscv_subset_t): Declare.
22284 (riscv_subset_t::riscv_subset_t): New.
22285 (riscv_subset_list): Declare.
22286 (riscv_subset_list::riscv_subset_list): New.
22287 (riscv_subset_list::~riscv_subset_list): Likewise.
22288 (riscv_subset_list::parsing_subset_version): Likewise.
22289 (riscv_subset_list::parse_std_ext): Likewise.
22290 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22291 (riscv_subset_list::add): Likewise.
22292 (riscv_subset_list::lookup): Likewise.
22293 (riscv_subset_list::xlen): Likewise.
22294 (riscv_subset_list::parse): Likewise.
22295 (riscv_supported_std_ext): Likewise.
22296 (current_subset_list): Likewise.
22297 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22298 parse.
22299
22300 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22301
22302 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22303 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22304 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22305
22306 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22307
22308 PR rtl-optimization/85899
22309 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22310 fallthru edges leading to the exit block.
22311
22312 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22313
22314 PR target/89517
22315 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22316 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22317
22318 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22319
22320 PR tree-optimization/89535
22321 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22322 for each operand. Calculate the fallback choice for mask operands
22323 and pass it to vect_get_vec_def_for_operand.
22324
22325 2019-03-01 Richard Biener <rguenther@suse.de>
22326
22327 PR middle-end/89541
22328 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22329 get virtual operands.
22330 (get_expr_operands): Handle CONST_DECL like other decls.
22331
22332 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22333
22334 PR middle-end/89503
22335 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22336 on DECL_P and EXPR_P.
22337
22338 2019-03-01 Richard Biener <rguenther@suse.de>
22339
22340 PR middle-end/89497
22341 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22342 argument, defaulted to zero.
22343 * passes.c (execute_function_todo): Pass down SSA update flags
22344 to cleanup_tree_cfg.
22345 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22346 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22347 form if requested.
22348 (cleanup_tree_cfg): Get and pass down SSA update flags.
22349
22350 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22351
22352 PR bootstrap/89539
22353 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22354 early_lto_debug argument.
22355
22356 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22357
22358 PR tree-optimization/89536
22359 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22360 only whether bit #0 of the value is 0 instead of the entire value.
22361
22362 2019-02-28 Marek Polacek <polacek@redhat.com>
22363
22364 PR c++/87068 - missing diagnostic with fallthrough statement.
22365 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22366 at the end of a seq, save its location to walk_stmt_info.
22367 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22368 a switch.
22369
22370 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22371
22372 PR lto/88585
22373 * tree.c (find_atomic_core_type): Move ahead in file.
22374 (check_base_type): Correctly compare alignments of atomic types.
22375
22376 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22377
22378 PR target/89455
22379 * config/i386/i386.c (get_builtin_code_for_version): Identify
22380 Westmere from PCLMUL, instead of AES.
22381
22382 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22383
22384 PR target/89434
22385 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22386 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22387 -UINTVAL (...).
22388
22389 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22390
22391 PR target/88530
22392 * config/aarch64/aarch64-option-extensions.def: Document it.
22393 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22394 if empty hwcaps.
22395
22396 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22397
22398 PR c/89520
22399 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22400 builtins if they don't have a single scalar floating point argument.
22401 Formatting fixes.
22402
22403 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22404
22405 PR rtl-optimization/89490
22406 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22407 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22408 block section is not mergeable.
22409
22410 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22411
22412 PR target/70341
22413 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22414 old define_insn to ...
22415 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22416 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22417 Rename old define_insn to ...
22418 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22419 (thumb2_casesi_internal_pic): New define_expand. Rename old
22420 define_insn to ...
22421 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22422 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22423 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22424
22425 2019-02-27 Richard Biener <rguenther@suse.de>
22426
22427 PR debug/88878
22428 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22429
22430 2019-02-27 Richard Biener <rguenther@suse.de>
22431
22432 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22433 building.
22434
22435 2019-02-27 Richard Biener <rguenther@suse.de>
22436
22437 PR debug/88878
22438 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22439 parameter, prefix section name with .gnu.debuglto_ if true.
22440 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22441 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22442
22443 2019-02-27 Richard Biener <rguenther@suse.de>
22444
22445 PR debug/89514
22446 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22447 rather than on use_debug_types, doing what output_die does.
22448 (value_format): Likewise.
22449
22450 2019-02-27 Martin Jambor <mjambor@suse.cz>
22451 Martin Sebor <msebor@redhat.com>
22452
22453 * doc/invoke.texi (Warning Options): Reword description of
22454 -Wno-absolute-value.
22455
22456 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22457
22458 PR tree-optimization/89280
22459 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22460 builtin_setjmp_setup_bb): New functions.
22461 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22462 When visiting __builtin_setjmp_setup block, queue in special
22463 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22464 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22465 from visited after the loop if they don't have any visited successor
22466 blocks.
22467
22468 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22469
22470 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22471 New function.
22472 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22473
22474 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22475
22476 PR c++/89507
22477 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22478 with types other than sizetype/ssizetype.
22479
22480 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22481
22482 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22483 (enum sparc_processor_type): ...this.
22484 (enum sparc_code_model_type): New enumeration type.
22485 (enum sparc_memory_model_type): Tweak comments.
22486 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22487 (mtune): Likewise.
22488 (mcmodel): Use sparc_code_model enumeration and variable.
22489 (sparc_code_model): New enumeration.
22490 (mdebug): Add Undocumented marker.
22491 * config/sparc/sparc.h (enum cmodel): Delete.
22492 (sparc_cmodel): Likewise.
22493 (TARGET_CM_MEDLOW): Adjust to above renaming.
22494 (TARGET_CM_MEDMID): Likewise.
22495 (TARGET_CM_MEDANY): Likewise.
22496 (TARGET_CM_EMBMEDANY): Likewise.
22497 * config/sparc/sparc.c (sparc_cmodel): Delete.
22498 (sparc_option_override): Remove string/value mapping support for the
22499 code model. Move code and memory model support to after the handling
22500 of target flags. Do private machine setup last.
22501 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22502 (sparc_legitimize_reload_address): Likewise.
22503 (sparc_output_mi_thunk): Likewise.
22504 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22505
22506 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22507
22508 PR tree-optimization/89500
22509 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22510 (handle_builtin_strlen): Remove noncst_bound variable. Always
22511 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22512 cst if the first cst bytes starting at x are known to be non-zero,
22513 even if the string is not zero terminated. Don't try to modify
22514 *si for strnlen. Update strlen_to_stridx only for strlen or if
22515 we can prove strnlen returns the same value as strlen would.
22516
22517 2019-02-26 Martin Liska <mliska@suse.cz>
22518
22519 * alloc-pool.h (struct pool_usage): Remove extra
22520 print_dash_line.
22521 * bitmap.h (struct bitmap_usage): Likewise.
22522 * ggc-common.c (struct ggc_usage): Likewise.
22523 * mem-stats.h (struct mem_usage): Likewise.
22524 (mem_alloc_description::dump): Print dash lines
22525 here and repeat header at the end of a table report.
22526 It's then more readable.
22527 * tree-phinodes.c (phinodes_print_statistics): Make
22528 horizontal alignment.
22529 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22530 * vec.c (struct vec_usage): Remove extra print_dash_line.
22531 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22532
22533 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22534
22535 * doc/extend.texi (__builtin_object_size):
22536 Use @pxref instead of @xref inside parenthesis.
22537 (__builtin_has_attribute): Add missing comma after @xref.
22538 (__builtin_object_size): Ditto.
22539 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22540
22541 2019-02-26 Jeff Law <law@redhat.com>
22542
22543 PR rtl-optimization/87761
22544 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22545 detect obviously dead insns and delete them.
22546
22547 2019-02-26 Richard Biener <rguenther@suse.de>
22548
22549 PR tree-optimization/89505
22550 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22551 to handle restrict pointed-to vars with multiple subvars
22552 correctly.
22553
22554 2019-02-26 Richard Biener <rguenther@suse.de>
22555
22556 PR tree-optimization/89489
22557 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22558
22559 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22560
22561 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22562 and move around comment.
22563 <BIT_AND_EXPR>: Likewise.
22564 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22565
22566 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22567
22568 PR target/89474
22569 * config/i386/i386.c (remove_partial_avx_dependency): Call
22570 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22571 after changing possibly many instructions to use that pseudo. Fix up
22572 insertion of v4sf_const0 setter at the start of bb.
22573
22574 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22575
22576 PR c/80409
22577 * doc/extend.texi (Variadic Pointer Args): New section.
22578
22579 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22580 Martin Sebor <msebor@gmail.com>
22581
22582 * common.opt (Wattribute-alias): Likewise.
22583 * doc/invoke.texi (Option Summary): List general form of
22584 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22585 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22586 Add cross-references.
22587 (-Wattribute-alias): Rewrite and correct default. Mention
22588 considered attributes (same as for -Wmissing-attributes).
22589
22590 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22591
22592 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22593 (_mm_cvtpd_ps): Likewise.
22594 (_mm_cvttpd_epi32): Likewise.
22595
22596 PR target/89338
22597 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22598 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22599
22600 PR target/89339
22601 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22602
22603 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22604
22605 PR target/88530
22606 * common/config/aarch64/aarch64-common.c
22607 (struct aarch64_option_extension): Add is_synthetic.
22608 (all_extensions): Use it.
22609 (TARGET_OPTION_INIT_STRUCT): Define hook.
22610 (struct gcc_targetm_common): Moved to end.
22611 (all_extensions_by_on): New.
22612 (opt_ext_cmp, typedef opt_ext): New.
22613 (aarch64_option_init_struct): New.
22614 (aarch64_contains_opt): New.
22615 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22616 * config/aarch64/aarch64-option-extensions.def
22617 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22618 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22619 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22620 Set is_synthetic to false.
22621 (crypto): Set is_synthetic to true.
22622 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22623 SYNTHETIC.
22624
22625 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22626
22627 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22628 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22629 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22630 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22631 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22632 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22633 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22634 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22635 Rename ...
22636 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22637 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22638 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22639 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22640 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22641 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22642 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22643 vfmlsl_laneq_high_f16): ... To this.
22644 * config/arm/neon.md: Update comments.
22645
22646 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22647
22648 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22649 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22650 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22651 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22652 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22653 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22654 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22655 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22656 Rename ...
22657 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22658 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22659 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22660 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22661 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22662 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22663 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22664 vfmlslq_laneq_high_f16): ... To this.
22665
22666 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22667
22668 PR rtl-optimization/86096
22669 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22670 comparing mw_order values.
22671
22672 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22673
22674 PR target/89434
22675 * config/arm/arm.md (*subsi3_carryin_const): Use
22676 arm_neg_immediate_operand predicate instead of
22677 arm_not_immediate_operand, "L" constraint instead of "K" and
22678 print it using %n2 instead of %B2.
22679 (*subsi3_carryin_const0): New define_insn.
22680 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22681 instead of arm_not_operand and "I" constraint instead of "K" and
22682 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22683 another match_operand and in the condition check that it is negation
22684 of operands[2].
22685 (*subsi3_carryin_compare_const0): New define_ins.
22686 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22687 *subsi3_carryin_const.
22688 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22689 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22690
22691 PR target/89438
22692 * config/arm.vfp.md (*negdf2_vfp): Use
22693 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22694 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22695
22696 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22697
22698 PR rtl-optimization/89445
22699 * simplify-rtx.c (simplify_ternary_operation): Don't use
22700 simplify_merge_mask on operands that may trap.
22701 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22702 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22703 second operand is CONST_VECTOR, check if any element could be zero.
22704 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22705 their operands can trap.
22706
22707 2019-02-23 Martin Sebor <msebor@redhat.com>
22708
22709 * gimple-ssa-sprintf.c (target_strtol): Rename...
22710 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22711 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22712 check for range error.
22713
22714 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22715
22716 PR driver/69471
22717 * opts-common.c (prune_options): Also prune joined switches
22718 with Negative and RejectNegative.
22719 * config/i386/i386.opt (march=): Add Negative(march=).
22720 (mtune=): Add Negative(mtune=).
22721 * doc/options.texi: Document Negative used together with Joined
22722 and RejectNegative.
22723
22724 2019-02-22 Martin Sebor <msebor@redhat.com>
22725
22726 * doc/extend.texi (Other Builtins): Add
22727 __builtin_is_constant_evaluated.
22728
22729 2019-02-22 Richard Biener <rguenther@suse.de>
22730
22731 PR tree-optimization/87609
22732 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22733
22734 2019-02-22 Jeff Law <law@redhat.com>
22735
22736 PR rtl-optimization/87761
22737 * config/mips/mips.md: Add new combiner pattern to recognize
22738 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22739
22740 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22741
22742 PR target/89324
22743 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22744 destination register in peepholes generating patterns for ADDS/SUBS.
22745 (add<mode>3_compare0,
22746 *addsi3_compare0_uxtw, add<mode>3_compareC,
22747 add<mode>3_compareV_imm, add<mode>3_compareV,
22748 *adds_<optab><ALLX:mode>_<GPI:mode>,
22749 *subs_<optab><ALLX:mode>_<GPI:mode>,
22750 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22751 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22752 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22753 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22754 sub<mode>3_compare1): Allow stack pointer for source register.
22755 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22756
22757 2019-02-22 Martin Sebor <msebor@redhat.com>
22758
22759 PR tree-optimization/88993
22760 PR tree-optimization/88853
22761 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22762 New helper.
22763 (sprintf_dom_walker::call_info::is_string_func): New helper.
22764 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22765 for formatted string functions.
22766 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22767
22768 2019-02-22 Martin Sebor <msebor@redhat.com>
22769
22770 PR c/89425
22771 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22772 unreachable subexpressions.
22773
22774 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22775 Hongtao Liu <hongtao.liu@intel.com>
22776 Sunil K Pandey <sunil.k.pandey@intel.com>
22777
22778 PR target/87007
22779 * config/i386/i386-passes.def: Add
22780 pass_remove_partial_avx_dependency.
22781 * config/i386/i386-protos.h
22782 (make_pass_remove_partial_avx_dependency): New.
22783 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22784 New function.
22785 (pass_data_remove_partial_avx_dependency): New.
22786 (pass_remove_partial_avx_dependency): Likewise.
22787 (make_pass_remove_partial_avx_dependency): Likewise.
22788 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22789 (*extendsfdf2): Add avx_partial_xmm_update.
22790 (truncdfsf2): Likewise.
22791 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22792 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22793
22794 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22795
22796 PR middle-end/85598
22797 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22798 analysis for pass.
22799
22800 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22801
22802 PR target/89444
22803 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22804 (PTA_SKYLAKE): Add PTA_AES.
22805 (PTA_GOLDMONT): Likewise.
22806
22807 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22808
22809 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22810 instruction if enabled.
22811 (aarch64_override_options): Remove reference to return address key.
22812
22813 2019-02-22 Richard Biener <rguenther@suse.de>
22814
22815 PR tree-optimization/89440
22816 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22817 not necessary assert.
22818
22819 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22820
22821 PR fortran/72741
22822 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22823 (oacc_replace_fn_attrib_attr): ... this new function.
22824 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22825 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22826
22827 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22828
22829 * config/arm/arm-cpus.in (ares): Rename to...
22830 (neoverse-n1): ... This. Add ares as alias.
22831 * config/arm/arm-tables.opt: Regenerate.
22832 * config/arm/arm-tune.md: Likewise.
22833 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22834
22835 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22836
22837 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22838 * config/aarch64/aarch64-tune.md: Regenerate.
22839 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22840
22841 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22842
22843 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22844 (neoversen1_tunings): ... This.
22845 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22846 (neoverse-n1): New CPU.
22847 * config/aarch64/aarch64-tune.md: Regenerate.
22848 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22849
22850 2019-02-22 Richard Biener <rguenther@suse.de>
22851
22852 PR middle-end/87609
22853 * cfghooks.h (dependence_hash): New typedef.
22854 (struct copy_bb_data): New type.
22855 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22856 (duplicate_block): Likewise.
22857 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22858 (copy_bbs): Create and pass down copy_bb_data.
22859 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22860 (rtl_duplicate_bb): Likewise.
22861 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22862 remap dependence info.
22863
22864 2019-02-22 Richard Biener <rguenther@suse.de>
22865
22866 PR tree-optimization/87609
22867 * tree-core.h (tree_base): Document special clique values.
22868 * tree-inline.c (remap_dependence_clique): Do not use the
22869 special clique value of one.
22870 (maybe_set_dependence_info): Use clique one.
22871 (clear_dependence_clique): New callback.
22872 (compute_dependence_clique): Clear clique one from all refs
22873 before assigning it (again).
22874
22875 2019-02-21 Martin Sebor <msebor@redhat.com>
22876
22877 * doc/extend.texi (__clear_cache): Correct signature.
22878
22879 2019-02-21 Ian Lance Taylor <iant@golang.org>
22880
22881 PR go/89170
22882 * varasm.c (decode_addr_const): Call lookup_constant_def rather
22883 than output_constant_def.
22884 (add_constant_to_table): New static function.
22885 (output_constant_def): Call add_constant_to_table.
22886 (tree_output_constant_def): Likewise.
22887
22888 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22889
22890 PR c++/89285
22891 * builtins.c (fold_builtin_arith_overflow): If first two args are
22892 INTEGER_CSTs, set intres and ovfres to constants rather than calls
22893 to ifn.
22894
22895 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
22896
22897 PR target/87412
22898 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22899 error for -mindirect-branch/-mfunction-return with incompatible
22900 -fcf-protection.
22901
22902 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22903
22904 PR bootstrap/88714
22905 * constraints.md (q): Remove.
22906 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22907 instead of q.
22908
22909 2019-02-21 Martin Jambor <mjambor@suse.cz>
22910
22911 PR hsa/89302
22912 * omp-general.c (omp_extract_for_data): Removed a duplicate call
22913 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22914 (omp_adjust_for_condition): ...here. Added necessary parameters.
22915 * omp-general.h (omp_adjust_for_condition): Updated declaration.
22916 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22917 proper values to new parameters of omp_adjust_for_condition.
22918
22919 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22920
22921 PR middle-end/89412
22922 * expr.c (expand_assignment): If result is a MEM, use change_address
22923 instead of simplify_gen_subreg.
22924
22925 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22926 David Malcolm <dmalcolm@redhat.com>
22927
22928 PR middle-end/89091
22929 * fold-const.c (decode_field_reference): Return NULL_TREE if
22930 lang_hooks.types.type_for_size returns NULL. Check it before
22931 overwriting *exp_. Use return NULL_TREE instead of return 0.
22932
22933 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22934
22935 PR middle-end/88074
22936 PR middle-end/89415
22937 * toplev.c (do_compile): Double the emin/emax exponents to workaround
22938 buggy mpc_norm.
22939
22940 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
22941
22942 PR target/89397
22943 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22944 TARGET_SSE in addition to TARGET_SSE_MATH.
22945
22946 (ix86_excess_precision): Ditto.
22947 (ix86_float_exceptions_rounding_supported_p): Ditto.
22948 (use_rsqrt_p): Ditto.
22949 * config/i386/sse.md (rsqrt<mode>2): Ditto.
22950
22951 2019-02-20 David Malcolm <dmalcolm@redhat.com>
22952
22953 PR c/89410
22954 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
22955 linenum_arith_t when determining if two adjacent line spans are
22956 close enough to merge.
22957 (diagnostic_show_locus): Use linenum_arith_t when iterating over
22958 lines within each line_span.
22959
22960 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22961
22962 PR target/86487
22963 * lra-constraints.c(uses_hard_regs_p): Fix handling of
22964 paradoxical SUBREGS.
22965
22966 2019-02-20 Li Jia He <helijia@linux.ibm.com>
22967
22968 PR target/88100
22969 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
22970 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
22971 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
22972 range checking it.
22973
22974 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
22975
22976 * config/gcn/gcn.c (print_operand): Fix typo.
22977
22978 2019-02-19 Richard Biener <rguenther@suse.de>
22979
22980 PR middle-end/88074
22981 * toplev.c (do_compile): Initialize mpfr's exponent range
22982 based on available float modes.
22983
22984 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
22985
22986 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
22987 as long as the epilogue isn't completed.
22988
22989 2019-02-18 Martin Sebor <msebor@redhat.com>
22990
22991 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
22992 __has_cpp_attribute, and __has_include.
22993
22994 2019-02-18 Martin Sebor <msebor@redhat.com>
22995
22996 * doc/invoke.texi (-Wreturn-type): Correct and expand.
22997
22998 2019-02-18 Martin Sebor <msebor@redhat.com>
22999
23000 PR middle-end/89294
23001 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23002 expression.
23003 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23004
23005 2019-02-18 Richard Biener <rguenther@suse.de>
23006
23007 PR tree-optimization/89296
23008 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23009 of no-warning flag to cases that might emit the bogus warning.
23010
23011 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23012
23013 PR bootstrap/88714
23014 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23015 "q" constraint.
23016 * config/arm/vfp.md (*movdi_vfp): Likewise.
23017 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23018 "q" constraint for operands[0].
23019
23020 PR target/89369
23021 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23022 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23023 pattern in a temporary buffer.
23024 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23025 than 64-operands[2].
23026
23027 PR target/89361
23028 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23029 s390_indirect_branch_settings): Define unconditionally.
23030 (s390_set_current_function): Likewise, but guard the whole body except
23031 the s390_indirect_branch_settings call with
23032 #if S390_USE_TARGET_ATTRIBUTE.
23033 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23034
23035 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23036 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23037 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23038 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23039 HOST_WIDE_INT_1U instead of 1ULL.
23040 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23041 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23042 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23043 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23044 instead of 1UL.
23045 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23046 instead of 1ul.
23047
23048 2019-02-18 Martin Jambor <mjambor@suse.cz>
23049
23050 PR tree-optimization/89209
23051 * tree-sra.c (create_access_replacement): New optional parameter
23052 reg_tree. Use it as a type if non-NULL and access type is not of
23053 a register type.
23054 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23055 to create_access_replacement.
23056 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23057 Check lacc is non-NULL before attempting to re-create it on the RHS.
23058
23059 2019-02-18 Martin Liska <mliska@suse.cz>
23060
23061 PR ipa/89306
23062 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23063 by default.
23064 (symbol_table::free_edge): Recycle m_summary_id.
23065 * cgraph.h (get_summary_id): New.
23066 (symbol_table::release_symbol): Set m_summary_id to -1
23067 by default.
23068 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23069 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23070 function_summary to fast_function_summary.
23071 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23072 * ipa-pure-const.c (class funct_state_summary_t):
23073 Switch from function_summary to fast_function_summary.
23074 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23075 (class ipa_ref_opt_summary_t): Switch from function_summary
23076 to fast_function_summary.
23077 * symbol-summary.h (class function_summary_base): New class
23078 that is created from base of former function_summary.
23079 (function_summary_base::unregister_hooks): New.
23080 (class function_summary): Inherit from function_summary_base.
23081 (class call_summary_base): New class
23082 that is created from base of former call_summary.
23083 (class call_summary): Inherit from call_summary_base.
23084 (struct is_same): New.
23085 (class fast_function_summary): New summary class.
23086 (class fast_call_summary): New summary class.
23087 * vec.h (vec_safe_grow_cleared): New function.
23088
23089 2019-02-18 Martin Liska <mliska@suse.cz>
23090
23091 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23092 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23093 * doc/tm.texi: Document new target hook.
23094 * doc/tm.texi.in: Likewise.
23095 * target.def: Add new target macro.
23096 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23097 suffixes.
23098
23099 2019-02-17 Alan Modra <amodra@gmail.com>
23100
23101 PR target/89271
23102 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23103 output reg on add insn.
23104 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23105
23106 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23107
23108 PR target/89372
23109 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23110 (PMULHRSW): Likewise.
23111 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23112 TARGET_AVX2.
23113 (ssse3_pmulhrswv4hi3): New expander.
23114
23115 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23116
23117 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23118 MMX. Add isa attribute.
23119
23120 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23121
23122 PR rtl-optimization/66152
23123 * builtins.h (c_readstr): Declare.
23124 * builtins.c (c_readstr): Remove forward declaration. Add
23125 null_terminated_p argument, if false, read all bytes from the
23126 string instead of stopping after '\0'.
23127 * expr.c (string_cst_read_str): New function.
23128 (store_expr): Use string_cst_read_str instead of
23129 builtin_strncpy_read_str. Try to store by pieces the whole
23130 exp_len first, and only if that fails, split it up into
23131 store by pieces followed by clear_storage. Formatting fix.
23132
23133 * config/i386/i386.md (*movqi_internal): Remove static from
23134 buf variable. Use output_asm_insn (buf, operands); return "";
23135 instead of return buf;.
23136 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23137 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23138 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23139
23140 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23141
23142 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23143 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23144 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23145 (CC1_SPEC): Likewise.
23146 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23147
23148 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23149
23150 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23151 the base address on 64-bit strict-alignment platforms.
23152
23153 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23154
23155 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23156
23157 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23158
23159 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23160
23161 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23162
23163 PR rtl-optimization/88308
23164 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23165 on copied instruction.
23166
23167 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23168
23169 * final.c (insn_current_reference_address): Replace test on JUMP_P
23170 with test on jump_to_label_p.
23171 * config/visium/visium-passes.def: New file.
23172 * config/visium/t-visium (PASSES_EXTRA): Define.
23173 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23174 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23175 (TRAMPOLINE_ALIGNMENT): Define.
23176 * config/visium/visium.c (visium_option_override): Do not register
23177 the machine-specific reorg pass here.
23178 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23179 for the GR6.
23180 (output_branch): Adjust threshold for long branch instruction.
23181 * config/visium/visium.md (cpu): Move around.
23182 (length): Adjust for the GR6.
23183
23184 2019-02-15 Richard Biener <rguenther@suse.de>
23185 Jakub Jelinek <jakub@redhat.com>
23186
23187 PR tree-optimization/89278
23188 * tree-loop-distribution.c: Include tree-eh.h.
23189 (generate_memset_builtin, generate_memcpy_builtin): Call
23190 rewrite_to_non_trapping_overflow on builtin->size before passing it
23191 to force_gimple_operand_gsi.
23192
23193 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23194
23195 PR other/89342
23196 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23197 optimize_debug.
23198 * opth-gen.awk: Likewise.
23199
23200 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23201
23202 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23203 Enable MMX, SSE and SSE2 by default.
23204 * config/i386/i386.c (ix86_option_override_internal): Do not
23205 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23206
23207 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23208
23209 PR rtl-optimization/89354
23210 * combine.c (make_extraction): Punt if extraction_mode is narrower
23211 than len bits.
23212
23213 2019-02-14 Maya Rashish <coypu@sdf.org>
23214
23215 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23216 * config/netbsd-d.c: New file.
23217 * config/t-netbsd: Add netbsd-d.o
23218
23219 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23220
23221 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23222 affects_type_identity to true for aarch64_vector_pcs.
23223 (aarch64_comp_type_attributes): New function.
23224 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23225
23226 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23227
23228 PR target/88850
23229 * config/arm/iterators.md (ANY64): Add V4HF.
23230
23231 2019-02-14 Martin Liska <mliska@suse.cz>
23232
23233 PR rtl-optimization/89242
23234 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23235 process a transformation.
23236
23237 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23238
23239 PR tree-optimization/89314
23240 * fold-const.c (fold_binary_loc): Cast strlen argument to
23241 const char * before dereferencing it. Formatting fixes.
23242
23243 PR middle-end/89284
23244 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23245
23246 2019-02-13 Ian Lance Taylor <iant@golang.org>
23247
23248 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23249 and set current index for other optimizations.
23250
23251 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23252
23253 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23254 nonimmediate_operand as operand 2 predicate.
23255 (vec_set<VF2_512_256:mode>_0): Ditto.
23256 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23257 (*vec_concatv2si): Remove alternative 2.
23258 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23259 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23260 (vec_concatv2di): Split alternatives 4,5,6 to ...
23261 (*vec_concatv2di_0) ... new pattern.
23262
23263 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23264
23265 PR target/89190
23266 * config/arm/arm.c (ldm_stm_operation_p) Set
23267 addr_reg_in_reglist correctly for first register.
23268 (load_multiple_sequence): Remove dead base check.
23269 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23270
23271 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23272
23273 PR target/88847
23274 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23275 Expose as @aarch64_pred_mov.
23276 * config/aarch64/aarch64.c (aarch64_classify_address):
23277 Use expand_insn which legitimizes operands.
23278
23279 2019-02-13 Martin Liska <mliska@suse.cz>
23280
23281 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23282 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23283 and pointer_offset fields.
23284 (initialize_argument_information): Remove usage of dead
23285 fields.
23286 * cgraph.h (struct cgraph_thunk_info): Remove
23287 add_pointer_bounds_args.
23288 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23289 fields.
23290 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23291 fields.
23292 * config/i386/i386.c (ix86_function_arg_advance): Remove
23293 unrelated comment.
23294 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23295 (def_builtin): Remove usage of dead fields.
23296 (ix86_add_new_builtins): Likewise.
23297 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23298 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23299 (sem_function::init): Likewise.
23300 (sem_variable::merge): Likewise.
23301 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23302 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23303 * lto-cgraph.c (lto_output_node): Likewise.
23304 (lto_output_varpool_node): Likewise.
23305 (input_node): Likewise.
23306 (input_varpool_node): Likewise.
23307 * lto-streamer-out.c (lto_output): Likewise.
23308 * tree-inline.c (expand_call_inline): Remove usage of
23309 assign_stmts.
23310 * tree-inline.h (struct copy_body_data): Likewise.
23311 * varpool.c (varpool_node::dump): Likewise.
23312
23313 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23314
23315 PR middle-end/89303
23316 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23317 into pt->vars_contains_escaped_heap instead of setting
23318 pt->vars_contains_escaped_heap to it.
23319
23320 PR middle-end/89281
23321 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23322 INTVAL (size), compare it to GET_MODE_MASK instead of
23323 1 << GET_MODE_BITSIZE.
23324
23325 PR target/89290
23326 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23327 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23328 -mcmodel=large.
23329
23330 2019-02-13 Martin Liska <mliska@suse.cz>
23331
23332 PR lto/88858
23333 * cfgrtl.c (remove_barriers_from_footer): New function.
23334 (try_redirect_by_replacing_jump): Use it.
23335 (cfg_layout_redirect_edge_and_branch): Likewise.
23336
23337 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23338
23339 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23340 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23341 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23342 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23343 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23344 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23345 New BU_CRYPTO_2.
23346 * config/rs6000/rs6000.c (builtin_function_type)
23347 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23348 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23349 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23350 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23351 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23352
23353 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23354
23355 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23356 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23357
23358 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23359
23360 PR target/89229
23361 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23362 268678 and revision 268657.
23363 (*movti_internal): Likewise.
23364
23365 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23366
23367 PR target/89233
23368 * config/s390/s390.c (s390_decompose_address): Update comment.
23369 (s390_check_qrst_address): Reject invalid address forms after
23370 LRA.
23371
23372 2019-02-12 Martin Liska <mliska@suse.cz>
23373
23374 PR lto/88876
23375 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23376 we need default values of funct_state for a function that
23377 is not optimized.
23378
23379 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23380
23381 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23382 the object to pick the size of stores on strict-alignment platforms.
23383
23384 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23385 (*movdi_insn_sp32): Likewise.
23386 (*movdi_insn_sp64): Likewise.
23387
23388 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23389
23390 PR lto/88677
23391 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23392 types that needs constructiong.
23393 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23394
23395 2019-02-12 Richard Biener <rguenther@suse.de>
23396
23397 PR tree-optimization/89253
23398 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23399 duplicate the loop.
23400
23401 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23402
23403 PR lto/88147
23404 * input.c (selftest::test_line_offset_overflow): New selftest.
23405 (selftest::input_c_tests): Call it.
23406
23407 2019-02-11 Martin Sebor <msebor@redhat.com>
23408
23409 PR tree-optimization/88771
23410 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23411 when -Wstringop-overflow is set.
23412 (builtin_memref::builtin_memref): Adjust excessive upper bound
23413 only when lower bound is not excessive.
23414 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23415 -Wstringop-ovefflow.
23416 (maybe_diag_offset_bounds): Rename...
23417 (maybe_diag_access_bounds): ...to this.
23418 (check_bounds_or_overlap): Adjust for name change above.
23419
23420 2019-02-11 Martin Sebor <msebor@redhat.com>
23421
23422 PR c++/87996
23423 * builtins.c (max_object_size): Move from here...
23424 * builtins.h (max_object_size): ...and here...
23425 * tree.c (max_object_size): ...to here...
23426 * tree.h (max_object_size): ...and here.
23427
23428 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23429
23430 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23431 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23432 for correct semantics.
23433
23434 2019-02-11 Alan Modra <amodra@gmail.com>
23435
23436 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23437 -mlongcall and -mpltseq.
23438 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23439 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23440 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23441 * config/rs6000/sysv4.opt (mpltseq): New option.
23442 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23443 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23444 support is lacking. Don't allow -mpltseq with -mbss-plt.
23445 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23446 -mpltseq given for ELFv1.
23447 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23448 Only use UNSPEC_PLTSEQ for inline PLT calls.
23449 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23450 use UNSPEC_PLTSEQ for inline PLT calls.
23451 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23452 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23453 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23454 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23455 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23456 (pltseq_mtctr_<mode>): Likewise.
23457
23458 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23459
23460 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23461 Solaris ld.
23462 * configure: Regenerate.
23463
23464 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23465
23466 PR bootstrap/88714
23467 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23468 instead of r.
23469
23470 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23471
23472 * function.c (assign_parm_setup_block): Use the stored
23473 size, not the passed size, when allocating stack-space,
23474 also for a parameter with alignment larger than
23475 MAX_SUPPORTED_STACK_ALIGNMENT.
23476
23477 2019-02-11 Martin Liska <mliska@suse.cz>
23478
23479 PR ipa/89009
23480 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23481 * ipa-inline.c (inline_small_functions): Likewise.
23482 * ipa-pure-const.c (propagate_pure_const): Likewise.
23483 (propagate_nothrow): Likewise.
23484 * ipa-reference.c (propagate): Likewise.
23485 * ipa-utils.c (struct searchc_env): Remove unused field.
23486 (searchc): Always search across AVAIL_INTERPOSABLE.
23487 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23488 the only called IPA pure const can properly not propagate
23489 across interposable boundary.
23490 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23491
23492 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23493
23494 * config/nds32/nds32.md (call_internal, call_value_internal,
23495 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23496
23497 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23498
23499 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23500 typo.
23501
23502 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23503
23504 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23505 in comments
23506
23507 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23508
23509 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23510
23511 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23512
23513 PR tree-optimization/89268
23514 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23515 if preds is non-NULL.
23516
23517 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23518
23519 PR lto/89272
23520 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23521 polymorphic types.
23522
23523 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23524
23525 * config/nds32/nds32.md (trap): New pattern.
23526
23527 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23528
23529 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23530 dwarf span.
23531
23532 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23533
23534 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23535 to split POST_INC.
23536
23537 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23538
23539 * ipa-visibility.c (localize_node): Also do not localize
23540 LDPR_PREVAILING_DEF_IRONLY_EXP.
23541
23542 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23543
23544 PR lto/87957
23545 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23546 instead of type_with_linkage.
23547
23548 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23549
23550 PR ipa/88755
23551 * params.def (uninlined-function-insns, uninlined-function-time,
23552 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23553 bound so we don't get overflows.
23554
23555 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23556
23557 * config/rs6000/rs6000-string.c (expand_compare_loop,
23558 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23559 memcmp/strncmp.
23560
23561 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23562
23563 PR middle-end/89246
23564 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23565 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23566 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23567
23568 2019-02-09 Alan Modra <amodra@gmail.com>
23569
23570 PR target/88343
23571 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23572 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23573 setup.
23574
23575 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23576
23577 PR middle-end/88560
23578 * lra-constraints.c (process_alt_operands): Don't increase reject
23579 for memory when offset memory is required.
23580
23581 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23582
23583 * config/s390/vector.md: Implement vector copysign.
23584
23585 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23586
23587 * expr.c (expand_constructor): Correct indentations.
23588
23589 2019-02-08 Richard Biener <rguenther@suse.de>
23590
23591 PR tree-optimization/89247
23592 * tree-if-conv.c: Include tree-cfgcleanup.h.
23593 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23594 (tree_if_conversion): Pass through predicate vector.
23595 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23596 inline, see if any if-converted loops we refrece in
23597 LOOP_VECTORIZED calls vanished and fixup.
23598 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23599
23600 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23601
23602 * config/s390/constraints.md (jdd): New constraint.
23603
23604 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23605
23606 PR target/89229
23607 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23608 upper 16 vector registers without TARGET_AVX512VL.
23609 (*movti_internal): Likewise.
23610
23611 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23612
23613 PR rtl-optimization/89234
23614 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23615 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23616 (copy_reg_eh_region_note_backward): Likewise.
23617
23618 2019-02-08 Richard Biener <rguenther@suse.de>
23619
23620 PR middle-end/89223
23621 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23622 doesn't fit in HWI.
23623 (analyze_subscript_affine_affine): Handle failure from
23624 initialize_matrix_A.
23625
23626 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23627
23628 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23629 cfun everywhere.
23630
23631 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23632
23633 PR tree-optimization/86637
23634 PR tree-optimization/89235
23635 * tree-vect-loop.c (optimize_mask_stores): Add an
23636 auto_purge_vect_location sentinel to ensure that vect_location is
23637 purged on exit.
23638 * tree-vectorizer.c
23639 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23640 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23641 to ensure that vect_location is purged on exit.
23642 (pass_slp_vectorize::execute): Likewise, replacing the manual
23643 reset.
23644 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23645
23646 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23647
23648 * config/aarch64/iterators.md (max_opp): New code_attr.
23649 (USMAX): New code iterator.
23650 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23651 (aarch64_smax): Likewise.
23652 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23653 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23654 MINUS (MAX MIN).
23655
23656 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23657
23658 PR target/89229
23659 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23660 for TARGET_AVX512VL.
23661 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23662
23663 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23664
23665 * config/s390/s390-builtin-types.def: Add new types.
23666 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23667 (s390_vec_xlw4): Make the memory operand into a const pointer.
23668 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23669 float.
23670 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23671 a new vector type with the alignment of the scalar memory operand.
23672
23673 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23674 Jakub Jelinek <jakub@redhat.com>
23675
23676 PR bootstrap/88714
23677 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23678 arm_count_ldrdstrd_insns): New declarations.
23679 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23680 MINUS.
23681 (valid_operands_ldrd_strd): New function.
23682 (arm_count_ldrdstrd_insns): New function.
23683 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23684 sets instead of single DImode set and define new insns to match this.
23685
23686 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23687
23688 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23689 Make it a C initializer.
23690
23691 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23692
23693 PR/target 88850
23694 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23695
23696 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23697
23698 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23699 Use neon_dot<q> for type.
23700 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23701
23702 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23703
23704 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23705 Use neon_dot<q> for type.
23706 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23707 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23708
23709 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23710
23711 PR rtl-optimization/89225
23712 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23713 sizes check.
23714
23715 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23716
23717 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23718 after restoring registers saved to allocate the frame on Windows.
23719
23720 2019-02-06 Richard Biener <rguenther@suse.de>
23721
23722 PR tree-optimization/89182
23723 * graphite.h (cached_scalar_evolution_in_region): Declare.
23724 * graphite.c (struct seir_cache_key): New.
23725 (struct sese_scev_hash): Likewise.
23726 (seir_cache): New global.
23727 (cached_scalar_evolution_in_region): New function.
23728 (graphite_transform_loops): Allocate and release seir_cache.
23729 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23730 cached_scalar_evolution_in_region.
23731 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23732 Simplify.
23733 (scop_detection::graphite_can_represent_expr: Use
23734 cached_scalar_evolution_in_region.
23735 (scop_detection::stmt_simple_for_scop_p): Likewise.
23736 (find_params_in_bb): Likewise.
23737 (gather_bbs::before_dom_children): Likewise.
23738 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23739 (add_loop_constraints): Likewise.
23740
23741 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23742
23743 PR middle-end/89210
23744 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23745 operand to new_unary_operation only if both element types are integral
23746 and it isn't a widening conversion. Return NULL_TREE if
23747 new_unary_operation failed.
23748
23749 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23750
23751 PR target/88856
23752 * config/s390/s390.md: Remove load and test FP splitter.
23753
23754 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23755
23756 PR target/89112
23757 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23758 expand_compare_loop, expand_block_compare_gpr,
23759 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23760 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23761 #include "profile-count.h" and "predict.h" for types and functions
23762 needed to work with REG_BR_PROB notes.
23763
23764 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23765
23766 PR target/89112
23767 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23768 for the long branch case.
23769
23770 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23771
23772 PR target/89188
23773 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23774 can throw, non-call exceptions are enabled and we can't delete
23775 dead exceptions or alter cfg. Set must_clean if
23776 delete_insn_and_edges returns true, don't set it blindly for calls.
23777 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23778
23779 PR rtl-optimization/89195
23780 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23781 of the original MEM.
23782
23783 2019-02-05 Martin Liska <mliska@suse.cz>
23784
23785 PR gcov-profile/89000
23786 * gcov.c (function_summary): Remove argument.
23787 (file_summary): New function.
23788 (print_usage): Replace tabs with spaces.
23789 (generate_results): Use new function file_summary.
23790
23791 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23792
23793 PR target/89186
23794 * optabs.c (prepare_cmp_insn): Pass x and y to
23795 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23796
23797 2019-02-05 Richard Biener <rguenther@suse.de>
23798
23799 PR middle-end/89150
23800 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23801 (struct bitmap_element): Drop chain_prev so we properly recurse on
23802 the prev member, supporting tree views.
23803 (struct bitmap_head): GTY skip the obstack member.
23804
23805 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23806
23807 PR c/88698
23808 * doc/extend.texi (Vector Extensions): Add an example of using vector
23809 types together with x86 intrinsics.
23810
23811 2019-02-04 Alan Modra <amodra@gmail.com>
23812
23813 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23814 str[] size to 160, and comment.
23815
23816 2019-02-04 Alan Modra <amodra@gmail.com>
23817
23818 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23819 (rs6000_pltseq_template): Guard output of TLS markers with
23820 TARGET_TLS_MARKERS.
23821 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23822 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23823 to use inline PLT sequences.
23824 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23825 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23826 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23827
23828 2019-02-04 Martin Liska <mliska@suse.cz>
23829
23830 PR ipa/88985
23831 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23832 out when ipa_fn_summaries does not contain entry for callee.
23833
23834 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23835
23836 * config/sparc/sparc.h: Remove superfluous blank lines.
23837 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23838 (got_register_rtx): ...this.
23839 (sparc_got): Adjust to above renaming.
23840 (sparc_tls_got): Likewise.
23841 (sparc_delegitimize_address): Likewise.
23842 (sparc_output_mi_thunk): Likewise.
23843 (sparc_init_pic_reg): Likewise.
23844 (save_local_or_in_reg_p): Fix test on the GOT register.
23845 (USE_HIDDEN_LINKONCE): Move around.
23846 (get_pc_thunk_name): Likewise.
23847 (gen_load_pcrel_sym): Likewise.
23848 (load_got_register): Likewise.
23849
23850 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23851
23852 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23853 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23854
23855 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23856
23857 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23858 into consideration.
23859
23860 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23861
23862 * config.gcc (with_nds32_lib, glibc):
23863 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23864 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23865 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23866
23867 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23868
23869 PR target/89071
23870 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23871 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23872 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23873 (*rcpsf2_sse): Ditto.
23874 (*rsqrtsf2_sse): Ditto.
23875 (sse4_1_round<mode<2): Ditto.
23876
23877 2019-02-03 Richard Biener <rguenther@suse.de>
23878
23879 PR debug/87295
23880 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23881 orig.
23882
23883 2019-02-02 Jakub Jelinek <jakub@redhat.com>
23884
23885 PR middle-end/87887
23886 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23887 Punt with warning on aggregate return or argument types. Ignore
23888 type/mode checking for uniform arguments.
23889
23890 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
23891
23892 * combine.c (try_combine): Do not print "Can't combine" messages unless
23893 printing failed combination attempts.
23894
23895 2019-02-01 Martin Jambor <mjambor@suse.cz>
23896
23897 PR hsa/87863
23898 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23899 segment and global segment variables before making them static.
23900
23901 2019-02-01 Martin Jambor <mjambor@suse.cz>
23902
23903 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23904 missed optimization dump with dump_enabled_p.
23905
23906 2019-02-01 Richard Biener <rguenther@suse.de>
23907
23908 PR middle-end/88597
23909 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23910 the instantiate cache.
23911 (instantiate_scev_binary): Elide second operand procesing
23912 if equal to the first.
23913 * tree-chrec.c (chrec_contains_symbols): Add visited set.
23914 (chrec_contains_undetermined): Likewise.
23915 (tree_contains_chrecs): Likewise.
23916
23917 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
23918
23919 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23920
23921 2019-02-01 Jakub Jelinek <jakub@redhat.com>
23922
23923 PR tree-optimization/89143
23924 * wide-int-range.h (wide_int_range_absu): Declare.
23925 * wide-int-range.cc (wide_int_range_absu): New function.
23926 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23927
23928 PR tree-optimization/88107
23929 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23930 instead of assertion that eh_region_outermost is non-NULL, if it
23931 is NULL, set *ALL to true and return NULL.
23932 (move_sese_region_to_fn): Adjust caller, if all is set, call
23933 duplicate_eh_regions with NULL region.
23934
23935 2019-02-01 Richard Biener <rguenth@suse.de>
23936
23937 PR rtl-optimization/88593
23938 * mode-switching.c (optimize_mode_switching): Free dominators before
23939 calling cleanup_cfg.
23940
23941 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
23942
23943 PR tree-optimization/88932
23944 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23945
23946 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23947
23948 PR middle-end/89137
23949 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
23950 bogus clang warning.
23951
23952 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
23953
23954 PR target/89071
23955 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
23956 alternative to avoid partial SSE register stall for TARGET_AVX.
23957 (truncdfsf2): Ditto.
23958 (sse4_1_round<mode>2): Ditto.
23959
23960 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
23961
23962 PR tree-optimization/89008
23963 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
23964 process anything of the form X * 0.
23965
23966 2019-01-31 Richard Biener <rguenther@suse.de>
23967
23968 PR tree-optimization/89135
23969 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
23970 with abnormal preds.
23971
23972 2019-01-31 Jakub Jelinek <jakub@redhat.com>
23973
23974 PR sanitizer/89124
23975 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
23976 always_inline callees into no_sanitize_address callers.
23977
23978 2019-01-31 Richard Biener <rguenther@suse.de>
23979
23980 PR rtl-optimization/89115
23981 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
23982
23983 2019-01-30 Martin Sebor <msebor@redhat.com>
23984
23985 PR other/89106
23986 * doc/extend.texi (cast to a union): Correct and expand.
23987
23988 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
23989
23990 PR rtl-optimization/87246
23991 * lra-constraints.c (simplify_operand_subreg): Reload memory
23992 in subreg if the address became invalid.
23993
23994 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
23995
23996 PR target/87064
23997 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
23998 Disable for little-endian.
23999
24000 2019-01-30 Richard Biener <rguenther@suse.de>
24001
24002 PR rtl-optimization/89115
24003 * opts.c (default_options_optimization): Reduce
24004 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24005 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24006 to the default.
24007
24008 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24009
24010 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24011 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24012 type of vector element when vec_extract is implemented by direct
24013 move.
24014
24015 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24016
24017 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24018
24019 2019-01-30 Richard Biener <rguenther@suse.de>
24020
24021 PR tree-optimization/89111
24022 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24023 canonicalization to appropriately sized access types.
24024
24025 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24026
24027 PR c++/89105
24028 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24029 for arguments to functions that are TU-local and shouldn't be
24030 referenced by assembly.
24031
24032 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24033
24034 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24035 after '='.
24036
24037 2019-01-29 Martin Sebor <msebor@redhat.com>
24038
24039 PR c/88956
24040 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24041
24042 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24043
24044 PR c++/66676
24045 PR ipa/89104
24046 * omp-simd-clone.c (simd_clone_clauses_extract)
24047 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24048 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24049
24050 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24051
24052 * config.gcc: Force .init_array for ARC.
24053
24054 2019-01-29 Richard Biener <rguenther@suse.de>
24055
24056 PR debug/87295
24057 * dwarf2out.c (collect_skeleton_dies): New helper.
24058 (copy_decls_for_unworthy_types): Call it.
24059 (build_abbrev_table): Assert we do not try to replace
24060 DW_AT_signature refs with local refs.
24061
24062 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24063
24064 PR middle-end/89002
24065 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24066 for lastprivate/linear IV, push gimplify context around gimplify_assign
24067 and, if it needed any temporaries, pop it into a gimple bind around the
24068 sequence.
24069
24070 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24071
24072 * common.opt (-Wattribute-alias): Remove "no-" from name.
24073 Make -Wattribute-alias command line option and
24074 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24075
24076 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24077
24078 PR target/89073
24079 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24080 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24081 x86 ISA options.
24082 (bmi2): Add missing @opindex.
24083 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24084 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24085 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24086 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24087 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24088 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24089 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24090 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24091 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24092 xsavec, xsaveopt and xsaves options.
24093
24094 2019-01-28 Richard Biener <rguenther@suse.de>
24095
24096 PR debug/89076
24097 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24098 support removal.
24099
24100 2019-01-28 Richard Biener <rguenther@suse.de>
24101
24102 PR tree-optimization/88739
24103 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24104 BIT_FIELD_REFs only are applied to mode-precision operands
24105 when they are integral.
24106 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24107 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24108 BIT_FIELD_REFs of non-mode-precision integral operands.
24109
24110 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24111
24112 PR target/87214
24113 * config/i386/sse.md
24114 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24115 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24116 first constants in pairs are multiples of 2. Formatting fixes.
24117 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24118 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24119 first constants in each quadruple are multiples of 4. Formatting fixes.
24120
24121 2019-01-26 Martin Jambor <mjambor@suse.cz>
24122
24123 PR ipa/88933
24124 * tree-inline.c: Include tree-cfgcleanup.h.
24125 (delete_unreachable_blocks_update_callgraph): Move...
24126 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24127 ...here, make externally visible, make second argument bool, adjust
24128 all callers.
24129 * tree-cfgcleanup.c: Include cgraph.h.
24130 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24131 Declare.
24132 * ipa-prop.c: Include tree-cfgcleanup.h.
24133 (ipcp_transform_function): Call
24134 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24135
24136 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24137
24138 PR rtl-optimization/88846
24139 * ira.c (process_set_for_memref_referenced_p): New.
24140 (memref_referenced_p): Add new param. Use
24141 process_set_for_memref_referenced_p. Add new switch cases.
24142 (memref_used_between_p): Pass new arg to memref_referenced_p.
24143
24144 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24145
24146 PR target/88469
24147 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24148 argument ABI_BREAK. Set to true if the calculated alignment has
24149 changed in gcc-9. Check bit-fields for their base type alignment.
24150 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24151 (aarch64_function_arg_boundary): Likewise.
24152 (aarch64_gimplify_va_arg_expr): Likewise.
24153
24154 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24155
24156 PR middle-end/89037
24157 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24158 instead of accessing TREE_INT_CST_ELT directly.
24159
24160 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24161
24162 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24163 fenv_exceptions description.
24164
24165 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24166
24167 PR rtl-optimization/87763
24168 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24169 Allow SUBREG when matching CC_NZmode compare.
24170
24171 2019-01-25 Richard Biener <rguenther@suse.de>
24172
24173 PR tree-optimization/89049
24174 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24175 Look at the pattern stmt to determine if the stmt is vectorized.
24176
24177 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24178
24179 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24180 (pred_mov<mode>): Handle all-register forms using both a new
24181 alternative and a split.
24182
24183 2019-01-25 Richard Biener <rguenther@suse.de>
24184
24185 PR tree-optimization/86865
24186 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24187 Reject non-do-while loops.
24188
24189 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24190
24191 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24192 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24193 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24194 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24195 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24196 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24197 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24198 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24199 vlogical_operand, gpc_reg_operand, int_reg_operand,
24200 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24201 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24202 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24203 (save_world_operation, restore_world_operation, lmw_operation,
24204 stmw_operation): Use MEM_P and REG_P.
24205 (tie_operand): Use MEM_P.
24206 (vrsave_operation, crsave_operation): Use REG_P.
24207 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24208 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24209 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24210 (call_operand): Use HARD_REGISTER_P.
24211 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24212 Use CONST_INT_P.
24213 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24214 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24215 quad_aligned_load_p, replace_swapped_aligned_store,
24216 recombine_lvx_pattern, replace_swapped_aligned_load,
24217 recombine_stvx_pattern): Use MEM_P.
24218 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24219 Use MEM_P and SYMBOL_REF_P.
24220 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24221 (insn_is_swappable_p): Use REG_P and MEM_P.
24222 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24223 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24224 Use CONST_INT_P.
24225 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24226 Use CONST_DOUBLE_P.
24227 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24228 CONST_WIDE_INT_P.
24229 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24230 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24231 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24232 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24233 reg_or_subregno:
24234 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24235 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24236 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24237 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24238 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24239 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24240 rs6000_split_logical_di): Use CONST_INT_P.
24241 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24242 REG_P and SYMBOL_REF_P.
24243 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24244 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24245 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24246 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24247 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24248 (small_data_operand, print_operand_address): Use CONST_INT_P and
24249 SYMBOL_REF_P.
24250 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24251 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24252 Use HARD_REGISTER_NUM_P.
24253 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24254 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24255 SUBREG_P and SYMBOL_REF_P.
24256 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24257 and HARD_REGISTER_NUM_P.
24258 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24259 reg_or_subregno.
24260 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24261 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24262 MEM_P and REG_P.
24263 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24264 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24265 find_addr_reg): Use REG_P.
24266 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24267 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24268 (offsettable_ok_by_alignment, constant_pool_expr_p,
24269 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24270 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24271 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24272 rs6000_assemble_integer, create_TOC_reference,
24273 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24274 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24275 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24276 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24277 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24278 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24279 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24280 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24281 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24282 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24283 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24284 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24285 and cbranch<mode>4): Use CONST_INT_P.
24286 (multiple define_splits): Use REG_P and SUBREG_P.
24287 (define_expands call, call_value): Use MEM_P.
24288 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24289 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24290 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24291 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24292 and HARD_REGISTER_NUM_P.
24293 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24294
24295 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24296
24297 PR rtl-optimization/88948
24298 * rtl.h (prepare_copy_insn): New prototype.
24299 * gcse.c (prepare_copy_insn): New function, split out from
24300 process_insert_insn.
24301 (process_insert_insn): Use prepare_copy_insn.
24302 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24303 instead of gen_move_insn.
24304
24305 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24306
24307 PR debug/89006
24308 * config/i386/i386.c (ix86_pic_register_p): Return true for
24309 UNSPEC_SET_GOT too.
24310
24311 PR tree-optimization/88964
24312 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24313 punt if HONOR_SNANS (chrec).
24314
24315 PR middle-end/89015
24316 * tree-nested.c (convert_nonlocal_reference_stmt,
24317 convert_local_reference_stmt, convert_tramp_reference_stmt,
24318 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24319 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24320 or GIMPLE_OMP_TASK.
24321
24322 PR tree-optimization/89027
24323 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24324 for "omp simd array" variables.
24325
24326 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24327
24328 PR target/88469
24329 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24330 force the alignment of m_val.
24331
24332 2019-01-24 Richard Biener <rguenther@suse.de>
24333
24334 PR lto/87187
24335 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24336 When in "legacy" debug mode make sure to reset self-origins.
24337
24338 2019-01-24 Martin Liska <mliska@suse.cz>
24339
24340 PR gcov-profile/88994
24341 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24342 result will be always smaller or equal to the original.
24343 * gcov.c (mangle_name): Fix else branch where we should
24344 also copy to PTR and shift the pointer.
24345
24346 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24347
24348 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24349 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24350
24351 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24352
24353 * common/config/i386/i386-common.c
24354 (OPTION_MASK_ISA_ENQCMD_SET,
24355 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24356 (ix86_handle_option): Handle -menqcmd.
24357 * config.gcc (enqcmdintrin.h): New header file.
24358 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24359 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24360 -menqcmd.
24361 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24362 function type.
24363 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24364 __builtin_ia32_enqcmds): New builtins.
24365 * config/i386/i386-c.c (__ENQCMD__): New macro.
24366 * config/i386/i386-option.c (ix86_target_string): Add
24367 -menqcmd.
24368 (ix86_valid_target_attribute_inner_p): Likewise.
24369 * config/i386/i386-expand.c
24370 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24371 IX86_BUILTIN_ENQCMDS.
24372 * config/i386/i386.h (TARGET_ENQCMD): New.
24373 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24374 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24375 (movdir64b_<mode>): Parameterize to enable share expansion code
24376 with ENQCMD in function ix86_expand_builtin.
24377 * config/i386/i386.opt: Add -menqcmd.
24378 * config/i386/immintrin.h: Include enqcmdintrin.h.
24379 * config/i386/enqcmdintrin.h: New intrinsic file.
24380 * doc/invoke.texi: Add -menqcmd.
24381
24382 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24383 Steve Ellcey <sellcey@marvell.com>
24384
24385 PR target/85711
24386 * recog.c (address_operand): Return false on wrong mode for address.
24387 (constrain_operands): Check for mode with 'p' constraint.
24388
24389 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24390
24391 PR target/88998
24392 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24393 Disparage MMX alternative.
24394 (sse2_cvtpd2pi): Ditto.
24395 (sse2_cvttpd2pi): Ditto.
24396
24397 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24398
24399 PR driver/89014
24400 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24401 use-after-free of the result of
24402 aarch64_get_extension_string_for_isa_flags.
24403
24404 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24405
24406 PR c/44715
24407 * doc/extend.texi: Document break and continue behavior in
24408 statement expressions.
24409
24410 2019-01-23 Richard Biener <rguenther@suse.de>
24411
24412 PR tree-optimization/89008
24413 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24414 not leave another stray operand.
24415
24416 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24417
24418 * BASE-VER: Bump to 9.0.1.
24419
24420 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24421
24422 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24423 thunk that returns by reference, use the type of the return object
24424 of the thunk instead of that of the alias to build the dereference.
24425
24426 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24427
24428 * config/arc/atomic.md: Add operand to DMB instruction.
24429
24430 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24431
24432 PR tree-optimization/88964
24433 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24434 build_zero_cst instead of build_int_cst. Return false for loop
24435 invariants which honor signed zeros.
24436
24437 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24438
24439 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24440
24441 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24442
24443 PR target/88965
24444 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24445 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24446 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24447
24448 PR middle-end/88968
24449 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24450 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24451
24452 PR target/87064
24453 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24454 Disable for little endian.
24455
24456 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24457
24458 PR target/88469
24459 * config/arm/arm.c (arm_needs_double_word_align): Check
24460 DECL_BIT_FIELD_TYPE.
24461
24462 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24463 H.J. Lu <hongjiu.lu@intel.com>
24464
24465 PR target/88909
24466 * config/i386/i386-builtin.def: Add mask2 to all builtin
24467 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24468 SPECIAL_ARGS.
24469 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24470 (BDESC_FIRST): Likewise.
24471 (define_builtin): Add an argument for mask2. Updated to handle
24472 both ix86_isa_flags and ix86_isa_flags2.
24473 (define_builtin_const): Likewise.
24474 (define_builtin_pure): Likewise.
24475 (define_builtin2): Deleted.
24476 (define_builtin_const2): Likewise.
24477 (builtin_description): Add a member, mask2.
24478 (bdesc_*): Add mask2 to builtin initializations.
24479 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24480 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24481 support.
24482 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24483
24484 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24485
24486 PR target/88954
24487 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24488 noplt attribute.
24489
24490 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24491
24492 PR target/88469
24493 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24494 alignment is dominated by a bitfield with 64-bit aligned base type.
24495 (arm_function_arg): Emit a warning if the alignment has changed since
24496 earlier GCC releases.
24497 (arm_function_arg_boundary): Likewise.
24498 (arm_setup_incoming_varargs): Likewise.
24499
24500 2019-01-22 Richard Biener <rguenther@suse.de>
24501
24502 PR tree-optimization/88862
24503 * graphite-scop-detection.c
24504 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24505
24506 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24507
24508 * doc/extend.tex (AMD GCN Function Attributes): New section.
24509 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24510 * doc/invoke.texi (AMD GCN Options): New section.
24511 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24512
24513 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24514
24515 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24516 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24517
24518 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24519
24520 PR tree-optimization/88044
24521 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24522 is false in the first iteration, but !every_iteration, return false
24523 instead of true with niter->niter zero.
24524
24525 PR rtl-optimization/88904
24526 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24527 any nonequal registers before processing BB_END (b).
24528
24529 PR target/88905
24530 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24531 GET_MODE (op0).
24532 (expand_binop_directly, expand_doubleword_clz,
24533 expand_doubleword_popcount, expand_ctz, expand_ffs,
24534 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24535
24536 PR rtl-optimization/49429
24537 PR target/49454
24538 PR rtl-optimization/86334
24539 PR target/88906
24540 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24541 addressable from here...
24542 (emit_block_op_via_libcall): ... to here.
24543
24544 2019-01-22 Richard Biener <rguenther@suse.de>
24545
24546 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24547 auto_vec for cost vector to fix memleak.
24548 (vectorize_fold_left_reduction): Properly gather SLP defs.
24549 (vectorizable_comparison): Do not swap operands to properly
24550 gather SLP defs.
24551
24552 2019-01-22 Alan Modra <amodra@gmail.com>
24553
24554 PR target/88614
24555 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24556 stays a reg. Allow a const_int.
24557 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24558 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24559 (IS_NOMARK_TLSGETADDR): Define.
24560 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24561 (rs6000_output_tlsargs): New function.
24562 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24563 __tls_get_addr call takes an arg.
24564 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24565 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24566 delete split..
24567 (call_value_nonlocal_sysv): ..or here, delete split.
24568 (tls_gdld_nomark): Delete.
24569 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24570 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24571 (call_value_nonlocal_sysv): Likewise.
24572 (call_value_nonlocal_sysv_secure): Likewise.
24573 (call_value_nonlocal_aix): Likewise.
24574 (call_value_indirect_aix): Likewise.
24575 (call_value_indirect_elfv2): Likewise.
24576 (call_value_local32, call_value_local64): Disable for no-mark tls.
24577 (call_value_local_aix): Likewise.
24578
24579 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24580
24581 PR target/88938
24582 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24583 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24584
24585 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24586
24587 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24588 string contents as hash_map keys.
24589
24590 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24591
24592 PR c/88928
24593 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24594 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24595 instead of TYPE_ALIGN.
24596 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24597 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24598 pointer from TYPE_STUB_DECL.
24599
24600 2019-01-21 Richard Biener <rguenther@suse.de>
24601
24602 PR tree-optimization/88934
24603 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24604 at the possibly non-constant operand.
24605 (vect_get_constant_vectors): Adjust.
24606
24607 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24608
24609 PR target/71659
24610 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24611 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24612 instead of _X86INTRIN_H_INCLUDED.
24613 * onfig/i386/clwbintrin.h: Likewise.
24614 * config/i386/pkuintrin.h: Likewise.
24615 * config/i386/prfchwintrin.h: Likewise.
24616 * config/i386/rdseedintrin.h: Likewise.
24617 * config/i386/wbnoinvdintrin.h: Likewise.
24618 * config/i386/xsavecintrin.h: Likewise.
24619 * config/i386/xsavesintrin.h: Likewise.
24620 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24621 * config/i386/xsaveintrin.h: Likewise.
24622 * config/i386/xsaveoptintrin.h: Likewise.
24623 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24624 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24625 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24626 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24627 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24628 * config/i386/immintrin.h: Here.
24629
24630 2019-01-20 Martin Jambor <mjambor@suse.cz>
24631
24632 PR ipa/87615
24633 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24634 with aa_walk_budget.
24635 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24636 aa_walk_budget_p parameter.
24637 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24638 walk. Updated all callers.
24639 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24640 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24641 unmodified_parm.
24642 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24643 parameter info. Extract info from fbi. Pass fbi to recursive calls
24644 and to unmodified_parm.
24645 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24646 info, updated call to will_be_nonconstant_expr_predicate.
24647 (param_change_prob): New parameter fbi, limit AA walking.
24648 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24649 calls to various above functions.
24650 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24651 parameter. Use it to limit AA walking.
24652 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24653 fbi, limit AA walk.
24654 (detect_type_change): New parameter fbi, pass it on to
24655 detect_type_change_from_memory_writes.
24656 (detect_type_change_ssa): Likewise.
24657 (aa_overwalked): Removed.
24658 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24659 accordingly, adjust to the neew AA limiting scheme.
24660 (parm_ref_data_preserved_p): Likewise.
24661 (ipa_compute_jump_functions_for_edge): Adjust call to
24662 get_dynamic_type.
24663 (ipa_analyze_call_uses): Likewise.
24664 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24665 (ipa_analyze_node): Initialize aa_walk_budget.
24666 (ipcp_transform_function): Likewise.
24667 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24668 to get_dynamic_type.
24669
24670 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24671
24672 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24673 outside of #if CHECKING_P code.
24674
24675 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24676
24677 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24678 New function, split out from...
24679 (loop_versioning::analyze_stride): ...here.
24680 (loop_versioning::find_per_loop_multiplication): Use gassign.
24681 (loop_versioning::analyze_term_using_scevs): Return a success code.
24682 (loop_versioning::analyze_arbitrary_term): New function.
24683 (loop_versioning::analyze_address_fragment): Use
24684 analyze_arbitrary_term if all else fails.
24685
24686 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24687
24688 PR target/88892
24689 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24690 operands.
24691
24692 2019-01-18 Richard Biener <rguenther@suse.de>
24693
24694 PR tree-optimization/88903
24695 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24696 scalar stmts a SLP shift amount is composed of when detecting
24697 shifts by scalars.
24698
24699 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24700
24701 PR target/88799
24702 * config/arm/arm-cpus.in (mp): New feature.
24703 (sec): New feature.
24704 (fgroup ARMv7ve): Add mp and sec features.
24705 (arch armv7-a): Add options to allow mp and sec extensions.
24706 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24707 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24708 extenstions to the base architecture.
24709 (cpu cortex-a8): Add sec extension to the base architecture.
24710 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24711 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24712 variants down to the base v7-a varaint.
24713 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24714 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24715 of permitted extensions for -march=armv7-a and for
24716 -mcpu=generic-armv7-a.
24717
24718 2019-01-18 Martin Liska <mliska@suse.cz>
24719
24720 * params.def: Fix comment.
24721 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24722 name.
24723 (gimple_gen_ic_func_profiler): Likewise.
24724
24725 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24726
24727 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24728 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24729 and put in error checks for stack protector guard options.
24730 (aarch64_stack_protect_guard): New.
24731 (TARGET_STACK_PROTECT_GUARD): Define.
24732 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24733 (reg_stack_protect_address<mode>): New.
24734 (stack_protect_set): Adjust for SSP_GLOBAL.
24735 (stack_protect_test): Likewise.
24736 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24737 (-mstack-protector-guard): Likewise.
24738 (-mstack-protector-guard-offset): Likewise.
24739
24740 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24741
24742 PR tree-optimization/86214
24743 * tree-inline.h (struct copy_body_data): Add
24744 add_clobbers_to_eh_landing_pads member.
24745 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24746 (copy_edges_for_bb): Call it if EH edge destination is <
24747 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24748 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24749 if flag_stack_reuse != SR_NONE and clear it afterwards.
24750
24751 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24752
24753 PR target/85596
24754 * doc/install.texi (with-multilib-list): Document for aarch64.
24755
24756 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24757
24758 PR target/88734
24759 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24760 (("..."))) with ("...").
24761
24762 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24763
24764 * doc/extend.texi (Built-in Functions for Memory Model Aware
24765 Atomic Operations): Document atomic fetch and nand.
24766
24767 2019-01-18 Martin Liska <mliska@suse.cz>
24768 Richard Biener <rguenther@suse.de>
24769
24770 PR middle-end/88587
24771 * cgraph.h (create_version_clone_with_body): Add new argument
24772 with attributes.
24773 * cgraphclones.c (cgraph_node::create_version_clone): Add
24774 DECL_ATTRIBUTES to a newly created decl. And call
24775 valid_attribute_p so that proper cl_target_optimization_node
24776 is set for the newly created declaration.
24777 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24778 for declaration.
24779 (expand_target_clones): Do not call valid_attribute_p, it must
24780 be already done.
24781 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24782 vector types.
24783
24784 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24785
24786 PR target/88734
24787 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24788 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24789 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24790
24791 2019-01-17 Martin Sebor <msebor@redhat.com>
24792
24793 PR middle-end/88273
24794 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24795 Handle anti-ranges the same as no range at all.
24796
24797 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24798
24799 * config/aarch64/aarch64.c (cgraph.h): New include.
24800 (intl.h): New include.
24801 (supported_simd_type): New function.
24802 (currently_supported_simd_type): Ditto.
24803 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24804 (aarch64_simd_clone_adjust): Ditto.
24805 (aarch64_simd_clone_usable): Ditto.
24806 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24807 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24808 (TARGET_SIMD_CLONE_USABLE): Ditto.
24809 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24810 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24811 call.
24812
24813 2019-01-17 Martin Sebor <msebor@redhat.com>
24814
24815 PR tree-optimization/88800
24816 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24817 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24818 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24819 redundant argument. Add new argument and issue diagnostics under
24820 its control. Detect out-of-bounds access even with warnings
24821 disabled.
24822 (check_bounds_or_overlap): Change return type. Add argument.
24823 (wrestrict_dom_walker::check_call): Adjust.
24824 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24825 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24826 check_bounds_or_overlap's return value.
24827 (handle_builtin_stxncpy): Same.
24828 (handle_builtin_strcat): Same.
24829
24830 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24831 Kwok Cheung Yeung <kcy@codesourcery.com>
24832 Julian Brown <julian@codesourcery.com>
24833 Tom de Vries <tom@codesourcery.com>
24834
24835 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24836
24837 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24838
24839 * doc/sourcebuild.texi: Document dg-require-effective-target
24840 llvm_binutils and offload_gcn.
24841
24842 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24843 Kwok Cheung Yeung <kcy@codesourcery.com>
24844 Julian Brown <julian@codesourcery.com>
24845 Tom de Vries <tom@codesourcery.com>
24846
24847 * doc/sourcebuild.texi: Document dg-required-effective-target
24848 exceptions.
24849
24850 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24851 Kwok Cheung Yeung <kcy@codesourcery.com>
24852 Julian Brown <julian@codesourcery.com>
24853 Tom de Vries <tom@codesourcery.com>
24854 Jan Hubicka <hubicka@ucw.cz>
24855 Martin Jambor <mjambor@suse.cz>
24856
24857 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24858 * configure.ac: Check for dlopen.
24859 * configure: Regenerate.
24860
24861 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24862 Kwok Cheung Yeung <kcy@codesourcery.com>
24863 Julian Brown <julian@codesourcery.com>
24864 Tom de Vries <tom@codesourcery.com>
24865 Jan Hubicka <hubicka@ucw.cz>
24866 Martin Jambor <mjambor@suse.cz>
24867
24868 * common/config/gcn/gcn-common.c: New file.
24869 * config/gcn/driver-gcn.c: New file.
24870 * config/gcn/gcn-builtins.def: New file.
24871 * config/gcn/gcn-hsa.h: New file.
24872 * config/gcn/gcn-modes.def: New file.
24873 * config/gcn/gcn-opts.h: New file.
24874 * config/gcn/gcn-passes.def: New file.
24875 * config/gcn/gcn-protos.h: New file.
24876 * config/gcn/gcn-run.c: New file.
24877 * config/gcn/gcn-tree.c: New file.
24878 * config/gcn/gcn.c: New file.
24879 * config/gcn/gcn.h: New file.
24880 * config/gcn/gcn.opt: New file.
24881 * config/gcn/t-gcn-hsa: New file.
24882
24883 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24884 Kwok Cheung Yeung <kcy@codesourcery.com>
24885 Julian Brown <julian@codesourcery.com>
24886 Tom de Vries <tom@codesourcery.com>
24887 Jan Hubicka <hubicka@ucw.cz>
24888 Martin Jambor <mjambor@suse.cz>
24889
24890 * config/gcn/constraints.md: New file.
24891 * config/gcn/gcn-valu.md: New file.
24892 * config/gcn/gcn.md: New file.
24893 * config/gcn/predicates.md: New file.
24894
24895 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
24896
24897 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24898 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24899 (stmt_uses_0_or_null_in_undefined_way): Likewise.
24900 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24901
24902 2019-01-17 Tamar Christina <tamar.christina@arm.com>
24903
24904 PR target/88851
24905 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24906 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24907 it and document registers.
24908
24909 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24910
24911 * config/aarch64/aarch64.c (ares_tunings): Define.
24912 * config/aarch64/aarch64-cores.def (ares): Use the above.
24913
24914 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24915
24916 PR target/88794
24917 Revert:
24918 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
24919
24920 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24921 (_mm512_fixupimm_round_pd): Update parameters and builtin.
24922 (_mm512_maskz_fixupimm_round_pd): Ditto.
24923 (_mm512_fixupimm_round_ps): Ditto.
24924 (_mm512_maskz_fixupimm_round_ps): Ditto.
24925 (_mm_fixupimm_round_sd): Ditto.
24926 (_mm_maskz_fixupimm_round_sd): Ditto.
24927 (_mm_fixupimm_round_ss): Ditto.
24928 (_mm_maskz_fixupimm_round_ss): Ditto.
24929 (_mm512_fixupimm_pd): Ditto.
24930 (_mm512_maskz_fixupimm_pd): Ditto.
24931 (_mm512_fixupimm_ps): Ditto.
24932 (_mm512_maskz_fixupimm_ps): Ditto.
24933 (_mm_fixupimm_sd): Ditto.
24934 (_mm_maskz_fixupimm_sd): Ditto.
24935 (_mm_fixupimm_ss): Ditto.
24936 (_mm_maskz_fixupimm_ss): Ditto.
24937 (_mm512_mask_fixupimm_round_pd): Update builtin.
24938 (_mm512_mask_fixupimm_round_ps): Ditto.
24939 (_mm_mask_fixupimm_round_sd): Ditto.
24940 (_mm_mask_fixupimm_round_ss): Ditto.
24941 (_mm512_mask_fixupimm_pd): Ditto.
24942 (_mm512_mask_fixupimm_ps): Ditto.
24943 (_mm_mask_fixupimm_sd): Ditto.
24944 (_mm_mask_fixupimm_ss): Ditto.
24945 * config/i386/avx512vlintrin.h:
24946 (_mm256_fixupimm_pd): Update parameters and builtin.
24947 (_mm256_maskz_fixupimm_pd): Ditto.
24948 (_mm256_fixupimm_ps): Ditto.
24949 (_mm256_maskz_fixupimm_ps): Ditto.
24950 (_mm_fixupimm_pd): Ditto.
24951 (_mm_maskz_fixupimm_pd): Ditto.
24952 (_mm_fixupimm_ps): Ditto.
24953 (_mm_maskz_fixupimm_ps): Ditto.
24954 (_mm256_mask_fixupimm_pd): Update builtin.
24955 (_mm256_mask_fixupimm_ps): Ditto.
24956 (_mm_mask_fixupimm_pd): Ditto.
24957 (_mm_mask_fixupimm_ps): Ditto.
24958 * config/i386/i386-builtin-types.def: Add new types and remove
24959 useless ones.
24960 * config/i386/i386-builtin.def: Update builtin definitions.
24961 * config/i386/i386.c: Handle new builtin types and remove useless ones.
24962 * config/i386/sse.md: Update VFIXUPIMM* patterns.
24963 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24964 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24965 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
24966 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24967 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24968 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
24969 * config/i386/subst.md:
24970 (round_saeonly_sd_mask_operand4): Add new subst_attr.
24971 (round_saeonly_sd_mask_op4): Ditto.
24972 (round_saeonly_expand_operand5): Ditto.
24973 (round_saeonly_expand): Update.
24974
24975 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24976
24977 PR target/88794
24978 Revert:
24979 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
24980
24981 * config/i386/sse.md: Combine VFIXUPIMM* patterns
24982 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24983 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24984 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
24985 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
24986 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
24987 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
24988
24989 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24990
24991 PR target/88794
24992 Revert:
24993 2018-12-15 Jakub Jelinek <jakub@redhat.com>
24994
24995 PR target/88489
24996 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
24997 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
24998 instead of UNSPEC_FIXUPIMM.
24999
25000 2019-01-17 Richard Biener <rguenther@suse.de>
25001
25002 PR lto/86736
25003 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25004 and friends for the LTO part of debug info.
25005
25006 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25007
25008 PR tree-optimization/86214
25009 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25010 if x == y.
25011
25012 PR rtl-optimization/88870
25013 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25014 throw if we can't alter the cfg or delete dead exceptions.
25015 (mark_insn): Don't call find_call_stack_args for such calls.
25016
25017 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25018
25019 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25020 prototypes for vec_st.
25021 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25022 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25023 mainly on signed/unsigned long long and double.
25024
25025 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25026
25027 PR target/88861
25028 * combine.c (delete_noop_moves): Convert to "bool" return,
25029 returning true if any edges are eliminated.
25030 (combine_instructions): Also return true if delete_noop_moves
25031 returns true.
25032
25033 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25034
25035 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25036 correct max nunits for endian swap.
25037 (aarch64_expand_fcmla_builtin): Correct subreg code.
25038 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25039 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25040 lane endianness.
25041
25042 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25043
25044 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25045 Handle split indirect COMPLEX_TYPE arguments.
25046
25047 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25048
25049 PR target/86891
25050 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25051 bit is set by add and compare.
25052 (CC_ADC): New CC_MODE.
25053 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25054 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25055 comparison. Add detection for CC_ADCmode.
25056 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25057 CC_ADCmode.
25058 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25059 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25060 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25061 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25062 to eliminate the need for zero-extending the operands.
25063 (add<mode>3_compareC_imm): Delete. Merge into ...
25064 (add<mode>3_compareC): ... this. Restructure the comparison to
25065 eliminate the need for zero-extending the operands.
25066 (add<mode>3_carryin): Use LTU for the overflow detection.
25067 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25068 Reexpress comparison for overflow.
25069 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25070 (add<mode>3_carryinC): Likewise.
25071 (add<mode>3_carryinV): Use LTU for carry between partials.
25072 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25073 handling of CC_Cmode and add CC_ADCmode.
25074 (aarch64_borrow_operation): Likewise.
25075
25076 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25077
25078 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25079 Remove patternmode.
25080 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25081 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25082 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25083 Remove endianness conversion.
25084
25085 2019-01-16 Martin Liska <mliska@suse.cz>
25086
25087 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25088 for GCC driver.
25089 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25090 a new argument.
25091 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25092 (path_prefix_reset): Move up in the source file.
25093 (find_fortran_preinclude_file): Make complex search for the
25094 fortran header files.
25095
25096 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25097
25098 * godump.c (go_output_typedef): When outputting a typedef, refer
25099 to the underlying type by its name and not its structure.
25100
25101 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25102
25103 PR c++/88795
25104 * tree.c (build_function_type): Assert that arg_types is not
25105 error_mark_node.
25106
25107 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25108
25109 PR inline-asm/52813
25110 * doc/extend.texi: Document that listing the stack pointer in the
25111 clobber list of an asm is a deprecated feature.
25112 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25113 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25114 warning instead of an error for clobbers of the stack pointer.
25115 Add a note explaining why.
25116
25117 2019-01-15 Richard Biener <rguenther@suse.de>
25118
25119 PR debug/88046
25120 * dwarf2out.c (gen_member_die): Do not generate inheritance
25121 DIEs late.
25122
25123 2019-01-15 Richard Biener <rguenther@suse.de>
25124
25125 PR tree-optimization/88855
25126 * tree-if-conv.c (combine_blocks): Collect
25127 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25128
25129 2019-01-15 Tom de Vries <tdevries@suse.de>
25130
25131 PR target/80547
25132 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25133 lhs == NULL_TREE for gang-level reduction.
25134
25135 2019-01-15 Richard Biener <rguenther@suse.de>
25136 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25137
25138 PR ipa/88788
25139 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25140 return true if SSA_NAME is already marked in visited bitmap.
25141 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25142
25143 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25144
25145 PR tree-optimization/88775
25146 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25147 equal == 0 equality pointer comparisons some more if compared in
25148 integral types and either one points to an automatic var and the
25149 other to a global, or we can prove at least one points to the middle
25150 or both point to start or both point to end.
25151
25152 2019-01-14 Andi Kleen <ak@linux.intel.com>
25153
25154 * Makefile.in: Lower autofdo sampling rate by 10x.
25155 * Makefile.tpl: Dito.
25156
25157 2019-01-14 Tom Honermann <tom@honermann.net>
25158
25159 * defaults.h: Define CHAR8_TYPE.
25160
25161 2019-01-14 Martin Sebor <msebor@redhat.com>
25162
25163 PR target/88638
25164 * doc/extend.texi (Darwin Format Checks): Clarify.
25165
25166 2019-01-14 Richard Biener <rguenther@suse.de>
25167
25168 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25169 whether we are in (simplify ...) or (match ...) context.
25170
25171 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25172
25173 PR rtl-optimization/88796
25174 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25175 * cfgexpand.c (stack_protect_prologue): Initialize
25176 crtl->stack_protect_guard_decl.
25177 * function.c (stack_protect_epilogue): Use it instead of calling
25178 targetm.stack_protect_guard again.
25179 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25180 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25181 crtl->stack_protect_guard_decl.
25182 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25183 on the returned MEM_EXPR.
25184
25185 2019-01-12 Tom de Vries <tdevries@suse.de>
25186
25187 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25188 vector length using -fopenacc-dim.
25189
25190 2019-01-12 Tom de Vries <tdevries@suse.de>
25191
25192 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25193 lengths into account.
25194
25195 2019-01-12 Svante Signell <svante.signell@gmail.com>
25196
25197 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25198 (TARGET_CAN_SPLIT_STACK): Define.
25199 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25200
25201 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25202
25203 * params.def (inline-unit-growth): Set to 40.
25204
25205 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25206
25207 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25208
25209 2019-01-12 Tom de Vries <tdevries@suse.de>
25210
25211 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25212 region calling vector-partitionable routine, set default_vector_length
25213 to WARP_SIZE.
25214
25215 2019-01-12 Tom de Vries <tdevries@suse.de>
25216
25217 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25218 variable default_vector_length.
25219
25220 2019-01-12 Tom de Vries <tdevries@suse.de>
25221
25222 PR middle-end/88703
25223 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25224 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25225 dimensions limits.
25226
25227 2019-01-12 Tom de Vries <tdevries@suse.de>
25228
25229 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25230 (nvptx_goacc_validate_dims): Add used parameter.
25231 * doc/tm.texi: Regenerate.
25232 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25233 argument to call to targetm.goacc.validate_dims.
25234 (default_goacc_validate_dims): Add used
25235 parameter.
25236 * target.def (validate_dims): Add used parameter in DEFHOOK.
25237 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25238
25239 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25240
25241 PR middle-end/85956
25242 PR lto/88733
25243 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25244 field.
25245 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25246 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25247 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25248 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25249
25250 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25251
25252 PR rtl-optimization/87305
25253 * lra-assigns.c
25254 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25255 for little endian pseudos used as paradoxical subreg.
25256
25257 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25258
25259 PR tree-optimization/88693
25260 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25261 for STRING_CSTs that don't contain any NUL characters in the first
25262 TREE_STRING_LENGTH bytes.
25263
25264 2019-01-11 Alan Modra <amodra@gmail.com>
25265
25266 PR 88777
25267 PR 88614
25268 * genattrtab.c (min_fn): Don't translate values.
25269 (min_attr_value): Return INT_MAX when the value can't be calculated.
25270 Return minimum among any values that can be calculated.
25271 (max_attr_value): Adjust.
25272
25273 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25274
25275 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25276
25277 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25278
25279 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25280 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25281 (aarch64_return_call_with_max_clobbers): New function.
25282 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25283 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25284 argument.
25285 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25286 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25287 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25288 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25289 * cselib.c (cselib_process_insn): Add argument to
25290 targetm.hard_regno_call_part_clobbered call.
25291 * ira-conflicts.c (ira_build_conflicts): Ditto.
25292 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25293 * lra-constraints.c (inherit_reload_reg): Ditto.
25294 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25295 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25296 argument. Call targetm.return_call_with_max_clobbers.
25297 Add argument to targetm.hard_regno_call_part_clobbered call.
25298 (calls_have_same_clobbers_p): New function.
25299 (process_bb_lives): Add call_insn and last_call_insn variables.
25300 Pass call_insn to check_pseudos_live_through_calls.
25301 Modify if stmt to check targetm.return_call_with_max_clobbers.
25302 Update setting of flush variable.
25303 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25304 to false.
25305 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25306 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25307 targetm.hard_regno_call_part_clobbered call.
25308 * reginfo.c (choose_hard_reg_mode): Ditto.
25309 * regrename.c (check_new_reg_p): Ditto.
25310 * reload.c (find_equiv_reg): Ditto.
25311 * reload1.c (emit_reload_insns): Ditto.
25312 * sched-deps.c (deps_analyze_insn): Ditto.
25313 * sel-sched.c (init_regs_for_mode): Ditto.
25314 (mark_unavailable_hard_regs): Ditto.
25315 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25316 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25317 (return_call_with_max_clobbers): New target function.
25318 * doc/tm.texi: Regenerate.
25319 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25320 * hooks.c (hook_bool_uint_mode_false): Change to
25321 hook_bool_insn_uint_mode_false.
25322 * hooks.h (hook_bool_uint_mode_false): Ditto.
25323
25324 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25325
25326 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25327 (aarch64_remove_extra_call_preserved_regs): New function.
25328 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25329 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25330 * doc/tm.texi: Regenerate.
25331 * final.c (get_call_reg_set_usage): Call new hook.
25332 * target.def (remove_extra_call_preserved_regs): New hook.
25333 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25334 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25335
25336 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25337
25338 PR bootstrap/88714
25339 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25340 inside of pass_combine_1 dump rather than pass_profile_1.
25341
25342 2019-01-11 Tom de Vries <tdevries@suse.de>
25343
25344 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25345 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25346 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25347 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25348 num_workers 16.
25349
25350 2019-01-11 Tom de Vries <tdevries@suse.de>
25351
25352 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25353
25354 2019-01-11 Jan Beulich <jbeulich@suse.com>
25355
25356 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25357 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25358 sse2_cvtsi2sd): Add {l}.
25359 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25360 syntax.
25361
25362 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25363
25364 PR target/88785
25365 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25366 define_expand.
25367 (*float<floatunssuffix>v2div2sf2): New define_insn.
25368 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25369 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25370 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25371 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25372 match_operands with "const0_operand" "C".
25373
25374 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25375
25376 * config/aarch64/aarch64-builtins.c
25377 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25378 (aarch64_init_simd_builtins): ...Here
25379
25380 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25381
25382 PR rtl-optimization/87305
25383 * lra-assigns.c
25384 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25385 allocation for big endian pseudos used as paradoxical subregs and
25386 spill them if it is wrong.
25387 * lra-constraints.c (lra_constraints): Add a comment.
25388
25389 2019-01-10 Richard Biener <rguenther@suse.de>
25390
25391 PR tree-optimization/88792
25392 * tree-ssa-pre.c (get_representative_for): Do not return a
25393 value-number here.
25394
25395 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25396
25397 PR middle-end/84877
25398 PR bootstrap/88450
25399 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25400 (assign_parm_setup_block): Do the argument slot realignment here
25401 instead.
25402
25403 2019-01-10 Stefan Agner <stefan@agner.ch>
25404
25405 PR target/88648
25406 * config/arm/arm.c (arm_option_override_internal): Force
25407 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25408
25409 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25410
25411 PR c/88568
25412 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25413 DECL_EXTERNAL.
25414
25415 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25416
25417 * config/arm/arm-builtins.c
25418 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25419 (MAC_LANE_PAIR_QUALIFIERS): New.
25420 (arm_expand_builtin_args): Use it.
25421 (arm_expand_builtin_1): Likewise.
25422 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25423 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25424 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25425 * config/arm/arm_neon.h:
25426 (vcadd_rot90_f16): New.
25427 (vcaddq_rot90_f16): New.
25428 (vcadd_rot270_f16): New.
25429 (vcaddq_rot270_f16): New.
25430 (vcmla_f16): New.
25431 (vcmlaq_f16): New.
25432 (vcmla_lane_f16): New.
25433 (vcmla_laneq_f16): New.
25434 (vcmlaq_lane_f16): New.
25435 (vcmlaq_laneq_f16): New.
25436 (vcmla_rot90_f16): New.
25437 (vcmlaq_rot90_f16): New.
25438 (vcmla_rot90_lane_f16): New.
25439 (vcmla_rot90_laneq_f16): New.
25440 (vcmlaq_rot90_lane_f16): New.
25441 (vcmlaq_rot90_laneq_f16): New.
25442 (vcmla_rot180_f16): New.
25443 (vcmlaq_rot180_f16): New.
25444 (vcmla_rot180_lane_f16): New.
25445 (vcmla_rot180_laneq_f16): New.
25446 (vcmlaq_rot180_lane_f16): New.
25447 (vcmlaq_rot180_laneq_f16): New.
25448 (vcmla_rot270_f16): New.
25449 (vcmlaq_rot270_f16): New.
25450 (vcmla_rot270_lane_f16): New.
25451 (vcmla_rot270_laneq_f16): New.
25452 (vcmlaq_rot270_lane_f16): New.
25453 (vcmlaq_rot270_laneq_f16): New.
25454 (vcadd_rot90_f32): New.
25455 (vcaddq_rot90_f32): New.
25456 (vcadd_rot270_f32): New.
25457 (vcaddq_rot270_f32): New.
25458 (vcmla_f32): New.
25459 (vcmlaq_f32): New.
25460 (vcmla_lane_f32): New.
25461 (vcmla_laneq_f32): New.
25462 (vcmlaq_lane_f32): New.
25463 (vcmlaq_laneq_f32): New.
25464 (vcmla_rot90_f32): New.
25465 (vcmlaq_rot90_f32): New.
25466 (vcmla_rot90_lane_f32): New.
25467 (vcmla_rot90_laneq_f32): New.
25468 (vcmlaq_rot90_lane_f32): New.
25469 (vcmlaq_rot90_laneq_f32): New.
25470 (vcmla_rot180_f32): New.
25471 (vcmlaq_rot180_f32): New.
25472 (vcmla_rot180_lane_f32): New.
25473 (vcmla_rot180_laneq_f32): New.
25474 (vcmlaq_rot180_lane_f32): New.
25475 (vcmlaq_rot180_laneq_f32): New.
25476 (vcmla_rot270_f32): New.
25477 (vcmlaq_rot270_f32): New.
25478 (vcmla_rot270_lane_f32): New.
25479 (vcmla_rot270_laneq_f32): New.
25480 (vcmlaq_rot270_lane_f32): New.
25481 (vcmlaq_rot270_laneq_f32): New.
25482 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25483 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25484 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25485 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25486 vcmlaq_lane270): New.
25487 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25488 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25489 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25490 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25491 (arm_option_reconfigure_globals): Use them.
25492 * config/arm/iterators.md (VDF, VQ_HSF): New.
25493 (VCADD, VCMLA): New.
25494 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25495 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25496 New.
25497 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25498 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25499
25500 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25501
25502 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25503 Add qualifier_lane_pair_index.
25504 (emit-rtl.h): Include.
25505 (TYPES_QUADOP_LANE_PAIR): New.
25506 (aarch64_simd_expand_args): Use it.
25507 (aarch64_simd_expand_builtin): Likewise.
25508 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25509 New.
25510 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25511 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25512 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25513 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25514 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25515 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25516 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25517 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25518 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25519 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25520 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25521 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25522 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25523 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25524 Add __ARM_FEATURE_COMPLEX.
25525 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25526 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25527 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25528 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25529 fcmlaq_lane270): New.
25530 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25531 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25532 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25533 * config/aarch64/arm_neon.h:
25534 (vcadd_rot90_f16): New.
25535 (vcaddq_rot90_f16): New.
25536 (vcadd_rot270_f16): New.
25537 (vcaddq_rot270_f16): New.
25538 (vcmla_f16): New.
25539 (vcmlaq_f16): New.
25540 (vcmla_lane_f16): New.
25541 (vcmla_laneq_f16): New.
25542 (vcmlaq_lane_f16): New.
25543 (vcmlaq_rot90_lane_f16): New.
25544 (vcmla_rot90_laneq_f16): New.
25545 (vcmla_rot90_lane_f16): New.
25546 (vcmlaq_rot90_f16): New.
25547 (vcmla_rot90_f16): New.
25548 (vcmlaq_laneq_f16): New.
25549 (vcmla_rot180_laneq_f16): New.
25550 (vcmla_rot180_lane_f16): New.
25551 (vcmlaq_rot180_f16): New.
25552 (vcmla_rot180_f16): New.
25553 (vcmlaq_rot90_laneq_f16): New.
25554 (vcmlaq_rot270_laneq_f16): New.
25555 (vcmlaq_rot270_lane_f16): New.
25556 (vcmla_rot270_laneq_f16): New.
25557 (vcmlaq_rot270_f16): New.
25558 (vcmla_rot270_f16): New.
25559 (vcmlaq_rot180_laneq_f16): New.
25560 (vcmlaq_rot180_lane_f16): New.
25561 (vcmla_rot270_lane_f16): New.
25562 (vcadd_rot90_f32): New.
25563 (vcaddq_rot90_f32): New.
25564 (vcaddq_rot90_f64): New.
25565 (vcadd_rot270_f32): New.
25566 (vcaddq_rot270_f32): New.
25567 (vcaddq_rot270_f64): New.
25568 (vcmla_f32): New.
25569 (vcmlaq_f32): New.
25570 (vcmlaq_f64): New.
25571 (vcmla_lane_f32): New.
25572 (vcmla_laneq_f32): New.
25573 (vcmlaq_lane_f32): New.
25574 (vcmlaq_laneq_f32): New.
25575 (vcmla_rot90_f32): New.
25576 (vcmlaq_rot90_f32): New.
25577 (vcmlaq_rot90_f64): New.
25578 (vcmla_rot90_lane_f32): New.
25579 (vcmla_rot90_laneq_f32): New.
25580 (vcmlaq_rot90_lane_f32): New.
25581 (vcmlaq_rot90_laneq_f32): New.
25582 (vcmla_rot180_f32): New.
25583 (vcmlaq_rot180_f32): New.
25584 (vcmlaq_rot180_f64): New.
25585 (vcmla_rot180_lane_f32): New.
25586 (vcmla_rot180_laneq_f32): New.
25587 (vcmlaq_rot180_lane_f32): New.
25588 (vcmlaq_rot180_laneq_f32): New.
25589 (vcmla_rot270_f32): New.
25590 (vcmlaq_rot270_f32): New.
25591 (vcmlaq_rot270_f64): New.
25592 (vcmla_rot270_lane_f32): New.
25593 (vcmla_rot270_laneq_f32): New.
25594 (vcmlaq_rot270_lane_f32): New.
25595 (vcmlaq_rot270_laneq_f32): New.
25596 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25597 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25598 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25599 (FCADD, FCMLA): New.
25600 (rot): New.
25601 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25602
25603 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25604
25605 PR other/16615
25606
25607 * config/pa/pa.c: Change "can not" to "cannot".
25608 * gimple-ssa-evrp-analyze.c: Likewise.
25609 * ipa-icf.c: Likewise.
25610 * ipa-polymorphic-call.c: Likewise.
25611 * ipa-pure-const.c: Likewise.
25612 * lra-constraints.c: Likewise.
25613 * lra-remat.c: Likewise.
25614 * reload1.c: Likewise.
25615 * reorg.c: Likewise.
25616 * tree-ssa-uninit.c: Likewise.
25617
25618 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25619
25620 PR other/16615
25621
25622 * Makefile.in: Mechanically replace "can not" with "cannot".
25623 * alias.c: Likewise.
25624 * builtins.c: Likewise.
25625 * calls.c: Likewise.
25626 * cgraph.c: Likewise.
25627 * cgraph.h: Likewise.
25628 * cgraphclones.c: Likewise.
25629 * cgraphunit.c: Likewise.
25630 * combine-stack-adj.c: Likewise.
25631 * combine.c: Likewise.
25632 * common/config/i386/i386-common.c: Likewise.
25633 * config/aarch64/aarch64.c: Likewise.
25634 * config/alpha/sync.md: Likewise.
25635 * config/arc/arc.c: Likewise.
25636 * config/arc/predicates.md: Likewise.
25637 * config/arm/arm-c.c: Likewise.
25638 * config/arm/arm.c: Likewise.
25639 * config/arm/arm.h: Likewise.
25640 * config/arm/arm.md: Likewise.
25641 * config/arm/cortex-r4f.md: Likewise.
25642 * config/csky/csky.c: Likewise.
25643 * config/csky/csky.h: Likewise.
25644 * config/darwin-f.c: Likewise.
25645 * config/epiphany/epiphany.md: Likewise.
25646 * config/i386/i386.c: Likewise.
25647 * config/i386/sol2.h: Likewise.
25648 * config/m68k/m68k.c: Likewise.
25649 * config/mcore/mcore.h: Likewise.
25650 * config/microblaze/microblaze.md: Likewise.
25651 * config/mips/20kc.md: Likewise.
25652 * config/mips/sb1.md: Likewise.
25653 * config/nds32/nds32.c: Likewise.
25654 * config/nds32/predicates.md: Likewise.
25655 * config/pa/pa.c: Likewise.
25656 * config/rs6000/e300c2c3.md: Likewise.
25657 * config/rs6000/rs6000.c: Likewise.
25658 * config/s390/s390.h: Likewise.
25659 * config/sh/sh.c: Likewise.
25660 * config/sh/sh.md: Likewise.
25661 * config/spu/vmx2spu.h: Likewise.
25662 * cprop.c: Likewise.
25663 * dbxout.c: Likewise.
25664 * df-scan.c: Likewise.
25665 * doc/cfg.texi: Likewise.
25666 * doc/extend.texi: Likewise.
25667 * doc/fragments.texi: Likewise.
25668 * doc/gty.texi: Likewise.
25669 * doc/invoke.texi: Likewise.
25670 * doc/lto.texi: Likewise.
25671 * doc/md.texi: Likewise.
25672 * doc/objc.texi: Likewise.
25673 * doc/rtl.texi: Likewise.
25674 * doc/tm.texi: Likewise.
25675 * dse.c: Likewise.
25676 * emit-rtl.c: Likewise.
25677 * emit-rtl.h: Likewise.
25678 * except.c: Likewise.
25679 * expmed.c: Likewise.
25680 * expr.c: Likewise.
25681 * fold-const.c: Likewise.
25682 * genautomata.c: Likewise.
25683 * gimple-fold.c: Likewise.
25684 * hard-reg-set.h: Likewise.
25685 * ifcvt.c: Likewise.
25686 * ipa-comdats.c: Likewise.
25687 * ipa-cp.c: Likewise.
25688 * ipa-devirt.c: Likewise.
25689 * ipa-fnsummary.c: Likewise.
25690 * ipa-icf.c: Likewise.
25691 * ipa-inline-transform.c: Likewise.
25692 * ipa-inline.c: Likewise.
25693 * ipa-polymorphic-call.c: Likewise.
25694 * ipa-profile.c: Likewise.
25695 * ipa-prop.c: Likewise.
25696 * ipa-pure-const.c: Likewise.
25697 * ipa-reference.c: Likewise.
25698 * ipa-split.c: Likewise.
25699 * ipa-visibility.c: Likewise.
25700 * ipa.c: Likewise.
25701 * ira-build.c: Likewise.
25702 * ira-color.c: Likewise.
25703 * ira-conflicts.c: Likewise.
25704 * ira-costs.c: Likewise.
25705 * ira-int.h: Likewise.
25706 * ira-lives.c: Likewise.
25707 * ira.c: Likewise.
25708 * ira.h: Likewise.
25709 * loop-invariant.c: Likewise.
25710 * loop-unroll.c: Likewise.
25711 * lower-subreg.c: Likewise.
25712 * lra-assigns.c: Likewise.
25713 * lra-constraints.c: Likewise.
25714 * lra-eliminations.c: Likewise.
25715 * lra-lives.c: Likewise.
25716 * lra-remat.c: Likewise.
25717 * lra-spills.c: Likewise.
25718 * lra.c: Likewise.
25719 * lto-cgraph.c: Likewise.
25720 * lto-streamer-out.c: Likewise.
25721 * postreload-gcse.c: Likewise.
25722 * predict.c: Likewise.
25723 * profile-count.h: Likewise.
25724 * profile.c: Likewise.
25725 * recog.c: Likewise.
25726 * ree.c: Likewise.
25727 * reload.c: Likewise.
25728 * reload1.c: Likewise.
25729 * reorg.c: Likewise.
25730 * resource.c: Likewise.
25731 * rtl.def: Likewise.
25732 * rtl.h: Likewise.
25733 * rtlanal.c: Likewise.
25734 * sched-deps.c: Likewise.
25735 * sched-ebb.c: Likewise.
25736 * sched-rgn.c: Likewise.
25737 * sel-sched-ir.c: Likewise.
25738 * sel-sched.c: Likewise.
25739 * shrink-wrap.c: Likewise.
25740 * simplify-rtx.c: Likewise.
25741 * symtab.c: Likewise.
25742 * target.def: Likewise.
25743 * toplev.c: Likewise.
25744 * tree-call-cdce.c: Likewise.
25745 * tree-cfg.c: Likewise.
25746 * tree-complex.c: Likewise.
25747 * tree-core.h: Likewise.
25748 * tree-eh.c: Likewise.
25749 * tree-inline.c: Likewise.
25750 * tree-loop-distribution.c: Likewise.
25751 * tree-nrv.c: Likewise.
25752 * tree-profile.c: Likewise.
25753 * tree-sra.c: Likewise.
25754 * tree-ssa-alias.c: Likewise.
25755 * tree-ssa-dce.c: Likewise.
25756 * tree-ssa-dom.c: Likewise.
25757 * tree-ssa-forwprop.c: Likewise.
25758 * tree-ssa-loop-im.c: Likewise.
25759 * tree-ssa-loop-ivcanon.c: Likewise.
25760 * tree-ssa-loop-ivopts.c: Likewise.
25761 * tree-ssa-loop-niter.c: Likewise.
25762 * tree-ssa-phionlycprop.c: Likewise.
25763 * tree-ssa-phiopt.c: Likewise.
25764 * tree-ssa-propagate.c: Likewise.
25765 * tree-ssa-threadedge.c: Likewise.
25766 * tree-ssa-threadupdate.c: Likewise.
25767 * tree-ssa-uninit.c: Likewise.
25768 * tree-ssanames.c: Likewise.
25769 * tree-streamer-out.c: Likewise.
25770 * tree.c: Likewise.
25771 * tree.h: Likewise.
25772 * vr-values.c: Likewise.
25773
25774 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25775
25776 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25777 (ix86_split_xorsign): Ditto.
25778 * config/i386/i386.c (ix86_expand_xorsign): New function.
25779 (ix86_split_xorsign): Ditto.
25780 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25781 (xorsign<mode>3): New expander.
25782 (xorsign<mode>3_1): New insn_and_split pattern.
25783 * config/i386/sse.md (xorsign<mode>3): New expander.
25784
25785 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25786
25787 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25788 (*tablejump_sp64): Likewise.
25789 (*tablejump<P:mode>): ...this.
25790 (*call_address_sp32): Merge into...
25791 (*call_address_sp64): Likewise.
25792 (*call_address<P:mode>): ...this.
25793 (*call_symbolic_sp32): Merge into...
25794 (*call_symbolic_sp64): Likewise.
25795 (*call_symbolic<P:mode>): ...this.
25796 (call_value): Remove constraint and add predicate.
25797 (*call_value_address_sp32): Merge into...
25798 (*call_value_address_sp64): Likewise.
25799 (*call_value_address<P:mode>): ...this.
25800 (*call_value_symbolic_sp32): Merge into...
25801 (*call_value_symbolic_sp64): Likewise.
25802 (*call_value_symbolic<P:mode>): ...this.
25803 (*sibcall_symbolic_sp32): Merge into...
25804 (*sibcall_symbolic_sp64): Likewise.
25805 (*sibcall_symbolic<P:mode>): ...this.
25806 (sibcall_value): Remove constraint and add predicate.
25807 (*sibcall_value_symbolic_sp32): Merge into...
25808 (*sibcall_value_symbolic_sp64): Likewise.
25809 (*sibcall_value_symbolic<P:mode>): ...this.
25810 (window_save): Minor tweak.
25811 (*branch_sp32): Merge into...
25812 (*branch_sp64): Likewise.
25813 (*branch<P:mode>): ...this.
25814
25815 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25816 James Clarke <jrtc27@jrtc27.com>
25817
25818 PR target/84010
25819 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25820 consistently in TLS address generation and adjust code to the renaming
25821 of patterns. Mark calls to __tls_get_addr as const.
25822 * config/sparc/sparc.md (tgd_hi22): Turn into...
25823 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25824 (tgd_lo10): Turn into...
25825 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25826 (tgd_add32): Merge into...
25827 (tgd_add64): Likewise.
25828 (tgd_add<P:mode>): ...this and use Pmode throughout.
25829 (tldm_hi22): Turn into...
25830 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25831 (tldm_lo10): Turn into...
25832 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25833 (tldm_add32): Merge into...
25834 (tldm_add64): Likewise.
25835 (tldm_add<P:mode>): ...this and use Pmode throughout.
25836 (tldm_call32): Merge into...
25837 (tldm_call64): Likewise.
25838 (tldm_call<P:mode>): ...this and use Pmode throughout.
25839 (tldo_hix22): Turn into...
25840 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25841 (tldo_lox10): Turn into...
25842 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25843 (tldo_add32): Merge into...
25844 (tldo_add64): Likewise.
25845 (tldo_add<P:mode>): ...this and use Pmode throughout.
25846 (tie_hi22): Turn into...
25847 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25848 (tie_lo10): Turn into...
25849 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25850 (tie_ld64): Use DImode throughout.
25851 (tie_add32): Merge into...
25852 (tie_add64): Likewise.
25853 (tie_add<P:mode>): ...this and use Pmode throughout.
25854 (tle_hix22_sp32): Merge into...
25855 (tle_hix22_sp64): Likewise.
25856 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25857 (tle_lox22_sp32): Merge into...
25858 (tle_lox22_sp64): Likewise.
25859 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25860 (*tldo_ldub_sp32): Merge into...
25861 (*tldo_ldub_sp64): Likewise.
25862 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25863 (*tldo_ldub1_sp32): Merge into...
25864 (*tldo_ldub1_sp64): Likewise.
25865 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25866 (*tldo_ldub2_sp32): Merge into...
25867 (*tldo_ldub2_sp64): Likewise.
25868 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25869 (*tldo_ldsb1_sp32): Merge into...
25870 (*tldo_ldsb1_sp64): Likewise.
25871 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25872 (*tldo_ldsb2_sp32): Merge into...
25873 (*tldo_ldsb2_sp64): Likewise.
25874 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25875 (*tldo_ldub3_sp64): Use DImode throughout.
25876 (*tldo_ldsb3_sp64): Likewise.
25877 (*tldo_lduh_sp32): Merge into...
25878 (*tldo_lduh_sp64): Likewise.
25879 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25880 (*tldo_lduh1_sp32): Merge into...
25881 (*tldo_lduh1_sp64): Likewise.
25882 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25883 (*tldo_ldsh1_sp32): Merge into...
25884 (*tldo_ldsh1_sp64): Likewise.
25885 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25886 (*tldo_lduh2_sp64): Use DImode throughout.
25887 (*tldo_ldsh2_sp64): Likewise.
25888 (*tldo_lduw_sp32): Merge into...
25889 (*tldo_lduw_sp64): Likewise.
25890 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25891 (*tldo_lduw1_sp64): Use DImode throughout.
25892 (*tldo_ldsw1_sp64): Likewise.
25893 (*tldo_ldx_sp64): Likewise.
25894 (*tldo_stb_sp32): Merge into...
25895 (*tldo_stb_sp64): Likewise.
25896 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25897 (*tldo_sth_sp32): Merge into...
25898 (*tldo_sth_sp64): Likewise.
25899 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25900 (*tldo_stw_sp32): Merge into...
25901 (*tldo_stw_sp64): Likewise.
25902 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25903 (*tldo_stx_sp64): Use DImode throughout.
25904
25905 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25906
25907 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25908 check configure option to set BTI and Return Address Signing.
25909 * configure.ac: Add --enable-standard-branch-protection and
25910 --disable-standard-branch-protection.
25911 * configure: Regenerated.
25912 * doc/install.texi: Document the same.
25913
25914 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25915 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25916
25917 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25918 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25919 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25920 if bti is enabled.
25921 * config/aarch64/aarch64-bti-insert.c: New file.
25922 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25923 pass.
25924 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25925 new bti pass.
25926 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25927 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25928 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25929 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25930
25931 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25932
25933 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25934 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25935 Disable bti for -mbranch-protection=none.
25936 (aarch64_handle_standard_branch_protection): Enable bti for
25937 -mbranch-protection=standard.
25938 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25939 -mbranch-protection.
25940 (aarch64_bti_enabled): Check if bti is enabled.
25941 * config/aarch64/aarch64.opt: Declare target variable.
25942 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25943
25944 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25945
25946 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
25947 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
25948 (aarch64_expand_epilogue): Likewise.
25949 (aarch64_output_mi_thunk): Likewise.
25950 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
25951 TAILCALL_ADDR_REGS to x16 and x17.
25952 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
25953
25954 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25955
25956 * config/aarch64/aarch64-option-extensions.def: Define
25957 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
25958 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
25959 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
25960 (AARCH64_FL_PREDRES): New.
25961 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
25962 AARCH64_FL_PREDRES by default.
25963 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
25964
25965 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25966
25967 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
25968 ARMv8.5-A.
25969 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
25970 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
25971 * doc/invoke.texi: Document ARMv8.5-A.
25972
25973 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25974
25975 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
25976 (xorsign<mode>3): Likewise.
25977
25978 2019-01-09 Jelinek <jakub@redhat.com>
25979
25980 PR middle-end/88758
25981 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
25982 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
25983
25984 PR rtl-optimization/88331
25985 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
25986 not currently_expanding_to_rtl.
25987
25988 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25989
25990 * doc/invoke.texi (-Os): Remove trailing spaces.
25991 (-finline-functions): Remove reference to -O2.
25992
25993 2019-01-08 Jakub Jelinek <jakub@redhat.com>
25994
25995 PR rtl-optimization/79593
25996 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
25997
25998 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
25999 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26000
26001 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26002
26003 PR bootstrap/88721
26004 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26005 to -1 on entry.
26006
26007 PR debug/88723
26008 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26009 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26010
26011 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26012
26013 PR target/88717
26014 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26015 ix86_avx_u128_mode_entry.
26016
26017 2019-01-08 Martin Liska <mliska@suse.cz>
26018
26019 PR tree-optimization/88753
26020 * tree-switch-conversion.c (switch_conversion::build_one_array):
26021 Come up with local variable constructor. Convert first to
26022 type of constructor values.
26023
26024 2019-01-08 Richard Biener <rguenther@suse.de>
26025
26026 PR tree-optimization/86554
26027 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26028 rpo_avail): Move earlier.
26029 (visit_nary_op): When value-numbering to expressions
26030 with different overflow behavior make sure there's an
26031 available expression on the path.
26032
26033 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26034
26035 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26036 aarch64_parse_branch_protection,
26037 struct aarch64_branch_protect_type,
26038 aarch64_handle_no_branch_protection,
26039 aarch64_handle_standard_branch_protection,
26040 aarch64_validate_mbranch_protection,
26041 aarch64_handle_pac_ret_protection,
26042 aarch64_handle_attr_branch_protection,
26043 accepted_branch_protection_string,
26044 aarch64_pac_ret_subtypes,
26045 aarch64_branch_protect_types,
26046 aarch64_handle_pac_ret_leaf): Define.
26047 (aarch64_override_options_after_change_1, aarch64_override_options):
26048 Add check for accepted_branch_protection_string.
26049 (aarch64_option_save): Save accepted_branch_protection_string.
26050 (aarch64_option_restore): Save accepted_branch_protection_string.
26051 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26052 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26053 msign-return-address.
26054 * doc/invoke.texi: Add mbranch-protection.
26055
26056 2019-01-08 Alan Modra <amodra@gmail.com>
26057
26058 PR target/88614
26059 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26060 Delete "unknownp" parameter. Adjust callers. Handle
26061 CONST_INT, PLUS, MINUS, and MULT.
26062 (attr_value_aligned): Renamed from or_attr_value.
26063 (min_attr_value): Return INT_MIN for unhandled rtl case..
26064 (min_fn): ..and translate to INT_MAX here.
26065 (write_length_unit_log): Modify to cope without "unknown".
26066 (write_attr_value): Handle IF_THEN_ELSE.
26067
26068 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26069
26070 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26071 optimization for masked stores.
26072
26073 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26074
26075 PR middle-end/88567
26076 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26077 output vector directly to duplicate_and_interleave instead of
26078 going through a temporary. Postpone insertion of ctor_seq to
26079 the end of the loop.
26080
26081 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26082
26083 PR target/86891
26084 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26085 unsigned_p. Handle signed and unsigned overflow correction as
26086 required.
26087 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26088 prototype.
26089 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26090 for operand 2.
26091 (add<mode>3_compareV_imm): Make this callable for expanding.
26092 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26093 aarch64_plus_operand for operand 2.
26094 (subv<GPI:mode>_insn): New insn pattern.
26095 (subv<GPI:mode>_imm): Likewise.
26096 (negv<GPI:mode>3): New expand pattern.
26097 (negv<GPI:mode>_insn): New insn pattern.
26098 (negv<GPI:mode>_cmp_only): Likewise.
26099 (cmpv<GPI:mode>_insn): Likewise.
26100 (subvti4): Use register_operand for operand 1. Update call to
26101 aarch64_expand_subvti.
26102 (usubvti4): Likewise.
26103 (negvti3): New expand pattern.
26104 (negdi_carryout): New insn pattern.
26105 (negvdi_carryinV): New insn pattern.
26106 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26107 version the named version.
26108 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26109 operands.
26110 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26111 patterns.
26112 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26113 patterns.
26114 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26115 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26116 (sub<mode>3_carryinCV): Delete.
26117 (sub<GPI:mode>3_carryinV): New expand pattern.
26118 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26119
26120 2019-01-07 Richard Biener <rguenther@suse.de>
26121
26122 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26123 of tree_operand_hash.
26124
26125 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26126
26127 PR tree-optimization/88598
26128 * tree.h (single_nonzero_element): Declare.
26129 * tree.c (single_nonzero_element): New function.
26130 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26131 if I is the only nonzero element of CST.
26132
26133 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26134
26135 PR tree-optimization/88598
26136 * tree.h (initializer_each_zero_or_onep): Declare.
26137 * tree.c (initializer_each_zero_or_onep): New function.
26138 (signed_or_unsigned_type_for): Handle float types too.
26139 (unsigned_type_for, signed_type_for): Update comments accordingly.
26140 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26141 x & { 0 or -1, 0 or -1, ... }.
26142
26143 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26144
26145 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26146 with x86_64-pc-linux-gnu.
26147
26148 2019-01-07 Tom de Vries <tdevries@suse.de>
26149
26150 PR target/85486
26151 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26152 function.
26153 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26154 routines.
26155
26156 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26157
26158 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26159 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26160 TARGET_AVX512F as condition.
26161
26162 PR debug/88723
26163 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26164 const_not_ok_for_debug_p target hook.
26165 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26166 on UNSPEC and subexpressions thereof if all subexpressions of the
26167 UNSPEC are CONSTANT_P.
26168
26169 PR tree-optimization/88676
26170 * tree-ssa-phiopt.c (two_value_replacement): New function.
26171 (tree_ssa_phiopt_worker): Call it.
26172
26173 PR sanitizer/88619
26174 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26175 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26176
26177 PR c++/85052
26178 * tree-vect-generic.c: Include insn-config.h and recog.h.
26179 (expand_vector_piecewise): Add defaulted ret_type argument,
26180 if non-NULL, use that in preference to type for the result type.
26181 (expand_vector_parallel): Formatting fix.
26182 (do_vec_conversion, do_vec_narrowing_conversion,
26183 expand_vector_conversion): New functions.
26184 (expand_vector_operations_1): Call expand_vector_conversion
26185 for VEC_CONVERT ifn calls.
26186 * internal-fn.def (VEC_CONVERT): New internal function.
26187 * internal-fn.c (expand_VEC_CONVERT): New function.
26188 * fold-const-call.c (fold_const_vec_convert): New function.
26189 (fold_const_call): Use it for CFN_VEC_CONVERT.
26190 * doc/extend.texi (__builtin_convertvector): Document.
26191
26192 2019-01-07 Tom de Vries <tdevries@suse.de>
26193
26194 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26195 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26196 vector_red_partition, vector_red_sym): New global variables.
26197 (nvptx_option_override): Initialize vector_red_sym.
26198 (nvptx_declare_function_name): Restore red_partition register.
26199 (nvptx_file_end): Emit code to declare the vector reduction variables.
26200 (nvptx_output_red_partition): New function.
26201 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26202 large vector reductions.
26203 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26204 (nvptx_init_builtins): Add VECTOR_ADDR.
26205 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26206 Handle nvptx_expand_shared_addr.
26207 (nvptx_get_shared_red_addr): Add vector argument and handle large
26208 vectors.
26209 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26210 large vectors.
26211 (nvptx_goacc_reduction_init): Likewise.
26212 (nvptx_goacc_reduction_fini): Likewise.
26213 (nvptx_goacc_reduction_teardown): Likewise.
26214 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26215 init,fini,teardown}.
26216 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26217 (nvptx_set_current_function): Init vector_red_partition.
26218 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26219 (nvptx_red_partition): New insn.
26220 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26221
26222 2019-01-07 Tom de Vries <tdevries@suse.de>
26223
26224 PR target/85381
26225 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26226 empty loops.
26227
26228 2019-01-07 Tom de Vries <tdevries@suse.de>
26229
26230 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26231 (nvptx_option_override): Init oacc_bcast_partition.
26232 (nvptx_init_oacc_workers): New function.
26233 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26234 (nvptx_needs_shared_bcast): New function.
26235 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26236 to propagate state.
26237 (nvptx_shared_propagate): Initialize vector bcast partition and
26238 synchronization state.
26239 (nvptx_single): Generalize to enable vectors to use shared-memory
26240 to propagate state.
26241 (nvptx_process_pars): Likewise.
26242 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26243 * config/nvptx/nvptx.h (struct machine_function): Add
26244 bcast_partition and sync_bar members.
26245
26246 2019-01-07 Tom de Vries <tdevries@suse.de>
26247
26248 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26249 (nvptx_apply_dim_limits): New function.
26250 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26251 PTX_WARP_SIZE.
26252
26253 2019-01-07 Tom de Vries <tdevries@suse.de>
26254
26255 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26256 as late as possible.
26257
26258 2019-01-07 Tom de Vries <tdevries@suse.de>
26259
26260 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26261 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26262 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26263 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26264 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26265
26266 2019-01-07 Tom de Vries <tdevries@suse.de>
26267
26268 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26269
26270 2019-01-07 Tom de Vries <tdevries@suse.de>
26271
26272 * omp-offload.c (oacc_get_min_dim): New function.
26273 * omp-offload.h (oacc_get_min_dim): Declare.
26274
26275 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26276
26277 PR target/88521
26278 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26279 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26280
26281 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26282
26283 PR tree-opt/86020
26284 Revert:
26285 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26286
26287 * ipa-inline.c (edge_badness): Use inlined_time instead of
26288 inline_summaries->get.
26289
26290 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26291
26292 * opts.c (enable_fdo_optimizations): Enable
26293 version-loops-for-strides, loop-interchange, unrol-and-jam
26294 and tree-loop-distribution.
26295 * invoke.texi: Document newly enabled options.
26296
26297 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26298
26299 * doc/invoke.texi (max-inline-insns-small): New parameters.
26300 * ipa-inline.c (want_early_inline_function_p): simplify.
26301 (want_inline_small_function_p): Fix pasto from previous patch;
26302 use max-inline-insns-small bound.
26303 * params.def (max-inline-insns-small): New param.
26304 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26305 variables correctly.
26306
26307 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26308
26309 * doc/invoke.texi: Document max-inline-insns-size,
26310 uninlined-function-insns, uninlined-function-time,
26311 uninlined-thunk-insns and uninlined-thunk-time.
26312 * params.def: Add max-inline-insns-size,
26313 uninlined-function-insns, uninlined-function-time,
26314 uninlined-thunk-insns and uninlined-thunk-time.
26315 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26316 new parameters.
26317 * ipa-inline.c (can_inline_edge_by_limits_p,
26318 want_inline_small_function_p): Use new parameters.
26319
26320 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26321
26322 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26323
26324 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26325
26326 PR middle-end/82564
26327 PR target/88620
26328 * expr.c (expand_assignment): For calls returning VLA structures
26329 if to_rtx is not a MEM, force it into a stack temporary.
26330
26331 PR debug/88635
26332 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26333 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26334 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26335 subexpressions of both operands.
26336 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26337 subrtxes are CONSTANT_P.
26338 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26339 2018-11-09 changes.
26340
26341 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26342
26343 * params.def (hot-bb-count-ws-permille): Set to 990.
26344
26345 2019-01-04 Martin Sebor <msebor@redhat.com>
26346
26347 PR c/88546
26348 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26349 leaf.
26350
26351 2019-01-04 Martin Sebor <msebor@redhat.com>
26352
26353 PR c/88363
26354 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26355
26356 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26357
26358 * gdbinit.in: Turn off pagination for the skip commands, restore
26359 it to previous state afterwards.
26360
26361 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26362
26363 PR target/88594
26364 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26365 of GET_MODE (opN) as modes of the libcall arguments.
26366
26367 2019-01-04 Jan Beulich <jbeulich@suse.com>
26368
26369 * config/i386/sse.md
26370 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26371 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26372 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26373 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26374 avx512f_vmcmp<mode>3<round_saeonly_name>,
26375 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26376 avx512f_maskcmp<mode>3,
26377 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26378 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26379 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26380 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26381 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26382 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26383 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26384 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26385 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26386 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26387 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26388 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26389 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26390 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26391 avx512cd_maskb_vec_dup<mode>,
26392 avx512cd_maskw_vec_dup<mode>,
26393 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26394 avx512dq_vmfpclass<mode>,
26395 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26396 instead of =Yk.
26397
26398 2019-01-03 Martin Sebor <msebor@redhat.com>
26399
26400 PR tree-optimization/88659
26401 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26402
26403 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26404
26405 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26406 unaligned vsx and avoid lxvd2x/stxvd2x.
26407 (gen_lvx_v4si_move): New function.
26408
26409 2019-01-03 Tom de Vries <tdevries@suse.de>
26410
26411 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26412 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26413 function.
26414 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26415
26416 2019-01-03 Tom de Vries <tdevries@suse.de>
26417
26418 * config/nvptx/nvptx.c (struct offload_attrs): New.
26419 (populate_offload_attrs): New function. Factor mask extraction out of
26420 nvptx_reorg. Add extraction of dimensions.
26421 (nvptx_reorg): Use populate_offload_attrs.
26422
26423 2019-01-03 Tom de Vries <tdevries@suse.de>
26424
26425 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26426 cases for oacc_min_dims_p and routine_p. Add asserts for
26427 oacc_default_dims_p and offload_region_p.
26428
26429 2019-01-03 Tom de Vries <tdevries@suse.de>
26430
26431 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26432 factored out of ...
26433 (nvptx_goacc_validate_dims): ... here.
26434
26435 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26436
26437 PR tree-optimization/85574
26438 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26439 structure.
26440 (struct ssa_equip_hash_traits): Declare.
26441 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26442
26443 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26444
26445 PR debug/88644
26446 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26447 change it to qualified_type.
26448
26449 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26450
26451 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26452 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26453
26454 2019-01-02 Martin Sebor <msebor@redhat.com>
26455 Jeff Law <law@redhat.com>
26456
26457 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26458 (get_range_strlen_tree): Update appropriately.
26459 (get_range_strlen)
26460 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26461
26462 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26463 rather than set_range_info.
26464 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26465 maybe_set_strlen_range. Handle potentially boundary crossing
26466 cases more conservatively.
26467 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26468 Call set_strlen_range.
26469 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26470
26471 PR middle-end/88663
26472 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26473 need the flexp argument.
26474 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26475 from calls to get_range_strlen. Update comments. Just update
26476 VAL for an unterminated const char array and let the reset of the
26477 code handle it normally. No longer try to set *flexp. Adjust
26478 return value.
26479 (get_range_strlen): Update for the new get_range_strlen API.
26480 (get_maxval_strlen): Similarly.
26481 (gimple_fold_builtin_strlen): Handle update meaning of return value
26482 from get_range_strlen.
26483 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26484 get_range_strlen API.
26485
26486 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26487
26488 PR lto/88130
26489 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26490 false at WPA time when body was removed.
26491
26492 2019-01-02 Martin Liska <mliska@suse.cz>
26493
26494 PR tree-optimization/88650
26495 * predict.c (set_even_probabilities): Calculate probability
26496 remainer only when really used.
26497
26498 2019-01-02 Richard Biener <rguenther@suse.de>
26499
26500 PR middle-end/88651
26501 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26502 widest_ints when mangling max_stmt_execution results.
26503
26504 2019-01-02 Richard Biener <rguenther@suse.de>
26505
26506 PR tree-optimization/88621
26507 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26508 bitfields when canoncalizing.
26509
26510 2019-01-02 Richard Biener <rguenther@suse.de>
26511
26512 PR target/87545
26513 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26514 cost of cheap SSE instruction.
26515
26516 2019-01-02 Richard Biener <rguenther@suse.de>
26517
26518 PR ipa/85574
26519 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26520 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26521 function.
26522 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26523 set after UIDs before splitting them.
26524
26525 2019-01-01 Martin Sebor <msebor@redhat.com>
26526 Jeff Law <law@redhat.com>
26527
26528 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26529 length is optimistic. If it is, then arrange to compute the
26530 conservative length as well.
26531
26532 * gimple-fold.h (get_range_strlen): Update prototype.
26533 * builtins.c (check_access): Update call to get_range_strlen to use
26534 c_strlen_data pointer. Change various variable accesses to instead
26535 pull data from the c_strlen_data structure.
26536 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26537 * calls.c (maybe_warn_nonstring_arg): Likewise.
26538 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26539 minimum length if maximum lengh is unknown.
26540 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26541 that used c_strlen, it's no longer needed. Restructure slightly.
26542 (format_string): Set unlikely range appropriately.
26543 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26544 formatting issues.
26545 (get_range_strlen): Accept c_strlen_data pointer for external
26546 call sites as well. Pass through to call to internal get_range_strlen.
26547 Adjust minlen, maxlen and maxbound as needed.
26548 (get_maxval_strlen): Update comments.
26549 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26550 to use c_strlen_data pointer. Change variable accesses to instead
26551 use c_strlen_data data members.
26552
26553 * gimple-fold.c (get_range_strlen): Update prototype.
26554 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26555 local variables. Use pdata to return information to caller.
26556 Update calls to get_range_strlen. Update pdata->maxbound.
26557 (get_range_strlen -- static version): Similarly.
26558 (get_range_strlen -- extern version): Update for internal
26559 get_range_strlen API change. Convert to external data format.
26560 (get_maxval_strlen): Similarly.
26561
26562 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26563
26564 * coverage.c (get_coverage_counts): Use current_function_decl.
26565 * profile.c (read_thunk_profile): New function.
26566 (branch_prob): Add THUNK parameter.
26567 * tree-profile.c (tree_profiling): Handle thunks.
26568 * value-prof.c (init_node_map): Handle thunks.
26569 * value-prof.h (branch_prob): Upate prototype.
26570 (read_thunk_profile): Declare.
26571
26572 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26573
26574 Update copyright years.
26575
26576 * gcc.c (process_command): Update copyright notice dates.
26577 * gcov-dump.c (print_version): Ditto.
26578 * gcov.c (print_version): Ditto.
26579 * gcov-tool.c (print_version): Ditto.
26580 * gengtype.c (create_file): Ditto.
26581 * doc/cpp.texi: Bump @copying's copyright year.
26582 * doc/cppinternals.texi: Ditto.
26583 * doc/gcc.texi: Ditto.
26584 * doc/gccint.texi: Ditto.
26585 * doc/gcov.texi: Ditto.
26586 * doc/install.texi: Ditto.
26587 * doc/invoke.texi: Ditto.
26588 \f
26589 Copyright (C) 2019 Free Software Foundation, Inc.
26590
26591 Copying and distribution of this file, with or without modification,
26592 are permitted in any medium without royalty provided the copyright
26593 notice and this notice are preserved.