re PR middle-end/92046 (Command line options (that are per-functions) are affecting...
[gcc.git] / gcc / ChangeLog
1 2019-10-14 Richard Biener <rguenther@suse.de>
2
3 PR middle-end/92046
4 * dse.c (scan_insn): Use param max_active_local_stores.
5 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
6 based on optimization level.
7 * loop-invariant.c (move_loop_invariants): Adjust
8 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
9 * opts.c (default_options_optimization): Do not adjust
10 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
11 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
12
13 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
14
15 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
16
17 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
18
19 * config/arm/arm.c (arm_option_override): Don't override sched
20 pressure algorithm.
21
22 2019-10-14 Richard Biener <rguenther@suse.de>
23
24 PR tree-optimization/92069
25 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
26 cycles do not set vect_nested_cycle on the latch definition.
27
28 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
29
30 * function-abi.h (expr_callee_abi): Declare.
31 * function-abi.cc (expr_callee_abi): New function.
32
33 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
34
35 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
36 into [1,MAX].
37 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
38 non-zero being represented as [1,MAX].
39
40 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
41
42 * tree-sra.c (dump_access): Add missing braces.
43
44 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
45
46 * config/darwin.c (machopic_indirection_name): Rework the
47 function to emit linker-visible symbols only for indirections
48 in the data section. Clean up the code and update comments.
49
50 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
51
52 * config/darwin.c (machopic_indirect_data_reference): Remove
53 redundant code.
54
55 2019-10-13 Nathan Sidwell <nathan@acm.org>
56
57 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
58
59 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
60
61 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
62 c99_runtime.
63
64 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
65
66 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
67 so non-virutal are before virutals.
68 (output_function): Avoid body modifications.
69
70 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
71
72 * config/pa/pa.c (pa_output_call): Load descriptor address to register
73 %r22. Load function address before global pointer.
74 (pa_attr_length_indirect_call): Adjust length of inline versions of
75 $$dyncall.
76 (pa_output_indirect_call): Remove fast inline version of $$dyncall
77 before normal cases. Update inline $$dyncall sequences to preserve
78 function descriptor address in register %r22.
79 (TRAMPOLINE_CODE_SIZE): Adjust.
80 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
81 register %r22 contains trampoline address.
82 (pa_trampoline_init): Adjust offsets.
83 (pa_trampoline_adjust_address): Likewise.
84 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
85
86 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
87
88 PR target/67183
89 * config/darwin.c (machopic_indirection): New field to flag
90 non-lazy-symbol-pointers in the data section.
91 (machopic_indirection_name): Compute if an indirection should
92 appear in the data section.
93 (machopic_output_data_section_indirection): New callback split
94 from machopic_output_indirection.
95 (machopic_output_stub_indirection): Likewise.
96 (machopic_output_indirection): Retain the code for non-lazy
97 symbol pointers in their regular section.
98 (machopic_finish): Use the new callbacks to order the indirection
99 output.
100
101 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
102
103 * config/darwin-protos.h (machopic_finish): Delete.
104 * config/darwin.c (machopic_finish): Make static.
105
106 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
107
108 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
109 sections when building kernel extension code.
110
111 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
112
113 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
114 later standard."
115
116 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
117
118 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
119 from warning.
120
121 2019-10-12 Jakub Jelinek <jakub@redhat.com>
122
123 PR middle-end/92063
124 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
125 <case VEC_COND_EXPR>: Return false with *handled = false.
126 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
127 recursing on the first operand.
128 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
129 instead of tree_could_trap_p.
130 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
131
132 2019-10-11 Jim Wilson <jimw@sifive.com>
133
134 PR rtl-optimization/91860
135 * combine.c (subst): If new_rtx is a constant, also check for
136 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
137
138 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
139
140 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
141 INTVAL when calling store_bit_field.
142
143 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
144
145 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
146 size.
147
148 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
149
150 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
151 vectorizable_live_operation.
152 (vectorizable_live_operation): Adjust parameters.
153 * tree-vect-stmts.c (vect_init_vector,
154 vect_gen_widened_results_half): Fix typo in function comment.
155 (can_vectorize_live_stmts): Adjust function comment.
156 Adjust parameters. Adjust call to vectorizable_live_operation.
157 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
158 (vect_transform_stmt): Adjust function comment. Adjust call to
159 can_vectorize_live_stmts.
160 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
161
162 2019-10-11 Richard Biener <rguenther@suse.de>
163
164 PR tree-optimization/90883
165 PR tree-optimization/91091
166 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
167 alias-sets both for recording VN table entries and continuing
168 walking after translating through copies. Handle same-sized
169 reads from SSA names by returning the plain SSA name.
170 (eliminate_dom_walker::eliminate_stmt): Properly handle
171 non-size precision stores in redundant store elimination.
172
173 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
174
175 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
176 (ggc_collect): Dump later to not interfere with release_page dump.
177 (ggc_trim): New function.
178 * ggc-none.c (ggc_trim): New.
179 * ggc.h (ggc_trim): Declare.
180
181 2019-10-11 Richard Biener <rguenther@suse.de>
182
183 PR tree-optimization/92066
184 PR tree-optimization/92046
185 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
186 Fix bogus cost model check.
187
188 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
189
190 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
191 (LANG_HOOKS_DECLS): Add it.
192 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
193 update comment for omp_is_optional_argument.
194 * omp-general.c (omp_is_allocatable_or_ptr): New.
195 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
196 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
197 Fortran's optional arguments and allocatable/pointer scalars
198 with use_device_addr.
199
200 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
201
202 PR target/77918
203 * config/s390/2827.md: Add new opcodes.
204 * config/s390/2964.md: Likewise.
205 * config/s390/3906.md: Likewise.
206 * config/s390/8561.md: Likewise.
207 * config/s390/s390-builtins.def (s390_vfchesb): Use
208 the new vec_cmpgev4sf_quiet_nocc.
209 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
210 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
211 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
212 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
213 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
214 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
215 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
216 * config/s390/s390-modes.def (CCSFPS): New mode.
217 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
218 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
219 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
220 (s390_expand_vec_compare): Use non-signaling patterns where
221 necessary.
222 (s390_reverse_condition): Support CCSFPS.
223 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
224 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
225 (asm_fcmp_op): Likewise.
226 (*smaxv2df3_vx): Use pattern for quiet comparison.
227 (*sminv2df3_vx): Likewise.
228 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
229 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
230 (vec_cmpgt<mode>_quiet_nocc): Likewise.
231 (vec_cmplt<mode>_quiet_nocc): New expander.
232 (vec_cmpge<mode>_quiet_nocc): New pattern.
233 (vec_cmple<mode>_quiet_nocc): New expander.
234 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
235 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
236 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
237 (*vec_cmpge<mode>_signaling_nocc): Likewise.
238 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
239 (vec_cmpungt<mode>): New expander.
240 (vec_cmpunge<mode>): Likewise.
241 (vec_cmpuneq<mode>): Use quiet patterns.
242 (vec_cmpltgt<mode>): Allow only on z14+.
243 (vec_cmpordered<mode>): Use quiet patterns.
244 (vec_cmpunordered<mode>): Likewise.
245 (VEC_CMP_EXPAND): Add ungt and unge.
246
247 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
248
249 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
250 parameter.
251 * lto-streamer-out.c: Include tree-dfa.h.
252 (output_cfg): Do not use cfun.
253 (lto_prepare_function_for_streaming): New.
254 (output_function): Do not push cfun; do not initialize loop optimizer.
255 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
256 * passes.c (ipa_write_summaries): Use it.
257 (ipa_write_optimization_summaries): Do not modify bodies.
258 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
259 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
260 * tree-ssa-dse.c (pass_dse::execute): Update use of
261 renumber_gimple_stmt_uids.
262 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
263
264 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
265
266 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
267 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
268
269 2019-10-10 Joseph Myers <joseph@codesourcery.com>
270
271 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
272 macros.
273 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
274 Also define DFP macros for these conditions.
275 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
276 DEC128_SUBNORMAL_MIN): Do not define.
277 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
278 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
279
280 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
281 Sandra Loosemore <sandra@codesourcery.com>
282
283 PR middle-end/26241
284 * doc/lto.texi (IPA): Reference to the IPA passes.
285 * doc/passes.texi (Pass manager): Add node IPA passes and
286 description for each IPA pass.
287
288 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
289
290 * ipa-reference.c: Do not include splay-tree.h
291 (reference_vars_to_consider): Turn to hash map.
292 (get_static_name, ipa_init, analyze_function, propagate,
293 stream_out_bitmap, ipa_reference_write_optimization_summary,
294 ipa_reference_write_optimization_summary): Update.
295
296 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
297
298 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
299
300 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
301
302 * config/darwin.c: Lookup Objective C metadata and force indirection
303 for IVAR refs.
304
305 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
306
307 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
308 addresses.
309 (mem_operand_gpr): Add check for prefixed addresses.
310 (mem_operand_ds_form): Add check for prefixed addresses.
311 (rs6000_legitimate_offset_address_p): If we support prefixed
312 addresses, check for a 34-bit offset instead of 16-bit.
313 (rs6000_legitimate_address_p): Add check for prefixed addresses.
314 Do not allow load/store with update if the address is prefixed.
315 (rs6000_mode_dependent_address): If we support prefixed
316 addresses, check for a 34-bit offset instead of 16-bit.
317
318 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
319
320 PR target/77918
321 * config/s390/vector.md (vcond_comparison_operator): New
322 predicate.
323 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
324
325 2019-10-10 David Malcolm <dmalcolm@redhat.com>
326
327 PR 87488
328 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
329 -D.
330 * configure.ac (--with-documentation-root-url): New option.
331 * configure: Regenerate.
332 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
333 option URL, add it as a new string field of the diagnostic option.
334 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
335 (print_option_information): If get_option_url is non-NULL, call
336 it, and if the result is non-NULL, potentially emit an escape
337 sequence to markup the option text with the resulting URL.
338 * diagnostic.h (diagnostic_context::get_option_url): New callback.
339 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
340 example of JSON output.
341 * opts-diagnostic.h (get_option_url): New decl.
342 * opts.c (get_option_url): New function.
343 * toplev.c (general_init): Initialize the get_option_url callback.
344
345 2019-10-10 David Malcolm <dmalcolm@redhat.com>
346
347 PR 87488
348 * common.opt (fdiagnostics-urls=): New option.
349 (diagnostic-url.h): Add SourceInclude.
350 (diagnostic_url_rule): New enum.
351 * diagnostic-color.c: Include "diagnostic-url.h".
352 (diagnostic_urls_enabled_p): New function.
353 * diagnostic-url.h: New file.
354 * diagnostic.c: Include "diagnostic-url.h".
355 (diagnostic_urls_init): New function.
356 * diagnostic.h (diagnostic_urls_init): New decl.
357 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
358 -fdiagnostics-urls to the list.
359 (-fdiagnostics-urls): New option.
360 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
361 (driver::global_initializations): Call diagnostic_urls_init.
362 * opts-global.c (init_options_once): Likewise.
363 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
364 * pretty-print.c (pretty_printer::pretty_printer): Initialize
365 show_urls.
366 (pp_begin_url): New function.
367 (pp_end_url): New function.
368 (selftest::test_urls): New selftest.
369 (selftest::pretty_print_c_tests): Call it.
370 * pretty-print.h (pretty_printer::show_urls): New field.
371 (pp_begin_url): New decl.
372 (pp_end_url): New decl.
373
374 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
375
376 PR target/92022
377 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
378
379 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
380
381 PR target/88630
382 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
383 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
384 also for TARGET_FPU_SH4_300.
385 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
386 TARGET_SH4_300.
387 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
388 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
389 (*negsf2_i): Split into ...
390 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
391 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
392 (**abssf2_i): Split into ...
393 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
394 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
395 (*negdf2_i): Split into ...
396 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
397 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
398 (**abssf2_i): Split into ...
399 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
400
401 2019-10-10 Richard Biener <rguenther@suse.de>
402
403 PR middle-end/92046
404 * opts.c (finish_options): Do not influence global --params
405 from options that are adjustable per function.
406 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
407 Apply --param adjustment based on active cost-model.
408 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
409 further store-sinking when vectorization or if-conversion
410 are not enabled.
411
412 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
413
414 PR middle-end/92037
415 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
416 rather than ggc_alloc_cleared to alloc symbol table.
417 * toplev.c (general_init): Likewise.
418 * cgraph.h (symbol_table): Explicitly construct every field.
419
420 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
421
422 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
423 (PF_Z15): ... this.
424 * config.gcc: Add z15 as option for --with-arch and --with-tune
425 configure switches.
426 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
427 error reporting for unsupported builtins.
428 * config/s390/s390-opts.h (enum processor_type): Rename
429 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
430 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
431 * config/s390/driver-native.c (s390_host_detect_local_cpu):
432 Likewise.
433 * config/s390/s390-builtins.def: Likewise.
434 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
435 (s390_expand_builtin): Add missing check for unsupported builtins.
436 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
437 (s390_rtx_costs): Likewise.
438 (s390_get_sched_attrmask): Rename arch13 to z15.
439 (s390_get_unit_mask): Likewise.
440 (s390_is_fpd): Likewise.
441 (s390_is_fxd): Likewise.
442 * config/s390/s390.h (enum processor_flags): Likewise.
443 * config/s390/s390.md: Likewise.
444 * config/s390/vector.md: Likewise.
445 * config/s390/vx-builtins.md: Likewise.
446 * config/s390/s390.opt: Add z15 to processor_type value.
447
448 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
449
450 PR target/91035
451 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
452 prototype.
453 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
454 ("split_stack_data", "split_stack_call")
455 ("split_stack_call_<mode>", "split_stack_cond_call")
456 ("split_stack_cond_call_<mode>"): Remove.
457 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
458 insn definition.
459 * config/s390/s390.c (s390_output_split_stack_data): New function.
460 (s390_expand_split_stack_prologue): Use the merged expander.
461
462 2019-10-09 Martin Sebor <msebor@redhat.com>
463
464 PR tree-optimization/90879
465 * builtins.c (check_access): Avoid using maxbound when null.
466 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
467 * doc/invoke.texi (-Wstring-compare): Document new warning option.
468 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
469 conditional.
470 (get_range_strlen): Overwrite initial maxbound when non-null.
471 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
472 changes.
473 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
474 (used_only_for_zero_equality): New function.
475 (handle_builtin_memcmp): Call it.
476 (determine_min_objsize): Return an integer instead of tree.
477 (get_len_or_size, strxcmp_eqz_result): New functions.
478 (maybe_warn_pointless_strcmp): New function.
479 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
480 between a longer string and a smaller array.
481 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
482
483 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
484
485 * config/darwin.c (darwin_override_options): Make the check for
486 Objective-C ABI version more specific for 64bit code.
487
488 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
489
490 * config/darwin.c (machopic_indirect_data_reference): Set flag to
491 indicate that the new symbol is an indirection.
492 (machopic_indirect_call_target): Likewise.
493 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
494 (MACHO_SYMBOL_INDIRECTION_P): New.
495 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
496
497 2019-10-08 Jason Merrill <jason@redhat.com>
498
499 * doc/invoke.texi: Document -fconcepts-ts.
500
501 2019-10-09 Richard Biener <rguenther@suse.de>
502
503 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
504 allow stmts other than GIMPLE_ASSIGN in nested cycles.
505
506 2019-10-08 Richard Biener <rguenther@suse.de>
507
508 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
509 (_stmt_vec_info::force_single_cycle): Likewise.
510 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
511 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
512 * tree-vect-loop.c (vectorizable_reduction): Set
513 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
514 (vect_transform_reduction): Use them to remove redundant code.
515 (vect_transform_cycle_phi): Likewise.
516
517 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
518
519 PR tree-optimization/90836
520 * gcc/match.pd (popcount): New pattern.
521
522 2019-10-08 Martin Sebor <msebor@redhat.com>
523
524 PR middle-end/92026
525 PR middle-end/92014
526 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
527 again once nbytes has been set. Set the access size when not yet set.
528
529 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
530
531 * config/darwin.c (machopic_select_section): Remove dead code for
532 old Objective-C section selection method, replace with unreachable.
533
534 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
535
536 * config/darwin.c (machopic_indirect_data_reference): Check for
537 required indirections before making direct access to defined
538 values.
539 (machopic_output_indirection): Place the indirected pointes for
540 required indirections into the non-lazy symbol pointers section.
541 (darwin_encode_section_info):
542 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
543 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
544
545 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
546
547 PR target/91994
548 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
549 instead of ALL_SSE_REG to check if function call preserves some
550 256-bit SSE registers.
551
552 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
553
554 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
555 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
556 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
557
558 2019-10-08 Richard Biener <rguenther@suse.de>
559
560 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
561 (_stmt_vec_info::is_reduc_info): Add.
562 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
563 (vectorizable_condition): Remove.
564 (vectorizable_shift): Likewise.
565 (vectorizable_reduction): Adjust.
566 (info_for_reduction): New.
567 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
568 (vect_analyze_scalar_cycles_1): ... here.
569 (vect_analyze_loop_operations): Adjust.
570 (needs_fold_left_reduction_p): Simplify for single caller.
571 (vect_is_simple_reduction): Likewise. Remove stmt restriction
572 for nested cycles not part of double reductions.
573 (vect_model_reduction_cost): Pass in the reduction type.
574 (info_for_reduction): New function.
575 (vect_create_epilog_for_reduction): Use it, access reduction
576 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
577 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
578 (vectorize_fold_left_reduction): Remove pointless assert.
579 (vectorizable_reduction): Analyze the full reduction when
580 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
581 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
582 stmt code-generation to vectorizable_* in most cases. Verify
583 code-generation only for cases handled by
584 vect_transform_reductuon.
585 (vect_transform_reduction): Use info_for_reduction to get at
586 reduction meta. Simplify.
587 (vect_transform_cycle_phi): Likewise.
588 (vectorizable_live_operation): Likewise.
589 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
590 at the PHI node for STMT_VINFO_REDUC_TYPE.
591 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
592 longer necessary code.
593 * tree-vect-stmts.c (vectorizable_shift): Make static again.
594 (vectorizable_condition): Likewise. Get at reduction related
595 info via info_for_reduction.
596 (vect_analyze_stmt): Adjust.
597 (vect_transform_stmt): Likewise.
598 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
599 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
600
601 2019-10-08 Joseph Myers <joseph@codesourcery.com>
602
603 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
604 -fno-fp-int-builtin-inexact default for C2X.
605
606 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
607 Richard Biener <rguenther@suse.de>
608
609 PR tree-optimization/91532
610 * tree-if-conv.c: Include tree-ssa-dse.h.
611 (ifcvt_local_dce): Change param from bb to loop,
612 and call dse_classify_store.
613 (tree_if_conversion): Pass loop instead of loop->header as arg
614 to ifcvt_local_dce.
615 * tree-ssa-dse.c: Include tree-ssa-dse.h.
616 (delete_dead_or_redundant_assignment): Remove static qualifier from
617 declaration, and add prototype in tree-ssa-dse.h.
618 (dse_store_status): Move to tree-ssa-dse.h.
619 (dse_classify_store): Remove static qualifier and add new tree param
620 stop_at_vuse, and add prototype in tree-ssa-dse.h.
621 * tree-ssa-dse.h: New header.
622
623 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
624
625 * config/darwin.c (machopic_output_indirection): Don't put
626 hidden symbol indirections into the .data section, use the
627 non-lazy symbol pointers section as normal.
628 (darwin_encode_section_info): Record if a symbol is hidden.
629 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
630 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
631
632 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
633
634 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
635 predicates instead of accessing bits directly.
636 (machopic_indirect_call_target): Likewise.
637 (machopic_output_indirection): Likewise.
638 (darwin_encode_section_info): Improve description. Use renamed
639 symbol flags. Use predicate macros for variables and functions.
640 * config/darwin.h:
641 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
642 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
643 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
644 (MACHO_SYMBOL_VARIABLE_P): New.
645 (MACHO_SYMBOL_DEFINED_P):New.
646 (MACHO_SYMBOL_STATIC_P): New.
647 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
648 (SYMBOL_FLAG_SUBT_DEP): New.
649 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
650
651 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
652
653 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
654 (msp430_expand_epilogue): Likewise.
655 * config/msp430/predicates.md: Likewise.
656 * config/msp430/msp430.md: Likewise.
657 Replace blocks of 8 spaces with tabs.
658
659 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
660
661 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
662 * config/msp430/msp430.c (msp430_split_addsi): New.
663 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
664 a block of C code for splitting addsi.
665
666 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
667
668 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
669 ix86_expand_rounddf_32): Reorder functions.
670 * config/i386/i386-protos.h: Update.
671
672 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
673
674 * config.in: Regenerate.
675 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
676 Add new "Yx" constraint.
677 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
678 function.
679 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
680 prototype.
681 * config/msp430/msp430.c (msp430_option_override): Allow the lower
682 code/data region to be selected in the small memory model.
683 (msp430_section_attr): Don't warn if the "section" and "lower"
684 attributes are used together.
685 (msp430_handle_generic_attribute): Likewise.
686 (msp430_var_in_low_mem): New function.
687 (TARGET_ENCODE_SECTION_INFO): Define.
688 (msp430_encode_section_info): New function.
689 (gen_prefix): Return early in the small memory model.
690 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
691 ".lower" prefix if -m{code,data}-region=lower have been passed.
692 (msp430_output_aligned_decl_common): Emit common symbols when
693 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
694 set.
695 (TARGET_ASM_FILE_END): Define.
696 (msp430_file_end): New function.
697 (msp430_do_not_relax_short_jumps): Allow relaxation when
698 function will be in the lower region.
699 (msp430_op_not_in_high_mem): New function.
700 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
701 the 'X' operand selector.
702 Clarify comment for 'x' operand selector.
703 * config/msp430/msp430.h (LINK_SPEC): Propagate
704 -m{code,data}-region to the linker via spec function
705 msp430_propagate_region_opt.
706 (msp430_propagate_region_opt): New prototype.
707 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
708 (SYMBOL_FLAG_LOW_MEM): Define.
709 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
710 selector.
711 (zero_extendqihi2): Fix operand number used by "%X" selector.
712 (zero_extendqisi2): Likewise.
713 (zero_extendhisi2): Likewise.
714 (movqi): Use "Yx" constraint in place of "%X" operand selector.
715 (movhi): Likewise.
716 (addqi3): Likewise.
717 (addhi3): Likewise.
718 (addsi3): Likewise.
719 (addhi3_cy): Likewise.
720 (addchi4_cy): Likewise.
721 (subqi3): Likewise.
722 (subhi3): Likewise.
723 (subsi3): Likewise.
724 (bic<mode>3): Likewise.
725 (and<mode>3): Likewise.
726 (ior<mode>3): Likewise.
727 (xor<mode>3): Likewise.
728 (slli_1): Add missing "%X" operand selector.
729 (slll_1): Likewise.
730 (slll_2): Likewise.
731 (srai_1): Likewise.
732 (sral_1): Likewise.
733 (sral_2): Likewise.
734 (srli_1): Likewise.
735 (srll_1): Likewise.
736 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
737 selector.
738 (cbranchhi4_real): Likewise.
739 (cbranchqi4_reversed): Likewise.
740 (cbranchhi4_reversed): Likewise.
741 (*bitbranch<mode>4): Likewise.
742 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
743 * config/msp430/msp430.opt (mcode-region=): Set default to
744 MSP430_REGION_LOWER. Improve docstring.
745 (mdata-region=): Likewise.
746 (muse-lower-region-prefix): New option.
747 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
748 mdata-region=none multilib.
749 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
750 mdata-region=none multilib.
751 MULTILIB_EXCEPTIONS: Remove.
752 MULTILIB_REQUIRED: Define.
753 * configure: Regenerate.
754 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
755 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
756 * doc/extend.texi: Clarify comment for {upper,lower,either}
757 function attributes.
758 Add separate description for "lower" variable attribute.
759
760 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
761
762 PR target/77918
763 * optabs-tree.c (vcond_icode_p): New function.
764 (vcond_eq_icode_p): Likewise.
765 (expand_vec_cond_expr_p): Use vcond_icode_p and
766 vcond_eq_icode_p.
767 * optabs.c (can_vcond_compare_p): New function.
768 * optabs.h (can_vcond_compare_p): Likewise.
769
770 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
771
772 PR target/77918
773 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
774 caller passes a non-trapping condition.
775 (is_gimple_condexpr): Allow trapping conditions.
776 (is_gimple_condexpr_1): New helper function.
777 (is_gimple_condexpr_for_cond): New function, acts like old
778 is_gimple_condexpr.
779 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
780 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
781 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
782 * gimplify.c (gimplify_cond_expr): Use
783 is_gimple_condexpr_for_cond.
784 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
785 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
786 VEC_COND_EXPR.
787 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
788 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
789 is_gimple_condexpr_for_cond, remove pointless tmp check
790 (forward_propagate_into_cond): Remove pointless tmp check.
791
792 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
793
794 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
795 match that of other gsi_next_* functions. Adjust the comment.
796 (gsi_start_nonvirtual_phis): New function.
797 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
798 gsi_next_nonvirtual_phi accordingly. (No functional change.)
799
800 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
801
802 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
803 setjmp situation here. Fix a verb's ending: "the exact variables or
804 elements for which there are warnings depends" -> "... depend".
805
806 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
807
808 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
809
810 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
811
812 * ipa-prop.c (ipa_vr::nonzero_p): New.
813 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
814 non-zero range.
815 * ipa-prop.h (class ipa_vr): Add nonzero_p.
816 * tree-vrp.c (range_has_numeric_bounds_p): New.
817 (range_int_cst_p): Use range_has_numeric_bounds_p.
818 (get_range_op_handler): New.
819 (supported_types_p): New.
820 (defined_ranges_p): New.
821 (drop_undefines_to_varying): New.
822 (range_fold_binary_symbolics_p): New.
823 (range_fold_unary_symbolics_p): New.
824 (range_fold_unary_expr): Extract out into above functions.
825 (range_fold_binary_expr): Same.
826 (value_range_base::normalize_addresses): New.
827 (value_range_base::normalize_symbolics): Normalize addresses.
828 * tree-vrp.h (class value_range_base): Add normalize_addresses.
829
830 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
831
832 * tree-vrp.c (value_range_base::singleton_p): Use
833 value_range_base::num_pairs instead of vrp_val_is* to check
834 if a range has one sub-range.
835
836 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
837
838 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
839 DEF is not a true earlyclobber but is tied to a specific input
840 operand, and so is effectively earlyclobber wrt inputs that have
841 different values.
842 (make_early_clobber_and_input_conflicts): Pass this case to the above.
843
844 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
845
846 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
847 (pod_mode): Mark operators likewise.
848 (scalar_int_mode): Mark non-default constructors and
849 operators with CONSTEXPR.
850 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
851 (fixed_size_mode): Likewise.
852
853 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
854
855 PR target/91994
856 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
857 and wrap the unspec_volatile in a parallel.
858 (*avx_vzeroupper): New define_insn. Use a match_parallel around
859 the unspec_volatile.
860 * config/i386/predicates.md (vzeroupper_pattern): Expect the
861 unspec_volatile to be wrapped in a parallel.
862 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
863 (ix86_add_reg_usage_to_vzerouppers): New functions.
864 (rest_of_handle_insert_vzeroupper): Use them to add register
865 usage information to the vzeroupper instructions.
866
867 2019-10-07 Richard Biener <rguenther@suse.de>
868
869 PR tree-optimization/91975
870 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
871 handle invariants.
872
873 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
874
875 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
876 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
877
878 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
879
880 * config/darwin.c (darwin_override_options): Adjust objective-c
881 ABI version error messages to avoid punctuation and contracted
882 negations.
883
884 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
885
886 * ipa-inline.c: Fix type; compute size rather than self_size
887 for size of caller function.
888
889 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
890
891 PR target/59888
892 * config/darwin.c (darwin_rodata_section): Add relocation flag,
893 choose const_data section for constants with relocations.
894 (machopic_select_section): Pass relocation flag to
895 darwin_rodata_section ().
896
897 2019-10-05 Jakub Jelinek <jakub@redhat.com>
898
899 PR tree-optimization/91734
900 * generic-match-head.c: Include fold-const-call.h.
901 * match.pd (sqrt(x) cmp c): Check the boundary value and
902 in case inexact computation of c*c affects comparison of the boundary,
903 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
904 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
905 for -frounding-math. For c2, try the next smaller or larger floating
906 point constant depending on comparison code and if it has the same
907 sqrt as c2, use it instead of c2.
908
909 2019-10-04 Martin Sebor <msebor@redhat.com>
910
911 PR middle-end/91977
912 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
913 MEM_REF right operand. Avoid failing for MEM_REF assignments from
914 uninitialized objects.
915
916 2019-10-04 Martin Sebor <msebor@redhat.com>
917
918 * builtins.c (compute_objsize): Add an argument.
919 * tree-object-size.c (addr_object_size): Same.
920 (compute_builtin_object_size): Same.
921 * tree-object-size.h (compute_builtin_object): Same.
922
923 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
924
925 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
926
927 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
928
929 * match.pd (sinh (x) / cosh (x)): New simplification rule.
930
931 2019-10-04 Martin Jambor <mjambor@suse.cz>
932
933 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
934 fntype when switching to calling memcpy instead of memset.
935
936 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
937
938 * hash-table.h (hash_table::empty_slow): Don't assign
939 size_t values to int variables.
940
941 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
942
943 * expr.c (convert_mode_scalar): Remove shadowing local var.
944 (emit_block_move): Rename local vars.
945 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
946 (emit_push_insn): Rename local vars.
947 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
948 shadowing local vars.
949 (store_constructor): Remove shadowing local vars. Rename local var.
950 (store_field, expand_cond_expr_using_cmove,
951 expand_expr_real_2): Remove shadowing local vars.
952 (expand_expr_real_1,
953 do_store_flag): Remove shadowing local vars. Rename local vars.
954
955 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
956
957 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
958
959 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
960
961 * genmatch.c (commutate): Rename local var.
962 (lower_cond): Reuse local var.
963 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
964 dt_operand::gen, dt_operand::gen_gimple_expr,
965 dt_simplify::gen): Add a param. Rename generated vars.
966 (decision_tree::insert_operand,
967 (capture_info::walk_match, capture_info::walk_result,
968 capture_info::walk_c_expr): Rename local vars.
969 (expr::gen_transform): Rename generated vars.
970 Use snprintf. Rename local vars.
971 (capture::gen_transform, dt_operand::get_name,
972 dt_operand::gen_opname): Rename generated vars.
973 (write_predicate): Adjust call to gen_kids.
974 (parser::get_internal_capture_id): Rename generated vars.
975 (parser::parse_expr): Rename local vars.
976 (parser::parse_if): Remove local var.
977 (parser::parse_pattern, add_operator): Rename local vars.
978
979 2019-10-04 Joseph Myers <joseph@codesourcery.com>
980
981 * builtins.def (DEF_C2X_BUILTIN): New macro.
982 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
983 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
984 (strndup): Use DEF_C2X_BUILTIN.
985 * coretypes.h (enum function_class): Add function_c2x_misc.
986
987 2019-10-04 Maya Rashish <coypu@sdf.org>
988
989 * ira-color.c (update_costs_from_allocno): Call
990 ira_init_register_move_cost_if_necessary.
991
992 2019-10-04 Jeff Law <law@redhat.com>
993
994 * config/h8300/h8300.md (cpymemsi): Disable.
995 (movmd, movmd_internal_<mode>, movstr, movsd):
996 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
997 (movmd splitter, movsd splitter): Likewise.
998
999 * range-op.cc (range_tests): Avoid two tests when ints and
1000 shorts are the same size.
1001
1002 2019-10-04 Richard Biener <rguenther@suse.de>
1003
1004 PR lto/91968
1005 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1006 BLOCK_VARS.
1007
1008 2019-10-04 Richard Biener <rguenther@suse.de>
1009
1010 PR tree-optimization/91982
1011 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1012 against EXTRACT_LAST_REDUCTION.
1013 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1014
1015 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1016
1017 * range-op.o (value_range_from_overflowed_bounds): Rename from
1018 adjust_overflow_bound.
1019 (value_range_with_overflow): Rename from
1020 create_range_with_overflow.
1021 (create_possibly_reversed_range): Adjusted for above renames.
1022 (operator_*::wi_fold): Same.
1023 (cross_product_operator::wi_cross_productor): Same.
1024
1025 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1026
1027 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1028 -Wshadow=compatible-local): Fix description.
1029 Add an example where -Wshadow=compatible-local does not
1030 warn.
1031
1032 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1033
1034 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1035
1036 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1037 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1038
1039 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1040
1041 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1042 can_move_by_pieces issue.
1043
1044 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1045
1046 PR target/87243
1047 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1048 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1049 is available and the user has not set one on the command line.
1050
1051 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1052
1053 PR target/91769
1054 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1055 instead of REGNO equality check on addr.reg.
1056
1057 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1058
1059 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1060 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1061 * doc/invoke.texi (inline-heuristics-hint-percent,
1062 inline-heuristics-hint-percent-O2): Document.
1063 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1064 hint attribute.
1065 (can_inline_edge_by_limits_p): Use it.
1066
1067 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1068
1069 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1070 to print CONST_DOUBLEs.
1071
1072 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1073
1074 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1075 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1076 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1077
1078 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1079
1080 * Makefile.in (OBJS): Add range.o and range-op.o.
1081 Remove wide-int-range.o.
1082 * function-tests.c (test_ranges): New.
1083 (function_tests_c_tests): Call test_ranges.
1084 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1085 range_fold_unary_expr instead of extract_range_from_unary_expr.
1086 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1087 * range-op.cc: New file.
1088 * range-op.h: New file.
1089 * range.cc: New file.
1090 * range.h: New file.
1091 * selftest.h (range_tests): New prototype.
1092 * ssa.h: Include range.h.
1093 * tree-vrp.c (value_range_base::value_range_base): New
1094 constructors.
1095 (value_range_base::singleton_p): Do not call
1096 ranges_from_anti_range until sure we will need to.
1097 (value_range_base::type): Rename gcc_assert to
1098 gcc_checking_assert.
1099 (vrp_val_is_max): New argument.
1100 (vrp_val_is_min): Same.
1101 (wide_int_range_set_zero_nonzero_bits): Move from
1102 wide-int-range.cc.
1103 (extract_range_into_wide_ints): Remove.
1104 (extract_range_from_multiplicative_op): Remove.
1105 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1106 from extract_range_from_binary_expr.
1107 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1108 from extract_range_from_binary_expr.
1109 (extract_range_from_binary_expr): Remove.
1110 (normalize_for_range_ops): New.
1111 (range_fold_binary_expr): New.
1112 (range_fold_unary_expr): New.
1113 (value_range_base::num_pairs): New.
1114 (value_range_base::lower_bound): New.
1115 (value_range_base::upper_bound): New.
1116 (value_range_base::upper_bound): New.
1117 (value_range_base::contains_p): New.
1118 (value_range_base::invert): New.
1119 (value_range_base::union_): New.
1120 (value_range_base::intersect): New.
1121 (range_compatible_p): New.
1122 (value_range_base::operator==): New.
1123 (determine_value_range_1): Call range_fold_*expr instead of
1124 extract_range_from_*expr.
1125 * tree-vrp.h (class value_range_base): Add new constructors.
1126 Add methods for union_, intersect, operator==, contains_p,
1127 num_pairs, lower_bound, upper_bound, invert.
1128 (vrp_val_is_min): Add handle_pointers argument.
1129 (vrp_val_is_max): Same.
1130 (extract_range_from_unary_expr): Remove.
1131 (extract_range_from_binary_expr): Remove.
1132 (range_fold_unary_expr): New.
1133 (range_fold_binary_expr): New.
1134 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1135 range_fold_binary_expr instead of extract_range_from_binary_expr.
1136 (vr_values::extract_range_basic): Same.
1137 (vr_values::extract_range_from_unary_expr): Call
1138 range_fold_unary_expr instead of extract_range_from_unary_expr.
1139 * wide-int-range.cc: Remove.
1140 * wide-int-range.h: Remove.
1141
1142 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1143
1144 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1145 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1146 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1147 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1148 macro.
1149
1150 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1151
1152 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1153 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1154 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1155 * glimits.h: Likewise.
1156
1157 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1158
1159 PR rtl-optimization/91976
1160 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1161 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1162 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1163
1164 2019-10-02 Martin Sebor <msebor@redhat.com>
1165
1166 PR tree-optimization/80936
1167 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1168
1169 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1170
1171 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1172 instead of reg_class_contents[ALL_REGS].
1173
1174 2019-09-30 Jason Merrill <jason@redhat.com>
1175
1176 Add some hash_map_safe_* functions like vec_safe_*.
1177 * hash-map.h (default_hash_map_size): New variable.
1178 (create_ggc): Use it as default argument.
1179 (hash_map_maybe_create, hash_map_safe_get)
1180 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1181
1182 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1183
1184 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1185 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1186 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1187 (can_inline_edge_by_limits_p): Use it.
1188 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1189 (want_inline_small_function_p): Use O2 bounds.
1190 (edge_badness): LIkewise.
1191 * opts.c (default_options): Add OPT_finline_functions.
1192 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1193 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1194 New parameters.
1195 * doc/invoke.texi (-finline-functions): Update documentation.
1196 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1197 inline-min-speedup-O2): Document.
1198 (early-inlining-insns-O2): Simplify docs.
1199
1200 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1201
1202 PR rtl-optimization/87047
1203 * ifcvt.c (average_cost): New static function. Use it...
1204 (noce_process_if_block): ... here.
1205
1206 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1207
1208 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1209 * config/rs6000/rs6000-string.c (expand_block_move): Add
1210 might_overlap parm.
1211 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1212 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1213
1214 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1215
1216 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1217 (expand_builtin_memcpy): Use might_overlap parm.
1218 (expand_builtin_mempcpy_args): Use might_overlap parm.
1219 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1220 (expand_builtin_memory_copy_args): Add might_overlap parm.
1221 * expr.c (emit_block_move_via_cpymem): Rename to
1222 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1223 or movmem optab as appropriate.
1224 (emit_block_move_hints): Add might_overlap parm, do the right
1225 thing for might_overlap==true.
1226 * expr.h (emit_block_move_hints): Update prototype.
1227
1228 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1229
1230 * tree-eh.h (unsplit_eh_edges): Declare.
1231 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1232 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1233 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1234 (struct store_immediate_info): Add lp_nr field.
1235 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1236 initialize lp_nr with it.
1237 (struct merged_store_group): Add lp_nr and only_constants fields.
1238 (merged_store_group::merged_store_group): Initialize them.
1239 (merged_store_group::can_be_merged_into): Deal with them.
1240 (pass_store_merging): Rename terminate_and_release_chain into
1241 terminate_and_process_chain.
1242 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1243 renaming and remove useless assertions.
1244 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1245 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1246 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1247 instead of always recomputing it and compare lp_nr.
1248 (imm_store_chain_info::output_merged_store): If the group is in an
1249 active EH region, register new stores if they can throw. Moreover,
1250 if the insertion has created new basic blocks, adjust the PHI nodes
1251 of the post landing pad.
1252 (imm_store_chain_info::output_merged_stores): If the original stores
1253 are in an active EH region, deregister them.
1254 (lhs_valid_for_store_merging_p): Prettify.
1255 (adjust_bit_pos): New function extracted from...
1256 (mem_valid_for_store_merging): ...here. Use it for the base address
1257 and also for the offset if it is the addition of a constant.
1258 (lp_nr_for_store): New function.
1259 (pass_store_merging::process_store): Change return type to bool.
1260 Call lp_nr_for_store to initialize the store info. Propagate the
1261 return status of various called functions to the return value.
1262 (store_valid_for_store_merging_p): New predicate.
1263 (enum basic_block_status): New enumeration.
1264 (get_status_for_store_merging): New function.
1265 (pass_store_merging::execute): If the function can throw and catch
1266 non-call exceptions, unsplit the EH edges on entry and clean up the
1267 CFG on exit if something changed. Call get_status_for_store_merging
1268 for every basic block and keep the chains open across basic blocks
1269 when possible. Terminate and process open chains at the end, if any.
1270
1271 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1272
1273 * reginfo.c (globalize_reg): Fix shadowed variable in
1274 function_abis walk.
1275
1276 2019-10-02 Martin Jambor <mjambor@suse.cz>
1277
1278 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1279 do not compute some stuff when set.
1280 (cgraph_node::create_edge): Likewise.
1281 (cgraph_node::create_indirect_edge): Renamed last parameter to
1282 coning_p and flipped its meaning, don't even calculate
1283 inline_failed when set.
1284 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1285 (symbol_table::::create_edge): Likewise.
1286 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1287 the default value.
1288 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1289 call graph edge creating functions.
1290
1291 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1292
1293 PR c++/91222
1294 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1295 namespace types.
1296
1297 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1298
1299 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1300
1301 2019-10-02 Richard Biener <rguenther@suse.de>
1302
1303 * tree-vectorizer.h (vect_transform_reduction): Declare.
1304 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1305 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1306 stmt transform to ...
1307 (vect_transform_reduction): ... this.
1308
1309 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1310
1311 * omp-low.c (lower_omp_target): Dereference optional argument
1312 to work with the right pointer.
1313
1314 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1315
1316 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1317 false.
1318 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1319 * langhooks.h (omp_is_optional_argument): New hook.
1320 * omp-general.c (omp_is_optional_argument): New.
1321 * omp-general.h (omp_is_optional_argument): New declaration.
1322 * omp-low.c (lower_omp_target): Create temporary for received value
1323 and take the address for new_var if the original variable was a
1324 DECL_BY_REFERENCE. Use size of referenced object when a
1325 pass-by-reference optional argument used as argument to firstprivate.
1326
1327 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1328
1329 PR tree-optimization/91940
1330 * tree-vect-patterns.c: Include tree-vector-builder.h and
1331 vec-perm-indices.h.
1332 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1333 unpromoting the argument back to uint16_t, or by converting into a
1334 rotate, or into shifts plus ior.
1335
1336 2019-10-02 Richard Biener <rguenther@suse.de>
1337
1338 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1339 New.
1340 (vect_transform_cycle_phi): Declare.
1341 * tree-vect-stmts.c (vect_transform_stmt): Call
1342 vect_transform_cycle_phi.
1343 * tree-vect-loop.c (vectorizable_reduction): Split out
1344 PHI transformation stage to ...
1345 (vect_transform_cycle_phi): ... here.
1346
1347 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1348
1349 PR middle-end/91957
1350 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1351 eliminable registers.
1352 (make_hard_regno_live): Likewise, and don't make them live.
1353
1354 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1355
1356 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1357 Call pp_emit_prefix.
1358 (layout::print_source_line): Likewise.
1359 (layout::start_annotation_line): Likewise.
1360 (diagnostic_show_locus): Remove call to temporarily clear the
1361 prefix.
1362 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1363 interaction of pp_set_prefix with rulers and fix-it hints.
1364 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1365 prefix when calling diagnostic_show_locus, rather than destroying
1366 it afterwards.
1367 (print_parseable_fixits): Temporarily clear prefix.
1368 * pretty-print.c (pp_format): Save and restore line_length, rather
1369 than assuming it is zero.
1370 (pp_output_formatted_text): Remove assertion that line_length is
1371 zero.
1372
1373 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1374
1375 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1376 Rename to ...
1377 (nonoverlapping_refs_since_match_p): ... this; handle also
1378 ARRAY_REFs.
1379 (alias_stats): Update stats.
1380 (dump_alias_stats): Likewise.
1381 (cheap_array_ref_low_bound): New function.
1382 (aliasing_matching_component_refs_p): Add partial_overlap
1383 argument;
1384 pass it to nonoverlapping_refs_since_match_p.
1385 (aliasing_component_refs_walk): Update call of
1386 aliasing_matching_component_refs_p
1387 (nonoverlapping_array_refs_p): New function.
1388 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1389 indirect_refs_may_alias_p): Update calls of
1390 nonoverlapping_refs_since_match_p.
1391
1392 2019-10-01 Maya Rashish <coypu@sdf.org>
1393
1394 PR target/85401
1395 * ira-color.c (allocno_copy_cost_saving): Call
1396 ira_init_register_move_cost_if_necessary.
1397
1398 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1399
1400 * Makefile.in (gnat_install_lib): New variable.
1401 * configure.ac: Substitute it.
1402 * configure: Regenerate.
1403
1404 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1405
1406 PR lto/91222
1407 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1408 is matched with non-C++ type
1409
1410 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1411
1412 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1413 after local CSE.
1414
1415 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1416
1417 * doc/invoke.texi (early-inlining-insns-O2): Document.
1418 (early-inlining-insns): Update.
1419 * params.def (early-inlining-insns-O2): New bound.
1420 (early-inlining-insns): Update docs.
1421 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1422
1423 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1424
1425 PR target/88562
1426 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1427 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1428 a memory access insn.
1429
1430 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1431
1432 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1433 vpmsumd.
1434
1435 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1436
1437 PR target/77918
1438 * config/s390/s390.c (s390_expand_vec_compare): Use
1439 gen_vec_cmpordered and gen_vec_cmpunordered.
1440 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1441 vec_unordered): Delete.
1442 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1443 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1444 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1445 (vec_cmp<code>): Generic dispatcher.
1446
1447 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1448
1449 PR target/77918
1450 * config/s390/vector.md (V_HW): Add V1TI in order to make
1451 vcond$a$b generate vcondv1tiv1tf.
1452
1453 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1454
1455 PR rtl-optimization/91948
1456 * ira-build.c (ira_create_allocno): Initialize
1457 ALLOCNO_CROSSED_CALLS_ABIS.
1458 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1459 than regno to ira_need_caller_save_p.
1460
1461 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1462
1463 * config/i386/i386-options.c
1464 (ix86_recompute_optlev_based_flags): New, moved out of...
1465 (ix86_option_override_internal): ... this. Call it.
1466 (ix86_override_options_after_change): Call it here too.
1467
1468 PR debug/91507
1469 * dwarf2out.c (override_type_for_decl_p): New.
1470 (gen_variable_die): Use it.
1471
1472 2019-10-01 Richard Biener <rguenther@suse.de>
1473
1474 * tree-vect-loop.c (vectorizable_reduction): Move variables
1475 to where they are used.
1476
1477 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1478
1479 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1480 (build_def_use): Use PC instead of CC0 in a comment.
1481
1482 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1483
1484 * rtl.def (CLOBBER_HIGH): Delete.
1485 * doc/rtl.texi (clobber_high): Remove documentation.
1486 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1487 (reg_is_clobbered_by_clobber_high): Delete.
1488 (gen_hard_reg_clobber_high): Likewise.
1489 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1490 * cfgexpand.c (expand_gimple_stmt): Likewise.
1491 * combine-stack-adj.c (single_set_for_csa): Likewise.
1492 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1493 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1494 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1495 * cse.c (invalidate_reg): Remove clobber_high parameter.
1496 (invalidate): Update call accordingly.
1497 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1498 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1499 (count_reg_usage, insn_live_p): Likewise.
1500 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1501 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1502 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1503 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1504 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1505 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1506 (mark_nonreg_stores_2): Likewise.
1507 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1508 (df_get_call_refs): Likewise.
1509 * dwarf2out.c (mem_loc_descriptor): Likewise.
1510 * emit-rtl.c (verify_rtx_sharing): Likewise.
1511 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1512 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1513 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1514 * genemit.c (gen_exp, gen_insn): Likewise.
1515 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1516 * haifa-sched.c (haifa_classify_rtx): Likewise.
1517 * ira-build.c (create_insn_allocnos): Likewise.
1518 * ira-costs.c (scan_one_insn): Likewise.
1519 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1520 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1521 * jump.c (mark_jump_label_1): Likewise.
1522 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1523 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1524 handling.
1525 (mark_not_eliminable): Likewise.
1526 * lra-lives.c (process_bb_lives): Likewise.
1527 * lra.c (new_insn_reg): Remove clobber_high parameter.
1528 (collect_non_operand_hard_regs): Likewise. Update call to new
1529 insn_reg. Remove CLOBBER_HIGH handling.
1530 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1531 to collect_non_operand_hard_regs.
1532 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1533 Update call to new_insn_reg.
1534 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1535 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1536 (move2add_note_store): Likewise.
1537 * print-rtl.c (print_pattern): Likewise.
1538 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1539 (if_test_bypass_p): Likewise.
1540 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1541 * reginfo.c (reg_scan_mark_refs): Likewise.
1542 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1543 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1544 (forget_old_reloads_1): Likewise.
1545 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1546 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1547 (dbr_schedule): Likewise.
1548 * resource.c (update_live_status, mark_referenced_resources)
1549 (mark_set_resources): Likewise.
1550 * rtl.c (copy_rtx): Likewise.
1551 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1552 (note_pattern_stores): Likewise.
1553 (reg_is_clobbered_by_clobber_high): Delete.
1554 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1555 CLOBBER_HIGH handling.
1556
1557 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1558
1559 PR target/91452
1560 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1561 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1562 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1563 Handle ARM_PCS_TLSDESC.
1564 (aarch64_tlsdesc_abi_id): New function.
1565 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1566 rtx instead of a list of clobbers and clobber_highs.
1567 (tlsdesc_small_<mode>): Update accordingly.
1568
1569 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1570
1571 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1572 extra callee_abi argument.
1573 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1574 Insert a CALLEE_ABI unspec into the call pattern as the second
1575 element in the PARALLEL.
1576 (aarch64_simd_call_p): Delete.
1577 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1578 the new CALLEE_ABI element of the PARALLEL.
1579 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1580 from the function type, if given.
1581 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1582 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1583 when passed the function_arg_info end marker.
1584 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1585 final argument of gen_sibcall.
1586 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1587 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1588 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1589 pattern.
1590 (call_value): Likewise operand 3.
1591 (sibcall): Likewise operand 2. Place the unspec before rather than
1592 after the return.
1593 (sibcall_value): Likewise operand 3.
1594 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1595 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1596 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1597 constraint strings.
1598 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1599
1600 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1601
1602 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1603 choose_hard_reg_mode.
1604 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1605
1606 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1607
1608 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1609 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1610 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1611
1612 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1613
1614 * diagnostic-show-locus.c (line_label::line_label): Initialize
1615 m_has_vbar.
1616 (line_label::comparator): Reverse the sort order by m_state_idx,
1617 so that when the list is walked backwards the labels appear in
1618 order of insertion into the rich_location.
1619 (line_label::m_has_vbar): New field.
1620 (layout::print_any_labels): When dealing with multiple labels at
1621 the same line and column, only print vertical bars for the one
1622 with the highest label_line.
1623 (selftest::test_one_liner_labels): Update test for multiple labels
1624 to expect the labels to be in the order of insertion into the
1625 rich_location. Add a test for many such labels, where the column
1626 numbers are out-of-order relative to the insertion order.
1627
1628 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1629
1630 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1631 (ix86_frame::expensive_count): Likewise.
1632 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1633 of use_fast_prologue_epilogue robust against incidental changes
1634 in function size.
1635
1636 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1637
1638 PR target/77918
1639 * config/s390/vector.md (vec_unordered<mode>): Call
1640 gen_vec_ordered<mode>.
1641
1642 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1643
1644 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1645 New pattern for ASRD.
1646 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1647 * internal-fn.def (IFN_DIV_POW2): New internal function.
1648 * optabs.def (sdiv_pow2_optab): New optab.
1649 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1650 Modify pattern to support new operation.
1651 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1652 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1653 Document new target selector.
1654
1655 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1656
1657 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1658 to test whether we're compiling a vector PCS function and to test
1659 whether the function needs to save a particular register.
1660 Remove the vector PCS handling of df_set_regs_ever_live.
1661 (aarch64_components_for_bb): Use crtl->abi to test whether
1662 the function needs to save a particular register.
1663 (aarch64_process_components): Use crtl->abi to test whether
1664 we're compiling a vector PCS function.
1665 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1666 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1667
1668 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1669
1670 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1671 Delete.
1672 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1673 whether the block calls a function that clobbers more registers
1674 than the current function is allowed to.
1675 (aarch64_use_simple_return_insn_p): Delete.
1676 * config/aarch64/aarch64.md (simple_return): Remove condition.
1677
1678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1679
1680 * function-abi.h (function_abi_aggregator): New class.
1681 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1682 function.
1683 * ira.c (update_equiv_regs_prescan): New function. Call
1684 set_paradoxical_subreg here rather than...
1685 (update_equiv_regs): ...here.
1686 (ira): Call update_equiv_regs_prescan.
1687
1688 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1689
1690 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1691 IN_TARGET_CODE.
1692 (call_used_or_fixed_regs): Likewise.
1693 (call_used_or_fixed_reg_p): Likewise.
1694 * reginfo.c (regs_invalidated_by_call): New macro.
1695
1696 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1697
1698 * shrink-wrap.c: Include function-abi.h.
1699 (requires_stack_frame_p): Use crtl->abi to test whether the
1700 current function can use a register without saving it first.
1701
1702 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1703
1704 * sel-sched-ir.h (_def::crosses_call): Replace with...
1705 (_def::crossed_call_abis): ..this new field.
1706 (def_list_add): Take a mask of ABIs instead of a crosses_call
1707 boolean.
1708 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1709 of _def accordingly.
1710 * sel-sched.c: Include function-abi.h.
1711 (hard_regs_data::regs_for_call_clobbered): Delete.
1712 (reg_rename::crosses_call): Replace with...
1713 (reg_rename::crossed_call_abis): ...this new field.
1714 (fur_static_params::crosses_call): Replace with...
1715 (fur_static_params::crossed_call_abis): ...this new field.
1716 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1717 (init_hard_regs_data): Use crtl->abi to test which registers the
1718 current function would need to save before it uses them.
1719 (mark_unavailable_hard_regs): Update handling of call-clobbered
1720 registers, using call_clobbers_in_region to find out which registers
1721 might be call-clobbered (but without taking -fipa-ra into account
1722 for now). Remove separate handling of partially call-clobbered
1723 registers.
1724 (verify_target_availability): Use crossed_call_abis instead of
1725 crosses_call.
1726 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1727 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1728
1729 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1730
1731 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1732 function to test whether a register is fully or partly clobbered.
1733
1734 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1735
1736 * rtlanal.c: Include function-abi.h.
1737 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1738 function and clobbers_reg_p to test whether the register
1739 is call-clobbered.
1740 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1741 to get the ABI of the called function and full_reg_clobbers to
1742 get the set of fully call-clobbered registers. Warn about the
1743 pitfalls of using this mode.
1744
1745 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1746
1747 * reload.c: Include function-abi.h.
1748 (find_equiv_reg): Use clobbers_reg_p to test whether either
1749 of the equivalent registers is clobbered by a call.
1750 * reload1.c: Include function-abi.h.
1751 (reg_reloaded_call_part_clobbered): Delete.
1752 (reload): Use crtl->abi to test which registers would need
1753 saving in the prologue before use.
1754 (find_reg): Likewise.
1755 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1756 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1757 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1758
1759 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1760
1761 * regrename.h (du_head::call_clobber_mask): New field.
1762 (du_head::need_caller_save_reg): Replace with...
1763 (du_head::call_abis): ...this new field.
1764 * regrename.c: Include function-abi.h.
1765 (call_clobbered_in_chain_p): New function.
1766 (check_new_reg_p): Use crtl->abi when deciding whether a register
1767 is free for use after RA. Use call_clobbered_in_chain_p to test
1768 whether a candidate register would be clobbered by a call.
1769 (find_rename_reg): Don't add call-clobber conflicts here.
1770 (rename_chains): Check call_abis instead of need_caller_save_reg.
1771 (merge_chains): Update for changes to du_head.
1772 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1773 target. Record the ABI identifier in call_abis and the set of
1774 fully or partially clobbered registers in call_clobber_mask.
1775 Add fully-clobbered registers to hard_conflicts here rather
1776 than in find_rename_reg.
1777 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1778 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1779 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1780 function-abi.h.
1781 * config/c6x/c6x.c: Likewise.
1782
1783 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1784
1785 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1786 mode of the register when deciding whether it is no longer
1787 available after a call.
1788
1789 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1790
1791 * recog.c: Include function-abi.h.
1792 (peep2_find_free_register): Use crtl->abi when deciding whether
1793 a register is free for use after RA.
1794
1795 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1796
1797 * postreload-gcse.c: Include regs.h and function-abi.h.
1798 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1799 call insn target. Conservatively assume that partially-clobbered
1800 registers are altered.
1801
1802 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1803
1804 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1805 when deciding whether a register is free for use after RA.
1806 (reload_combine): Remove unnecessary use of fixed_reg_set.
1807 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1808 call insn target. Use reg_mode when testing whether a register
1809 is no longer available.
1810
1811 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1812
1813 * target.def (return_call_with_max_clobbers): Delete.
1814 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1815 * doc/tm.texi: Regenerate.
1816 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1817 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1818 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1819 (lra_reg::call_insn): Delete.
1820 * lra.c: Include function-abi.h.
1821 (initialize_lra_reg_info_element): Don't initialize the fields above.
1822 (lra): Use crtl->abi to test whether the current function needs to
1823 save a register in the prologue. Remove special pre-inheritance
1824 lra_create_live_ranges pass for flag_ipa_ra.
1825 * lra-assigns.c: Include function-abi.h
1826 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1827 function needs to save a register in the prologue.
1828 (lra_assign): Assert that registers aren't allocated to a
1829 conflicting register, rather than checking only for overlaps
1830 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1831 and for registers that are not live across a call.
1832 * lra-constraints.c (last_call_for_abi): New variable.
1833 (full_and_partial_call_clobbers): Likewise.
1834 (setup_next_usage_insn): Remove the register from
1835 full_and_partial_call_clobbers.
1836 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1837 whether the register needs a caller save.
1838 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1839 of call_used_or_fixed_regs.
1840 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1841 full_and_partial_call_clobbers.
1842 * lra-lives.c (check_pseudos_live_through_calls): Replace
1843 last_call_used_reg_set and call_insn arguments with an abi argument.
1844 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1845 as the set of conflicting registers.
1846 (calls_have_same_clobbers_p): Delete.
1847 (process_bb_lives): Track the ABI of the last call instead of an
1848 insn/HARD_REG_SET pair. Update calls to
1849 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1850 the set of registers that could be clobbered by an EH edge.
1851 Include partially-clobbered as well as fully-clobbered registers.
1852 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1853 * lra-remat.c: Include function-abi.h.
1854 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1855 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1856 registers and bitmap_view to combine them into dead_regs.
1857 (call_used_input_regno_present_p): Take a function_abi argument
1858 and use it to test whether a register is call-clobbered.
1859 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1860 call insn target. Update tje call to call_used_input_regno_present_p.
1861 (do_remat): Likewise.
1862 (lra_remat): Remove the initialization of call_used_regs_arr_len
1863 and call_used_regs_arr.
1864
1865 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1866
1867 * loop-iv.c: Include regs.h and function-abi.h.
1868 (simplify_using_initial_values): Use insn_callee_abi to get the
1869 ABI of the call insn target. Conservatively assume that
1870 partially-clobbered registers are altered.
1871
1872 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1873
1874 * function-abi.h (call_clobbers_in_region): Declare.
1875 (call_clobbered_in_region_p): New function.
1876 * function-abi.cc (call_clobbers_in_region): Likewise.
1877 * ira-int.h: Include function-abi.h.
1878 (ira_allocno::crossed_calls_abis): New field.
1879 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1880 (ira_need_caller_save_regs): New function.
1881 (ira_need_caller_save_p): Likewise.
1882 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1883 of call_used_or_fixed_regs.
1884 (do_reload): Use crtl->abi to test whether the current function
1885 needs to save a register in the prologue. Count registers that
1886 need to be saved rather than registers that don't.
1887 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1888 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1889 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1890 (propagate_some_info_from_allocno): Likewise.
1891 (copy_info_to_removed_store_destinations): Likewise.
1892 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1893 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1894 (ira_build): Use ira_need_caller_save_regs instead of
1895 call_used_or_fixed_regs.
1896 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1897 whether the current function would need to save a register
1898 before using it.
1899 (calculate_spill_cost): Likewise.
1900 (allocno_reload_assign): Use ira_need_caller_save_regs and
1901 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1902 * ira-conflicts.c (ira_build_conflicts): Use
1903 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1904 as the set of call-clobbered registers. Remove the
1905 call_used_or_fixed_regs mask from the calculation of
1906 temp_hard_reg_set and mask its use instead. Remove special
1907 handling of partially-clobbered registers.
1908 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1909 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1910 calculate the set of conflicting registers for calls that
1911 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1912 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1913 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1914 Use eh_edge_abi to calculate the set of registers that could
1915 be clobbered by an EH edge. Include partially-clobbered as
1916 well as fully-clobbered registers.
1917
1918 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1919
1920 * haifa-sched.c: Include function-abi.h.
1921 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1922 the function would need to save a register before using it.
1923
1924 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1925
1926 * gcse.c: Include function-abi.h.
1927 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1928 the call insn target. Invalidate partially call-clobbered
1929 registers as well as fully call-clobbered ones.
1930
1931 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1932
1933 * function.c (aggregate_value_p): Work out which ABI the
1934 function is using before testing which registers are at least
1935 partly preserved by a call.
1936
1937 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1938
1939 * early-remat.c: Include regs.h and function-abi.h.
1940 (early_remat::maybe_add_candidate): Don't check for call-clobbered
1941 registers here.
1942 (early_remat::restrict_remat_for_unavail_regs): New function.
1943 (early_remat::restrict_remat_for_call): Likewise.
1944 (early_remat::process_block): Before calling emit_remat_insns
1945 for a previous call in the block, invalidate any candidates
1946 that would clobber call-preserved registers.
1947 (early_remat::emit_remat_insns_for_block): Likewise for the
1948 final call in a block. Do the same thing for live-in registers
1949 when calling emit_remat_insns at the head of a block.
1950
1951 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1952
1953 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1954 whether the current function needs to save at least part of a
1955 register before using it.
1956 (df_get_exit_block_use_set): Likewise for epilogue restores.
1957
1958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1959
1960 * df-problems.c: Include regs.h and function-abi.h.
1961 (df_rd_problem_data): Rename sparse_invalidated_by_call to
1962 sparse_invalidated_by_eh and dense_invalidated_by_call to
1963 dense_invalidated_by_eh.
1964 (df_print_bb_index): Update accordingly.
1965 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
1966 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
1967 that are clobbered by an EH edge. Clobber partially-clobbered
1968 registers as well as fully-clobbered ones.
1969 (df_md_confluence_n): Likewise.
1970 (df_rd_local_compute): Likewise. Update for changes to
1971 df_rd_problem_data.
1972 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
1973 of registers that are clobbered by an EH edge. Includde partially-
1974 clobbered registers as well as fully-clobbered ones.
1975
1976 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1977
1978 * cselib.c (cselib_process_insn): If we know what mode a
1979 register was set in, check whether it is clobbered in that
1980 mode by a call. Only fall back to reg_raw_mode if that fails.
1981
1982 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1983
1984 * cse.c: Include regs.h and function-abi.h.
1985 (invalidate_for_call): Take the call insn as an argument.
1986 Use insn_callee_abi to get the ABI of the call and invalidate
1987 partially clobbered registers as well as fully clobbered ones.
1988 (cse_insn): Update call accordingly.
1989
1990 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1991
1992 * combine.c: Include function-abi.h.
1993 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
1994 of the target of call insns. Invalidate partially-clobbered
1995 registers as well as fully-clobbered ones.
1996
1997 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1998
1999 * cfgloopanal.c: Include regs.h and function-abi.h.
2000 (init_set_costs): Use default_function_abi to test whether
2001 a general register is call-clobbered.
2002
2003 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2004
2005 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2006 instead of the call-clobbered sets.
2007
2008 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2009
2010 * caller-save.c (setup_save_areas): Remove redundant |s of
2011 fixed_reg_set.
2012 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2013 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2014 value is useful.
2015
2016 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2017
2018 * rtl.h (predefined_function_abi): Declare.
2019 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2020 instead of a boolean call_save flag.
2021 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2022 accordingly.
2023 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2024 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2025 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2026 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2027 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2028 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2029 * reginfo.c (init_reg_modes_target): Likewise.
2030 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2031 instead of a boolean call_save flag.
2032 * targhooks.c: Include function-abi.h.
2033 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2034 using eh_edge_abi to choose the mode.
2035
2036 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2037
2038 * target.def (hard_regno_call_part_clobbered): Take an ABI
2039 identifier instead of an rtx_insn.
2040 * doc/tm.texi: Regenerate.
2041 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2042 (hook_bool_uint_uint_mode_false): New function.
2043 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2044 (hook_bool_uint_uint_mode_false): New function.
2045 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2046 Take an ABI identifier instead of an rtx_insn.
2047 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2048 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2049 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2050 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2051 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2052 Likewise.
2053 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2054 * cselib.c: Include function-abi.h.
2055 (cselib_process_insn): Update call to
2056 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2057 to get the appropriate ABI identifier.
2058 * function-abi.cc (predefined_function_abi::initialize): Update call
2059 to targetm.hard_regno_call_part_clobbered.
2060 * ira-conflicts.c (ira_build_conflicts): Likewise.
2061 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2062 * lra-constraints.c: Include function-abi.h.
2063 (need_for_call_save_p): Update call to
2064 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2065 to get the appropriate ABI identifier.
2066 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2067 * regcprop.c (copyprop_hardreg_forward_1): Update call
2068 to targetm.hard_regno_call_part_clobbered.
2069 * reginfo.c (choose_hard_reg_mode): Likewise.
2070 * regrename.c (check_new_reg_p): Likewise.
2071 * reload.c (find_equiv_reg): Likewise.
2072 * reload1.c (emit_reload_insns): Likewise.
2073 * sched-deps.c: Include function-abi.h.
2074 (deps_analyze_insn): Update call to
2075 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2076 to get the appropriate ABI identifier.
2077 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2078 call to targetm.hard_regno_call_part_clobbered.
2079 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2080
2081 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2082
2083 * config/i386/i386.c: Include function-abi.h.
2084 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2085 if they preserve some 256-bit or 512-bit SSE registers.
2086
2087 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2088
2089 * target.def (insn_callee_abi): New hook.
2090 (remove_extra_call_preserved_regs): Delete.
2091 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2092 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2093 * doc/tm.texi: Regenerate.
2094 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2095 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2096 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2097 insn argument.
2098 (aarch64_remove_extra_call_preserved_regs): Delete.
2099 (aarch64_insn_callee_abi): New function.
2100 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2101 (TARGET_INSN_CALLEE_ABI): New macro.
2102 * rtl.h (get_call_fndecl): Declare.
2103 (cgraph_rtl_info): Fix formatting. Tweak comment for
2104 function_used_regs. Remove function_used_regs_valid.
2105 * rtlanal.c (get_call_fndecl): Moved from final.c
2106 * function-abi.h (insn_callee_abi): Declare.
2107 (target_function_abi_info): Mention insn_callee_abi.
2108 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2109 way to get_call_reg_set_usage did.
2110 (insn_callee_abi): New function.
2111 * regs.h (get_call_reg_set_usage): Delete.
2112 * final.c: Include function-abi.h.
2113 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2114 function_used_regs before the main loop rather than afterwards.
2115 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2116 if function_used_regs ends up not being useful.
2117 (get_call_fndecl): Move to rtlanal.c
2118 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2119 * caller-save.c: Include function-abi.h.
2120 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2121 instead of get_call_reg_set_usage.
2122 * cfgcleanup.c: Include function-abi.h.
2123 (old_insns_match_p): Use insn_callee_abi instead of
2124 get_call_reg_set_usage.
2125 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2126 a tree.
2127 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2128 function_used_regs.
2129 * df-scan.c: Include function-abi.h.
2130 (df_get_call_refs): Use insn_callee_abi instead of
2131 get_call_reg_set_usage.
2132 * ira-lives.c: Include function-abi.h.
2133 (process_bb_node_lives): Use insn_callee_abi instead of
2134 get_call_reg_set_usage.
2135 * lra-lives.c: Include function-abi.h.
2136 (process_bb_lives): Use insn_callee_abi instead of
2137 get_call_reg_set_usage.
2138 * postreload.c: Include function-abi.h.
2139 (reload_combine): Use insn_callee_abi instead of
2140 get_call_reg_set_usage.
2141 * regcprop.c: Include function-abi.h.
2142 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2143 get_call_reg_set_usage.
2144 * resource.c: Include function-abi.h.
2145 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2146 instead of get_call_reg_set_usage.
2147 * var-tracking.c: Include function-abi.h.
2148 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2149 get_call_reg_set_usage.
2150
2151 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2152
2153 * target.def (fntype_abi): New target hook.
2154 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2155 * doc/tm.texi: Regenerate.
2156 * target.h (predefined_function_abi): Declare.
2157 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2158 if defined.
2159 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2160 * config/aarch64/aarch64.c: Include function-abi.h.
2161 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2162 (TARGET_FNTYPE_ABI): Define.
2163
2164 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2165
2166 * Makefile.in (OBJS): Add function-abi.o.
2167 (GTFILES): Add function-abi.h.
2168 * function-abi.cc: New file.
2169 * function-abi.h: Likewise.
2170 * emit-rtl.h (rtl_data::abi): New field.
2171 * function.c: Include function-abi.h.
2172 (prepare_function_start): Initialize crtl->abi.
2173 * read-rtl-function.c: Include regs.h and function-abi.h.
2174 (read_rtl_function_body): Initialize crtl->abi.
2175 (read_rtl_function_body_from_file_range): Likewise.
2176 * reginfo.c: Include function-abi.h.
2177 (init_reg_sets_1): Initialize default_function_abi.
2178 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2179 when making a register global.
2180 * target-globals.h (this_target_function_abi_info): Declare.
2181 (target_globals::function_abi_info): New field.
2182 (restore_target_globals): Copy it.
2183 * target-globals.c: Include function-abi.h.
2184 (default_target_globals): Initialize the function_abi_info field.
2185 (target_globals): Allocate it.
2186 (save_target_globals): Free it.
2187
2188 2019-09-30 Nick Clifton <nickc@redhat.com>
2189
2190 PR target/85978
2191 * config/frv/frv.c (frv_register_move_cost): Add break statements
2192 to avoid falling through to the wrong cases. Tidy code.
2193
2194 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2195
2196 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2197 For multi-registers modes, test how big each register part is.
2198
2199 2019-09-30 Nick Clifton <nickc@redhat.com>
2200
2201 PR target/59205
2202 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2203 (TARGET_ASM_SELECT_SECTION): Remove definition.
2204 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2205
2206 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2207
2208 * emit-rtl.c (init_raw_REG): New function.
2209 (gen_raw_REG): Use init_raw_REG.
2210 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2211 macros.
2212 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2213 * rtl.h (rtx_init): New function.
2214 (rtx_alloca): New function.
2215 (init_raw_REG): New function.
2216 (alloca_raw_REG): New macro.
2217
2218 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2219
2220 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2221 (pcrel_local_address): Replace pcrel_address predicate, use the
2222 new function address_to_insn_form.
2223 (pcrel_external_address): Replace with new implementation using
2224 address_to_insn_form..
2225 (prefixed_mem_operand): Delete predicate which is now unused.
2226 (pcrel_external_mem_operand): Delete predicate which is now
2227 unused.
2228 * config/rs6000/rs6000-protos.h (enum insn_form): New
2229 enumeration.
2230 (enum non_prefixed_form): New enumeration.
2231 (address_to_insn_form): New declaration.
2232 (prefixed_load_p): New declaration.
2233 (prefixed_store_p): New declaration.
2234 (prefixed_paddi_p): New declaration.
2235 (rs6000_asm_output_opcode): New declaration.
2236 (rs6000_final_prescan_insn): Move declaration and update calling
2237 signature.
2238 (address_is_prefixed): New helper inline function.
2239 * config/rs6000/rs6000.c(print_operand_address): Check for either
2240 PC-relative local symbols or PC-relative external symbols.
2241 (rs6000_emit_move): Support loading PC-relative addresses.
2242 (mode_supports_prefixed_address_p): Delete, no longer used.
2243 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2244 (address_to_insn_form): New function to decode an address format.
2245 (reg_to_non_prefixed): New function to identify what the
2246 non-prefixed memory instruction format is for a register.
2247 (prefixed_load_p): New function to identify prefixed loads.
2248 (prefixed_store_p): New function to identify prefixed stores.
2249 (prefixed_paddi_p): New function to identify prefixed load
2250 immediates.
2251 (next_insn_prefixed_p): New static state variable.
2252 (rs6000_final_prescan_insn): New function to determine if an insn
2253 uses a prefixed instruction.
2254 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2255 prefixed instruction.
2256 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2257 (ASM_OUTPUT_OPCODE): New target hook.
2258 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2259 prefixed instructions.
2260 (prefixed_length): New insn attribute for the size of prefixed
2261 instructions.
2262 (non_prefixed_length): New insn attribute for the size of
2263 non-prefixed instructions.
2264 (pcrel_local_addr): New insn to load up a local PC-relative
2265 address.
2266 (pcrel_extern_addr): New insn to load up an external PC-relative
2267 address.
2268 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2269 GPR and loading a 128-bit floating point type to a GPR.
2270
2271 2019-09-30 Richard Biener <rguenther@suse.de>
2272
2273 * gimple.c (gimple_get_lhs): For PHIs return the result.
2274 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2275 SLP instance as argument.
2276 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2277 double-reduction PHIs with vectorizable_lc_phi.
2278 (vect_analyze_loop_operations): Adjust.
2279 (vect_create_epilog_for_reduction): Remove all code not dealing
2280 with reduction LC PHI or epilogue generation.
2281 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2282 for live stmts of reductions.
2283 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2284 do not handle defs that are not vect_internal_def.
2285 (can_vectorize_live_stmts): Adjust.
2286 (vect_analyze_stmt): When the vectorized stmt defined a value
2287 used on backedges adjust the backedge uses of vectorized PHIs.
2288
2289 2019-09-30 Martin Jambor <mjambor@suse.cz>
2290
2291 PR ipa/91853
2292 * tree-inline.c (force_value_to_type): New function.
2293 (setup_one_parameter): Use force_value_to_type to convert type.
2294 * tree-inline.c (force_value_to_type): Declare.
2295 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2296 with register type mismatches.
2297
2298 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2299
2300 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2301 32-bit PowerPC.
2302 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2303 * config/rs6000/t-freebsd64: Make use of the above define and build
2304 the 32-bit libraries with secure-plt.
2305
2306 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2307
2308 PR target/91931
2309 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2310 gen_int_mode instead of GEN_INT.
2311
2312 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2313
2314 * config/darwin.c (gen_macho_low): Amend to include the mode
2315 argument.
2316 (machopic_indirect_data_reference): Amend gen_macho_low call
2317 to include mode argument
2318 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2319 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2320 the macho_high expander and two define_insn entries.
2321
2322 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2323
2324 PR bootstrap/90543
2325 * optc-save-gen.awk: Fix up printing string option differences.
2326
2327 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2328
2329 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2330 vec_perm cost to 1 for non-Power7 VSX architectures.
2331
2332 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2333
2334 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2335 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2336 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2337
2338 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2339
2340 * config/darwin.c (gen_macho_high): Amend to include the mode
2341 argument.
2342 (machopic_indirect_data_reference): Amend gen_macho_high call
2343 to include mode argument.
2344 (machopic_legitimize_pic_address): Likewise.
2345 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2346 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2347 the macho_high expander and two define_insn entries.
2348
2349 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2350
2351 PR target/86805
2352 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2353
2354 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2355
2356 PR target/80672
2357 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2358 std::string::compare instead of std::string::find.
2359
2360 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2361
2362 * configure: Regenerate.
2363
2364 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2365
2366 PR middle-end/91920
2367 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2368 variables as shared.
2369
2370 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2371
2372 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2373 replaces the expander and two define_insn entries.
2374 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2375 call.
2376 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2377
2378 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2379
2380 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2381 (fibonacci_heap::nodes): Likewise.
2382 (fibonacci_heap::min_key): Likewise.
2383 (fibonacci_heap::min): Likewise.
2384
2385 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2386
2387 * cgraph.c (cgraph_node::get_fun): Make const.
2388 * cgraph.h (cgraph_node::get_fun): Likewise.
2389
2390 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2391
2392 PR target/91919
2393 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2394 of SImode MULT.
2395
2396 2019-09-27 Richard Biener <rguenther@suse.de>
2397
2398 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2399 (STMT_VINFO_REDUC_FN): Likewise.
2400 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2401 STMT_VINFO_REDUC_FN.
2402 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2403 for condition reductions.
2404 (vect_create_epilog_for_reduction): Compute all required state
2405 from the stmt to be vectorized.
2406 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2407 invocation and remove then dead code. For single def-use chains
2408 record only a single vector stmt.
2409
2410 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2411
2412 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2413 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2414 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2415 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2416 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2417 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2418 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2419 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2420 (aarch64_general_builtin_rsqrt): Declare.
2421 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2422 New function.
2423 (aarch64_mangle_builtin_type): Rename to...
2424 (aarch64_general_mangle_builtin_type): ...this.
2425 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2426 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2427 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2428 aarch64_general_add_builtin instead of add_builtin_function.
2429 (aarch64_init_builtins): Rename to...
2430 (aarch64_general_init_builtins): ...this. Use
2431 aarch64_general_add_builtin instead of add_builtin_function.
2432 (aarch64_builtin_decl): Rename to...
2433 (aarch64_general_builtin_decl): ...this and remove the unused
2434 arguments.
2435 (aarch64_expand_builtin): Rename to...
2436 (aarch64_general_expand_builtin): ...this and remove the unused
2437 arguments.
2438 (aarch64_builtin_rsqrt): Rename to...
2439 (aarch64_general_builtin_rsqrt): ...this.
2440 (aarch64_fold_builtin): Rename to...
2441 (aarch64_general_fold_builtin): ...this. Take the function subcode
2442 and return type as arguments. Remove the "ignored" argument.
2443 (aarch64_gimple_fold_builtin): Rename to...
2444 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2445 subcode and gcall as arguments, and return the new function call.
2446 * config/aarch64/aarch64.c (aarch64_init_builtins)
2447 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2448 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2449 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2450 instead of aarch64_builtin_rsqrt.
2451 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2452 instead of aarch64_mangle_builtin_type.
2453
2454 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2455
2456 * target.def (check_builtin_call): New target hook.
2457 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2458 * doc/tm.texi: Regenerate.
2459
2460 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2461
2462 PR tree-optimization/91909
2463 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2464 reduc_index parameter. When handling COND_REDUCTION, make sure
2465 that the reduction phi operand is in the correct arm of the
2466 VEC_COND_EXPR.
2467 (vectorizable_reduction): Pass reduc_index to the above.
2468
2469 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2470
2471 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2472 New combine pattern.
2473
2474 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2475
2476 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2477 loop instruction into new basic block before the loop when basic
2478 block that precedes the loop is empty.
2479
2480 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2481
2482 * function.c (gimplify_parameters): Use build_clobber function.
2483 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2484 * tree-inline.c (expand_call_inline): Likewise.
2485 * tree-sra.c (clobber_subtree): Likewise.
2486 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2487 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2488 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2489 lower_omp_target): Likewise.
2490 * omp-expand.c (expand_omp_for_generic): Likewise.
2491 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2492
2493 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2494
2495 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2496 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2497 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2498 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2499 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2500 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2501 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2502 LD_ELEMREV_V16QI): Use the PURE attribute.
2503
2504 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2505
2506 * config/rs6000/darwin.md: Replace the expanders for
2507 load_macho_picbase and reload_macho_picbase with use of '@'
2508 and <mode> in their respective define_insns.
2509 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2510 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2511 Pmode to gen_load_macho_picbase.
2512 * config/rs6000/rs6000.md: Likewise.
2513
2514 2019-09-25 Richard Biener <rguenther@suse.de>
2515
2516 PR tree-optimization/91896
2517 * tree-vect-loop.c (vectorizable_reduction): The single
2518 def-use cycle optimization cannot apply when there's more
2519 than one pattern stmt involved.
2520
2521 2019-09-26 Richard Biener <rguenther@suse.de>
2522
2523 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2524 loop-closed PHIs that are vect_internal_def.
2525 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2526 Simplify.
2527 (vectorizable_lc_phi): New.
2528 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2529 (vect_transform_stmt): Likewise.
2530 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2531 (vectorizable_lc_phi): Declare.
2532
2533 2019-09-26 Richard Biener <rguenther@suse.de>
2534
2535 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2536 vectorizable_reduction for vect_double_reduction_def.
2537 (vect_transform_loop): Likewise.
2538 (vect_create_epilog_for_reduction): Move double-reduction
2539 PHI creation and preheader argument setting of PHIs ...
2540 (vectorizable_reduction): ... here. Also process
2541 vect_double_reduction_def PHIs, creating the vectorized
2542 PHI nodes, remembering the scalar adjustment computed for
2543 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2544 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2545 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2546 Initialize STMT_VINFO_REDUC_CODE.
2547 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2548 (_stmt_vec_info::reduc_code): Likewise.
2549 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2550 (STMT_VINFO_REDUC_CODE): Likewise.
2551
2552 2019-09-26 Matt Turner <mattst88@gmail.com>
2553
2554 PR driver/69471
2555 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2556 (mtune=): Add Negative(mtune=).
2557 (mcpu=): Add Negative(mcpu=).
2558 * config/arm/arm.opt: Likewise.
2559
2560 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2561
2562 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2563 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2564 Define.
2565 * config/arm/arm_acle.h: Define builtins for the above.
2566 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2567 (simd32_op): Handle the above.
2568 * config/arm/unspecs.md: Define unspecs for the above.
2569
2570 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2571
2572 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2573 (arm_<sup>xtb16): Likewise.
2574 (arm_usada8): Likewise.
2575 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2576 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2577 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2578 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2579 __sxtb16, __uxtab16, __uxtb16): Define.
2580 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2581 * config/arm/unspecs.md: Define unspecs for the above.
2582 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2583 (USXTB16): Likewise.
2584 (simd32_op): New int_attribute.
2585 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2586 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2587
2588 2019-09-26 Martin Jambor <mjambor@suse.cz>
2589
2590 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2591 internal_error.
2592
2593 2019-09-26 Martin Jambor <mjambor@suse.cz>
2594
2595 * ipa-sra.c (process_scan_results): Fix continue condition.
2596
2597 2019-09-26 Martin Liska <mliska@suse.cz>
2598
2599 PR tree-optimization/91885
2600 * tree-vectorizer.c (try_vectorize_loop_1): Add
2601 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2602
2603 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2604
2605 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2606 aarch64_plus_immediate rather than aarch64_uimm12_shift
2607 to test for valid PLUS immediates.
2608
2609 2019-09-25 Martin Jambor <mjambor@suse.cz>
2610
2611 * tree-sra.c (no_accesses_p): Remove.
2612 (no_accesses_representant): Likewise.
2613
2614 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2615
2616 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2617 consistenly.
2618 (vaba_s16): Likewise.
2619 (vaba_s32): Likewise.
2620 (vaba_u8): Likewise.
2621 (vaba_u16): Likewise.
2622 (vaba_u32): Likewise.
2623 (vabal_high_s8): Likewise.
2624 (vabal_high_s16): Likewise.
2625 (vabal_high_s32): Likewise.
2626 (vabal_high_u8): Likewise.
2627 (vabal_high_u16): Likewise.
2628 (vabal_high_u32): Likewise.
2629 (vabal_s8): Likewise.
2630 (vabal_s16): Likewise.
2631 (vabal_s32): Likewise.
2632 (vabal_u8): Likewise.
2633 (vabal_u16): Likewise.
2634 (vabal_u32): Likewise.
2635 (vabaq_s8): Likewise.
2636 (vabaq_s16): Likewise.
2637 (vabaq_s32): Likewise.
2638 (vabaq_u8): Likewise.
2639 (vabaq_u16): Likewise.
2640 (vabaq_u32): Likewise.
2641 (vabd_s8): Likewise.
2642 (vabd_s16): Likewise.
2643 (vabd_s32): Likewise.
2644 (vabd_u8): Likewise.
2645 (vabd_u16): Likewise.
2646 (vabd_u32): Likewise.
2647 (vabdl_high_s8): Likewise.
2648 (vabdl_high_s16): Likewise.
2649 (vabdl_high_s32): Likewise.
2650 (vabdl_high_u8): Likewise.
2651 (vabdl_high_u16): Likewise.
2652 (vabdl_high_u32): Likewise.
2653 (vabdl_s8): Likewise.
2654 (vabdl_s16): Likewise.
2655 (vabdl_s32): Likewise.
2656 (vabdl_u8): Likewise.
2657 (vabdl_u16): Likewise.
2658 (vabdl_u32): Likewise.
2659 (vabdq_s8): Likewise.
2660 (vabdq_s16): Likewise.
2661 (vabdq_s32): Likewise.
2662 (vabdq_u8): Likewise.
2663 (vabdq_u16): Likewise.
2664 (vabdq_u32): Likewise.
2665 (vaddlv_s8): Likewise.
2666 (vaddlv_s16): Likewise.
2667 (vaddlv_u8): Likewise.
2668 (vaddlv_u16): Likewise.
2669 (vaddlvq_s8): Likewise.
2670 (vaddlvq_s16): Likewise.
2671 (vaddlvq_s32): Likewise.
2672 (vaddlvq_u8): Likewise.
2673 (vaddlvq_u16): Likewise.
2674 (vaddlvq_u32): Likewise.
2675 (vcvtx_f32_f64): Likewise.
2676 (vcvtx_high_f32_f64): Likewise.
2677 (vcvtxd_f32_f64): Likewise.
2678 (vmla_n_f32): Likewise.
2679 (vmla_n_s16): Likewise.
2680 (vmla_n_s32): Likewise.
2681 (vmla_n_u16): Likewise.
2682 (vmla_n_u32): Likewise.
2683 (vmla_s8): Likewise.
2684 (vmla_s16): Likewise.
2685 (vmla_s32): Likewise.
2686 (vmla_u8): Likewise.
2687 (vmla_u16): Likewise.
2688 (vmla_u32): Likewise.
2689 (vmlal_high_n_s16): Likewise.
2690 (vmlal_high_n_s32): Likewise.
2691 (vmlal_high_n_u16): Likewise.
2692 (vmlal_high_n_u32): Likewise.
2693 (vmlal_high_s8): Likewise.
2694 (vmlal_high_s16): Likewise.
2695 (vmlal_high_s32): Likewise.
2696 (vmlal_high_u8): Likewise.
2697 (vmlal_high_u16): Likewise.
2698 (vmlal_high_u32): Likewise.
2699 (vmlal_n_s16): Likewise.
2700 (vmlal_n_s32): Likewise.
2701 (vmlal_n_u16): Likewise.
2702 (vmlal_n_u32): Likewise.
2703 (vmlal_s8): Likewise.
2704 (vmlal_s16): Likewise.
2705 (vmlal_s32): Likewise.
2706 (vmlal_u8): Likewise.
2707 (vmlal_u16): Likewise.
2708 (vmlal_u32): Likewise.
2709 (vmlaq_n_f32): Likewise.
2710 (vmlaq_n_s16): Likewise.
2711 (vmlaq_n_s32): Likewise.
2712 (vmlaq_n_u16): Likewise.
2713 (vmlaq_n_u32): Likewise.
2714 (vmlaq_s8): Likewise.
2715 (vmlaq_s16): Likewise.
2716 (vmlaq_s32): Likewise.
2717 (vmlaq_u8): Likewise.
2718 (vmlaq_u16): Likewise.
2719 (vmlaq_u32): Likewise.
2720 (vmls_n_f32): Likewise.
2721 (vmls_n_s16): Likewise.
2722 (vmls_n_s32): Likewise.
2723 (vmls_n_u16): Likewise.
2724 (vmls_n_u32): Likewise.
2725 (vmls_s8): Likewise.
2726 (vmls_s16): Likewise.
2727 (vmls_s32): Likewise.
2728 (vmls_u8): Likewise.
2729 (vmls_u16): Likewise.
2730 (vmls_u32): Likewise.
2731 (vmlsl_high_n_s16): Likewise.
2732 (vmlsl_high_n_s32): Likewise.
2733 (vmlsl_high_n_u16): Likewise.
2734 (vmlsl_high_n_u32): Likewise.
2735 (vmlsl_high_s8): Likewise.
2736 (vmlsl_high_s16): Likewise.
2737 (vmlsl_high_s32): Likewise.
2738 (vmlsl_high_u8): Likewise.
2739 (vmlsl_high_u16): Likewise.
2740 (vmlsl_high_u32): Likewise.
2741 (vmlsl_n_s16): Likewise.
2742 (vmlsl_n_s32): Likewise.
2743 (vmlsl_n_u16): Likewise.
2744 (vmlsl_n_u32): Likewise.
2745 (vmlsl_s8): Likewise.
2746 (vmlsl_s16): Likewise.
2747 (vmlsl_s32): Likewise.
2748 (vmlsl_u8): Likewise.
2749 (vmlsl_u16): Likewise.
2750 (vmlsl_u32): Likewise.
2751 (vmlsq_n_f32): Likewise.
2752 (vmlsq_n_s16): Likewise.
2753 (vmlsq_n_s32): Likewise.
2754 (vmlsq_n_u16): Likewise.
2755 (vmlsq_n_u32): Likewise.
2756 (vmlsq_s8): Likewise.
2757 (vmlsq_s16): Likewise.
2758 (vmlsq_s32): Likewise.
2759 (vmlsq_u8): Likewise.
2760 (vmlsq_u16): Likewise.
2761 (vmlsq_u32): Likewise.
2762 (vmovl_high_s8): Likewise.
2763 (vmovl_high_s16): Likewise.
2764 (vmovl_high_s32): Likewise.
2765 (vmovl_high_u8): Likewise.
2766 (vmovl_high_u16): Likewise.
2767 (vmovl_high_u32): Likewise.
2768 (vmovl_s8): Likewise.
2769 (vmovl_s16): Likewise.
2770 (vmovl_s32): Likewise.
2771 (vmovl_u8): Likewise.
2772 (vmovl_u16): Likewise.
2773 (vmovl_u32): Likewise.
2774 (vmovn_high_s16): Likewise.
2775 (vmovn_high_s32): Likewise.
2776 (vmovn_high_s64): Likewise.
2777 (vmovn_high_u16): Likewise.
2778 (vmovn_high_u32): Likewise.
2779 (vmovn_high_u64): Likewise.
2780 (vmovn_s16): Likewise.
2781 (vmovn_s32): Likewise.
2782 (vmovn_s64): Likewise.
2783 (vmovn_u16): Likewise.
2784 (vmovn_u32): Likewise.
2785 (vmovn_u64): Likewise.
2786 (vmull_high_n_s16): Likewise.
2787 (vmull_high_n_s32): Likewise.
2788 (vmull_high_n_u16): Likewise.
2789 (vmull_high_n_u32): Likewise.
2790 (vmull_high_p8): Likewise.
2791 (vmull_high_s8): Likewise.
2792 (vmull_high_s16): Likewise.
2793 (vmull_high_s32): Likewise.
2794 (vmull_high_u8): Likewise.
2795 (vmull_high_u16): Likewise.
2796 (vmull_high_u32): Likewise.
2797 (vmull_n_s16): Likewise.
2798 (vmull_n_s32): Likewise.
2799 (vmull_n_u16): Likewise.
2800 (vmull_n_u32): Likewise.
2801 (vmull_p8): Likewise.
2802 (vmull_s8): Likewise.
2803 (vmull_s16): Likewise.
2804 (vmull_s32): Likewise.
2805 (vmull_u8): Likewise.
2806 (vmull_u16): Likewise.
2807 (vmull_u32): Likewise.
2808 (vpadal_s8): Likewise.
2809 (vpadal_s16): Likewise.
2810 (vpadal_s32): Likewise.
2811 (vpadal_u8): Likewise.
2812 (vpadal_u16): Likewise.
2813 (vpadal_u32): Likewise.
2814 (vpadalq_s8): Likewise.
2815 (vpadalq_s16): Likewise.
2816 (vpadalq_s32): Likewise.
2817 (vpadalq_u8): Likewise.
2818 (vpadalq_u16): Likewise.
2819 (vpadalq_u32): Likewise.
2820 (vpaddl_s8): Likewise.
2821 (vpaddl_s16): Likewise.
2822 (vpaddl_s32): Likewise.
2823 (vpaddl_u8): Likewise.
2824 (vpaddl_u16): Likewise.
2825 (vpaddl_u32): Likewise.
2826 (vpaddlq_s8): Likewise.
2827 (vpaddlq_s16): Likewise.
2828 (vpaddlq_s32): Likewise.
2829 (vpaddlq_u8): Likewise.
2830 (vpaddlq_u16): Likewise.
2831 (vpaddlq_u32): Likewise.
2832 (vpaddq_s8): Likewise.
2833 (vpaddq_s16): Likewise.
2834 (vpaddq_s32): Likewise.
2835 (vpaddq_s64): Likewise.
2836 (vpaddq_u8): Likewise.
2837 (vpaddq_u16): Likewise.
2838 (vpaddq_u32): Likewise.
2839 (vpaddq_u64): Likewise.
2840 (vqdmulh_n_s16): Likewise.
2841 (vqdmulh_n_s32): Likewise.
2842 (vqdmulhq_n_s16): Likewise.
2843 (vqdmulhq_n_s32): Likewise.
2844 (vqmovn_high_s16): Likewise.
2845 (vqmovn_high_s32): Likewise.
2846 (vqmovn_high_s64): Likewise.
2847 (vqmovn_high_u16): Likewise.
2848 (vqmovn_high_u32): Likewise.
2849 (vqmovn_high_u64): Likewise.
2850 (vqmovun_high_s16): Likewise.
2851 (vqmovun_high_s32): Likewise.
2852 (vqmovun_high_s64): Likewise.
2853 (vqrdmulh_n_s16): Likewise.
2854 (vqrdmulh_n_s32): Likewise.
2855 (vqrdmulhq_n_s16): Likewise.
2856 (vqrdmulhq_n_s32): Likewise.
2857 (vrsqrte_u32): Likewise.
2858 (vrsqrteq_u32): Likewise.
2859 (vtst_p8): Likewise.
2860 (vtst_p16): Likewise.
2861 (vtst_p64): Likewise.
2862 (vtstq_p8): Likewise.
2863 (vtstq_p16): Likewise.
2864 (vtstq_p64): Likewise.
2865 (vaddlv_s32): Likewise.
2866 (vaddlv_u32): Likewise.
2867 (vqtbl1_p8): Likewise.
2868 (vqtbl1_s8): Likewise.
2869 (vqtbl1_u8): Likewise.
2870 (vqtbl1q_p8): Likewise.
2871 (vqtbl1q_s8): Likewise.
2872 (vqtbl1q_u8): Likewise.
2873 (vqtbx1_s8): Likewise.
2874 (vqtbx1_u8): Likewise.
2875 (vqtbx1_p8): Likewise.
2876 (vqtbx1q_s8): Likewise.
2877 (vqtbx1q_u8): Likewise.
2878 (vqtbx1q_p8): Likewise.
2879 (vtbl1_s8): Likewise.
2880 (vtbl1_u8): Likewise.
2881 (vtbl1_p8): Likewise.
2882 (vtbl2_s8): Likewise.
2883 (vtbl2_u8): Likewise.
2884 (vtbl2_p8): Likewise.
2885 (vtbl3_s8): Likewise.
2886 (vtbl3_u8): Likewise.
2887 (vtbl3_p8): Likewise.
2888 (vtbl4_s8): Likewise.
2889 (vtbl4_u8): Likewise.
2890 (vtbl4_p8): Likewise.
2891 (vtbx2_s8): Likewise.
2892 (vtbx2_u8): Likewise.
2893 (vtbx2_p8): Likewise.
2894 (vld1_f32): Likewise.
2895 (vld1_f64): Likewise.
2896 (vld1_p8): Likewise.
2897 (vld1_p16): Likewise.
2898 (vld1_p64): Likewise.
2899 (vld1_s8): Likewise.
2900 (vld1_s16): Likewise.
2901 (vld1_s32): Likewise.
2902 (vld1_s64): Likewise.
2903 (vld1_u8): Likewise.
2904 (vld1_u16): Likewise.
2905 (vld1_u32): Likewise.
2906 (vld1_u64): Likewise.
2907 (vld1q_f32): Likewise.
2908 (vld1q_f64): Likewise.
2909 (vld1q_p8): Likewise.
2910 (vld1q_p16): Likewise.
2911 (vld1q_p64): Likewise.
2912 (vld1q_s8): Likewise.
2913 (vld1q_s16): Likewise.
2914 (vld1q_s32): Likewise.
2915 (vld1q_s64): Likewise.
2916 (vld1q_u8): Likewise.
2917 (vld1q_u16): Likewise.
2918 (vld1q_u32): Likewise.
2919 (vld1q_u64): Likewise.
2920 (vpmax_s8): Likewise.
2921 (vpmax_s16): Likewise.
2922 (vpmax_s32): Likewise.
2923 (vpmax_u8): Likewise.
2924 (vpmax_u16): Likewise.
2925 (vpmax_u32): Likewise.
2926 (vpmaxq_s8): Likewise.
2927 (vpmaxq_s16): Likewise.
2928 (vpmaxq_s32): Likewise.
2929 (vpmaxq_u8): Likewise.
2930 (vpmaxq_u16): Likewise.
2931 (vpmaxq_u32): Likewise.
2932 (vpmax_f32): Likewise.
2933 (vpmaxq_f32): Likewise.
2934 (vpmaxq_f64): Likewise.
2935 (vpmaxqd_f64): Likewise.
2936 (vpmaxs_f32): Likewise.
2937 (vpmaxnm_f32): Likewise.
2938 (vpmaxnmq_f32): Likewise.
2939 (vpmaxnmq_f64): Likewise.
2940 (vpmaxnmqd_f64): Likewise.
2941 (vpmaxnms_f32): Likewise.
2942 (vpmin_s8): Likewise.
2943 (vpmin_s16): Likewise.
2944 (vpmin_s32): Likewise.
2945 (vpmin_u8): Likewise.
2946 (vpmin_u16): Likewise.
2947 (vpmin_u32): Likewise.
2948 (vpminq_s8): Likewise.
2949 (vpminq_s16): Likewise.
2950 (vpminq_s32): Likewise.
2951 (vpminq_u8): Likewise.
2952 (vpminq_u16): Likewise.
2953 (vpminq_u32): Likewise.
2954 (vpmin_f32): Likewise.
2955 (vpminq_f32): Likewise.
2956 (vpminq_f64): Likewise.
2957 (vpminqd_f64): Likewise.
2958 (vpmins_f32): Likewise.
2959 (vpminnm_f32): Likewise.
2960 (vpminnmq_f32): Likewise.
2961 (vpminnmq_f64): Likewise.
2962 (vpminnmqd_f64): Likewise.
2963 (vpminnms_f32): Likewise.
2964 (vmla_f32): Likewise.
2965 (vmlaq_f32): Likewise.
2966 (vmlaq_f64): Likewise.
2967 (vmls_f32): Likewise.
2968 (vmlsq_f32): Likewise.
2969 (vmlsq_f64): Likewise.
2970 (vqtbl2_s8): Likewise.
2971 (vqtbl2_u8): Likewise.
2972 (vqtbl2_p8): Likewise.
2973 (vqtbl2q_s8): Likewise.
2974 (vqtbl2q_u8): Likewise.
2975 (vqtbl2q_p8): Likewise.
2976 (vqtbl3_s8): Likewise.
2977 (vqtbl3_u8): Likewise.
2978 (vqtbl3_p8): Likewise.
2979 (vqtbl3q_s8): Likewise.
2980 (vqtbl3q_u8): Likewise.
2981 (vqtbl3q_p8): Likewise.
2982 (vqtbl4_s8): Likewise.
2983 (vqtbl4_u8): Likewise.
2984 (vqtbl4_p8): Likewise.
2985 (vqtbl4q_s8): Likewise.
2986 (vqtbl4q_u8): Likewise.
2987 (vqtbl4q_p8): Likewise.
2988 (vqtbx2_s8): Likewise.
2989 (vqtbx2_u8): Likewise.
2990 (vqtbx2_p8): Likewise.
2991 (vqtbx2q_s8): Likewise.
2992 (vqtbx2q_u8): Likewise.
2993 (vqtbx2q_p8): Likewise.
2994 (vqtbx3_s8): Likewise.
2995 (vqtbx3_u8): Likewise.
2996 (vqtbx3_p8): Likewise.
2997 (vqtbx3q_s8): Likewise.
2998 (vqtbx3q_u8): Likewise.
2999 (vqtbx3q_p8): Likewise.
3000 (vqtbx4_s8): Likewise.
3001 (vqtbx4_u8): Likewise.
3002 (vqtbx4_p8): Likewise.
3003 (vqtbx4q_s8): Likewise.
3004 (vqtbx4q_u8): Likewise.
3005 (vqtbx4q_p8): Likewise.
3006 (vrev16_p8): Likewise.
3007 (vrev16_s8): Likewise.
3008 (vrev16_u8): Likewise.
3009 (vrev16q_p8): Likewise.
3010 (vrev16q_s8): Likewise.
3011 (vrev16q_u8): Likewise.
3012 (vrev32_p8): Likewise.
3013 (vrev32_p16): Likewise.
3014 (vrev32_s8): Likewise.
3015 (vrev32_s16): Likewise.
3016 (vrev32_u8): Likewise.
3017 (vrev32_u16): Likewise.
3018 (vrev32q_p8): Likewise.
3019 (vrev32q_p16): Likewise.
3020 (vrev32q_s8): Likewise.
3021 (vrev32q_s16): Likewise.
3022 (vrev32q_u8): Likewise.
3023 (vrev32q_u16): Likewise.
3024 (vrev64_f32): Likewise.
3025 (vrev64_p8): Likewise.
3026 (vrev64_p16): Likewise.
3027 (vrev64_s8): Likewise.
3028 (vrev64_s16): Likewise.
3029 (vrev64_s32): Likewise.
3030 (vrev64_u8): Likewise.
3031 (vrev64_u16): Likewise.
3032 (vrev64_u32): Likewise.
3033 (vrev64q_f32): Likewise.
3034 (vrev64q_p8): Likewise.
3035 (vrev64q_p16): Likewise.
3036 (vrev64q_s8): Likewise.
3037 (vrev64q_s16): Likewise.
3038 (vrev64q_s32): Likewise.
3039 (vrev64q_u8): Likewise.
3040 (vrev64q_u16): Likewise.
3041 (vrev64q_u32): Likewise.
3042 (vsha1cq_u32): Likewise.
3043 (vsha1mq_u32): Likewise.
3044 (vsha1pq_u32): Likewise.
3045 (vsha1h_u32): Likewise.
3046 (vsha1su0q_u32): Likewise.
3047 (vsha1su1q_u32): Likewise.
3048 (vsha256hq_u32): Likewise.
3049 (vsha256h2q_u32): Likewise.
3050 (vsha256su0q_u32): Likewise.
3051 (vsha256su1q_u32): Likewise.
3052 (vmull_p64): Likewise.
3053 (vmull_high_p64): Likewise.
3054 (vsqrt_f32): Likewise.
3055 (vsqrtq_f32): Likewise.
3056 (vsqrt_f64): Likewise.
3057 (vsqrtq_f64): Likewise.
3058 (vst1_f32): Likewise.
3059 (vst1_f64): Likewise.
3060 (vst1_p8): Likewise.
3061 (vst1_p16): Likewise.
3062 (vst1_p64): Likewise.
3063 (vst1_s8): Likewise.
3064 (vst1_s16): Likewise.
3065 (vst1_s32): Likewise.
3066 (vst1_s64): Likewise.
3067 (vst1_u8): Likewise.
3068 (vst1_u16): Likewise.
3069 (vst1_u32): Likewise.
3070 (vst1_u64): Likewise.
3071 (vst1q_f32): Likewise.
3072 (vst1q_f64): Likewise.
3073 (vst1q_p8): Likewise.
3074 (vst1q_p16): Likewise.
3075 (vst1q_p64): Likewise.
3076 (vst1q_s8): Likewise.
3077 (vst1q_s16): Likewise.
3078 (vst1q_s32): Likewise.
3079 (vst1q_s64): Likewise.
3080 (vst1q_u8): Likewise.
3081 (vst1q_u16): Likewise.
3082 (vst1q_u32): Likewise.
3083 (vst1q_u64): Likewise.
3084 (vst1_s64_x2): Likewise.
3085 (vst1_u64_x2): Likewise.
3086 (vst1_f64_x2): Likewise.
3087 (vst1_s8_x2): Likewise.
3088 (vst1_p8_x2): Likewise.
3089 (vst1_s16_x2): Likewise.
3090 (vst1_p16_x2): Likewise.
3091 (vst1_s32_x2): Likewise.
3092 (vst1_u8_x2): Likewise.
3093 (vst1_u16_x2): Likewise.
3094 (vst1_u32_x2): Likewise.
3095 (vst1_f16_x2): Likewise.
3096 (vst1_f32_x2): Likewise.
3097 (vst1_p64_x2): Likewise.
3098 (vst1q_s8_x2): Likewise.
3099 (vst1q_p8_x2): Likewise.
3100 (vst1q_s16_x2): Likewise.
3101 (vst1q_p16_x2): Likewise.
3102 (vst1q_s32_x2): Likewise.
3103 (vst1q_s64_x2): Likewise.
3104 (vst1q_u8_x2): Likewise.
3105 (vst1q_u16_x2): Likewise.
3106 (vst1q_u32_x2): Likewise.
3107 (vst1q_u64_x2): Likewise.
3108 (vst1q_f16_x2): Likewise.
3109 (vst1q_f32_x2): Likewise.
3110 (vst1q_f64_x2): Likewise.
3111 (vst1q_p64_x2): Likewise.
3112 (vst1_s64_x3): Likewise.
3113 (vst1_u64_x3): Likewise.
3114 (vst1_f64_x3): Likewise.
3115 (vst1_s8_x3): Likewise.
3116 (vst1_p8_x3): Likewise.
3117 (vst1_s16_x3): Likewise.
3118 (vst1_p16_x3): Likewise.
3119 (vst1_s32_x3): Likewise.
3120 (vst1_u8_x3): Likewise.
3121 (vst1_u16_x3): Likewise.
3122 (vst1_u32_x3): Likewise.
3123 (vst1_f16_x3): Likewise.
3124 (vst1_f32_x3): Likewise.
3125 (vst1_p64_x3): Likewise.
3126 (vst1q_s8_x3): Likewise.
3127 (vst1q_p8_x3): Likewise.
3128 (vst1q_s16_x3): Likewise.
3129 (vst1q_p16_x3): Likewise.
3130 (vst1q_s32_x3): Likewise.
3131 (vst1q_s64_x3): Likewise.
3132 (vst1q_u8_x3): Likewise.
3133 (vst1q_u16_x3): Likewise.
3134 (vst1q_u32_x3): Likewise.
3135 (vst1q_u64_x3): Likewise.
3136 (vst1q_f16_x3): Likewise.
3137 (vst1q_f32_x3): Likewise.
3138 (vst1q_f64_x3): Likewise.
3139 (vst1q_p64_x3): Likewise.
3140 (vst2_s64): Likewise.
3141 (vst2_u64): Likewise.
3142 (vst2_f64): Likewise.
3143 (vst2_s8): Likewise.
3144 (vst2_p8): Likewise.
3145 (vst2_s16): Likewise.
3146 (vst2_p16): Likewise.
3147 (vst2_s32): Likewise.
3148 (vst2_u8): Likewise.
3149 (vst2_u16): Likewise.
3150 (vst2_u32): Likewise.
3151 (vst2_f16): Likewise.
3152 (vst2_f32): Likewise.
3153 (vst2_p64): Likewise.
3154 (vst2q_s8): Likewise.
3155 (vst2q_p8): Likewise.
3156 (vst2q_s16): Likewise.
3157 (vst2q_p16): Likewise.
3158 (vst2q_s32): Likewise.
3159 (vst2q_s64): Likewise.
3160 (vst2q_u8): Likewise.
3161 (vst2q_u16): Likewise.
3162 (vst2q_u32): Likewise.
3163 (vst2q_u64): Likewise.
3164 (vst2q_f16): Likewise.
3165 (vst2q_f32): Likewise.
3166 (vst2q_f64): Likewise.
3167 (vst2q_p64): Likewise.
3168 (vst3_s64): Likewise.
3169 (vst3_u64): Likewise.
3170 (vst3_f64): Likewise.
3171 (vst3_s8): Likewise.
3172 (vst3_p8): Likewise.
3173 (vst3_s16): Likewise.
3174 (vst3_p16): Likewise.
3175 (vst3_s32): Likewise.
3176 (vst3_u8): Likewise.
3177 (vst3_u16): Likewise.
3178 (vst3_u32): Likewise.
3179 (vst3_f16): Likewise.
3180 (vst3_f32): Likewise.
3181 (vst3_p64): Likewise.
3182 (vst3q_s8): Likewise.
3183 (vst3q_p8): Likewise.
3184 (vst3q_s16): Likewise.
3185 (vst3q_p16): Likewise.
3186 (vst3q_s32): Likewise.
3187 (vst3q_s64): Likewise.
3188 (vst3q_u8): Likewise.
3189 (vst3q_u16): Likewise.
3190 (vst3q_u32): Likewise.
3191 (vst3q_u64): Likewise.
3192 (vst3q_f16): Likewise.
3193 (vst3q_f32): Likewise.
3194 (vst3q_f64): Likewise.
3195 (vst3q_p64): Likewise.
3196 (vst4_s64): Likewise.
3197 (vst4_u64): Likewise.
3198 (vst4_f64): Likewise.
3199 (vst4_s8): Likewise.
3200 (vst4_p8): Likewise.
3201 (vst4_s16): Likewise.
3202 (vst4_p16): Likewise.
3203 (vst4_s32): Likewise.
3204 (vst4_u8): Likewise.
3205 (vst4_u16): Likewise.
3206 (vst4_u32): Likewise.
3207 (vst4_f16): Likewise.
3208 (vst4_f32): Likewise.
3209 (vst4_p64): Likewise.
3210 (vst4q_s8): Likewise.
3211 (vst4q_p8): Likewise.
3212 (vst4q_s16): Likewise.
3213 (vst4q_p16): Likewise.
3214 (vst4q_s32): Likewise.
3215 (vst4q_s64): Likewise.
3216 (vst4q_u8): Likewise.
3217 (vst4q_u16): Likewise.
3218 (vst4q_u32): Likewise.
3219 (vst4q_u64): Likewise.
3220 (vst4q_f16): Likewise.
3221 (vst4q_f32): Likewise.
3222 (vst4q_f64): Likewise.
3223 (vst4q_p64): Likewise.
3224 (vtbx4_s8): Likewise.
3225 (vtbx4_u8): Likewise.
3226 (vtbx4_p8): Likewise.
3227 (vtrn_f32): Likewise.
3228 (vtrn_p8): Likewise.
3229 (vtrn_p16): Likewise.
3230 (vtrn_s8): Likewise.
3231 (vtrn_s16): Likewise.
3232 (vtrn_s32): Likewise.
3233 (vtrn_u8): Likewise.
3234 (vtrn_u16): Likewise.
3235 (vtrn_u32): Likewise.
3236 (vtrnq_f32): Likewise.
3237 (vtrnq_p8): Likewise.
3238 (vtrnq_p16): Likewise.
3239 (vtrnq_s8): Likewise.
3240 (vtrnq_s16): Likewise.
3241 (vtrnq_s32): Likewise.
3242 (vtrnq_u8): Likewise.
3243 (vtrnq_u16): Likewise.
3244 (vtrnq_u32): Likewise.
3245 (vrsqrte_f16): Likewise.
3246 (vrsqrteq_f16): Likewise.
3247 (vsqrt_f16): Likewise.
3248 (vsqrtq_f16): Likewise.
3249 (vabd_f16): Likewise.
3250 (vabdq_f16): Likewise.
3251 (vpadd_f16): Likewise.
3252 (vpaddq_f16): Likewise.
3253 (vpmax_f16): Likewise.
3254 (vpmaxq_f16): Likewise.
3255 (vpmaxnm_f16): Likewise.
3256 (vpmaxnmq_f16): Likewise.
3257 (vpmin_f16): Likewise.
3258 (vpminq_f16): Likewise.
3259 (vpminnm_f16): Likewise.
3260 (vpminnmq_f16): Likewise.
3261 (vrsqrts_f16): Likewise.
3262 (vrsqrtsq_f16): Likewise.
3263
3264 2019-09-25 Richard Biener <rguenther@suse.de>
3265
3266 PR tree-optimization/91896
3267 * tree-vect-loop.c (vectorizable_reduction): The single
3268 def-use cycle optimization cannot apply when there's more
3269 than one pattern stmt involved.
3270
3271 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3272
3273 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3274 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3275 (reload_macho_picbase_<mode>): Likewise.
3276
3277 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3278
3279 * config/rs6000/rs6000.md: Move darwin.md include until
3280 after the definition of the mode iterators.
3281
3282 2019-09-23 Martin Sebor <msebor@redhat.com>
3283
3284 PR tree-optimization/91570
3285 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3286 non-constant minlen, maxlen and maxbound.
3287
3288 2019-09-24 Richard Biener <rguenther@suse.de>
3289
3290 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3291 Rename to...
3292 (_stmt_vec_info::cond_reduc_code): ... this.
3293 (_stmt_vec_info::induc_cond_initial_val): Add.
3294 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3295 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3296 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3297 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3298 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3299 the reduction code.
3300 (vect_create_epilog_for_reduction): Drop special
3301 induction condition reduction params, pass in reduction code
3302 and simplify.
3303 (vectorizable_reduction): Perform condition reduction kind
3304 selection only at analysis time. Adjust passing on state.
3305
3306 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3307
3308 * config/aarch64/aarch64.md (mov<mode>): Don't call
3309 aarch64_split_dimode_const_store on volatile MEM.
3310
3311 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3312
3313 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3314 Update hwcap string for fp16fml.
3315
3316 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3317
3318 PR middle-end/91866
3319 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3320 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3321
3322 2019-09-24 Martin Liska <mliska@suse.cz>
3323
3324 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3325 instead of if-elseif-elseif-...
3326 * gimple-expr.c (extract_ops_from_tree): Likewise.
3327 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3328 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3329
3330 2019-09-24 Martin Jambor <mjambor@suse.cz>
3331
3332 PR ipa/91831
3333 * ipa-param-manipulation.c (carry_over_param): Make a method of
3334 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3335 in case of a context mismatch.
3336 (ipa_param_body_adjustments::common_initialization): Adjust call to
3337 carry_over_param.
3338 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3339 private method carry_over_param.
3340
3341 2019-09-24 Martin Jambor <mjambor@suse.cz>
3342
3343 PR ipa/91832
3344 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3345
3346 2019-09-24 Richard Biener <rguenther@suse.de>
3347
3348 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3349 base.
3350
3351 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3352
3353 * config/arm/t-arm (arm-builtins.o): Add dependency on
3354 arm_acle_builtins.def.
3355
3356 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3357
3358 PR target/91823
3359 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3360 canonical CONST_INTs. Use gen_rtvec.
3361
3362 2019-09-23 Richard Biener <rguenther@suse.de>
3363
3364 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3365 avoid adjusting by + 0 or * 1.
3366 (vect_create_epilog_for_reduction): Get reduction code only
3367 when necessary. Deal with adjustment_def only when necessary.
3368
3369 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3370
3371 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3372 memmodel index.
3373
3374 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3375
3376 PR ipa/91835
3377 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3378 "ipa-sra".
3379
3380 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3381
3382 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3383 code. Merge code blocks with common conditionals. Use declared
3384 macro instead of a magic number for PIC level.
3385
3386 2019-09-21 Martin Sebor <msebor@redhat.com>
3387
3388 PR middle-end/91830
3389 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3390 Simplify computation of the offset of the referenced subobject.
3391
3392 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3393
3394 * config/darwin.c (machopic_legitimize_pic_address): Check
3395 for lra not reload.
3396
3397 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3398
3399 * ira-conflicts.c (can_use_same_reg_p): New function.
3400 (process_reg_shuffles): Take an insn parameter. Ignore cases
3401 in which input operand op_num could seemingly never be allocated
3402 to the same register as the destination.
3403 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3404
3405 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3406
3407 * simplify-rtx.c (neg_const_int): Replace with...
3408 (neg_poly_int_rtx): ...this new function.
3409 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3410 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3411 (simplify_plus_minus): Likewise for constant terms here.
3412
3413 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3414
3415 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3416 HOST_WIDE_PRINT_UNSIGNED.
3417
3418 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3419
3420 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3421 character.
3422
3423 2019-09-20 Maya Rashish <coypu@sdf.org>
3424
3425 PR target/86811
3426 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3427 Define to speculation_safe_value_not_needed.
3428
3429 2019-09-20 Richard Biener <rguenther@suse.de>
3430 Uros Bizjak <ubizjak@gmail.com>
3431
3432 PR target/91814
3433 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3434 previous change.
3435 (general_scalar_chain::convert_op): Force not suitable memory
3436 operands to a register.
3437
3438 2019-09-20 Richard Biener <rguenther@suse.de>
3439
3440 PR tree-optimization/91821
3441 * tree-vect-loop.c (check_reduction_path): Check we can compute
3442 reduc_idx.
3443 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3444 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3445 operands in canonical order.
3446 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3447 STMT_VINFO_REDUC_IDX.
3448 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3449 (STMT_VINFO_REDUC_IDX): Likewise.
3450
3451 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3452
3453 PR target/91269
3454 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3455
3456 2019-09-20 Richard Biener <rguenther@suse.de>
3457
3458 PR tree-optimization/91822
3459 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3460 parameter.
3461 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3462 for reduc_index in nested cycles, adjust vectorizable_condition
3463 calls.
3464 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3465 parameter.
3466 (vect_analyze_stmt): Adjust.
3467 (vect_transform_stmt): Likewise.
3468
3469 2019-09-20 Richard Biener <rguenther@suse.de>
3470
3471 PR target/91767
3472 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3473 Ensure there's a sequence point between allocating the new register
3474 and passing a reference to a reg via regno_reg_rtx.
3475
3476 2019-09-20 Martin Jambor <mjambor@suse.cz>
3477
3478 * coretypes.h (cgraph_edge): Declare.
3479 * ipa-param-manipulation.c: Rewrite.
3480 * ipa-param-manipulation.h: Likewise.
3481 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3482 (OBJS): Added ipa-sra.o.
3483 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3484 and ref_p, added fields param_adjustments and performed_splits.
3485 (struct cgraph_clone_info): Remove ags_to_skip and
3486 combined_args_to_skip, new field param_adjustments.
3487 (cgraph_node::create_clone): Changed parameters to use
3488 ipa_param_adjustments.
3489 (cgraph_node::create_virtual_clone): Likewise.
3490 (cgraph_node::create_virtual_clone_with_body): Likewise.
3491 (tree_function_versioning): Likewise.
3492 (cgraph_build_function_type_skip_args): Removed.
3493 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3494 using ipa_param_adjustments.
3495 (clone_of_p): Likewise.
3496 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3497 (build_function_decl_skip_args): Likewise.
3498 (duplicate_thunk_for_node): Adjust parameters using
3499 ipa_param_body_adjustments, copy param_adjustments instead of
3500 args_to_skip.
3501 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3502 (cgraph_node::create_virtual_clone): Likewise.
3503 (cgraph_node::create_version_clone_with_body): Likewise.
3504 (cgraph_materialize_clone): Likewise.
3505 (symbol_table::materialize_all_clones): Likewise.
3506 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3507 ipa_replace_map check.
3508 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3509 (initialize_node_lattices): Make aware that some parameters might have
3510 already been removed.
3511 (want_remove_some_param_p): New function.
3512 (create_specialized_node): Convert to using ipa_param_adjustments and
3513 deal with possibly pre-existing adjustments.
3514 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3515 (output_node_opt_summary): Do not stream removed fields. Stream
3516 parameter adjustments instead of argumetns to skip.
3517 (input_node_opt_summary): Likewise.
3518 (input_node_opt_summary): Likewise.
3519 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3520 * lto-streamer.h (lto_section_type): Likewise.
3521 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3522 param_body_adjs.
3523 (copy_decl_to_var): Declare.
3524 * tree-inline.c (update_clone_info): Do not remap old_tree.
3525 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3526 statements, walk all extra generated statements and remap their
3527 operands.
3528 (redirect_all_calls): Add killed SSA names to a hash set.
3529 (remap_ssa_name): Do not remap killed SSA names.
3530 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3531 half of functionality moved to ipa_param_body_adjustments.
3532 (copy_decl_to_var): Make exported.
3533 (copy_body): Destroy killed_new_ssa_names hash set.
3534 (expand_call_inline): Remap performed splits.
3535 (update_clone_info): Likewise.
3536 (tree_function_versioning): Simplify tree_map processing. Updated to
3537 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3538 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3539 for the new interface.
3540 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3541 (simd_clone_compute_base_data_type): Likewise.
3542 (simd_clone_init_simd_arrays): Adjust for the new interface.
3543 (simd_clone_adjust_argument_types): Likewise.
3544 (struct modify_stmt_info): Likewise.
3545 (ipa_simd_modify_stmt_ops): Likewise.
3546 (ipa_simd_modify_function_body): Likewise.
3547 (simd_clone_adjust): Likewise.
3548 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3549 (type_internals_preclude_sra_p): Make public.
3550 * tree-sra.h: New file.
3551 * ipa-inline-transform.c (save_inline_function_body): Update to
3552 refelct new tree_function_versioning signature.
3553 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3554 ipa_param_adjustments to get current parameter indices.
3555 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3556 (ipcp_update_bits): Likewise.
3557 (ipcp_update_vr): Likewise.
3558 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3559 * ipa-sra.c: New file.
3560 * multiple_target.c (create_target_clone): Update to reflet new type
3561 of create_version_clone_with_body.
3562 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3563 tree_function_versioning.
3564 (modify_function): Update to reflect new type of
3565 tree_function_versioning.
3566 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3567 * passes.def: Remove old IPA-SRA and add new one.
3568 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3569 (make_pass_ipa_sra): Declare.
3570 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3571 ipa_sra_retvalues.
3572 * doc/invoke.texi (ipa-sra-max-replacements): New.
3573
3574 2019-09-19 Martin Sebor <msebor@redhat.com>
3575
3576 PR middle-end/91631
3577 * builtins.c (component_size): Correct trailing array computation,
3578 rename to component_ref_size and move...
3579 (compute_objsize): Adjust.
3580 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3581 (builtin_access::strict): Do not consider memmove.
3582 (builtin_access::write_off): New function.
3583 (builtin_memref::builtin_memref): Initialize refsize.
3584 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3585 refsize.
3586 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3587 Handle refsize.
3588 (builtin_access::builtin_access): Initialize dstoff to destination
3589 refeence offset here instead of in maybe_diag_overlap. Adjust
3590 referencess even to unrelated objects. Adjust sizrange of bounded
3591 string functions to reflect bound. For strcat, adjust destination
3592 sizrange by that of source.
3593 (builtin_access::strcat_overlap): Adjust offsets and sizes
3594 to reflect the increase in destination sizrange above.
3595 (builtin_access::overlap): Do not set dstoff here but instead
3596 in builtin_access::builtin_access.
3597 (check_bounds_or_overlap): Use builtin_access::write_off.
3598 (maybe_diag_access_bounds): Add argument. Add informational notes.
3599 (dump_builtin_memref, dump_builtin_access): New functions.
3600 * tree.c (component_ref_size): ...to here.
3601 * tree.h (component_ref_size): Declare.
3602 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3603 nul in the size of the source string.
3604
3605 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3606
3607 PR c/67224
3608 * doc/cpp.texi: Document support for extended characters in
3609 identifiers.
3610 * doc/cppopts.texi: Likewise.
3611
3612 2019-09-19 Richard Biener <rguenther@suse.de>
3613
3614 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3615 (check_reduction_path): New overload having the path as result.
3616 (vect_is_simple_reduction): From the detected reduction
3617 path build a SLP reduction chain if possible.
3618
3619 2019-09-19 Richard Biener <rguenther@suse.de>
3620
3621 PR target/91814
3622 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3623 Force operand to a register if it isn't nonimmediate_operand.
3624
3625 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3626
3627 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3628 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3629 (logical_op): Remove code attribute.
3630 (logical_OP): Likewise.
3631
3632 2019-09-19 Martin Liska <mliska@suse.cz>
3633
3634 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3635 Use proper casting.
3636
3637 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3638
3639 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3640 registers with %R.
3641
3642 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3643 for NE comparison of TImode values.
3644 (aarch64_emit_load_exclusive): Add support for TImode.
3645 (aarch64_emit_store_exclusive): Likewise.
3646 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3647 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3648 Change iterator from ALLI to ALLI_TI.
3649 (@atomic_compare_and_swap<JUST_TI>): New.
3650 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3651 (aarch64_load_exclusive_pair): New.
3652 (aarch64_store_exclusive_pair): New.
3653 * config/aarch64/iterators.md (JUST_TI): New.
3654
3655 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3656 strong_zero_p for aarch64_track_speculation; unify some code paths;
3657 use aarch64_gen_compare_reg instead of open-coding.
3658
3659 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3660 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3661 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3662 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3663 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3664 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3665 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3666 (atomic_<atomic_op><ALLI>): Likewise.
3667 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3668 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3669 * doc/invoke.texi: Document -moutline-atomics.
3670
3671 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3672
3673 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3674 trivial predicate for condition branch.
3675 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3676 for switch case.
3677 (compute_bb_predicates): Update predicate based on post-dominating
3678 relationship.
3679 (analyze_function_body): Calculate post-dominating information.
3680
3681 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3682
3683 * tree-vectorizer.h (vectorizable_condition): Take an int
3684 reduction index instead of a boolean flag.
3685 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3686 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3687 reductions if the reduction accumulator is the "then" rather
3688 than the "else" value.
3689 (vect_analyze_stmt): Update call accordingly.
3690 (vect_transform_stmt): Likewise.
3691 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3692 asserting that the index is > 0.
3693
3694 2019-09-19 Martin Liska <mliska@suse.cz>
3695
3696 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3697 (sort_congruence_classes_by_decl_uid): Likewise.
3698 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3699 easier sorting.
3700 (sem_item_optimizer::merge_classes): Likewise.
3701
3702 2019-09-19 Richard Biener <rguenther@suse.de>
3703
3704 PR tree-optimization/91812
3705 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3706 volatile loads.
3707
3708 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3709
3710 * defaults.h (TARGET_UNIT): New macro.
3711 (target_unit): New type.
3712 * rtl.h (native_encode_rtx, native_decode_rtx)
3713 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3714 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3715 * rtlanal.c (subreg_lsb_1): Delete.
3716 (subreg_size_lsb): New function.
3717 * simplify-rtx.c: Include rtx-vector-builder.h
3718 (simplify_immed_subreg): Delete.
3719 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3720 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3721 functions.
3722 (simplify_subreg): Use them.
3723 (test_vector_subregs_modes, test_vector_subregs_repeating)
3724 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3725 (test_vector_subregs): New functions.
3726 (test_vector_ops): Call test_vector_subregs for integer vector
3727 modes with at least 2 elements.
3728
3729 2019-09-19 Richard Biener <rguenther@suse.de>
3730
3731 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3732 LOOP_VINFO_OPERANDS_SWAPPED.
3733 (parloops_is_simple_reduction): Likewise.
3734 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3735 initialize operands_swapped.
3736 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3737 (vect_is_slp_reduction): Do not swap operands.
3738 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3739 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3740
3741 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3742
3743 PR target/87007
3744 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3745 Add avx_partial_xmm_update.
3746
3747 2019-09-18 Jim Wilson <jimw@sifive.com>
3748
3749 PR target/91683
3750 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3751 (riscv_move_integer): Likewise.
3752 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3753 riscv_move_integer arg.
3754 (riscv_legitimize_move): Likewise.
3755 (riscv_force_temporary): New parameter in_splitter. Don't call
3756 force_reg if true.
3757 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3758 arg.
3759 (riscv_add_offset): Likewise.
3760 (riscv_split_symbol): New parameter in_splitter. Pass to
3761 riscv_force_temporary.
3762 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3763 arg.
3764 (riscv_move_integer): New parameter in_splitter. New local
3765 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3766 in_splitter TRUE.
3767 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3768 riscv_split_symbol, and riscv_force_temporary args.
3769 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3770 riscv_move_integer arg.
3771 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3772
3773 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3774
3775 PR target/90878
3776 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3777 hard register store cost to 6.
3778
3779 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3780
3781 PR target/91446
3782 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3783 pseudo register store cost from 3 to 6 to make it the same as
3784 QImode and HImode.
3785
3786 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3787
3788 PR target/91738
3789 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3790 (one_cmpldi2): Likewise.
3791 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3792 of the constant parts is simple.
3793 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3794 (logical_op): Add new code attribute.
3795 (logical_OP): Likewise.
3796 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3797 (arm_iordi_operand): Add predicate.
3798 (arm_xordi_operand): Add predicate.
3799
3800 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3801
3802 * config/arm/arm.md (maddsidi4): Remove expander.
3803 (mulsidi3adddi): Remove pattern.
3804 (mulsidi3adddi_v6): Likewise.
3805 (mulsidi3_nov6): Likewise.
3806 (mulsidi3_v6): Likewise.
3807 (umulsidi3): Remove expander.
3808 (umulsidi3_nov6): Remove pattern.
3809 (umulsidi3_v6): Likewise.
3810 (umulsidi3adddi): Likewise.
3811 (umulsidi3adddi_v6): Likewise.
3812 (<Us>mulsidi3): Add combined expander.
3813 (<Us>maddsidi4): Likewise.
3814 (<US>mull): Add combined umull and smull pattern.
3815 (<US>mlal): Likewise.
3816 * config/arm/iterators.md (Us): Add new iterator.
3817
3818 2019-09-18 Richard Biener <rguenther@suse.de>
3819
3820 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3821 swapping.
3822 (vectorize_fold_left_reduction): Remove assert.
3823 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3824 operand in position 2. Remove assert.
3825
3826 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3827
3828 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3829 (smulsi3_highpart_nov6): Remove pattern.
3830 (smulsi3_highpart_v6): Likewise.
3831 (umulsi3_highpart): Likewise.
3832 (umulsi3_highpart_nov6): Likewise.
3833 (umulsi3_highpart_v6): Likewise.
3834 (<US>mull_high): Add new combined multiply pattern.
3835
3836 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3837
3838 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3839 (arm_mulsi3_v6): Likewise.
3840 (mulsi3addsi_v6): Likewise.
3841 (mulsi3subsi): Likewise.
3842 (mul): Add new multiply pattern.
3843 (mla): Likewise.
3844 (mls): Likewise.
3845
3846 2019-09-18 Richard Biener <rguenther@suse.de>
3847
3848 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3849 (parloops_valid_reduction_input_p): Copy from
3850 valid_reduction_input_p.
3851 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3852 (parloops_needs_fold_left_reduction_p): Copy from
3853 needs_fold_left_reduction_p.
3854 (parloops_is_simple_reduction): Copy from
3855 vect_is_simple_reduction.
3856 (parloops_force_simple_reduction): Copy from
3857 vect_force_simple_reduction.
3858 (gather_scalar_reductions): Adjust.
3859 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3860 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3861
3862 2019-09-18 Richard Biener <rguenther@suse.de>
3863
3864 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3865 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3866 static.
3867 (vect_create_epilog_for_reduction): Remove dead code.
3868
3869 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3870
3871 * varasm.c (assemble_real): Generate canonical const_ints.
3872
3873 2019-09-18 Richard Biener <rguenther@suse.de>
3874
3875 PR lto/91763
3876 * lto-streamer-in.c (input_eh_regions): Move EH init to
3877 lto_materialize_function.
3878 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3879 Likewise.
3880
3881 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3882
3883 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3884 are INTEGER_CSTs.
3885
3886 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3887
3888 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3889 of checking specifically for INTEGER_CST.
3890
3891 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3892
3893 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3894 sizes instead of uhwi sizes.
3895
3896 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3897
3898 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3899 (add_const_value_attribute): Handle CONST_POLY_INT.
3900
3901 2019-09-18 Martin Liska <mliska@suse.cz>
3902
3903 * dbgcnt.def (store_merging): New counter.
3904 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3905 Use it in store merging.
3906
3907 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3908
3909 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3910 function.
3911 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3912 * config/arm/arm.c (arm_sched_variable_issue): New function.
3913 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3914
3915 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3916
3917 * config/arm/types.md (no_reservation): New reservation.
3918 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3919 no_insn here.
3920 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3921 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3922 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3923 * config/arm/arm1020e.md (1020alu_op): Likewise.
3924 * config/arm/arm1026ejs.md (alu_op): Likewise.
3925 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3926 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3927 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3928 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3929 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3930 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3931 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3932 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3933 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3934 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3935 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3936 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3937 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3938 * config/arm/fa526.md (526_alu_op): Likewise.
3939 * config/arm/fa606te.md (606te_alu_op): Likewise.
3940 * config/arm/fa626te.md (626te_alu_op): Likewise.
3941 * config/arm/fa726te.md (726te_alu_op): Likewise.
3942 * config/arm/xgene1.md (xgene1_nop): Likewise.
3943
3944 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3945
3946 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3947 "no_insn" to "branch".
3948
3949 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3950
3951 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3952
3953 2019-09-17 Richard Biener <rguenther@suse.de>
3954
3955 PR debug/91772
3956 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3957 was missing generate locations only once.
3958
3959 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
3960
3961 PR ipa/91089
3962 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3963 option.
3964 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3965 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
3966 for switch default case using range analysis information.
3967
3968 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
3969
3970 PR target/91749
3971 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
3972 mode attributed is supported by FDPIC.
3973
3974 2019-09-17 Richard Biener <rguenther@suse.de>
3975
3976 PR tree-optimization/91790
3977 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3978 use the correct DR for setting up realignment.
3979
3980 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
3981
3982 PR target/91719
3983 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
3984 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
3985 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
3986 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
3987
3988 2019-09-16 Jason Merrill <jason@redhat.com>
3989
3990 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
3991
3992 2019-09-16 Martin Liska <mliska@suse.cz>
3993
3994 * gimple-fold.c (or_comparisons_1): Remove rules moved
3995 to ...
3996 * match.pd: ... here.
3997
3998 2019-09-16 Martin Liska <mliska@suse.cz>
3999
4000 * gimple-fold.c (or_comparisons_1): Remove rules
4001 moved to ...
4002 * match.pd: ... here.
4003
4004 2019-09-16 Martin Liska <mliska@suse.cz>
4005
4006 * genmatch.c (dt_node::append_simplify): Do not print
4007 warning when we have duplicate patterns belonging
4008 to a same simplify rule.
4009 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4010 (maybe_fold_comparisons_from_match_pd): Handle
4011 tcc_comparison as a results.
4012 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4013
4014 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4015 Qi Feng <ffengqi@linux.ibm.com>
4016
4017 PR middle-end/88784
4018 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4019 (x > y && x == XXX_MIN): Optimize into 'false'.
4020 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4021 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4022 (x < y && x == XXX_MAX): Optimize into 'false'.
4023 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4024 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4025 (x <= y || x != XXX_MIN): Optimize into 'true'.
4026 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4027 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4028 (x >= y || x != XXX_MAX): Optimize into 'true'.
4029 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4030
4031 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4032 Martin Liska <mliska@suse.cz>
4033
4034 * gimple-fold.c (and_comparisons_1): Add type as first
4035 argument.
4036 (and_var_with_comparison): Likewise.
4037 (and_var_with_comparison_1): Likewise.
4038 (or_comparisons_1): Likewise.
4039 (or_var_with_comparison): Likewise.
4040 (or_var_with_comparison_1): Likewise.
4041 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4042 (maybe_fold_or_comparisons): Likewise.
4043 (maybe_fold_comparisons_from_match_pd): New.
4044 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4045 (maybe_fold_or_comparisons): Likewise.
4046 * gimple.c (gimple_size): Make it public and add num_ops argument.
4047 (gimple_init): New function.
4048 (gimple_alloc): Call gimple_init.
4049 * gimple.h (gimple_size): New.
4050 (gimple_init): Likewise.
4051 * tree-if-conv.c (fold_or_predicates): Pass type.
4052 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4053 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4054 (optimize_vec_cond_expr): Likewise.
4055 (ovce_extract_ops): Return type of conditional expression.
4056 * tree-ssanames.c (init_ssa_name_imm_use): New.
4057 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4058 * tree-ssanames.h (init_ssa_name_imm_use): New.
4059
4060 2019-09-16 Richard Biener <rguenther@suse.de>
4061
4062 PR tree-optimization/91756
4063 PR tree-optimization/87132
4064 * tree-ssa-alias.h (enum translate_flags): New.
4065 (get_continuation_for_phi): Use it instead of simple bool flag.
4066 (walk_non_aliased_vuses): Likewise.
4067 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4068 (get_continuation_for_phi): When looking across backedges only
4069 disallow valueization.
4070 (walk_non_aliased_vuses): Adjust.
4071 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4072 if requested.
4073
4074 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4075
4076 PR middle-end/80791
4077 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4078 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4079 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4080 * target.def (have_count_reg_decr_p): New hook.
4081 (doloop_cost_for_generic): Likewise.
4082 (doloop_cost_for_address): Likewise.
4083 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4084 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4085 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4086 * doc/tm.texi: Regenerate.
4087 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4088 addend.
4089 (record_group): Init doloop_p.
4090 (add_candidate_1): Add optional argument doloop, change the handlings
4091 accordingly.
4092 (add_candidate): Likewise.
4093 (generic_predict_doloop_p): Update attribute.
4094 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4095 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4096 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4097 MIN_EXPR.
4098 (get_computation_cost): Update for doloop IV cand extra cost.
4099 (determine_group_iv_cost_cond): Update for doloop IV cand.
4100 (determine_iv_cost): Likewise.
4101 (ivopts_estimate_reg_pressure): Likewise.
4102 (may_eliminate_iv): Update handlings for doloop IV cand.
4103 (add_iv_candidate_for_doloop): New function.
4104 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4105 (iv_ca_set_no_cp): Update for doloop IV cand.
4106 (iv_ca_set_cp): Likewise.
4107 (iv_ca_dump): Dump register cost.
4108 (find_doloop_use): New function.
4109 (analyze_and_mark_doloop_use): Likewise.
4110 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4111
4112 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4113
4114 PR middle-end/91708
4115 * cse.c (cse_insn): Do not replace anything with a
4116 MEM.
4117
4118 2019-09-13 Ian Lance Taylor <iant@golang.org>
4119
4120 * doc/invoke.texi (Optimize Options): Fix typo.
4121
4122 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4123
4124 PR tree-optimization/89386
4125 * config/i386/sse.md (smulhrs<mode>3): New expander.
4126 (smulhrsv4hi3): Ditto.
4127
4128 2019-09-12 Richard Biener <rguenther@suse.de>
4129
4130 PR tree-optimization/91750
4131 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4132 in the type of the evolution.
4133
4134 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4135
4136 PR tree-optimization/89386
4137 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4138 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4139 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4140 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4141 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4142 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4143 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4144 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4145 (su, r): Handle the unspecs above.
4146 (bt): New int attribute.
4147 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4148 * internal-fn.c (first_commutative_argument): Commutativity info for
4149 above.
4150 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4151 (umulhrs_optab): New optabs.
4152 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4153 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4154 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4155 function.
4156 (vect_vect_recog_func_ptrs): Add it.
4157
4158 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4159
4160 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4161 code.
4162
4163 2019-09-11 Nathan Sidwell <nathan@acm.org>
4164
4165 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4166 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4167
4168 2019-09-11 Richard Biener <rguenther@suse.de>
4169
4170 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4171 * lto-wrapper.c (merge_and_complain): Pick up -g.
4172 (append_compiler_options): Likewise.
4173 (run_gcc): Re-instantiate handling -g0 at link-time.
4174 * doc/invoke.texi (flto): Document debug info generation.
4175
4176 2019-09-11 Richard Biener <rguenther@suse.de>
4177
4178 PR tree-optimization/90387
4179 * vr-values.c (vr_values::extract_range_basic): After inlining
4180 simplify non-constant __builtin_constant_p to false.
4181
4182 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4183
4184 PR rtl-optimization/89795
4185 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4186 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4187
4188 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4189
4190 PR tree-optimization/91723
4191 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4192 instead of pointer equality when checking if argument vectypes are
4193 the same.
4194
4195 PR middle-end/91725
4196 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4197 of get_nonzero_bits, only call it for integral types.
4198
4199 2019-09-11 Richard Biener <rguenther@suse.de>
4200
4201 Revert
4202 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4203
4204 * match.pd: Add flag_unsafe_math_optimizations check
4205 before deciding on the widest type in a binary math operation.
4206
4207 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4208
4209 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4210 and CALL_REALLY_USED_REGISTERS must be defined, and that
4211 CALL_REALLY_USED_REGISTERS is preferred.
4212 * doc/tm.texi: Regenerate.
4213 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4214 (call_really_used_regs): Likewise.
4215 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4216 CALL_REALLY_USED_REGISTERS are defined.
4217 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4218 initial value if defined.
4219 (initial_call_really_used_regs): Delete.
4220 (saved_call_really_used_regs): Likewise.
4221 (CALL_REALLY_USED_REGNO_P): Likewise.
4222 (init_reg_sets): Remove handling of call_really_used_regs.
4223 (save_register_info, restore_register_info, globalize_reg): Likewise.
4224 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4225 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4226 outside operand_reg_set.
4227 (fix_register): Don't change call_used_regs if
4228 CALL_REALLY_USED_REGISTERS is defined.
4229 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4230 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4231 instead of call_really_used_regs.
4232 (csky_conditional_register_usage): Remove the old handling of
4233 call_used_regs and change the handling of call_really_used_regs
4234 to use call_used_regs instead.
4235 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4236 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4237 making a register fixed.
4238 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4239 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4240 instead of call_really_used_regs.
4241 (m32r_conditional_register_usage): Don't set call_used_regs when
4242 making a register fixed.
4243 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4244 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4245 instead of call_really_used_regs.
4246 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4247 (mips_cfun_call_saved_reg_p): Likewise.
4248 (mips_swap_registers): Remove the old handling of call_used_regs
4249 and change the handling of call_really_used_regs to use call_used_regs
4250 instead.
4251 (mips_conditional_register_usage): Likewise.
4252 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4253 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4254 instead of call_really_used_regs.
4255 (mn10300_get_live_callee_saved_regs): Likewise.
4256 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4257 (mn10300_conditional_register_usage): Don't set call_used_regs when
4258 making a register fixed.
4259 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4260 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4261 Remove the old handling of call_used_regs and change the handling
4262 of call_really_used_regs to use call_used_regs instead.
4263 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4264 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4265 instead of call_really_used_regs.
4266 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4267 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4268 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4269 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4270 (s390_conditional_register_usage): Remove the old handling of
4271 call_used_regs and change the handling of call_really_used_regs
4272 to use call_used_regs instead.
4273 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4274 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4275 (sh_fix_range, reg_unused_after): Likewise.
4276 (sh_conditional_register_usage): Remove the old handling of
4277 call_used_regs and change the handling of call_really_used_regs
4278 to use call_used_regs instead.
4279 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4280 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4281 call_used_regs when making a register fixed.
4282 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4283 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4284 call_used_regs when making a register fixed.
4285 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4286 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4287 set call_used_regs when making a register fixed.
4288 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4289 * config/visium/visium.c (visium_conditional_register_usage): Remove
4290 the old handling of call_used_regs and change the handling of
4291 call_really_used_regs to use call_used_regs instead.
4292
4293 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4294
4295 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4296 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4297 * reginfo.c (call_used_regs): New macro.
4298
4299 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4300
4301 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4302 fixed_regs test.
4303 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4304 (bpf_expand_epilogue): Likewise.
4305 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4306 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4307 (ft32_expand_epilogue): Likewise.
4308 * config/i386/i386.c (ix86_save_reg): Likewise.
4309 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4310 (moxie_expand_epilogue): Likewise.
4311 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4312 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4313 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4314
4315 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4316
4317 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4318 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4319 instead of testing call_used_regs directly.
4320 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4321 (aarch64_components_for_bb): Likewise.
4322 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4323 * config/arc/arc.c (arc_must_save_register): Likewise.
4324 (arc_epilogue_uses): Likewise.
4325 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4326 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4327 (arm_compute_save_reg0_reg12_mask): Likewise.
4328 (arm_compute_save_core_reg_mask): Likewise.
4329 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4330 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4331 (cmse_nonsecure_entry_clear_before_return): Likewise.
4332 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4333 (arm_expand_epilogue): Likewise.
4334 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4335 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4336 (_reg_unused_after): Likewise.
4337 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4338 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4339 (add_to_reg, hwloop_optimize): Likewise.
4340 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4341 (bpf_expand_epilogue): Likewise.
4342 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4343 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4344 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4345 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4346 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4347 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4348 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4349 * config/frv/frv.c (frv_stack_info): Likewise.
4350 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4351 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4352 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4353 (move_callee_saved_registers): Likewise.
4354 * config/h8300/h8300.c (byte_reg): Likewise.
4355 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4356 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4357 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4358 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4359 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4360 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4361 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4362 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4363 * config/m32c/m32c.c (need_to_save): Likewise.
4364 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4365 * config/mcore/mcore.c (calc_live_regs): Likewise.
4366 * config/microblaze/microblaze.c (microblaze_must_save_register):
4367 Likewise.
4368 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4369 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4370 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4371 (mmix_expand_epilogue): Likewise.
4372 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4373 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4374 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4375 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4376 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4377 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4378 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4379 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4380 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4381 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4382 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4383 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4384 * config/rl78/rl78.c (need_to_save): Likewise.
4385 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4386 (rs6000_stack_info, generate_set_vrsave): Likewise.
4387 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4388 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4389 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4390 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4391 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4392 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4393 (save_local_or_in_reg_p): Likewise.
4394 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4395 (xstormy16_epilogue_uses): Likewise.
4396 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4397 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4398 * config/v850/v850.c (compute_register_save_size): Likewise.
4399 * config/vax/vax.c (vax_expand_prologue): Likewise.
4400 * config/visium/visium.c (visium_save_reg_p): Likewise.
4401 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4402 * cselib.c (cselib_process_insn): Likewise.
4403 * df-scan.c (df_get_entry_block_def_set): Likewise.
4404 * function.c (aggregate_value_p): Likewise.
4405 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4406 * ira-lives.c (process_bb_node_lives): Likewise.
4407 * ira.c (do_reload): Likewise.
4408 * lra-lives.c (process_bb_lives): Likewise.
4409 * lra-remat.c (lra_remat): Likewise.
4410 * lra.c (lra): Likewise.
4411 * postreload.c (reload_combine_recognize_pattern): Likewise.
4412 (reload_cse_move2add): Likewise.
4413 * recog.c (peep2_find_free_register): Likewise.
4414 * regrename.c (check_new_reg_p): Likewise.
4415 * reload.c (find_equiv_reg): Likewise.
4416 * reload1.c (reload, find_reg): Likewise.
4417 * sel-sched.c (init_hard_regs_data): Likewise.
4418
4419 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4420
4421 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4422 regs_invalidated_by_call & ~fixed_reg_set instead of
4423 call_used_or_fixed_regs & ~fixed_reg_set.
4424 * config/sh/sh.c (output_stack_adjust): Likewise.
4425
4426 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4427
4428 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4429 (call_used_reg_set): Delete.
4430 (call_used_or_fixed_regs): New macro.
4431 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4432 of call_used_reg_set.
4433 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4434 instead of call_used_regs.
4435 (save_call_clobbered_regs): Likewise.
4436 * cfgcleanup.c (old_insns_match_p): Likewise.
4437 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4438 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4439 Likewise.
4440 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4441 * config/sh/sh.c (output_stack_adjust): Likewise.
4442 * final.c (collect_fn_hard_reg_usage): Likewise.
4443 * ira-build.c (ira_build): Likewise.
4444 * ira-color.c (calculate_saved_nregs): Likewise.
4445 (allocno_reload_assign, calculate_spill_cost): Likewise.
4446 * ira-conflicts.c (ira_build_conflicts): Likewise.
4447 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4448 * ira-lives.c (process_bb_node_lives): Likewise.
4449 * ira.c (setup_reg_renumber): Likewise.
4450 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4451 * lra-constraints.c (need_for_call_save_p): Likewise.
4452 (need_for_split_p, inherit_in_ebb): Likewise.
4453 * lra-lives.c (process_bb_lives): Likewise.
4454 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4455 * postreload.c (reload_combine): Likewise.
4456 * regrename.c (find_rename_reg): Likewise.
4457 * reload1.c (reload_as_needed): Likewise.
4458 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4459 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4460 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4461
4462 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4463
4464 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4465 (no_caller_save_reg_set): Delete.
4466 * caller-save.c (init_caller_save): Don't initialize it.
4467 * ira-conflicts.c (ira_build_conflicts): Calculate
4468 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4469
4470 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4471
4472 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4473 (target_hard_regs::x_savable_regs): New field.
4474 (call_fixed_reg_set): Delete.
4475 (savable_regs): New macro,
4476 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4477 (init_reg_sets_1): Likewise. Initialize savable_regs.
4478 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4479 for all registers. Set savable_regs instead of call_fixed_reg_set.
4480 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4481 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4482 * config/sh/sh.c (output_stack_adjust): Likewise.
4483
4484 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4485
4486 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4487 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4488 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4489
4490 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4491
4492 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4493 * rtlanal.c (get_call_rtx_from): Likewise.
4494 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4495 than the pattern to get_call_rtx_from.
4496 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4497 an rtx_insn * instead of an rtx.
4498 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4499
4500 2019-09-10 Martin Liska <mliska@suse.cz>
4501
4502 * common.opt: Use newly added WarnRemoved.
4503 * config/aarch64/aarch64.opt: Likewise.
4504 * config/arm/arm.opt: Likewise.
4505 * config/i386/i386.opt: Likewise.
4506 * config/ia64/ia64.opt: Likewise.
4507 * config/rs6000/rs6000.opt: Likewise.
4508 * doc/options.texi: Document WarnRemoved properly.
4509 * dwarf2out.c (gen_producer_string): Handle renamed
4510 OPT_SPECIAL_warn_removed.
4511 * lto-opts.c (lto_write_options): Likewise.
4512 * lto-wrapper.c (merge_and_complain): Likewise.
4513 * opts-common.c (decode_cmdline_option): Likewise.
4514 (prune_options): Likewise.
4515 (read_cmdline_option): Likewise.
4516 (control_warning_option): Likewise.
4517 * opts.c (print_filtered_help): Likewise.
4518 * optc-gen.awk: Parse for WarnRemoved and make usage
4519 of Deprecated an error.
4520 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4521
4522 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4523
4524 * doc/install.texi: Fix syntax for html generation.
4525
4526 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4527
4528 PR middle-end/91680
4529 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4530 the shift type to type.
4531
4532 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4533
4534 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4535 FDPIC mode.
4536 (stack_protect_combined_test_insn): Likewise.
4537
4538 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4539 Mickaël Guêné <mickael.guene@st.com>
4540
4541 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4542 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4543 (load_tp_soft_fdpic): New pattern.
4544 (load_tp_soft): Disable in FDPIC mode.
4545
4546 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4547 Mickaël Guêné <mickael.guene@st.com>
4548
4549 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4550 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4551 (arm_call_tls_get_addr): Add FDPIC support.
4552 (legitimize_tls_address): Likewise.
4553 (arm_emit_tls_decoration): Likewise.
4554
4555 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4556 Mickaël Guêné <mickael.guene@st.com>
4557
4558 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4559 support.
4560 (arm_trampoline_init): Likewise.
4561 (arm_trampoline_adjust_address): Likewise.
4562 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4563
4564 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4565 Mickaël Guêné <mickael.guene@st.com>
4566
4567 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4568 (legitimize_pic_address): Enforce binding rules on function
4569 pointers in FDPIC mode.
4570 (arm_assemble_integer): Likewise.
4571
4572 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4573 Mickaël Guêné <mickael.guene@st.com>
4574
4575 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4576 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4577 FDPIC.
4578
4579 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4580 Mickaël Guêné <mickael.guene@st.com>
4581
4582 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4583 field.
4584
4585 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4586 Mickaël Guêné <mickael.guene@st.com>
4587
4588 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4589 in FDPIC mode.
4590 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4591 new function.
4592 * config/arm/arm.c (arm_option_override): Define pic register to
4593 FDPIC_REGNUM.
4594 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4595 have no decl or go through PLT.
4596 (calculate_pic_address_constant): New function.
4597 (legitimize_pic_address): Call calculate_pic_address_constant.
4598 (arm_load_pic_register): Handle TARGET_FDPIC.
4599 (arm_is_segment_info_known): New function.
4600 (arm_pic_static_addr): Add support for FDPIC.
4601 (arm_load_function_descriptor): New function.
4602 (arm_emit_call_insn): Add support for FDPIC.
4603 (arm_assemble_integer): Add support for FDPIC.
4604 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4605 Define. (FDPIC_REGNUM): New define.
4606 * config/arm/arm.md (call): Add support for FDPIC.
4607 (call_value): Likewise.
4608 (restore_pic_register_after_call): New pattern.
4609 (untyped_call): Disable if FDPIC.
4610 (untyped_return): Likewise.
4611 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4612
4613 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4614 Mickaël Guêné <mickael.guene@st.com>
4615
4616 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4617 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4618 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4619 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4620 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4621 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4622 * config/arm/uclinuxfdpiceabi.h: New file.
4623
4624 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4625
4626 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4627
4628 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4629 Mickaël Guêné <mickael.guene@st.com>
4630
4631 * config/arm/arm.opt: Add -mfdpic option.
4632 * doc/invoke.texi: Add documentation for -mfdpic.
4633
4634 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4635
4636 * expmed.c (extract_bit_field): Update function comment
4637 regarding alt_rtl.
4638 * expr.c (expand_expr_real): Update function comment
4639 regarding alt_rtl.
4640 (expand_misaligned_mem_ref): New helper function.
4641 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4642 Remove duplicate assignment to "base" at case MEM_REF.
4643 Remove a shadowed variable "unsignedp" at case VCE.
4644
4645 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4646
4647 * regset.h (regs_invalidated_by_call_regset): Delete.
4648 (fixed_reg_set_regset): Likewise.
4649 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4650 (fixed_reg_set_regset, persistent_obstack): Likewise.
4651 (init_reg_sets_1, globalize_reg): Update accordingly.
4652 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4653 instead of a bitmap.
4654 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4655 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4656 instead of regs_invalidated_by_call_regset.
4657 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4658 * df-scan.c (df_scan_start_dump): Likewise.
4659 * dse.c (copy_fixed_regs): Likewise.
4660 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4661
4662 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4663
4664 * array-traits.h: New file.
4665 * coretypes.h (array_traits, bitmap_view): New types.
4666 * bitmap.h: Include "array-traits.h"
4667 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4668 (base_bitmap_view, bitmap_view): New classes.
4669 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4670 * hard-reg-set.h: Include array-traits.h.
4671 (array_traits<HARD_REG_SET>): New struct.
4672 * regset.h (IOR_REG_SET_HRS): New macro.
4673 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4674 rather than iterating over each hard register.
4675 * sched-deps.c (sched_analyze_insn): Likewise.
4676 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4677
4678 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4679
4680 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4681 instead of a HARD_REG_SET *.
4682 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4683 (ira_build): Update call accordingly.
4684 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4685
4686 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4687
4688 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4689 (HARD_REG_SET::operator!=): Likewise.
4690 (hard_reg_set_equal_p): Delete.
4691 * cfgcleanup.c (old_insns_match_p): Use == instead of
4692 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4693 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4694 (add_allocno_hard_regs_to_forest): Likewise.
4695 (setup_allocno_available_regs_num): Likewise.
4696 * ira.c (setup_pressure_classes): Likewise.
4697 (setup_allocno_and_important_classes): Likewise.
4698 (setup_reg_class_relations): Likewise.
4699 * lra-lives.c (process_bb_lives): Likewise.
4700 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4701
4702 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4703
4704 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4705 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4706 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4707 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4708 Likewise.
4709 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4710 * ira.c (setup_reg_renumber): Likewise.
4711 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4712 * regrename.c (regrename_find_superclass): Likewise.
4713 * reload1.c (find_reg): Likewise.
4714
4715 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4716
4717 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4718 * caller-save.c (setup_save_areas): Use "&~" instead of
4719 AND_COMPL_HARD_REG_SET.
4720 (save_call_clobbered_regs): Likewise.
4721 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4722 Likewise.
4723 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4724 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4725 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4726 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4727 (mips_conditional_register_usage): Likewise.
4728 * config/sh/sh.c (output_stack_adjust): Likewise.
4729 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4730 (setup_profitable_hard_regs): Likewise.
4731 (get_conflict_and_start_profitable_regs): Likewise.
4732 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4733 (ira_build_conflicts): Likewise.
4734 * ira-costs.c (restrict_cost_classes): Likewise.
4735 (setup_regno_cost_classes_by_aclass): Likewise.
4736 * ira-lives.c (process_bb_node_lives): Likewise.
4737 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4738 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4739 (setup_allocno_and_important_classes, setup_class_translate_array)
4740 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4741 Likewise.
4742 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4743 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4744 (process_alt_operands, inherit_in_ebb): Likewise.
4745 * lra-eliminations.c (update_reg_eliminate): Likewise.
4746 * lra-lives.c (process_bb_lives): Likewise.
4747 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4748 * resource.c (find_dead_or_set_registers): Likewise.
4749 (mark_target_live_regs): Likewise.
4750 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4751 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4752 (implicit_clobber_conflict_p): Likewise.
4753 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4754 (try_shrink_wrapping): Likewise.
4755
4756 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4757
4758 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4759 (HARD_REG_SET::operator|=): Likewise.
4760 (IOR_HARD_REG_SET): Delete.
4761 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4762 IOR_HARD_REG_SET.
4763 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4764 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4765 * final.c (collect_fn_hard_reg_usage): Likewise.
4766 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4767 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4768 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4769 (propagate_some_info_from_allocno): Likewise.
4770 (copy_info_to_removed_store_destinations): Likewise.
4771 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4772 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4773 (fast_allocation): Likewise.
4774 * ira-conflicts.c (ira_build_conflicts): Likewise.
4775 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4776 (process_bb_node_lives): Likewise.
4777 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4778 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4779 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4780 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4781 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4782 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4783 (process_bb_lives): Likewise.
4784 * lra-spills.c (assign_spill_hard_regs): Likewise.
4785 * postreload.c (reload_combine): Likewise.
4786 * reginfo.c (init_reg_sets_1): Likewise.
4787 * regrename.c (merge_overlapping_regs, find_rename_reg)
4788 (merge_chains): Likewise.
4789 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4790 (find_reload_regs, finish_spills, choose_reload_regs_init)
4791 (emit_reload_insns): Likewise.
4792 * reorg.c (redundant_insn): Likewise.
4793 * resource.c (find_dead_or_set_registers, mark_set_resources)
4794 (mark_target_live_regs): Likewise.
4795 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4796 * sched-deps.c (sched_analyze_insn): Likewise.
4797 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4798 (find_best_reg_for_expr): Likewise.
4799 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4800
4801 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4802
4803 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4804 (HARD_REG_SET::operator&): Likewise.
4805 (AND_HARD_REG_SET): Delete.
4806 * caller-save.c (setup_save_areas): Use "&" instead of
4807 AND_HARD_REG_SET.
4808 (save_call_clobbered_regs): Likewise.
4809 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4810 * config/m32c/m32c.c (reduce_class): Likewise.
4811 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4812 * final.c (get_call_reg_set_usage): Likewise.
4813 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4814 (setup_left_conflict_sizes_p): Likewise.
4815 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4816 (ira_build_conflicts): Likewise.
4817 * ira-costs.c (restrict_cost_classes): Likewise.
4818 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4819 (setup_reg_class_relations): Likewise.
4820 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4821 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4822 * resource.c (find_dead_or_set_registers): Likewise.
4823 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4824
4825 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4826
4827 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4828 (COMPL_HARD_REG_SET): Delete.
4829 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4830 of COMPL_HARD_REG_SET.
4831 (try_rename_operands): Likewise.
4832 * config/sh/sh.c (push_regs): Likewise.
4833 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4834 * lra-constraints.c (contains_reg_p): Likewise.
4835 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4836
4837 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4838
4839 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4840 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4841 of COPY_HARD_REG_SET.
4842 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4843 (epiphany_conditional_register_usage): Likewise.
4844 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4845 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4846 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4847 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4848 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4849 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4850 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4851 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4852 * config/sh/sh.c (output_stack_adjust): Likewise.
4853 * final.c (collect_fn_hard_reg_usage): Likewise.
4854 (get_call_reg_set_usage): Likewise.
4855 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4856 (ira_flattening): Likewise.
4857 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4858 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4859 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4860 (ira_reassign_pseudos): Likewise.
4861 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4862 (ira_build_conflicts): Likewise.
4863 * ira-costs.c (restrict_cost_classes): Likewise.
4864 (setup_regno_cost_classes_by_aclass): Likewise.
4865 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4866 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4867 (setup_stack_reg_pressure_class, setup_pressure_classes)
4868 (setup_allocno_and_important_classes, setup_class_translate_array)
4869 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4870 (ira_setup_eliminable_regset): Likewise.
4871 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4872 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4873 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4874 (process_alt_operands, inherit_in_ebb): Likewise.
4875 * lra-lives.c (process_bb_lives): Likewise.
4876 * lra-spills.c (assign_spill_hard_regs): Likewise.
4877 * lra.c (lra): Likewise.
4878 * mode-switching.c (new_seginfo): Likewise.
4879 * postreload.c (reload_combine): Likewise.
4880 * reg-stack.c (straighten_stack): Likewise.
4881 * reginfo.c (save_register_info, restore_register_info): Likewise.
4882 (init_reg_sets_1, record_subregs_of_mode): Likewise
4883 * regrename.c (create_new_chain, rename_chains): Likewise.
4884 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4885 (find_reload_regs): Likewise.
4886 * resource.c (find_dead_or_set_registers): Likewise.
4887 (mark_target_live_regs): Likewise.
4888 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4889
4890 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4891
4892 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4893 (note_pattern_stores): Declare.
4894 (note_stores): Take an rtx_insn *.
4895 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4896 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4897 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4898 (note_stores): Take an rtx_insn * as argument and process
4899 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4900 (note_pattern_stores): ...this.
4901 (find_first_parameter_load): Pass the insn rather than
4902 its pattern to note_stores.
4903 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4904 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4905 (insert_one_insn): Likewise.
4906 * combine.c (combine_instructions): Likewise.
4907 (likely_spilled_retval_p): Likewise.
4908 (try_combine): Use note_pattern_stores instead of note_stores.
4909 (record_dead_and_set_regs): Pass the insn rather than its pattern
4910 to note_stores.
4911 (reg_dead_at_p): Likewise.
4912 * config/bfin/bfin.c (workaround_speculation): Likewise.
4913 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4914 rather than an rtx.
4915 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4916 instead of note_stores.
4917 (frv_optimize_membar_local): Pass the insn rather than its pattern
4918 to note_stores.
4919 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4920 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4921 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4922 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4923 (mips_reorg_process_insns): Likewise.
4924 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4925 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4926 rather than rtxes.
4927 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4928 its pattern to note_stores.
4929 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4930 of note_stores.
4931 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4932 the insn to note_stores.
4933 (prescan_insns_for_dce): Update call accordingly.
4934 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4935 to note_stores.
4936 * df-problems.c (can_move_insns_across): Likewise.
4937 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4938 * function.c (assign_parm_setup_reg): Likewise.
4939 * gcse-common.c (record_last_mem_set_info_common): Likewise.
4940 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4941 (single_set_gcse): Likewise.
4942 * ira.c (validate_equiv_mem): Likewise.
4943 (update_equiv_regs): Use note_pattern_stores rather than note_stores
4944 for no_equiv.
4945 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4946 pattern to note_stores.
4947 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4948 * loop-iv.c (simplify_using_initial_values): Likewise.
4949 * mode-switching.c (optimize_mode_switching): Likewise.
4950 * optabs.c (emit_libcall_block_1): Likewise.
4951 (expand_atomic_compare_and_swap): Likewise.
4952 * postreload-gcse.c (load_killed_in_block_p): Likewise.
4953 (record_opr_changes): Likewise. Remove explicit handling of
4954 CALL_INSN_FUNCTION_USAGE.
4955 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4956 * regcprop.c (kill_clobbered_values): Likewise.
4957 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4958 to note_stores.
4959 * regrename.c (build_def_use): Likewise.
4960 * reload1.c (reload): Use note_pattern_stores instead of note_stores
4961 for mark_not_eliminable.
4962 (reload_as_needed): Pass the insn rather than its pattern
4963 to note_stores.
4964 (emit_output_reload_insns): Likewise.
4965 * resource.c (mark_target_live_regs): Likewise.
4966 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4967 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
4968 instead of note_stores.
4969 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
4970 its pattern to note_stores.
4971 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
4972 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
4973
4974 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4975
4976 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
4977 than a #define. Use a structure rather than an array as the
4978 fallback definition. Remove special cases for low array sizes.
4979 (const_hard_reg_set): New typedef.
4980 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
4981 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
4982 (hard_reg_set_empty_p): Likewise.
4983 (SET_HARD_REG_BIT): Use a function rather than a macro to
4984 handle the case in which HARD_REG_SET is a structure.
4985 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
4986 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4987 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4988 (IOR_COMPL_HARD_REG_SET): Likewise.
4989 (hard_reg_set_iterator::pset): Constify the pointer target.
4990 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
4991 of a "const HARD_REG_SET". Update the handling of non-integer
4992 HARD_REG_SETs.
4993 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
4994 * reload.h: Likewise.
4995 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
4996 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
4997 of a "const HARD_REG_SET".
4998 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
4999 (range_in_hard_reg_set_p): Likewise.
5000 * ira-costs.c (restrict_cost_classes): Likewise.
5001 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5002 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5003 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5004 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5005 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5006 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5007 take an unsigned int and open-code the HARD_REG_SET operations.
5008
5009 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5010
5011 * Makefile.in (OBJS): Remove bt-load.o.
5012 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5013 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5014 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5015 document that the option no longer does anything.
5016 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5017 * target.def (branch_target_register_class): Delete.
5018 (branch_target_register_callee_saved): Likewise.
5019 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5020 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5021 * doc/tm.texi: Regenerate.
5022 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5023 (make_pass_branch_target_load_optimize2): Likewise.
5024 * passes.def (pass_branch_target_load_optimize1): Likewise.
5025 (pass_branch_target_load_optimize2): Likewise.
5026 * targhooks.h (default_branch_target_register_class): Likewise.
5027 * targhooks.c (default_branch_target_register_class): Likewise.
5028 * opt-suggestions.c (test_completion_valid_options): Remove
5029 -fbtr-bb-exclusive from the list of test options.
5030 * bt-load.c: Remove.
5031
5032 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5033
5034 * match.pd: Add flag_unsafe_math_optimizations check
5035 before deciding on the widest type in a binary math operation.
5036
5037 2019-09-09 Martin Liska <mliska@suse.cz>
5038
5039 * config/i386/i386.opt: Update comment of removed
5040 options that are preserved only for backward
5041 compatibility.
5042
5043 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5044
5045 PR target/87853
5046 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5047 instead of __v16qs.
5048
5049 PR target/91704
5050 * config/i386/avxintrin.h (__v32qs): New typedef.
5051 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5052 instead of __v32qi.
5053
5054 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5055
5056 * doc/invoke.texi (Option Summary): Cover eBPF.
5057 (eBPF Options): New section.
5058 * doc/extend.texi (BPF Built-in Functions): Likewise.
5059 (BPF Kernel Helpers): Likewise.
5060
5061 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5062
5063 * config.gcc: Support for bpf-*-* targets.
5064 * common/config/bpf/bpf-common.c: New file.
5065 * config/bpf/t-bpf: Likewise.
5066 * config/bpf/predicates.md: Likewise.
5067 * config/bpf/constraints.md: Likewise.
5068 * config/bpf/bpf.opt: Likewise.
5069 * config/bpf/bpf.md: Likewise.
5070 * config/bpf/bpf.h: Likewise.
5071 * config/bpf/bpf.c: Likewise.
5072 * config/bpf/bpf-protos.h: Likewise.
5073 * config/bpf/bpf-opts.h: Likewise.
5074 * config/bpf/bpf-helpers.h: Likewise.
5075 * config/bpf/bpf-helpers.def: Likewise.
5076
5077 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5078
5079 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5080 indirect_calls.
5081
5082 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5083
5084 * opt-functions.awk (integer_range_info): Make sure values are in
5085 numeric context before operating with them.
5086
5087 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5088
5089 * genemit.c (gen_split): Print the filename and line number where the
5090 splitter (or peephole2) was defined, to the dump file.
5091
5092 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5093
5094 PR tree-optimization/91665
5095 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5096 incompatible with the type of PHI result.
5097
5098 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5099
5100 PR target/91684
5101 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5102 gen_unaligned_storedi for 4-byte aligned addresses.
5103
5104 2019-09-06 Jim Wilson <jimw@sifive.com>
5105
5106 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5107 change.
5108
5109 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5110
5111 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5112
5113 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5114
5115 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5116 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5117
5118 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5119
5120 PR target/91654
5121 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5122 cost of SSE->integer and integer->SSE moves from 2 to 6.
5123 (core_cost): Ditto.
5124
5125 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5126
5127 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5128 before testing TYPE_TRANSPARENT_AGGR.
5129 * calls.c (initialize_argument_information, load_register_parameters):
5130 Likewise.
5131
5132 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5133
5134 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5135 high regs.
5136 (cmp_ior): Likewise.
5137
5138 2019-09-06 Martin Liska <mliska@suse.cz>
5139
5140 * doc/match-and-simplify.texi: Separate tuples with ;.
5141
5142 2019-09-06 Martin Liska <mliska@suse.cz>
5143
5144 PR c++/91125
5145 * Makefile.in: Remove tlink.o.
5146 * collect2.c (do_link): New function isolated
5147 from do_tlink.
5148 (main): Use.
5149 * collect2.h (do_tlink): Remove declaration of do_tlink.
5150 * doc/extend.texi: Remove documentation of -frepo.
5151 * doc/invoke.texi: Likewise.
5152 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5153 * tlink.c: Remove.
5154
5155 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5156 Jim Wilson <jimw@sifive.com>
5157
5158 PR target/91635
5159 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5160 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5161 paradoxical_subreg_p (operands[0]).
5162 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5163 use as intermediate value.
5164
5165 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5166
5167 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5168 (sync_compare_and_swap<mode>_insn): Likewise.
5169
5170 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5171
5172 PR middle-end/91615
5173 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5174 without movmisalign optab.
5175
5176 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5177
5178 PR middle-end/91001
5179 PR middle-end/91105
5180 PR middle-end/91106
5181 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5182 types, use type of their first field instead of type of
5183 args[i].tree_value.
5184
5185 2019-09-05 Richard Biener <rguenther@suse.de>
5186
5187 PR rtl-optimization/91656
5188 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5189 of early out.
5190
5191 2019-09-05 Richard Biener <rguenther@suse.de>
5192
5193 PR middle-end/90501
5194 * tree-inline.c (declare_return_variable): Mark the return
5195 slot as addressable after building an address of it.
5196
5197 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5198
5199 * doc/install.texi: Update and clarify requirements to build GNAT.
5200
5201 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5202
5203 PR middle-end/91577
5204 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5205 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5206 call to be in memory.
5207 (pass_expand::execute): Call discover_nonconstant_array_refs before
5208 setting currently_expanding_to_rtl.
5209
5210 2019-09-04 Caroline Tice <cmtice@google.com>
5211
5212 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5213 specified together.
5214
5215 2019-09-04 Marek Polacek <polacek@redhat.com>
5216
5217 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5218
5219 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5220
5221 PR target/32413
5222 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5223 for QI and HImode moves between SSE and general registers.
5224
5225 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5226
5227 PR c/78736
5228 * doc/invoke.texi: Document -Wenum-conversion.
5229
5230 2019-09-04 Richard Biener <rguenther@suse.de>
5231
5232 PR rtl-optimization/36262
5233 * postreload-gcse.c: Include intl.h and gcse.h.
5234 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5235 to avoid linear list walk.
5236 (record_last_mem_set_info): Gate off if not computing transparentness.
5237 (get_bb_avail_insn): If transparentness isn't computed give up
5238 early.
5239 (gcse_after_reload_main): Skip compute_transp and extended PRE
5240 if gcse_or_cprop_is_too_expensive says so.
5241
5242 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5243
5244 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5245 noinit section.
5246 (msp430_select_section): Handle decls with the "noinit" attribute with
5247 default_elf_select_section.
5248 Handle SECCAT_RODATA_MERGE_* section types with
5249 default_elf_select_section.
5250 Add comments about handling of unsupported section types.
5251 (msp430_section_type_flags): Remove handling of the noinit section.
5252
5253 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5254
5255 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5256 conflicting msp430-specific attributes.
5257 (msp430_section_attr): Likewise.
5258 Add warnings about conflicts with generic "noinit" and "section"
5259 attributes.
5260 Fix grammar in -mlarge error message.
5261 (msp430_data_attr): Rename to msp430_persist_attr.
5262 Add warnings about conflicts with generic "noinit" and "section"
5263 attributes.
5264 Add warning for when variable is not initialized.
5265 Chain conditionals which prevent the attribute being added.
5266 (ATTR_EXCL): New helper.
5267 (attr_reent_exclusions): New exclusion table.
5268 (attr_naked_exclusions): Likewise.
5269 (attr_crit_exclusions): Likewise.
5270 (attr_lower_exclusions): Likewise.
5271 (attr_upper_exclusions): Likewise.
5272 (attr_either_exclusions): Likewise.
5273 (attr_persist_exclusions): Likewise.
5274 (msp430_attribute_table): Update with exclusion rules.
5275 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5276 has a section.
5277
5278 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5279
5280 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5281 (msp430_handle_generic_attribute): New function.
5282 * doc/tm.texi: Regenerate.
5283 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5284 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5285 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5286 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5287
5288 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5289
5290 PR tree-optimization/91504
5291 * match.pd: Add ((~a & b) ^a) --> (a | b).
5292
5293 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5294
5295 PR target/91604
5296 * config/i386/i386-expand.c (split_double_mode): If there is more than
5297 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5298 already split matching MEM operand instead of calling adjust_address
5299 again.
5300
5301 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5302
5303 * config.gcc: Obsolete spu target. Remove references to spu.
5304 * configure.ac: Remove references to spu.
5305 * configure: Regenerate.
5306 * config/spu/: Remove directory.
5307 * common/config/spu/: Remove directory.
5308
5309 * doc/extend.texi: Remove references to spu.
5310 * doc/invoke.texi: Likewise.
5311 * doc/md.texi: Likewise.
5312 * doc/sourcebuild.texi: Likewise.
5313
5314 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5315
5316 PR middle-end/91603
5317 PR middle-end/91612
5318 PR middle-end/91613
5319 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5320 and SSA_NAME referring to CONSTANT_P correctly.
5321
5322 2019-09-03 Richard Biener <rguenther@suse.de>
5323
5324 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5325 (vn_nary_op_insert): Likewise.
5326 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5327 (vn_nary_op_lookup): Likewise.
5328 (vn_nary_op_insert): Likewise.
5329
5330 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5331
5332 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5333 (*op0, 1) instead of XEXP (*op1, 0).
5334
5335 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5336
5337 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5338 (aarch64_fjcvtzs): New define_insn.
5339 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5340 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5341 Add AARCH64_JSCVT.
5342 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5343 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5344 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5345 __ARM_FEATURE_JCVT where appropriate.
5346 * config/aarch64/arm_acle.h (__jcvt): Define.
5347
5348 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5349
5350 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5351 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5352 (aarch64_<frintnzs_op><mode>): New define_insn.
5353 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5354 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5355 __ARM_FEATURE_FRINT when appropriate.
5356 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5357 frint32x, frint64z, frint64x.
5358 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5359 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5360 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5361 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5362 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5363 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5364 * config/aarch64/iterators.md (VSFDF): Define.
5365 (FRINTNZX): Likewise.
5366 (frintnzs_op): Likewise.
5367
5368 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5369
5370 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5371 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5372 Cortex-A34.
5373 * config/aarch64/aarch64-tune.md: Regenerated.
5374 * doc/invoke.texi: Document the new processors.
5375
5376 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5377
5378 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5379 string.
5380 (ssbs): Likewise.
5381 (sve2): Likewise.
5382 (sve2-sm4): Likewise.
5383 (sveaes): Likewise.
5384 (svesha3): Likewise.
5385 (svebitperm): Likewise.
5386
5387 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5388 Richard Biener <rguenther@suse.de>
5389
5390 PR tree-optimization/91597
5391 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5392 BIT_AND_EXPR optimization for pointers, even if both operand
5393 ranges don't include NULL, the result can be NULL.
5394
5395 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5396
5397 PR middle-end/91605
5398 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5399 (non_mem_decl_p): ...this.
5400 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5401 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5402 unconditionally as before.
5403
5404 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5405
5406 PR target/91323
5407 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5408 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5409 * tree.def (LTGT_EXPR): Likewise.
5410 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5411
5412 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5413
5414 PR go/91617
5415 * fold-const.c (range_check_type): For enumeral and boolean
5416 type, pass 1 to type_for_size langhook instead of
5417 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5418 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5419 (build_range_check): Don't call unsigned_type_for for pointer types.
5420 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5421 range_check_type result.
5422
5423 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5424
5425 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5426 (replace_ref): Do not replace a chain of only two candidates which are
5427 valid memory references.
5428
5429 2019-09-02 Martin Liska <mliska@suse.cz>
5430
5431 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5432 Bail out when we'll end up with the same number of clusters as
5433 at the beginning.
5434 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5435 (jump_table_cluster::can_be_handled): Remove the guard
5436 as it's already handled in ::is_enabled. Allocate output
5437 after early bail out.
5438
5439 2019-09-02 Martin Liska <mliska@suse.cz>
5440
5441 PR gcov-profile/91601
5442 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5443 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5444 also negative edges.
5445 (circuit): Handle also negative edges as they can happen
5446 in some situations.
5447
5448 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5449
5450 PR target/91472
5451 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5452 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5453 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5454
5455 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5456
5457 PR middle-end/91623
5458 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5459 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5460 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5461 zero vector.
5462
5463 PR lto/91572
5464 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5465 GIMPLE_ASM TREE_LIST operands.
5466
5467 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5468
5469 * doc/generic.texi (Unary and Binary Expressions): Mark up
5470 an instance of TYPE_MIN.
5471
5472 2019-08-31 Stafford Horne <shorne@gmail.com>
5473
5474 * config/or1k/constraints.md (t): New constraint.
5475 * config/or1k/or1k.h (GOT_REGS): New register class.
5476 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5477
5478 2019-08-30 Jim Wilson <jimw@sifive.com>
5479
5480 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5481 and -fpic and -mplt then disable -msave-restore and warn.
5482
5483 2019-08-30 Martin Sebor <msebor@redhat.com>
5484
5485 PR middle-end/91599
5486 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5487 the statement doesn't have one.
5488 * gimple-pretty-print.c (percent_G_format): Same.
5489
5490 PR middle-end/91584
5491 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5492 before using them to validate MEM_REF offset.
5493
5494 2019-08-30 Marek Polacek <polacek@redhat.com>
5495
5496 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5497
5498 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5499
5500 * config/arm/arm.md (unaligned_loaddi,
5501 unaligned_storedi): New unspec insn patterns.
5502 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5503 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5504 and unaligned_storedi for 4-byte aligned memory.
5505 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5506 4-byte aligned memory.
5507
5508 2019-08-30 Martin Jambor <mjambor@suse.cz>
5509
5510 tree-optimization/91579
5511 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5512 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5513 appropriate.
5514 (arg_needs_copy_p): Removed.
5515 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5516 arg_needs_copy_p.
5517 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5518
5519 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5520
5521 * config/i386/i386-features.c
5522 (general_scalar_chain::compute_convert_gain):
5523 Correct cost for double-word shifts.
5524 (general_scalar_to_vector_candidate_p): Reject count operands
5525 greater or equal to mode bitsize.
5526
5527 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5528
5529 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5530 for moves between SSE and non-general registers and between
5531 mask and non-general registers.
5532 (ix86_register_move_cost): Remove stalled comment.
5533
5534 2019-08-29 Richard Biener <rguenther@suse.de>
5535
5536 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5537 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5538
5539 2019-08-29 Richard Biener <rguenther@suse.de>
5540
5541 PR bootstrap/91580
5542 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5543 Do not emit scalar copies for debug-insns, instead replace
5544 their uses with the reg copy used in the chain or reset them
5545 if there is a reaching definition outside of the chain as well.
5546
5547 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5548
5549 PR target/91560
5550 * config/i386/i386-expand.c (expand_vec_perm_movs,
5551 expand_vec_perm_blend, expand_vec_perm_vpermil,
5552 expand_vec_perm_pshufb, expand_vec_perm_1,
5553 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5554 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5555 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5556 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5557 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5558 comments - replace ix86_expand_vec_perm_builtin_1 with
5559 ix86_expand_vec_perm_const_1.
5560 (expand_vec_perm2_vperm2f128_vblend): New function.
5561 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5562 expand_vec_perm2_vperm2f128_vblend as last resort.
5563 (canonicalize_perm): Formatting fix.
5564
5565 PR tree-optimization/91351
5566 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5567 unsigned_type_for.
5568 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5569 range_check_type returns NULL.
5570 * tree-switch-conversion.c (switch_conversion::build_one_array):
5571 Use range_check_type instead of unsigned_type_for, don't perform
5572 linear opt if it returns NULL.
5573 (bit_test_cluster::find_bit_tests): Formatting fix.
5574 (bit_test_cluster::emit): Use range_check_type instead of
5575 unsigned_type_for.
5576 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5577 returns NULL.
5578
5579 2019-08-29 Richard Biener <rguenther@suse.de>
5580
5581 PR tree-optimization/91568
5582 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5583 (vect_update_max_nunits): Add overload for poly_uint64.
5584 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5585 (vect_build_slp_tree): Record max_nunits into the subtree
5586 and merge it upwards.
5587 (vect_print_slp_tree): Print max_nunits.
5588
5589 2019-08-28 Marek Polacek <polacek@redhat.com>
5590
5591 Implement P1152R4: Deprecating some uses of volatile.
5592 PR c++/91361
5593 * doc/invoke.texi: Document -Wvolatile.
5594
5595 2019-08-28 Marek Polacek <polacek@redhat.com>
5596
5597 PR c++/91360 - Implement C++20 P1143R2: constinit.
5598 * doc/invoke.texi: Document -Wc++20-compat.
5599
5600 2019-08-28 Martin Sebor <msebor@redhat.com>
5601
5602 PR tree-optimization/91457
5603 * builtins.c (component_size): New function.
5604 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5605 * builtins.h (compute_objsize): Add argument.
5606 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5607 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5608 (vrp_prop::check_mem_ref): Same.
5609 (vrp_prop::search_for_addr_array): Set no-warning bit.
5610 (check_array_bounds): Same.
5611
5612 2019-08-28 Martin Sebor <msebor@redhat.com>
5613
5614 PR driver/80545
5615 * opts-common.c (option_enabled): Correct checking for language
5616 options.
5617
5618 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5619
5620 * config/i386/i386.c (ix86_register_move_cost): Do not
5621 limit the cost of moves to/from XMM register to minimum 8.
5622
5623 2019-08-28 Martin Jambor <mjambor@suse.cz>
5624
5625 PR ipa/91468
5626 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5627 checking assert a normal assert to test it really is redundant.
5628 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5629 redundant test.
5630 (update_jump_functions_after_inlining): Removed combining unary
5631 arithmetic operations with an ancestor jump function.
5632 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5633 instead of t.
5634
5635 2019-08-28 Richard Biener <rguenther@suse.de>
5636
5637 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5638 add the MD problem.
5639
5640 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5641 Richard Biener <rguenther@suse.de>
5642
5643 * expr.c (expand_assignment): Handle misaligned DECLs.
5644 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5645 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5646 too.
5647 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5648 * varasm.c (build_constant_desc): Align constants of misaligned types.
5649 * config/arm/predicates.md (aligned_operand): New predicate.
5650 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5651 aligned_operand to check restrictions on memory addresses.
5652 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5653 * config/arm/vec-common.md (mov<VALL>): Likewise.
5654
5655 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5656
5657 PR libgomp/91530
5658 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5659 V_128 iterator instead of VI_128.
5660
5661 2019-08-28 Martin Liska <mliska@suse.cz>
5662
5663 PR tree-optimization/90970
5664 * builtins.c (check_access): Remove assignment to maxread
5665 as it hasn't been used since when it was introduced in r255755.
5666
5667 2019-08-27 Martin Sebor <msebor@redhat.com>
5668
5669 PR tree-optimization/91567
5670 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5671 of unknown strings.
5672 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5673 to PTRDIFF_MAX - 2.
5674
5675 2019-08-27 Jeff Law <law@redhat.com>
5676
5677 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5678 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5679
5680 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5681
5682 PR target/91528
5683 * config/i386/i386-features.c (convert_scalars_to_vector):
5684 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5685 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5686 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5687 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5688
5689 2019-08-27 Richard Biener <rguenther@suse.de>
5690
5691 * config/i386/i386-features.h
5692 (general_scalar_chain::~general_scalar_chain): Add.
5693 (general_scalar_chain::insns_conv): New bitmap.
5694 (general_scalar_chain::n_sse_to_integer): New.
5695 (general_scalar_chain::n_integer_to_sse): Likewise.
5696 (general_scalar_chain::make_vector_copies): Adjust signature.
5697 * config/i386/i386-features.c
5698 (general_scalar_chain::general_scalar_chain): Outline,
5699 initialize new members.
5700 (general_scalar_chain::~general_scalar_chain): New.
5701 (general_scalar_chain::mark_dual_mode_def): Record insns
5702 we need to insert conversions at and count them.
5703 (general_scalar_chain::compute_convert_gain): Account
5704 for conversion instructions at chain boundary.
5705 (general_scalar_chain::make_vector_copies): Generate a single
5706 copy for a def by a specific insn.
5707 (general_scalar_chain::convert_registers): First populate
5708 defs_map, then make copies at out-of chain insns.
5709
5710 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5711
5712 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5713 comment.
5714 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5715
5716 2019-08-27 Martin Liska <mliska@suse.cz>
5717
5718 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5719 loop.
5720 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5721 Enclose in anonymous namespace.
5722 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5723 hard_register initialization in braces.
5724 * tree-vrp.h (value_range_base::supports_type_p): Return false
5725 for function with boolean return type.
5726
5727 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5728
5729 * config/i386/i386.c (emit_i387_cw_initialization)
5730 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5731
5732 2019-08-26 Martin Sebor <msebor@redhat.com>
5733
5734 PR c++/83431
5735 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5736 (sprintf_dom_walker): Remove class.
5737 (get_int_range): Make argument const.
5738 (directive::fmtfunc, directive::set_precision): Same.
5739 (format_none): Same.
5740 (build_intmax_type_nodes): Same.
5741 (adjust_range_for_overflow): Same.
5742 (format_floating): Same.
5743 (format_character): Same.
5744 (format_string): Same.
5745 (format_plain): Same.
5746 (get_int_range): Cast away constness.
5747 (format_integer): Same.
5748 (get_string_length): Call get_range_strlen_dynamic. Handle
5749 null lendata.maxbound.
5750 (should_warn_p): Adjust argument scope qualifier.
5751 (maybe_warn): Same.
5752 (format_directive): Same.
5753 (parse_directive): Same.
5754 (is_call_safe): Same.
5755 (try_substitute_return_value): Same.
5756 (sprintf_dom_walker::handle_printf_call): Rename...
5757 (handle_printf_call): ...to this. Initialize target to host charmap
5758 here instead of in pass_sprintf_length::execute.
5759 (struct call_info): Make global.
5760 (sprintf_dom_walker::compute_format_length): Make global.
5761 (sprintf_dom_walker::handle_gimple_call): Same.
5762 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5763 * print-rtl.c (print_pattern): Reduce the number of spaces to
5764 avoid -Wformat-truncation.
5765 * tree-pass.h (make_pass_warn_printf): New function.
5766 * tree-ssa-strlen.c (strlen_optimize): New variable.
5767 (get_string_length): Add comments.
5768 (get_range_strlen_dynamic): New function.
5769 (check_and_optimize_call): New function.
5770 (handle_integral_assign): New function.
5771 (strlen_check_and_optimize_stmt): Factor code out into
5772 strlen_check_and_optimize_call and handle_integral_assign.
5773 (strlen_dom_walker::evrp): New member.
5774 (strlen_dom_walker::before_dom_children): Use evrp member.
5775 (strlen_dom_walker::after_dom_children): Use evrp member.
5776 (printf_strlen_execute): New function.
5777 (pass_strlen::gate): Update to handle printf calls.
5778 (dump_strlen_info): New function.
5779 (pass_data_warn_printf): New variable.
5780 (pass_warn_printf): New class.
5781 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5782 (handle_printf_call): Same.
5783 * tree-vrp.c (value_range_base::type): Adjust assertion.
5784 * vr-values.c (vr_values::update_value_range): Use type of the first
5785 argument rather than the second.
5786
5787 2019-08-26 Richard Biener <rguenther@suse.de>
5788
5789 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5790 Remove.
5791 (convert_scalars_to_vector): Do not call it.
5792
5793 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5794 Uros Bizjak <ubizjak@gmail.com>
5795
5796 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5797 CASE_MATHFN_FLOATN for roundeven.
5798 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5799 I387_ROUNDEVEN.
5800 (ix86_mode_needed): Likewise.
5801 (ix86_mode_after): Likewise.
5802 (ix86_mode_entry): Likewise.
5803 (ix86_mode_exit): Likewise.
5804 (ix86_emit_mode_set): Likewise.
5805 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5806 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5807 (ix86_entity): Add I387_ROUNDEVEN.
5808 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5809 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5810 (define_int_iterator): Likewise.
5811 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5812 (define_constant): Define ROUND_ROUNDEVEN mode.
5813 (define_attr): Add roundeven mode for i387_cw.
5814 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5815 * internal-fn.def (ROUNDEVEN): New builtin function.
5816 * optabs.def (roundeven_optab): New optab.
5817
5818 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5819
5820 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5821 for ROUNDEVEN.
5822 * builtins.def: Added function definitions for roundeven function
5823 variants.
5824 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5825 function call. Adjust condition for floor, ceil, trunc and round.
5826 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5827 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5828 (integer_valued_real_call_p): Added case for roundeven function.
5829 * real.c (is_even): New function. Returns true if real number is even,
5830 otherwise returns false.
5831 (is_halfway_below): New function. Returns true if real number is
5832 halfway between two integers, else return false.
5833 (real_roundeven): New function. Round real number to nearest integer,
5834 rounding halfway cases towards even.
5835 * real.h (real_value): Added descriptive comments. Added function
5836 declaration for roundeven function.
5837 * doc/extend.texi (Other Builtins): List roundeven variants among
5838 functions which can be handled as builtins.
5839
5840 2019-08-26 Richard Biener <rguenther@suse.de>
5841
5842 PR target/91522
5843 PR target/91527
5844 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5845 New member.
5846 (general_scalar_chain::replace_with_subreg): Remove.
5847 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5848 (general_scalar_chain::convert_reg): Adjust signature.
5849 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5850 iterate over all defs of a reg.
5851 (general_scalar_chain::replace_with_subreg): Remove.
5852 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5853 (general_scalar_chain::make_vector_copies): Populate defs_map,
5854 place copy only after defs that are used as vectors in the chain.
5855 (general_scalar_chain::convert_reg): Emit a copy for a specific
5856 def in a specific instruction.
5857 (general_scalar_chain::convert_op): All reg uses are converted here.
5858 (general_scalar_chain::convert_insn): Emit copies for scalar
5859 uses of defs here. Replace uses with the copies we created.
5860 Replace and convert the def. Adjust REG_DEAD notes, remove
5861 REG_EQUIV/EQUAL notes.
5862 (general_scalar_chain::convert_registers): Only handle copies
5863 into the chain here.
5864
5865 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5866
5867 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5868
5869 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5870
5871 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5872 Add nop_convert case.
5873 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5874 Fold all statements if requested.
5875 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5876 Allow to fold all statements.
5877 * tree-vrp.c (class vrp_folder):
5878 Let substitute_and_fold_engine fold all statements.
5879
5880 2019-08-26 Richard Biener <rguenther@suse.de>
5881
5882 PR tree-optimization/91526
5883 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5884 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5885 TODO_update_address_taken.
5886
5887 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5888
5889 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5890 __STDC_HOSTED__.
5891
5892 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5893
5894 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5895 machine mode for unspec_volatile operand.
5896
5897 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5898
5899 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5900 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5901 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5902 (prefer_neon_for_64bits): Remove.
5903 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5904 (tune_params): Remove PREF_NEON_64_FALSE uses.
5905 (arm_option_override): Remove prefer_neon selection code.
5906 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5907 * gcc/config/arm/arm-protos.h (tune_params): Remove
5908 prefer_neon_for_64bits.
5909 (prefer_neon_for_64bits): Remove.
5910
5911 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5912
5913 PR pch/61250
5914 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5915 and issue any diagnostics needed before collecting the pre-PCH
5916 state.
5917
5918 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5919
5920 PR middle-end/91283
5921 * common.opt (fexcess-precision=): Add Optimization flag. Use
5922 flag_excess_precision variable instead of
5923 flag_excess_precision_cmdline.
5924 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5925 member.
5926 (flag_excess_precision): Don't define.
5927 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5928 flag_excess_precision_cmdline. Remove comment.
5929 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5930 and x_flag_excess_precision instead of
5931 frontend_set_flag_excess_precision_cmdline and
5932 x_flag_excess_precision_cmdline.
5933 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5934 x_flag_excess_precision_cmdline.
5935 * toplev.c (init_excess_precision): Remove.
5936 (lang_dependent_init_target): Don't call it.
5937
5938 2019-08-23 Martin Liska <mliska@suse.cz>
5939
5940 * lto-wrapper.c (run_gcc): When setting jobserver
5941 set also parallel to 1. This was done so before r273908.
5942
5943 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
5944
5945 * config/arm/arm-cpus.in (cortex-m35p): New entry.
5946 (cortex-a76ae): Likewise.
5947 (cortex-a77): Likewise
5948 * config/arm/arm-tables.opt: Regenerate.
5949 * config/arm/arm-tune.md: Likewise.
5950 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5951 cortex-a77 CPU options.
5952
5953 2019-08-23 Martin Liska <mliska@suse.cz>
5954
5955 * profile.c (instrument_values): Do not set
5956 0 as last argument.
5957 * tree-profile.c (gimple_gen_interval_profiler): Remove
5958 last argument.
5959 (gimple_gen_pow2_profiler): Likewise.
5960 (gimple_gen_topn_values_profiler): Likewise.
5961 (gimple_gen_ic_profiler): Likewise.
5962 (gimple_gen_time_profiler): Likewise.
5963 (gimple_gen_average_profiler): Likewise.
5964 (gimple_gen_ior_profiler): Likewise.
5965 * value-prof.c (dump_histogram_value): Use default
5966 in switch statement instead of HIST_TYPE_MAX.
5967 (stream_in_histogram_value): Likewise.
5968 (gimple_duplicate_stmt_histograms): Do not
5969 use NULL for implicitly set arguments.
5970 (gimple_divmod_values_to_profile): Do not use
5971 reserve+quick_push.
5972 (gimple_indirect_call_to_profile): Likewise.
5973 (gimple_find_values_to_profile): Use implicit
5974 function call arguments.
5975 * value-prof.h (gimple_alloc_histogram_value):
5976 Set default values.
5977 (gimple_gen_interval_profiler): Remove last argument.
5978 (gimple_gen_pow2_profiler): Likewise.
5979 (gimple_gen_topn_values_profiler): Likewise.
5980 (gimple_gen_ic_profiler): Likewise.
5981 (gimple_gen_time_profiler): Likewise.
5982 (gimple_gen_average_profiler): Likewise.
5983 (gimple_gen_ior_profiler): Likewise.
5984
5985 2019-08-22 Martin Sebor <msebor@redhat.com>
5986
5987 PR middle-end/91490
5988 * builtins.c (c_strlen): Rename argument and introduce new local.
5989 Set no-warning bit on original argument.
5990 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
5991 Fold empty and zero constructors into empty strings.
5992 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
5993 for missing initializers.
5994 * tree.c (build_string_literal): Handle optional argument.
5995 * tree.h (build_string_literal): Add defaulted argument.
5996 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
5997 no-warning bit on original expression.
5998
5999 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6000
6001 PR target/91481
6002 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6003 and UNSPEC_DARN_RAW.
6004 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6005 UNSPECV_DARN_RAW.
6006 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6007 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6008 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6009
6010 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6011
6012 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6013 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6014 * config/rs6000/rs6000.md (unspec): ... here.
6015 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6016 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6017 cmpeqb, *cmpeqb_internal): Delete, move to...
6018 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6019 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6020 cmpeqb, *cmpeqb_internal): ... here.
6021
6022 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6023
6024 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6025 intrinsics if __ARM_FP.
6026 Use __ARM_FEATURE_CRC32 ifdef guard.
6027
6028 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6029
6030 * config/arm/arm.md (neon_for_64bits): Remove.
6031 (avoid_neon_for_64bits): Remove.
6032 (arm_adddi3): Always split early.
6033 (arm_subdi3): Always split early.
6034 (negdi2): Remove Neon expansion.
6035 (split zero_extend): Split before reload.
6036 (split sign_extend): Split before reload.
6037
6038 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6039
6040 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6041 (qhs_extenddi_cstr): Likewise.
6042 * config/arm/arm.md (ashldi3): Always expand early.
6043 (ashlsi3): Likewise.
6044 (ashrsi3): Likewise.
6045 (zero_extend<mode>di2): Remove Neon variants.
6046 (extend<mode>di2): Likewise.
6047 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6048 (signed_shift_di3_neon): Likewise.
6049 (unsigned_shift_di3_neon): Likewise.
6050 (ashrdi3_neon_imm_noclobber): Likewise.
6051 (lshrdi3_neon_imm_noclobber): Likewise.
6052 (<shift>di3_neon): Likewise.
6053 (split extend): Remove DI extend split patterns.
6054
6055 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6056
6057 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6058 (split not): Add DImode not splitter.
6059 (anddi3): Remove pattern.
6060 (anddi3_insn): Likewise.
6061 (anddi_zesidi_di): Likewise.
6062 (anddi_sesdi_di): Likewise.
6063 (anddi_notdi_di): Likewise.
6064 (anddi_notzesidi_di): Likewise.
6065 (anddi_notsesidi_di): Likewise.
6066 (iordi3): Likewise.
6067 (iordi3_insn): Likewise.
6068 (iordi_zesidi_di): Likewise.
6069 (iordi_sesidi_di): Likewise.
6070 (xordi3): Likewise.
6071 (xordi3_insn): Likewise.
6072 (xordi_sesidi_di): Likewise.
6073 (xordi_zesidi_di): Likewise.
6074 (one_cmpldi2): Likewise.
6075 (one_cmpldi2_insn): Likewise.
6076 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6077 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6078 alternative.
6079 (iwmmxt_xordi3): Likewise.
6080 (iwmmxt_anddi3): Likewise.
6081 * config/arm/neon.md (orndi3_neon): Remove pattern.
6082 (anddi_notdi_di): Likewise.
6083 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6084 (arm_iordi_operand_neon): Likewise.
6085 (arm_xordi_operand_neon): Likewise.
6086 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6087 (iordi_notzesidi_di): Likewise.
6088 (iordi_notdi_zesidi): Likewise.
6089 (iordi_notsesidi_di): Likewise.
6090
6091 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6092
6093 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6094 insn.
6095 (iorsi3_compare0_scratch): Likewise.
6096
6097 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6098
6099 * config/aarch64/aarch64-simd-builtins.def:
6100 (ld1x4): New.
6101 (st1x4): Likewise.
6102 * config/aarch64/aarch64-simd.md:
6103 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6104 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6105 (aarch64_ld1_x4_<mode>): Likewise.
6106 (aarch64_st1_x4_<mode>): Likewise.
6107 * config/aarch64/arm_neon.h:
6108 (vld1_s8_x4): New function.
6109 (vld1q_s8_x4): Likewise.
6110 (vld1_s16_x4): Likewise.
6111 (vld1q_s16_x4): Likewise.
6112 (vld1_s32_x4): Likewise.
6113 (vld1q_s32_x4): Likewise.
6114 (vld1_u8_x4): Likewise.
6115 (vld1q_u8_x4): Likewise.
6116 (vld1_u16_x4): Likewise.
6117 (vld1q_u16_x4): Likewise.
6118 (vld1_u32_x4): Likewise.
6119 (vld1q_u32_x4): Likewise.
6120 (vld1_f16_x4): Likewise.
6121 (vld1q_f16_x4): Likewise.
6122 (vld1_f32_x4): Likewise.
6123 (vld1q_f32_x4): Likewise.
6124 (vld1_p8_x4): Likewise.
6125 (vld1q_p8_x4): Likewise.
6126 (vld1_p16_x4): Likewise.
6127 (vld1q_p16_x4): Likewise.
6128 (vld1_s64_x4): Likewise.
6129 (vld1_u64_x4): Likewise.
6130 (vld1_p64_x4): Likewise.
6131 (vld1q_s64_x4): Likewise.
6132 (vld1q_u64_x4): Likewise.
6133 (vld1q_p64_x4): Likewise.
6134 (vld1_f64_x4): Likewise.
6135 (vld1q_f64_x4): Likewise.
6136 (vst1_s8_x4): Likewise.
6137 (vst1q_s8_x4): Likewise.
6138 (vst1_s16_x4): Likewise.
6139 (vst1q_s16_x4): Likewise.
6140 (vst1_s32_x4): Likewise.
6141 (vst1q_s32_x4): Likewise.
6142 (vst1_u8_x4): Likewise.
6143 (vst1q_u8_x4): Likewise.
6144 (vst1_u16_x4): Likewise.
6145 (vst1q_u16_x4): Likewise.
6146 (vst1_u32_x4): Likewise.
6147 (vst1q_u32_x4): Likewise.
6148 (vst1_f16_x4): Likewise.
6149 (vst1q_f16_x4): Likewise.
6150 (vst1_f32_x4): Likewise.
6151 (vst1q_f32_x4): Likewise.
6152 (vst1_p8_x4): Likewise.
6153 (vst1q_p8_x4): Likewise.
6154 (vst1_p16_x4): Likewise.
6155 (vst1q_p16_x4): Likewise.
6156 (vst1_s64_x4): Likewise.
6157 (vst1_u64_x4): Likewise.
6158 (vst1_p64_x4): Likewise.
6159 (vst1q_s64_x4): Likewise.
6160 (vst1q_u64_x4): Likewise.
6161 (vst1q_p64_x4): Likewise.
6162 (vst1_f64_x4): Likewise.
6163 (vst1q_f64_x4): Likewise.
6164
6165 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6166
6167 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6168
6169 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6170 Richard Sandiford <richard.sandiford@arm.com>
6171
6172 PR target/88839
6173 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6174 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6175
6176 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6177
6178 PR target/90724
6179 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6180 in reg if it fails aarch64_plus_operand predicate.
6181
6182 2019-08-21 Richard Biener <rguenther@suse.de>
6183
6184 PR tree-optimization/91482
6185 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6186 BUILT_IN_ASSUME_ALIGNED calls.
6187
6188 2019-08-21 Richard Biener <rguenther@suse.de>
6189
6190 PR target/91498
6191 PR target/91503
6192 * config/i386/i386-features.c
6193 (general_scalar_chain::make_vector_copies): Copy stack temporary
6194 rtx when using it multiple times.
6195 (general_scalar_chain::convert_reg): Likewise.
6196
6197 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6198
6199 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6200
6201 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6202
6203 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6204 catch more redundant zero initialization cases.
6205 (dse_dom_walker::dse_optimize_stmt): Likewise.
6206
6207 2019-08-20 Richard Biener <rguenther@suse.de>
6208
6209 PR lto/91307
6210 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6211 by collect2 when targetm.have_ctors_dtors which avoids dragging
6212 in temporary filenames from LTO input objects.
6213
6214 2019-08-20 Richard Biener <rguenther@suse.de>
6215
6216 PR tree-optimization/37242
6217 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6218 to (T)a + (T)b if we know that a + b does not overflow.
6219
6220 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6221
6222 PR rtl-optimization/91347
6223 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6224 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6225
6226 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6227
6228 * calls.h (function_arg_info): Add a pass_by_reference field,
6229 defaulting to false.
6230 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6231 when applying pass-by-reference semantics.
6232 (initialize_argument_information): Likewise.
6233 (emit_library_call_value_1): Likewise.
6234 * function.c (assign_parm_data_one): Remove passed_pointer field.
6235 (assign_parm_find_data_types): Don't set it.
6236 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6237 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6238 arg.pass_by_reference instead of passed_pointer.
6239
6240 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6241
6242 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6243 into a single function_arg_info, updating its fields when we
6244 apply pass-by-reference and promotion semantics. Use the
6245 function_arg_info to track the mode rather than keeping it in
6246 a separate local variable.
6247 (initialize_argument_information): Likewise. Base the final
6248 arg_to_skip on this new function_arg_info rather than creating
6249 a new one from scratch.
6250
6251 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6252
6253 * function.c (assign_parm_data_one): Replace passed_type,
6254 promoted_mode and named_arg with a function_arg_info field.
6255 (assign_parm_find_data_types): Remove local variables and
6256 assign directly to "data". Make data->passed_mode shadow
6257 data->arg.mode until promotion, then assign the promoted
6258 mode to data->arg.mode.
6259 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6260 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6261 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6262 (assign_parm_setup_block, assign_parm_setup_reg)
6263 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6264 arg.mode instead of promoted_mode, arg.type instead of passed_type
6265 and arg.named instead of named_arg. Use data->arg for
6266 function_arg_info structures that had the field values passed_type,
6267 promoted_mode and named_arg. Base other function_arg_infos on
6268 data->arg, changing the necessary properties.
6269
6270 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6271
6272 * calls.h (apply_pass_by_reference_rules): Declare.
6273 * calls.c (apply_pass_by_reference_rules): New function.
6274 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6275 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6276 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6277 * function.c (assign_parm_find_data_types): Likewise.
6278 * var-tracking.c (prepare_call_arguments): Likewise.
6279
6280 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6281
6282 * target.def (must_pass_in_stack): Take a function_arg_info instead
6283 of a mode and a type.
6284 * doc/tm.texi: Regenerate.
6285 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6286 instead of a mode and a type.
6287 (must_pass_in_stack_var_size_or_pad): Likewise.
6288 * calls.c (must_pass_in_stack_var_size): Likewise.
6289 (must_pass_in_stack_var_size_or_pad): Likewise.
6290 (initialize_argument_information): Update call to
6291 targetm.calls.must_pass_in_stack.
6292 (must_pass_va_arg_on_stack): Likewise.
6293 * function.c (assign_parm_find_entry_rtl): Likewise.
6294 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6295 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6296 (alpha_function_arg_advance): Likewise.
6297 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6298 (cr16_function_arg_advance): Likewise.
6299 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6300 (cris_arg_partial_bytes): Likewise.
6301 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6302 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6303 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6304 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6305 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6306 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6307 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6308 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6309 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6310 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6311 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6312 instead of a mode and a type.
6313 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6314 (fr30_num_arg_regs): Likewise.
6315 (fr30_setup_incoming_varargs): Update calls accordingly.
6316 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6317 (fr30_function_arg_advance): Likewise.
6318 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6319 instead of a mode and a type.
6320 * config/gcn/gcn.c (num_arg_regs): Likewise.
6321 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6322 num_arg_regs and targetm.calls.must_pass_in_stack.
6323 (gcn_arg_partial_bytes): Likewise.
6324 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6325 function_arg_info instead of a mode and a type.
6326 (classify_argument): Update call accordingly.
6327 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6328 function_arg_info instead of a mode and a type.
6329 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6330 Likewise.
6331 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6332 (rs6000_parm_needs_stack): Update call accordingly.
6333 (setup_incoming_varargs): Likewise.
6334
6335 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6336
6337 * target.def (callee_copies): Take a function_arg_info instead
6338 of a mode, type and named flag.
6339 * doc/tm.texi: Regenerate.
6340 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6341 instead of a mode, type and named flag.
6342 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6343 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6344 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6345 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6346 instead of a mode, type and named flag.
6347 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6348 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6349 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6350 * calls.h (reference_callee_copied): Take a function_arg_info
6351 instead of a mode, type and named flag.
6352 * calls.c (reference_callee_copied): Likewise.
6353 (initialize_argument_information): Update call accordingly.
6354 (emit_library_call_value_1): Likewise.
6355 * function.c (gimplify_parameters): Likewise.
6356 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6357 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6358 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6359 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6360 (TARGET_CALLEE_COPIES): Define to
6361 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6362 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6363 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6364 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6365 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6366 instead of a mode, type and named flag.
6367 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6368 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6369 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6370 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6371 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6372 (TARGET_CALLEE_COPIES): Define to
6373 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6374 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6375 instead of a mode, type and named flag.
6376 * config/sh/sh.c (sh_callee_copies): Likewise.
6377 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6378 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6379 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6380
6381 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6382
6383 * target.def (function_arg_advance): Take a function_arg_info instead
6384 of a mode, type and named flag.
6385 * doc/tm.texi: Regenerate.
6386 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6387 instead of a mode, type and named flag.
6388 * targhooks.c (default_function_arg_advance): Likewise.
6389 * calls.c (initialize_argument_information): Update call to
6390 targetm.calls.function_arg_advance.
6391 (emit_library_call_value_1): Likewise.
6392 * dse.c (get_call_args): Likewise.
6393 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6394 * function.c (assign_parms, gimplify_parameters): Likewise.
6395 * var-tracking.c (prepare_call_arguments): Likewise.
6396 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6397 function_arg_info instead of a mode, type and named flag.
6398 (aarch64_setup_incoming_varargs): Update call accordingly.
6399 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6400 function_arg_info instead of a mode, type and named flag.
6401 (alpha_setup_incoming_varargs): Update call accordingly.
6402 * config/arc/arc.c (arc_function_arg_advance): Take a
6403 function_arg_info instead of a mode, type and named flag.
6404 (arc_setup_incoming_varargs): Update call accordingly.
6405 * config/arm/arm.c (arm_function_arg_advance): Take a
6406 function_arg_info instead of a mode, type and named flag.
6407 (cmse_func_args_or_return_in_stack): Update call accordingly.
6408 (arm_function_ok_for_sibcall): Likewise.
6409 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6410 * config/avr/avr.c (avr_function_arg_advance): Take a
6411 function_arg_info instead of a mode, type and named flag.
6412 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6413 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6414 (c6x_call_saved_register_used): Update call accordingly.
6415 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6416 function_arg_info instead of a mode, type and named flag.
6417 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6418 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6419 (csky_setup_incoming_varargs): Update call accordingly.
6420 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6421 function_arg_info instead of a mode, type and named flag.
6422 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6423 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6424 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6425 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6426 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6427 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6428 (ix86_setup_incoming_varargs): Update call accordingly.
6429 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6430 function_arg_info instead of a mode, type and named flag.
6431 (ia64_setup_incoming_varargs): Update call accordingly.
6432 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6433 function_arg_info instead of a mode, type and named flag.
6434 (iq2000_expand_prologue): Update call accordingly.
6435 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6436 function_arg_info instead of a mode, type and named flag.
6437 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6438 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6439 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6440 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6441 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6442 Likewise.
6443 (microblaze_expand_prologue): Update call accordingly.
6444 * config/mips/mips.c (mips_function_arg_advance): Take a
6445 function_arg_info instead of a mode, type and named flag.
6446 (mips_setup_incoming_varargs): Update call accordingly.
6447 (mips_output_args_xfer): Likewise.
6448 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6449 function_arg_info instead of a mode, type and named flag.
6450 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6451 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6452 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6453 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6454 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6455 (nios2_setup_incoming_varargs): Update call accordingly.
6456 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6457 function_arg_info instead of a mode, type and named flag.
6458 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6459 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6460 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6461 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6462 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6463 (riscv_setup_incoming_varargs): Update call accordingly.
6464 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6465 function_arg_info instead of a mode, type and named flag.
6466 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6467 Likewise.
6468 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6469 (rs6000_parm_needs_stack): Update call accordingly.
6470 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6471 instead of a mode, type and named flag.
6472 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6473 (s390_call_saved_register_used): Update call accordingly.
6474 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6475 instead of a mode, type and named flag.
6476 (sh_output_mi_thunk): Update call accordingly.
6477 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6478 function_arg_info instead of a mode, type and named flag.
6479 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6480 (spu_setup_incoming_varargs): Update call accordingly.
6481 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6482 function_arg_info instead of a mode, type and named flag.
6483 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6484 (tilegx_setup_incoming_varargs): Update call accordingly.
6485 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6486 function_arg_info instead of a mode, type and named flag.
6487 (tilegx_setup_incoming_varargs): Update call accordingly.
6488 * config/v850/v850.c (v850_function_arg_advance): Take a
6489 function_arg_info instead of a mode, type and named flag.
6490 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6491 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6492 (visium_setup_incoming_varargs): Update call accordingly.
6493 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6494 function_arg_info instead of a mode, type and named flag.
6495
6496 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6497
6498 * target.def (function_arg, function_incoming_arg): Take a
6499 function_arg_info instead of a mode, tree and named flag.
6500 * doc/tm.texi: Regenerate.
6501 * targhooks.h (default_function_arg): Take a function_arg_info
6502 instead of a mode, tree and named flag.
6503 (default_function_incoming_arg): Likewise.
6504 * targhooks.c (default_function_arg): Likewise.
6505 (default_function_incoming_arg): Likewise.
6506 * calls.h (function_arg_info::end_marker_p): New function.
6507 (function_arg_info::end_marker): Likewise.
6508 * calls.c (prepare_call_address, initialize_argument_information)
6509 (expand_call, emit_library_call_value_1): Update calls to
6510 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6511 * dse.c: Include calls.h.
6512 (get_call_args): Update call to targetm.calls.function_arg.
6513 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6514 * var-tracking.c (prepare_call_arguments): Likewise.
6515 * function.c (assign_parm_find_entry_rtl): Update call to
6516 targetm.calls.function_incoming_arg.
6517 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6518 function_arg_info instead of a mode, tree and named flag.
6519 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6520 * config/arc/arc.c (arc_function_arg): Likewise.
6521 * config/arm/arm.c (arm_function_arg): Likewise.
6522 (cmse_func_args_or_return_in_stack): Update call accordingly.
6523 (arm_function_ok_for_sibcall): Likewise.
6524 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6525 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6526 instead of a mode, tree and named flag.
6527 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6528 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6529 (c6x_call_saved_register_used): Update call accordingly.
6530 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6531 instead of a mode, tree and named flag.
6532 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6533 (cris_function_arg_1): Likewise.
6534 * config/csky/csky.c (csky_function_arg): Likewise.
6535 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6536 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6537 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6538 (frv_function_arg_1): Likewise.
6539 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6540 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6541 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6542 * config/i386/i386.c (ix86_function_arg): Likewise.
6543 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6544 (ia64_function_arg_1): Likewise.
6545 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6546 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6547 accordingly.
6548 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6549 instead of a mode, tree and named flag.
6550 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6551 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6552 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6553 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6554 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6555 (microblaze_expand_prologue): Update call accordingly.
6556 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6557 instead of a mode, tree and named flag.
6558 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6559 (mmix_function_arg_1): Likewise.
6560 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6561 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6562 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6563 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6564 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6565 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6566 (nvptx_function_incoming_arg): Likewise.
6567 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6568 * config/pa/pa.c (pa_function_arg): Likewise.
6569 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6570 * config/pru/pru.c (pru_function_arg): Likewise.
6571 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6572 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6573 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6574 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6575 (rs6000_parm_needs_stack): Update call accordingly.
6576 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6577 instead of a mode, tree and named flag.
6578 * config/s390/s390.c (s390_function_arg): Likewise.
6579 (s390_call_saved_register_used): Update call accordingly.
6580 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6581 instead of a mode, tree and named flag.
6582 (sh_output_mi_thunk): Update call accordingly.
6583 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6584 (sparc_function_incoming_arg): Take a function_arg_info instead of
6585 a mode, tree and named flag.
6586 * config/spu/spu.c (spu_function_arg): Likewise.
6587 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6588 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6589 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6590 * config/v850/v850.c (v850_function_arg): Likewise.
6591 * config/vax/vax.c (vax_function_arg): Likewise.
6592 * config/visium/visium.c (visium_function_arg): Likewise.
6593 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6594 (xtensa_function_incoming_arg): Likewise.
6595
6596 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6597
6598 * target.def (setup_incoming_varargs): Take a function_arg_info
6599 instead of a mode and tree.
6600 * doc/tm.texi: Regenerate.
6601 * targhooks.h (default_setup_incoming_varargs): Take a
6602 function_arg_info instead of a mode and tree.
6603 * targhooks.c (default_setup_incoming_varargs): Likewise.
6604 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6605 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6606 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6607 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6608 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6609 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6610 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6611 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6612 Likewise.
6613 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6614 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6615 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6616 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6617 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6618 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6619 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6620 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6621 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6622 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6623 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6624 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6625 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6626 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6627 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6628 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6629 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6630 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6631 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6632 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6633 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6634 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6635 * function.c (assign_parms_setup_varargs): Update call to
6636 targetm.calls.setup_incoming_varargs.
6637
6638 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6639
6640 * target.def (pass_by_reference): Take a function_arg_info instead
6641 of a mode, type and named flag.
6642 * doc/tm.texi: Regenerate.
6643 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6644 accordingly.
6645 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6646 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6647 function_arg_info instead of a mode, type and named flag.
6648 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6649 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6650 mode, type and named flag.
6651 * calls.c (pass_by_reference): Likewise.
6652 (pass_va_arg_by_reference): Update call accordingly.
6653 (initialize_argument_information): Likewise.
6654 (emit_library_call_value_1): Likewise.
6655 * function.c (assign_parm_find_data_types): Likewise.
6656 * var-tracking.c (prepare_call_arguments): Likewise.
6657 * stor-layout.c: Include calls.h.
6658 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6659 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6660 function_arg_info instead of a mode, type and named flag.
6661 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6662 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6663 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6664 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6665 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6666 (c6x_call_saved_register_used): Update call to pass_by_reference.
6667 * config/cris/cris.c (cris_pass_by_reference): Take a
6668 function_arg_info instead of a mode, type and named flag.
6669 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6670 function_arg_info instead of a mode, type and named flag.
6671 (epiphany_arg_partial_bytes): Update call accordingly.
6672 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6673 function_arg_info instead of a mode, type and named flag.
6674 (ft32_arg_partial_bytes): Update call accordingly.
6675 * config/i386/i386.c (ix86_pass_by_reference): Take a
6676 function_arg_info instead of a mode, type and named flag.
6677 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6678 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6679 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6680 (m32r_return_in_memory): Update call accordingly.
6681 * config/mips/mips.c (mips_pass_by_reference): Take a
6682 function_arg_info instead of a mode, type and named flag.
6683 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6684 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6685 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6686 (moxie_arg_partial_bytes): Update call accordingly.
6687 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6688 function_arg_info instead of a mode, type and named flag.
6689 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6690 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6691 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6692 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6693 (riscv_return_in_memory): Update call accordingly.
6694 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6695 function_arg_info instead of a mode, type and named flag.
6696 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6697 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6698 * config/s390/s390.c (s390_pass_by_reference): Take a
6699 function_arg_info instead of a mode, type and named flag.
6700 (s390_call_saved_register_used): Update call accordingly.
6701 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6702 instead of a mode, type and named flag.
6703 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6704 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6705 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6706 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6707 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6708 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6709
6710 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6711
6712 * target.def (arg_partial_bytes): Take a function_arg_info instead
6713 of a mode, type and named flag.
6714 * doc/tm.texi: Regenerate.
6715 * target.h (function_arg_info): Declare.
6716 * calls.h (function_arg_info): New class.
6717 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6718 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6719 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6720 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6721 * calls.c (initialize_argument_information): Update call to
6722 targetm.calls.partial_bytes.
6723 (emit_library_call_value_1): Likewise.
6724 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6725 * function.c (assign_parm_find_entry_rtl): Likewise.
6726 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6727 function_arg_info instead of a mode, type and named flag.
6728 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6729 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6730 (cmse_func_args_or_return_in_stack): Update accordingly.
6731 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6732 function_arg_info instead of a mode, type and named flag.
6733 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6734 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6735 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6736 * config/fr30/fr30.c: Include calls.h.
6737 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6738 type and named flag.
6739 * config/frv/frv.c: Include calls.h.
6740 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6741 type and named flag.
6742 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6743 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6744 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6745 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6746 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6747 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6748 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6749 Likewise.
6750 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6751 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6752 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6753 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6754 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6755 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6756 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6757 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6758 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6759 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6760 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6761 (rs6000_parm_needs_stack): Update call accordingly.
6762 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6763 function_arg_info instead of a mode, type and named flag.
6764 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6765 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6766
6767 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6768
6769 * calls.h (must_pass_va_arg_in_stack): Declare.
6770 * calls.c (must_pass_va_arg_in_stack): New function.
6771 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6772 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6773 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6774 Likewise.
6775 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6776
6777 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6778
6779 * calls.h (pass_va_arg_by_reference): Declare.
6780 * calls.c (pass_va_arg_by_reference): New function.
6781 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6782 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6783 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6784 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6785 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6786 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6787 (mips_gimplify_va_arg_expr): Likewise.
6788 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6789 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6790 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6791 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6792 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6793 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6794 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6795 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6796 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6797 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6798 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6799
6800 2019-08-20 Richard Biener <rguenther@suse.de>
6801
6802 PR target/91498
6803 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6804 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6805 (convert_scalars_to_vector): Add timode_p parameter and use it
6806 to guard TImode-only operation.
6807 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6808 (pass_stv::execute): Pass down timode_p.
6809
6810 2019-08-20 Lili Cui <lili.cui@intel.com>
6811
6812 * common/config/i386/i386-common.c
6813 (processor_names): Add tigerlake and cooperlake.
6814 (processor_alias_table): Add tigerlake and cooperlake.
6815 * config.gcc: Add -march=tigerlake and cooperlake.
6816 * config/i386/driver-i386.c
6817 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6818 Add "has_avx" to classify processor.
6819 * config/i386/i386-builtins.c (processor_model) :
6820 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6821 (arch_names_table): Add tigerlake and cooperlake.
6822 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6823 and PROCESSOR_COOPERLAKE.
6824 * config/i386/i386-c.c
6825 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6826 * config/i386/i386-options.c
6827 (m_TIGERLAKE) : Define.
6828 (m_COOPERLAKE) : Ditto.
6829 (m_CORE_AVX512): Ditto.
6830 (processor_cost_table): Add cascadelake.
6831 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6832 * config/i386/i386.h
6833 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6834 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6835 (PTA_MOVDIRI): Ditto.
6836 (PTA_MOVDIR64B): Ditto.
6837 (PTA_COOPERLAKE) : Ditto.
6838 (PTA_TIGERLAKE) : Ditto.
6839 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6840 * doc/extend.texi: Add tigerlake and cooperlake.
6841 * doc/invoke.texi: Add tigerlake and cooperlake.
6842
6843 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6844
6845 * doc/install.texi (Specific, alpha): Remove note to use
6846 binutils 2.11.2 or later.
6847
6848 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6849
6850 PR middle-end/89544
6851 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6852 when possible.
6853
6854 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6855
6856 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6857 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6858 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6859 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6860 * config/aarch64/constraints.md (Dt): New constraint
6861 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6862
6863 2019-08-19 Richard Biener <rguenther@suse.de>
6864
6865 PR tree-optimization/91403
6866 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6867 cases we can handle with tail-recursion...
6868 (follow_ssa_edge_expr): ... here. Do so.
6869
6870 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6871
6872 PR target/91441
6873 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6874 implemented for -fsanitize=kernel-address, and merge check logic
6875 with -fsanitize=address.
6876
6877 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6878
6879 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6880 for cpu and machine. Factor 64/32b builtins.
6881
6882 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6883
6884 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6885 gone, point to sourceforge.net.
6886
6887 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6888
6889 * doc/ux.texi (User Experience Guidelines): Update reference.
6890
6891 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6892
6893 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6894 not LGPL".
6895
6896 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6897
6898 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6899 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6900
6901 2019-08-16 Martin Sebor <msebor@redhat.com>
6902
6903 * tree.def (TYPE_SIZE): Clarify.
6904 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6905
6906 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6907
6908 PR tree-optimization/91109
6909 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6910 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6911 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6912
6913 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6914
6915 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6916 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6917 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6918 (uavg<mode>3_ceil): New expander.
6919 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6920 mode iterator when creating CONST1_RTX.
6921 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6922 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6923 mode iterator for const1_operand predicate.
6924
6925 2019-08-16 Richard Biener <rguenther@suse.de>
6926
6927 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6928 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6929 follow_ssa_edge.
6930 (follow_ssa_edge_in_condition_phi_branch): Likewise.
6931 (analyze_evolution_in_loop): Likewise.
6932 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6933 (follow_ssa_edge_expr): ... here. Refactor code.
6934
6935 2019-08-16 Richard Biener <rguenther@suse.de>
6936
6937 PR target/91469
6938 * config/i386/i386-features.c
6939 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6940
6941 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6942
6943 PR other/91255
6944 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6945 only if subst_name matches curr_attr string.
6946
6947 2019-08-16 Richard Biener <rguenther@suse.de>
6948
6949 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6950 stmt at gsi_p, instead replace it with a NOP removed later.
6951 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6952 that became dead because of that.
6953
6954 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
6955
6956 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6957 for which we can't represent a range.
6958 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6959 set_varying.
6960 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6961 Set VR_UNDEFINED if type is not supported.
6962 * tree-ssanames.c (get_range_info): Pass type to set_varying.
6963 * tree-vrp.c (value_range_base::check): Assert that a varying has
6964 min/max set.
6965 (value_range_base::equal_p): Early bail for undefines.
6966 (value_range_base::set_varying): Accept a type.
6967 (value_range::set_varying): Same.
6968 (value_range_base::type): VARYING can have a type, while UNDEFINE
6969 is typeless.
6970 (value_range_base::dump): Print type for VARYING nodes.
6971 (value_range_base::set): Add type to VARYING.
6972 (extract_range_from_multiplicative_op): Pass type to set_varying.
6973 (extract_range_from_binary_expr): Same.
6974 (value_range_base::intersect_helper): Same.
6975 (value_range_base::union_helper): Same.
6976 (value_range_base::normalize_symbolics): Same.
6977 (determine_value_range_1): Same.
6978 * tree-vrp.h (class value_range_base): Add type to set_varying.
6979 Add prototype for dump(void).
6980 Add prototype for supports_type_p.
6981 (class value_range): Add type to set_varying.
6982 Add prototype for dump(void).
6983 * vr-values.c (set_value_range_to_truthvalue): Pass type to
6984 set_varying.
6985 (vr_values::get_lattice_entry): Set varying even if propagation
6986 finished.
6987 Pass type to set_varying.
6988 (vr_values::get_value_range): Remove vr_const_varying.
6989 Reallocate the lattice if needed.
6990 (vr_values::update_value_range): Pass type to set_varying.
6991 (vr_values::extract_range_for_var_from_comparison_expr): Same.
6992 (vr_values::extract_range_from_binary_expr): Same.
6993 (vr_values::extract_range_from_unary_expr): Same.
6994 (vr_values::extract_range_from_cond_expr): Same.
6995 (vr_values::check_for_binary_op_overflow): Same.
6996 (vr_values::extract_range_basic): Same.
6997 (vr_values::extract_range_from_assignment): Same.
6998 (vr_values::vr_values): Increase size of num_vr_values.
6999 (vr_values::extract_range_from_phi_node): Pass type to
7000 set_varying.
7001
7002 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7003
7004 PR target/90878
7005 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7006 for costs of hard register moves.
7007 (ix86_register_move_cost): Likewise.
7008 * config/i386/i386.h (processor_costs): Move costs of hard
7009 register moves to hard_register. Add int_load, int_store,
7010 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7011 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7012 for costs of RTL expressions.
7013 * config/i386/x86-tune-costs.h: Move costs of hard register
7014 moves to hard_register. Duplicate int_load, int_store,
7015 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7016 sse_load, sse_store for costs of RTL expressions.
7017
7018 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7019
7020 * target.def (setup_incoming_vararg_bounds): Remove.
7021 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7022 * doc/tm.texi: Regenerate.
7023 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7024 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7025 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7026 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7027
7028 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7029
7030 MSP430: Fix lines over 80 characters long in
7031 config/msp430/*.{c,h} files
7032
7033 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7034 specifier in string.
7035 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7036 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7037 redundant old comment.
7038 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7039 Split line more than 80 characters long.
7040 * config/msp430/msp430.c (msp430_option_override): Likewise.
7041 (msp430_return_in_memory): Likewise.
7042 (msp430_gimplify_va_arg_expr): Likewise.
7043 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7044 (msp430_legitimate_constant): Likewise.
7045 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7046 (msp430_attr): Likewise.
7047 (msp430_data_attr): Likewise.
7048 (msp430_start_function): Likewise.
7049 (gen_prefix): Likewise.
7050 (msp430_init_sections): Likewise.
7051 (msp430_select_section): Likewise.
7052 (msp430_function_section): Likewise.
7053 (msp430_unique_section): Likewise.
7054 (msp430_output_aligned_decl_common): Likewise.
7055 (msp430_do_not_relax_short_jumps): Likewise.
7056 (msp430_init_builtins): Likewise.
7057 (msp430_expand_delay_cycles): Likewise.
7058 (msp430_expand_prologue): Likewise.
7059 (msp430_expand_epilogue): Likewise.
7060 (msp430_expand_helper): Likewise.
7061 (msp430_split_movsi): Likewise.
7062 (msp430_print_operand): Likewise.
7063 (msp430_return_addr_rtx): Likewise.
7064 (msp430x_extendhisi): Likewise.
7065 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7066 (ASM_SPEC): Likewise.
7067 Remove very obvious comments.
7068 (LIB_SPEC): Split line more than 80 characters long.
7069 (EH_RETURN_HANDLER_RTX): Likewise.
7070 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7071
7072 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7073
7074 MSP430: Fix whitespace errors and incorrect indentation in
7075 config/msp430/*.{c,h} files
7076
7077 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7078 (msp430_select_hwmult_lib): Likewise.
7079 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7080 (msp430_extract_mcu_data): Likewise.
7081 (struct t_msp430_mcu_data): Likewise.
7082 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7083 before left square bracket.
7084 (msp430_option_override): Fix indentation.
7085 (msp430_hard_regno_nregs_with_padding): Likewise.
7086 (msp430_initial_elimination_offset): Likewise.
7087 (msp430_special_register_convention_p): Remove whitespace before left
7088 square bracket and after exclamation mark.
7089 (msp430_evaluate_arg): Likewise.
7090 (msp430_callee_copies): Fix indentation.
7091 (msp430_gimplify_va_arg_expr): Likewise.
7092 (msp430_function_arg_advance): Remove whitespace before left square
7093 bracket.
7094 (reg_ok_for_addr): Likewise.
7095 (msp430_preserve_reg_p): Likewise.
7096 (msp430_compute_frame_info): Likewise.
7097 (msp430_asm_output_addr_const_extra): Add space between function name
7098 and open parenthesis.
7099 (has_section_name): Fix indentation.
7100 (msp430_attr): Remove trailing whitespace.
7101 (msp430_section_attr): Likewise.
7102 (msp430_data_attr): Likewise.
7103 (struct msp430_attribute_table): Fix comment and whitespace.
7104 (msp430_start_function): Remove whitespace before left square bracket.
7105 Add space between function name and open parenthesis.
7106 (msp430_select_section): Remove trailing whitespace.
7107 (msp430_section_type_flags): Remove trailing whitespace.
7108 (msp430_unique_section): Remove space before closing parenthesis.
7109 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7110 (msp430_builtins): Remove whitespace before left square bracket.
7111 (msp430_init_builtins): Fix indentation.
7112 (msp430_expand_prologue): Remove whitespace before left square bracket.
7113 Remove space before closing parenthesis.
7114 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7115 (msp430_split_movsi): Remove space before closing parenthesis.
7116 (helper_function_name_mappings): Fix indentation.
7117 (msp430_use_f5_series_hwmult): Fix whitespace.
7118 (use_32bit_hwmult): Likewise.
7119 (msp430_no_hwmult): Likewise.
7120 (msp430_output_labelref): Remove whitespace before left square bracket.
7121 (msp430_print_operand_raw): Likewise.
7122 (msp430_print_operand_addr): Likewise.
7123 (msp430_print_operand): Add two spaces after '.' in comment.
7124 Fix trailing whitespace.
7125 (msp430x_extendhisi): Fix indentation.
7126 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7127 tab.
7128 (PC_REGNUM): Likewise.
7129 (STACK_POINTER_REGNUM): Likewise.
7130 (CC_REGNUM): Likewise.
7131
7132 2019-08-15 Richard Biener <rguenther@suse.de>
7133
7134 PR target/91454
7135 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7136 helper.
7137 (general_scalar_chain::make_vector_copies): Use it.
7138
7139 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7140
7141 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7142
7143 2019-08-15 Martin Liska <mliska@suse.cz>
7144
7145 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7146 operators with no arguments.
7147 (eliminate_unnecessary_stmts): Likewise here.
7148
7149 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7150
7151 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7152 <case COMPARE>: Revert 2019-08-14 change.
7153 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7154 for (TARGET_64BIT || mode != DImode).
7155
7156 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7157
7158 * tree-vrp.c (value_range_base::set): Merge in code from
7159 value_range_base::set_and_canonicalize.
7160 Enforce canonicalization at set time.
7161 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7162 (value_range_base::set_undefined): Inline call to set().
7163 (value_range_base::set_varying): Same.
7164 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7165 (vrp_val_max): New argument handle_pointers.
7166 (vrp_val_min): Same.
7167 (ranges_from_anti_range): Same.
7168 (extract_range_into_wide_ints): Use tree argument instead of sign
7169 and precision.
7170 (extract_range_from_multiplicative_op): Take in tree type instead
7171 of precision and sign. Adapt function for canonicalized ranges.
7172 (extract_range_from_binary_expr): Pass type to
7173 extract_range_from_multiplicative_op.
7174 Adapt for canonicalized ranges.
7175 (extract_range_from_unary_expr): Same.
7176 (value_range_base::intersect_helper): Adjust for canonicalized
7177 ranges.
7178 (value_range_base::union_helper): Same.
7179 (value_range_base::normalize_symbolics): New.
7180 * tree-vrp.h (class value_range_base): Remove
7181 set_and_canonicalize.
7182 New prototype for normalize_symbolics.
7183 (class value_range): Remove set_and_canonicalize.
7184 (vrp_val_min): Adjust prototype.
7185 (vrp_val_max): Same.
7186 * vr-values.c
7187 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7188 instead of set_and_canonicalize.
7189
7190 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7191
7192 PR middle-end/91444
7193 * tree-vect-stmts.c (vectorizable_call): Check that the function
7194 is a BUILT_IN_MD function before passing it to
7195 targetm.vectorize.builtin_md_vectorized_function.
7196
7197 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7198
7199 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7200 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7201 (aarch64_select_early_remat_modes): Use it.
7202
7203 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7204
7205 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7206 16 for SVE predicates even if they are fixed-length.
7207
7208 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7209
7210 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7211 operand order match the MOV /Z alias.
7212
7213 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7214
7215 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7216 the vector pattern as an aarch64_svpattern argument. Update the
7217 overloaded caller accordingly.
7218 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7219 (aarch64_output_sve_vector_inc_dec): Likewise.
7220
7221 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7222
7223 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7224 multiplication case, try to compute VG * (lowest set bit) directly
7225 rather than always basing the multiplication on VG. Use
7226 expand_mult for the multiplication if we can.
7227
7228 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7229
7230 * config/aarch64/aarch64-protos.h
7231 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7232 (aarch64_sve_inc_dec_immediate_p): Rename to...
7233 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7234 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7235 (aarch64_output_sve_scalar_inc_dec): Declare.
7236 (aarch64_output_sve_inc_dec_immediate): Rename to...
7237 (aarch64_output_sve_vector_inc_dec): ...this.
7238 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7239 (aarch64_output_sve_scalar_inc_dec): New functions.
7240 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7241 arguments. Only handle true ADDVL and ADDPL instructions;
7242 don't emit an INC or DEC.
7243 (aarch64_sve_inc_dec_immediate_p): Rename to...
7244 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7245 (aarch64_output_sve_inc_dec_immediate): Rename to...
7246 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7247 aarch64_sve_vector_inc_dec_immediate_p.
7248 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7249 (aarch64_sve_plus_immediate): New predicates.
7250 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7251 rather than aarch64_sve_addvl_addpl_immediate.
7252 (aarch64_sve_inc_dec_immediate): Rename to...
7253 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7254 aarch64_sve_vector_inc_dec_immediate_p.
7255 (aarch64_sve_add_operand): Update accordingly.
7256 * config/aarch64/constraints.md (Uai): New constraint.
7257 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7258 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7259 operand into a register if it satisfies aarch64_sve_plus_immediate.
7260 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7261 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7262 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7263 aarch64_output_sve_vector_inc_dec instead of
7264 aarch64_output_sve_inc_dec_immediate.
7265
7266 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7267
7268 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7269 (UNSPEC_REVW): New constants.
7270 (elem_bits): New mode attribute.
7271 (SVE_INT_UNARY): New int iterator.
7272 (optab): Handle UNSPEC_REV[BHW].
7273 (sve_int_op): New int attribute.
7274 (min_elem_bits): Handle VNx16QI and the predicate modes.
7275 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7276 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7277 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7278 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7279 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7280 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7281 unspecs based on the total width of the reversed data.
7282 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7283 reinterpret followed by a subreg on big-endian targets.
7284
7285 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7286 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7287
7288 * config/aarch64/aarch64-sve.md
7289 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7290 alternatives in which one of the inputs is in the same register
7291 as the output.
7292
7293 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7294
7295 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7296 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7297
7298 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7299
7300 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7301 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7302
7303 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7304 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7305
7306 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7307 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7308 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7309
7310 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7311 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7312
7313 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7314 Add an alternative that uses reversed shifts.
7315
7316 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7317
7318 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7319 struct.
7320
7321 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7322
7323 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7324 a commutativity marker.
7325
7326 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7327 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7328
7329 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7330 (aarch64_prepare_sve_cond_int_fma): Declare.
7331 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7332 (aarch64_prepare_sve_int_fma): New functions.
7333 (aarch64_prepare_sve_cond_int_fma): Likewise.
7334 * config/aarch64/aarch64-sve.md
7335 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7336 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7337 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7338 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7339 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7340 (*madd<mode>): Rename to...
7341 (*fma<mode>4): ...this.
7342 (*msub<mode>): Rename to...
7343 (*fnma<mode>4): ...this.
7344
7345 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7346 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7347
7348 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7349 Print 2.0 naturally.
7350 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7351 * config/aarch64/predicates.md
7352 (aarch64_sve_float_negated_arith_immediate): New predicate,
7353 renamed from aarch64_sve_float_arith_with_sub_immediate.
7354 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7355 positive and negative constants.
7356 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7357 or an aarch64_sve_float_arith_with_sub_immediate.
7358 * config/aarch64/constraints.md (vsN): Use
7359 aarch64_sve_float_negated_arith_immediate.
7360 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7361 iterator.
7362 (sve_pred_fp_rhs2_immediate): New int attribute.
7363 * config/aarch64/aarch64-sve.md
7364 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7365 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7366 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7367 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7368 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7369 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7370
7371 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7372 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7373
7374 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7375 (*aarch64_cond_abd<SVE_F:mode>_3)
7376 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7377
7378 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7379 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7380
7381 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7382 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7383
7384 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7385 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7386
7387 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7388 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7389 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7390 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7391 optabs.
7392 * optabs.h (create_convert_operand_from): Expand comment.
7393 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7394 when mapping scalar rtxes to vector operands.
7395 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7396 ashiftrt and lshiftrt.
7397 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7398 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7399 (*cond_<optab><mode>_any_const): New patterns.
7400
7401 2019-08-15 Martin Liska <mliska@suse.cz>
7402
7403 PR ipa/91438
7404 * cgraph.c (cgraph_node::remove): When setting
7405 n->origin = NULL for all nested functions, reset
7406 also next_nested.
7407
7408 2019-08-15 Martin Liska <mliska@suse.cz>
7409
7410 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7411 and next_nested.
7412
7413 2019-08-15 Martin Liska <mliska@suse.cz>
7414
7415 PR ipa/91404
7416 * passes.c (order): Remove.
7417 (uid_hash_t): Likewise).
7418 (remove_cgraph_node_from_order): Remove from set
7419 of pointers (cgraph_node *).
7420 (insert_cgraph_node_to_order): New.
7421 (duplicate_cgraph_node_to_order): New.
7422 (do_per_function_toporder): Register all 3 cgraph hooks.
7423 Skip removed_nodes now as we know about all of them.
7424
7425 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7426
7427 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7428 <case E_V8QImode>: Use vector_set path for
7429 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7430 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7431 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7432
7433 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7434
7435 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7436
7437 2019-08-14 Martin Sebor <msebor@redhat.com>
7438
7439 PR tree-optimization/91294
7440 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7441 source length as exact.
7442
7443 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7444
7445 * doc/extend.texi: Add "noinit" attribute documentation.
7446 * doc/sourcebuild.texi: Add noinit effective target documentation.
7447 * varasm.c (default_section_type_flags): Add support for "noinit"
7448 section.
7449 (default_elf_select_section): Add support for "noinit" attribute.
7450 * config/msp430/msp430.c (msp430_attribute_table): Remove
7451 "noinit" entry.
7452
7453 2019-08-14 Richard Biener <rguenther@suse.de>
7454 Uroš Bizjak <ubizjak@gmail.com>
7455
7456 PR target/91154
7457 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7458 mode arguments.
7459 (scalar_chain::smode): New member.
7460 (scalar_chain::vmode): Likewise.
7461 (dimode_scalar_chain): Rename to...
7462 (general_scalar_chain): ... this.
7463 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7464 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7465 base with TImode and V1TImode.
7466 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7467 (general_scalar_chain::vector_const_cost): Adjust for SImode
7468 chains.
7469 (general_scalar_chain::compute_convert_gain): Likewise. Add
7470 {S,U}{MIN,MAX} support.
7471 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7472 (general_scalar_chain::make_vector_copies): Likewise. Handle
7473 non-DImode chains appropriately.
7474 (general_scalar_chain::convert_reg): Likewise.
7475 (general_scalar_chain::convert_op): Likewise.
7476 (general_scalar_chain::convert_insn): Likewise. Add
7477 fatal_insn_not_found if the result is not recognized.
7478 (convertible_comparison_p): Pass in the scalar mode and use that.
7479 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7480 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7481 (scalar_to_vector_candidate_p): Remove by inlining into single
7482 caller.
7483 (general_remove_non_convertible_regs): Rename from
7484 dimode_remove_non_convertible_regs.
7485 (remove_non_convertible_regs): Remove by inlining into single caller.
7486 (convert_scalars_to_vector): Handle SImode and DImode chains
7487 in addition to TImode chains.
7488 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7489 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7490 (*<maxmin>di3_doubleword): Likewise.
7491
7492 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7493 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7494
7495 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7496 (*cond_bic<mode>_any): New patterns.
7497
7498 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7499
7500 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7501 take the equivalent mask, as well as a bit count.
7502 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7503 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7504 (aarch64_sve_pred_and_operand): New predicates.
7505 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7506 code attribute.
7507 * config/aarch64/aarch64-sve.md
7508 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7509 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7510
7511 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7512
7513 * config/aarch64/aarch64-sve.md
7514 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7515 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7516 New patterns.
7517
7518 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7519 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7520
7521 * config/aarch64/aarch64-sve.md
7522 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7523 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7524
7525 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7526 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7527
7528 * config/aarch64/aarch64-sve.md
7529 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7530 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7531
7532 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7533
7534 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7535 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7536 New pattern.
7537
7538 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7539 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7540
7541 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7542
7543 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7544 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7545
7546 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7547 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7548 (aarch64_print_operand): Add support for %I.
7549 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7550 Bitcast floating-point constants to the corresponding integer constant.
7551 (aarch64_float_const_representable_p): Handle vectors as well
7552 as scalars.
7553 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7554 for the new vcond_mask_<mode><vpred> expander.
7555 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7556 test aarch64_float_const_representable_p.
7557 (aarch64_sve_reg_or_dup_imm): New predicate.
7558 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7559 gen_vcond_mask_<mode><vpred> instead of
7560 gen_aarch64_sve_dup<mode>_const.
7561 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7562 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7563 for operands 1 and 2 respectively. Force operand 2 into a
7564 register if operand 1 is a register. Fold old define_insn...
7565 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7566 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7567 floating-point constants that can be moved as integers. Add
7568 alternatives for MOV /M and FMOV /M.
7569 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7570 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7571 1 and 2 respectively.
7572 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7573 as scalars.
7574 (vss): New constraint.
7575
7576 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7577
7578 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7579 (aarch64_sve_float_maxmin_operand): New predicates.
7580 * config/aarch64/constraints.md (vsB): New constraint.
7581 (vsM): Fix typo.
7582 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7583 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7584 UNSPEC_COND_FMINNM.
7585 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7586 Use aarch64_sve_float_maxmin_operand for operand 2.
7587 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7588 Add alternatives for the constant forms.
7589
7590 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7591
7592 * config/aarch64/constraints.md (vsb): New constraint.
7593 (vsm): Generalize description.
7594 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7595 iterator.
7596 (sve_imm_con): Handle smax, smin, umax and umin.
7597 (sve_imm_prefix): New code attribute.
7598 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7599 (aarch64_sve_vsb_operand): New predicates.
7600 (aarch64_sve_mul_immediate): Rename to...
7601 (aarch64_sve_vsm_immediate): ...this.
7602 (aarch64_sve_mul_operand): Rename to...
7603 (aarch64_sve_vsm_operand): ...this.
7604 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7605 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7606 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7607 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7608 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7609 add movprfx support for the immediate alternatives.
7610 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7611 of the above.
7612 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7613 for operand 3.
7614
7615 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7616
7617 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7618 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7619 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7620
7621 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7622
7623 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7624 (optab, sve_int_op): Handle them.
7625 * config/aarch64/aarch64-sve.md: Expand comment.
7626
7627 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7628
7629 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7630 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7631 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7632
7633 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7634
7635 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7636 (aarch64_expand_sve_const_pred_trn): New functions.
7637 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7638 use the above functions when the parameter is true.
7639 (aarch64_expand_sve_const_pred): Update call accordingly.
7640 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7641 Rename to...
7642 (@aarch64_sve_<perm_insn><mode>): ...this.
7643
7644 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7645
7646 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7647 Declare.
7648 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7649 (aarch64_sve_emit_int_cmp): New functions.
7650 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7651 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7652 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7653 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7654 (UNSPEC_PRED_Z): New unspec.
7655 (set_clobber_cc_nzc): Delete.
7656 * config/aarch64/aarch64-sve.md: Add a block comment about
7657 UNSPEC_PRED_Z.
7658 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7659 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7660 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7661 UNSPEC_MERGE_PTRUE.
7662 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7663 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7664 check for compatible predicates.
7665 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7666 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7667 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7668 comparisons above.
7669
7670 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7671
7672 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7673 * config/aarch64/aarch64-sve.md: Add a section describing it.
7674 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7675 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7676 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7677 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7678 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7679 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7680 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7681 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7682 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7683 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7684 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7685 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7686 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7687 (aarch64_evpc_rev_local): Update accordingly.
7688
7689 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7690
7691 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7692 iterators.
7693 (SVE_BHSI, SVE_SDI): Tweak comment.
7694 (SVE_HSDI): Likewise. Fix definition.
7695 (SVE_SDF): New mode iterator.
7696 (elem_bits): New mode attribute.
7697 (SVE_COND_FCVT): New int iterator.
7698 * config/aarch64/aarch64-sve.md
7699 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7700 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7701 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7702 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7703 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7704 ...these new patterns.
7705 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7706 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7707 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7708 Merge into...
7709 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7710 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7711 ...these new patterns.
7712 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7713 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7714 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7715 ...this new pattern.
7716 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7717 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7718 ...this new pattern.
7719 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7720
7721 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7722
7723 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7724 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7725 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7726 unspecs.
7727 (optab, su): Handle them.
7728 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7729 * config/aarch64/aarch64-sve.md
7730 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7731 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7732 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7733 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7734 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7735 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7736 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7737 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7738 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7739 FIXUORS.
7740 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7741 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7742 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7743 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7744 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7745 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7746 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7747 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7748 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7749 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7750 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7751 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7752 of UNSPEC_FLOAT_CONVERT.
7753 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7754 aarch64_sve_extend<mode><Vwide>2.
7755
7756 2019-08-14 Richard Biener <rguenther@suse.de>
7757
7758 PR target/91154
7759 * config/i386/i386-features.c
7760 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7761 individual instruction gain. Fix reg-reg copy GRP cost. Use
7762 ix86_cost->sse_op for vector instruction costs.
7763
7764 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7765
7766 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7767 (cmp_op): Handle it.
7768 (SVE_COND_FP_CMP): Rename to...
7769 (SVE_COND_FP_CMP_I0): ...this.
7770 (SVE_FP_CMP): Remove.
7771 * config/aarch64/aarch64-sve.md
7772 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7773 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7774 using unspecs to represent the comparison.
7775 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7776 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7777 accordingly.
7778 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7779 (aarch64_unspec_cond_code): Move after integer code. Handle
7780 UNORDERED.
7781 (aarch64_emit_sve_predicated_cond): Replace with...
7782 (aarch64_emit_sve_fp_cond): ...this new function.
7783 (aarch64_emit_sve_or_conds): Replace with...
7784 (aarch64_emit_sve_or_fp_conds): ...this new function.
7785 (aarch64_emit_sve_inverted_cond): Replace with...
7786 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7787 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7788
7789 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7790
7791 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7792 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7793 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7794 SVE_HSD instead of SVE_SD.
7795
7796 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7797 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7798
7799 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7800 iterator.
7801 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7802 attributes.
7803 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7804 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7805 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7806 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7807 (*div<SVE_F:mode>3): Generalize to...
7808 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7809
7810 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7811 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7812
7813 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7814 constants.
7815 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7816 predicate.
7817 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7818 Declare.
7819 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7820 function.
7821 * config/aarch64/aarch64-sve.md: Add a block comment about the
7822 handling of predicated FP operations.
7823 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7824 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7825 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7826 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7827 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7828 operand.
7829 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7830 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7831 operand.
7832 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7833 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7834 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7835 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7836 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7837 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7838 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7839 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7840 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7841 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7842 strictness operands. Use aarch64_sve_pred_dominates_p to check
7843 whether the predicate on the conditional operation is suitable
7844 for merging. Split patterns into the canonical equal-predicate form.
7845 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7846 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7847
7848 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7849 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7850
7851 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7852 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7853 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7854 rtx codes.
7855 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7856 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7857 unspecs.
7858
7859 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7860 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7861
7862 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7863 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7864 actually has, rather than relying on REG_EQUAL notes.
7865 Make the insn operand order match the SVE operand order.
7866 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7867 the SVE operand order.
7868
7869 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7870
7871 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7872 (aarch64_emit_set_immediate): Likewise.
7873 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7874 (aarch64_pfalse_reg): Likewise.
7875 (aarch64_convert_sve_data_to_pred): New function.
7876 (aarch64_sve_move_pred_via_while): Take an optional target register
7877 and the required register mode.
7878 (aarch64_expand_sve_const_pred_1): New function.
7879 (aarch64_expand_sve_const_pred): Likewise.
7880 (aarch64_expand_mov_immediate): Build an all-true predicate
7881 if the significant bits of the immediate are all true. Use
7882 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7883 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7884 before register allocation.
7885 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7886 a VNx16BI PTRUE when splitting the memory alternative.
7887 (vec_duplicate<mode>): Update accordingly.
7888 (*pred_cmp<cmp_op><mode>): Rename to...
7889 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7890
7891 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7892
7893 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7894 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7895 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7896 (UNSPEC_PTEST): New unspec.
7897 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7898 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7899 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7900 * config/aarch64/aarch64-sve.md: Add a new section describing the
7901 handling of UNSPEC_PTEST.
7902 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7903 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7904 (ptest_ptrue<mode>): Replace with...
7905 (aarch64_ptest<mode>): ...this new pattern.
7906 (cbranch<mode>4): Update after above changes.
7907 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7908 UNSPEC_PTEST_PTRUE.
7909 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7910 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7911 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7912
7913 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7914
7915 PR lto/91287
7916 * builtins.c (builtin_with_linkage_p): New function.
7917 * builtins.h (builtin_with_linkage_p): New function.
7918 * symtab.c (write_symbol): Remove redundant assert.
7919 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7920 Remove FIXME and use builtin_with_linkage_p.
7921
7922 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7923
7924 PR middle-end/91421
7925 * tree-core.h (function_decl::function_code): Change type to
7926 unsigned int.
7927 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7928 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7929 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7930 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
7931 is BUILT_IN_NORMAL.
7932 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7933 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7934 (fndecl_built_in_p): Change the type of the "name" argument to
7935 unsigned int.
7936 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7937 after check for DECL_BUILT_IN_CLASS.
7938 * cgraphclones.c (build_function_decl_skip_args): Use
7939 set_decl_built_in_function.
7940 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7941 * ipa-split.c (split_function): Likewise.
7942 * langhooks.c (add_builtin_function_common): Likewise.
7943 * omp-simd-clone.c (simd_clone_create): Likewise.
7944 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7945 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7946 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7947 DECL_FUNCTION_CODE.
7948 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7949 instead of DECL_FUNCTION_CODE.
7950 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7951 instead of DECL_FUNCTION_CODE.
7952 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7953 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7954 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
7955 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7956 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7957 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7958 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7959 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7960 (alpha_gimple_fold_builtin): Likewise.
7961 * config/arc/arc.c (arc_expand_builtin): Likewise.
7962 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7963 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7964 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7965 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
7966 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
7967 * config/frv/frv.c (frv_expand_builtin): Likewise.
7968 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
7969 (gcn_expand_builtin): Likewise.
7970 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
7971 (fold_builtin_cpu): Likewise.
7972 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
7973 * config/i386/i386.c (ix86_fold_builtin): Likewise.
7974 (ix86_gimple_fold_builtin): Likewise.
7975 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
7976 (ia64_expand_builtin): Likewise.
7977 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
7978 * config/mips/mips.c (mips_expand_builtin): Likewise.
7979 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
7980 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
7981 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
7982 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
7983 * config/pa/pa.c (pa_expand_builtin): Likewise.
7984 * config/pru/pru.c (pru_expand_builtin): Likewise.
7985 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
7986 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7987 Likewise.
7988 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
7989 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
7990 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
7991 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
7992 (rs6000_builtin_reciprocal): Likewise.
7993 * config/rx/rx.c (rx_expand_builtin): Likewise.
7994 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
7995 * config/s390/s390.c (s390_expand_builtin): Likewise.
7996 * config/sh/sh.c (sh_expand_builtin): Likewise.
7997 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
7998 (sparc_fold_builtin): Likewise.
7999 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8000 * config/spu/spu.c (spu_expand_builtin): Likewise.
8001 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8002 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8003 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8004 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8005 (xtensa_expand_builtin): Likewise.
8006
8007 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8008
8009 PR middle-end/91421
8010 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8011 before the DECL_FUNCTION_CODE.
8012 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8013 to check for a BUILT_IN_ALLOCA call.
8014 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8015 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8016 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8017 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8018 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8019 for BUILT_IN_NORMAL functions.
8020 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8021 test for BUILT_IN_TM_ABORT.
8022 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8023 to check for a BUILT_IN_STACK_RESTORE call.
8024 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8025 * tree-ssa-threadedge.c
8026 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8027 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8028 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8029 test for a BUILT_IN_NORMAL call instead of a negative test for
8030 an internal function call.
8031
8032 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8033
8034 * tree.h (build_vector_a_then_b): Declare.
8035 * tree.c (build_vector_a_then_b): New function.
8036 * fold-const-call.c (fold_while_ult): Likewise.
8037 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8038 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8039 (aarch64_svpattern): New enum.
8040 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8041 constants through aarch64_expand_mov_immediate.
8042 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8043 than general_operand as the predicate for operand 1.
8044 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8045 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8046 insn_type.
8047 (simd_immediate_info::simd_immediate_info): New overload that
8048 takes a scalar_int_mode and an svpattern.
8049 (simd_immediate_info::u): Add a "pattern" field.
8050 (svpattern_token): New function.
8051 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8052 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8053 (aarch64_sve_move_pred_via_while): New functions.
8054 (aarch64_expand_mov_immediate): Try using
8055 aarch64_sve_move_pred_via_while for predicates that contain N ones
8056 followed by M zeros but that do not correspond to a VLnnn pattern.
8057 (aarch64_sve_pred_valid_immediate): New function.
8058 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8059 with PTRUE and PFALSE.
8060 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8061 forms.
8062
8063 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8064
8065 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8066 flag.
8067 (darwin_override_options): Likewise.
8068 * config/darwin.h: Likewise.
8069 * config/darwin.opt: Likewise.
8070 * config/i386/i386.c (output_pic_addr_const): Likewise.
8071 * config/rs6000/darwin.h: Likewise.
8072 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8073 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8074 ... this TARGET_MACHO_SYMBOL_STUBS.
8075 (FUNCTION_PROFILER):Likewise.
8076 * config/i386/i386.h: Likewise.
8077
8078 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8079
8080 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8081 <case E_V2SImode>: Use vec_extr path for
8082 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8083 <case E_V8QImode>: Ditto.
8084 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8085 Use SWI48 mode iterator. Use %k to output operand 0.
8086 (*mmx_pextrw): New insn pattern.
8087 (*mmx_pextrb): Ditto.
8088 (*mmx_pextrb_zext): Ditto.
8089
8090 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8091
8092 * target.def (libc_has_function, libc_has_fast_function): Improve
8093 documentation strings.
8094 * doc/tm.texi: Regenerate.
8095
8096 2019-08-13 Caroline Tice <cmtice@google.com>
8097
8098 PR other/91396
8099 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8100 vtv_end.o or vtv_end_preinit.o files if !static.
8101
8102 2019-08-13 Olivier Hainque <hainque@adacore.com>
8103
8104 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8105
8106 2019-08-13 Olivier Hainque <hainque@adacore.com>
8107
8108 * rtlanal.c (tablejump_casesi_pattern): New function, to
8109 determine if a tablejump insn is a casesi dispatcher. Extracted
8110 from patch_jump_insn.
8111 * rtl.h (tablejump_casesi_pattern): Declare.
8112 * cfgrtl.c (patch_jump_insn): Use it.
8113 * dwarf2cfi.c (create_trace_edges): Use it.
8114
8115 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8116
8117 PR target/81800
8118 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8119 operand is larger than a long int.
8120
8121 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8122
8123 * machmode.h (opt_mode::else_mode): New function.
8124 (opt_mode::else_blk): Use it.
8125 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8126 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8127 (aarch64_gen_stepped_int_parallel): Likewise.
8128 (aarch64_stepped_int_parallel_p): Likewise.
8129 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8130 argument.
8131 * config/aarch64/aarch64.c
8132 (aarch64_expand_sve_widened_duplicate): Delete.
8133 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8134 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8135 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8136 argument. Use early returns in the !CONST_INT_P handling.
8137 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8138 than handling some inline.
8139 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8140 from...
8141 (aarch64_simd_container_mode): ...here.
8142 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8143 (aarch64_sve_ld1rq_operand_p): New functions.
8144 * config/aarch64/predicates.md (descending_int_parallel)
8145 (aarch64_sve_ld1rq_operand): New predicates.
8146 * config/aarch64/constraints.md (UtQ): New constraint.
8147 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8148 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8149 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8150 (@aarch64_sve_reinterpret<mode>): New expander.
8151 (*aarch64_sve_reinterpret<mode>): New pattern.
8152 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8153 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8154 (*sve_ld1rq<Vesize>): Replace with...
8155 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8156
8157 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8158
8159 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8160 16:12.
8161
8162 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8163
8164 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8165 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8166 (msp430_check_path_for_devices): New.
8167 (parse_devices_csv_1): New.
8168 (parse_devices_csv): New.
8169 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8170 MCU data in devices.csv before using the hard-coded data.
8171 Warn if devices.csv isn't found and the MCU wasn't found in the
8172 hard-coded data either.
8173 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8174 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8175 Search for devices.csv on -I and -L paths.
8176 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8177 msp430_set_driver_var.
8178 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8179 -mdevices-csv-loc=.
8180 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8181 searched for devices.csv.
8182 (mwarn-devices-csv): Document option.
8183
8184 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8185
8186 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8187 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8188 Use a single Dn alternative instead of separate Dz and Dm
8189 alternatives. Use aarch64_output_sve_move_immediate.
8190 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8191 function.
8192 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8193 for predicates too.
8194 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8195 (aarch64_output_ptrue): Delete.
8196
8197 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8198
8199 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8200 INDEX.
8201 (simd_immediate_info::value, simd_immediate_info::step)
8202 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8203 with...
8204 (simd_immediate_info::u): ...this new union.
8205 (simd_immediate_info::simd_immediate_info): Update accordingly.
8206 (aarch64_output_simd_mov_immediate): Likewise.
8207 (aarch64_output_sve_mov_immediate): Likewise.
8208
8209 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8210
8211 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8212 extra_gcc_objs.
8213 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8214 (msp430_select_cpu): New spec function.
8215 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8216 MCU data.
8217 * config/msp430/msp430-devices.c: New file.
8218 * config/msp430/msp430-devices.h: New file.
8219 * config/msp430/msp430.c: Remove msp430_mcu_data.
8220 (msp430_option_override): Use msp430_extract_mcu_data to extract
8221 MCU data.
8222 (msp430_use_f5_series_hwmult): Likewise.
8223 (use_32bit_hwmult): Likewise.
8224 (msp430_no_hwmult): Likewise.
8225 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8226 assembler.
8227 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8228 and -mcpu option.
8229 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8230 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8231 Remove hard-coded MCU multilib data.
8232
8233 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8234
8235 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8236 based on the mode instead of testing properties of it.
8237
8238 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8239
8240 * doc/md.texi: Document the x and y constraints for AArch64.
8241 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8242 (FP_LO8_REGS): New reg_class.
8243 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8244 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8245 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8246 * config/aarch64/predicates.md (aarch64_simd_register): Use
8247 FP_REGNUM_P instead of checking the classes manually.
8248 * config/aarch64/constraints.md (y): New constraint.
8249
8250 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8251
8252 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8253 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8254 * config/aarch64/aarch64-simd.md
8255 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8256 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8257 from the asm template.
8258 * config/aarch64/aarch64-sve.md
8259 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8260 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8261 from the asm template.
8262 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8263 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8264 from the asm template.
8265 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8266
8267 2019-08-13 Martin Liska <mliska@suse.cz>
8268
8269 * value-prof.c (gimple_ic_transform): Add new line.
8270 Print details with MSG_NOTE.
8271
8272 2019-08-13 Martin Liska <mliska@suse.cz>
8273
8274 * doc/invoke.texi: Document automatic detection of jobserver.
8275 * lto-wrapper.c (run_gcc): Detect jobserver always.
8276
8277 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8278
8279 * config/i386/i386-expand.c (ix86_expand_vector_set)
8280 <case E_V2SImode>: Use vec_merge path for
8281 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8282 <case E_V8QImode>: Ditto.
8283 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8284 (*mmx_pinsrb): Ditto.
8285
8286 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8287
8288 PR target/83250
8289 PR target/91340
8290 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8291 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8292 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8293 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8294 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8295
8296 2019-08-12 Richard Biener <rguenther@suse.de>
8297
8298 PR lto/91375
8299 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8300 flag_devirtualize.
8301
8302 2019-08-12 Richard Biener <rguenther@suse.de>
8303
8304 PR driver/91130
8305 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8306 lang_mask option, always use CL_DRIVER.
8307 (get_options_from_collect_gcc_options): Adjust.
8308 (find_and_merge_options): Likewise.
8309 (run_gcc): Likewise.
8310
8311 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8312
8313 * ipa-predicate.c (add_condition): Restore inverted test.
8314
8315 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8316
8317 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8318 (enum omp_clause_device_type_kind): New enum.
8319 (struct tree_omp_clause): Add subcode.device_type_kind.
8320 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8321 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8322 for device_type clause.
8323 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8324 * tree-pretty-print.c (dump_omp_clause): Likewise.
8325
8326 PR target/91408
8327 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8328 vector_operand.
8329
8330 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8331
8332 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8333 handling spilled pseudos.
8334
8335 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8336
8337 PR target/91386
8338 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8339 to preserve the contents of the original insns.
8340
8341 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8342
8343 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8344 (addsi3_compare_op2): Likewise.
8345
8346 2019-08-09 Martin Liska <mliska@suse.cz>
8347
8348 * alias.c (alias_ptr_types_compatible_p): Strengten
8349 type comparison in LTO mode.
8350
8351 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8352
8353 PR middle-end/90313
8354 * tree-tailcall.c (find_tail_calls): Reject calls that might
8355 read from an escaped RESULT_DECL.
8356
8357 2019-08-09 Martin Liska <mliska@suse.cz>
8358
8359 * doc/invoke.texi: Document the option value.
8360 * lto-wrapper.c (run_gcc): Set auto_parallel
8361 only with -flto=auto.
8362
8363 2019-08-09 Martin Liska <mliska@suse.cz>
8364
8365 * opts.c (common_handle_option): Error for an invalid argument
8366 to -flto=.
8367
8368 2019-08-09 Martin Liska <mliska@suse.cz>
8369
8370 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8371 use dump_printf to report optimization.
8372 (sem_variable::merge): Likwise.
8373 (sem_item_optimizer::merge_classes): Use dump_printf to report
8374 ICF hits.
8375
8376 2019-08-09 Martin Liska <mliska@suse.cz>
8377
8378 * value-prof.c (gimple_divmod_fixed_value_transform):
8379 Use dump_printf_loc.
8380 (gimple_mod_pow2_value_transform): Likewise.
8381 (gimple_mod_subtract_transform): Likewise.
8382 (init_node_map): Likewise.
8383 (gimple_ic_transform): Likewise.
8384 (gimple_stringops_transform): Likewise.
8385
8386 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8387
8388 * doc/extend.texi: Add const qualifier to ld intrinsics.
8389
8390 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8391
8392 * config/rs6000/dfp.md (D64_D128): Rename to ...
8393 (DDTD): ... this, throughout.
8394 (dfp_suffix): Rename to ...
8395 (q): ... this, throughout.
8396
8397 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8398
8399 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8400 (dfp_suffix): Ditto.
8401 (adddd3, addtd3): Merge to ...
8402 (add<mode>3 for D64_D128): ... this.
8403 (subdd3, subtd3): Merge to ...
8404 (sub<mode>3 for D64_D128): ... this.
8405 (muldd3, multd3): Merge to ...
8406 (mul<mode>3 for D64_D128): ... this.
8407 (divdd3, divtd3): Merge to ...
8408 (div<mode>3 for D64_D128): ... this.
8409 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8410 (*cmp<mode>_internal1 for D64_D128): ... this.
8411 (ftruncdd2, ftrunctd2): Merge to ...
8412 (ftrunc<mode>2 for D64_D128): ... this.
8413 (fixdddi2, fixtddi2): Merge to ...
8414 (fix<mode>di2 for D64_D128): ... this.
8415
8416 2019-08-08 Jim Wilson <jimw@sifive.com>
8417
8418 PR target/91229
8419 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8420 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8421 Pass into recursive call.
8422 (riscv_flatten_aggregate_argument): New arg. Pass to
8423 riscv_flatten_aggregate_field.
8424 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8425 riscv_flatten_aggregate_argument twice, with false and true as last
8426 arg. Process result twice. Compare results and warn if different.
8427 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8428
8429 2019-08-08 Martin Liska <mliska@suse.cz>
8430
8431 PR bootstrap/91352
8432 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8433 * lto-wrapper.c (jobserver_active_p): Likewise.
8434
8435 2019-08-08 Martin Liska <mliska@suse.cz>
8436
8437 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8438 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8439 (create_version_clone_with_body): Likewise.
8440
8441 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8442
8443 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8444 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8445 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8446 GOVD_EXPLICIT flags.
8447 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8448 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8449 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8450 call install_var_field with mask 11 instead of 3.
8451 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8452 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8453
8454 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8455
8456 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8457 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8458
8459 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8460
8461 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8462 MOVPRFX alternatives. Make the GPR alternatives more expensive
8463 than the FPR ones.
8464
8465 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8466
8467 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8468 Disparage the GPR alternative relative to the FPR one.
8469 Fix handling of 8-bit and 16-bit FPR values.
8470
8471 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8472
8473 * config/aarch64/iterators.md (BITWISEV): Delete.
8474 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8475 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8476 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8477 UNSPEC_FMINNMV, UNSPEC_FMINV.
8478 (bit_reduc_op): Delete.
8479 (sve_int_op): New int attribute.
8480 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8481 UNSPEC_FMINNMV, UNSPEC_FMINV.
8482 * config/aarch64/aarch64-sve.md
8483 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8484 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8485 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8486 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8487 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8488 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8489 new patterns.
8490 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8491 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8492 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8493 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8494 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8495 new patterns.
8496
8497 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8498
8499 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8500 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8501 (fms<mode>4, *fms<mode>4): Replace with...
8502 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8503 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8504 Use unspecs instead of rtx codes.
8505 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8506 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8507
8508 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8509
8510 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8511 int iterator.
8512 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8513 * config/aarch64/aarch64-sve.md
8514 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8515 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8516 use a single unspec for the rhs.
8517 (*<su><maxmin><mode>3): Delete.
8518 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8519
8520 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8521
8522 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8523 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8524 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8525 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8526 (optab, sve_fp_op): Handle them.
8527 (SVE_FP_UNARY): Delete.
8528 (optab): Remove sqrt entry.
8529 (sve_fp_op): Remove neg, abs and sqrt entries.
8530 (SVE_COND_FP_UNARY): New int iterator.
8531 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8532 (*<frint_pattern><mode>2): Delete.
8533 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8534 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8535 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8536 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8537
8538 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8539
8540 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8541
8542 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8543
8544 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8545 (UNSPEC_COND_FADD): ...this.
8546 (UNSPEC_COND_SUB): Rename to...
8547 (UNSPEC_COND_FSUB): ...this.
8548 (UNSPEC_COND_MUL): Rename to...
8549 (UNSPEC_COND_FMUL): ...this.
8550 (UNSPEC_COND_DIV): Rename to...
8551 (UNSPEC_COND_FDIV): ...this.
8552 (UNSPEC_COND_MAX): Rename to...
8553 (UNSPEC_COND_FMAXNM): ...this.
8554 (UNSPEC_COND_MIN): Rename to...
8555 (UNSPEC_COND_FMINNM): ...this.
8556 (UNSPEC_COND_LT): Rename to...
8557 (UNSPEC_COND_FCMLT): ...this.
8558 (UNSPEC_COND_LE): Rename to...
8559 (UNSPEC_COND_FCMLE): ...this.
8560 (UNSPEC_COND_EQ): Rename to...
8561 (UNSPEC_COND_FCMEQ): ...this.
8562 (UNSPEC_COND_NE): Rename to...
8563 (UNSPEC_COND_FCMNE): ...this.
8564 (UNSPEC_COND_GE): Rename to...
8565 (UNSPEC_COND_FCMGE): ...this.
8566 (UNSPEC_COND_GT): Rename to...
8567 (UNSPEC_COND_FCMGT): ...this.
8568 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8569 (sve_fp_op_rev): Update accordingly.
8570 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8571
8572 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8573
8574 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8575 banner comments.
8576 * config/aarch64/check-sve-md.awk: New file.
8577 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8578 (insn-conditions.md): Depend on it.
8579
8580 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8581
8582 PR target/91385
8583 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8584 (*negsi2_cmpz_zext): Ditto.
8585
8586 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8587
8588 * config/aarch64/iterators.md (commutative): Remove.
8589
8590 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8591
8592 PR driver/91130
8593 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8594 processing COLLECT_GCC_OPTIONS.
8595 (run_gcc): Likewise.
8596
8597 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8598
8599 PR tree-optimization/91109
8600 * lra-remat.c (update_scratch_ops): Remove assignment of the
8601 hard register.
8602
8603 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8604
8605 * data-streamer.h (streamer_write_poly_uint64): Declare.
8606 (streamer_read_poly_uint64): Likewise.
8607 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8608 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8609 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8610 (add_condition): Take a poly_int64 size.
8611 * ipa-predicate.c (add_condition): Likewise.
8612 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8613 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8614 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8615 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8616 condition::size as a poly_int64.
8617 (unmodified_parm_1): Take a poly_int64 size pointer.
8618 (unmodified_parm): Likewise.
8619 (unmodified_parm_or_parm_agg_item): Likewise.
8620 (set_cond_stmt_execution_predicate): Update accordingly.
8621 (set_switch_stmt_execution_predicate): Likewise.
8622 (will_be_nonconstant_expr_predicate): Likewise.
8623 (will_be_nonconstant_predicate): Likewise.
8624 (inline_read_section): Stream condition::size as a poly_int.
8625 (ipa_fn_summary_write): Likewise.
8626
8627 2019-08-07 Martin Liska <mliska@suse.cz>
8628
8629 * fold-const.c (twoval_comparison_p): Replace int
8630 with bool as a return type.
8631 (simple_operand_p): Likewise.
8632 (operand_equal_p): Replace int with bool as a return type.
8633 * fold-const.h (operand_equal_p): Likewise.
8634
8635 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8636
8637 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8638 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8639 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8640 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8641 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8642 * tree-pretty-print.c (dump_omp_clause): Likewise.
8643 * tree-nested.c (convert_nonlocal_omp_clauses,
8644 convert_local_omp_clauses): Likewise.
8645 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8646 Likewise.
8647 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8648 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8649 clause with array or reference to array types, no matter what type
8650 except for reference it has.
8651
8652 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8653
8654 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8655
8656 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8657
8658 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8659 (arch_canonicalize): Support rv32g and rv64g and fix error
8660 handling.
8661
8662 2019-08-06 Martin Liska <mliska@suse.cz>
8663
8664 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8665 and DECL_IS_OPERATOR_DELETE_P.
8666
8667 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8668
8669 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8670 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8671 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8672 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8673 (gimplify_omp_for): Don't do C++ random access iterator clause
8674 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8675 don't predetermine the artificial iterator in case of C++ random
8676 access iterators as lastprivate, but private. For OMP_LOOP, force
8677 bind expr around simd body and force for_pre_body before the
8678 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8679 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8680 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8681 diff var of C++ random access iterators. Handle
8682 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8683 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8684 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8685 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8686 * omp-low.c (lower_rec_input_clauses): For
8687 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8688 variables instead of default constructing them.
8689 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8690 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8691 is_taskloop_ctx check from the assert to the guarding condition.
8692
8693 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8694
8695 * config/riscv/multilib-generator: (canonical_order): New.
8696 (arch_canonicalize): Dito.
8697 Apply arch_canonicalize for alts.
8698
8699 2019-08-05 Martin Sebor <msebor@redhat.com>
8700
8701 * doc/extend.texi (Common Variable Attributes): Document alias
8702 attribute.
8703
8704 2019-08-05 Marek Polacek <polacek@redhat.com>
8705
8706 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8707 * doc/invoke.texi: Document -Wcomma-subscript.
8708
8709 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8710
8711 * tree-core.h (tree_function_decl): Make function_code an
8712 independent field. Group the remaining bitfields into bytes
8713 and move decl_type so that it contines to be at a byte boundary.
8714 Leave 12 bits for future expansion.
8715
8716 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8717
8718 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8719 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8720 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8721 IFN_MASK_STORE.
8722
8723 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8724
8725 * gimple.h (gimple_move_vops): Declare.
8726 * gimple.c (gimple_move_vops): New function
8727 * gimple-fold.c (replace_call_with_call_and_fold)
8728 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8729 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8730 (gimple_fold_call): Use it.
8731 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8732 * tree-call-cdce.c (use_internal_fn): Likewise.
8733 * tree-if-conv.c (predicate_load_or_store): Likewise.
8734 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8735 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8736 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8737 (update_call_from_tree): Likewise.
8738 * tree-vect-stmts.c (vectorizable_load): Likewise.
8739 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8740
8741 2019-08-05 Martin Liska <mliska@suse.cz>
8742
8743 PR c++/91334
8744 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8745 with not arguments.
8746 (eliminate_unnecessary_stmts): Likewise.
8747
8748 2019-08-05 Richard Biener <rguenther@suse.de>
8749
8750 PR middle-end/91169
8751 * fold-const.c (get_array_ctor_element_at_index): Create
8752 offset_ints according to the sign of the index type and treat
8753 that as signed if it is obviously so.
8754
8755 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8756
8757 PR target/91341
8758 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8759 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8760 _mm256_storeu2_m128i): New function.
8761
8762 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8763
8764 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8765 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8766
8767 2019-08-05 Alan Modra <amodra@gmail.com>
8768
8769 PR target/91349
8770 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8771 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8772
8773 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8774
8775 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8776 bug that was fixed in Tcl 8.6.1.
8777
8778 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8779
8780 * config/rs6000/future.md: New file.
8781 * config/rs6000/rs6000.md: Include future.md.
8782 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8783
8784 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8785
8786 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8787 check to use targetm.slow_unaligned_access instead.
8788
8789 * function.c (assign_param_data_one): Remove unused data members.
8790
8791 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8792
8793 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8794 build_distinct_type_copy.
8795 (simd_clone_adjust_argument_types): Ditto.
8796 (simd_clone_adjust): Call build_distinct_type_copy here.
8797 (expand_simd_clones): Ditto.
8798
8799 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8800
8801 PR target/91201
8802 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8803
8804 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8805
8806 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8807 from 'const void *'.
8808 (sort_locs_in_loop_postorder_cmp): Likewise.
8809
8810 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8811
8812 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8813 (hot-bb-count-ws-permille): Likewise.
8814 (hot-bb-frequency-fraction): Likewise.
8815 (unlikely-bb-count-fraction): Likewise.
8816 * params.def (hot-bb-count-fraction): Rework description.
8817 (hot-bb-count-ws-permille): Likewise.
8818 (hot-bb-frequency-fraction): Likewise.
8819 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8820 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8821
8822 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8823
8824 PR target/91323
8825 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8826 Return false.
8827
8828 2019-08-02 Richard Biener <rguenther@suse.de>
8829
8830 * vec.h (vec::sort): Add gcc_qsort_r support.
8831 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8832 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8833 to gcc_qsort_r style callback.
8834 (sort_locs_in_loop_postorder_cmp): Likewise.
8835 (analyze_memory_references): Use gcc_sort_r interfaces.
8836 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8837
8838 2019-08-02 Martin Liska <mliska@suse.cz>
8839
8840 PR lto/91313
8841 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8842 to detect working job server.
8843 (driver::detect_jobserver): Test whether jobserver
8844 is active from GCC driver. That will prevent situation where
8845 GCC is invoked from a LD plugin and the linker already uses
8846 file descriptors suggested by make. That leads to a wrong
8847 detection.
8848 * gcc.h (driver): Add detect_jobserver.
8849 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8850 not scanning for --jobserver-auth prefix.
8851
8852 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8853
8854 PR tree-optimization/91201
8855 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8856 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8857 extraction.
8858
8859 2019-08-01 Martin Sebor <msebor@redhat.com>
8860
8861 PR c++/90947
8862 * tree.c (type_initializer_zero_p): Define.
8863 * tree.h (type_initializer_zero_p): New function.
8864
8865 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8866
8867 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8868
8869 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8870
8871 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8872 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8873 * predict.c (maybe_hot_count_p): Likewise.
8874 (maybe_hot_bb_p): Tweak comment.
8875 (maybe_hot_edge_p): Likewise.
8876 (probably_never_executed): Likewise. Minor tweak.
8877 (probably_never_executed_bb_p): Likewise.
8878 (unlikely_executed_edge_p): Likewise.
8879 (probably_never_executed_edge_p): Likewise.
8880 (optimize_function_for_size_p): Likewise.
8881 (optimize_function_for_speed_p): Likewise.
8882 (function_optimization_type): Likewise.
8883 (optimize_bb_for_size_p): Likewise.
8884 (optimize_bb_for_speed_p): Likewise.
8885 (bb_optimization_type): Likewise.
8886 (optimize_edge_for_size_p): Likewise.
8887 (optimize_edge_for_speed_p): Likewise.
8888 (optimize_insn_for_size_p): Likewise.
8889 (optimize_insn_for_speed_p): Likewise.
8890 (optimize_loop_for_size_p): Likewise.
8891 (optimize_loop_for_speed_p): Likewise.
8892 (optimize_loop_nest_for_speed_p): Likewise.
8893 (optimize_loop_nest_for_size_p): Likewise.
8894 (predictable_edge_p): Likewise.
8895 (handle_missing_profiles): Minor tweak.
8896
8897 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8898
8899 * config/rs6000/predicates.md (pcrel_external_address): Update
8900 comment.
8901
8902 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8903
8904 PR target/85693
8905 * config/i386/mmx.md (usadv8qi): New expander.
8906
8907 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8908
8909 PR c++/90590
8910 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8911 with reserved names that are in a system header.
8912
8913 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8914
8915 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8916 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8917 (*vec_extractv2si_0_zext): Ditto.
8918 (*vec_extractv2si_1): Add (rm,x) alternative.
8919 (*vec_extractv2si_1_zext): New insn pattern.
8920 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8921 insn constraint.
8922
8923 2019-08-01 Richard Biener <rguenther@suse.de>
8924
8925 * domwalk.c (bb_postorder): Remove static variable.
8926 (cmp_bb_postorder): Adjust.
8927 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8928 (dom_walker::walk): Adjust.
8929
8930 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
8931
8932 * sort.cc (sort_r_ctx): New struct.
8933 (reorder23): Make templated on context type.
8934 (reorder45): Ditto.
8935 (cmp1): Ditto. Adjust signature.
8936 (netsort): Ditto.
8937 (mergesort): Ditto.
8938 [CHECKING_P] (cmp2to3): New static function. Use it...
8939 (gcc_qsort) [CHECKING_P]: ...here.
8940 (gcc_sort_r): New function.
8941 * system.h (sort_r_cmp_fn): New function typedef.
8942 (qsort_chk): Adjust signature.
8943 (gcc_sort_r): Declare.
8944 * vec.c (qsort_chk_error): Adjust.
8945 (qsort_chk): Adjust.
8946
8947 2019-08-01 Richard Biener <rguenther@suse.de>
8948
8949 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8950 (compute_antic): Localize it here.
8951
8952 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
8953
8954 * common/config/riscv/riscv-common.c: Check -march string ends
8955 with null.
8956
8957 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
8958
8959 * ipa-devirt.c (type_warning_cmp): Make static.
8960 (decl_warning_cmp): Ditto.
8961
8962 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
8963
8964 PR target/91050
8965 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
8966 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
8967 use of deleted rs6000_dejagnu_cpu_index variable.
8968 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
8969 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8970 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
8971 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
8972 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
8973 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
8974
8975 2019-07-31 Richard Biener <rguenther@suse.de>
8976
8977 PR tree-optimization/91280
8978 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8979 Decompose MEM_REF manually for offset handling.
8980
8981 2019-07-31 Richard Biener <rguenther@suse.de>
8982
8983 PR tree-optimization/91293
8984 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
8985 of reduction stmts.
8986
8987 2019-07-31 Matt Thomas <matt@3am-software.com>
8988 Nick Hudson <nick@nthcliff.demon.co.uk>
8989 Matthew Green <mrg@eterna.com.au>
8990 Maya Rashish <coypu@sdf.org>
8991
8992 * config.gcc (hppa*-*-netbsd*): New target.
8993 * config/pa/pa-netbsd.h: New file.
8994 * config/pa/pa32-netbsd.h: New file.
8995
8996 2019-07-31 Jakub Jelinek <jakub@redhat.com>
8997
8998 PR tree-optimization/91201
8999 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9000
9001 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9002
9003 * config/gcn/gcn-valu.md
9004 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9005 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9006 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9007 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9008 struct ilist. Add nops for delayeduse insns.
9009 * config/gcn/gcn.md (delayeduse): New attribute.
9010 (*movbi): Remove s_waitcnt from stores.
9011 (*mov<mode>_insn): Likewise.
9012 (*movti_insn): Likewise. Add delayeduse attribute.
9013 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9014 (atomic_store<mode>): Remove or adjust s_waitcnt.
9015
9016 2019-07-31 Richard Biener <rguenther@suse.de>
9017
9018 * vr-values.h (vr_values::swap_vr_value): New.
9019 (vr_values::free_value_range): likewise.
9020 * vr-values.c (vr_values::swap_vr_value): Implement.
9021 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9022 Do not return a range or take a var.
9023 (evrp_range_analyzer::stack): Change back to recording a non-const
9024 value_range *.
9025 * gimple-ssa-evrp-analyze.c
9026 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9027 value-range.
9028 (evrp_range_analyzer::pop_to_marker): Adjust.
9029 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9030 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9031 no longer needed value-range.
9032
9033 2019-07-31 Martin Liska <mliska@suse.cz>
9034
9035 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9036 have size and (or) alignment as 2nd and later arguments.
9037 Mark all of them as necessary.
9038
9039 2019-07-31 Richard Biener <rguenther@suse.de>
9040
9041 PR tree-optimization/91178
9042 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9043 Use tail-recursion.
9044
9045 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9046
9047 PR tree-optimization/91201
9048 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9049 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9050 TARGET_AVX512F.
9051 (reduc_plus_scal_<mode>): Improve formatting by introducing
9052 a temporary.
9053
9054 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9055
9056 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9057 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9058 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9059 (aarch64_init_tme_builtins): New.
9060 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9061 (aarch64_expand_builtin_tme): New.
9062 (aarch64_expand_builtin): Handle TME builtins.
9063 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9064 __ARM_FEATURE_TME when enabled.
9065 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9066 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9067 (TARGET_TME): New.
9068 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9069 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9070 UNSPECV_TCANCEL.
9071 (tstart, ttest, tcommit, tcancel): New instructions.
9072 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9073 (__tcancel, __ttest): New.
9074 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9075 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9076 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9077 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9078 * config/arm/types.md: Add new tme type attr.
9079 * doc/invoke.texi: Document "tme".
9080
9081 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9082
9083 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9084 warn_unused_result attribute.
9085 (cmse_check_address_range): Add warn_unused_result attribute.
9086
9087 2019-07-31 Richard Biener <rguenther@suse.de>
9088
9089 PR tree-optimization/91257
9090 * tree-vrp.c (union_ranges): Unify equality and less tests
9091 by using compare_values. Re-order cheap tests first.
9092
9093 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9094
9095 PR middle-end/91301
9096 * gimplify.c (gimplify_omp_for): If for class iterator on
9097 distribute parallel for there is no data sharing clause
9098 on inner_for_stmt, look for private clause on combined
9099 parallel too and if found, move it to inner_for_stmt.
9100
9101 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9102
9103 * lra-int.h (lra_operand_data): Remove early_clobber field.
9104 (lra_insn_reg): Likewise.
9105 * lra.c (debug_operand_data): Update accordingly.
9106 (setup_operand_alternative): Likewise.
9107 (new_insn_reg): Likewise. Remove early_clobber parameter.
9108 (collect_non_operand_hard_regs): Update call accordingly.
9109 Don't assign to lra_insn_reg::early_clobber.
9110 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9111 and update calls to new_insn_reg.
9112 (lra_update_insn_regno_info): Update calls accordingly.
9113 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9114 alternative number as a parameter and test whether the operand
9115 is earlyclobbered in that particular alternative.
9116 (process_alt_operands): Update call accordingly. Use per-alternative
9117 checks for earyclobber here too.
9118 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9119 against zero for IRA_UNKNOWN_ALT.
9120
9121 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9122
9123 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9124
9125 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9126
9127 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9128 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9129
9130 2019-07-30 Martin Liska <mliska@suse.cz>
9131
9132 PR ipa/89330
9133 * cgraph.c (cgraph_edge::make_direct): Use
9134 edge->indirect_unknown_callee as edge->resolve_speculation can
9135 deallocate edge which is this pointer.
9136
9137 2019-07-30 Richard Biener <rguenther@suse.de>
9138
9139 PR tree-optimization/91257
9140 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9141
9142 2019-07-30 Martin Liska <mliska@suse.cz>
9143
9144 * doc/invoke.texi: Document new behavior.
9145 * lto-wrapper.c (cpuset_popcount): New function
9146 is a copy of libgomp/config/linux/proc.c.
9147 (init_num_threads): Likewise.
9148 (run_gcc): Automatically detect core count for -flto.
9149 (jobserver_active_p): New function.
9150
9151 2019-07-30 Richard Biener <rguenther@suse.de>
9152
9153 PR tree-optimization/91257
9154 * bitmap.h (bitmap_ior_into_and_free): Declare.
9155 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9156 whether to add the unliked element to the freelist.
9157 (bitmap_list_insert_element_after): Add defaulted param for
9158 an already allocated element.
9159 (bitmap_ior_into_and_free): New function.
9160 * tree-ssa-structalias.c (condense_visit): Reduce the
9161 ponts-to and edge bitmaps of the SCC members in a
9162 logarithmic fashion rather than all to one.
9163
9164 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9165
9166 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9167 parameter. When nonnull, make sure that the addition or subtraction
9168 has the same condition.
9169 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9170 for CFN_COND_MUL too.
9171
9172 2019-07-30 Richard Biener <rguenther@suse.de>
9173
9174 PR tree-optimization/91291
9175 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9176 constant values.
9177
9178 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9179
9180 PR middle-end/91216
9181 * omp-low.c (global_nonaddressable_vars): New variable.
9182 (use_pointer_for_field): For global decls, if they are non-addressable,
9183 remember it in the global_nonaddressable_vars bitmap, if they are
9184 addressable and in the global_nonaddressable_vars bitmap, ignore their
9185 TREE_ADDRESSABLE bit.
9186 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9187 vars in global_nonaddressable_vars bitmap.
9188 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9189
9190 PR target/91150
9191 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9192 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9193 comparison to unsigned HOST_WIDE_INT before shifting it left.
9194
9195 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9196
9197 * config/i386/i386.md (movstrict<mode>): Use register_operand
9198 predicate for operand 0. Add expander condition. Assert that
9199 operand 0 is a SUBREG RTX.
9200 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9201 Update operand constraints and insn condition.
9202 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9203 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9204 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9205 Update operand 0 constraints.
9206 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9207
9208 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9209
9210 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9211 when -m{code,data}-region are used without -mlarge.
9212 * config/msp430/msp430.c (msp430_option_override): Error when a
9213 non-default code or data region is used without -mlarge.
9214 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9215 attributes when they are used without -mlarge.
9216
9217 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9218
9219 PR target/70320
9220 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9221
9222 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9223
9224 PR middle-end/91242
9225 * wide-int.h (generic_wide_int::sext_elt): New function.
9226 * inchash.h (hash::add_wide_int): Use it instead of elt.
9227
9228 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9229
9230 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9231 CODE_FOR_arm_##.
9232 * config/arm/arm.md (<crc_variant>): Rename to...
9233 (arm_<crc_variant>): ... This.
9234 (<cdp>): Rename to...
9235 (arm_<cdp>): ... This.
9236 (<ldc>): Rename to...
9237 (arm_<ldc>): ... This.
9238 (<stc>): Rename to...
9239 (arm_<stc>): ... This.
9240 (<mcr>): Rename to...
9241 (arm_<mcr>): ... This.
9242 (<mrc>): Rename to...
9243 (arm_<mrc>): ... This.
9244 (<mcrr>): Rename to...
9245 (arm_<mcrr>): ... This.
9246 (<mrrc>): Rename to...
9247 (arm_<mrrc>): ... This.
9248
9249 2019-07-29 Richard Biener <rguenther@suse.de>
9250
9251 PR tree-optimization/91257
9252 * tree-ssa-sccvn.h (struct vn_avail): New.
9253 (struct vn_ssa_aux): Add avail member.
9254 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9255 member, add m_avail_freelist one.
9256 (rpo_elim::~rpo_elim): Remove.
9257 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9258 data structure.
9259 (rpo_elim::eliminate_push_avail): Likewise.
9260 (do_unwind): Likewise.
9261 (do_rpo_vn): Likewise.
9262
9263 2019-07-29 Richard Biener <rguenther@suse.de>
9264
9265 PR tree-optimization/91257
9266 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9267 most cases, instead call compare_values which handles the
9268 symbolic ranges we handle specially.
9269 (compare_values_warnv): Do not call operand_less_p but open-code
9270 the effective fold calls. Avoid converting so much.
9271
9272 2019-07-29 Martin Liska <mliska@suse.cz>
9273
9274 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9275 remove LHS of operator new call. It's handled latter.
9276
9277 2019-07-29 Richard Biener <rguenther@suse.de>
9278
9279 PR tree-optimization/91267
9280 * vr-values.c (vr_values::update_value_range): Add early return
9281 for effectively VARYING lattice entry.
9282
9283 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9284
9285 PR debug/86638
9286 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9287 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9288 necessary if keep_all_vdefs_p is true.
9289 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9290 that keep_all_vdefs_p is false.
9291 (mark_all_reaching_defs_necessary): Likewise.
9292 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9293
9294 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9295
9296 * common.opt (Og): Change the initial value of flag_dse to 0.
9297 * opts.c (default_options_table): Move OPT_ftree_dse from
9298 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9299 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9300 entry before the OPT_ftree_sra entry.
9301 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9302 of flags disabled by Og.
9303
9304 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9305
9306 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9307 variables for -Og.
9308
9309 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9310
9311 * doc/sourcebuild.texi (check-function-bodies): Document.
9312
9313 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9314
9315 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9316 VEC_DUPLICATE of a fixed-length vector even if the result
9317 is variable-length. Likewise fold a duplicate of a
9318 variable-length vector if the variable-length vector is
9319 itself a duplicate of a fixed-length sequence.
9320 (test_vector_ops_duplicate): Test more cases.
9321
9322 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9323
9324 * vector-builder.h (vector_builder): Add a shape template parameter.
9325 (vector_builder::new_unary_operation): New function, generalizing
9326 the old tree_vector_builder function.
9327 (vector_builder::new_binary_operation): Likewise.
9328 (vector_builder::binary_encoded_nelts): Likewise.
9329 * int-vector-builder.h (int_vector_builder): Update template
9330 parameters to vector_builder.
9331 (int_vector_builder::shape_nelts): New function.
9332 * rtx-vector-builder.h (rtx_vector_builder): Update template
9333 parameters to vector_builder.
9334 (rtx_vector_builder::shape_nelts): New function.
9335 (rtx_vector_builder::nelts_of): Likewise.
9336 (rtx_vector_builder::npatterns_of): Likewise.
9337 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9338 * tree-vector-builder.h (tree_vector_builder): Update template
9339 parameters to vector_builder.
9340 (tree_vector_builder::shape_nelts): New function.
9341 (tree_vector_builder::nelts_of): Likewise.
9342 (tree_vector_builder::npatterns_of): Likewise.
9343 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9344 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9345 (tree_vector_builder::new_binary_operation): Delete.
9346 (tree_vector_builder::binary_encoded_nelts): Likewise.
9347 * simplify-rtx.c: Include rtx-vector-builder.h.
9348 (distributes_over_addition_p): New function.
9349 (simplify_const_unary_operation)
9350 (simplify_const_binary_operation): Generalize handling of vector
9351 constants to include variable-length vectors.
9352 (test_vector_ops_series): Add more tests.
9353
9354 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9355
9356 PR lto/91222
9357 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9358 than INDENTIFIER_POINTER.
9359
9360 2019-07-28 Martin Liska <mliska@suse.cz>
9361
9362 PR ipa/89330
9363 * cgraph.c (symbol_table::create_edge): Always allocate
9364 a cgraph_edge.
9365 (symbol_table::free_edge): Store summary_id to
9366 edge_released_summary_ids if != -1;
9367 * cgraph.h (NEXT_FREE_NODE): Remove.
9368 (SET_NEXT_FREE_NODE): Likewise.
9369 (NEXT_FREE_EDGE): Likewise.
9370 (symbol_table::release_symbol): Store summary_id to
9371 cgraph_released_summary_ids if != -1;
9372 (symbol_table::allocate_cgraph_symbol): Always allocate
9373 a cgraph_node.
9374
9375 2019-07-28 Alan Modra <amodra@gmail.com>
9376
9377 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9378 gen_sibcall.
9379
9380 2019-07-28 Alan Modra <amodra@gmail.com>
9381
9382 PR target/91135
9383 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9384 define.
9385 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9386 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9387 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9388
9389 2019-07-28 Alan Modra <amodra@gmail.com>
9390
9391 PR target/91050
9392 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9393 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9394 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9395 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9396 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9397 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9398 in asm_default spec.
9399 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9400 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9401
9402 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9403
9404 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9405
9406 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9407
9408 PR target/89517
9409 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9410 * config/aarch64/aarch64-option-extensions.def: Add new comments
9411 and restore easier to read options.
9412
9413 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9414
9415 * convert.c (convert_to_real_1): Move part of conversion code...
9416 * match.pd: ...To here.
9417
9418 2019-07-26 Martin Jambor <mjambor@suse.cz>
9419
9420 PR ipa/89330
9421 * ipa-inline-transform.c (check_speculations_1): New function.
9422 (push_all_edges_in_set_to_vec): Likewise.
9423 (check_speculations): Use check_speculations_1, new parameter
9424 new_edges.
9425 (inline_call): Pass new_edges to check_speculations.
9426 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9427 NULL.
9428 (speculation_useful_p): Early return true if edge is inlined, remove
9429 later checks for inline_failed.
9430
9431 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9432
9433 PR rtl-optimization/91223
9434 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9435 matching with INOUT operand.
9436
9437 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9438
9439 * stmt.c (expand_case): Try to narrow the index type if it's larger
9440 than a word. Tidy up.
9441
9442 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9443
9444 * cif-code.def (NEVER_CALL): New code.
9445 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9446 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9447
9448 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9449
9450 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9451 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9452
9453 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9454
9455 * ipa-devirt.c (add_type_duplicate): Fix return value.
9456
9457 2019-07-25 Richard Biener <rguenther@suse.de>
9458
9459 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9460 type parameter and use it instead of guessing expression
9461 type from the first operand.
9462 (extract_range_from_binary_expr): Pass expr_type down.
9463
9464 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9465
9466 * config/arm/arm.md (SATrev): Change to code attribute.
9467 (*satsi_<SAT:code>): Adjust for the above.
9468 (*satsi_<SAT:code>_shift): Likewise.
9469
9470 2019-07-25 Richard Biener <rguenther@suse.de>
9471
9472 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9473 Make value_range * temporary const.
9474 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9475 Likewise.
9476 (evrp_range_analyzer::record_ranges_from_): Likewise.
9477 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9478 deal with having recorded a const one.
9479 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9480 Return a const value_range *.
9481 (evrp_range_analyzer::pop_value_range): Likewise.
9482 (evrp_range_analyzer::stack): Record const value_range *s.
9483 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9484 Adjust.
9485 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9486 (format_integer): Likewise.
9487 (sprintf_dom_walker::handle_gimple_call): Likewise.
9488 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9489 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9490 (vrp_prop::get_value_range): Adjust.
9491 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9492 modifying the lattice in-place.
9493 (vrp_prop::visit_stmt): Likewise.
9494 * vr-values.c (vr_values::get_lattice_entry): New private method.
9495 (vr_values::get_value_range): Wrap it and return a const
9496 value_range *.
9497 (vr_values::set_def_to_varying): New.
9498 (vr_values::set_defs_to_varying): Use it.
9499 (vr_values::update_value_range): Likewise.
9500 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9501 (values::op_with_constant_singleton_va): Likewise.
9502 (vr_values::extract_range_for_var_from_co): Likewise.
9503 (vr_values::extract_range_from_ssa_name): Likewise.
9504 (vr_values::extract_range_from_cond_expr): Likewise.
9505 (vr_values::extract_range_basic): Likewise.
9506 (compare_ranges): Take const value_range *, adjust.
9507 (compare_range_with_value): Likewise.
9508 (vrp_valueize): Adjust.
9509 (vrp_valueize_1): Likewise.
9510 (vr_values::get_vr_for_comparison): Return a const value_range *.
9511 (vr_values::compare_name_with_value): Adjust.
9512 (vr_values::compare_names): Likewise.
9513 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9514 Likewise.
9515 (vr_values::vrp_evaluate_conditional): Likewise.
9516 (find_case_label_ranges): Take a const value_range *.
9517 (vr_values::vrp_visit_switch_stmt): Adjust.
9518 (vr_values::extract_range_from_phi_node): Likewise.
9519 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9520 (vr_values::simplify_abs_using_ranges): Likewise.
9521 (test_for_singularity): Take a const value_range *.
9522 (range_fits_type_p): Likewise.
9523 (vr_values::simplify_cond_using_ranges_1): Adjust.
9524 (vr_values::simplify_cond_using_ranges_2): Likewise.
9525 (vr_values::simplify_switch_using_ranges): Likewise.
9526 (vr_values::simplify_float_conversion_usi): Likewise.
9527 (vr_values::two_valued_val_range_p): Likewise.
9528 * vr-values.h (vr_values::get_value_range): Return a const
9529 value_range *.
9530 (vr_values::set_def_to_varying): New.
9531 (vr_values::get_lattice_entry): New private method.
9532 (vr_values::get_vr_for_comparison): Return a const value_range *.
9533
9534 2019-07-25 Martin Liska <mliska@suse.cz>
9535 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9536
9537 PR c++/23383
9538 * common.opt: Add -fallocation-dce
9539 * gimple.c (gimple_call_operator_delete_p): New.
9540 * gimple.h (gimple_call_operator_delete_p): Likewise.
9541 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9542 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9543 DECL_IS_OPERATOR_DELETE_P.
9544 (mark_all_reaching_defs_necessary_1): Likewise.
9545 (propagate_necessity): Likewise.
9546 (eliminate_unnecessary_stmts): Handle
9547 gimple_call_operator_delete_p.
9548 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9549 Add packing of OPERATOR_DELETE.
9550 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9551 Similarly here.
9552 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9553 (DECL_SET_IS_OPERATOR_DELETE): New.
9554 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9555
9556 2019-07-25 Martin Liska <mliska@suse.cz>
9557
9558 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9559 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9560 * coverage.c (coverage_begin_function): Likewise.
9561 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9562 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9563 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9564 (sem_item::hash_referenced_symbol_properties): Likewise.
9565 * lto-streamer-out.c (hash_tree): Likewise.
9566 * predict.c (expr_expected_value_1): Likewise.
9567 * tree-inline.c (expand_call_inline): Likewise.
9568 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9569 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9570 * tree-core.h (enum function_decl_type): New enum.
9571 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9572 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9573 (set_function_decl_type): Likewise.
9574 (DECL_IS_OPERATOR_NEW_P): New.
9575 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9576 (DECL_LAMBDA_FUNCTION): Likewise.
9577 (DECL_LAMBDA_FUNCTION_P): Likewise.
9578 (DECL_IS_OPERATOR_NEW): Remove.
9579 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9580
9581 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9582
9583 * ipa-profile.c (get_most_common_single_value): Use
9584 get_nth_most_common_value.
9585 * profile.c (sort_hist_value): New function.
9586 (compute_value_histograms): Call sort_hist_value to sort the
9587 values after loading from disk.
9588 * value-prof.c (get_most_common_single_value): Rename to ...
9589 get_nth_most_common_value. Add input params n, return
9590 the n_th value and count.
9591 (gimple_divmod_fixed_value_transform): Use
9592 get_nth_most_common_value.
9593 (gimple_ic_transform): Likewise.
9594 (gimple_stringops_transform): Likewise.
9595 * value-prof.h (get_most_common_single_value): Add input params
9596 n, default to 0.
9597
9598 2019-07-25 Richard Biener <rguenther@suse.de>
9599
9600 PR tree-optimization/91236
9601 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9602 size of CONSTRUCTOR write. Fix buffer size we pass to
9603 native_encode_expr.
9604
9605 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9606
9607 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9608 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9609 r273773.
9610
9611 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9612
9613 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9614 explicitly disabled with --disable-initfini-array.
9615
9616 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9617
9618 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9619 if-exists.
9620
9621 2019-07-24 Martin Sebor <msebor@redhat.com>
9622
9623 PR tree-optimization/91183
9624 PR tree-optimization/86688
9625 * builtins.c (compute_objsize): Handle MEM_REF.
9626 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9627 (get_min_string_length): Remove.
9628 (count_nonzero_bytes): New function.
9629 (handle_char_store): Rename...
9630 (handle_store): to this. Handle multibyte stores via integer types.
9631 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9632 function name.
9633
9634 2019-07-24 Martin Sebor <msebor@redhat.com>
9635
9636 PR driver/80545
9637 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9638 (diagnostic_report_diagnostic): Same.
9639 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9640 (diagnostic_context::lang_mask): New data member.
9641 * ipa-pure-const.c (suggest_attribute): Use
9642 lang_hooks.option_lang_mask ().
9643 * opts-common.c (option_enabled): Handle new argument.
9644 (get_option_state): Pass an additional argument.
9645 * opts.c (print_filtered_help): Print supported languages for
9646 unsupported options. Adjust printing of current state.
9647 * opts.h (option_enabled): Add argument.
9648 * toplev.c (print_switch_values): Use lang_mask.
9649 (general_init): Set global_dc->lang_mask.
9650
9651 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9652
9653 PR bootstrap/87030
9654 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9655
9656 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9657
9658 * cgraphunit.c (symbol_table::compile): Start and stop
9659 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9660 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9661
9662 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9663
9664 * gimplify.c (flag_instrument_functions_exclude_p): Include
9665 namespace/class information in the printable name.
9666 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9667 to tokens entered into the vector.
9668
9669 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9670
9671 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9672 (get_static_chain): Call it instead of build_simple_mem_ref.
9673 (get_frame_field): Likewise.
9674 (get_nonlocal_debug_decl): Likewise.
9675 (convert_nonlocal_reference_op): Likewise.
9676
9677 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9678
9679 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9680 declaration.
9681 (arc_compute_frame_size): Millicode is disabled when compiling
9682 ISR.
9683 (arc_return_address_register): Likewise.
9684 (arc_compute_function_type): Likewise.
9685 (arc_compute_frame_size): Likewise.
9686 (secondary_reload_info): Likewise.
9687 (arc_get_unalign): Likewise.
9688 (arc_can_use_return_insn): Declare.
9689 * config/arc/arc.c (AUX_LP_START): Define
9690 (AUX_LP_END): Likewise.
9691 (arc_frame_info): Update gmask member to 64-bit datum.
9692 (GMASK_LEN): Update.
9693 (arc_compute_function_type): Make it static, move it forward.
9694 (arc_must_save_register): Update, consider the extra regs.
9695 (arc_compute_millicode_save_restore_regs): Update to use the 64
9696 bit gmask.
9697 (arc_compute_frame_size): Likewise.
9698 (arc_enter_leave_p): Likewise.
9699 (arc_save_callee_saves): Likewise.
9700 (arc_restore_callee_saves): Likewise.
9701 (arc_save_callee_enter): Likewise.
9702 (arc_restore_callee_leave): Likewise.
9703 (arc_save_callee_milli): Likewise.
9704 (arc_restore_callee_milli): Likewise.
9705 (arc_expand_prologue): Add new interrupt handling.
9706 (arc_return_address_register): Make it static, move it forward.
9707 (arc_expand_epilogue): Add new interrupt handling.
9708 (arc_get_unalign): Delete.
9709 (arc_epilogue_uses): Make sure we do not remove the extra
9710 saved/restored registers when interrupt.
9711 (arc_can_use_return_insn): New function.
9712 (push_reg): Likewise.
9713 (pop_reg): Likewise.
9714 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9715 procedures.
9716 (arc_restore_callee_saves): Likewise, but restoring.
9717 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9718 (R33_REG): Likewise.
9719 (R34_REG): Likewise.
9720 (R35_REG): Likewise.
9721 (R36_REG): Likewise.
9722 (R37_REG): Likewise.
9723 (R38_REG): Likewise.
9724 (R39_REG): Likewise.
9725 (R45_REG): Likewise.
9726 (R46_REG): Likewise.
9727 (R47_REG): Likewise.
9728 (R48_REG): Likewise.
9729 (R49_REG): Likewise.
9730 (R50_REG): Likewise.
9731 (R51_REG): Likewise.
9732 (R52_REG): Likewise.
9733 (R53_REG): Likewise.
9734 (R54_REG): Likewise.
9735 (R55_REG): Likewise.
9736 (R56_REG): Likewise.
9737 (R58_REG): Likewise.
9738 (type): Add rtie attribute.
9739 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9740 (movsi_insn): Accept moves to lp_count.
9741 (rtie): Update pattern.
9742 (simple_return): Simplify it, don't use this pattern as a return
9743 from an interrupt.
9744 (arc600_rtie): New pattern.
9745 (p_return_i): Clean up.
9746 (return): Likewise.
9747 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9748 family CPUs.
9749 * config/arc/predicates.md (move_src_operand): Consider lp_count
9750 as a register.
9751
9752 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9753
9754 * config/s390/predicates.md (addv_const_operand): New predicate.
9755 * config/s390/s390-modes.def (CCO): New condition code mode.
9756 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9757 (s390_branch_condition_mask): Likewise.
9758 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9759 ("mulv<mode>4"): New expanders.
9760 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9761 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9762 pattern definitions.
9763
9764 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9765
9766 PR middle-end/91166
9767 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9768 (define_predicates): Add entry for uniform_vector_p.
9769 (vec_same_elem_p): New match pattern.
9770
9771 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9772
9773 PR bootstrap/87030
9774 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9775 * config/i386/darwin32-biarch.h .. to here.
9776 * config/i386/darwin64-biarch.h: Adjust comments.
9777 * config/rs6000/darwin32-biarch.h: Likewise.
9778 * config/rs6000/darwin64-biarch.h: Likewise.
9779 * config.gcc: Missed commit from r273746
9780 (*-*-darwin*): Don't include CPU t-darwin here.
9781 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9782 an error message if i686-darwin configuration is attempted for
9783 Darwin >= 18.
9784
9785 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9786
9787 PR bootstrap/87030
9788 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9789 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9790 an error message if i686-darwin configuration is attempted for
9791 Darwin >= 18.
9792 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9793 (powerpc-*-darwin*): Use biarch files where needed.
9794 (powerpc64-*-darwin*): Likewise.
9795 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9796 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9797 arch case.
9798 * config/i386/darwin32-biarch.h: New.
9799 * config/i386/darwin64.h: Rename.
9800 * config/i386/darwin64-biarch.h: To this.
9801 * config/i386/t-darwin: Rename.
9802 * config/i386/t-darwin32-biarch: To this.
9803 * config/i386/t-darwin64: Rename.
9804 * config/i386/t-darwin64-biarch: To this.
9805 * config/rs6000/darwin32-biarch.h: New.
9806 * config/rs6000/darwin64.h: Rename.
9807 * config/rs6000/darwin64-biarch.h: To this.
9808 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9809 arch case.
9810 * config/rs6000/t-darwin8: Rename.
9811 * config/rs6000/t-darwin32-biarch: To this.
9812 * config/rs6000/t-darwin64 Rename.
9813 * config/rs6000/t-darwin64-biarch: To this.
9814
9815 2019-07-23 Martin Sebor <msebor@redhat.com>
9816
9817 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9818
9819 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9820
9821 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9822 (rh): New alias for it.
9823
9824 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9825
9826 * gdbhooks.py: Pass replace=True to
9827 gdb.printing.register_pretty_printer.
9828
9829 2019-07-23 Richard Biener <rguenther@suse.de>
9830
9831 PR debug/91231
9832 * lto-streamer-in.c (input_function): Drop inline-entry markers
9833 that ended up with an unknown location block.
9834
9835 2019-07-23 Richard Biener <rguenther@suse.de>
9836
9837 PR tree-optimization/83518
9838 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9839 init from a constant even when partial defs are already recorded.
9840
9841 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9842
9843 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9844 * config/i386/znver1.md: Enable patterns for znver2 and add store
9845 variants which use extra AGU unit.
9846
9847 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9848
9849 * config/i386/i386-options.c (ix86_option_override_internal): Default
9850 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9851 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9852 for ZNVER2.
9853
9854 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9855
9856 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9857 (znver2_costs): Update 256 bit SSE costs and multiplication.
9858
9859 2019-07-23 Jan Beulich <jbeulich@suse.com>
9860
9861 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9862 Require only AVX512F.
9863 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9864 alternative expanding to vpternlog.
9865
9866 2019-07-23 Martin Liska <mliska@suse.cz>
9867
9868 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9869 to -flto in dwarf producer string.
9870
9871 2019-07-23 Richard Biener <rguenther@suse.de>
9872
9873 * tree-cfg.c (label_for_bb): Remove global var.
9874 (main_block_label): Take label_for_bb as argument.
9875 (cleanup_dead_labels_eh): Likewise, adjust.
9876 (cleanup_dead_labels): Adjust.
9877
9878 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9879
9880 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9881 Configurations): Add documentation for __builtin_mtfsf.
9882
9883 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9884
9885 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9886 * config/riscv/riscv.c (riscv_constant_alignment): Use
9887 riscv_align_data_type.
9888 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9889 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9890 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9891 * config/riscv/riscv.opt (malign-data): New.
9892 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9893
9894 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9895
9896 * cgraph.c (dump_graphviz): New function.
9897 * cgraph.h (dump_graphviz): New function.
9898 * symtab.c (dump_graphviz): New function.
9899
9900 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9901
9902 * config/aarch64/aarch64-simd.md
9903 (*aarch64_simd_sra<mode>): New.
9904 * config/aarch64/iterators.md
9905 (SHIFTRT): New iterator.
9906 (sra_op): New attribute.
9907
9908 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9909
9910 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9911 callee-saved regs R4->R10 in an interrupt function that calls another
9912 function.
9913
9914 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9915
9916 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9917 (_mm_blendv_epi8): New.
9918
9919 2019-07-22 Richard Biener <rguenther@suse.de>
9920
9921 PR tree-optimization/91221
9922 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9923 restrict partial-def handling of empty constructors and
9924 memset to refs with known offset.
9925
9926 2019-07-22 Jan Beulich <jbeulich@suse.com>
9927
9928 * config/i386/sse.md (ternlogsuffix): New.
9929 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9930 AVX512F is in use.
9931 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9932
9933 2019-07-22 Martin Liska <mliska@suse.cz>
9934
9935 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9936 comment.
9937 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9938
9939 2019-07-22 Martin Liska <mliska@suse.cz>
9940
9941 * lto-section-in.c (lto_get_section_data):
9942 Use new function get_compression.
9943 * lto-streamer-out.c (produce_lto_section): Use
9944 set_compression to encode compression algorithm.
9945 * lto-streamer.h (struct lto_section): Do not
9946 use bitfields in the format.
9947
9948 2019-07-22 Martin Liska <mliska@suse.cz>
9949
9950 PR driver/91172
9951 * opts-common.c (decode_cmdline_option): Decode
9952 argument of -Werror and check it for a wrong language.
9953 * opts-global.c (complain_wrong_lang): Remove such case.
9954
9955 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
9956
9957 * config/arc/arc.c (prepare_move_operands): Always use an
9958 intermediate register when storing a TLS symbols.
9959
9960 2019-07-22 Stafford Horne <shorne@gmail.com>
9961
9962 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9963 force_reg.
9964
9965 2019-07-22 Stafford Horne <shorne@gmail.com>
9966
9967 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
9968 and munordered-float validations.
9969 * config/or1k/constraints.md (d): New register constraint.
9970 * config/or1k/predicates.md (fp_comparison_operator): New.
9971 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
9972 operands.
9973 (or1k_expand_compare): Normalize unordered comparisons.
9974 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
9975 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
9976 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
9977 * config/or1k/or1k.md (type): Add fpu.
9978 (fpu): New instruction reservation.
9979 (F, f, fr, fi, FI, FOP, fop): New.
9980 (<fop><F:mode>3): New ALU instruction definition.
9981 (float<fi><F:mode>2): New conversion instruction definition.
9982 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
9983 (fpcmpcc): New code iterator.
9984 (*sf_fp_insn): New instruction definition.
9985 (cstore<F:mode>4): New expand definition.
9986 (cbranch<F:mode>4): New expand definition.
9987 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
9988 munordered-float): New options.
9989 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
9990 munordered-float.
9991
9992 2019-07-22 Stafford Horne <shorne@gmail.com>
9993
9994 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
9995 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
9996 documenation to be more clear.
9997 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
9998 more clear.
9999 * config/or1k/or1k.opt (mrori): New option.
10000 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10001 msfimm, mshftimm): Rewrite documentation to be more clear.
10002 * config/or1k/or1k.md (insn_support): Add ror and rori.
10003 (enabled): Add conditions for ror and rori.
10004 (rotrsi3): Replace condition for shftimm with ror and rori.
10005
10006 2019-07-22 Stafford Horne <shorne@gmail.com>
10007
10008 PR target/90363
10009 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10010 (extend<mode>si2): Update predicate.
10011 * config/or1k/predicates.md (volatile_mem_operand): New.
10012 (reg_or_mem_operand): New.
10013
10014 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10015
10016 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10017 * config/rs6000/rs6000-call.c: ... to here.
10018
10019 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10020
10021 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10022 memory.
10023
10024 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10025
10026 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10027
10028 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10029
10030 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10031
10032 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10033
10034 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10035 (any_memory_operand): New predicate.
10036 (reg_or_mem_operand): Use it.
10037
10038 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10039
10040 PR target/91204
10041 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10042
10043 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10044
10045 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10046 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10047
10048 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10049
10050 * tree.def (OMP_LOOP): New tree code.
10051 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10052 (enum omp_clause_bind_kind): New enum.
10053 (struct tree_omp_clause): Add subcode.bind_kind.
10054 * tree.h (OMP_LOOP_CHECK): Rename to ...
10055 (OMP_LOOPING_CHECK): ... this.
10056 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10057 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10058 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10059 (OMP_CLAUSE_BIND_KIND): Define.
10060 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10061 bind clause entries.
10062 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10063 * tree-pretty-print.c (dump_omp_clause): Likewise.
10064 (dump_generic_node): Handle OMP_LOOP.
10065 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10066 (in_omp_construct): New variable.
10067 (is_gimple_stmt): Handle OMP_LOOP.
10068 (gimplify_scan_omp_clauses): For lastprivate don't set
10069 check_non_private if code == OMP_LOOP. For reduction clause
10070 on OMP_LOOP combined with parallel or teams propagate as shared
10071 on the combined construct. Handle OMP_CLAUSE_BIND.
10072 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10073 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10074 for constructs from a loop construct to gimplify_scan_omp_clauses.
10075 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10076 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10077 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10078 to match the implicit ORT_TARGET construct around whole body.
10079 Temporarily clear in_omp_construct when processing body.
10080 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10081 etc. temporarily set in_omp_construct when processing body.
10082 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10083 * omp-low.c (struct omp_context): Add loop_p.
10084 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10085 in that the original var might be private.
10086 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10087 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10088 addition of loop construct.
10089 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10090
10091 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10092 lastprivate non-addressable iterator of a collapse(1) simd.
10093
10094 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10095
10096 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10097 as in rs6000.c.
10098
10099 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10100
10101 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10102 refer to default conditions. Warn for the 'y' spec which is ignored
10103 by current linkers.
10104
10105 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10106
10107 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10108 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10109 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10110 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10111 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10112 init_cumulative_args, rs6000_promote_function_mode,
10113 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10114 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10115 rs6000_function_arg_boundary, rs6000_parm_offset,
10116 rs6000_parm_start, rs6000_arg_size,
10117 rs6000_darwin64_record_arg_advance_flush,
10118 rs6000_darwin64_record_arg_advance_recurse,
10119 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10120 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10121 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10122 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10123 rs6000_finish_function_arg, rs6000_function_arg,
10124 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10125 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10126 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10127 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10128 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10129 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10130 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10131 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10132 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10133 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10134 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10135 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10136 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10137 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10138 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10139 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10140 get_element_number, altivec_expand_vec_set_builtin,
10141 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10142 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10143 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10144 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10145 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10146 rs6000_expand_builtin, rs6000_vector_type,
10147 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10148 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10149 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10150 to rs6000-call.c.
10151 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10152 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10153 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10154 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10155 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10156 init_cumulative_args, rs6000_promote_function_mode,
10157 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10158 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10159 rs6000_function_arg_boundary, rs6000_parm_offset,
10160 rs6000_parm_start, rs6000_arg_size,
10161 rs6000_darwin64_record_arg_advance_flush,
10162 rs6000_darwin64_record_arg_advance_recurse,
10163 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10164 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10165 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10166 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10167 rs6000_finish_function_arg, rs6000_function_arg,
10168 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10169 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10170 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10171 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10172 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10173 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10174 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10175 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10176 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10177 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10178 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10179 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10180 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10181 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10182 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10183 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10184 get_element_number, altivec_expand_vec_set_builtin,
10185 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10186 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10187 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10188 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10189 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10190 rs6000_expand_builtin, rs6000_vector_type,
10191 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10192 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10193 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10194 to here from rs6000.c.
10195 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10196 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10197 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10198 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10199 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10200 rs6000_return_in_memory, rs6000_return_in_msb,
10201 rs6000_pass_by_reference, setup_incoming_varargs,
10202 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10203 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10204 rs6000_function_arg_padding, rs6000_function_arg,
10205 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10206 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10207 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10208 rs6000_passes_long_double, rs6000_passes_vector,
10209 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10210 altivec_builtin_mask_for_load) Add declarations.
10211 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10212 * config/config.gcc: Add new source file rs6000-call.c to garbage
10213 collector and extra_objs.
10214
10215 2019-07-19 Jeff Law <law@redhat.com>
10216
10217 PR tree-optimization/86061
10218 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10219 strncpy. Drop some trivial dead code.
10220 (maybe_trim_memstar_call): Handle strncpy.
10221
10222 2019-07-19 Richard Biener <rguenther@suse.de>
10223
10224 PR tree-optimization/91211
10225 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10226 memset encoding size.
10227
10228 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10229
10230 PR target/91204
10231 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10232
10233 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10234
10235 PR ipa/91194
10236 * ipa-inline.c (recursive_inlining): Fix limits check.
10237
10238 2019-07-19 Richard Biener <rguenther@suse.de>
10239
10240 PR tree-optimization/91200
10241 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10242 no PHI nodes in middle-bb.
10243
10244 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10245
10246 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10247 to +sve-bitperm.
10248 * config/aarch64/aarch64-option-extensions.def: Likewise.
10249
10250 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10251
10252 PR middle-end/91190
10253 * function.c (insert_temp_slot_address): Store into the hash table
10254 a copy of address to avoid RTL sharing issues.
10255
10256 2019-07-19 Richard Biener <rguenther@suse.de>
10257
10258 PR tree-optimization/91207
10259 Revert
10260 2019-07-17 Richard Biener <rguenther@suse.de>
10261
10262 PR tree-optimization/91178
10263 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10264 loads with a gap larger than the vector size always use
10265 VMAT_STRIDED_SLP.
10266 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10267 avoid loading vectors that are only contained in the gap
10268 and thus are not needed.
10269
10270 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10271
10272 * config/i386/i386.md (*addqi_2_slp): Remove.
10273 (*<code>qi_2_slp): Ditto.
10274
10275 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10276
10277 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10278 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10279 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10280 Rename function from rs6000_prefixed_address.
10281 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10282 TARGET_HAS_TOC.
10283 (TARGET_TOC): Likewise.
10284 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10285 rs6000.h.
10286 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10287 TARGET_HAS_TOC.
10288 (TARGET_TOC): Likewise.
10289 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10290 rs6000.h.
10291 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10292 TARGET_HAS_TOC.
10293 (TARGET_TOC): Likewise.
10294 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10295 check to require -mcmodel=medium for pc-relative addressing.
10296 (create_TOC_reference): Add assertion for TARGET_TOC.
10297 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10298 TARGET_NO_TOC.
10299 (rs6000_emit_move): Likewise.
10300 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10301 to 'TOC_alias_set'.
10302 (get_TOC_alias_set): Likewise.
10303 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10304 TARGET_NO_TOC.
10305 (rs6000_can_eliminate): Likewise.
10306 (rs6000_prefixed_address_mode_p): Rename function from
10307 rs6000_prefixed_address.
10308 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10309 TARGET_HAS_TOC and not pc-relative.
10310 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10311 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10312 TARGET_HAS_TOC.
10313 (TARGET_TOC): Likewise.
10314 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10315 rs6000.h.
10316
10317 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10318
10319 PR target/91188
10320 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10321 for operand 0. Do not use (match_dup) to match operand 1 with
10322 operand 0. Add check in insn constraint that either input operand
10323 matches operand 0. Use SWI12 mode iterator to also handle
10324 HImode operands.
10325 (*and<mode>_1_slp): Ditto.
10326 (*<code>qi_1_slp): Ditto.
10327 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10328 Do not use (match_dup) to match operand 1 with operand 0. Add
10329 check in insn constraint that operand 1 matches operand 0.
10330 Use SWI12 mode iterator to also handle HImode operands.
10331 (*ashl<mode>3_1_slp): Ditto.
10332 (*<shift_insn><mode>3_1_slp): Ditto.
10333 (*<rotate_insn><mode>3_1_slp): Ditto.
10334
10335 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10336
10337 * config/arm/arm-builtins.c
10338 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10339 (arm_expand_unop_builtin): Likewise.
10340 * config/arm/crypto.md
10341 (crypto_sha1h): Convert from define_insn to define_expand.
10342 (crypto_<crypto_pattern>): Likewise.
10343 (crypto_sha1h_lb): New define_insn.
10344 (crypto_<crypto_pattern>_lb): Likewise.
10345
10346 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10347
10348 PR target/90317
10349 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10350 (vsha1cq_u32): Likewise.
10351 (vsha1pq_u32): Likewise.
10352 (vsha1mq_u32): Likewise.
10353 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10354 vec select.
10355 (crypto_sha1c): Correct vec select.
10356 (crypto_sha1m): Likewise.
10357 (crypto_sha1p): Likewise.
10358
10359 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10360
10361 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10362 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10363 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10364 (subdi_zesidi_zesidi): Likewise.
10365 (negdi2_compare, negdi2_insn): Likewise.
10366 (negdi_extensidi): Likewise.
10367 (negdi_zero_extendsidi): Likewise.
10368 (arm_cmpdi_insn): Likewise.
10369 (subsi3_carryin): Use arm_borrow_operation.
10370 (subsi3_carryin_const): Likewise.
10371 (subsi3_carryin_const0): Likewise.
10372 (subsi3_carryin_compare): Likewise.
10373 (subsi3_carryin_compare_const): Likewise.
10374 (subsi3_carryin_compare_const0): Likewise.
10375 (subsi3_carryin_shift): Likewise.
10376 (rsbsi3_carryin_shift): Likewise.
10377 (negsi2_carryin_compare): Likewise.
10378
10379 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10380
10381 PR tree-optimization/91137
10382 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10383 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10384 Init, use and fini the above new field.
10385 (determine_base_object_1): New function.
10386 (determine_base_object): Reimplement using walk_tree.
10387
10388 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10389
10390 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10391 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10392 CLEANUP_FORCE_FAST_DCE is set.
10393 * ifcvt.c (rest_of_handle_if_conversion): Pass
10394 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10395 if-conversion succeeded.
10396
10397 2019-07-18 Richard Biener <rguenther@suse.de>
10398
10399 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10400 branches to make code less indented.
10401
10402 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10403
10404 PR middle-end/81824
10405 * attribs.c (decls_mismatched_attributes): Simplify the logic
10406 that avoids duplicates and false positives.
10407
10408 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10409
10410 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10411 data into data section when generating PIC code.
10412 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10413 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10414 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10415 return 2 for SOM and 0 for other targets.
10416
10417 2019-07-17 Jeff Law <law@redhat.com>
10418
10419 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10420 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10421 avoid unexpected switch statement fallthru.
10422
10423 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10424
10425 * config/i386/i386.md (*add<dwi>3_doubleword):
10426 Remove redundant constraints.
10427 (*add<mode>_1): Ditto.
10428 (*addhi_1): Ditto.
10429 (*addqi_1): Ditto.
10430 (*addqi_1_slp): Ditto.
10431 (*add<mode>_2): Ditto.
10432 (*addv<mode>4): Ditto.
10433 (*sub<dwi>3_doubleword): Ditto.
10434 (*sub<mode>_1): Ditto.
10435 (*subqi_1_slp): Ditto.
10436 (*sub<mode>_2): Ditto.
10437 (*subv<mode>4): Ditto.
10438 (*sub<mode>_3): Ditto.
10439 (@add<mode>3_carry): Ditto.
10440 (@sub<mode>3_carry): Ditto.
10441 (*add<mode>3_cc_overflow_1): Ditto.
10442 (*add<mode>3_zext_cc_overflow_2): Ditto.
10443 (*anddi_1): Ditto.
10444 (*and<mode>_1): Ditto.
10445 (*andqi_1): Ditto.
10446 (*andqi_1_slp): Ditto.
10447 (*anddi_2): Ditto.
10448 (*andqi_2_maybe_si): Ditto.
10449 (*and<mode>_2): Ditto.
10450 (*andqi_2_slp): Ditto.
10451 (*<code><mode>_1): Ditto.
10452 (*<code>qi_1): Ditto.
10453 (*<code>qi_1_slp): Ditto.
10454 (*<code><mode>_2): Ditto.
10455 (*<code>qi_2_slp): Ditto.
10456
10457 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10458
10459 * alias.c (record_component_aliases): Do not simplify pointed-to
10460 types of ODR types.
10461
10462 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10463
10464 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10465 partial reg stall on alternative 2.
10466
10467 2019-07-17 Richard Biener <rguenther@suse.de>
10468
10469 PR tree-optimization/91178
10470 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10471 lower SSA names to avoid quadratic behavior in the common case.
10472 * tree-data-ref.c (split_constant_offset): Add limit argument
10473 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10474 (split_constant_offset_1): Add limit argument and use it to
10475 limit SSA def walking. Optimize the common plus/minus case.
10476
10477 2019-07-17 Richard Biener <rguenther@suse.de>
10478
10479 PR tree-optimization/91178
10480 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10481 loads with a gap larger than the vector size always use
10482 VMAT_STRIDED_SLP.
10483 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10484 avoid loading vectors that are only contained in the gap
10485 and thus are not needed.
10486
10487 2019-07-17 Richard Biener <rguenther@suse.de>
10488
10489 PR tree-optimization/91180
10490 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10491 computation for memset partial defs.
10492
10493 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10494
10495 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10496 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10497 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10498 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10499 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10500 * omp-grid.c (grid_process_grid_body,
10501 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10502 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10503 == GF_OMP_FOR_KIND_SIMD.
10504 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10505 check_omp_nesting_restrictions, scan_omp_1_stmt,
10506 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10507 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10508 omp_find_scan): Likewise.
10509 * omp-expand.c (expand_omp_for): Likewise.
10510 * omp-general.c (omp_extract_for_data): Likewise.
10511
10512 PR tree-optimization/91157
10513 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10514 a vector boolean with scalar mode.
10515 (expand_vector_condition): Handle first operand being a vector boolean
10516 with scalar mode.
10517 (expand_vector_operations_1): For comparisons, don't bail out early
10518 if the return type is vector boolean with scalar mode, but comparison
10519 operand type is not.
10520
10521 2019-07-17 Richard Biener <rguenther@suse.de>
10522
10523 PR tree-optimization/91181
10524 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10525 IFN_LOADs as calls.
10526
10527 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10528
10529 * config/i386/i386.md (*testdi_1): Match CCZmode for
10530 constants that might have the SImode sign bit set.
10531 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10532 Use correct constraints for pentium pairing.
10533 (*test<mode>_1): Ditto.
10534
10535 2019-07-16 Jeff Law <law@redhat.com>
10536
10537 PR rtl-optimization/91173
10538 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10539 SSA_NAME with a constant value, fold its value into the offset
10540 and clear the base before calling gen_addr_rtx.
10541
10542 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10543
10544 PR rtl-optimization/91164
10545 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10546 invalidate dominance info.
10547
10548 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10549
10550 * read-md.h (md_reader::record_potential_iterator_use): Add a
10551 file_location parameter.
10552 * read-rtl.c (attribute_use::loc): New field.
10553 (map_attr_string): Take a file_location parameter. Report cases
10554 in which attributes map to multiple distinct values.
10555 (apply_attribute_uses): Update call accordingly.
10556 (md_reader::handle_overloaded_name): Likewise.
10557 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10558 nonnull strings.
10559 (record_attribute_use): Take a file_location parameter.
10560 Initialize attribute_use::loc.
10561 (md_reader::record_potential_iterator_use): Take a file_location
10562 parameter. Update call to record_attribute_use.
10563 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10564 (rtx_reader::read_rtx_code): Likewise.
10565 (rtx_reader::read_rtx_operand): Likewise. Record a location
10566 for implicitly-expanded empty strings.
10567
10568 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10569
10570 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10571 Use file_location instead of separate fields.
10572 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10573 separate filename and line number.
10574 * read-md.c (ptr_loc): As above.
10575 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10576 (md_reader::fprint_md_ptr_loc): Likewise.
10577 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10578 instead of a separate filename and line number.
10579 (md_reader::read_string): Update call accordingly.
10580
10581 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10582
10583 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10584 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10585 leaving the choice between SFDF and P implicit.
10586 (*mov<mode>_update2): Likewise.
10587 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10588 rather than leaving the choice betweem IBM128 and GPR implicit.
10589 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10590 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10591 QHSI implicit.
10592 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10593 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10594 * config/rs6000/vsx.md
10595 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10596 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10597 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10598 and VSX_EXTRACT_I implicit.
10599
10600 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10601
10602 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10603 Explicitly use <MOVEP1:MODE> for the mode attribute.
10604
10605 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10606
10607 PR bootstrap/91176
10608 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10609
10610 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10611
10612 PR target/91050
10613 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10614 .machine directive.
10615
10616 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10617
10618 * config/i386/i386.md (@test<mode>_ccno_1):
10619 Rename from test<mode>_ccno_1.
10620 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10621 (*testqi_1_maybe_si): Remove modrm attribute.
10622 (*test<mode>_1): Ditto.
10623 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10624 gen_test_ccno_1 and gen_extend_insn.
10625
10626 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10627
10628 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10629 to 0.
10630
10631 2019-07-15 Richard Biener <rguenther@suse.de>
10632
10633 PR middle-end/91162
10634 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10635 node make sure to replace all uses with something valid.
10636
10637 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10638
10639 PR tree-optimization/88497
10640 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10641 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10642 function undistribute_bitref_for_vector.
10643 (undistribute_bitref_for_vector): New function.
10644 (cleanup_vinfo_map): Likewise.
10645 (sort_by_mach_mode): Likewise.
10646
10647 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10648
10649 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10650 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10651 and testdi_ccno_1 using SWI48 mode attribute.
10652 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10653 x86_64_szext_general_operand.
10654 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10655 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10656 instead of genera_operand mode attribute.
10657
10658 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10659
10660 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10661 fopen and fclose to their respective types.
10662 (DotFn.invoke): Ditto.
10663
10664 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10665
10666 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10667 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10668 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10669 (array_index_predicate): Remove.
10670 (analyze_function_body): Account cost for variable ofsetted array
10671 indexing.
10672 (estimate_node_size_and_time): Do not compute array index hint.
10673 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10674 (inline_read_section): Do not read array index hint.
10675 (ipa_fn_summary_write): Do not write array index hint.
10676 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10677 * ipa-cp.c (hint_time_bonus): Remove.
10678 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10679 (ipa_fnsummary): Remove array_index.
10680 * ipa-inline.c (want_inline_small_function_p): Do not use
10681 array_index.
10682 (edge_badness): Likewise.
10683 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10684
10685 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10686
10687 PR target/91148
10688 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10689 superfluous "builtin function" phrasing.
10690
10691 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10692
10693 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10694 Break out from ...
10695 (aliasing_component_refs_walk): Break out from ...
10696 (aliasing_component_refs_p): ... here.
10697
10698 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10699
10700 PR target/91148
10701 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10702 "builtin function" phrasing.
10703
10704 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10705
10706 PR target/90723
10707 * recog.h (temporary_volatile_ok): New class.
10708 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10709 volatile_ok temporarily to true using temporary_volatile_ok.
10710 * expr.c (emit_block_move_via_cpymem): Likewise.
10711 * optabs.c (maybe_legitimize_operand): Likewise.
10712
10713 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10714
10715 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10716 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10717 uses inside of order(concurrent) constructs.
10718 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10719 OMP_CLAUSE_ORDER is seen.
10720 * omp-low.c (struct omp_context): Add order_concurrent member.
10721 (scan_sharing_clauses): Set ctx->order_concurrent if
10722 OMP_CLAUSE_ORDER is seen.
10723 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10724 of simd order(concurrent). Diagnose constructs not allowed inside of
10725 for order(concurrent).
10726 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10727 complaining about static double setjmp (double); or class static
10728 methods or non-global namespace setjmps.
10729 (omp_runtime_api_call): New function.
10730 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10731 order(concurrent) loops.
10732
10733 2019-07-12 Martin Sebor <msebor@redhat.com>
10734
10735 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10736 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10737 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10738 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10739
10740 2019-07-12 Jan Hubicka <jh@suse.cz>
10741
10742 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10743 (indirect_refs_may_alias_p): ... here.
10744 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10745 mem refs in the access paths.
10746
10747 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10748
10749 PR tree-optimization/89430
10750 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10751 store elimination for local variable without address escape.
10752
10753 2019-07-12 Jeff Law <law@redhat.com>
10754
10755 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10756 for the ".far" section.
10757
10758 2019-07-12 Richard Biener <rguenther@suse.de>
10759
10760 PR tree-optimization/91145
10761 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10762 chain check.
10763
10764 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10765
10766 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10767 rather than this_state as the lowering context for the ELSE
10768 seq in a GIMPLE_EH_ELSE.
10769
10770 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10771
10772 * vector-builder.h (vector_builder::elt): Allow already-supplied
10773 elements to be read back before building is complete.
10774
10775 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10776
10777 PR rtl-optimization/91136
10778 * df-core.c (ACCESSING REFS): Fix typos in comment.
10779 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10780 the beginning of the block to the initial set of live registers.
10781
10782 2019-07-12 Richard Biener <rguenther@suse.de>
10783
10784 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10785 * fold-const.c (get_array_ctor_element_at_index): Add
10786 ctor_idx output parameter informing the caller where in
10787 the constructor the element was (not) found. Add early exit
10788 for when the ctor is sorted.
10789 * gimple-fold.c (fold_array_ctor_reference): Support constant
10790 folding across multiple array elements.
10791
10792 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10793
10794 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10795 doesn't have location, set the current location to the function's end.
10796
10797 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10798
10799 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10800 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10801 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10802 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10803 * config/aarch64/aarch64-simd.md
10804 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10805 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10806 * config/aarch64/aarch64-sve.md
10807 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10808 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10809
10810 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10811
10812 * doc/md.texi: Document that @ patterns can have different
10813 numbers of operands.
10814 * genemit.c (handle_overloaded_gen): Handle this case.
10815 * genopinit.c (handle_overloaded_gen): Likewise.
10816 * gensupport.c (replace_operands_with_dups): Iterate over
10817 the new rtx's format rather than the old one's.
10818
10819 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10820
10821 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10822 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10823 order clause entries.
10824 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10825 * tree-pretty-print.c (dump_omp_clause): Likewise.
10826 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10827 Likewise.
10828 * omp-low.c (scan_sharing_clauses): Likewise.
10829 * tree-nested.c (convert_nonlocal_omp_clauses,
10830 convert_local_omp_clauses): Likewise.
10831
10832 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10833
10834 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10835 fallthrough target of current basic block isn't the placed
10836 right next.
10837
10838 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10839
10840 PR target/90980
10841 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10842 (_mm512_storeu_epi64): Likewise.
10843 (_mm512_loadu_epi32): Likewise.
10844 (_mm512_storeu_epi32): Likewise.
10845 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10846 (_mm_storeu_epi64): Likewise.
10847 (_mm256_storeu_epi32): Likewise.
10848 (_mm_storeu_epi32): Likewise.
10849
10850 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10851
10852 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10853
10854 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10855
10856 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10857 Handle Modula-2.
10858
10859 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10860
10861 PR target/91124
10862 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10863 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10864 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10865 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10866 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10867 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10868 define_insns.
10869 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10870 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10871 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10872 define_insns.
10873 (sse2_cvttpd2dq<mask_name>): Change into ...
10874 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10875 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10876 (*sse2_cvtpd2dq<mask_name>): Change into ...
10877 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10878 Add "C" constraint to const0_operand.
10879 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10880 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10881 changes.
10882
10883 PR target/91124
10884 * config/i386/i386-builtin-types.def
10885 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10886 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10887 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10888 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10889 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10890 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10891 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10892 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10893 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10894 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10895 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10896 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10897 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10898 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10899 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10900 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10901 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10902 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10903 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10904 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10905 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10906 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10907 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10908 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10909 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10910 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10911 __builtin_ia32_vpdpbusd_v4si_maskz,
10912 __builtin_ia32_vpdpbusds_v16si_mask,
10913 __builtin_ia32_vpdpbusds_v16si_maskz,
10914 __builtin_ia32_vpdpbusds_v8si_mask,
10915 __builtin_ia32_vpdpbusds_v8si_maskz,
10916 __builtin_ia32_vpdpbusds_v4si_mask,
10917 __builtin_ia32_vpdpbusds_v4si_maskz,
10918 __builtin_ia32_vpdpwssd_v16si_mask,
10919 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10920 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10921 __builtin_ia32_vpdpwssd_v4si_maskz,
10922 __builtin_ia32_vpdpwssds_v16si_mask,
10923 __builtin_ia32_vpdpwssds_v16si_maskz,
10924 __builtin_ia32_vpdpwssds_v8si_mask,
10925 __builtin_ia32_vpdpwssds_v8si_maskz,
10926 __builtin_ia32_vpdpwssds_v4si_mask,
10927 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10928 suffixed types rather than *_INT.
10929 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10930 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10931 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10932 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10933 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10934 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10935
10936 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
10937
10938 * tree-vrp.c (intersect_ranges): If we know the intersection is
10939 empty, there is no need to conservatively add anything else to
10940 the set.
10941
10942 2019-07-11 Richard Biener <rguenther@suse.de>
10943
10944 PR middle-end/91131
10945 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10946 when the object is volatile and we have not cleared it even though
10947 there are no nonzero elements.
10948
10949 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
10950
10951 * config/rs6000/predicates.md (cint34_operand): Update
10952 SIGNED_34BIT_OFFSET_P call.
10953 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10954 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10955 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10956 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10957 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10958 argument.
10959 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10960 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10961 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10962 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10963 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10964
10965 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
10966
10967 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
10968 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
10969 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
10970 (DEF_MIN_OSX_VERSION): New.
10971
10972 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10973
10974 * fold-const.c (fold_relational_const): Fix folding of
10975 vector-to-scalar NE_EXPRs.
10976 (test_vector_folding): Add more tests.
10977
10978 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
10979
10980 PR target/91060
10981 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
10982 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
10983 (vec_setv2di_internal): Reexpress as...
10984 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
10985 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
10986 rather than gen_neon_vset_lane<mode>.
10987
10988 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
10989
10990 PR target/91102
10991 * lra-constraints.c (process_alt_operands): Don't match user
10992 defined regs only if they are early clobbers.
10993
10994 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
10995
10996 * wide-int.h (wi::lshift): Reject negative values for the fast path.
10997
10998 2019-07-10 Richard Biener <rguenther@suse.de>
10999
11000 PR tree-optimization/91126
11001 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11002 native encoding offset for BYTES_BIG_ENDIAN.
11003 (vn_reference_lookup_3): Likewise.
11004
11005 2019-07-10 Richard Biener <rguenther@suse.de>
11006
11007 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11008 LHS whenever possible.
11009
11010 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11011
11012 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11013 from ...; work also on duplicated types.
11014 (nonoverlapping_component_refs_since_match): ... here
11015 (ncr_type_uid): Break out from ...
11016 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11017 available.
11018 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11019 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11020
11021 2019-07-09 Martin Sebor <msebor@redhat.com>
11022
11023 PR tree-optimization/90989
11024 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11025 optimization to just single character stores.
11026
11027 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11028
11029 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11030 Swap operands only once.
11031
11032 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11033
11034 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11035 for both call instructions.
11036
11037 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11038
11039 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11040 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11041
11042 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11043
11044 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11045 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11046 function from rs6000-logue.c back to rs6000.c.
11047 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11048
11049 2019-07-09 Martin Sebor <msebor@redhat.com>
11050
11051 PR c++/61339
11052 * auto-profile.c: Change class-key of PODs to struct and others
11053 to class.
11054 * basic-block.h: Same.
11055 * bitmap.c (bitmap_alloc): Same.
11056 * bitmap.h: Same.
11057 * builtins.c (expand_builtin_prefetch): Same.
11058 (expand_builtin_interclass_mathfn): Same.
11059 (expand_builtin_strlen): Same.
11060 (expand_builtin_mempcpy_args): Same.
11061 (expand_cmpstr): Same.
11062 (expand_builtin___clear_cache): Same.
11063 (expand_ifn_atomic_bit_test_and): Same.
11064 (expand_builtin_thread_pointer): Same.
11065 (expand_builtin_set_thread_pointer): Same.
11066 * caller-save.c (setup_save_areas): Same.
11067 (replace_reg_with_saved_mem): Same.
11068 (insert_restore): Same.
11069 (insert_save): Same.
11070 (add_used_regs): Same.
11071 * cfg.c (get_bb_copy): Same.
11072 (set_loop_copy): Same.
11073 * cfg.h: Same.
11074 * cfganal.h: Same.
11075 * cfgexpand.c (alloc_stack_frame_space): Same.
11076 (add_stack_var): Same.
11077 (add_stack_var_conflict): Same.
11078 (add_scope_conflicts_1): Same.
11079 (update_alias_info_with_stack_vars): Same.
11080 (expand_used_vars): Same.
11081 * cfghooks.c (redirect_edge_and_branch_force): Same.
11082 (delete_basic_block): Same.
11083 (split_edge): Same.
11084 (make_forwarder_block): Same.
11085 (force_nonfallthru): Same.
11086 (duplicate_block): Same.
11087 (lv_flush_pending_stmts): Same.
11088 * cfghooks.h: Same.
11089 * cfgloop.c (flow_loops_cfg_dump): Same.
11090 (flow_loop_nested_p): Same.
11091 (superloop_at_depth): Same.
11092 (get_loop_latch_edges): Same.
11093 (flow_loop_dump): Same.
11094 (flow_loops_dump): Same.
11095 (flow_loops_free): Same.
11096 (flow_loop_nodes_find): Same.
11097 (establish_preds): Same.
11098 (flow_loop_tree_node_add): Same.
11099 (flow_loop_tree_node_remove): Same.
11100 (flow_loops_find): Same.
11101 (find_subloop_latch_edge_by_profile): Same.
11102 (find_subloop_latch_edge_by_ivs): Same.
11103 (mfb_redirect_edges_in_set): Same.
11104 (form_subloop): Same.
11105 (merge_latch_edges): Same.
11106 (disambiguate_multiple_latches): Same.
11107 (disambiguate_loops_with_multiple_latches): Same.
11108 (flow_bb_inside_loop_p): Same.
11109 (glb_enum_p): Same.
11110 (get_loop_body_with_size): Same.
11111 (get_loop_body): Same.
11112 (fill_sons_in_loop): Same.
11113 (get_loop_body_in_dom_order): Same.
11114 (get_loop_body_in_custom_order): Same.
11115 (release_recorded_exits): Same.
11116 (get_loop_exit_edges): Same.
11117 (num_loop_branches): Same.
11118 (remove_bb_from_loops): Same.
11119 (find_common_loop): Same.
11120 (delete_loop): Same.
11121 (cancel_loop): Same.
11122 (verify_loop_structure): Same.
11123 (loop_preheader_edge): Same.
11124 (loop_exit_edge_p): Same.
11125 (single_exit): Same.
11126 (loop_exits_to_bb_p): Same.
11127 (loop_exits_from_bb_p): Same.
11128 (get_loop_location): Same.
11129 (record_niter_bound): Same.
11130 (get_estimated_loop_iterations_int): Same.
11131 (max_stmt_executions_int): Same.
11132 (likely_max_stmt_executions_int): Same.
11133 (get_estimated_loop_iterations): Same.
11134 (get_max_loop_iterations): Same.
11135 (get_max_loop_iterations_int): Same.
11136 (get_likely_max_loop_iterations): Same.
11137 * cfgloop.h (simple_loop_desc): Same.
11138 (get_loop): Same.
11139 (loop_depth): Same.
11140 (loop_outer): Same.
11141 (loop_iterator::next): Same.
11142 (loop_outermost): Same.
11143 * cfgloopanal.c (mark_irreducible_loops): Same.
11144 (num_loop_insns): Same.
11145 (average_num_loop_insns): Same.
11146 (expected_loop_iterations_unbounded): Same.
11147 (expected_loop_iterations): Same.
11148 (mark_loop_exit_edges): Same.
11149 (single_likely_exit): Same.
11150 * cfgloopmanip.c (fix_bb_placement): Same.
11151 (fix_bb_placements): Same.
11152 (remove_path): Same.
11153 (place_new_loop): Same.
11154 (add_loop): Same.
11155 (scale_loop_frequencies): Same.
11156 (scale_loop_profile): Same.
11157 (create_empty_if_region_on_edge): Same.
11158 (create_empty_loop_on_edge): Same.
11159 (loopify): Same.
11160 (unloop): Same.
11161 (fix_loop_placements): Same.
11162 (copy_loop_info): Same.
11163 (duplicate_loop): Same.
11164 (duplicate_subloops): Same.
11165 (loop_redirect_edge): Same.
11166 (can_duplicate_loop_p): Same.
11167 (duplicate_loop_to_header_edge): Same.
11168 (mfb_keep_just): Same.
11169 (has_preds_from_loop): Same.
11170 (create_preheader): Same.
11171 (create_preheaders): Same.
11172 (lv_adjust_loop_entry_edge): Same.
11173 (loop_version): Same.
11174 * cfgloopmanip.h: Same.
11175 * cgraph.h: Same.
11176 * cgraphbuild.c: Same.
11177 * combine.c (make_extraction): Same.
11178 * config/i386/i386-features.c: Same.
11179 * config/i386/i386-features.h: Same.
11180 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11181 (ix86_emit_outlined_ms2sysv_restore): Same.
11182 (ix86_noce_conversion_profitable_p): Same.
11183 (ix86_init_cost): Same.
11184 (ix86_simd_clone_usable): Same.
11185 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11186 Wstruct-not-pod.
11187 * coretypes.h: Same.
11188 * data-streamer-in.c (string_for_index): Change class-key of PODs
11189 to struct and others to class.
11190 (streamer_read_indexed_string): Same.
11191 (streamer_read_string): Same.
11192 (bp_unpack_indexed_string): Same.
11193 (bp_unpack_string): Same.
11194 (streamer_read_uhwi): Same.
11195 (streamer_read_hwi): Same.
11196 (streamer_read_gcov_count): Same.
11197 (streamer_read_wide_int): Same.
11198 * data-streamer.h (streamer_write_bitpack): Same.
11199 (bp_unpack_value): Same.
11200 (streamer_write_char_stream): Same.
11201 (streamer_write_hwi_in_range): Same.
11202 (streamer_write_record_start): Same.
11203 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11204 (add_cross_iteration_register_deps): Same.
11205 (build_intra_loop_deps): Same.
11206 * df-core.c (df_analyze): Same.
11207 (loop_post_order_compute): Same.
11208 (loop_inverted_post_order_compute): Same.
11209 * df-problems.c (df_rd_alloc): Same.
11210 (df_rd_simulate_one_insn): Same.
11211 (df_rd_local_compute): Same.
11212 (df_rd_init_solution): Same.
11213 (df_rd_confluence_n): Same.
11214 (df_rd_transfer_function): Same.
11215 (df_rd_free): Same.
11216 (df_rd_dump_defs_set): Same.
11217 (df_rd_top_dump): Same.
11218 (df_lr_alloc): Same.
11219 (df_lr_reset): Same.
11220 (df_lr_local_compute): Same.
11221 (df_lr_init): Same.
11222 (df_lr_confluence_n): Same.
11223 (df_lr_free): Same.
11224 (df_lr_top_dump): Same.
11225 (df_lr_verify_transfer_functions): Same.
11226 (df_live_alloc): Same.
11227 (df_live_reset): Same.
11228 (df_live_init): Same.
11229 (df_live_confluence_n): Same.
11230 (df_live_finalize): Same.
11231 (df_live_free): Same.
11232 (df_live_top_dump): Same.
11233 (df_live_verify_transfer_functions): Same.
11234 (df_mir_alloc): Same.
11235 (df_mir_reset): Same.
11236 (df_mir_init): Same.
11237 (df_mir_confluence_n): Same.
11238 (df_mir_free): Same.
11239 (df_mir_top_dump): Same.
11240 (df_word_lr_alloc): Same.
11241 (df_word_lr_reset): Same.
11242 (df_word_lr_init): Same.
11243 (df_word_lr_confluence_n): Same.
11244 (df_word_lr_free): Same.
11245 (df_word_lr_top_dump): Same.
11246 (df_md_alloc): Same.
11247 (df_md_simulate_one_insn): Same.
11248 (df_md_reset): Same.
11249 (df_md_init): Same.
11250 (df_md_free): Same.
11251 (df_md_top_dump): Same.
11252 * df-scan.c (df_insn_delete): Same.
11253 (df_insn_rescan): Same.
11254 (df_notes_rescan): Same.
11255 (df_sort_and_compress_mws): Same.
11256 (df_install_mws): Same.
11257 (df_refs_add_to_chains): Same.
11258 (df_ref_create_structure): Same.
11259 (df_ref_record): Same.
11260 (df_def_record_1): Same.
11261 (df_find_hard_reg_defs): Same.
11262 (df_uses_record): Same.
11263 (df_get_conditional_uses): Same.
11264 (df_get_call_refs): Same.
11265 (df_recompute_luids): Same.
11266 (df_get_entry_block_def_set): Same.
11267 (df_entry_block_defs_collect): Same.
11268 (df_get_exit_block_use_set): Same.
11269 (df_exit_block_uses_collect): Same.
11270 (df_mws_verify): Same.
11271 (df_bb_verify): Same.
11272 * df.h (df_scan_get_bb_info): Same.
11273 * doc/tm.texi: Same.
11274 * dse.c (record_store): Same.
11275 * dumpfile.h: Same.
11276 * emit-rtl.c (const_fixed_hasher::equal): Same.
11277 (set_mem_attributes_minus_bitpos): Same.
11278 (change_address): Same.
11279 (adjust_address_1): Same.
11280 (offset_address): Same.
11281 * emit-rtl.h: Same.
11282 * except.c (dw2_build_landing_pads): Same.
11283 (sjlj_emit_dispatch_table): Same.
11284 * explow.c (allocate_dynamic_stack_space): Same.
11285 (emit_stack_probe): Same.
11286 (probe_stack_range): Same.
11287 * expmed.c (store_bit_field_using_insv): Same.
11288 (store_bit_field_1): Same.
11289 (store_integral_bit_field): Same.
11290 (extract_bit_field_using_extv): Same.
11291 (extract_bit_field_1): Same.
11292 (emit_cstore): Same.
11293 * expr.c (emit_block_move_via_cpymem): Same.
11294 (expand_cmpstrn_or_cmpmem): Same.
11295 (set_storage_via_setmem): Same.
11296 (emit_single_push_insn_1): Same.
11297 (expand_assignment): Same.
11298 (store_constructor): Same.
11299 (expand_expr_real_2): Same.
11300 (expand_expr_real_1): Same.
11301 (try_casesi): Same.
11302 * flags.h: Same.
11303 * function.c (try_fit_stack_local): Same.
11304 (assign_stack_local_1): Same.
11305 (assign_stack_local): Same.
11306 (cut_slot_from_list): Same.
11307 (insert_slot_to_list): Same.
11308 (max_slot_level): Same.
11309 (move_slot_to_level): Same.
11310 (temp_address_hasher::equal): Same.
11311 (remove_unused_temp_slot_addresses): Same.
11312 (assign_temp): Same.
11313 (combine_temp_slots): Same.
11314 (update_temp_slot_address): Same.
11315 (preserve_temp_slots): Same.
11316 * function.h: Same.
11317 * fwprop.c: Same.
11318 * gcc-rich-location.h: Same.
11319 * gcov.c: Same.
11320 * genattrtab.c (check_attr_test): Same.
11321 (check_attr_value): Same.
11322 (convert_set_attr_alternative): Same.
11323 (convert_set_attr): Same.
11324 (check_defs): Same.
11325 (copy_boolean): Same.
11326 (get_attr_value): Same.
11327 (expand_delays): Same.
11328 (make_length_attrs): Same.
11329 (min_fn): Same.
11330 (make_alternative_compare): Same.
11331 (simplify_test_exp): Same.
11332 (tests_attr_p): Same.
11333 (get_attr_order): Same.
11334 (clear_struct_flag): Same.
11335 (gen_attr): Same.
11336 (compares_alternatives_p): Same.
11337 (gen_insn): Same.
11338 (gen_delay): Same.
11339 (find_attrs_to_cache): Same.
11340 (write_test_expr): Same.
11341 (walk_attr_value): Same.
11342 (write_attr_get): Same.
11343 (eliminate_known_true): Same.
11344 (write_insn_cases): Same.
11345 (write_attr_case): Same.
11346 (write_attr_valueq): Same.
11347 (write_attr_value): Same.
11348 (write_dummy_eligible_delay): Same.
11349 (next_comma_elt): Same.
11350 (find_attr): Same.
11351 (make_internal_attr): Same.
11352 (copy_rtx_unchanging): Same.
11353 (gen_insn_reserv): Same.
11354 (check_tune_attr): Same.
11355 (make_automaton_attrs): Same.
11356 (handle_arg): Same.
11357 * genextract.c (gen_insn): Same.
11358 (VEC_char_to_string): Same.
11359 * genmatch.c (print_operand): Same.
11360 (lower): Same.
11361 (parser::parse_operation): Same.
11362 (parser::parse_capture): Same.
11363 (parser::parse_c_expr): Same.
11364 (parser::parse_simplify): Same.
11365 (main): Same.
11366 * genoutput.c (output_operand_data): Same.
11367 (output_get_insn_name): Same.
11368 (compare_operands): Same.
11369 (place_operands): Same.
11370 (process_template): Same.
11371 (validate_insn_alternatives): Same.
11372 (validate_insn_operands): Same.
11373 (gen_expand): Same.
11374 (note_constraint): Same.
11375 * genpreds.c (write_one_predicate_function): Same.
11376 (add_constraint): Same.
11377 (process_define_register_constraint): Same.
11378 (write_lookup_constraint_1): Same.
11379 (write_lookup_constraint_array): Same.
11380 (write_insn_constraint_len): Same.
11381 (write_reg_class_for_constraint_1): Same.
11382 (write_constraint_satisfied_p_array): Same.
11383 * genrecog.c (optimize_subroutine_group): Same.
11384 * gensupport.c (process_define_predicate): Same.
11385 (queue_pattern): Same.
11386 (remove_from_queue): Same.
11387 (process_rtx): Same.
11388 (is_predicable): Same.
11389 (change_subst_attribute): Same.
11390 (subst_pattern_match): Same.
11391 (alter_constraints): Same.
11392 (alter_attrs_for_insn): Same.
11393 (shift_output_template): Same.
11394 (alter_output_for_subst_insn): Same.
11395 (process_one_cond_exec): Same.
11396 (subst_dup): Same.
11397 (process_define_cond_exec): Same.
11398 (mnemonic_htab_callback): Same.
11399 (gen_mnemonic_attr): Same.
11400 (read_md_rtx): Same.
11401 * ggc-page.c: Same.
11402 * gimple-loop-interchange.cc (dump_reduction): Same.
11403 (dump_induction): Same.
11404 (loop_cand::~loop_cand): Same.
11405 (free_data_refs_with_aux): Same.
11406 (tree_loop_interchange::interchange_loops): Same.
11407 (tree_loop_interchange::map_inductions_to_loop): Same.
11408 (tree_loop_interchange::move_code_to_inner_loop): Same.
11409 (compute_access_stride): Same.
11410 (compute_access_strides): Same.
11411 (proper_loop_form_for_interchange): Same.
11412 (tree_loop_interchange_compute_ddrs): Same.
11413 (prune_datarefs_not_in_loop): Same.
11414 (prepare_data_references): Same.
11415 (pass_linterchange::execute): Same.
11416 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11417 (unroll_jam_possible_p): Same.
11418 (fuse_loops): Same.
11419 (adjust_unroll_factor): Same.
11420 (tree_loop_unroll_and_jam): Same.
11421 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11422 (loop_versioning::expensive_stmt_p): Same.
11423 (loop_versioning::version_for_unity): Same.
11424 (loop_versioning::dump_inner_likelihood): Same.
11425 (loop_versioning::find_per_loop_multiplication): Same.
11426 (loop_versioning::analyze_term_using_scevs): Same.
11427 (loop_versioning::record_address_fragment): Same.
11428 (loop_versioning::analyze_expr): Same.
11429 (loop_versioning::analyze_blocks): Same.
11430 (loop_versioning::prune_conditions): Same.
11431 (loop_versioning::merge_loop_info): Same.
11432 (loop_versioning::add_loop_to_queue): Same.
11433 (loop_versioning::decide_whether_loop_is_versionable): Same.
11434 (loop_versioning::make_versioning_decisions): Same.
11435 (loop_versioning::implement_versioning_decisions): Same.
11436 * gimple-ssa-evrp-analyze.c
11437 (evrp_range_analyzer::record_ranges_from_phis): Same.
11438 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11439 (count_multiple_uses): Same.
11440 (split_group): Same.
11441 (imm_store_chain_info::output_merged_store): Same.
11442 (pass_store_merging::process_store): Same.
11443 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11444 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11445 (is_max): Same.
11446 (alloca_call_type): Same.
11447 (pass_walloca::execute): Same.
11448 * gimple-streamer-in.c (input_phi): Same.
11449 (input_gimple_stmt): Same.
11450 * gimple-streamer.h: Same.
11451 * godump.c (go_force_record_alignment): Same.
11452 (go_format_type): Same.
11453 (go_output_type): Same.
11454 (go_output_fndecl): Same.
11455 (go_output_typedef): Same.
11456 (keyword_hash_init): Same.
11457 (find_dummy_types): Same.
11458 * graph.c (draw_cfg_nodes_no_loops): Same.
11459 (draw_cfg_nodes_for_loop): Same.
11460 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11461 * hsa-brig.c: Same.
11462 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11463 * hsa-dump.c (dump_hsa_cfun): Same.
11464 * hsa-gen.c (gen_function_def_parameters): Same.
11465 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11466 * input.c (dump_line_table_statistics): Same.
11467 (test_lexer): Same.
11468 * input.h: Same.
11469 * internal-fn.c (get_multi_vector_move): Same.
11470 (expand_load_lanes_optab_fn): Same.
11471 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11472 (expand_GOMP_SIMT_EXIT): Same.
11473 (expand_GOMP_SIMT_LAST_LANE): Same.
11474 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11475 (expand_GOMP_SIMT_VOTE_ANY): Same.
11476 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11477 (expand_GOMP_SIMT_XCHG_IDX): Same.
11478 (expand_addsub_overflow): Same.
11479 (expand_neg_overflow): Same.
11480 (expand_mul_overflow): Same.
11481 (expand_call_mem_ref): Same.
11482 (expand_mask_load_optab_fn): Same.
11483 (expand_scatter_store_optab_fn): Same.
11484 (expand_gather_load_optab_fn): Same.
11485 * ipa-cp.c (ipa_get_parm_lattices): Same.
11486 (print_all_lattices): Same.
11487 (ignore_edge_p): Same.
11488 (build_toporder_info): Same.
11489 (free_toporder_info): Same.
11490 (push_node_to_stack): Same.
11491 (ipcp_lattice<valtype>::set_contains_variable): Same.
11492 (set_agg_lats_to_bottom): Same.
11493 (ipcp_bits_lattice::meet_with): Same.
11494 (set_single_call_flag): Same.
11495 (initialize_node_lattices): Same.
11496 (ipa_get_jf_ancestor_result): Same.
11497 (ipcp_verify_propagated_values): Same.
11498 (propagate_scalar_across_jump_function): Same.
11499 (propagate_context_across_jump_function): Same.
11500 (propagate_bits_across_jump_function): Same.
11501 (ipa_vr_operation_and_type_effects): Same.
11502 (propagate_vr_across_jump_function): Same.
11503 (set_check_aggs_by_ref): Same.
11504 (set_chain_of_aglats_contains_variable): Same.
11505 (merge_aggregate_lattices): Same.
11506 (agg_pass_through_permissible_p): Same.
11507 (propagate_aggs_across_jump_function): Same.
11508 (call_passes_through_thunk_p): Same.
11509 (propagate_constants_across_call): Same.
11510 (devirtualization_time_bonus): Same.
11511 (good_cloning_opportunity_p): Same.
11512 (context_independent_aggregate_values): Same.
11513 (gather_context_independent_values): Same.
11514 (perform_estimation_of_a_value): Same.
11515 (estimate_local_effects): Same.
11516 (value_topo_info<valtype>::add_val): Same.
11517 (add_all_node_vals_to_toposort): Same.
11518 (value_topo_info<valtype>::propagate_effects): Same.
11519 (ipcp_propagate_stage): Same.
11520 (ipcp_discover_new_direct_edges): Same.
11521 (same_node_or_its_all_contexts_clone_p): Same.
11522 (cgraph_edge_brings_value_p): Same.
11523 (gather_edges_for_value): Same.
11524 (create_specialized_node): Same.
11525 (find_more_scalar_values_for_callers_subset): Same.
11526 (find_more_contexts_for_caller_subset): Same.
11527 (copy_plats_to_inter): Same.
11528 (intersect_aggregates_with_edge): Same.
11529 (find_aggregate_values_for_callers_subset): Same.
11530 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11531 (decide_about_value): Same.
11532 (decide_whether_version_node): Same.
11533 (spread_undeadness): Same.
11534 (identify_dead_nodes): Same.
11535 (ipcp_store_vr_results): Same.
11536 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11537 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11538 (redirect_to_unreachable): Same.
11539 (edge_set_predicate): Same.
11540 (evaluate_conditions_for_known_args): Same.
11541 (evaluate_properties_for_edge): Same.
11542 (ipa_fn_summary_t::duplicate): Same.
11543 (ipa_call_summary_t::duplicate): Same.
11544 (dump_ipa_call_summary): Same.
11545 (ipa_dump_fn_summary): Same.
11546 (eliminated_by_inlining_prob): Same.
11547 (set_cond_stmt_execution_predicate): Same.
11548 (set_switch_stmt_execution_predicate): Same.
11549 (compute_bb_predicates): Same.
11550 (will_be_nonconstant_expr_predicate): Same.
11551 (phi_result_unknown_predicate): Same.
11552 (analyze_function_body): Same.
11553 (compute_fn_summary): Same.
11554 (estimate_edge_devirt_benefit): Same.
11555 (estimate_edge_size_and_time): Same.
11556 (estimate_calls_size_and_time): Same.
11557 (estimate_node_size_and_time): Same.
11558 (remap_edge_change_prob): Same.
11559 (remap_edge_summaries): Same.
11560 (ipa_merge_fn_summary_after_inlining): Same.
11561 (ipa_fn_summary_generate): Same.
11562 (inline_read_section): Same.
11563 (ipa_fn_summary_read): Same.
11564 (ipa_fn_summary_write): Same.
11565 * ipa-fnsummary.h: Same.
11566 * ipa-hsa.c (ipa_hsa_read_section): Same.
11567 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11568 * ipa-icf.c (sem_function::param_used_p): Same.
11569 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11570 * ipa-inline.c (edge_badness): Same.
11571 (inline_small_functions): Same.
11572 * ipa-polymorphic-call.c
11573 (ipa_polymorphic_call_context::stream_out): Same.
11574 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11575 (predicate::remap_after_inlining): Same.
11576 (predicate::stream_out): Same.
11577 * ipa-predicate.h: Same.
11578 * ipa-profile.c (ipa_profile_read_summary): Same.
11579 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11580 (count_formal_params): Same.
11581 (ipa_dump_param): Same.
11582 (ipa_alloc_node_params): Same.
11583 (ipa_print_node_jump_functions_for_edge): Same.
11584 (ipa_print_node_jump_functions): Same.
11585 (ipa_load_from_parm_agg): Same.
11586 (get_ancestor_addr_info): Same.
11587 (ipa_compute_jump_functions_for_edge): Same.
11588 (ipa_analyze_virtual_call_uses): Same.
11589 (ipa_analyze_stmt_uses): Same.
11590 (ipa_analyze_params_uses_in_bb): Same.
11591 (update_jump_functions_after_inlining): Same.
11592 (try_decrement_rdesc_refcount): Same.
11593 (ipa_impossible_devirt_target): Same.
11594 (update_indirect_edges_after_inlining): Same.
11595 (combine_controlled_uses_counters): Same.
11596 (ipa_edge_args_sum_t::duplicate): Same.
11597 (ipa_write_jump_function): Same.
11598 (ipa_write_indirect_edge_info): Same.
11599 (ipa_write_node_info): Same.
11600 (ipa_read_edge_info): Same.
11601 (ipa_prop_read_section): Same.
11602 (read_replacements_section): Same.
11603 * ipa-prop.h (ipa_get_param_count): Same.
11604 (ipa_get_param): Same.
11605 (ipa_get_type): Same.
11606 (ipa_get_param_move_cost): Same.
11607 (ipa_set_param_used): Same.
11608 (ipa_get_controlled_uses): Same.
11609 (ipa_set_controlled_uses): Same.
11610 (ipa_get_cs_argument_count): Same.
11611 * ipa-pure-const.c (analyze_function): Same.
11612 (pure_const_read_summary): Same.
11613 * ipa-ref.h: Same.
11614 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11615 * ipa-split.c (test_nonssa_use): Same.
11616 (dump_split_point): Same.
11617 (dominated_by_forbidden): Same.
11618 (split_part_set_ssa_name_p): Same.
11619 (find_split_points): Same.
11620 * ira-build.c (finish_loop_tree_nodes): Same.
11621 (low_pressure_loop_node_p): Same.
11622 * ira-color.c (ira_reuse_stack_slot): Same.
11623 * ira-int.h: Same.
11624 * ira.c (setup_reg_equiv): Same.
11625 (print_insn_chain): Same.
11626 (ira): Same.
11627 * loop-doloop.c (doloop_condition_get): Same.
11628 (add_test): Same.
11629 (record_reg_sets): Same.
11630 (doloop_optimize): Same.
11631 * loop-init.c (loop_optimizer_init): Same.
11632 (fix_loop_structure): Same.
11633 * loop-invariant.c (merge_identical_invariants): Same.
11634 (compute_always_reached): Same.
11635 (find_exits): Same.
11636 (may_assign_reg_p): Same.
11637 (find_invariants_bb): Same.
11638 (find_invariants_body): Same.
11639 (replace_uses): Same.
11640 (can_move_invariant_reg): Same.
11641 (free_inv_motion_data): Same.
11642 (move_single_loop_invariants): Same.
11643 (change_pressure): Same.
11644 (mark_ref_regs): Same.
11645 (calculate_loop_reg_pressure): Same.
11646 * loop-iv.c (biv_entry_hasher::equal): Same.
11647 (iv_extend_to_rtx_code): Same.
11648 (check_iv_ref_table_size): Same.
11649 (clear_iv_info): Same.
11650 (latch_dominating_def): Same.
11651 (iv_get_reaching_def): Same.
11652 (iv_constant): Same.
11653 (iv_subreg): Same.
11654 (iv_extend): Same.
11655 (iv_neg): Same.
11656 (iv_add): Same.
11657 (iv_mult): Same.
11658 (get_biv_step): Same.
11659 (record_iv): Same.
11660 (analyzed_for_bivness_p): Same.
11661 (record_biv): Same.
11662 (iv_analyze_biv): Same.
11663 (iv_analyze_expr): Same.
11664 (iv_analyze_def): Same.
11665 (iv_analyze_op): Same.
11666 (iv_analyze): Same.
11667 (iv_analyze_result): Same.
11668 (biv_p): Same.
11669 (eliminate_implied_conditions): Same.
11670 (simplify_using_initial_values): Same.
11671 (shorten_into_mode): Same.
11672 (canonicalize_iv_subregs): Same.
11673 (determine_max_iter): Same.
11674 (check_simple_exit): Same.
11675 (find_simple_exit): Same.
11676 (get_simple_loop_desc): Same.
11677 * loop-unroll.c (report_unroll): Same.
11678 (decide_unrolling): Same.
11679 (unroll_loops): Same.
11680 (loop_exit_at_end_p): Same.
11681 (decide_unroll_constant_iterations): Same.
11682 (unroll_loop_constant_iterations): Same.
11683 (compare_and_jump_seq): Same.
11684 (unroll_loop_runtime_iterations): Same.
11685 (decide_unroll_stupid): Same.
11686 (unroll_loop_stupid): Same.
11687 (referenced_in_one_insn_in_loop_p): Same.
11688 (reset_debug_uses_in_loop): Same.
11689 (analyze_iv_to_split_insn): Same.
11690 * lra-eliminations.c (lra_debug_elim_table): Same.
11691 (setup_can_eliminate): Same.
11692 (form_sum): Same.
11693 (lra_get_elimination_hard_regno): Same.
11694 (lra_eliminate_regs_1): Same.
11695 (eliminate_regs_in_insn): Same.
11696 (update_reg_eliminate): Same.
11697 (init_elimination): Same.
11698 (lra_eliminate): Same.
11699 * lra-int.h: Same.
11700 * lra-lives.c (initiate_live_solver): Same.
11701 * lra-remat.c (create_remat_bb_data): Same.
11702 * lra-spills.c (lra_spill): Same.
11703 * lra.c (lra_set_insn_recog_data): Same.
11704 (lra_set_used_insn_alternative_by_uid): Same.
11705 (init_reg_info): Same.
11706 (expand_reg_info): Same.
11707 * lto-cgraph.c (output_symtab): Same.
11708 (read_identifier): Same.
11709 (get_alias_symbol): Same.
11710 (input_node): Same.
11711 (input_varpool_node): Same.
11712 (input_ref): Same.
11713 (input_edge): Same.
11714 (input_cgraph_1): Same.
11715 (input_refs): Same.
11716 (input_symtab): Same.
11717 (input_offload_tables): Same.
11718 (output_cgraph_opt_summary): Same.
11719 (input_edge_opt_summary): Same.
11720 (input_cgraph_opt_section): Same.
11721 * lto-section-in.c (lto_free_raw_section_data): Same.
11722 (lto_create_simple_input_block): Same.
11723 (lto_free_function_in_decl_state_for_node): Same.
11724 * lto-streamer-in.c (lto_tag_check_set): Same.
11725 (lto_location_cache::revert_location_cache): Same.
11726 (lto_location_cache::input_location): Same.
11727 (lto_input_location): Same.
11728 (stream_input_location_now): Same.
11729 (lto_input_tree_ref): Same.
11730 (lto_input_eh_catch_list): Same.
11731 (input_eh_region): Same.
11732 (lto_init_eh): Same.
11733 (make_new_block): Same.
11734 (input_cfg): Same.
11735 (fixup_call_stmt_edges): Same.
11736 (input_struct_function_base): Same.
11737 (input_function): Same.
11738 (lto_read_body_or_constructor): Same.
11739 (lto_read_tree_1): Same.
11740 (lto_read_tree): Same.
11741 (lto_input_scc): Same.
11742 (lto_input_tree_1): Same.
11743 (lto_input_toplevel_asms): Same.
11744 (lto_input_mode_table): Same.
11745 (lto_reader_init): Same.
11746 (lto_data_in_create): Same.
11747 * lto-streamer-out.c (output_cfg): Same.
11748 * lto-streamer.h: Same.
11749 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11750 (generate_prolog_epilog): Same.
11751 (mark_loop_unsched): Same.
11752 (dump_insn_location): Same.
11753 (loop_canon_p): Same.
11754 (sms_schedule): Same.
11755 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11756 (expand_omp_for_generic): Same.
11757 (expand_omp_for_static_nochunk): Same.
11758 (expand_omp_for_static_chunk): Same.
11759 (expand_omp_simd): Same.
11760 (expand_omp_taskloop_for_inner): Same.
11761 (expand_oacc_for): Same.
11762 (expand_omp_atomic_pipeline): Same.
11763 (mark_loops_in_oacc_kernels_region): Same.
11764 * omp-offload.c (oacc_xform_loop): Same.
11765 * omp-simd-clone.c (simd_clone_adjust): Same.
11766 * optabs-query.c (get_traditional_extraction_insn): Same.
11767 * optabs.c (expand_vector_broadcast): Same.
11768 (expand_binop_directly): Same.
11769 (expand_twoval_unop): Same.
11770 (expand_twoval_binop): Same.
11771 (expand_unop_direct): Same.
11772 (emit_indirect_jump): Same.
11773 (emit_conditional_move): Same.
11774 (emit_conditional_neg_or_complement): Same.
11775 (emit_conditional_add): Same.
11776 (vector_compare_rtx): Same.
11777 (expand_vec_perm_1): Same.
11778 (expand_vec_perm_const): Same.
11779 (expand_vec_cond_expr): Same.
11780 (expand_vec_series_expr): Same.
11781 (maybe_emit_atomic_exchange): Same.
11782 (maybe_emit_sync_lock_test_and_set): Same.
11783 (expand_atomic_compare_and_swap): Same.
11784 (expand_atomic_load): Same.
11785 (expand_atomic_store): Same.
11786 (maybe_emit_op): Same.
11787 (valid_multiword_target_p): Same.
11788 (create_integer_operand): Same.
11789 (maybe_legitimize_operand_same_code): Same.
11790 (maybe_legitimize_operand): Same.
11791 (create_convert_operand_from_type): Same.
11792 (can_reuse_operands_p): Same.
11793 (maybe_legitimize_operands): Same.
11794 (maybe_gen_insn): Same.
11795 (maybe_expand_insn): Same.
11796 (maybe_expand_jump_insn): Same.
11797 (expand_insn): Same.
11798 * optabs.h (create_expand_operand): Same.
11799 (create_fixed_operand): Same.
11800 (create_output_operand): Same.
11801 (create_input_operand): Same.
11802 (create_convert_operand_to): Same.
11803 (create_convert_operand_from): Same.
11804 * optinfo.h: Same.
11805 * poly-int.h: Same.
11806 * predict.c (optimize_insn_for_speed_p): Same.
11807 (optimize_loop_for_size_p): Same.
11808 (optimize_loop_for_speed_p): Same.
11809 (optimize_loop_nest_for_speed_p): Same.
11810 (get_base_value): Same.
11811 (predicted_by_loop_heuristics_p): Same.
11812 (predict_extra_loop_exits): Same.
11813 (predict_loops): Same.
11814 (predict_paths_for_bb): Same.
11815 (predict_paths_leading_to): Same.
11816 (propagate_freq): Same.
11817 (pass_profile::execute): Same.
11818 * predict.h: Same.
11819 * profile-count.c (profile_count::differs_from_p): Same.
11820 (profile_probability::differs_lot_from_p): Same.
11821 * profile-count.h: Same.
11822 * profile.c (branch_prob): Same.
11823 * regrename.c (free_chain_data): Same.
11824 (mark_conflict): Same.
11825 (create_new_chain): Same.
11826 (merge_overlapping_regs): Same.
11827 (init_rename_info): Same.
11828 (merge_chains): Same.
11829 (regrename_analyze): Same.
11830 (regrename_do_replace): Same.
11831 (scan_rtx_reg): Same.
11832 (record_out_operands): Same.
11833 (build_def_use): Same.
11834 * regrename.h: Same.
11835 * reload.h: Same.
11836 * reload1.c (init_reload): Same.
11837 (maybe_fix_stack_asms): Same.
11838 (copy_reloads): Same.
11839 (count_pseudo): Same.
11840 (count_spilled_pseudo): Same.
11841 (find_reg): Same.
11842 (find_reload_regs): Same.
11843 (select_reload_regs): Same.
11844 (spill_hard_reg): Same.
11845 (fixup_eh_region_note): Same.
11846 (set_reload_reg): Same.
11847 (allocate_reload_reg): Same.
11848 (compute_reload_subreg_offset): Same.
11849 (reload_adjust_reg_for_icode): Same.
11850 (emit_input_reload_insns): Same.
11851 (emit_output_reload_insns): Same.
11852 (do_input_reload): Same.
11853 (inherit_piecemeal_p): Same.
11854 * rtl.h: Same.
11855 * sanopt.c (maybe_get_dominating_check): Same.
11856 (maybe_optimize_ubsan_ptr_ifn): Same.
11857 (can_remove_asan_check): Same.
11858 (maybe_optimize_asan_check_ifn): Same.
11859 (sanopt_optimize_walker): Same.
11860 * sched-deps.c (add_dependence_list): Same.
11861 (chain_to_prev_insn): Same.
11862 (add_insn_mem_dependence): Same.
11863 (create_insn_reg_set): Same.
11864 (maybe_extend_reg_info_p): Same.
11865 (sched_analyze_reg): Same.
11866 (sched_analyze_1): Same.
11867 (get_implicit_reg_pending_clobbers): Same.
11868 (chain_to_prev_insn_p): Same.
11869 (deps_analyze_insn): Same.
11870 (deps_start_bb): Same.
11871 (sched_free_deps): Same.
11872 (init_deps): Same.
11873 (init_deps_reg_last): Same.
11874 (free_deps): Same.
11875 * sched-ebb.c: Same.
11876 * sched-int.h: Same.
11877 * sched-rgn.c (add_branch_dependences): Same.
11878 (concat_insn_mem_list): Same.
11879 (deps_join): Same.
11880 (sched_rgn_compute_dependencies): Same.
11881 * sel-sched-ir.c (reset_target_context): Same.
11882 (copy_deps_context): Same.
11883 (init_id_from_df): Same.
11884 (has_dependence_p): Same.
11885 (change_loops_latches): Same.
11886 (bb_top_order_comparator): Same.
11887 (make_region_from_loop_preheader): Same.
11888 (sel_init_pipelining): Same.
11889 (get_loop_nest_for_rgn): Same.
11890 (make_regions_from_the_rest): Same.
11891 (sel_is_loop_preheader_p): Same.
11892 * sel-sched-ir.h (inner_loop_header_p): Same.
11893 (get_all_loop_exits): Same.
11894 * selftest.h: Same.
11895 * sese.c (sese_build_liveouts): Same.
11896 (sese_insert_phis_for_liveouts): Same.
11897 * sese.h (defined_in_sese_p): Same.
11898 * sreal.c (sreal::stream_out): Same.
11899 * sreal.h: Same.
11900 * streamer-hooks.h: Same.
11901 * target-globals.c (save_target_globals): Same.
11902 * target-globals.h: Same.
11903 * target.def: Same.
11904 * target.h: Same.
11905 * targhooks.c (default_has_ifunc_p): Same.
11906 (default_empty_mask_is_expensive): Same.
11907 (default_init_cost): Same.
11908 * targhooks.h: Same.
11909 * toplev.c: Same.
11910 * tree-affine.c (aff_combination_mult): Same.
11911 (aff_combination_expand): Same.
11912 (aff_combination_constant_multiple_p): Same.
11913 * tree-affine.h: Same.
11914 * tree-cfg.c (build_gimple_cfg): Same.
11915 (replace_loop_annotate_in_block): Same.
11916 (replace_uses_by): Same.
11917 (remove_bb): Same.
11918 (dump_cfg_stats): Same.
11919 (gimple_duplicate_sese_region): Same.
11920 (gimple_duplicate_sese_tail): Same.
11921 (move_block_to_fn): Same.
11922 (replace_block_vars_by_duplicates): Same.
11923 (move_sese_region_to_fn): Same.
11924 (print_loops_bb): Same.
11925 (print_loop): Same.
11926 (print_loops): Same.
11927 (debug): Same.
11928 (debug_loops): Same.
11929 * tree-cfg.h: Same.
11930 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11931 (chrec_fold_multiply_poly_poly): Same.
11932 (chrec_evaluate): Same.
11933 (chrec_component_in_loop_num): Same.
11934 (reset_evolution_in_loop): Same.
11935 (is_multivariate_chrec): Same.
11936 (chrec_contains_symbols): Same.
11937 (nb_vars_in_chrec): Same.
11938 (chrec_convert_1): Same.
11939 (chrec_convert_aggressive): Same.
11940 * tree-chrec.h: Same.
11941 * tree-core.h: Same.
11942 * tree-data-ref.c (dump_data_dependence_relation): Same.
11943 (canonicalize_base_object_address): Same.
11944 (data_ref_compare_tree): Same.
11945 (prune_runtime_alias_test_list): Same.
11946 (get_segment_min_max): Same.
11947 (create_intersect_range_checks): Same.
11948 (conflict_fn_no_dependence): Same.
11949 (object_address_invariant_in_loop_p): Same.
11950 (analyze_ziv_subscript): Same.
11951 (analyze_siv_subscript_cst_affine): Same.
11952 (analyze_miv_subscript): Same.
11953 (analyze_overlapping_iterations): Same.
11954 (build_classic_dist_vector_1): Same.
11955 (add_other_self_distances): Same.
11956 (same_access_functions): Same.
11957 (build_classic_dir_vector): Same.
11958 (subscript_dependence_tester_1): Same.
11959 (subscript_dependence_tester): Same.
11960 (access_functions_are_affine_or_constant_p): Same.
11961 (get_references_in_stmt): Same.
11962 (loop_nest_has_data_refs): Same.
11963 (graphite_find_data_references_in_stmt): Same.
11964 (find_data_references_in_bb): Same.
11965 (get_base_for_alignment): Same.
11966 (find_loop_nest_1): Same.
11967 (find_loop_nest): Same.
11968 * tree-data-ref.h (dr_alignment): Same.
11969 (ddr_dependence_level): Same.
11970 * tree-if-conv.c (fold_build_cond_expr): Same.
11971 (add_to_predicate_list): Same.
11972 (add_to_dst_predicate_list): Same.
11973 (phi_convertible_by_degenerating_args): Same.
11974 (idx_within_array_bound): Same.
11975 (all_preds_critical_p): Same.
11976 (pred_blocks_visited_p): Same.
11977 (predicate_bbs): Same.
11978 (build_region): Same.
11979 (if_convertible_loop_p_1): Same.
11980 (is_cond_scalar_reduction): Same.
11981 (predicate_scalar_phi): Same.
11982 (remove_conditions_and_labels): Same.
11983 (combine_blocks): Same.
11984 (version_loop_for_if_conversion): Same.
11985 (versionable_outer_loop_p): Same.
11986 (ifcvt_local_dce): Same.
11987 (tree_if_conversion): Same.
11988 (pass_if_conversion::gate): Same.
11989 * tree-if-conv.h: Same.
11990 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
11991 * tree-loop-distribution.c (bb_top_order_cmp): Same.
11992 (free_rdg): Same.
11993 (stmt_has_scalar_dependences_outside_loop): Same.
11994 (copy_loop_before): Same.
11995 (create_bb_after_loop): Same.
11996 (const_with_all_bytes_same): Same.
11997 (generate_memset_builtin): Same.
11998 (generate_memcpy_builtin): Same.
11999 (destroy_loop): Same.
12000 (build_rdg_partition_for_vertex): Same.
12001 (compute_access_range): Same.
12002 (data_ref_segment_size): Same.
12003 (latch_dominated_by_data_ref): Same.
12004 (compute_alias_check_pairs): Same.
12005 (fuse_memset_builtins): Same.
12006 (finalize_partitions): Same.
12007 (find_seed_stmts_for_distribution): Same.
12008 (prepare_perfect_loop_nest): Same.
12009 * tree-parloops.c (lambda_transform_legal_p): Same.
12010 (loop_parallel_p): Same.
12011 (reduc_stmt_res): Same.
12012 (add_field_for_name): Same.
12013 (create_call_for_reduction_1): Same.
12014 (replace_uses_in_bb_by): Same.
12015 (transform_to_exit_first_loop_alt): Same.
12016 (try_transform_to_exit_first_loop_alt): Same.
12017 (transform_to_exit_first_loop): Same.
12018 (num_phis): Same.
12019 (gen_parallel_loop): Same.
12020 (gather_scalar_reductions): Same.
12021 (get_omp_data_i_param): Same.
12022 (try_create_reduction_list): Same.
12023 (oacc_entry_exit_single_gang): Same.
12024 (parallelize_loops): Same.
12025 * tree-pass.h: Same.
12026 * tree-predcom.c (determine_offset): Same.
12027 (last_always_executed_block): Same.
12028 (split_data_refs_to_components): Same.
12029 (suitable_component_p): Same.
12030 (valid_initializer_p): Same.
12031 (find_looparound_phi): Same.
12032 (insert_looparound_copy): Same.
12033 (add_looparound_copies): Same.
12034 (determine_roots_comp): Same.
12035 (predcom_tmp_var): Same.
12036 (initialize_root_vars): Same.
12037 (initialize_root_vars_store_elim_1): Same.
12038 (initialize_root_vars_store_elim_2): Same.
12039 (finalize_eliminated_stores): Same.
12040 (initialize_root_vars_lm): Same.
12041 (remove_stmt): Same.
12042 (determine_unroll_factor): Same.
12043 (execute_pred_commoning_cbck): Same.
12044 (base_names_in_chain_on): Same.
12045 (combine_chains): Same.
12046 (pcom_stmt_dominates_stmt_p): Same.
12047 (try_combine_chains): Same.
12048 (prepare_initializers_chain_store_elim): Same.
12049 (prepare_initializers_chain): Same.
12050 (prepare_initializers): Same.
12051 (prepare_finalizers_chain): Same.
12052 (prepare_finalizers): Same.
12053 (insert_init_seqs): Same.
12054 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12055 (compute_overall_effect_of_inner_loop): Same.
12056 (add_to_evolution_1): Same.
12057 (add_to_evolution): Same.
12058 (follow_ssa_edge_binary): Same.
12059 (follow_ssa_edge_expr): Same.
12060 (backedge_phi_arg_p): Same.
12061 (follow_ssa_edge_in_condition_phi_branch): Same.
12062 (follow_ssa_edge_in_condition_phi): Same.
12063 (follow_ssa_edge_inner_loop_phi): Same.
12064 (follow_ssa_edge): Same.
12065 (analyze_evolution_in_loop): Same.
12066 (analyze_initial_condition): Same.
12067 (interpret_loop_phi): Same.
12068 (interpret_condition_phi): Same.
12069 (interpret_rhs_expr): Same.
12070 (interpret_expr): Same.
12071 (interpret_gimple_assign): Same.
12072 (analyze_scalar_evolution_1): Same.
12073 (analyze_scalar_evolution): Same.
12074 (analyze_scalar_evolution_for_address_of): Same.
12075 (get_instantiated_value_entry): Same.
12076 (loop_closed_phi_def): Same.
12077 (instantiate_scev_name): Same.
12078 (instantiate_scev_poly): Same.
12079 (instantiate_scev_binary): Same.
12080 (instantiate_scev_convert): Same.
12081 (instantiate_scev_not): Same.
12082 (instantiate_scev_r): Same.
12083 (instantiate_scev): Same.
12084 (resolve_mixers): Same.
12085 (initialize_scalar_evolutions_analyzer): Same.
12086 (scev_reset_htab): Same.
12087 (scev_reset): Same.
12088 (derive_simple_iv_with_niters): Same.
12089 (simple_iv_with_niters): Same.
12090 (expression_expensive_p): Same.
12091 (final_value_replacement_loop): Same.
12092 * tree-scalar-evolution.h (block_before_loop): Same.
12093 * tree-ssa-address.h: Same.
12094 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12095 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12096 (record_edge_info): Same.
12097 * tree-ssa-live.c (var_map_base_fini): Same.
12098 (remove_unused_locals): Same.
12099 * tree-ssa-live.h: Same.
12100 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12101 (pass_ch_vect::execute): Same.
12102 (pass_ch::process_loop_p): Same.
12103 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12104 (movement_possibility): Same.
12105 (outermost_invariant_loop): Same.
12106 (stmt_cost): Same.
12107 (determine_max_movement): Same.
12108 (invariantness_dom_walker::before_dom_children): Same.
12109 (move_computations): Same.
12110 (may_move_till): Same.
12111 (force_move_till_op): Same.
12112 (force_move_till): Same.
12113 (memref_free): Same.
12114 (record_mem_ref_loc): Same.
12115 (set_ref_stored_in_loop): Same.
12116 (mark_ref_stored): Same.
12117 (sort_bbs_in_loop_postorder_cmp): Same.
12118 (sort_locs_in_loop_postorder_cmp): Same.
12119 (analyze_memory_references): Same.
12120 (mem_refs_may_alias_p): Same.
12121 (find_ref_loc_in_loop_cmp): Same.
12122 (rewrite_mem_ref_loc::operator): Same.
12123 (first_mem_ref_loc_1::operator): Same.
12124 (sm_set_flag_if_changed::operator): Same.
12125 (execute_sm_if_changed_flag_set): Same.
12126 (execute_sm): Same.
12127 (hoist_memory_references): Same.
12128 (ref_always_accessed::operator): Same.
12129 (refs_independent_p): Same.
12130 (record_dep_loop): Same.
12131 (ref_indep_loop_p_1): Same.
12132 (ref_indep_loop_p): Same.
12133 (can_sm_ref_p): Same.
12134 (find_refs_for_sm): Same.
12135 (loop_suitable_for_sm): Same.
12136 (store_motion_loop): Same.
12137 (store_motion): Same.
12138 (fill_always_executed_in): Same.
12139 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12140 (estimated_unrolled_size): Same.
12141 (loop_edge_to_cancel): Same.
12142 (remove_exits_and_undefined_stmts): Same.
12143 (remove_redundant_iv_tests): Same.
12144 (unloop_loops): Same.
12145 (estimated_peeled_sequence_size): Same.
12146 (try_peel_loop): Same.
12147 (canonicalize_loop_induction_variables): Same.
12148 (canonicalize_induction_variables): Same.
12149 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12150 (name_info): Same.
12151 (stmt_after_inc_pos): Same.
12152 (contains_abnormal_ssa_name_p): Same.
12153 (niter_for_exit): Same.
12154 (find_bivs): Same.
12155 (mark_bivs): Same.
12156 (find_givs_in_bb): Same.
12157 (find_induction_variables): Same.
12158 (find_interesting_uses_cond): Same.
12159 (outermost_invariant_loop_for_expr): Same.
12160 (idx_find_step): Same.
12161 (add_candidate_1): Same.
12162 (add_iv_candidate_derived_from_uses): Same.
12163 (alloc_use_cost_map): Same.
12164 (prepare_decl_rtl): Same.
12165 (generic_predict_doloop_p): Same.
12166 (computation_cost): Same.
12167 (determine_common_wider_type): Same.
12168 (get_computation_aff_1): Same.
12169 (get_use_type): Same.
12170 (determine_group_iv_cost_address): Same.
12171 (iv_period): Same.
12172 (difference_cannot_overflow_p): Same.
12173 (may_eliminate_iv): Same.
12174 (determine_set_costs): Same.
12175 (cheaper_cost_pair): Same.
12176 (compare_cost_pair): Same.
12177 (iv_ca_cand_for_group): Same.
12178 (iv_ca_recount_cost): Same.
12179 (iv_ca_set_remove_invs): Same.
12180 (iv_ca_set_no_cp): Same.
12181 (iv_ca_set_add_invs): Same.
12182 (iv_ca_set_cp): Same.
12183 (iv_ca_add_group): Same.
12184 (iv_ca_cost): Same.
12185 (iv_ca_compare_deps): Same.
12186 (iv_ca_delta_reverse): Same.
12187 (iv_ca_delta_commit): Same.
12188 (iv_ca_cand_used_p): Same.
12189 (iv_ca_delta_free): Same.
12190 (iv_ca_new): Same.
12191 (iv_ca_free): Same.
12192 (iv_ca_dump): Same.
12193 (iv_ca_extend): Same.
12194 (iv_ca_narrow): Same.
12195 (iv_ca_prune): Same.
12196 (cheaper_cost_with_cand): Same.
12197 (iv_ca_replace): Same.
12198 (try_add_cand_for): Same.
12199 (get_initial_solution): Same.
12200 (try_improve_iv_set): Same.
12201 (find_optimal_iv_set_1): Same.
12202 (create_new_iv): Same.
12203 (rewrite_use_compare): Same.
12204 (remove_unused_ivs): Same.
12205 (determine_scaling_factor): Same.
12206 * tree-ssa-loop-ivopts.h: Same.
12207 * tree-ssa-loop-manip.c (create_iv): Same.
12208 (compute_live_loop_exits): Same.
12209 (add_exit_phi): Same.
12210 (add_exit_phis): Same.
12211 (find_uses_to_rename_use): Same.
12212 (find_uses_to_rename_def): Same.
12213 (find_uses_to_rename_in_loop): Same.
12214 (rewrite_into_loop_closed_ssa): Same.
12215 (check_loop_closed_ssa_bb): Same.
12216 (split_loop_exit_edge): Same.
12217 (ip_end_pos): Same.
12218 (ip_normal_pos): Same.
12219 (copy_phi_node_args): Same.
12220 (gimple_duplicate_loop_to_header_edge): Same.
12221 (can_unroll_loop_p): Same.
12222 (determine_exit_conditions): Same.
12223 (scale_dominated_blocks_in_loop): Same.
12224 (niter_for_unrolled_loop): Same.
12225 (tree_transform_and_unroll_loop): Same.
12226 (rewrite_all_phi_nodes_with_iv): Same.
12227 * tree-ssa-loop-manip.h: Same.
12228 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12229 (number_of_iterations_ne): Same.
12230 (assert_no_overflow_lt): Same.
12231 (assert_loop_rolls_lt): Same.
12232 (number_of_iterations_lt): Same.
12233 (adjust_cond_for_loop_until_wrap): Same.
12234 (tree_simplify_using_condition): Same.
12235 (simplify_using_initial_conditions): Same.
12236 (simplify_using_outer_evolutions): Same.
12237 (loop_only_exit_p): Same.
12238 (ssa_defined_by_minus_one_stmt_p): Same.
12239 (number_of_iterations_popcount): Same.
12240 (number_of_iterations_exit): Same.
12241 (find_loop_niter): Same.
12242 (finite_loop_p): Same.
12243 (chain_of_csts_start): Same.
12244 (get_val_for): Same.
12245 (loop_niter_by_eval): Same.
12246 (derive_constant_upper_bound_ops): Same.
12247 (do_warn_aggressive_loop_optimizations): Same.
12248 (record_estimate): Same.
12249 (get_cst_init_from_scev): Same.
12250 (record_nonwrapping_iv): Same.
12251 (idx_infer_loop_bounds): Same.
12252 (infer_loop_bounds_from_ref): Same.
12253 (infer_loop_bounds_from_array): Same.
12254 (infer_loop_bounds_from_pointer_arith): Same.
12255 (infer_loop_bounds_from_signedness): Same.
12256 (bound_index): Same.
12257 (discover_iteration_bound_by_body_walk): Same.
12258 (maybe_lower_iteration_bound): Same.
12259 (estimate_numbers_of_iterations): Same.
12260 (estimated_loop_iterations): Same.
12261 (estimated_loop_iterations_int): Same.
12262 (max_loop_iterations): Same.
12263 (max_loop_iterations_int): Same.
12264 (likely_max_loop_iterations): Same.
12265 (likely_max_loop_iterations_int): Same.
12266 (estimated_stmt_executions_int): Same.
12267 (max_stmt_executions): Same.
12268 (likely_max_stmt_executions): Same.
12269 (estimated_stmt_executions): Same.
12270 (stmt_dominates_stmt_p): Same.
12271 (nowrap_type_p): Same.
12272 (loop_exits_before_overflow): Same.
12273 (scev_var_range_cant_overflow): Same.
12274 (scev_probably_wraps_p): Same.
12275 (free_numbers_of_iterations_estimates): Same.
12276 * tree-ssa-loop-niter.h: Same.
12277 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12278 (idx_analyze_ref): Same.
12279 (analyze_ref): Same.
12280 (gather_memory_references_ref): Same.
12281 (mark_nontemporal_store): Same.
12282 (emit_mfence_after_loop): Same.
12283 (may_use_storent_in_loop_p): Same.
12284 (mark_nontemporal_stores): Same.
12285 (should_unroll_loop_p): Same.
12286 (volume_of_dist_vector): Same.
12287 (add_subscript_strides): Same.
12288 (self_reuse_distance): Same.
12289 (insn_to_prefetch_ratio_too_small_p): Same.
12290 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12291 (patch_loop_exit): Same.
12292 (find_or_create_guard_phi): Same.
12293 (easy_exit_values): Same.
12294 (connect_loop_phis): Same.
12295 (connect_loops): Same.
12296 (compute_new_first_bound): Same.
12297 (split_loop): Same.
12298 (tree_ssa_split_loops): Same.
12299 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12300 (is_maybe_undefined): Same.
12301 (tree_may_unswitch_on): Same.
12302 (simplify_using_entry_checks): Same.
12303 (tree_unswitch_single_loop): Same.
12304 (tree_unswitch_loop): Same.
12305 (tree_unswitch_outer_loop): Same.
12306 (empty_bb_without_guard_p): Same.
12307 (used_outside_loop_p): Same.
12308 (get_vop_from_header): Same.
12309 (hoist_guard): Same.
12310 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12311 (get_lsm_tmp_name): Same.
12312 * tree-ssa-loop.h: Same.
12313 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12314 (build_and_add_sum): Same.
12315 (no_side_effect_bb): Same.
12316 (get_ops): Same.
12317 (linearize_expr): Same.
12318 (should_break_up_subtract): Same.
12319 (linearize_expr_tree): Same.
12320 * tree-ssa-scopedtables.c: Same.
12321 * tree-ssa-scopedtables.h: Same.
12322 * tree-ssa-structalias.c (condense_visit): Same.
12323 (label_visit): Same.
12324 (dump_pred_graph): Same.
12325 (perform_var_substitution): Same.
12326 (move_complex_constraints): Same.
12327 (remove_preds_and_fake_succs): Same.
12328 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12329 (determine_bb_domination_status): Same.
12330 (duplicate_thread_path): Same.
12331 (thread_through_all_blocks): Same.
12332 * tree-ssa-threadupdate.h: Same.
12333 * tree-streamer-in.c (streamer_read_string_cst): Same.
12334 (input_identifier): Same.
12335 (unpack_ts_type_common_value_fields): Same.
12336 (unpack_ts_block_value_fields): Same.
12337 (unpack_ts_translation_unit_decl_value_fields): Same.
12338 (unpack_ts_omp_clause_value_fields): Same.
12339 (streamer_read_tree_bitfields): Same.
12340 (streamer_alloc_tree): Same.
12341 (lto_input_ts_common_tree_pointers): Same.
12342 (lto_input_ts_vector_tree_pointers): Same.
12343 (lto_input_ts_poly_tree_pointers): Same.
12344 (lto_input_ts_complex_tree_pointers): Same.
12345 (lto_input_ts_decl_minimal_tree_pointers): Same.
12346 (lto_input_ts_decl_common_tree_pointers): Same.
12347 (lto_input_ts_decl_non_common_tree_pointers): Same.
12348 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12349 (lto_input_ts_field_decl_tree_pointers): Same.
12350 (lto_input_ts_function_decl_tree_pointers): Same.
12351 (lto_input_ts_type_common_tree_pointers): Same.
12352 (lto_input_ts_type_non_common_tree_pointers): Same.
12353 (lto_input_ts_list_tree_pointers): Same.
12354 (lto_input_ts_vec_tree_pointers): Same.
12355 (lto_input_ts_exp_tree_pointers): Same.
12356 (lto_input_ts_block_tree_pointers): Same.
12357 (lto_input_ts_binfo_tree_pointers): Same.
12358 (lto_input_ts_constructor_tree_pointers): Same.
12359 (lto_input_ts_omp_clause_tree_pointers): Same.
12360 (streamer_read_tree_body): Same.
12361 * tree-streamer.h: Same.
12362 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12363 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12364 (vect_analyze_possibly_independent_ddr): Same.
12365 (vect_analyze_data_ref_dependence): Same.
12366 (vect_compute_data_ref_alignment): Same.
12367 (vect_enhance_data_refs_alignment): Same.
12368 (vect_analyze_data_ref_access): Same.
12369 (vect_check_gather_scatter): Same.
12370 (vect_find_stmt_data_reference): Same.
12371 (vect_create_addr_base_for_vector_ref): Same.
12372 (vect_setup_realignment): Same.
12373 (vect_supportable_dr_alignment): Same.
12374 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12375 (adjust_phi_and_debug_stmts): Same.
12376 (vect_set_loop_mask): Same.
12377 (add_preheader_seq): Same.
12378 (vect_maybe_permute_loop_masks): Same.
12379 (vect_set_loop_masks_directly): Same.
12380 (vect_set_loop_condition_masked): Same.
12381 (vect_set_loop_condition_unmasked): Same.
12382 (slpeel_duplicate_current_defs_from_edges): Same.
12383 (slpeel_add_loop_guard): Same.
12384 (slpeel_can_duplicate_loop_p): Same.
12385 (create_lcssa_for_virtual_phi): Same.
12386 (iv_phi_p): Same.
12387 (vect_update_ivs_after_vectorizer): Same.
12388 (vect_gen_vector_loop_niters_mult_vf): Same.
12389 (slpeel_update_phi_nodes_for_loops): Same.
12390 (slpeel_update_phi_nodes_for_guard1): Same.
12391 (find_guard_arg): Same.
12392 (slpeel_update_phi_nodes_for_guard2): Same.
12393 (slpeel_update_phi_nodes_for_lcssa): Same.
12394 (vect_do_peeling): Same.
12395 (vect_create_cond_for_alias_checks): Same.
12396 (vect_loop_versioning): Same.
12397 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12398 (vect_inner_phi_in_double_reduction_p): Same.
12399 (vect_analyze_scalar_cycles_1): Same.
12400 (vect_fixup_scalar_cycles_with_patterns): Same.
12401 (vect_get_loop_niters): Same.
12402 (bb_in_loop_p): Same.
12403 (vect_get_max_nscalars_per_iter): Same.
12404 (vect_verify_full_masking): Same.
12405 (vect_compute_single_scalar_iteration_cost): Same.
12406 (vect_analyze_loop_form_1): Same.
12407 (vect_analyze_loop_form): Same.
12408 (vect_active_double_reduction_p): Same.
12409 (vect_analyze_loop_operations): Same.
12410 (neutral_op_for_slp_reduction): Same.
12411 (vect_is_simple_reduction): Same.
12412 (vect_model_reduction_cost): Same.
12413 (get_initial_def_for_reduction): Same.
12414 (get_initial_defs_for_reduction): Same.
12415 (vect_create_epilog_for_reduction): Same.
12416 (vectorize_fold_left_reduction): Same.
12417 (vectorizable_reduction): Same.
12418 (vectorizable_induction): Same.
12419 (vectorizable_live_operation): Same.
12420 (loop_niters_no_overflow): Same.
12421 (vect_get_loop_mask): Same.
12422 (vect_transform_loop_stmt): Same.
12423 (vect_transform_loop): Same.
12424 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12425 (vect_determine_precisions): Same.
12426 (vect_pattern_recog_1): Same.
12427 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12428 * tree-vect-stmts.c (stmt_vectype): Same.
12429 (process_use): Same.
12430 (vect_init_vector_1): Same.
12431 (vect_truncate_gather_scatter_offset): Same.
12432 (get_group_load_store_type): Same.
12433 (vect_build_gather_load_calls): Same.
12434 (vect_get_strided_load_store_ops): Same.
12435 (vectorizable_simd_clone_call): Same.
12436 (vectorizable_store): Same.
12437 (permute_vec_elements): Same.
12438 (vectorizable_load): Same.
12439 (vect_transform_stmt): Same.
12440 (supportable_widening_operation): Same.
12441 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12442 (vec_info::free_stmt_vec_info): Same.
12443 (vect_free_loop_info_assumptions): Same.
12444 (vect_loop_vectorized_call): Same.
12445 (set_uid_loop_bbs): Same.
12446 (vectorize_loops): Same.
12447 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12448 * tree.c (add_tree_to_fld_list): Same.
12449 (fld_type_variant_equal_p): Same.
12450 (fld_decl_context): Same.
12451 (fld_incomplete_type_of): Same.
12452 (free_lang_data_in_binfo): Same.
12453 (need_assembler_name_p): Same.
12454 (find_decls_types_r): Same.
12455 (get_eh_types_for_runtime): Same.
12456 (find_decls_types_in_eh_region): Same.
12457 (find_decls_types_in_node): Same.
12458 (assign_assembler_name_if_needed): Same.
12459 * value-prof.c (stream_out_histogram_value): Same.
12460 * value-prof.h: Same.
12461 * var-tracking.c (use_narrower_mode): Same.
12462 (prepare_call_arguments): Same.
12463 (vt_expand_loc_callback): Same.
12464 (resolve_expansions_pending_recursion): Same.
12465 (vt_expand_loc): Same.
12466 * varasm.c (const_hash_1): Same.
12467 (compare_constant): Same.
12468 (tree_output_constant_def): Same.
12469 (simplify_subtraction): Same.
12470 (get_pool_constant): Same.
12471 (output_constant_pool_2): Same.
12472 (output_constant_pool_1): Same.
12473 (mark_constants_in_pattern): Same.
12474 (mark_constant_pool): Same.
12475 (get_section_anchor): Same.
12476 * vr-values.c (compare_range_with_value): Same.
12477 (vr_values::extract_range_from_phi_node): Same.
12478 * vr-values.h: Same.
12479 * web.c (unionfind_union): Same.
12480 * wide-int.h: Same.
12481
12482 2019-07-09 Martin Sebor <msebor@redhat.com>
12483
12484 PR c++/61339
12485 * align.h: Change class-key from class to struct and vice versa
12486 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12487 * alloc-pool.h: Same.
12488 * asan.c (shadow_mem_size): Same.
12489 * auto-profile.c: Same.
12490 * basic-block.h: Same.
12491 * bitmap.h: Same.
12492 * cfgexpand.c (set_rtl): Same.
12493 (expand_one_stack_var_at): Same.
12494 * cfghooks.h: Same.
12495 * cfgloop.h: Same.
12496 * cgraph.h: Same.
12497 * config/i386/i386.h: Same.
12498 * df-problems.c (df_print_bb_index): Same.
12499 * df-scan.c: Same.
12500 * df.h (df_single_use): Same.
12501 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12502 (layout::annotation_line_showed_range_p): Same.
12503 (get_printed_columns): Same.
12504 (correction::ensure_terminated): Same.
12505 (line_corrections::~line_corrections): Same.
12506 * dojump.h: Same.
12507 * dse.c: Same.
12508 * dump-context.h: Same.
12509 * dumpfile.h: Same.
12510 * dwarf2out.c: Same.
12511 * edit-context.c: Same.
12512 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12513 * flags.h: Same.
12514 * function.c (assign_stack_local): Same.
12515 * function.h: Same.
12516 * gcc.c: Same.
12517 * gcov.c (block_info::block_info): Same.
12518 * genattrtab.c: Same.
12519 * genextract.c: Same.
12520 * genmatch.c (comparison_code_p): Same.
12521 (id_base::id_base): Same.
12522 (decision_tree::print): Same.
12523 * genoutput.c: Same.
12524 * genpreds.c (write_one_predicate_function): Same.
12525 * genrecog.c (validate_pattern): Same.
12526 (find_operand_positions): Same.
12527 (optimize_subroutine_group): Same.
12528 (merge_pattern_transition::merge_pattern_transition): Same.
12529 (merge_pattern_info::merge_pattern_info): Same.
12530 (merge_state_result::merge_state_result): Same.
12531 (merge_into_state): Same.
12532 * gensupport.c: Same.
12533 * gensupport.h: Same.
12534 * ggc-common.c (init_ggc_heuristics): Same.
12535 * ggc-tests.c (test_union): Same.
12536 * gimple-loop-interchange.cc (dump_induction): Same.
12537 * gimple-loop-versioning.cc: Same.
12538 * gimple-match.h (gimple_match_cond::any_else): Same.
12539 * gimple-ssa-backprop.c: Same.
12540 * gimple-ssa-sprintf.c: Same.
12541 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12542 Same.
12543 (store_immediate_info::store_immediate_info): Same.
12544 (merged_store_group::apply_stores): Same.
12545 (get_location_for_stmts): Same.
12546 * gimple-ssa-strength-reduction.c: Same.
12547 * gimple-ssa-warn-alloca.c: Same.
12548 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12549 * godump.c (go_type_decl): Same.
12550 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12551 * hash-map.h: Same.
12552 * hash-set-tests.c (test_set_of_strings): Same.
12553 * hsa-brig.c: Same.
12554 * hsa-common.h: Same.
12555 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12556 * input.c (assert_loceq): Same.
12557 * input.h: Same.
12558 * ipa-cp.c: Same.
12559 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12560 * ipa-fnsummary.h: Same.
12561 * ipa-inline.h: Same.
12562 * ipa-prop.h: Same.
12563 * ipa-split.c (visit_bb): Same.
12564 * ira-int.h (minmax_set_iter_next): Same.
12565 * loop-invariant.c: Same.
12566 * loop-iv.c: Same.
12567 * lra-eliminations.c: Same.
12568 * lra-int.h: Same.
12569 * lra-lives.c (mark_regno_dead): Same.
12570 * lra-remat.c: Same.
12571 * lra-spills.c: Same.
12572 * lto-streamer.h: Same.
12573 * mem-stats.h: Same.
12574 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12575 * omp-low.c (omp_clause_aligned_alignment): Same.
12576 * optabs-query.h (get_vcond_eq_icode): Same.
12577 * optabs.h: Same.
12578 * opts.c (wrap_help): Same.
12579 * poly-int.h: Same.
12580 * predict.c (predict_paths_leading_to_edge): Same.
12581 * pretty-print.h: Same.
12582 * profile-count.h: Same.
12583 * read-md.h: Same.
12584 * read-rtl-function.c: Same.
12585 * ree.c: Same.
12586 * reginfo.c: Same.
12587 * regrename.c: Same.
12588 * regrename.h: Same.
12589 * reload.h: Same.
12590 * rtl-iter.h: Same.
12591 * rtl.h (costs_add_n_insns): Same.
12592 * sanopt.c: Same.
12593 * sched-int.h: Same.
12594 * sel-sched-ir.h: Same.
12595 * selftest.h: Same.
12596 * sese.h (vec_find): Same.
12597 * stmt.c: Same.
12598 * target-globals.h: Same.
12599 * tree-affine.c (aff_combination_find_elt): Same.
12600 * tree-affine.h: Same.
12601 * tree-data-ref.h: Same.
12602 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12603 * tree-predcom.c: Same.
12604 * tree-scalar-evolution.c (find_var_scev_info): Same.
12605 * tree-ssa-alias.h: Same.
12606 * tree-ssa-ccp.c: Same.
12607 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12608 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12609 (rewrite_mem_refs): Same.
12610 (execute_sm_if_changed): Same.
12611 (hoist_memory_references): Same.
12612 * tree-ssa-loop-ivopts.c (operator<=): Same.
12613 * tree-ssa-loop.h: Same.
12614 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12615 * tree-ssa-structalias.c: Same.
12616 * tree-switch-conversion.h (cluster::cluster): Same.
12617 (simple_cluster::simple_cluster): Same.
12618 * tree-vect-patterns.c (type_conversion_p): Same.
12619 * tree-vectorizer.c (dump_stmt_cost): Same.
12620 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12621 * tree.c (protected_set_expr_location): Same.
12622 * tree.h (desired_pro_or_demotion_p): Same.
12623 (fndecl_built_in_p): Same.
12624 * unique-ptr-tests.cc: Same.
12625 * var-tracking.c (delete_variable_part): Same.
12626 * varasm.c (assemble_real): Same.
12627 (tree_output_constant_def): Same.
12628 * vec.c: Same.
12629 * wide-int-bitmask.h: Same.
12630 * wide-int.h (decompose): Same.
12631
12632 2019-07-09 Richard Biener <rguenther@suse.de>
12633
12634 PR tree-optimization/91114
12635 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12636 find a vector type isn't fatal.
12637
12638 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12639
12640 * config/aarch64/aarch64-simd.md
12641 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12642 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12643 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12644 (*aarch64_crypto_aese_fused,
12645 *aarch64_crypto_aesd_fused): Update to new definition.
12646 * config/aarch64/aarch64.c
12647 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12648
12649 2019-07-09 Richard Biener <rguenther@suse.de>
12650
12651 * gimple-match.h (gimple_match_op::resimplify): New.
12652 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12653 gimple_resimplify4, gimple_resimplify5): Remove.
12654 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12655 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12656 Make static.
12657 (gimple_match_op::resimplify): New.
12658 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12659 according to availability. Use gimple_match_op::resimplify.
12660
12661 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12662
12663 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12664
12665 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12666
12667 * config/arm/crypto.md:
12668 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12669 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12670 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12671 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12672 * config/arm/arm.c
12673 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12674 * config/arm/aarch-common-protos.h
12675 (aarch_crypto_can_dual_issue): Remove.
12676 * config/arm/aarch-common.c
12677 (aarch_crypto_can_dual_issue): Likewise.
12678 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12679 * config/arm/cortex-a53.md: Likewise.
12680 * config/arm/cortex-a57.md: Likewise.
12681 * config/arm/iterators.md:
12682 (CRYPTO_BINARY): Redefine.
12683 (CRYPTO_UNARY): Removed.
12684 (CRYPTO_AES, CRYPTO_AESMC): New.
12685
12686 2019-07-09 Richard Biener <rguenther@suse.de>
12687
12688 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12689 (vn_reference_lookup_3): If the main ref has no access path recorded
12690 but orig_ref has use it to do access-path based disambiguation.
12691 (vn_reference_lookup_pieces): Adjust.
12692 (vn_reference_lookup): Pass down original ref if we valueized.
12693
12694 2019-07-09 Martin Liska <mliska@suse.cz>
12695
12696 * doc/extend.texi: Document influence on loop
12697 optimizers.
12698
12699 2019-07-09 Martin Liska <mliska@suse.cz>
12700
12701 * lto-compress.c (lto_normalized_zstd_level): Do not use
12702 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12703 of libzstd. One can use 0 as a default compression level.
12704
12705 2019-07-09 Martin Liska <mliska@suse.cz>
12706
12707 * doc/invoke.texi: Add link from -fprofile-dir option.
12708 Use better wording for 'gcno filename'.
12709
12710 2019-07-08 Martin Sebor <msebor@redhat.com>
12711
12712 PR middle-end/71924
12713 PR middle-end/90549
12714 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12715 comment.
12716 (args_loc_t): New type.
12717 (args_loc_t, locmap_t): same.
12718 (diag_returned_locals): New function.
12719 (is_addr_local): Same.
12720 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12721 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12722 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12723
12724 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12725
12726 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12727 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12728 and casts in offset when different, both through gimple stmts
12729 and through trees. Rewritten using loops to minimize code duplication
12730 for each operand.
12731
12732 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12733
12734 * emit-rtl.c (set_insn_locations): New function moved from...
12735 * function.c (set_insn_locations): ...here.
12736 * ira-emit.c (emit_moves): Propagate location of the first instruction
12737 to the inserted move instructions.
12738 * reg-stack.c (compensate_edge): Set the location if the sequence is
12739 inserted on the edge.
12740 * rtl.h (set_insn_locations): Declare.
12741
12742 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12743
12744 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12745 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12746 .machine string.
12747
12748 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12749
12750 PR rtl-optimization/88233
12751 * common.opt (fsplit-wide-types-early): New option.
12752 * common/config/rs6000/rs6000-common.c
12753 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12754 OPT_LEVELS_ALL.
12755 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12756 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12757 flag_split_wide_types_early.
12758 (pass_data_lower_subreg3): New.
12759 (pass_lower_subreg3): New.
12760 (make_pass_lower_subreg3): New.
12761 * passes.def (pass_lower_subreg2): Move after the loop passes.
12762 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12763 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12764 the pass pipeline; its previous place is taken by ...
12765 (make_pass_lower_subreg3): ... this.
12766
12767 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12768
12769 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12770 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12771
12772 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12773
12774 * config/s390/constraints.md: Add new jsc constraint.
12775 * config/s390/predicates.md: New predicates.
12776 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12777 * config/s390/s390.c (s390_valid_shift_count): New function.
12778 (print_shift_count_operand): Use s390_valid_shift_count.
12779 (print_operand): Likewise.
12780 * config/s390/s390.md: Use new predicate.
12781 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12782 * config/s390/vector.md: Use new predicate.
12783
12784 2019-07-08 Andrew Waterman <andrew@sifive.com>
12785 Jim Wilson <jimw@sifive.com>
12786
12787 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12788 bitsize instead of BITS_PER_WORD.
12789
12790 2019-07-08 Martin Liska <mliska@suse.cz>
12791
12792 * collect2.c (defined): Revert to before r254460.
12793 (scan_prog_file): Revert to before r254460.
12794
12795 2019-07-08 Richard Biener <rguenther@suse.de>
12796
12797 PR tree-optimization/83518
12798 * tree-ssa-sccvn.c: Include splay-tree.h.
12799 (struct pd_range, struct pd_data): New.
12800 (struct vn_walk_cb_data): Add data to track partial definitions.
12801 (vn_walk_cb_data::~vn_walk_cb_data): New.
12802 (vn_walk_cb_data::push_partial_def): New.
12803 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12804 (vn_reference_lookup_2): When partial defs are registered give up.
12805 (vn_reference_lookup_3): Track partial defs for memset and
12806 constructor zeroing and for defs from constants.
12807
12808 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12809
12810 * doc/install.texi (bootstrap-Og): Document.
12811
12812 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12813
12814 * config/riscv/pic.md (*local_pic_load_s<mode>)
12815 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12816 referenced by <mode>, giving...
12817 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12818 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12819 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12820 use <X:MODE> for the mode attribute.
12821
12822 2019-07-07 Jeff Law <law@redhat.com>
12823
12824 PR tree-optimization/91090
12825 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12826 in handling of ranges to simplify switch statements.
12827
12828 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12829
12830 * config/darwin.c (darwin_override_options): Make a final check on PIC
12831 options.
12832
12833 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12834
12835 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12836 on for kernel code.
12837
12838 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12839
12840 PR target/91068
12841 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12842 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12843 instead of matching them to "l" output operands.
12844
12845 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12846
12847 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12848 and check whether addr.reg is nonnull before using it.
12849
12850 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12851
12852 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12853 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12854 variable(s). For conditional lastprivate look through outer
12855 GIMPLE_OMP_SCAN context.
12856 (lower_omp_1): For conditional lastprivate look through outer
12857 GIMPLE_OMP_SCAN context.
12858
12859 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12860 member to combined_into_simd_safelen1.
12861 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12862 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12863 clauses if ctx->combined_into_simd_safelen1 put statements after the
12864 predicate conditionalized block rather than into it.
12865
12866 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12867
12868 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12869 operand 1.
12870 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12871 Make the choice of <mode> explicit, giving...
12872 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12873
12874 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12875
12876 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12877 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12878 of .md attributes.
12879 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12880 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12881 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12882 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12883 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12884 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12885 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12886 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12887 (*avx512f_scatterdi<mode>): Likewise.
12888 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12889
12890 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12891
12892 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12893 specify the mode iterator referenced by <mode>, giving...
12894 (*push1_h8300hs_<QHI:mode>): ...this.
12895
12896 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12897
12898 * config/gcn/gcn-valu.md
12899 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12900 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12901 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12902 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12903 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12904 but using the _exec comparison patterns.
12905 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12906 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12907 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12908 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12909 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12910 but using the _exec comparison patterns.
12911
12912 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12913
12914 * config/arm/sync.md
12915 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12916 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12917 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12918 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12919 <SIDI:cas_cmp_str>.
12920
12921 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12922
12923 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12924 (maybe_lookup_ctx): Add forward declaration.
12925 (omp_find_scan): Likewise. Walk into body of simd if composited
12926 with worksharing loop.
12927 (scan_omp_simd_scan): New function.
12928 (scan_omp_1_stmt): Call it.
12929 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12930 ctx->for_simd_scan_phase.
12931 (lower_rec_input_clauses): Do much less work for inscan reductions
12932 in ctx->for_simd_scan_phase is_simd regions.
12933 (lower_omp_scan): Set is_simd also on simd constructs composited
12934 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
12935 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
12936 emit their body after in simd constructs composited with worksharing
12937 loop.
12938 (lower_omp_for_scan): Handle worksharing loop composited with simd.
12939
12940 * omp-low.c (omp_find_scan): Make static.
12941 (lower_omp_for_scan): Fix order of merge arguments in input phase of
12942 the second loop, var2 represents the first partial sum and so needs
12943 to go before rprivb[ivar].
12944
12945 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
12946
12947 * config/rs6000/rs6000-logue.c: Remove unused code.
12948
12949 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
12950
12951 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12952
12953 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
12954
12955 PR target/90712
12956 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12957 check with a frame laid out check.
12958
12959 2019-07-05 Richard Biener <rguenther@suse.de>
12960
12961 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12962 when comparing against a store with possibly the same value.
12963
12964 2019-07-05 Richard Biener <rguenther@suse.de>
12965
12966 PR tree-optimization/91091
12967 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
12968 (walk_non_aliased_vuses): Likewise.
12969 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
12970 (get_continuation_for_phi): New tbaa_p parameter and pass
12971 it down.
12972 (walk_non_aliased_vuses): Likewise.
12973 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
12974 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
12975 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
12976 Likewise.
12977 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
12978 (adjust_offsets_for_equal_base_address): New function.
12979 (vn_reference_lookup_3): Use it to catch more base equivalences.
12980 Handle and pass down tbaa_p flag.
12981 (vn_reference_lookup_pieces): Adjust.
12982 (vn_reference_lookup): Remove alias-set altering, instead pass
12983 down false as tbaa_p.
12984
12985 2019-07-05 Richard Biener <rguenther@suse.de>
12986
12987 PR tree-optimization/91091
12988 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
12989 accesses can happen with -fno-strict-aliasing.
12990
12991 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
12992
12993 * tree-ssa-alias.c (alias_stats): Add
12994 nonoverlapping_component_refs_since_match_p_must_overlap.
12995 (dump_alias_stats): Print it.
12996 (nonoverlapping_component_refs_since_match_p): Add early exit.
12997 (nonoverlapping_component_refs_p): Do not account early exit.
12998
12999 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13000
13001 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13002 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13003 (emit_eh_dispatch): Delete.
13004 (lower_catch): Emit the eh_dispatch manually and set the location of
13005 the first catch statement onto it.
13006 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13007 (lower_eh_dispatch): Propagate location.
13008 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13009 (eliminate_build): Likewise.
13010
13011 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13012
13013 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13014 phi nodes if possible.
13015 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13016 location info on the newly created statement.
13017 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13018 newly created increment if needed.
13019
13020 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13021
13022 PR middle-end/78884
13023 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13024 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13025 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13026 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13027 ctx->add_safelen1 is set.
13028
13029 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13030 GOMP_loop_start at the start of second worksharing loop in a scan.
13031 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13032 worksharing loop in a scan even if there are conditional lastprivates,
13033 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13034
13035 2019-07-04 Jan Hubicka <jh@suse.cz>
13036
13037 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13038 Fix check for match in the ref walk.
13039
13040 2019-07-04 Martin Liska <mliska@suse.cz>
13041
13042 * tree-ssa-loop-niter.c
13043 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13044 (estimate_numbers_of_iterations):
13045 Support __builtin_expect_with_probability for analysis
13046 of # of loop iterations.
13047
13048 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13049
13050 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13051 * except.c: Likewise.
13052 * expr.c (expand_expr_real_1): Reject it.
13053 * gimplify.c (gimplify_expr): Gimplify it, within
13054 TRY_FINALLY_EXPR.
13055 * tree-dump.c (dequeue_and_dump): Dump it.
13056 * tree-pretty-print.c (dump_generic_node): Likewise.
13057 * tree.c (block_may_fallthru): Handle it.
13058 * tree.def (EH_ELSE_EXPR): Introduce it.
13059 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13060 with GIMPLE_EH_ELSE as try/finally/else.
13061
13062 2019-07-04 Richard Biener <rguenther@suse.de>
13063
13064 PR ipa/91062
13065 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13066 parameter whether to disable GC collection.
13067 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13068 honor it.
13069 (execute_all_ipa_transforms): Likewise and pass it down.
13070 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13071 collection from applying IPA transforms.
13072 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13073 from applying IPA transforms.
13074
13075 2019-07-04 Richard Biener <rguenther@suse.de>
13076
13077 PR tree-optimization/90911
13078 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13079 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13080 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13081 scalar_loop_scaling.
13082 (vect_transform_loop): Scale scalar loop profile if needed.
13083 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13084 the loop copy from if-conversion adjust edge probabilities
13085 and scale the vectorized loop body profile, queue the scalar
13086 profile for updating after peeling.
13087
13088 2019-07-04 Jan Hubicka <jh@suse.cz>
13089
13090 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13091 parameters; return early for must-alias.
13092 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13093 outer types match, try nonoverlapping_component_refs
13094 if must-alias is not obvious.
13095 (indirect_refs_may_alias_p): Likewise.
13096 (refs_may_alias_p_2): Likewise.
13097
13098 2019-07-04 Richard Biener <rguenther@suse.de>
13099
13100 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13101 argument.
13102 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13103 globals into...
13104 (struct vn_walk_cb_data): New callback data struct.
13105 (vn_reference_lookup_2): Adjust.
13106 (vn_reference_lookup_3): Likewise.
13107 (vn_reference_lookup_pieces): Likewise.
13108 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13109 (visit_reference_op_load): Adjust.
13110
13111 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13112
13113 PR tree-optimization/91063
13114 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13115 stmt from stmts sequence before calling vect_init_vector_1.
13116 Formatting fix.
13117
13118 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13119
13120 PR target/88833
13121 * fwprop.c (reg_single_def_p): New function.
13122 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13123 (forward_propagate_into): New parameter reg_prop_only
13124 with default value false.
13125 Propagate def's src into loop only if SET_SRC and SET_DEST
13126 of def_set have single definitions.
13127 Likewise if reg_prop_only is set to true.
13128 (fwprop): New param fwprop_addr_p.
13129 Integrate fwprop_addr into fwprop.
13130 (fwprop_addr): Remove.
13131 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13132 to true.
13133 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13134 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13135 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13136
13137 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13138
13139 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13140 in worksharing loop scans.
13141
13142 PR tree-optimization/91074
13143 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13144 temporary.
13145
13146 PR rtl-optimization/90756
13147 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13148 for VECTOR_TYPE_P.
13149
13150 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13151
13152 * config/aarch64/aarch64.md: Remove redundant constraints from
13153 define_expand but keep some patterns untouched if they are
13154 specially selected by TARGET_SECONDARY_RELOAD hook.
13155 * config/aarch64/aarch64-sve.md: Likewise.
13156 * config/aarch64/atomics.md: Remove redundant constraints from
13157 define_expand.
13158 * config/aarch64/aarch64-simd.md: Likewise.
13159
13160 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13161
13162 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13163 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13164 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13165 clauses.
13166 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13167 DARWIN_NOPIE_SPEC.
13168
13169 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13170
13171 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13172 (STARTFILE_SPEC): Split crt3 into a separate spec.
13173 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13174 (DARWIN_CRT2_SPEC): New.
13175 (DARWIN_CRT3_SPEC): New.
13176 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13177 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13178 (DARWIN_CRT3_SPEC): New.
13179
13180 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13181
13182 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13183 Change the RTL attribute "length" from "4" to "*" to allow the
13184 length attribute to be adjusted automatically for prefixed load,
13185 store, and add immediate instructions.
13186 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13187 Likewise.
13188 (extendsi<mode>2, EXTSI iterator): Likewise.
13189 (movsi_internal1): Likewise.
13190 (movsi_from_sf): Likewise.
13191 (movdi_from_sf_zero_ext): Likewise.
13192 (mov<mode>_internal): Likewise.
13193 (movcc_internal1, QHI iterator): Likewise.
13194 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13195 (movsf_from_si): Likewise.
13196 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13197 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13198 (mov<mode>, FMOVE128 iterator): Likewise.
13199 (movdi_internal64): Likewise.
13200 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13201 Likewise.
13202 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13203 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13204 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13205 (vsx_splat_v4sf): Likewise.
13206
13207 2019-07-03 Mark Wielaard <mark@klomp.org>
13208
13209 PR debug/90981
13210 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13211 DW_AT_addr_base if there is actually a .debug_addr section with
13212 addresses.
13213 (output_addr_table): Add DWARF5 table header generation here after
13214 checking there are actually any addresses from...
13215 (dwarf2out_finish): ...here.
13216
13217 2019-07-03 Richard Biener <rguenther@suse.de>
13218
13219 PR middle-end/91069
13220 * match.pd (vec_perm -> bit_insert): Fix element read from
13221 first vector.
13222
13223 2019-07-03 Martin Liska <mliska@suse.cz>
13224
13225 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13226 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13227 condition.
13228 * generic-match-head.c: Include dbgcnt.h.
13229 * gimple-match-head.c: Likewise.
13230
13231 2019-07-03 Martin Liska <mliska@suse.cz>
13232
13233 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13234 (GCOV_COUNTER_V_TOPN): New.
13235 (GCOV_COUNTER_V_INDIR): Use _topn.
13236 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13237 (GCOV_TOPN_VALUES): New.
13238 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13239 (GCOV_TOPN_VALUES_COUNTERS): New.
13240 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13241 * tree-profile.c:
13242 (gimple_init_gcov_profiler): Rename variables from one_value
13243 to topn_values.
13244 (gimple_gen_one_value_profiler): Remove.
13245 (gimple_gen_topn_values_profiler): New function.
13246 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13247 names instead of SINGLE_VALUE.
13248 (stream_out_histogram_value): Likewise.
13249 (stream_in_histogram_value): Likewise.
13250 (get_most_common_single_value): Likewise.
13251 (gimple_divmod_fixed_value_transform): Likewise.
13252 (gimple_stringops_transform): Likewise.
13253 (gimple_divmod_values_to_profile): Likewise.
13254 (gimple_stringops_values_to_profile): Likewise.
13255 (gimple_find_values_to_profile): Likewise.
13256 * value-prof.h (enum hist_type): Rename to TOPN.
13257 (gimple_gen_one_value_profiler): Remove.
13258 (gimple_gen_topn_values_profiler): New.
13259
13260 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13261
13262 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13263 if it has the DW_AT_data_member_location attribute.
13264
13265 2019-07-03 Richard Biener <rguenther@suse.de>
13266
13267 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13268 dumping.
13269
13270 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13271
13272 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13273 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13274 (tlsdesc_small_sve_<mode>): Likewise.
13275
13276 2019-07-03 Martin Liska <mliska@suse.cz>
13277
13278 * Makefile.in: Define ZSTD_LIB.
13279 * common.opt: Adjust compression level
13280 to support also zstd levels.
13281 * config.in: Regenerate.
13282 * configure: Likewise.
13283 * configure.ac: Add --with-zstd and --with-zstd-include options
13284 and detect ZSTD.
13285 * doc/install.texi: Mention zstd dependency.
13286 * gcc.c: Print supported LTO compression algorithms.
13287 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13288 (lto_compression_zstd): Likewise.
13289 (lto_uncompression_zstd): Likewise.
13290 (lto_end_compression): Dispatch in between zlib and zstd.
13291 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13292 (lto_uncompression_zlib): Make it static.
13293 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13294 * lto-section-in.c (lto_get_section_data): Pass info
13295 about used compression.
13296 * lto-streamer-out.c: By default use zstd when possible.
13297 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13298 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13299
13300 2019-07-03 Martin Liska <mliska@suse.cz>
13301
13302 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13303 * lto-section-out.c (lto_destroy_simple_output_block): Never
13304 compress LTO_section_lto section.
13305 * lto-streamer-out.c (produce_asm): Do not set major_version
13306 and minor_version.
13307 (lto_output_toplevel_asms): Likewise.
13308 (produce_lto_section): New function.
13309 (lto_output): Call produce_lto_section.
13310 (lto_write_mode_table): Do not set major_version and
13311 minor_version.
13312 (produce_asm_for_decls): Likewise.
13313 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13314 type.
13315 (struct lto_header): Remove.
13316 (struct lto_section): New struct.
13317 (struct lto_simple_header): Do not inherit from lto_header.
13318 (struct lto_file_decl_data): Add lto_section_header field.
13319
13320 2019-07-03 Martin Liska <mliska@suse.cz>
13321
13322 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13323 dead assignemts.
13324 * reg-stack.c (check_asm_stack_operands): Likewise.
13325 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13326 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13327 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13328 force_expand_binop.
13329
13330 2019-07-03 Martin Liska <mliska@suse.cz>
13331
13332 PR tree-optimization/90892
13333 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13334 in string constants.
13335
13336 2019-07-03 Martin Liska <mliska@suse.cz>
13337
13338 PR middle-end/90899
13339 * multiple_target.c (create_dispatcher_calls): Add to comdat
13340 group only if set for ifunc.
13341
13342 2019-07-03 Martin Liska <mliska@suse.cz>
13343
13344 PR target/88056
13345 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13346 Define local_object_name in outer scope in order to handle
13347 use-after-scope issue.
13348
13349 2019-07-03 Martin Liska <mliska@suse.cz>
13350
13351 * common.opt: Add fprofile-note.
13352 * coverage.c (coverage_init): Append the option
13353 to bbg_file_name.
13354 * doc/invoke.texi: Document -fprofile-note.
13355
13356 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13357
13358 PR tree-optimization/91033
13359 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13360 vect_analyze_data_refs): Add bool * arguments.
13361 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13362 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13363 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13364 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13365 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13366 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13367 vect_analyze_data_refs caller.
13368
13369 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13370 clause.
13371 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13372 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13373 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13374 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13375 OMP_CLAUSE__SCANTEMP_ entry.
13376 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13377 * tree-pretty-print.c (dump_omp_clause): Likewise.
13378 * tree-nested.c (convert_nonlocal_omp_clauses,
13379 convert_local_omp_clauses): Likewise.
13380 * omp-general.h (struct omp_for_data): Add have_scantemp and
13381 have_nonctrl_scantemp members.
13382 * omp-general.c (omp_extract_for_data): Initialize them.
13383 * omp-low.c (struct omp_context): Add scan_exclusive member.
13384 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13385 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13386 ctx->scan_exclusive.
13387 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13388 of !ctx->scan_inclusive.
13389 (lower_rec_input_clauses): Simplify gimplification of dtors using
13390 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13391 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13392 loops. Don't add barrier for reduction_omp_orig_ref if
13393 ctx->scan_??xclusive.
13394 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13395 (lower_omp_scan): Use ctx->scan_exclusive instead
13396 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13397 reductions. Use new_vard != new_var instead of repeated
13398 omp_is_reference calls.
13399 (omp_find_scan, lower_omp_for_scan): New functions.
13400 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13401 inscan reductions.
13402 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13403 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13404 and fd->have_scantemp.
13405
13406 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13407 on worksharing loop propagate it as shared clause to containing
13408 combined parallel.
13409
13410 * omp-expand.c (expand_omp_for_static_nochunk,
13411 expand_omp_for_static_chunk): For nowait worksharing loop with
13412 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13413 at the end.
13414
13415 2019-07-02 qing zhao <qing.zhao@oracle.com>
13416
13417 PR preprocessor/90581
13418 * doc/cppopts.texi: Add document for -fmax-include-depth.
13419 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13420
13421 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13422
13423 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13424 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13425 (mmx_packssdw): Ditto.
13426 (mmx_punpckhbw): Ditto.
13427 (mmx_punpcklbw): Ditto.
13428 (mmx_punpckhwd): Ditto.
13429 (mmx_punpcklwd): Ditto.
13430 (mmx_punpckhdq): Ditto.
13431 (mmx_punpckldq): Ditto.
13432 (*vec_dupv4hi): Ditto.
13433 (*vec_dupv2si): Ditto.
13434 (mmx_pmovmskb): Ditto.
13435 * config/i386/sse.md (sse_cvtpi2ps): Use
13436 TARGET_SSE2 && SSE_REG_P in split condition.
13437 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13438 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13439 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13440 (ssse3_pshufbv8qi3): Ditto.
13441 (ssse3_palignrdi): Ditto.
13442
13443 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13444
13445 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13446 with inlined save and restore.
13447
13448 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13449
13450 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13451 to be inserted on single successor edge of the entry block. Then call
13452 commit_edge_insertions instead of inserting the instructions manually.
13453 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13454 RTL expansion and rebuild jump labels chain.
13455
13456 2019-07-02 Richard Biener <rguenther@suse.de>
13457
13458 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13459 TI_CHREC_KNOWN.
13460 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13461 Define here.
13462 * tree.c (build_common_tree_nodes): Initialize them.
13463 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13464 Make declarations comments.
13465 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13466 chrec_known): Remove definitions.
13467 (initialize_scalar_evolutions_analyzer): Remove.
13468 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13469 * tree-streamer.c (preload_common_nodes): Do not preload
13470 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13471
13472 2019-07-02 Jan Hubicka <jh@suse.cz>
13473
13474 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13475 sanity check.
13476
13477 2019-07-02 Jan Hubicka <jh@suse.cz>
13478
13479 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13480 to ..
13481 (nonoverlapping_component_refs_since_match_p): ... this one;
13482 handle also non-decl bases; return -1 if search gave up.
13483 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13484 nonoverlapping_component_refs_of_decl_p_no_alias to
13485 nonoverlapping_component_refs_since_match_p_may_alias,
13486 nonoverlapping_component_refs_since_match_p_no_alias.
13487 (dump_alias_stats): Update dumping.
13488 (aliasing_matching_component_refs_p): Break out from ...;
13489 dispatch to nonoverlapping_component_refs_for_decl_p
13490 and nonoverlapping_component_refs_since_match_p.
13491 (aliasing_component_refs_p): ... here; call
13492 nonoverlapping_component_refs_p in scenarios where we can not
13493 precisely determine base match.
13494 (decl_refs_may_alias_p): Use
13495 nonoverlapping_component_refs_since_match_p.
13496 (indirect_ref_may_alias_decl_p): Do not call
13497 nonoverlapping_component_refs_p.
13498 (indirect_refs_may_alias_p): Likewise.
13499
13500 2019-07-02 Jan Hubicka <jh@suse.cz>
13501
13502 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13503 to clobber of return value.
13504
13505 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13506
13507 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13508 for is_neon_type instructions that have not already been categorized.
13509
13510 2019-07-02 Richard Biener <rguenther@suse.de>
13511
13512 PR tree-optimization/58483
13513 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13514 for MEM_REF base hashing.
13515 (equal_mem_array_ref_p): Likewise for base comparison.
13516
13517 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13518
13519 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13520 parameterized name.
13521 (signbit<mode>2): Use that name. Simplify.
13522
13523 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13524
13525 PR middle-end/66726
13526 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13527 Tune heuristic from PR71016 to allow MIN / MAX.
13528
13529 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13530
13531 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13532 parameterized name.
13533 (abs<mode>2): Use that name. Simplify.
13534
13535 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13536
13537 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13538 parameterized name.
13539 (neg<mode>2): Use that name. Simplify.
13540
13541 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13542
13543 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13544 name.
13545 (abs<mode>2): Use that name. Simplify.
13546
13547 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13548
13549 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13550 name.
13551 (neg<mode>2): Use that name. Simplify.
13552
13553 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13554
13555 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13556 ("enabled" attribute): Handle sse_noavx isa attribute.
13557 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13558 Use TARGET_SSE && SSE_REGNO_P in split condition.
13559 (*vec_dupv2sf): Ditto.
13560
13561 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13562
13563 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13564 name.
13565 (floatsi<mode>2): Use that name. Simplify.
13566
13567 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13568
13569 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13570 parameterized name.
13571 (extenddf<mode>2_vsx): Make this a parameterized name.
13572 (extenddf<mode>2): Use those names. Simplify.
13573
13574 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13575
13576 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13577 name.
13578 (eh_return): Use that name. Simplify.
13579
13580 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13581
13582 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13583 (doloop_end): Use that name. Simplify.
13584
13585 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13586
13587 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13588 parameterized name.
13589 (indirect_jump): Use that name. Simplify.
13590
13591 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13592
13593 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13594 parameterized name.
13595 (abs<mode>2): Use that name. Simplify.
13596
13597 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13598
13599 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13600 parameterized name.
13601 (fix_trunc<mode>si2): Use that name. Simplify.
13602
13603 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13604
13605 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13606 (allocate_stack): Use that name. Simplify.
13607
13608 2019-07-01 Martin Sebor <msebor@redhat.com>
13609
13610 PR middle-end/90923
13611 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13612 (hash_map::get_or_insert): Same. Reformat comment.
13613 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13614 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13615 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13616 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13617 (hash_table::hash_table (const hash_table&)): Use copy ctor
13618 instead of assignment to copy elements.
13619
13620 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13621 John David Anglin <danglin@gcc.gnu.org>
13622
13623 PR target/90963
13624 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13625 using saved frame pointer.
13626
13627 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13628
13629 PR middle-end/64242
13630 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13631 Add frame clobber and schedule blockage.
13632
13633 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13634
13635 * doc/invoke.texi (Link Options): Further editorial changes to
13636 -flinker-output docs.
13637
13638 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13639
13640 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13641 Load both operands of a PLUS into registers separately.
13642
13643 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13644
13645 * config/s390/vector.md: Fix shift count operand printing.
13646
13647 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13648
13649 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13650
13651 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13652
13653 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13654 Use recog_data to test for an output operand.
13655
13656 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13657
13658 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13659 exclude any others that are disparaged or that are bound to need
13660 a reload or spill.
13661 (ira_get_dup_out_num): Expand comment.
13662
13663 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13664
13665 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13666 constraint string for each operand/alternative combo. Only handle
13667 '%' at the start of constraint strings, and look for it outside
13668 the main loop.
13669
13670 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13671
13672 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13673 alternative_mask instead of HARD_REG_SET to represent a
13674 bitmask of alternatives.
13675 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13676 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13677
13678 2019-07-01 Martin Liska <mliska@suse.cz>
13679
13680 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13681 use () for a constructor call.
13682 (test_applying_fixits_line_out_of_range): Likewise.
13683 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13684 argument.
13685 (free_page): Likewise.
13686
13687 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13688
13689 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13690 parameter names to match usage (no functional change).
13691 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13692
13693 2019-07-01 Richard Biener <rguenther@suse.de>
13694
13695 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13696 pass parameter.
13697 (pass_fre::execute): Honor it.
13698 * passes.def: Adjust pass_fre invocations to allow iterating,
13699 add non-iterating pass_fre before late threading/dom.
13700
13701 2019-07-01 Richard Biener <rguenther@suse.de>
13702
13703 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13704 TARGET_MEM_REF handling to also handle address-taken ones.
13705
13706 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13707
13708 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13709 hardware attributes): Document avx512vp2intersect.
13710
13711 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13712
13713 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13714 (abs<mode>2): New expander.
13715 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13716 Use CODE_FOR_ssse3_absv8qi2.
13717 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13718 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13719
13720 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13721
13722 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13723 to sse, sse_noavx and avx. Update all uses.
13724
13725 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13726
13727 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13728 (*mmx_<plusminus_insn><mode>3): Ditto.
13729 (*mmx_mulv4hi3"): Ditto.
13730 (*mmx_smulv4hi3_highpart): Ditto.
13731 (*mmx_umulv4hi3_highpart): Ditto.
13732 (*mmx_pmaddwd): Ditto.
13733 (*sse2_umulv1siv1di3): Ditto.
13734 (*mmx_<code>v4hi3): Ditto.
13735 (*mmx_<code>v8qi3): Ditto.
13736 (mmx_ashr<mode>3): Ditto.
13737 ("mmx_<shift_insn><mode>3): Ditto.
13738 (*mmx_eq<mode>3): Ditto.
13739 (mmx_gt<mode>3): Ditto.
13740 (mmx_andnot<mode>3): Ditto.
13741 (*mmx_<code><mode>3): Ditto.
13742 (*mmx_pinsrw): Ditto.
13743 (*mmx_pextrw): Ditto.
13744 (mmx_pshufw_1): Ditto.
13745 (*mmx_uavgv8qi3): Ditto.
13746 (*mmx_uavgv4hi3): Ditto.
13747 ("mmx_psadbw): Ditto.
13748 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13749 (sse_cvttps2pi): Ditto.
13750 (ssse3_pmaddubsw): Ditto.
13751 (*ssse3_pmulhrswv4hi3): Ditto.
13752 (ssse3_psign<mode>3): Ditto.
13753
13754 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13755
13756 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13757 adjustment for bit-fields to all aggregate types.
13758
13759 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13760
13761 * config/rs6000/predicates.md (pcrel_address): Use
13762 SYMBOL_REF_LOCAL_P to determine if a label is local.
13763 (pcrel_external_address): New predicate.
13764 (non_prefixed_mem_operand): Delete, predicate not used.
13765 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13766 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13767 addressing.
13768 (SYMBOL_REF_PCREL_P): Likewise.
13769
13770 PR target/91009
13771 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13772 alternative.
13773 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13774 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13775 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13776
13777 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13778
13779 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13780 override on extra_headers.
13781
13782 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13783
13784 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13785 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13786 from warning.
13787 (darwin_driver_init): Likewise.
13788
13789 2019-06-28 Jan Beulich <jbeulich@suse.com>
13790
13791 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13792 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13793 Eliminate redundant alternative.
13794
13795 2019-06-28 Jan Beulich <jbeulich@suse.com>
13796
13797 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13798 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13799 Use vector_operand.
13800
13801 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13802
13803 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13804 having a lower cost regardless of the speed option.
13805
13806 2019-06-28 Jan Beulich <jbeulich@suse.com>
13807
13808 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13809 vector_operand plus, on both alternatives, "Bm" constraint.
13810
13811 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13812
13813 * config/arm/arm.md: Remove redundant constraints from
13814 define_expand but leave reload_inm and reload_outm patterns
13815 untouched since they need special constraints to work.
13816 * config/arm/arm-fixed.md: Remove redundant constraints from
13817 define_expand.
13818 * config/arm/iwmmxt.md: Likewise.
13819 * config/arm/neon.md: Likewise.
13820 * config/arm/sync.md: Likewise.
13821 * config/arm/thumb1.md: Likewise.
13822 * config/arm/vec-common.md: Likewise.
13823
13824 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13825
13826 * doc/install.texi: Document --disable-tm-clone-registry.
13827
13828 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13829
13830 PR c++/91024
13831 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13832 statements.
13833
13834 PR tree-optimization/91010
13835 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13836 return true. Otherwise, don't call operand_equal_p if offset1 or
13837 offset2 is NULL and just return false.
13838
13839 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13840
13841 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13842 user-specified float mode choice for kernel mode code.
13843
13844 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13845
13846 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13847 spec.
13848
13849 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13850
13851 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13852 use longcall for 64b code.
13853
13854 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13855
13856 * builtins.c (get_memory_rtx): Fix comment.
13857 * optabs.def (movmem_optab): Change to cpymem_optab.
13858 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13859 (emit_block_move_hints): Change movmem to cpymem.
13860 * defaults.h: Change movmem to cpymem.
13861 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13862 (default_use_by_pieces_infrastructure_p): Ditto.
13863 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13864 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13865 to cpymem.
13866 * config/aarch64/aarch64.h: Change movmem to cpymem.
13867 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13868 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13869 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13870 movmem to cpymem.
13871 * config/arc/arc-protos.h: Change movmem to cpymem.
13872 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13873 * config/arc/arc.h: Change movmem to cpymem in comment.
13874 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13875 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13876 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13877 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13878 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13879 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13880 * config/avr/avr-protos.h: Change movmem to cpymem.
13881 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13882 avr_out_movmem): Change movmem to cpymem.
13883 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13884 Change movmem to cpymem.
13885 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13886 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13887 Change movmem to cpymem.
13888 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13889 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13890 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13891 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13892 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13893 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13894 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13895 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13896 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13897 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13898 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13899 expand_small_cpymem_or_setmem,
13900 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13901 expand_set_or_cpymem_constant_prologue,
13902 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13903 * config/i386/i386-protos.h: Change movmem to cpymem.
13904 * config/i386/i386.h: Change movmem to cpymem in comment.
13905 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13906 (setmem<mode>): Change expansion function name.
13907 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13908 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13909 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13910 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13911 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13912 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13913 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13914 to cpymem.
13915 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13916 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13917 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13918 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13919 Change movmem to cpymem.
13920 * config/mips/mips.h: Change movmem to cpymem.
13921 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13922 * config/nds32/nds32-memory-manipulation.c
13923 (nds32_expand_movmemsi_loop_unknown_size,
13924 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13925 nds32_expand_movmemsi_unroll,
13926 nds32_expand_movmemsi): Change movmem to cpymem.
13927 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13928 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13929 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13930 (pa_adjust_insn_length): Change call to compute_movmem_length.
13931 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13932 movmemdi, movmemdi_prereload,
13933 movmemdi_postreload): Change movmem to cpymem.
13934 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13935 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13936 * config/riscv/riscv.c: Change movmem to cpymem in comment.
13937 * config/riscv/riscv.h: Change movmem to cpymem.
13938 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13939 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13940 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13941 movmem to cpymem.
13942 * config/s390/s390-protos.h: Change movmem to cpymem.
13943 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13944 s390_expand_insv): Change movmem to cpymem.
13945 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13946 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13947 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13948 * config/sparc/sparc.h: Change movmem to cpymem in comment.
13949 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13950 for nonexistent function.
13951 * config/vax/vax.h: Change movmem to cpymem in comment.
13952 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13953 * config/visium/visium.h: Change movmem to cpymem in comment.
13954 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13955 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13956 * doc/md.texi: Change movmem to cpymem and update description to match.
13957 * doc/rtl.texi: Change movmem to cpymem.
13958 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13959 * doc/tm.texi: Regenerate.
13960
13961 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
13962
13963 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13964 -fvariable-expansion-in-unroller by default.
13965 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
13966 default for Power.
13967
13968 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
13969
13970 Revert
13971 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
13972 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
13973
13974 * config.gcc(rs6000-*-*): Define target_gtfiles.
13975
13976 2019-06-27 Jan Hubicka <jh@suse.cz>
13977
13978 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
13979 (add_type_duplicate): When odr hash is not allocated, to nothing.
13980 (odr_based_tbaa_p): New function.
13981 (set_type_canonical_for_odr_type): New function.
13982 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
13983 set_type_canonical_for_odr_type): New.
13984 * tree.c (gimple_canonical_types_compatible_p): ODR types with
13985 ODR based TBAA are not equivalent to non-ODR types.
13986
13987 2019-06-27 Martin Liska <mliska@suse.cz>
13988
13989 PR tree-optimization/90974
13990 PR rtl-optimization/90975
13991 PR rtl-optimization/90976
13992 PR target/91016
13993 PR tree-optimization/91017
13994 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
13995 unused tmp.
13996 * lra.c (lra_set_insn_recog_data): Remove a leftover from
13997 initial commit of IRA.
13998 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
13999 of op0 and op1.
14000 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14001 Remove unused mode1.
14002 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14003 to new_stmt_info.
14004
14005 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14006
14007 PR target/90991
14008 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14009 instead of register_operand for operands[1], add m to its constraints
14010 if operands[2] uses "C" constraint. Ensure in condition that if
14011 operands[2] is not 0, then operands[1] is not a MEM. For last two
14012 alternatives, use unaligned loads instead of aligned if operands[1] is
14013 misaligned_operand.
14014
14015 2019-06-27 Martin Liska <mliska@suse.cz>
14016
14017 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14018 dead assignments.
14019 * bt-load.c (move_btr_def): Likewise.
14020 * builtins.c (expand_builtin_apply_args_1): Likewise.
14021 (expand_builtin_apply): Likewise.
14022 * cfgexpand.c (expand_asm_stmt): Likewise.
14023 (construct_init_block): Likewise.
14024 * cfghooks.c (verify_flow_info): Likewise.
14025 * cfgloopmanip.c (remove_path): Likewise.
14026 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14027 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14028 * combine.c (simplify_if_then_else): Likewise.
14029 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14030 (choose_basereg): Likewise.
14031 (ix86_expand_prologue): Likewise.
14032 (ix86_preferred_output_reload_class): Likewise.
14033 * cselib.c (cselib_record_sets): Likewise.
14034 * df-scan.c (df_scan_alloc): Likewise.
14035 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14036 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14037 * emit-rtl.c (try_split): Likewise.
14038 * graphite-scop-detection.c (assign_parameter_index_in_region):
14039 Likewise.
14040 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14041 * ira-color.c (setup_profitable_hard_regs): Likewise.
14042 * ira.c (rtx_moveable_p): Likewise.
14043 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14044 * read-rtl.c (read_subst_mapping): Likewise.
14045 * regrename.c (scan_rtx): Likewise.
14046 * reorg.c (fill_slots_from_thread): Likewise.
14047 * tree-inline.c (tree_function_versioning): Likewise.
14048 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14049 * tree-ssa-sink.c (statement_sink_location): Likewise.
14050 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14051 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14052 (vect_create_epilog_for_reduction): Likewise.
14053 * tree.c (build_nonstandard_integer_type): Likewise.
14054
14055 2019-06-27 Richard Biener <rguenther@suse.de>
14056
14057 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14058
14059 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14060
14061 PR tree-optimization/89772
14062 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14063 out-of-bound accesses checking.
14064
14065 2019-06-27 Martin Liska <mliska@suse.cz>
14066
14067 PR tree-optimization/91014
14068 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14069 when LHS is NULL_TREE.
14070
14071 2019-06-27 Martin Liska <mliska@suse.cz>
14072
14073 * symbol-summary.h (traverse): Pass
14074 argument a to the call of callback.
14075 (gt_ggc_mx): Mark arguments as unused.
14076 (gt_pch_nx): Likewise.
14077
14078 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14079
14080 PR target/62147
14081 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14082 finiteness.
14083
14084 2019-06-26 Jeff Law <law@redhat.com>
14085
14086 PR tree-optimization/90883
14087 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14088 (delete_dead_or_redundant_assignment): Likewise.
14089
14090 PR tree-optimization/90883
14091 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14092 * tree-ssa-dse.c: Update various comments to distinguish between
14093 dead and redundant stores.
14094 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14095 (dse_optimize_redundant_stores): New function.
14096 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14097 Distinguish between dead and redundant calls in dump output. All
14098 callers updated.
14099 (delete_dead_or_redundant_assignment): Similarly for assignments.
14100 (dse_optimize_stmt): Handle _CHK variants. For statements which
14101 store 0 into multiple memory locations, try to prove a subsequent
14102 store is redundant.
14103
14104 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14105
14106 PR target/89021
14107 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14108 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14109
14110 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14111
14112 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14113 (branch_islands): New extern.
14114 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14115 * config/rs6000/rs6000.c: .. here.
14116
14117 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14118
14119 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14120 (powerpc*-*-*) ... to here.
14121
14122 2019-06-26 Jeff Law <law@redhat.com>
14123
14124 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14125 memcpy, memmove and memset builtins.
14126 (maybe_trim_memstar_call): Likewise.
14127
14128 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14129
14130 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14131
14132 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14133
14134 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14135
14136 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14137
14138 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14139 declaration.
14140 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14141 "static".
14142 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14143 declaration.
14144
14145 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14146
14147 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14148
14149 2019-06-26 Richard Biener <rguenther@suse.de>
14150
14151 PR ipa/90982
14152 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14153
14154 2019-06-26 Richard Biener <rguenther@suse.de>
14155
14156 * lto-streamer.h (lto_bitmap_alloc): Remove.
14157 (lto_bitmap_free): Likewise.
14158 * lto-streamer.c (lto_bitmap_alloc): Remove.
14159 (lto_bitmap_free): Likewise.
14160 (lto_obstack): Likewise.
14161 (lto_obstack_initialized): Likewise.
14162 * lto-streamer-out.c (lto_output): Use own obstack for local
14163 bitmap, free it consistently.
14164
14165 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14166
14167 PR target/90991
14168 * config/i386/sse.md
14169 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14170 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14171 insns if operands[2] is misaligned_operand.
14172
14173 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14174
14175 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14176 TARGET_POWERPC64.
14177 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14178 to GPR.
14179
14180 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14181
14182 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14183
14184 2019-06-26 Martin Liska <mliska@suse.cz>
14185
14186 PR tree-optimization/90973
14187 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14188 epilogue_cost_vec instead of prologue_cost_vec for
14189 a epilogue cost.
14190
14191 2019-06-26 Martin Liska <mliska@suse.cz>
14192
14193 * bb-reorder.c (connect_better_edge_p): Add missing else
14194 statement in the middle of if-else statements.
14195
14196 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14197 H.J. Lu <hongjiu.lu@intel.com>
14198 Olga Makhotina <olga.makhotina@intel.com>
14199
14200 * common/config/i386/i386-common.c
14201 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14202 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14203 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14204 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14205 (ix86_handle_option): Handle -mavx512vp2intersect.
14206 * config/i386/avx512vp2intersectintrin.h: New.
14207 * config/i386/avx512vp2intersectvlintrin.h: New.
14208 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14209 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14210 AVX512VP2INTERSECT.
14211 * config/i386/i386-builtin-types.def: Add new types.
14212 * config/i386/i386-builtin.def: Add new builtins.
14213 * config/i386/i386-builtins.c: (enum processor_features): Add
14214 F_AVX512VP2INTERSECT.
14215 (static const _isa_names_table isa_names_table): Ditto.
14216 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14217 __AVX512VP2INTERSECT__.
14218 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14219 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14220 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14221 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14222 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14223 * config/i386/i386-options.c (ix86_target_string): Add
14224 -mavx512vp2intersect.
14225 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14226 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14227 P2HImode and P2QImode.
14228 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14229 number for P2QImode and P2HImode.
14230 (ix86_regmode_natural_size): New function.
14231 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14232 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14233 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14234 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14235 * config/i386/i386.opt: Add -mavx512vp2intersect.
14236 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14237 avx512vp2intersectvlintrin.h.
14238 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14239 (define_mode_iterator VI48_AVX512VP2VL): New.
14240 (avx512vp2intersect_2intersect<mode>,
14241 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14242 * config.gcc: Add avx512vp2intersectvlintrin.h and
14243 avx512vp2intersectintrin.h to extra_headers.
14244 * doc/invoke.texi: Document -mavx512vp2intersect.
14245
14246 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14247
14248 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14249
14250 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14251
14252 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14253 savres_routine_syms, savres_routine_name, morestack_ref,
14254 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14255 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14256 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14257 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14258 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14259 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14260 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14261 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14262 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14263 get_stack_clash_protection_probe_interval,
14264 get_stack_clash_protection_guard_size,
14265 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14266 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14267 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14268 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14269 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14270 gen_frame_mem_offset, rs6000_savres_routine_name,
14271 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14272 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14273 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14274 rs6000_global_entry_point_prologue_needed_p,
14275 rs6000_get_separate_components, rs6000_components_for_bb,
14276 rs6000_disqualify_components, rs6000_emit_prologue_components,
14277 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14278 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14279 rs6000_output_savres_externs, rs6000_output_function_prologue,
14280 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14281 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14282 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14283 rs6000_output_function_epilogue, gen_add3_const,
14284 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14285 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14286 to rs6000-logue.c.
14287 (machine_function): Moved to rs6000.h.
14288 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14289 rs6000-internal.h.
14290 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14291 savres_routine_syms, savres_routine_name, morestack_ref,
14292 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14293 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14294 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14295 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14296 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14297 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14298 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14299 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14300 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14301 get_stack_clash_protection_probe_interval,
14302 get_stack_clash_protection_guard_size,
14303 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14304 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14305 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14306 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14307 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14308 gen_frame_mem_offset, rs6000_savres_routine_name,
14309 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14310 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14311 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14312 rs6000_global_entry_point_prologue_needed_p,
14313 rs6000_get_separate_components, rs6000_components_for_bb,
14314 rs6000_disqualify_components, rs6000_emit_prologue_components,
14315 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14316 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14317 rs6000_output_savres_externs, rs6000_output_function_prologue,
14318 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14319 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14320 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14321 rs6000_output_function_epilogue, gen_add3_const,
14322 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14323 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14324 to here from rs6000.c.
14325 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14326 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14327 quad_address_offset_p) Moved to here from rs6000.c.
14328 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14329 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14330 collector.
14331
14332 2019-06-25 Martin Liska <mliska@suse.cz>
14333
14334 * hash-table.c (hashtab_chk_error): Move here from ...
14335 * hash-table.h (hashtab_chk_error): ... here.
14336
14337 2019-06-25 Martin Liska <mliska@suse.cz>
14338
14339 PR tree-optimization/90978
14340 * df-scan.c (df_update_entry_block_defs): Remove dead else
14341 branch.
14342 (df_update_exit_block_uses): Likewise.
14343
14344 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14345 Andrew Stubbs <ams@codesourcery.com>
14346
14347 * config.gcc (thread_file): Set to gcn for AMD GCN.
14348 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14349 (TARGET_EMUTLS_VAR_INIT): New hook.
14350
14351 2019-06-25 Martin Jambor <mjambor@suse.cz>
14352
14353 PR ipa/90939
14354 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14355
14356 2019-06-25 Richard Biener <rguenther@suse.de>
14357
14358 PR tree-optimization/90930
14359 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14360 into parallel form in the last pass instance.
14361
14362 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14363
14364 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14365 (arc_legitimize_pic_address): Simplify and cleanup the function.
14366 (SYMBOLIC_CONST): Remove.
14367 (prepare_pic_move): Likewise.
14368 (prepare_move_operands): Handle complex mov cases here.
14369 (arc_legitimize_address_0): Remove call to
14370 arc_legitimize_pic_address.
14371 (arc_legitimize_address): Remove call to
14372 arc_legitimize_tls_address.
14373 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14374 (movhi_insn): Likewise.
14375
14376 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14377
14378 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14379 PTRDIFF_TYPE.
14380 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14381 format of "__intN" types for UINTMAX_TYPE.
14382 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14383 format of "__intN" types for SIZETYPE.
14384 * tree.c (build_common_tree_nodes): Accept "__intN__"
14385 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14386 * doc/invoke.texi: Document that __intN__ disables pedantic
14387 warnings.
14388
14389 2019-06-25 Jan Hubicka <jh@suse.cz>
14390
14391 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14392 base2_alias_set is non-zero before doing TBAA based disambiguation.
14393
14394 2019-06-25 Martin Liska <mliska@suse.cz>
14395
14396 PR tree-optimization/90973
14397 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14398 of prologue and epilogue.
14399
14400 2019-06-24 Jan Hubicka <jh@suse.cz>
14401
14402 * ipa-utils.h (type_with_linkage_p): Verify that type is
14403 CXX_ODR_P.
14404 (odr_type_p): Remove extra return.
14405 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14406 hash STRING_FLAG only for arrays and integers.
14407 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14408 Update analogously.
14409 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14410 Likewise.
14411 * print-tree.c (print_node): Print cxx-odr-p
14412 and string-flag.
14413 * tree.c (need_assembler_name_p): Also check that type
14414 is CXX_ODR_TYPE_P
14415 (verify_type_variant): Update verification of SRING_FLAG;
14416 also check CXX_ODR_P.
14417 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14418 (TYPE_STRING_FLAG): Use it.
14419 (TYPE_CXX_ODR_P): New macro.
14420 * dwarf2out.c (gen_array_type_die): First check that type
14421 is an array and then test string flag.
14422
14423 2019-06-24 Richard Biener <rguenther@suse.de>
14424
14425 PR tree-optimization/90972
14426 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14427 in common code, dealing with STRING_CST properly.
14428
14429 2019-06-24 Richard Biener <rguenther@suse.de>
14430
14431 PR tree-optimization/90930
14432 PR tree-optimization/90316
14433 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14434 decrement of limit.
14435
14436 2019-06-24 Martin Sebor <msebor@redhat.com>
14437
14438 * tree-pretty-print.h: Remove unnecessary punctuation characters
14439 from a diagnostic.
14440 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14441
14442 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14443
14444 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14445 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14446 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14447
14448 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14449
14450 * config/rs6000/darwin.h: Handle GCC target pragma.
14451
14452 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14453
14454 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14455
14456 2019-06-22 Jeff Law <law@redhat.com>
14457
14458 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14459
14460 2019-06-22 Jan Hubicka <jh@suse.cz>
14461
14462 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14463 give up on bitfields; continue searching for different refs
14464 appearing later.
14465
14466 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14467
14468 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14469 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14470 containing the offset as possible simd lane access. Look through
14471 widening conversion. Move the
14472 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14473
14474 2019-06-21 Richard Biener <rguenther@suse.de>
14475
14476 PR tree-optimization/90930
14477 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14478 flag on new stmts to avoid re-processing them.
14479
14480 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14481
14482 PR c++/90875 - added -Wswitch-outside-range option
14483 * doc/invoke.texi (Wswitch-outside-range): Document.
14484
14485 2019-06-21 Jeff Law <law@redhat.com>
14486
14487 PR tree-optimization/90949
14488 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14489 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14490
14491 2019-06-21 Richard Biener <rguenther@suse.de>
14492
14493 PR debug/90914
14494 * dwarf2out.c (prune_unused_types_walk): Always consider
14495 function-local extern declarations as used.
14496
14497 2019-06-21 Richard Biener <rguenther@suse.de>
14498
14499 PR tree-optimization/90913
14500 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14501 the scalar variant of if-conversion versioning.
14502
14503 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14504
14505 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14506 create another "omp scan inscan exclusive" array if
14507 !ctx->scan_inclusive.
14508 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14509 (lower_omp_scan): Likewise.
14510 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14511 2-bit bitfield for simd_lane_access_p member.
14512 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14513 aux == (void *)-4 as simd lane access.
14514 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14515 comment with permutations to show the canonical permutation order.
14516 (vectorizable_scan_store): Handle exclusive scan.
14517 (vectorizable_store): Call vectorizable_scan_store even for
14518 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14519
14520 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14521 "omp simd array" arrays with one byte elements.
14522
14523 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14524
14525 * config/alpha/alpha.md (@unaligned_store<mode>):
14526 Rename from unaligned_store<mode>.
14527 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14528 * config/alpha/sync.md (@load_locked_<mode>): Rename
14529 from load_locked_<mode>.
14530 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14531 (@atomic_compare_and_swap<mode>_1): Rename
14532 from atomic_compare_and_swap<mode>_1.
14533 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14534 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14535 Use gen_reload_in_aligned and gen_unaligned_store.
14536 (emit_load_locked): Remove.
14537 (emit_store_conditional): Ditto.
14538 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14539 (alpha_split_compare_and_swap): Ditto.
14540 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14541 (alpha_split_compare_and_swap_12): Use gen_load_locked
14542 and gen_store_conditional.
14543 (alpha_split_atomic_exchange): Ditto.
14544 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14545 (alpha_split_atomic_exchange_12): Use gen_load_locked
14546 and gen_store_conditional.
14547
14548 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14549
14550 * config/aarch64/aarch64-errata.h: New file.
14551 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14552 (CA53_ERR_843419_SPEC): Delete.
14553 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14554 * config/aarch64/aarch64-linux.h: Likewise.
14555 * config/aarch64/aarch64-netbsd.h: Likewise.
14556 * config/aarch64/aarch64-freebsd.h: Likewise.
14557
14558 2019-06-20 Marek Polacek <polacek@redhat.com>
14559
14560 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14561
14562 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14563
14564 * config/rs6000/rs6000.md (isa attribute): Add support for
14565 for a future processor.
14566
14567 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14568
14569 PR target/54855
14570 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14571 standard scalar operation pattern for V2DF.
14572 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14573 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14574 (*ieee_<ieee_maxmin><mode>3): Likewise.
14575 (vec_setv2df_0): Likewise.
14576
14577 2019-06-20 Jan Hubicka <jh@suse.cz>
14578
14579 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14580 parameter; it has no use in gimple memory model.
14581 (indirect_ref_may_alias_decl_p): Update.
14582
14583 2019-06-20 Martin Liska <mliska@suse.cz>
14584
14585 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14586 to 10.
14587
14588 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14589
14590 * tree-vect-stmts.c (enum scan_store_kind): New type.
14591 (scan_store_can_perm_p): Change last argument from int * to
14592 vec<enum scan_store_kind> *, record precisely which permutations
14593 need whole vector left shift or that plus VEC_COND_EXPR.
14594 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14595 and additional VEC_COND_EXPR only for those iterations that need it.
14596
14597 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14598
14599 * config.gcc: Fix ARM --with-fpu checking and error message.
14600
14601 2019-06-19 Marek Polacek <polacek@redhat.com>
14602
14603 PR c++/60364 - noreturn after first decl not diagnosed.
14604 * attribs.c (get_attribute_namespace): No longer static.
14605 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14606 attributes.
14607 (attr_noreturn_exclusions): Make it extern.
14608 * attribs.h (get_attribute_namespace): Declare.
14609 * tree-inline.c (function_attribute_inlinable_p): Use
14610 get_attribute_name.
14611
14612 2019-06-19 Martin Sebor <msebor@redhat.com>
14613
14614 PR tree-optimization/90626
14615 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14616
14617 PR tree-optimization/90626
14618 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14619 (handle_builtin_string_cmp): Call it.
14620
14621 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14622
14623 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14624 and DARWIN_NOPIE_SPEC.
14625 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14626 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14627 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14628 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14629 (DARWIN_EXPORT_DYNAMIC): Delete.
14630 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14631 and pie options processing to darwin.h.
14632 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14633
14634 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14635
14636 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14637 in computing the number of options to be moved.
14638
14639 2019-06-19 Maya Rashish <coypu@sdf.org>
14640
14641 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14642 (CLEAR_INSN_CACHE) Use it.
14643
14644 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14645
14646 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14647
14648 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14649
14650 PR middle-end/84521
14651 * builtins.c (expand_builtin_setjmp_setup): Save
14652 hard_frame_pointer_rtx.
14653 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14654 restore fp.
14655 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14656 non-local goto.
14657 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14658 elimination code.
14659 (remove_reg_equal_offset_note): Remove unused function.
14660 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14661 code.
14662 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14663 (arc_builtin_setjmp_frame_value): Remove function.
14664 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14665 (avr_builtin_setjmp_frame_value): Remove function.
14666 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14667 (ix86_builtin_setjmp_frame_value): Remove function.
14668 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14669 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14670 (sparc_builtin_setjmp_frame_value): Remove function.
14671 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14672 (vax_builtin_setjmp_frame_value): Remove function.
14673 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14674 pointer if has_nonlocal_label.
14675
14676 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14677
14678 * doc/md.texi: Document vec_shl_<mode> pattern.
14679 * optabs.def (vec_shl_optab): New optab.
14680 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14681 argument, if == vec_shl_optab, check for left whole vector shift
14682 pattern rather than right shift.
14683 (expand_vec_perm_const): Add vec_shl_optab support.
14684 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14685 in the comment.
14686 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14687 can be handled by vec_shl_optab.
14688 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14689 (check_scan_store): Use it.
14690 (vectorizable_scan_store): If target can't do normal permutations,
14691 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14692 after it.
14693 * config/i386/sse.md (vec_shl_<mode>): New expander.
14694
14695 * omp-low.c (lower_rec_input_clauses): Handle references properly
14696 in inscan clauses.
14697 (lower_omp_scan): Likewise.
14698
14699 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14700
14701 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14702 mem_mode is BLKmode.
14703
14704 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14705
14706 PR target/90922
14707 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14708 pointer adjustment for the case of no callee-saved registers and
14709 stack frame bigger than 128 bytes.
14710
14711 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14712
14713 PR middle-end/90862
14714 * omp-low.c (check_omp_nesting_restrictions): Handle
14715 GF_OMP_TARGET_KIND_OACC_DECLARE.
14716
14717 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14718
14719 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14720 (@add<mode>3_carry): Rename from add<mode>3_carry.
14721 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14722 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14723 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14724 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14725 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14726 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14727 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14728 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14729 (cmpstrnsi): Use gen_cmp_1.
14730 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14731 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14732 (@umonitor_<mode>): Rename from umonitor_<mode>.
14733 * config/i386/i386-expand.c (ix86_expand_copysign):
14734 Use gen_copysign3_const and gen_copysign3_var.
14735 (ix86_expand_xorsign): Use gen_xorsign3_1.
14736 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14737 gen_sub3_carry_ccgz and gen_cmp1.
14738 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14739 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14740 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14741 (ix86_split_lshr): Ditto.
14742 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14743
14744 2019-06-18 Jason Merrill <jason@redhat.com>
14745
14746 * tree.c (build_constructor): Add MEM_STAT_DECL.
14747
14748 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14749
14750 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14751 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14752 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14753 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14754 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14755 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14756 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14757 Use CC_NZC instead of CC.
14758 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14759 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14760 (aarch64_print_operand): Handle E_CC_NZCmode.
14761 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14762 of gen_set_clobber_cc.
14763
14764 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14765
14766 * config/aarch64/aarch64-sve.md: Tabify file.
14767
14768 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14769
14770 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14771 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14772 * config/aarch64/aarch64-sve.md: Use it.
14773
14774 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14775
14776 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14777 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14778 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14779 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14780 (aarch64_expand_sve_vec_cmp_int): Use it.
14781 (aarch64_expand_sve_vec_cmp_float): Likewise.
14782 * config/aarch64/aarch64-sve.md: Likewise throughout.
14783
14784 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14785 Kugan Vivekanandarajah <kuganv@linaro.org>
14786
14787 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14788 (*cond_<optab><mode>_z): Fold into...
14789 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14790 operand 4 can be tied to operand 0 (either inherently or via RA).
14791
14792 2019-06-18 Richard Biener <rguenther@suse.de>
14793
14794 PR debug/90900
14795 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14796 as if optimized away.
14797
14798 2019-06-18 Tom de Vries <tdevries@suse.de>
14799
14800 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14801 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14802 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14803 Rename to ...
14804 (define_insn "@set_softstack_<mode>"): ... this.
14805 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14806 (define_insn "@omp_simt_enter_<mode>"): ... this.
14807 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14808 (define_insn "@omp_simt_exit_<mode>"): ... this.
14809
14810 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14811
14812 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14813 vf parameter. Restore the previous iv step of nscalars_step,
14814 but give it iv_type rather than compare_type. Tweak code order
14815 to match the comments.
14816 (vect_set_loop_condition_masked): Update accordingly.
14817 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14818 for iv_precision. Tweak comment formatting.
14819
14820 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14821
14822 * config/darwin.c: Strip trailing whitespace.
14823
14824 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14825
14826 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14827 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14828
14829 2019-06-18 Martin Jambor <mjambor@suse.cz>
14830
14831 PR ipa/90889
14832 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14833 caller does not have flag_ipa_cp set.
14834
14835 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14836
14837 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14838 from "*fold_left_plus_<mode>", updated operands order.
14839 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14840 * internal-fn.c (mask_fold_left_direct): New define.
14841 (expand_mask_fold_left_optab_fn): Likewise.
14842 (direct_mask_fold_left_optab_supported_p): Likewise.
14843 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14844 * optabs.def (mask_fold_left_plus_optab): New optab.
14845 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14846 masked internal_fn for a reduction ifn.
14847 (vectorize_fold_left_reduction): Add support for masking reductions.
14848
14849 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14850
14851 PR middle-end/80791
14852 * target.def (predict_doloop_p): New hook.
14853 * targhooks.h (default_predict_doloop_p): New declaration.
14854 * targhooks.c (default_predict_doloop_p): New function.
14855 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14856 * doc/tm.texi: Regenerate.
14857 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14858 (TARGET_PREDICT_DOLOOP_P): New macro.
14859 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14860
14861 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14862
14863 * omp-low.c (struct omp_context): Add scan_inclusive field.
14864 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14865 if inclusive scan.
14866 (struct omplow_simd_context): Add lastlane member.
14867 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14868 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14869 1 or 2 argument.
14870 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14871 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14872 (lower_omp_scan): New function.
14873 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14874 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14875 check 3rd argument if present rather than 2nd.
14876 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14877 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14878 2-bit bitfield.
14879 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14880 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14881 than 2nd.
14882 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14883 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14884 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14885 init.
14886 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14887 IFN_GOMP_SIMD_LANE argument.
14888 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14889 encoded ->aux value.
14890 * tree-vect-stmts.c: Include attribs.h.
14891 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14892 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14893 functions.
14894 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14895 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14896
14897 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14898
14899 PR target/62055
14900 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14901 (*nabs<mode>2_1): Ditto.
14902 (nabs sse-reg splitter): New splitter.
14903 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14904
14905 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14906
14907 PR bootstrap/90873.
14908 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14909 TMR index check.
14910
14911 2019-06-17 Tom de Vries <tdevries@suse.de>
14912
14913 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14914 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14915 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14916 ...
14917 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14918 match_operand 0.
14919 (define_insn "omp_simt_enter_insn"): Rename to ...
14920 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14921 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14922 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14923 gen_omp_simt_enter_si.
14924 (define_expand "omp_simt_exit"): New.
14925 (define_insn "omp_simt_exit"): Rename to ...
14926 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14927 match_operand 0.
14928
14929 2019-06-17 Matthew Green <mrg@eterna.com.au>
14930 Maya Rashish <coypu@sdf.org>
14931
14932 * config.gcc (aarch64*-*-netbsd*): New target.
14933 * config/aarch64/aarch64-netbsd.h: New file.
14934 * config/aarch64/t-aarch64-netbsd: Likewise.
14935
14936 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14937
14938 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14939 the access path from base to first VIEW_CONVERT_EXPR or
14940 BIT_FIELD_REF.
14941
14942 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14943
14944 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14945 access path on BIT_FIELD_REFs.
14946
14947 2019-06-17 Martin Liska <mliska@suse.cz>
14948
14949 PR ipa/90874
14950 * ipa-utils.h (odr_type_p): Remove dead code.
14951
14952 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14953
14954 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14955 alternative Solaris 11.4 format.
14956 * configure: Regenerate.
14957
14958 2019-06-17 Tom de Vries <tdevries@suse.de>
14959
14960 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14961 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
14962 match_operand 0.
14963 (define_insn "call_value_insn"): Rename to ...
14964 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
14965 match_operand 0.
14966 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
14967 DI.
14968
14969 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
14970
14971 PR middle-end/64242
14972 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
14973 frame clobbers and schedule block.
14974 (builtin_longjmp): Likewise.
14975
14976 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14977
14978 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
14979 describe how to perform MSPABI compliant 64-bit shift.
14980 * config/msp430/msp430.md (ashldi3): New define_expand.
14981 (ashrdi3): New define_expand.
14982 (lshrdi3): New define_expand.
14983
14984 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14985
14986 * doc/sourcebuild.texi: Document new effective target keyword
14987 longlong64.
14988
14989 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
14990
14991 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
14992 indirect_refs_may_alias_p): Revert accidental commits.
14993
14994 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
14995 at the end of structures.
14996
14997 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
14998
14999 * config/darwin.c (machopic_indirect_call_target): Use renamed
15000 darwin_picsymbol_stubs to decide on output.
15001 (darwin_override_options): Handle darwin_picsymbol_stubs.
15002 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15003 (LD64_VERSION): Revise default.
15004 * config/darwin.opt: (mpic-symbol-stubs): New option.
15005 (darwin_picsymbol_stubs): New variable.
15006 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15007 rename to TARGET_MACHO_PICSYM_STUBS.
15008 * config/i386/i386.c (output_pic_addr_const): Likewise.
15009 * config/i386/i386.h Likewise.
15010 * config/rs6000/darwin.h: Likewise.
15011 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15012 darwin_picsymbol_stubs.
15013
15014 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15015
15016 * config/darwin.opt (prebind, noprebind, seglinkedit,
15017 noseglinkedit): Add RejectNegative.
15018
15019 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15020
15021 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15022 in my previous patch.
15023
15024 2019-06-16 Tom de Vries <tdevries@suse.de>
15025
15026 PR tree-optimization/89376
15027 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15028
15029 2019-06-15 Maya Rashish <coypu@sdf.org>
15030
15031 * doc/invoke.texi (Spec Files): Update location of the
15032 Fortran spec file.
15033
15034 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15035
15036 * doc/extend.texi (Common Function Attributes): Clarify
15037 no_sanitize. Fix grammar.
15038
15039 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15040
15041 * tree-ssa-alias.c (alias_stats): Add
15042 nonoverlapping_component_refs_p_may_alias,
15043 nonoverlapping_component_refs_p_no_alias,
15044 nonoverlapping_component_refs_of_decl_p_may_alias,
15045 nonoverlapping_component_refs_of_decl_p_no_alias.
15046 (dump_alias_stats): Dump them.
15047 (nonoverlapping_component_refs_of_decl_p): Add stats.
15048 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15049 ARRAY_REF.
15050
15051 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15052
15053 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15054 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15055 only.
15056 (*anddi3_doubleword): Split before reload. Merge with
15057 anddi->zext pre-reload splitter.
15058 (*andndi3_doubleword): Split before reload.
15059 (*<code>di3_doubleword): Ditto.
15060 (*one_cmpldi2_doubleword): Ditto.
15061
15062 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15063
15064 PR middle-end/90779
15065 * gimplify.c: Include omp-offload.h and context.h.
15066 (gimplify_bind_expr): Add "omp declare target" attributes
15067 to static block scope variables inside of target region or target
15068 functions.
15069
15070 2019-06-15 Tom de Vries <tdevries@suse.de>
15071
15072 PR tree-optimization/90009
15073 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15074 Return NULL if bb contains IFN_UNIQUE.
15075
15076 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15077
15078 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15079 (un): New define_mode_attr.
15080 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15081 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15082 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15083 merge into ...
15084 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15085
15086 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15087
15088 * config/darwin.opt: Add RejectNegative where needed, reorder
15089 and add minimal functional descriptions.
15090
15091 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15092
15093 PR rtl-optimization/90765
15094 * calls.c (update_stack_alignment_for_call): New function.
15095 (expand_call): Call update_stack_alignment_for_call when
15096 outgoing parameter is passed in the stack.
15097 (emit_library_call_value_1): Likewise.
15098 * function.c (locate_and_pad_parm): Don't update
15099 stack_alignment_needed and preferred_stack_boundary.
15100
15101 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15102
15103 PR target/90877
15104 * config/i386/i386-features.c
15105 (dimode_scalar_chain::compute_convert_gain): Replace
15106 mmxsse_to_integer with sse_to_integer.
15107 * config/i386/i386.c (ix86_register_move_cost): Verify that
15108 moves between MMX and non-MMX units require secondary memory.
15109 Correct costs of moves between SSE and integer units.
15110 * config/i386/i386.h (processor_costs): Rename cost of moving
15111 SSE register to integer to sse_to_integer. Rename cost of
15112
15113 2019-06-14 Matt Thomas <matt@3am-software.com>
15114 Matthew Green <mrg@eterna.com.au>
15115 Nick Hudson <skrll@netbsd.org>
15116 Maya Rashish <coypu@sdf.org>
15117 Richard Earnshaw <rearnsha@arm.com>
15118
15119 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15120 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15121 * config/arm/netbsd-eabi.h: New file.
15122 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15123 redefining.
15124 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15125 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15126 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15127 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15128
15129 2019-06-14 Richard Biener <rguenther@suse.de>
15130
15131 * tree-loop-distribution.c (classify_partition): Return
15132 whether a reduction appeared in all partitions and do not
15133 stop builtin detection because of this.
15134 (distribute_loop): Sort a non-builtin partition last if
15135 there's a reduction in all partitions and make sure the
15136 partition prevailing as last is not a builtin.
15137
15138 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15139
15140 PR ipa/90401
15141 * ipa-prop.c (add_to_agg_contents_list): New function.
15142 (clobber_by_agg_contents_list_p): Likewise.
15143 (extract_mem_content): Likewise.
15144 (get_place_in_agg_contents_list): Delete.
15145 (determine_known_aggregate_parts): Renamed from
15146 determine_locally_known_aggregate_parts. New parameter
15147 aa_walk_budget_p.
15148
15149 2019-06-13 Martin Sebor <msebor@redhat.com>
15150
15151 PR tree-optimization/90662
15152 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15153 to the same type.
15154
15155 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15156
15157 PR bootstrap/90873
15158 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15159 dbase is not TARGET_MEM_REF.
15160
15161 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15162
15163 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15164 Update all uses.
15165 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15166 Do not generate DImode extends for 32bit targets.
15167 (and->zext post-reload splitter): Use gen_extend_insn
15168 instead of indirect functions.
15169 (anddi->zext pre-reload splitter): New.
15170 (*zext<mode>_doubleword_and): Remove.
15171 (*zext<mode>_doubleword): Ditto.
15172 (*zextsi_doubleword): Dittto.
15173
15174 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15175
15176 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15177 Use gen_sub3_insn instead of indirect function.
15178 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15179 indirect function.
15180 (ix86_adjust_counter): Ditto.
15181
15182 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15183 Lijia He <helijia@linux.ibm.com>
15184
15185 PR tree-optimization/77820
15186 * tree-ssa-threadedge.c
15187 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15188 function.
15189 (thread_across_edge): Add call to
15190 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15191
15192 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15193
15194 * config/darwin-driver.c (validate_macosx_version_min): New.
15195 (darwin_default_min_version): Cleanup and validate supplied version.
15196 (darwin_driver_init): Likewise and push cleaned version into opts.
15197
15198 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15199
15200 PR tree-optimization/90869
15201 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15202 converts in MEM_REF referencing decl rather than view converts
15203 from decl type to MEM_REF type.
15204
15205 2019-06-13 Richard Biener <rguenther@suse.de>
15206
15207 PR tree-optimization/90856
15208 * tree-sra.c (build_ref_for_model): Only use
15209 build_reconstructed_reference when address-spaces are the same.
15210
15211 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15212
15213 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15214 wrap ei variable name in the declaration in ()s.
15215 (nvptx_single): Actually use mode_label variable. Formatting fix.
15216
15217 2019-06-13 Richard Biener <rguenther@suse.de>
15218
15219 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15220 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15221 also return the condition stmt.
15222 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15223 loop we can version and version that, reusing the loop version
15224 created by if-conversion instead of versioning again.
15225
15226 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15227
15228 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15229 may_contain_p.
15230 * tree-vrp (value_range_base::may_contain_p): Call into
15231 value_inside_range.
15232 (value_inside_range): Make private inside value_range_base class.
15233 Take min/max from *this.
15234 (range_includes_p): Remove.
15235 * tree-vrp.h (value_range_base): Add value_inside_range.
15236 (range_includes_p): Remove.
15237 (range_includes_zero_p): Call may_contain_p.
15238 * vr-values.c (compare_range_with_value): Same.
15239
15240 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15241
15242 * doc/extend.texi (ARC Function Attributes): Update info.
15243
15244 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15245
15246 PR tree-optimization/89713
15247 * doc/invoke.texi (-ffinite-loops): Document new option.
15248 * common.opt (-ffinite-loops): New option.
15249 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15250 IFN_GOACC_LOOP calls as necessary.
15251 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15252 is finite.
15253 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15254 IFN_GOACC_LOOP call is not used.
15255 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15256
15257 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15258
15259 PR target/88838
15260 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15261 compare_type is not with Pmode size, we will create an IV with
15262 Pmode size with truncated use (i.e. converted to the correct type).
15263 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15264 (vect_iv_limit_for_full_masking): New. Factored out of
15265 vect_set_loop_condition_masked.
15266 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15267 (vect_iv_limit_for_full_masking): Declare.
15268
15269 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15270
15271 PR target/88834
15272 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15273 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15274 (get_alias_ptr_type_for_ptr_address): Likewise.
15275 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15276 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15277 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15278 allow_reg_index_p.
15279
15280 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15281
15282 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15283
15284 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15285
15286 * common/config/pru/pru-common.c: New file.
15287 * config.gcc: Add PRU target.
15288 * config/pru/alu-zext.md: New file.
15289 * config/pru/constraints.md: New file.
15290 * config/pru/predicates.md: New file.
15291 * config/pru/pru-opts.h: New file.
15292 * config/pru/pru-passes.c: New file.
15293 * config/pru/pru-pragma.c: New file.
15294 * config/pru/pru-protos.h: New file.
15295 * config/pru/pru.c: New file.
15296 * config/pru/pru.h: New file.
15297 * config/pru/pru.md: New file.
15298 * config/pru/pru.opt: New file.
15299 * config/pru/t-pru: New file.
15300 * doc/extend.texi: Document PRU pragmas.
15301 * doc/invoke.texi: Document PRU-specific options.
15302 * doc/md.texi: Document PRU asm constraints.
15303
15304 2019-06-12 Martin Sebor <msebor@redhat.com>
15305
15306 PR middle-end/90676
15307 * tree-pretty-print.c (dump_mem_ref): New function. Include
15308 MEM_REF type in output when different size than operand.
15309 (dump_generic_node): Move code to dump_mem_ref and call it.
15310
15311 2019-06-12 Martin Sebor <msebor@redhat.com>
15312
15313 PR tree-optimization/90662
15314 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15315 to arrays.
15316
15317 2019-06-12 Tom de Vries <tdevries@suse.de>
15318
15319 PR tree-optimization/90009
15320 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15321
15322 2019-06-12 Martin Liska <mliska@suse.cz>
15323
15324 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15325 the created map.
15326 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15327 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15328 Do not sanitize created maps.
15329
15330 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15331
15332 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15333 value_range::singleton_p.
15334 * tree-vrp.c (value_range_constant_singleton): Remove.
15335 * tree-vrp.h (value_range_constant_singleton): Remove.
15336 * vr-values.c (vr_values::singleton): Use
15337 value_range::singleton_p.
15338
15339 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15340
15341 PR target/90811
15342 * cfgexpand.c (align_local_variable): Add really_expand argument,
15343 don't SET_DECL_ALIGN if it is false.
15344 (add_stack_var): Add really_expand argument, pass it through to
15345 align_local_variable.
15346 (expand_one_stack_var_1): Pass true as really_expand to
15347 align_local_variable.
15348 (expand_one_ssa_partition): Pass true as really_expand to
15349 add_stack_var.
15350 (expand_one_var): Pass really_expand through to add_stack_var.
15351
15352 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15353
15354 * config/arm/iterators.md (VABAL): New int iterator.
15355 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15356 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15357 UNSPEC_VABAL_U values.
15358
15359 2019-06-12 Martin Liska <mliska@suse.cz>
15360
15361 * value-prof.c (stream_out_histogram_value): Only first value
15362 can't be negative.
15363
15364 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15365
15366 PR c/90760
15367 * symtab.c (symtab_node::set_section): Allow being called on aliases
15368 as long as they aren't analyzed yet.
15369
15370 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15371
15372 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15373 to `mips_set_text_contents_type' to indicate whether a
15374 non-debug insn follows.
15375
15376 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15377
15378 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15379 enabling -mpcrel by default.
15380 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15381 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15382 that the test against -mcpu=future is done first. Then test if
15383 -mprefixed-addr is on for -mpcrel.
15384 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15385
15386 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15387
15388 PR target/90811
15389 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15390 instead of and.u%d.
15391
15392 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15393
15394 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15395
15396 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15397
15398 PR c++/90449 - add -Winaccessible-base option.
15399 * doc/invoke.texi (Winaccessible-base): Document.
15400
15401 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15402
15403 PR tree-optimization/62041
15404 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15405
15406 2019-06-11 Jason Merrill <jason@redhat.com>
15407
15408 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15409 * tree.c (get_tree_code_name): Likewise.
15410 * print-tree.c (print_node): Only briefly print a node with an
15411 invalid code.
15412
15413 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15414
15415 PR bootstrap/90819
15416 * trans-mem.c (tm_memopt_compute_available): Add assertion
15417 that blocks is not empty. Formatting fix.
15418
15419 2019-06-11 Martin Liska <mliska@suse.cz>
15420
15421 PR c++/87847
15422 * hash-table.h: Extend create_gcc, add one parameter
15423 that is passed into hash_table::hash_table.
15424
15425 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15426
15427 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15428 New prototype.
15429 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15430 Emit clobber also for non-sse operations.
15431 (ix86_split_fp_absneg_operator): New function.
15432 * config/i386/i386.md (SSEMODEF): New mode iterator.
15433 (ssevecmodef): New mode attribute.
15434 (<code>tf2): Use absneg code iterator.
15435 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15436 Add three-operand AVX alternatives.
15437 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15438 Use absneg code iterator and X87MODEF mode iterator.
15439 (absneg fp_reg non-sse splitter): Call absneg code iterator
15440 and X87MODEF mode iterator.
15441 (absneg general_reg non-sse splitter): Use absneg code iterator
15442 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15443 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15444 code iterator. Add three-operand AVX alternative.
15445 (absneg sse_reg splitter): Use absneg code iterator
15446 and SSEMODEF mode iterator. Handle AVX operands.
15447 (absneg fp_reg splitter): Use absneg code iterator
15448 and MODEF mode iterator.
15449 (absneg general_reg splitter): Merge splitters using MODEF mode
15450 iterator. Use absneg code iterator. Call
15451 ix86_split_fp_absneg_operator.
15452 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15453 Do not enable for non-sse modes before reload.
15454 (CSGNMODE): Remove.
15455 (CSGNVMODE): Ditto.
15456 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15457 ssevecmodef mode attribute instaed of CSGNVMODE.
15458 (copysign<mode>3_const): Ditto.
15459 (copysign<mode>3_var): Ditto.
15460 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15461 Use absneg code iterator. Simplify code using std::swap.
15462 * config/i386/predicates.md (absneg_operator): Remove.
15463
15464 2019-06-10 Martin Sebor <msebor@redhat.com>
15465
15466 * gimple-fold.c (get_range_strlen): Update comment that didn't
15467 make it into r267503 or related commits.
15468
15469 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15470
15471 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15472 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15473
15474 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15475
15476 * tree.def (OMP_SCAN): New tree code.
15477 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15478 OMP_CLAUSE_EXCLUSIVE.
15479 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15480 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15481 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15482 OMP_CLAUSE_{IN,EX}CLUSIVE.
15483 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15484 * tree-nested.c (convert_nonlocal_reference_stmt,
15485 convert_local_reference_stmt, convert_gimple_call): Handle
15486 GIMPLE_OMP_SCAN.
15487 * tree-pretty-print.c (dump_omp_clause): Handle
15488 OMP_CLAUSE_{IN,EX}CLUSIVE.
15489 (dump_generic_node): Handle OMP_SCAN.
15490 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15491 * gimple.h (gomp_scan): New type.
15492 (is_a_helper <gomp_scan *>::test,
15493 is_a_helper <const gomp_scan *>::test): New templates.
15494 (gimple_build_omp_scan): Declare.
15495 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15496 gimple_omp_scan_set_clauses): New inline functions.
15497 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15498 * gimple.c (gimple_build_omp_scan): New function.
15499 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15500 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15501 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15502 GIMPLE_OMP_TASKGROUP.
15503 (dump_gimple_omp_scan): New function.
15504 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15505 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15506 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15507 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15508 (is_gimple_stmt): Handle OMP_SCAN.
15509 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15510 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15511 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15512 mentioned in nested #pragma omp scan. Handle
15513 OMP_CLAUSE_{IN,EX}CLUSIVE.
15514 (gimplify_expr): Handle OMP_SCAN.
15515 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15516 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15517 simd constructs.
15518 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15519 GIMPLE_OMP_SCAN.
15520
15521 2019-06-10 Martin Liska <mliska@suse.cz>
15522
15523 * ipa-cp.c (ignore_edge_p): New function.
15524 (build_toporder_info): Use it.
15525 * ipa-inline.c (ignore_edge_p): New function.
15526 (inline_small_functions): Use it.
15527 * ipa-pure-const.c (ignore_edge_for_nothrow):
15528 Verify opt_for_fn for caller and callee.
15529 (ignore_edge_for_pure_const): Likewise.
15530 * ipa-reference.c (ignore_edge_p): Extend to check
15531 for opt_for_fn.
15532 * ipa-utils.c (searchc): Refactor.
15533 * ipa-utils.h: Fix coding style.
15534
15535 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15536
15537 * config/arc/arc.c (arc_rtx_costs): Update costs.
15538
15539 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15540
15541 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15542 (arc_split_ior): Likewise.
15543 (arc_check_mov_const): Likewise.
15544 (arc_split_mov_const): Likewise.
15545 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15546 (arc_rtx_costs): Replace check Crr with Cax constraint.
15547 (prepare_move_operands): Cleanup, remove unused code.
15548 (arc_split_ior): New function.
15549 (arc_check_ior_const): Likewise.
15550 (arc_split_mov_const): Likewise.
15551 (arc_check_mov_const): Likewise.
15552 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15553 in define_insn_and_split pattern.
15554 (iorsi3): Likewise.
15555 (mulsi3_v2): Add new matching variant.
15556 (andsi3_i): Cleanup pattern.
15557 (rotrsi3_cnt1): Update pattern.
15558 (rotrsi3_cnt8): New pattern.
15559 (ashlsi2_cnt8): Likewise.
15560 (ashlsi2_cnt16): Likewise.
15561 * config/arc/constraints.md (C0p): Update constraint.
15562 (Crr): Remove it.
15563 (C0x): New pattern.
15564 (Cax): New pattern.
15565
15566 2019-06-10 Martin Liska <mliska@suse.cz>
15567
15568 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15569 Update coding style.
15570 (sem_item_optimizer::dump_cong_classes):
15571 Print how many items are in a non-singular class. Improve
15572 coding style.
15573
15574 2019-06-10 Martin Liska <mliska@suse.cz>
15575
15576 * value-prof.c (dump_histogram_value): Change dump format.
15577 (gimple_mod_subtract_transform): Remove legacy comment.
15578
15579 2019-06-10 Martin Liska <mliska@suse.cz>
15580
15581 * value-prof.c (dump_histogram_value): Print histogram values
15582 only if present.
15583
15584 2019-06-10 Martin Liska <mliska@suse.cz>
15585
15586 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15587 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15588 * ipa-profile.c (ipa_profile_generate_summary):
15589 Use get_most_common_single_value.
15590 * tree-profile.c (gimple_init_gcov_profiler):
15591 Instrument with __gcov_one_value_profiler_v2
15592 and __gcov_indirect_call_profiler_v4.
15593 * value-prof.c (dump_histogram_value):
15594 Print all values for HIST_TYPE_SINGLE_VALUE.
15595 (stream_out_histogram_value): Update assert for
15596 N values.
15597 (stream_in_histogram_value): Set number of
15598 counters for HIST_TYPE_SINGLE_VALUE.
15599 (get_most_common_single_value): New.
15600 (gimple_divmod_fixed_value_transform):
15601 Use get_most_common_single_value.
15602 (gimple_ic_transform): Likewise.
15603 (gimple_stringops_transform): Likewise.
15604 (gimple_find_values_to_profile): Set number
15605 of counters for HIST_TYPE_SINGLE_VALUE.
15606 * value-prof.h (get_most_common_single_value): New.
15607
15608 2019-06-10 Martin Liska <mliska@suse.cz>
15609
15610 * hash-map.h: Pass default value to hash_table ctor.
15611 * hash-table.h: Add default value to call of a ctor.
15612
15613 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15614
15615 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15616 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15617
15618 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15619
15620 PR target/90751
15621 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15622 Call pa_output_function_label.
15623 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15624 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15625 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15626 to declaration.
15627 (pa_linux_output_function_prologue): Declare.
15628 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15629 (pa_output_function_label): New.
15630 (pa_output_function_prologue): Revise to use pa_output_function_label.
15631 (pa_linux_output_function_prologue): New.
15632 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15633
15634 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15635
15636 * tree-vrp.h (value_range_base::intersect): New.
15637 (value_range::intersect_helper): Move from here...
15638 (value_range_base::intersect_helper): ...to here.
15639 * tree-vrp.c (value_range::intersect_helper): Rename to...
15640 (value_range_base::intersect_helper): ...this, and rewrite to
15641 return a value instead of modifying THIS in place.
15642 Also, move equivalence handling...
15643 (value_range::intersect): ...here, while calling intersect_helper.
15644 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15645 calling intersect.
15646 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15647 Same.
15648 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15649
15650 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15651
15652 * Makefile.in (genprogerr): Add condmd.
15653 (genprog): Remove it here.
15654
15655 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15656
15657 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15658
15659 2019-06-07 Richard Biener <rguenther@suse.de>
15660
15661 PR debug/90574
15662 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15663 that appear after user labels.
15664
15665 2019-06-07 Martin Liska <mliska@suse.cz>
15666
15667 * cselib.c (cselib_init): Disable hash table
15668 sanitization.
15669 * hash-set.h: Pass new default argument to m_table.
15670 * hash-table.c: Add global variable with hash table
15671 sanitization limit.
15672 * hash-table.h (Allocator>::hash_table): Add new argument
15673 to ctor.
15674 (hashtab_chk_error): New.
15675 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15676 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15677 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15678
15679 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15680
15681 * common.opt (flto-odr-type-merging): Ignore.
15682 * invoke.texi (-flto-odr-type-merging): Remove.
15683 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15684 (can_be_vtable_hashed_p): Remove.
15685 (hash_odr_vtable): Remove.
15686 (odr_vtable_hasher::hash): Remove.
15687 (types_same_for_odr): Remove.
15688 (types_odr_comparable): Remove.
15689 (odr_vtable_hasher::equal): Remove.
15690 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15691 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15692 (get_odr_type): Do not use vtable hash.
15693 (dump_odr_type): Remove commented out code.
15694 (build_type_inheritance_graph): Do not allocate vtable hash.
15695 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15696 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15697 (odr_type_p): Likewise.
15698 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15699 test.
15700
15701 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15702
15703 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15704 immediately after same_types_for_tbaa_p returns -1 and continue
15705 looking for possible exact match; if matching types are arrays
15706 watch for partial overlaps.
15707 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15708 (indirect_refs_may_alias_p): Do type based disambiguation first;
15709 update comment.
15710
15711 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15712
15713 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15714
15715 2019-06-07 Martin Liska <mliska@suse.cz>
15716
15717 * doc/invoke.texi: Remove param.
15718 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15719 Remove.
15720 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15721 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15722 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15723 * profile.c (instrument_values): Remove
15724 HIST_TYPE_INDIR_CALL_TOPN.
15725 * tree-profile.c (init_ic_make_global_vars):
15726 Always build __gcov_indirect_call only.
15727 (gimple_init_gcov_profiler): Remove usage
15728 of PARAM_INDIR_CALL_TOPN_PROFILE.
15729 (gimple_gen_ic_profiler): Likewise.
15730 * value-prof.c (dump_histogram_value): Likewise.
15731 (stream_in_histogram_value): Likewise.
15732 (gimple_indirect_call_to_profile): Likewise.
15733 (gimple_find_values_to_profile): Likewise.
15734 * value-prof.h (enum hist_type): Likewise.
15735
15736 2019-06-07 Martin Liska <mliska@suse.cz>
15737
15738 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15739 function.
15740
15741 2019-06-07 Martin Liska <mliska@suse.cz>
15742
15743 PR tree-optimization/78902
15744 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15745 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15746 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15747 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15748 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15749 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15750 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15751 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15752 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15753 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15754 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15755 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15756 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15757 New.
15758 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15759 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15760 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15761 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15762 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15763 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15764 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15765 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15766 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15767 warn_unused_result attribute.
15768 (BUILT_IN_STRDUP): Likewise.
15769 (BUILT_IN_STRNDUP): Likewise.
15770 (BUILT_IN_ALLOCA): Likewise.
15771 (BUILT_IN_CALLOC): Likewise.
15772 (BUILT_IN_MALLOC): Likewise.
15773 (BUILT_IN_REALLOC): Likewise.
15774
15775 2019-06-06 Jim Wilson <jimw@sifive.com>
15776
15777 PR target/89955
15778 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15779 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15780 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15781
15782 2019-06-06 Martin Sebor <msebor@redhat.com>
15783
15784 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15785 (handle_builtin_malloc): Remove trailing spaces.
15786 (handle_builtin_memset): Same.
15787 (handle_builtin_memcmp): Same.
15788 (compute_string_length): Same.
15789 (determine_min_objsize): Same.
15790 (handle_builtin_string_cmp): Same.
15791 (handle_char_store): Same. Break up excessively long line.
15792
15793 2019-06-06 Martin Jambor <mjambor@suse.cz>
15794
15795 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15796 check.
15797
15798 2019-06-06 Martin Jambor <mjambor@suse.cz>
15799
15800 * tree-sra.c (struct access): New field grp_same_access_path.
15801 (dump_access): Dump it.
15802 (build_reconstructed_reference): New function.
15803 (build_ref_for_model): Use it if possible.
15804 (path_comparable_for_same_access): New function.
15805 (same_access_path_p): Likewise.
15806 (sort_and_splice_var_accesses): Set the new flag.
15807 (analyze_access_subtree): Likewise.
15808 (propagate_subaccesses_across_link): Propagate zero value of the new
15809 flag down the access tree.
15810
15811 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15812
15813 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15814 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15815 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15816 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15817 Add gfx906.
15818
15819 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15820
15821 PR tree-optimization/90332
15822 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15823 Handle VALS containing two vectors.
15824 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15825 to...
15826 (@aarch64_combinez<mode>): ... This.
15827 (*aarch64_combinez_be<mode>): Rename to...
15828 (@aarch64_combinez_be<mode>): ... This.
15829 (vec_init<mode><Vhalf>): New define_expand.
15830 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15831
15832 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15833
15834 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15835 library functions only when not optimizing for size.
15836 (ashlsi3): Likewise.
15837 (ashrhi3): Likewise.
15838 (ashrsi3): Likewise.
15839 (lshrhi3): Likewise.
15840 (lshrsi3): Likewise.
15841
15842 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15843
15844 PR rtl-optimization/88751
15845 * ira.c (ira): Use the number of the actually referenced registers
15846 when calculating the threshold.
15847
15848 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15849
15850 * configure: Regenerate.
15851
15852 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15853
15854 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15855 register if it is in memory, so the shift can be emulated with a rotate
15856 instruction.
15857 (ashrhi3): Likewise.
15858 (lshrhi3): Likewise.
15859
15860 2019-06-06 Martin Liska <mliska@suse.cz>
15861
15862 PR tree-optimization/87954
15863 * match.pd: Simplify mult where both arguments are 0 or 1.
15864
15865 2019-06-06 Richard Biener <rguenther@suse.de>
15866
15867 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15868 put equivalences on UNDEFINED ranges.
15869 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15870 Make sure to drop defs of stmts added during simplification
15871 to VARYING.
15872
15873 2019-06-06 Richard Biener <rguenther@suse.de>
15874
15875 * tree-ssa-structalias.c: Include tree-cfg.h.
15876 (make_heapvar): Do not make heap vars artificial.
15877 (find_func_aliases_for_builtin_call): Handle stack allocation
15878 functions.
15879 (find_func_aliases): Delay processing of simple enough returns
15880 in non-IPA mode.
15881 (set_uids_in_ptset): Adjust.
15882 (find_what_var_points_to): Likewise.
15883 (solve_constraints): Do not dump points-to sets here.
15884 (compute_points_to_sets): Post-process return statements,
15885 amending the escaped solution. Dump points-to sets afterwards.
15886 (ipa_pta_execute): Dump points-to sets.
15887
15888 2019-06-06 Martin Liska <mliska@suse.cz>
15889
15890 PR web/87933
15891 * doc/install.texi: Fix HTML headers and
15892 titles for 'Installing GCC' pages.
15893
15894 2019-06-06 Martin Liska <mliska@suse.cz>
15895
15896 * ipa-icf-gimple.h (dump_message_1): Remove.
15897 (dump_message): Likewise.
15898 (return_false_with_message_1): Print also file.
15899 (return_false_with_msg): Likewise.
15900 (return_with_result): Likewise.
15901 (return_with_debug): Likewise.
15902 * ipa-icf.c (sem_function::equals_private): Remove call
15903 to dump_message.
15904
15905 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15906
15907 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15908 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15909 memory operand for it.
15910 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15911
15912 2019-06-05 Martin Sebor <msebor@redhat.com>
15913
15914 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15915 Adjust quoting and hyphenation.
15916 * convert.c (convert_to_real_1): Same.
15917 * gcc.c (driver_wrong_lang_callback): Same.
15918 (driver::handle_unrecognized_options): Same.
15919 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15920 * opts-common.c (cmdline_handle_error): Same.
15921 (read_cmdline_option): Same.
15922 * opts-global.c (complain_wrong_lang): Same.
15923 (print_ignored_options): Same.
15924 (handle_common_deferred_options): Same.
15925 * pretty-print.h: Same.
15926 * print-rtl.c (debug_bb_n_slim): Same.
15927 * sched-rgn.c (make_pass_sched_fusion): Same.
15928 * tree-cfg.c (verify_gimple_assign_unary): Same.
15929 (verify_gimple_label): Same.
15930 * tree-ssa-operands.c (verify_ssa_operands): Same.
15931 * varasm.c (do_assemble_alias): Same.
15932 (assemble_alias): Same.
15933
15934 2019-06-05 Richard Henderson <rth@twiddle.net>
15935
15936 * config/alpha/alpha.c (direct_return): Move down after
15937 struct machine_function definition; use saved frame_size;
15938 return bool.
15939 (struct machine_function): Add sa_mask, sa_size, frame_size.
15940 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15941 (alpha_compute_frame_layout): ... new function.
15942 (TARGET_COMPUTE_FRAME_LAYOUT): New.
15943 (alpha_initial_elimination_offset): Use saved sa_size.
15944 (alpha_vms_initial_elimination_offset): Likewise.
15945 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15946 (alpha_expand_prologue): Use saved frame data. Merge integer
15947 and fp register save loops.
15948 (alpha_expand_epilogue): Likewise.
15949 (alpha_start_function): Use saved frame data.
15950 * config/alpha/alpha-protos.h (direct_return): Update.
15951 (alpha_sa_size): Remove.
15952
15953 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
15954
15955 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15956 multiplication by a power-of-two value.
15957 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15958 and turn the modulo operation into a masking operation.
15959
15960 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15961
15962 PR debug/90733
15963 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15964 with VOIDmode inner operands.
15965
15966 2019-06-05 Richard Biener <rguenther@suse.de>
15967
15968 PR middle-end/90726
15969 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15970 turn an expression graph into a tree.
15971
15972 2019-06-05 Jakub Jelinek <jakub@redhat.com>
15973
15974 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
15975 member.
15976 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
15977 treat it like explicit monotonic schedule modifier.
15978 (expand_omp_for): Initialize has_lastprivate_conditional.
15979 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
15980 schedule modifier.
15981
15982 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
15983 references, lookup in in hash map MEM_REF operand instead of the
15984 MEM_REF itself.
15985 (lower_omp_1): When looking for lastprivate conditional assignments,
15986 handle MEM_REFs with REFERENCE_TYPE operands.
15987
15988 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
15989 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
15990 and references a VLA. Handle references to non-VLAs if is_simd
15991 all privatization clauses like reductions.
15992 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
15993 If omp_is_reference, use always omp simd arrays and set
15994 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
15995 fails, emit reference initialization.
15996
15997 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15998
15999 PR target/89803
16000 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16001 _mm_mask_fpclass_sd_mask): New intrinsics.
16002 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16003 * config/i386/i386-builtin.def
16004 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16005 New builtins.
16006 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16007 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16008 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16009 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16010 case QI_FTYPE_V2SF_INT): Ditto.
16011 * config/i386/sse.md
16012 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16013 Extended to insnstructions with mask operands.
16014
16015 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16016
16017 * config/rs6000/constraints.md (define_register_constraint "wp"):
16018 Delete.
16019 (define_register_constraint "wq"): Delete.
16020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16021 (rs6000_init_hard_regno_mode_ok): Adjust.
16022 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16023 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16024 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16025 (define_mode_attr VSa): Delete.
16026 (define_mode_attr VSisa): New.
16027 (rest of file): Adjust.
16028 * doc/md.texi (Machine Constraints): Adjust.
16029
16030 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16031
16032 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16033 (define_attr "enabled"): Handle those new isa values.
16034
16035 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16036
16037 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16038 (define_mode_attr VSr5): Delete.
16039 (define_mode_attr VStype_sqrt): Delete.
16040 (define_mode_iterator VSX_SPDP): Delete.
16041 (define_mode_attr VS_spdp_res): Delete.
16042 (define_mode_attr VS_spdp_insn): Delete.
16043 (define_mode_attr VS_spdp_type): Delete.
16044 (*vsx_sqrt<mode>2): Adjust.
16045 (vsx_<VS_spdp_insn>): Delete, split to...
16046 (vsx_xscvdpsp): ... this. New. And...
16047 (vsx_xvcvspdp): ... this. New. And...
16048 (vsx_xvcvdpsp): ... this. New.
16049
16050 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16051
16052 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16053 and V2DF.
16054 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16055 (rest of file): Adjust.
16056
16057 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16058
16059 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16060 (vsx_extract_<mode>_var): Ditto.
16061
16062 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16063
16064 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16065 with just "wa".
16066
16067 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16068
16069 * config/rs6000/constraints.md (define_register_constraint "ww"):
16070 Delete.
16071 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16072 (rs6000_init_hard_regno_mode_ok): Adjust.
16073 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16074 RS6000_CONSTRAINT_ww.
16075 * config/rs6000/rs6000.md: Adjust.
16076 * config/rs6000/vsx.md: Adjust.
16077 * doc/md.texi (Machine Constraints): Adjust.
16078
16079 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16080
16081 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16082 (define_mode_attr sd): New.
16083 (define_mode_attr s): New.
16084 (define_mode_attr Ftrad): Delete.
16085 (define_mode_attr Fvsx): Delete.
16086 (define_mode_attr Fs): Delete.
16087 (rest of file): Use the new mode attributes.
16088 * config.rs6000/vsx.md: Use the new mode attributes.
16089
16090 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16091
16092 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16093 with just "wa".
16094
16095 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16096
16097 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16098 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16099 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16100
16101 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16102
16103 PR target/78263
16104 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16105 C++ with strict ANSI requirements.
16106
16107 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16108
16109 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16110 computations when step is 1.
16111
16112 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16113
16114 * config/rs6000/constraints.md (define_register_constraint "wf"):
16115 Delete.
16116 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16117 (rs6000_init_hard_regno_mode_ok): Adjust.
16118 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16119 RS6000_CONSTRAINT_wf.
16120 * config/rs6000/rs6000.md: Adjust.
16121 * config/rs6000/vsx.md: Adjust.
16122 * doc/md.texi (Machine Constraints): Adjust.
16123
16124 2019-06-04 Andrew Pinski <apinski@marvell.com>
16125
16126 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16127 Fix ILP32 value.
16128
16129 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16130
16131 * config/rs6000/constraints.md (define_register_constraint "wd"):
16132 Delete.
16133 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16134 (rs6000_init_hard_regno_mode_ok): Adjust.
16135 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16136 RS6000_CONSTRAINT_wd.
16137 * config/rs6000/rs6000.md: Adjust.
16138 * config/rs6000/vsx.md: Adjust.
16139 * doc/md.texi (Machine Constraints): Adjust.
16140
16141 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16142
16143 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16144 (rest of file): Adjust.
16145
16146 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16147
16148 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16149 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16150 (vsx_splat_<mode>_reg): Adjust.
16151
16152 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16153
16154 * config/rs6000/constraints.md (define_register_constraint "ws"):
16155 Delete.
16156 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16157 (rs6000_init_hard_regno_mode_ok): Adjust.
16158 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16159 RS6000_CONSTRAINT_ws.
16160 * config/rs6000/rs6000.md: Adjust.
16161 * config/rs6000/vsx.md: Adjust.
16162 * doc/md.texi (Machine Constraints): Adjust.
16163
16164 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16165
16166 * config/rs6000/constraints.md (define_register_constraint "wv"):
16167 Delete.
16168 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16169 (rs6000_init_hard_regno_mode_ok): Adjust.
16170 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16171 RS6000_CONSTRAINT_wv.
16172 * config/rs6000/rs6000.md: Adjust.
16173 * config/rs6000/vsx.md: Adjust.
16174 * doc/md.texi (Machine Constraints): Adjust.
16175
16176 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16177
16178 * config/rs6000/constraints.md (define_register_constraint "wi"):
16179 Delete.
16180 (define_register_constraint "wt"): Delete.
16181 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16182 (rs6000_init_hard_regno_mode_ok): Adjust.
16183 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16184 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16185 * config/rs6000/rs6000.md: Adjust.
16186 * config/rs6000/vsx.md: Adjust.
16187 * doc/md.texi (Machine Constraints): Adjust.
16188
16189 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16190
16191 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16192 const.
16193 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16194 default_elf_asm_output_external.
16195
16196 2019-06-04 Martin Liska <mliska@suse.cz>
16197
16198 * ipa-icf.c (INCLUDE_LIST): Remove.
16199 (sem_item_optimizer::execute): Remove call to init_wpa.
16200 * ipa-icf.h (init_wpa): Remove.
16201
16202 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16203
16204 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16205 conditional on combined for simd.
16206 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16207 member.
16208 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16209 constructs, don't remove lastprivate_conditional_map, but instead set
16210 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16211 to parent construct temporaries.
16212 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16213 like !ctx->lastprivate_conditional_map.
16214 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16215 use up->outer context instead of up.
16216 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16217 gimple_omp_for_combined_p.
16218 (expand_omp_for_static_nochunk): Likewise.
16219 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16220 probably moved over into expand_omp_for_generic rather than being copied
16221 there.
16222
16223 2019-06-04 Martin Liska <mliska@suse.cz>
16224
16225 * value-prof.c (dump_histogram_value): Fix typo.
16226 (gimple_mod_subtract_transform): Likewise.
16227
16228 2019-06-04 Richard Biener <rguenther@suse.de>
16229
16230 PR middle-end/90726
16231 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16232 (tree_contains_chrecs): Likewise.
16233 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16234 exponential behaivor from ...
16235 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16236 ... here.
16237 (expression_expensive_p): Avoid exponential behavior and compute
16238 expanded size, rejecting any expansion.
16239 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16240 (idx_contains_abnormal_ssa_name_p): Likewise.
16241 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16242 (contains_abnormal_ssa_name_p): Simplify and use
16243 walk_tree_without_duplicates.
16244
16245 2019-06-04 Richard Biener <rguenther@suse.de>
16246
16247 PR tree-optimization/90738
16248 Revert
16249 2019-06-03 Richard Biener <rguenther@suse.de>
16250
16251 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16252 full reference tree and record in ref->ref.
16253 (vn_reference_lookup_3): Pass in original ref to
16254 ao_ref_init_from_vn_reference.
16255 (vn_reference_lookup): Likewise.
16256 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16257 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16258 Handle non-decl bases in the original reference.
16259
16260 2019-06-04 Martin Liska <mliska@suse.cz>
16261
16262 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16263 number of references.
16264 (sem_item_optimizer::do_congruence_step):
16265 (sem_item_optimizer::worklist_push): Dump how references
16266 a class has.
16267 (sem_item_optimizer::worklist_pop): Use heap.
16268 (sem_item_optimizer::process_cong_reduction): Likewise.
16269 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16270
16271 2019-06-04 Martin Liska <mliska@suse.cz>
16272
16273 * ipa-icf.h (struct sem_usage_pair_hash): New.
16274 (sem_usage_pair_hash::hash): Likewise.
16275 (sem_usage_pair_hash::equal): Likewise.
16276 (struct sem_usage_hash): Likewise.
16277 * ipa-icf.c (sem_item::sem_item): Initialize
16278 referenced_by_count.
16279 (sem_item::add_reference): Register a reference
16280 in ref_map and not in target->usages.
16281 (sem_item::setup): Remove initialization of
16282 dead vectors.
16283 (sem_item::~sem_item): Remove usage of dead vectors.
16284 (sem_item::dump): Remove dump of references.
16285 (sem_item_optimizer::sem_item_optimizer): Initialize
16286 m_references.
16287 (sem_item_optimizer::read_section): Remove useless
16288 dump.
16289 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16290 (sem_item_optimizer::build_graph): Pass m_references
16291 to ::add_reference.
16292 (sem_item_optimizer::verify_classes): Remove usage of dead
16293 vectors.
16294 (sem_item_optimizer::traverse_congruence_split): Return true
16295 when a class is split.
16296 (sem_item_optimizer::do_congruence_step_for_index): Use
16297 hash_map for look up of (sem_item *, index). That brings
16298 significant speed up.
16299 (sem_item_optimizer::do_congruence_step): Return true
16300 when a split is done.
16301 (congruence_class::is_class_used): Use referenced_by_count.
16302
16303 2019-06-04 Alan Modra <amodra@gmail.com>
16304
16305 PR target/90689
16306 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16307 error.
16308
16309 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16310
16311 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16312 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16313 (rs6000_secondary_reload_simple_move): Adjust.
16314 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16315 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16316 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16317 comment.
16318 (power6x): Adjust.
16319 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16320 (floatunssi<mode>2_lfiwzx): Adjust.
16321 (fix_trunc<mode>si2_stfiwx): Adjust.
16322 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16323 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16324 (mfpgpr): Mark as deprecated.
16325 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16326 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16327 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16328
16329 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16330
16331 * config/rs6000/constraints.md (define_register_constraint "wg"):
16332 Delete.
16333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16334 RS6000_CONSTRAINT_wg.
16335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16336 (rs6000_init_hard_regno_mode_ok): Adjust.
16337 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16338 Delete "wg" alternatives.
16339 * doc/md.texi (Machine Constraints): Adjust.
16340
16341 2019-06-03 Alan Modra <amodra@gmail.com>
16342
16343 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16344 (get_uncond_jump_length): Assert length less than INT_MAX and
16345 non-negative.
16346
16347 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16348
16349 PR middle-end/64242
16350 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16351 block.
16352 (expand_builtin_nonlocal_goto): Likewise.
16353
16354 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16355
16356 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16357 (aarch64_asm_output_external): Declare.
16358 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16359 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16360 (aarch64_asm_output_alias): New.
16361 (aarch64_asm_output_external): New.
16362 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16363 (ASM_OUTPUT_EXTERNAL): Define.
16364
16365 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16366 * tree-vrp.h (value_range_base::nonzero_p): New.
16367 (value_range_base::set_nonnull): Rename to...
16368 (value_range_base::set_nonzero): ...this.
16369 (value_range_base::set_null): Rename to...
16370 (value_range_base::set_zero): ...this.
16371 (value_range::set_nonnull): Remove.
16372 (value_range::set_null): Remove.
16373 * tree-vrp.c (range_is_null): Remove.
16374 (range_is_nonnull): Remove.
16375 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16376 instead of range_is_*null.
16377 (extract_range_from_unary_expr): Same.
16378 (value_range_base::set_nonnull): Rename to...
16379 (value_range_base::set_nonzero): ...this.
16380 (value_range::set_nonnull): Remove.
16381 (value_range_base::set_null): Rename to...
16382 (value_range_base::set_zero): ...this.
16383 (value_range::set_null): Remove.
16384 (extract_range_from_binary_expr): Rename set_*null uses to
16385 set_*zero.
16386 (extract_range_from_unary_expr): Same.
16387 (union_helper): Same.
16388 * vr-values.c (get_value_range): Use set_*zero instead of
16389 set_*null.
16390 (vr_values::extract_range_from_binary_expr): Same.
16391 (vr_values::extract_range_basic): Same.
16392
16393 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16394
16395 PR driver/90684
16396 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16397
16398 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16399
16400 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16401 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16402 Rename to...
16403 (aarch64_<su>abd<mode>_3): ... This.
16404 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16405
16406 2019-06-03 Richard Biener <rguenther@suse.de>
16407
16408 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16409 full reference tree and record in ref->ref.
16410 (vn_reference_lookup_3): Pass in original ref to
16411 ao_ref_init_from_vn_reference.
16412 (vn_reference_lookup): Likewise.
16413 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16414 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16415 Handle non-decl bases in the original reference.
16416
16417 2019-06-03 Martin Liska <mliska@suse.cz>
16418
16419 * doc/generic.texi: Remove Java Trees.
16420
16421 2019-06-03 Martin Liska <mliska@suse.cz>
16422
16423 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16424 returns 0 when operands are equal.
16425
16426 2019-06-03 Richard Biener <rguenther@suse.de>
16427
16428 PR tree-optimization/90716
16429 * tree-loop-distribution.c (destroy_loop): Process blocks in
16430 correct order.
16431
16432 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16433
16434 PR target/88837
16435 * vector-builder.h (vector_builder::count_dups): New method.
16436 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16437 Declare prototype.
16438 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16439 (vec_init<mode><Vel>): New pattern.
16440 * config/aarch64/aarch64.c (emit_insr): New function.
16441 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16442 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16443 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16444 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16445
16446 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16447
16448 PR tree-optimization/90681
16449 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16450 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16451 special case for SLP, but fail on non-groupped loads.
16452
16453 2019-06-03 Martin Liska <mliska@suse.cz>
16454
16455 * cfg.c (debug): Use TDF_DETAILS for debug and
16456 print edge info only once.
16457
16458 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16459
16460 PR fortran/90539
16461 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16462
16463 2019-06-01 Martin Sebor <msebor@redhat.com>
16464
16465 PR middle-end/90694
16466 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16467
16468 2019-05-31 Jan Hubicka <jh@suse.cz>
16469
16470 * alias.c: Include ipa-utils.h.
16471 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16472 * ipa-devirt.c (prevailing_odr_type): New.
16473 * ipa-utils.h (previaling_odr_type): Declare.
16474
16475 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16476 Hongtao Liu <hongtao.liu@intel.com>
16477
16478 PR target/89355
16479 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16480 NOTE_INSN_DELETED_LABEL check.
16481
16482 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16483 Robert Suchanek <robert.suchanek@mips.com>
16484
16485 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16486 and 3rd operands of the fmadd/fmsub/maddv builtin.
16487
16488 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16489
16490 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16491 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16492 on OMP_SIMD if not nested inside of worksharing loop that also has
16493 lastprivate conditional clause for the same decl.
16494 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16495 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16496 on simd.
16497 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16498 on simd construct.
16499 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16500 on simd construct.
16501 (lower_lastprivate_clauses): Likewise.
16502 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16503 calling lower_rec_input_clauses.
16504 (lower_omp_for): Likewise.
16505 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16506 clause on simd construct.
16507 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16508 OMP_CLAUSE__CONDTEMP_ clause is present.
16509
16510 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16511 ivar and lvar.
16512
16513 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16514
16515 PR c/43673
16516 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16517 TEX_D32, TEX_D64 or TEX_D128.
16518
16519 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16520
16521 * match.pd (~(vec?cst1:cst2)): New transformation.
16522
16523 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16524
16525 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16526 ((size_t)(A /[ex] B) CMP C): New transformation.
16527
16528 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16529
16530 * doc/md.texi: Document define_insn_and_rewrite.
16531 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16532 * gensupport.c (queue_elem): Update comment.
16533 (replace_operands_with_dups): New function.
16534 (gen_rewrite_sequence): Likewise.
16535 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16536 * read-rtl.c (apply_subst_iterator): Likewise.
16537 (add_condition_to_rtx, named_rtx_p): Likewise.
16538 (rtx_reader::read_rtx_operand): Likewise.
16539 * config/aarch64/aarch64-sve.md
16540 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16541 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16542 define_insn_and_rewrite.
16543 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16544 Remove separate define_split.
16545
16546 2019-05-31 Jan Hubicka <jh@suse.cz>
16547
16548 * tree-ssa-alias.c (type_has_components_p): New function.
16549 (aliasing_component_refs_p): Use it.
16550
16551 2019-05-31 Martin Liska <mliska@suse.cz>
16552
16553 * gdbhooks.py: Add const_tree to TreePrinter.
16554
16555 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16556
16557 PR debug/86964
16558 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16559 * doc/invoke.texi (Debugging Options): Document new default of
16560 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16561
16562 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16563
16564 PR tree-optimization/90671
16565 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16566 template_block used to be empty on the first call, don't use
16567 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16568 seq with bb_seq and set it with set_bb_seq.
16569
16570 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16571
16572 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16573
16574 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16575 Michael Meissner <meissner@linux.ibm.com>
16576
16577 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16578 (prefixed_mem_operand): Likewise.
16579 (non_prefixed_mem_operand): Likewise.
16580 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16581 prototype.
16582 * config/rs6000/rs6000.c (print_operand_address): Handle
16583 PC-relative addresses.
16584 (mode_supports_prefixed_address_p): New function.
16585 (rs6000_prefixed_address): New function.
16586 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16587 (SYMBOL_REF_PCREL_P): Likewise.
16588
16589 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16590
16591 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16592 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16593 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16594 is nested inside of parallel region, add _condtemp_ clause to both.
16595 * tree-nested.c (convert_nonlocal_omp_clauses,
16596 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16597 assertion failure.
16598 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16599 member.
16600 * omp-general.c (omp_extract_for_data): Compute it.
16601 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16602 (lower_rec_input_clauses): Likewise.
16603 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16604 clause is already present, just add one further one after it.
16605 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16606 (lower_send_shared_vars): Clear _condtemp_ vars.
16607 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16608 or section or taskgroup.
16609 * omp-expand.c (determine_parallel_type): Disallow combining only if
16610 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16611 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16612 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16613 expand_omp_for_static_chunk, expand_omp_for): Use
16614 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16615 determine if a special set of API routines are needed and if condtemp
16616 needs to be initialized, while always initialize cond_var if
16617 fd->lastprivate_conditional is non-zero.
16618
16619 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16620 Michael Meissner <meissner@linux.ibm.com>
16621
16622 * config/rs6000/constraints.md (eI): New constraint.
16623 * config/rs6000/predicates.md (cint34_operand): New predicate.
16624 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16625 (SIGNED_34BIT_OFFSET_P): Likewise.
16626 * doc/md.texi (eI): Document constraint.
16627
16628 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16629
16630 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16631
16632 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16633 Michael Meissner <meissner@linux.ibm.com>
16634
16635 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16636 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16637 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16638 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16639 (OTHER_FUTURE_MASKS): Likewise.
16640 (POWERPC_MASKS): Likewise.
16641 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16642 specified without -mprefixed-addr or -mcpu=future. Error if
16643 -mprefixed-addr is specified without -mcpu=future.
16644 (rs6000_opt_masks): Add entry for prefixed-addr.
16645 * rs6000.opt (mprefixed-addr): New option.
16646
16647 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16648
16649 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16650 cfun->is_thunk check.
16651
16652 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16653
16654 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16655 to length.
16656
16657 2019-05-30 Martin Liska <mliska@suse.cz>
16658
16659 * gdbinit.in: Fix 'ptc' command. Add trt
16660 that prints TREE_TYPE($).
16661
16662 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16663 Alan Modra <amodra@gmail.com>
16664
16665 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16666 calls here...
16667 (rs6000_indirect_call_template_1): ...and here.
16668 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16669 plt16_ha, plt16_lo, mtctr indirect calls. Use
16670 rs6000_pltseq_enum.
16671 (rs6000_decl_ok_for_sibcall): New function.
16672 (rs6000_function_ok_for_sibcall): Refactor.
16673 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16674 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16675 when pcrel. Reorganize.
16676 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16677 * rs6000.h (rs6000_pltseq_enum): New enum.
16678 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16679 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16680 (*pltseq_plt16_ha): Likewise.
16681 (*pltseq_plt16_lo): Likewise.
16682 (*pltseq_mtctr): Likewise.
16683 (*pltseq_plt_pcrel): New insn.
16684 (*call_local_aix): Handle @notoc calls.
16685 (*call_value_local_aix): Likewise.
16686 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16687 (*call_value_nonlocal_aix): Likewise.
16688 (*call_indirect_pcrel): New insn.
16689 (*call_value_indirect_pcrel): Likewise.
16690
16691 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16692
16693 * config/i386/sse.md (*save_multiple<mode>): Rename from
16694 save_multiple<mode>.
16695 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16696 (*restore_multiple_and_return<mode>): Rename from
16697 restore_multiple_and_return<mode>.
16698 (*restore_multiple_leave_return<mode>): Rename from
16699 restore_multiple_leave_return<mode>.
16700
16701 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16702
16703 * config.gcc (rx-*-linux*): New target.
16704 * config/rx/elf.opt: New file.
16705 * config/rx/linux.h: Likewise.
16706 * config/rx/t-linux: Likewise.
16707 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16708 make it zero.
16709 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16710 (ASM_APP_OFF): Likewise.
16711 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16712 moved elsewhere.
16713
16714 2019-05-29 Jan Hubicka <jh@suse.cz>
16715
16716 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16717 variants are pointer equivalent.
16718
16719 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16720
16721 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16722 * config/aarch64/aarch64-sve2.md: New file.
16723 (<u>avg<mode>3_floor): New pattern.
16724 (<u>avg<mode>3_ceil): Likewise.
16725 (*<sur>h<addsub><mode>): Likewise.
16726 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16727 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16728
16729 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16730
16731 PR bootstrap/90543
16732 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16733 for var_opt_string printing. In cl_optimization_print_diff, print
16734 (null) instead of invoking undefined behavior if one of the
16735 var_opt_string pointers is NULL and use && instead of first || in the
16736 guarding condition. For var_target_other options, handle const char *
16737 target variables similarly to const char * optimize node variables.
16738
16739 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16740
16741 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16742 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16743 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16744 Add autib1716 and pacib1716 initialisation.
16745 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16746 for autib1716 and pacib1716.
16747 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16748 aarch64_post_cfi_startproc): Define.
16749 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16750 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16751 aarch64_handle_pac_ret_protection): Set default sign key to A.
16752 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16753 aarch64_expand_prologue): Add check for b-key.
16754 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16755 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16756 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16757 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16758 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16759 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16760 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16761 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16762 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16763 pauth_hint_num_a with pauth_hint_num.
16764 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16765 pauth_hint_num_a with pauth_hint_num.
16766 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16767 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16768 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16769 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16770 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16771 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16772 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16773 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16774 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16775 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16776 UNSPEC_AUTIA1716 respectively.
16777 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16778 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16779 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16780 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16781 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16782 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16783
16784 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16785
16786 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16787 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16788 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16789 explicit clause on combined parallel into implicit shared clause.
16790 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16791 and firstprivate if the decl has one too from combined parallel to
16792 the worksharing construct.
16793
16794 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16795 Michael Meissner <meissner@linux.ibm.com>
16796
16797 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16798
16799 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16800
16801 * rtl.h (LABEL_REF_P): New #define.
16802
16803 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16804
16805 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16806
16807 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16808
16809 * internal-fn.c: Marked mask_load_direct as vectorizable.
16810 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16811 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16812 combined even if masks different with allow_slp_p param.
16813 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16814 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16815 dissolve SLP-only vectorizable groups when SLP has been discarded.
16816 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16817 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16818 masks.
16819 (vect_build_slp_tree_1): Fixed comment typo.
16820 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16821 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16822 loads for SLP only.
16823 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16824 vectorizable.
16825 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16826
16827 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16828
16829 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16830 Remove obsolete use_thunk reference.
16831 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16832 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16833 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16834 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16835 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16836 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16837 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16838 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16839 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16840
16841 2019-05-28 Nathan Sidwell <nathan@acm.org>
16842
16843 * tree.h (IDENTIFIER_ANON_P): New.
16844 (anon_aggrname_format, anon_aggname_p): Don't declare.
16845 (make_anon_name): Declare.
16846 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16847 (hash_tree): Likewise.
16848 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16849 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16850 (anon_cnt, make_anon_name): New.
16851
16852 2019-05-28 Martin Liska <mliska@suse.cz>
16853
16854 PR other/90315
16855 * opts-global.c (decode_options): Print help for all
16856 help_option_arguments.
16857 * opts.c (print_help): Add new argument.
16858 (common_handle_option): Remember all values into
16859 help_option_arguments.
16860 * opts.h (print_help): Add new argument.
16861
16862 2019-05-28 Martin Liska <mliska@suse.cz>
16863
16864 PR ipa/90555
16865 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16866 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16867 (func_checker::compare_bb): Call compare_loops.
16868
16869 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16870
16871 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16872 on sections construct.
16873 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16874 construct.
16875 (lower_omp_sections): Handle lastprivate conditional.
16876 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16877 lastprivate_conditional_map.
16878 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16879
16880 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16881 critical, taskgroup and section regions when looking for a region
16882 with non-NULL lastprivate_conditional_map.
16883
16884 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16885
16886 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16887 (*ix86_gen_sub3): Ditto.
16888 (*ix86_gen_sub3_carry): Ditto.
16889 (*ix86_gen_one_cmpl2): Ditto.
16890 (*ix86_gen_andsp): Ditto.
16891 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16892 (gen_and2_insn): New static function.
16893 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16894 Use gen_add3_insn instead of ix86_gen_add3.
16895 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16896 instead of ix86_gen_add3.
16897 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16898 Use gen_sub3_insn instead of ix86_gen_sub3.
16899 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16900 instead of ix86_gen_add3.
16901 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16902 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16903 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16904 * config/i386/i386-options.c (ix86_option_override_internal):
16905 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16906 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16907
16908 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16909
16910 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16911 and DW_OP_GNU_const_index opcodes.
16912
16913 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16914
16915 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16916
16917 2019-05-27 Richard Biener <rguenther@suse.de>
16918
16919 PR tree-optimization/90637
16920 * tree-ssa-sink.c (statement_sink_location): Honor the
16921 computed sink location for single-uses.
16922
16923 2019-05-27 Richard Biener <rguenther@suse.de>
16924
16925 PR middle-end/90610
16926 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16927 a bit-insert.
16928
16929 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16930
16931 * config/i386/i386.md (@sub<mode>3_carry): Rename
16932 from sub<mode>3_carry.
16933 (@leave_<mode>): New expander.
16934 (*leave): Rename from leave.
16935 (*leave_rex64): Rename from leave_rex64.
16936 (@monitorx_<mode>): Rename from monitorx_<mode>.
16937 (@clzero_<mode>): Rename from clzero_<mode>.
16938 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16939 from sse3_monitor_<mode>.
16940 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16941 (*ix86_gen_leave): Ditto.
16942 (*ix86_gen_monitor): Ditto.
16943 (*ix86_gen_monitorx): Ditto.
16944 (*ix86_gen_clzero): Ditto.
16945 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16946 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16947 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16948 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16949 Use gen_sse3_monitor instead of ix86_gen_monitor.
16950 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16951 instead of ix86_gen_monitorx.
16952 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16953 instead of ix86_gen_clzero.
16954 * config/i386/i386-options.c (ix86_option_override_internal):
16955 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16956 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16957
16958 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16959
16960 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16961 Rename from tls_global_dynamic_64_<mode>.
16962 (@tls_local_dynamic_base_64_<mode>): Rename from
16963 tls_local_dynamic_base_64_<mode>.
16964 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16965 Remove indirect function.
16966 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
16967 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
16968 instead of ix86_gen_tls_global_dynamic_64.
16969 Use gen_tls_local_dynamic_base_64 instead of
16970 ix86_gen_tls_local_dynamic_base_64.
16971 * config/i386/i386-options.c (ix86_option_override_internal):
16972 Do not initialize ix86_gen_tls_global_dynamic_64 and
16973 ix86_gen_tls_local_dynamic_base_64.
16974
16975 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
16976
16977 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
16978 Rename from pro_epilogue_adjust_stack_<mode>_add.
16979 (@pro_epilogue_adjust_stack_sub_<mode>)
16980 Rename from pro_epilogue_adjust_stack_<mode>_sub.
16981 (@allocate_stack_worker_probe_<mode>):
16982 Rename from allocate_stack_worker_probe_<mode>.
16983 (allocate_stack): Use gen_allocate_stack_worker_probe.
16984 (probe_stack): Use gen_probe_stack_1.
16985 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
16986 (@adjust_stack_and_probe_<mode>): Rename from
16987 adjust_stack_and_probe<mode>.
16988 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
16989 (stack_protect_set): Use gen_stack_protect_set_1.
16990 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
16991 (stack_protect_test): Use gen_stack_protect_test_1.
16992 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
16993 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
16994 Remove indirect function.
16995 (*ix86_gen_adjust_stack_and_probe): Ditto.
16996 (*ix86_gen_probe_stack_range): Ditto.
16997 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
16998 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
16999 (ix86_adjust_stack_and_probe_stack_clash): Use
17000 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17001 (ix86_adjust_stack_and_probe): Ditto.
17002 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17003 of ix86_gen_probe_stack_range.
17004 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17005 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17006 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17007 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17008 CODE_FOR_stack_protect_test_{si,di}.
17009 * config/i386/i386-options.c (ix86_option_override_internal):
17010 Do not initialize ix86_gen_allocate_stack_worker,
17011 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17012
17013 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17014
17015 * doc/invoke.texi (Link Options): Many editorial changes around
17016 -flinker-output.
17017
17018 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17019
17020 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17021 pre-Solaris 11 referene and most Studio compiler details.
17022
17023 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17024
17025 PR target/90530
17026 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17027 DImode to SImode in floating-point registers on 64-bit target.
17028 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17029 register_operand in xmpyu patterns.
17030
17031 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17032
17033 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17034 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17035 OMP_CLAUSE__REDUCTEMP_.
17036 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17037 OMP_CLAUSE__CONDTEMP_.
17038 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17039 * tree-pretty-print.c (dump_omp_clause): Likewise.
17040 * tree-nested.c (convert_nonlocal_omp_clauses,
17041 convert_local_omp_clauses): Likewise.
17042 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17043 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17044 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17045 on OMP_FOR.
17046 (gimplify_omp_for): Warn and disable conditional modifier from
17047 lastprivate on loop iterators.
17048 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17049 member.
17050 * omp-general.c (omp_extract_for_data): Initialize it.
17051 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17052 member.
17053 (delete_omp_context): Delete it.
17054 (lower_lastprivate_conditional_clauses): New function.
17055 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17056 handle lastprivate conditional clauses.
17057 (lower_reduction_clauses): Add CLIST argument, emit it into
17058 the critical section if any.
17059 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17060 lower_reduction_clauses callers.
17061 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17062 to lower_lastprivate_clauses.
17063 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17064 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17065 clist into a critical section if not emitted there already by
17066 lower_reduction_clauses.
17067 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17068 callers.
17069 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17070 conditional variables.
17071 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17072 clause is present.
17073 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17074 expand_omp_for_static_chunk): Handle lastprivate conditional.
17075 (expand_omp_for): Handle fd.lastprivate_conditional like
17076 fd.have_reductemp.
17077
17078 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17079
17080 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17081 kernel does not exit cleanly.
17082 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17083
17084 2019-05-24 Jason Merrill <jason@redhat.com>
17085
17086 Revert:
17087 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17088
17089 2019-05-24 Richard Biener <rguenther@suse.de>
17090
17091 PR testsuite/90607
17092 * tree-loop-distribution.c (struct partition): Add location
17093 member.
17094 (partition_alloc): Initialize all fields.
17095 (generate_memset_builtin): Use the location recorded in the
17096 partition for the generated call.
17097 (generate_memcpy_builtin): Likewise.
17098 (classify_partition): Record the location of a single store
17099 as location for the partition.
17100
17101 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17102
17103 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17104 for lo-part.
17105
17106 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17107
17108 PR target/90588
17109 * common/config/aarch64/aarch64-common.c
17110 (aarch64_rewrite_selected_cpu): Change local temporary variable
17111 type from unsigned long to uint64_t.
17112 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17113 aarch64_get_extension_string_for_isa_flags): Change declaration to
17114 match new definition by replacing unsigned long with uint64_t.
17115
17116 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17117
17118 PR target/90568
17119 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17120 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17121 Handle stack_protect_test_<mode> codegen similarly to corresponding
17122 sub instruction.
17123
17124 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17125
17126 * config/i386/darwin.h: Reject -mfentry*.
17127 * doc/sourcebuild.texi: Document mfentry target support.
17128
17129 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17130
17131 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17132 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17133 false for PC-relative functions.
17134 (rs6000_output_function_prologue): Change called function name to
17135 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17136 name,1" for PC-relative functions.
17137 (rs6000_elf_declare_function_name): Change called function name to
17138 rs6000_global_entry_point_prologue_needed_p.
17139
17140 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17141
17142 PR target/90552
17143 * config/i386/i386.c (gen_rtx_cost):
17144 Use ix86_tune_cost instead of ix86_cost.
17145
17146 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17147 Michael Meissner <meissner@linux.ibm.com>
17148 Segher Boessenkool <segher@kernel.crashing.org>
17149
17150 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17151 OPTION_MASK_PCREL.
17152 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17153 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17154 (rs6000_fndecl_pcrel_p): Likewise.
17155 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17156 error if -mpcrel is requested without -mcpu=future.
17157 (rs6000_opt_masks): Add entry for pcrel.
17158 (rs6000_fndecl_pcrel_p): New function.
17159 (rs6000_pcrel_p): Likewise.
17160 * config/rs6000/rs6000.opt (mpcrel): New option.
17161 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17162
17163 2019-05-23 Jan Hubicka <jh@suse.cz>
17164 Martin Liska <mliska@suse.cz>
17165
17166 PR tree-optimization/90576
17167 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17168 poly_int_tree_p.
17169 (aliasing_component_refs_p): Fix three way size compare conditional;
17170 give up earlier in case we can not decide on equivalence.
17171
17172 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17173 Michael Meissner <meissner@linux.ibm.com>
17174 Segher Boessenkool <segher@kernel.crashing.org>
17175
17176 * config.gcc: Add future cpu.
17177 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17178 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17179 #define.
17180 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17181 (RS6000_CPU): New instantiation for future cpu.
17182 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17183 PROCESSOR_FUTURE.
17184 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17185 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17186 * config/rs6000/rs6000-tables.opt: Regenerate.
17187 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17188 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17189 (rs6000_machine_from_flags): Handle future cpu.
17190 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17191 PROCESSOR_POWER9 for now.
17192 (rs6000_adjust_cost): Likewise.
17193 (rs6000_issue_rate): Likewise.
17194 (rs6000_register_move_cost): Likewise.
17195 (rs6000_opt_masks): Add entry for future.
17196 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17197 (MASK_FUTURE): New #define.
17198 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17199 * config/rs6000/rs6000.opt (mfuture): New target option.
17200 * doc/invoke.texi (mcpu): Add future cpu.
17201
17202 2019-05-23 Martin Liska <mliska@suse.cz>
17203
17204 PR c++/90587
17205 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17206 operation points to a temporary (pointed via tree_to_wide_ref)
17207 that is out of scope after the &.
17208
17209 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17210
17211 PR c++/90592
17212 * doc/extend.texi (Function Names): Add missing word.
17213
17214 2019-05-23 Richard Biener <rguenther@suse.de>
17215
17216 PR tree-optimization/88440
17217 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17218 at -O[2s]+.
17219 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17220 generated call.
17221 (generate_memcpy_builtin): Likewise.
17222 (distribute_loop): Pass in whether to only distribute patterns.
17223 (prepare_perfect_loop_nest): Also allow size optimization.
17224 (pass_loop_distribution::execute): When optimizing a loop
17225 nest for size allow pattern replacement.
17226
17227 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17228
17229 PR target/90568
17230 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17231 of xor.
17232
17233 2019-05-23 Martin Liska <mliska@suse.cz>
17234
17235 PR sanitizer/90570
17236 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17237 expression similarly to gimplify_decl_expr.
17238
17239 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17240
17241 * cse.c (cse_dump_path): s/dump_file/f.
17242
17243 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17244
17245 PR c++/90462
17246 * diagnostic-format-json.cc: Include "selftest.h".
17247 (json_from_expanded_location): Only add "file" key for non-NULL
17248 file strings.
17249 (json_from_location_range): Don't add "start" and "finish"
17250 children if they are UNKNOWN_LOCATION.
17251 (selftest::test_unknown_location): New selftest.
17252 (selftest::test_bad_endpoints): New selftest.
17253 (selftest::diagnostic_format_json_cc_tests): New function.
17254 * json.cc (json::object::get): New function.
17255 (selftest::test_object_get): New selftest.
17256 (selftest::json_cc_tests): Call it.
17257 * json.h (json::object::get): New decl.
17258 * selftest-run-tests.c (selftest::run_tests): Call
17259 selftest::diagnostic_format_json_cc_tests.
17260 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17261 decl.
17262
17263 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17264 Andrew Stubbs <amd@codesourcery.com>
17265
17266 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17267 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17268 (kernel): Rename to...
17269 (main_kernel): ... this.
17270 (load_image): Load _init_array and _fini_array kernels.
17271 (run): Add argument for kernel to run.
17272 (main): Run init_array_kernel before main_kernel, and
17273 fini_array_kernel after.
17274 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17275 amdgpu_hsa_kernel attribute on functions.
17276 (gcn_disable_constructors): Delete.
17277 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17278 * config/gcn/crt0.c (size_t): Define.
17279 (_init_array, _fini_array): New.
17280 (__preinit_array_start, __preinit_array_end,
17281 __init_array_start, __init_array_end,
17282 __fini_array_start, __fini_array_end): Declare weak references.
17283
17284 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17285
17286 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17287
17288 2019-05-22 Jason Merrill <jason@redhat.com>
17289
17290 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17291
17292 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17293
17294 PR target/88483
17295 * config/i386/i386-options.c (ix86_init_machine_status): Set
17296 stack_frame_required to true.
17297 * config/i386/i386.c (ix86_get_frame_size): New function.
17298 (ix86_frame_pointer_required): Replace get_frame_size with
17299 ix86_get_frame_size.
17300 (ix86_compute_frame_layout): Likewise.
17301 (ix86_find_max_used_stack_alignment): Changed to void. Set
17302 stack_frame_required.
17303 (ix86_finalize_stack_frame_flags): Always call
17304 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17305 ix86_get_frame_size.
17306 * config/i386/i386.h (machine_function): Add stack_frame_required.
17307
17308 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17309
17310 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17311
17312 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17313
17314 * common/config/aarch64/aarch64-common.c
17315 (struct aarch64_option_extension, struct processor_name_to_arch,
17316 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17317 aarch64_contains_opt,
17318 aarch64_get_extension_string_for_isa_flags): Change type of
17319 variables storing flags to uint64_t.
17320 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17321 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17322 * config/aarch64/aarch64.c (struct processor,
17323 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17324 aarch64_validate_march, aarch64_override_options,
17325 aarch64_option_print, aarch64_handle_attr_isa_flags,
17326 aarch64_declare_function_name, aarch64_start_file): Make flag
17327 variables uint64_t.
17328 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17329 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17330 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17331 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17332 * config/aarch64/driver-aarch64.c
17333 (struct aarch64_arch_extension, struct aarch64_core_data,
17334 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17335 flag variables uint64_t.
17336 * doc/invoke.texi: Add documentation for new arguments.
17337
17338 2019-05-22 Richard Biener <rguenther@suse.de>
17339
17340 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17341 rewrite ...
17342 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17343
17344 2019-05-22 Martin Liska <mliska@suse.cz>
17345
17346 PR lto/90500
17347 * doc/extend.texi: Document the change.
17348
17349 2019-05-22 Richard Biener <rguenther@suse.de>
17350
17351 PR tree-optimization/90450
17352 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17353 (mem_ref_hasher::equal): Check it.
17354 (mem_ref_alloc): Initialize it.
17355 (gather_mem_refs_stmt): Set it.
17356
17357 2019-05-22 Richard Biener <rguenther@suse.de>
17358
17359 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17360 Add ABS_EXPR.
17361 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17362 as ABSU_EXPR.
17363
17364 2019-05-22 Alan Modra <amodra@gmail.com>
17365
17366 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17367 (ASM_CPU_SPEC): Conditionally add -many.
17368 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17369 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17370 (rs6000_file_start): ..extracted from here, and modified to
17371 test all ISA bits.
17372 (rs6000_output_function_prologue): Emit .machine as necessary.
17373
17374 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17375
17376 PR middle-end/90553
17377 * ira-lives.c (process_bb_node_lives): Consider defs
17378 for a call insn to be die before the call, not after.
17379
17380 * function.c (assign_parm_setup_block): Raise alignment of
17381 stacked parameter only for STRICT_ALIGNMENT targets.
17382
17383 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17384
17385 * config/rs6000/constraints.md (define_register_constraint "wz"):
17386 Delete.
17387 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17388 RS6000_CONSTRAINT_wz.
17389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17390 (rs6000_init_hard_regno_mode_ok): Adjust.
17391 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17392 * doc/md.texi (Machine Constraints): Adjust.
17393
17394 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17395
17396 * config/rs6000/constraints.md (define_register_constraint "wl"):
17397 Delete.
17398 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17399 RS6000_CONSTRAINT_wl.
17400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17401 (rs6000_init_hard_regno_mode_ok): Adjust.
17402 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17403 * doc/md.texi (Machine Constraints): Adjust.
17404
17405 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17406
17407 * config/rs6000/constraints.md (define_register_constraint "wm"):
17408 Delete.
17409 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17410 RS6000_CONSTRAINT_wm.
17411 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17412 (rs6000_init_hard_regno_mode_ok): Adjust.
17413 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17414 * doc/md.texi (Machine Constraints): Adjust.
17415
17416 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17417
17418 * config/rs6000/constraints.md (define_register_constraint "wk"):
17419 Delete.
17420 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17421 RS6000_CONSTRAINT_wk.
17422 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17423 (rs6000_init_hard_regno_mode_ok): Adjust.
17424 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17425 * doc/md.texi (Machine Constraints): Adjust.
17426
17427 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17428
17429 * config/rs6000/constraints.md (define_register_constraint "wj"):
17430 Delete.
17431 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17432 RS6000_CONSTRAINT_wj.
17433 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17434 (rs6000_init_hard_regno_mode_ok): Adjust.
17435 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17436 (VS_64dm): Delete.
17437 * config/rs6000/vsx.md: Ditto.
17438 * doc/md.texi (Machine Constraints): Adjust.
17439
17440 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17441
17442 * config/rs6000/constraints.md (define_register_constraint "wh"):
17443 Delete.
17444 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17445 RS6000_CONSTRAINT_wh.
17446 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17447 (rs6000_init_hard_regno_mode_ok): Adjust.
17448 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17449 * doc/md.texi (Machine Constraints): Adjust.
17450
17451 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17452
17453 PR target/90547
17454 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17455 Avoid calling gen_lowpart with CONST operand.
17456
17457 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17458
17459 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17460 field template_last_to_copy.
17461 (ssa_create_duplicates): Set it, and use it. Attempt to
17462 preserve more debug stmts.
17463
17464 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17465
17466 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17467 (signbit<mode>2): New expander
17468
17469 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17470
17471 PR bootstrap/87338
17472 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17473 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17474
17475 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17476
17477 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17478 %ebx and %ecx bafore calling cpuid with leaf 1 or
17479 non-constant leaf argument.
17480
17481 2019-05-21 Alan Modra <amodra@gmail.com>
17482
17483 PR target/90545
17484 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17485 power9 direct move cost.
17486
17487 2019-05-21 Richard Biener <rguenther@suse.de>
17488
17489 PR middle-end/90510
17490 * fold-const.c (fold_read_from_vector): New function.
17491 * fold-const.h (fold_read_from_vector): Declare.
17492 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17493 single-element insert permutations. Canonicalize selector
17494 further and fix issue with last commit.
17495
17496 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17497
17498 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17499 parameter with default value false to declaration.
17500 (split_edges_for_insertion): New inline function. Wrapper for
17501 split_critical_edges with for_edge_insertion_p = true.
17502 * tree-cfg.c (split_critical_edges): Don't split non-critical
17503 edges if for_edge_insertion_p is false. Fix whitespace.
17504 * tree-ssa-pre.c (pass_pre::execute): Call
17505 split_edges_for_insertion instead of split_critical_edges.
17506 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17507 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17508 (pass_data_sink_code): Update function name in the comment.
17509
17510 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17511
17512 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17513 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17514 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17515 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17516 positives.
17517
17518 2019-05-21 Martin Liska <mliska@suse.cz>
17519
17520 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17521 an extra newline.
17522 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17523 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17524 vec_lvsr.
17525 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17526 Quote a C type.
17527 (rs6000_function_arg): Likewise.
17528 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17529 (rs6000_expand_ternop_builtin): Use interval syntax.
17530 (get_element_number): Likewise.
17531 (altivec_expand_builtin): Likewise.
17532 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17533
17534 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17535
17536 PR c++/59813
17537 PR target/90418
17538 * function.h (struct function): Add calls_eh_return member.
17539 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17540 gimplifying __builtin_eh_return call.
17541 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17542 to cfun.
17543 (expand_call_inline): Or in src_cfun->calls_eh_return into
17544 dst_cfun->calls_eh_return.
17545 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17546 cfun->calls_eh_return.
17547 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17548 * lto-streamer-out.c (output_struct_function_base): Write
17549 calls_eh_return.
17550
17551 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17552
17553 PR rtl-optimization/43147
17554 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17555 IX86_BUILTIN_SHUFPD.
17556
17557 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17558
17559 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17560 (refs_may_alias_p_1): ... here; update stats.
17561 (refs_may_alias_p): Do not update stats here.
17562
17563 2019-05-20 Richard Biener <rguenther@suse.de>
17564
17565 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17566 doesn't produce pointers.
17567 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17568 the first operand points to.
17569
17570 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17571
17572 * tree-ssa-alias.c (compare_sizes): New function.
17573 (sompare_type_sizes): New function
17574 (aliasing_component_refs_p): Use it.
17575 (indirect_ref_may_alias_decl_p): Likewise.
17576
17577 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17578
17579 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17580
17581 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17582
17583 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17584 (LIBLSAN_EARLY_SPEC): Likewise.
17585 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17586
17587 2019-05-20 Martin Liska <mliska@suse.cz>
17588
17589 * config/i386/i386.c (ix86_libc_has_fast_function):
17590 Add ATTRIBUTE_UNUSED for the argument.
17591
17592 2019-05-20 Richard Biener <rguenther@suse.de>
17593
17594 * gimple-match-head.c: Include vec-perm-indices.h.
17595 * generic-match-head.c: Likewise.
17596 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17597 is included.
17598 * fold-const.c (fold_vec_perm): Export.
17599 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17600 (match.pd): ...here.
17601
17602 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17603
17604 * cfgloop.h (struct loop): Add simdlen member.
17605 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17606 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17607 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17608 as new argument to autovectorize_vector_sizes target hook. If
17609 loop->simdlen, pick up vector size where the vectorization factor
17610 is equal to loop->simd, and if there is none, fall back to the first
17611 successful one.
17612 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17613 caller.
17614 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17615 * omp-general.c (omp_max_vf): Likewise.
17616 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17617 * tree-vect-slp.c (vect_slp_bb): Likewise.
17618 * target.def (autovectorize_vector_sizes): Add ALL argument and
17619 document it.
17620 * doc/tm.texi: Adjust documentation.
17621 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17622 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17623 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17624 bool argument.
17625 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17626 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17627 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17628 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17629 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17630 preferred vector size is not 512-bit or 256-bit, just put those
17631 unpreferred ones last.
17632
17633 2019-05-20 Martin Liska <mliska@suse.cz>
17634
17635 * targhooks.c (default_libc_has_fast_function): New function.
17636 * targhooks.h (default_libc_has_fast_function): Likewise.
17637
17638 2019-05-20 Martin Liska <mliska@suse.cz>
17639
17640 PR middle-end/90263
17641 * builtins.c (expand_builtin_memory_copy_args): When having a
17642 target with fast mempcpy implementation do now use memcpy.
17643 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17644 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17645 * doc/tm.texi: Likewise.
17646 * doc/tm.texi.in: Likewise.
17647 * target.def:
17648 * expr.c (emit_block_move_hints): Add 2 new arguments.
17649 * expr.h (emit_block_move_hints): Bail out when libcall
17650 to memcpy would be used.
17651
17652 2019-05-20 Martin Liska <mliska@suse.cz>
17653
17654 * profile-count.c: Add vertical spacing in order
17655 to separate functions.
17656 * profile-count.h: Likewise.
17657
17658 2019-05-20 Martin Liska <mliska@suse.cz>
17659
17660 * profile-count.h: Do not use full qualified
17661 names if possible.
17662 * profile-count.c (profile_count::to_frequency): Likewise.
17663
17664 2019-05-20 Martin Liska <mliska@suse.cz>
17665
17666 * profile-count.h (enum profile_quality): Use capital letters
17667 for enum value names. Use the adjusted names.
17668 * profile-count.c: Use the adjusted names.
17669
17670 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17671
17672 * config/rs6000/constraints.md (define_register_constraint "wH"):
17673 Delete.
17674 (define_register_constraint "wI"): Delete.
17675 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17676 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17677 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17678 (rs6000_init_hard_regno_mode_ok): Adjust.
17679 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17680 resp. "d", or with "wa" as appropriate, all with "p8v".
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 "wy"):
17687 Delete.
17688 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17689 RS6000_CONSTRAINT_wy.
17690 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17691 (rs6000_init_hard_regno_mode_ok): Adjust.
17692 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17693 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17694 (define_mode_attr Fisa): New.
17695 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17696 * doc/md.texi (Machine Constraints): Adjust.
17697
17698 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17699
17700 * config/rs6000/constraints.md (define_register_constraint "wu"):
17701 Delete.
17702 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17703 RS6000_CONSTRAINT_wu.
17704 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17705 (rs6000_init_hard_regno_mode_ok): Adjust.
17706 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17707 both with "p8v".
17708 (define_mode_attr Fa): Delete.
17709 * config/rs6000/vsx.md: Ditto.
17710 * doc/md.texi (Machine Constraints): Adjust.
17711
17712 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17713
17714 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17715 Delete.
17716 (define_register_constraint "wK"): Delete.
17717 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17718 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17719 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17720 (rs6000_init_hard_regno_mode_ok): Adjust.
17721 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17722 Replace "wK" constraint by "wH" with "p9v".
17723 * config/rs6000/vsx.md: Ditto.
17724 * doc/md.texi (Machine Constraints): Adjust.
17725
17726 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17727
17728 * config/rs6000/constraints.md (define_register_constraint "wb"):
17729 Delete.
17730 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17731 RS6000_CONSTRAINT_wb.
17732 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17733 (rs6000_init_hard_regno_mode_ok): Adjust.
17734 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17735 * config/rs6000/vsx.md: Ditto.
17736 * doc/md.texi (Machine Constraints): Adjust.
17737
17738 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17739
17740 * config/rs6000/constraints.md (define_register_constraint "wo"):
17741 Delete.
17742 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17743 RS6000_CONSTRAINT_wo.
17744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17745 (rs6000_init_hard_regno_mode_ok): Adjust.
17746 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17747 * config/rs6000/altivec.md: Ditto.
17748 * doc/md.texi (Machine Constraints): Adjust.
17749
17750 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17751
17752 * config/darwin-c.c (darwin_register_objc_includes): Do not
17753 prepend the sysroot when building gnu-runtime header search
17754 paths.
17755
17756 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17757
17758 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17759 instead of direct output of the asm.
17760
17761 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17762
17763 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17764 argument to be type bool (was int before).
17765 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17766 at first use. Use type bool for some variables. Fix a theoretical
17767 eh_return bug for svr4.
17768
17769 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17770
17771 * config/rs6000/rs6000.md (isa): New attribute.
17772 (enabled): New attribute.
17773
17774 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17775
17776 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17777 assemble_start_function and assemble_end_function.
17778
17779 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17780
17781 PR middle-end/89433
17782 * omp-general.c (oacc_verify_routine_clauses): Change formal
17783 parameters. Add checking if already marked with an OpenACC
17784 'routine' directive. Adjust all users.
17785
17786 PR middle-end/89433
17787 * omp-general.c (oacc_build_routine_dims): Move some of its
17788 processing into...
17789 (oacc_verify_routine_clauses): ... this new function.
17790 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17791
17792 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17793
17794 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17795 formating of picbase labels to match other ports.
17796
17797 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17798
17799 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17800 in the generated code.
17801
17802 2019-05-16 Martin Sebor <msebor@redhat.com>
17803
17804 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17805 identifiers, keywords, operators, and types in diagnostics. Correct
17806 quoting, spelling, and sentence capitalization issues.
17807 (expand_builtin_atomic_is_lock_free): Same.
17808 (fold_builtin_next_arg): Same.
17809 * cfgexpand.c (expand_one_var): Same.
17810 (tree_conflicts_with_clobbers_p): Same.
17811 (expand_asm_stmt): Same.
17812 (verify_loop_structure): Same.
17813 * cgraphunit.c (process_function_and_variable_attributes): Same.
17814 * collect-utils.c (collect_execute): Same.
17815 * collect2.c (maybe_run_lto_and_relink): Same.
17816 (is_lto_object_file): Same.
17817 (scan_prog_file): Same.
17818 * convert.c (convert_to_real_1): Same.
17819 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17820 * except.c (verify_eh_tree): Same.
17821 * gcc.c (execute): Same.
17822 (eval_spec_function): Same.
17823 (run_attempt): Same.
17824 (driver::set_up_specs): Same.
17825 (compare_debug_auxbase_opt_spec_function): Same.
17826 * gcov-tool.c (unlink_gcda_file): Same.
17827 (do_merge): Same.
17828 (do_rewrite): Same.
17829 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17830 * gimplify.c (gimplify_asm_expr): Same.
17831 (gimplify_adjust_omp_clauses): Same.
17832 * hsa-gen.c (gen_hsa_addr_insns): Same.
17833 (gen_hsa_insns_for_load): Same.
17834 (gen_hsa_cmp_insn_from_gimple): Same.
17835 (gen_hsa_insns_for_operation_assignment): Same.
17836 (gen_get_level): Same.
17837 (gen_hsa_alloca): Same.
17838 (omp_simple_builtin::generate): Same.
17839 (gen_hsa_atomic_for_builtin): Same.
17840 (gen_hsa_insns_for_call): Same.
17841 * input.c (dump_location_info): Same.
17842 * ipa-devirt.c (compare_virtual_tables): Same.
17843 * ira.c (ira_setup_eliminable_regset): Same.
17844 * lra-assigns.c (lra_assign): Same.
17845 * lra-constraints.c (lra_constraints): Same.
17846 * lto-streamer-in.c (lto_input_mode_table): Same.
17847 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17848 (merge_and_complain): Same.
17849 (compile_offload_image): Same.
17850 (compile_images_for_offload_targets): Same.
17851 (debug_objcopy): Same.
17852 (run_gcc): Same.
17853 (main): Same.
17854 * opts.c (print_specific_help): Same.
17855 (parse_no_sanitize_attribute): Same.
17856 (print_help): Same.
17857 (handle_param): Same.
17858 * plugin.c (add_new_plugin): Same.
17859 (parse_plugin_arg_opt): Same.
17860 (try_init_one_plugin): Same.
17861 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17862 operators, and types in diagnostics. Correct quoting and spelling
17863 issues.
17864 * read-rtl-function.c (parse_edge_flag_token): Same.
17865 (function_reader::parse_enum_value): Same.
17866 * reg-stack.c (check_asm_stack_operands): Same.
17867 * regcprop.c (validate_value_data): Same.
17868 * sched-rgn.c (make_pass_sched_fusion): Same.
17869 * stmt.c (check_unique_operand_names): Same.
17870 * targhooks.c (default_target_option_pragma_parse): Same.
17871 * tlink.c (recompile_files): Same.
17872 * toplev.c (process_options): Same.
17873 (do_compile): Same.
17874 * trans-mem.c (diagnose_tm_1): Same.
17875 (ipa_tm_scan_irr_block): Same.
17876 (ipa_tm_diagnose_transaction): Same.
17877 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17878 format a tree code name in a diagnostic.
17879 (verify_types_in_gimple_min_lval): Same.
17880 (verify_types_in_gimple_reference): Same.
17881 (verify_gimple_call): Same.
17882 (verify_gimple_assign_unary): Same.
17883 (verify_gimple_assign_binary): Same.
17884 (verify_gimple_assign_ternary): Same.
17885 (verify_gimple_assign_single): Same.
17886 (verify_gimple_switch): Same.
17887 (verify_gimple_label): Same.
17888 (verify_gimple_phi): Same.
17889 (verify_gimple_in_seq): Same.
17890 (verify_eh_throw_stmt_node): Same.
17891 (collect_subblocks): Same.
17892 (gimple_verify_flow_info): Same.
17893 (do_warn_unused_result): Same.
17894 * tree-inline.c (expand_call_inline): Same.
17895 * tree-into-ssa.c (update_ssa): Same.
17896 * tree.c (tree_int_cst_elt_check_failed): Same.
17897 (tree_vec_elt_check_failed): Same.
17898 (omp_clause_operand_check_failed): Same.
17899 (verify_type_variant): Same.
17900 (verify_type): Same.
17901 * value-prof.c (verify_histograms): Same.
17902 * varasm.c (assemble_start_function): Same.
17903
17904 2019-05-16 Martin Sebor <msebor@redhat.com>
17905
17906 * config/i386/i386-expand.c (get_element_number): Quote keywords
17907 and other internal names in diagnostics. Adjust other diagnostic
17908 formatting issues noted by -Wformat-diag.
17909 * config/i386/i386-features.c
17910 (ix86_mangle_function_version_assembler_name): Same.
17911 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17912 * config/i386/i386.c (ix86_function_type_abi): Same.
17913 (ix86_function_ms_hook_prologue): Same.
17914 (classify_argument): Same.
17915 (ix86_expand_prologue): Same.
17916 (ix86_md_asm_adjust): Same.
17917 (ix86_memmodel_check): Same.
17918
17919 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17920
17921 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17922 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17923 and fpxx modes.
17924
17925 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17926
17927 PR target/90497
17928 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17929 intrinsics without SSE/SSE2/SSSE3.
17930 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17931 check.
17932 (*mmx_uavgv8qi3): Likewise.
17933
17934 2019-05-17 Richard Biener <rguenther@suse.de>
17935
17936 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17937 VEC_PERM_EXPR as __VEC_PERM with -gimple.
17938
17939 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
17940
17941 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17942 vec_sldw insn pattern.
17943
17944 2019-05-17 Richard Biener <rguenther@suse.de>
17945
17946 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17947
17948 2019-05-17 Martin Liska <mliska@suse.cz>
17949
17950 PR driver/90496
17951 * toplev.c (output_stack_usage): With LTO and sanitizer it
17952 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17953 has no file location.
17954
17955 2019-05-16 Jakub Jelinek <jakub@redhat.com>
17956
17957 PR c++/90484
17958 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17959 sz0 is equal to sz1, instead return false in that case.
17960
17961 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17962 has non-constant expression, force sctx.lane and use two
17963 argument IFN_GOMP_SIMD_LANE instead of single argument.
17964 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17965 two argument IFN_GOMP_SIMD_LANE without lhs.
17966 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
17967 member.
17968 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
17969 Define.
17970 (LOOP_REQUIRES_VERSIONING): Or in
17971 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
17972 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
17973 simd_if_cond.
17974 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
17975 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
17976 from simd if clause if needed.
17977
17978 2019-05-16 Richard Biener <rguenther@suse.de>
17979
17980 * tree-affine.c (expr_to_aff_combination): New function split
17981 out from...
17982 (tree_to_aff_combination): ... here.
17983 (aff_combination_expand): Avoid building a GENERIC tree.
17984
17985 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
17986
17987 * cgraphunit.c (cgraph_node::expand_thunk): Remove
17988 assemble_start_function and assemble_end_function calls.
17989 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
17990 assemble_start_function and assemble_end_function.
17991 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
17992 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
17993 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
17994 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
17995 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
17996 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
17997 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
17998 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
17999 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18000 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18001 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18002 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18003 Likewise.
18004 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18005 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18006 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18007 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18008 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18009 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18010 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18011 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18012 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18013 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18014 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18015 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18016 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18017 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18018 Likewise.
18019 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18020 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18021 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18022
18023 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18024
18025 * tree-ssa-alias.c (alias_stats): Add
18026 aliasing_component_refs_p_may_alias and
18027 aliasing_component_refs_p_no_alias.
18028 (dump_alias_stats): Print aliasing_component_refs_p stats.
18029 (aliasing_component_refs_p): Update stats.
18030
18031 2019-05-16 Martin Liska <mliska@suse.cz>
18032
18033 PR lto/90500
18034 * multiple_target.c (expand_target_clones): Do not allow
18035 target_clones being used with a symbol that is an alias.
18036
18037 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18038
18039 PR tree-optimization/90394
18040 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18041 positives rather than ICE for cases where (code2 == NE_EXPR
18042 && code1 == BIT_AND_EXPR).
18043
18044 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18045
18046 PR fortran/90329
18047 * tree-core.h (struct tree_decl_common): Document
18048 decl_nonshareable_flag for PARM_DECLs.
18049 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18050 * calls.c (expand_call): Don't try tail call if caller
18051 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18052 passed on the stack and callee needs to pass any arguments on the
18053 stack.
18054 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18055 else if instead of series of mutually exclusive ifs. Handle
18056 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18057 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18058
18059 * lto-streamer.h (LTO_major_version): Bump to 9.
18060
18061 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18062
18063 PR tree-optimization/90106
18064 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18065 new parameter as new internal function call, also move it to new
18066 basic block.
18067 (use_internal_fn): Pass internal function call to
18068 shrink_wrap_one_built_in_call_with_conds.
18069
18070 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18071
18072 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18073 max_vf to 1.
18074 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18075 safelen_int and set loop->dont_vectorize.
18076
18077 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18078
18079 PR target/89021
18080 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18081 SSE/SSE2/SSSE3.
18082 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18083 Likewise.
18084 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18085 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18086 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18087 is defined.
18088
18089 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18090
18091 PR target/89021
18092 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18093 define_insn_and_split to support SSE emulation.
18094 (*vec_extractv2sf_0): Likewise.
18095 (*vec_extractv2sf_1): Likewise.
18096 (*vec_extractv2si_0): Likewise.
18097 (*vec_extractv2si_1): Likewise.
18098 (*vec_extractv2si_zext_mem): Likewise.
18099 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18100 (vec_extractv2sf_1 splitter): Likewise.
18101 (vec_extractv2sfsf): Likewise.
18102 (vec_setv2si): Likewise.
18103 (vec_extractv2si_1 splitter): Likewise.
18104 (vec_extractv2sisi): Likewise.
18105 (vec_setv4hi): Likewise.
18106 (vec_extractv4hihi): Likewise.
18107 (vec_setv8qi): Likewise.
18108 (vec_extractv8qiqi): Likewise.
18109 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18110 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18111 (vec_extractv2sisi): Likewise.
18112 (vec_extractv4hihi): Likewise.
18113 (vec_extractv8qiqi): Likewise.
18114 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18115 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18116 (vec_initv2sisi): Likewise.
18117 (vec_initv4hihi): Likewise.
18118 (vec_initv8qiqi): Likewise.
18119 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18120 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18121 (vec_setv4hi): Likewise.
18122 (vec_setv8qi): Likewise.
18123
18124 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18125
18126 PR target/89021
18127 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18128 TARGET_MMX_WITH_SSE.
18129 (MMXMODE:*mov<mode>_internal): Likewise.
18130 (MMXMODE:movmisalign<mode>): Likewise.
18131
18132 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18133
18134 PR target/89021
18135 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18136 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18137 (sse2_cvtpd2pi): Ditto.
18138 (sse2_cvttpd2pi): Ditto.
18139 (*vec_concatv2sf_sse4_1): Ditto.
18140 (*vec_concatv2sf_sse): Ditto.
18141 (*vec_concatv2si_sse4_1): Ditto.
18142 (*vec_concatv2si): Ditto.
18143 (*vec_concatv4si_0): Ditto.
18144 (*vec_concatv2di_0): Ditto.
18145
18146 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18147
18148 PR target/89021
18149 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18150
18151 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18152
18153 PR target/89021
18154 * config/i386/sse.md (ssse3_palignrdi): Changed to
18155 define_insn_and_split to support SSE emulation.
18156
18157 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18158
18159 PR target/89021
18160 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18161
18162 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18163
18164 PR target/89021
18165 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18166 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18167 SSE emulation.
18168
18169 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18170
18171 PR target/89021
18172 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18173 or TARGET_MMX_WITH_SSE.
18174 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18175
18176 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18177
18178 PR target/89021
18179 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18180
18181 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18182
18183 PR target/89021
18184 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18185 Changed to define_insn_and_split to support SSE emulation.
18186
18187 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18188
18189 PR target/89021
18190 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18191 Changed to define_insn_and_split to support SSE emulation.
18192
18193 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18194
18195 PR target/89021
18196 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18197 (*mmx_<emms>): This.
18198 (mmx_<emms>): New expander.
18199
18200 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18201
18202 PR target/89021
18203 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18204 support.
18205 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18206
18207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18208
18209 PR target/89021
18210 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18211
18212 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18213
18214 PR target/89021
18215 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18216
18217 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18218
18219 PR target/89021
18220 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18221 TARGET_MMX_WITH_SSE.
18222 (*mmx_uavgv4hi3): Add SSE emulation.
18223
18224 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18225
18226 PR target/89021
18227 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18228 and TARGET_MMX_WITH_SSE.
18229 (*mmx_uavgv8qi3): Add SSE emulation.
18230
18231 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18232
18233 PR target/89021
18234 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18235 maskmovdqu for __MMX_WITH_SSE__.
18236
18237 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18238
18239 PR target/89021
18240 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18241 TARGET_MMX and TARGET_MMX_WITH_SSE.
18242 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18243
18244 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18245
18246 PR target/89021
18247 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18248 define_insn_and_split to support SSE emulation.
18249
18250 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18251
18252 PR target/89021
18253 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18254 and TARGET_MMX_WITH_SSE.
18255 (mmx_<code>v8qi3): Likewise.
18256 (smaxmin:<code>v4hi3): New.
18257 (umaxmin:<code>v8qi3): Likewise.
18258 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18259 (umaxmin:*mmx_<code>v8qi3): Likewise.
18260
18261 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18262
18263 PR target/89021
18264 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18265 TARGET_MMX_WITH_SSE.
18266 (*mmx_pinsrw): Add SSE emulation.
18267
18268 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18269
18270 PR target/89021
18271 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18272
18273 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18274
18275 PR target/89021
18276 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18277 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18278 SSE emulation.
18279
18280 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18281
18282 PR target/89021
18283 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18284 (sse_cvttps2pi): Likewise.
18285
18286 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18287
18288 PR target/89021
18289 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18290 TARGET_MMX_WITH_SSE.
18291 (mmx_pshufw_1): Add SSE emulation.
18292 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18293 TARGET_MMX_WITH_SSE to support SSE emulation.
18294
18295 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18296
18297 PR target/89021
18298 * config/i386/constraints.md (Yw): New constraint.
18299 * config/i386/mmx.md (*vec_dupv2si): Changed to
18300 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18301 support SSE emulation.
18302
18303 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18304
18305 PR target/89021
18306 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18307 TARGET_MMX_WITH_SSE.
18308 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18309 support.
18310 (mmx_gt<mode>3): Likewise.
18311
18312 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18313
18314 PR target/89021
18315 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18316 TARGET_MMX_WITH_SSE. Add SSE support.
18317
18318 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18319
18320 PR target/89021
18321 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18322 TARGET_MMX_WITH_SSE.
18323 (any_logic:<code><mode>3): New.
18324 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18325 Add SSE support.
18326
18327 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18328
18329 PR target/89021
18330 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18331 TARGET_MMX_WITH_SSE. Add SSE emulation.
18332 (mmx_<shift_insn><mode>3): Likewise.
18333 (ashr<mode>3): New.
18334 (<shift_insn><mode>3): Likewise.
18335
18336 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18337
18338 PR target/89021
18339 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18340 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18341
18342 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18343
18344 PR target/89021
18345 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18346 TARGET_MMX_WITH_SSE.
18347 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18348 SSE support.
18349
18350 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18351
18352 PR target/89021
18353 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18354 TARGET_MMX_WITH_SSE.
18355 (mulv4hi3): New.
18356 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18357 support.
18358
18359 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18360
18361 PR target/89021
18362 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18363 (plusminus:mmx_<plusminus_insn><mode>3): Check
18364 TARGET_MMX_WITH_SSE.
18365 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18366 (<plusminus_insn><mode>3): New.
18367 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18368 (*mmx_<plusminus_insn><mode>3): Likewise.
18369
18370 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18371
18372 PR target/89021
18373 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18374 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18375 prototype.
18376 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18377 define_insn_and_split to support SSE emulation.
18378 (mmx_punpcklbw): Likewise.
18379 (mmx_punpckhwd): Likewise.
18380 (mmx_punpcklwd): Likewise.
18381 (mmx_punpckhdq): Likewise.
18382 (mmx_punpckldq): Likewise.
18383
18384 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18385 Uros Bizjak <ubizjak@gmail.com>
18386
18387 PR target/89021
18388 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18389 New function.
18390 (ix86_split_mmx_pack): Likewise.
18391 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18392 New prototype.
18393 (ix86_split_mmx_pack): Likewise.
18394 * config/i386/i386.md (mmx_isa): New.
18395 (enabled): Also check mmx_isa.
18396 * config/i386/mmx.md (any_s_truncate): New code iterator.
18397 (s_trunsuffix): New code attr.
18398 (mmx_packsswb): Removed.
18399 (mmx_packssdw): Likewise.
18400 (mmx_packuswb): Likewise.
18401 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18402 MMX packsswb/packuswb with SSE2.
18403 (mmx_packssdw): Likewise.
18404 * config/i386/predicates.md (register_mmxmem_operand): New.
18405
18406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18407
18408 PR target/89021
18409 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18410 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18411 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18412 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18413 (ix86_vector_mode_supported_p): Likewise.
18414 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18415
18416 2019-05-15 Martin Liska <mliska@suse.cz>
18417
18418 PR middle-end/90478
18419 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18420 Check for overflow.
18421
18422 2019-05-15 Richard Biener <rguenther@suse.de>
18423
18424 * tree-into-ssa.c (pass_build_ssa::execute): Run
18425 update_address_taken before going into SSA.
18426
18427 2019-05-15 Richard Biener <rguenther@suse.de>
18428
18429 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18430 as __BIT_FIELD_REF with type with -gimple.
18431
18432 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18433
18434 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18435 semantically equivalent branches (left over after prior refactorings).
18436
18437 2019-05-15 Richard Biener <rguenther@suse.de>
18438
18439 PR tree-optimization/88828
18440 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18441 bogus check.
18442
18443 2019-05-14 Richard Biener <rguenther@suse.de>
18444
18445 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18446 as __VIEW_CONVERT with -gimple.
18447
18448 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18449
18450 PR target/82920
18451 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18452 Darwin.
18453
18454 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18455
18456 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18457 define_split to become a define_insn_and_split.
18458
18459 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18460
18461 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18462 arguments.
18463 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18464 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18465 (sibcall_epilogue): Adjust.
18466 (epilogue): Adjust.
18467
18468 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18469
18470 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18471 to unsupported ones.
18472 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18473 * config.host: Likewise.
18474 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18475 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18476 __svr4__]: Remove "brand" fallback.
18477 [!KSTAT_DATA_STRING]: Remove.
18478 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18479 to *-*-solaris2*.
18480 (comdat_group): Likewise.
18481 (set_have_as_tls): Likewise.
18482 (gcc_cv_target_dl_iterate_phdr): Likewise.
18483 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18484 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18485 * configure: Regenerate.
18486 * doc/install.texi: Simplify Solaris target triplets.
18487 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18488 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18489 Remove Solaris 10 references.
18490 Remove obsolete Solaris bug reference.
18491 (Specific, sparc-sun-solaris2.10): Remove.
18492
18493 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18494
18495 * config/i386/i386.md (any_div): New code iterator.
18496 (paired_mod): New code attribute.
18497 (sgnprefix): Handle DIV and UDIV RTXes.
18498 (u): Ditto.
18499 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18500 and udivmod<mode>4 patterns using any_div code iterator.
18501 (divmod splitters): Macroize splitters using any_div code iterator.
18502 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18503 (*udivmodsi4_pow2_zext_2): Ditto.
18504 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18505 and *udivmod<mode>4_noext patterns using any_div code iterator.
18506 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18507 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18508 patterns using any_div code iterator.
18509 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18510 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18511 patterns using any_div code iterator.
18512 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18513 udivmodhiqi3 patterns using any_extend code iterator.
18514
18515 2019-05-14 Richard Biener <rguenther@suse.de>
18516 H.J. Lu <hongjiu.lu@intel.com>
18517
18518 PR tree-optimization/88828
18519 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18520 permuting in a single non-constant element not extracted
18521 from a vector.
18522
18523 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18524
18525 * internal-fn.def (SIGNBIT): New.
18526 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18527 defined.
18528 (signbitv4sf2): Likewise.
18529
18530 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18531
18532 PR target/90357
18533 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18534 next insn when the SRC reg is dead.
18535
18536 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18537
18538 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18539 (alloc_cand_and_find_basis): Ditto.
18540 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18541 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18542 (create_add_imm_cand, slsr_process_cast): Ditto.
18543 (slsr_process_copy, replace_mult_candidate): Ditto.
18544 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18545 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18546 (pass_strength_reduction::execute): Init the first NULL element.
18547
18548 2019-05-13 Nathan Sidwell <nathan@acm.org>
18549
18550 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18551 (run_attempt): Reformat line break.
18552
18553 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18554
18555 PR target/90418
18556 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18557 data registers in sibcall epilogues.
18558 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18559
18560 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18561
18562 PR target/89221
18563 * configure.ac (--enable-frame-pointer):
18564 Disable by default for cygwin and mingw.
18565 * configure: Regenerate.
18566
18567 2019-05-13 Nathan Sidwell <nathan@acm.org>
18568
18569 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18570 piece of code.
18571 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18572 (gen_member_die): Move abstract origin check earlier. Only VARs
18573 can be static_inline_p. Simplify splicing control flow.
18574
18575 2019-05-13 Richard Biener <rguenther@suse.de>
18576
18577 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18578 VIEW_CONVERT_EXPR.
18579 (vect_build_slp_tree_1): Likewise.
18580
18581 2019-05-13 Richard Biener <rguenther@suse.de>
18582
18583 PR tree-optimization/90402
18584 * tree-if-conv.c (tree_if_conversion): Value number only
18585 the loop body by making the latch an exit of the region
18586 as well.
18587 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18588 processing PHIs.
18589 (do_rpo_vn): Deal with multiple edges into the entry block
18590 that are not backedges inside the region by skipping PHIs
18591 of the entry block.
18592
18593 2019-05-13 Richard Biener <rguenther@suse.de>
18594
18595 PR tree-optimization/90316
18596 * tree-ssa-pre.c (insert_aux): Fold into ...
18597 (insert): ... this function. Use a RPO walk to reduce the
18598 number of required iterations.
18599
18600 2019-05-13 Martin Liska <mliska@suse.cz>
18601
18602 PR tree-optimization/90416
18603 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18604 string instead of passing the second part as va_arg argument.
18605
18606 2019-05-13 Martin Liska <mliska@suse.cz>
18607
18608 PR gcov-profile/90380
18609 * gcov.c (handle_cycle): Do not support zero cycle count,
18610 it should not be possible.
18611 (path_contains_zero_cycle_arc): New function.
18612 (circuit): Ignore zero cycle arc counts.
18613
18614 2019-05-13 Martin Liska <mliska@suse.cz>
18615
18616 PR gcov-profile/90380
18617 * gcov.c (enum loop_type): Remove the enum and
18618 the operator.
18619 (handle_cycle): Assert that we should not reach
18620 a negative count.
18621 (circuit): Use loop_found instead of a tri-state loop_type.
18622 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18623 happen.
18624
18625 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18626
18627 PR target/82920
18628 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18629 (ix86_output_indirect_branch_via_reg): Use output mechanism
18630 accounting for __USER_LABEL_PREFIX__.
18631 (ix86_output_indirect_branch_via_push): Likewise.
18632 (ix86_output_function_return): Likewise.
18633 (ix86_output_indirect_function_return): Likewise.
18634
18635 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18636
18637 * doc/md.texi: Document use of code attributes in rtx patterns.
18638 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18639 * read-rtl.c (find_code): Split out search loops into...
18640 (maybe_find_code): ...this new function.
18641 (check_code_iterator): Make the error message more informative.
18642 (check_code_attribute): New function.
18643 (rtx_reader::rtx_alloc_for_name): Likewise.
18644 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18645 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18646 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18647 <max_opp> directly as an rtx code instead of via a match_operator.
18648 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18649 (<su>abd<mode>_3): Update accordingly.
18650
18651 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18652
18653 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18654 is given, print the state of the EH "save world" computation for
18655 Darwin.
18656
18657 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18658
18659 PR c++/59813
18660 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18661 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18662
18663 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18664
18665 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18666 Use pinsrd for TARGET_SSE4_1.
18667 * config/i386/sse.md (movdi_to_sse): Ditto.
18668
18669 2019-05-10 Richard Biener <rguenther@suse.de>
18670
18671 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18672 (do_rpo_vn): Initialize next_value_id.
18673
18674 2019-05-10 Martin Liska <mliska@suse.cz>
18675
18676 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18677 Fix plural form.
18678
18679 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18680
18681 PR tree-optimization/90385
18682 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18683 arguments of the exit phis.
18684
18685 PR c++/90383
18686 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18687 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18688 id->do_not_fold.
18689 (copy_tree_body_r): Likewise.
18690 (copy_fn): Set id.do_not_fold to true.
18691
18692 2019-05-10 Martin Liska <mliska@suse.cz>
18693
18694 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18695 Reapply changes from r269790.
18696
18697 2019-05-10 Martin Liska <mliska@suse.cz>
18698
18699 PR middle-end/90340
18700 * doc/invoke.texi: New params.
18701 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18702 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18703 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18704 Use it.
18705 * tree-switch-conversion.h (struct jump_table_cluster):
18706 Likewise.
18707
18708 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18709
18710 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18711
18712 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18713
18714 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18715
18716 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18717
18718 PR rtl-optimization/88879
18719 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18720
18721 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18722
18723 PR target/90405
18724 * config/arm/arm.c (callee_saved_reg_p): Move before
18725 thumb_find_work_register.
18726 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18727 thumb_find_work_register. Only call df_get_live_out once.
18728 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18729 (thumb_find_work_register): Use
18730 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18731 algorithms to locate a spare call clobbered reg.
18732
18733 2019-05-09 Martin Liska <mliska@suse.cz>
18734
18735 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18736 and MAX_EXPR in GIMPLE FE format.
18737
18738 2019-05-09 Martin Liska <mliska@suse.cz>
18739
18740 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18741 * gimple-pretty-print.c (dump_gimple_bb_header):
18742 Dump BB count.
18743 (pp_cfg_jump): Dump edge probability.
18744 * profile-count.c (profile_quality_as_string): Simplify
18745 with a static array.
18746 (parse_profile_quality): New function.
18747 (profile_count::dump): Simplify with a static array.
18748 (profile_count::from_gcov_type): Add new argument.
18749 * profile-count.h (parse_profile_quality): Likewise.
18750 * predict.h (set_hot_bb_threshold): New.
18751 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18752 New param.
18753 * predict.c (get_hot_bb_threshold): Set from the new param.
18754 (set_hot_bb_threshold): New.
18755
18756 2019-05-09 Richard Biener <rguenther@suse.de>
18757
18758 PR tree-optimization/90395
18759 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18760 rewrite vector stores that throw internally.
18761
18762 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18763
18764 * cif-code.def (CHKP): Remove.
18765
18766 PR target/89221
18767 * configure.ac (--enable-frame-pointer): Disable by default for
18768 GNU systems.
18769 * configure: Regenerate.
18770
18771 2019-05-09 Alan Modra <amodra@gmail.com>
18772
18773 PR target/89271
18774 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18775 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18776 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18777 cost for general <-> vsx when direct moves are available.
18778 Cost union classes at minimal cost for any reg in the class.
18779 Correct calculation for moves between vsx, float, and altivec.
18780 Don't return a low cost for moves between special regs. Don't
18781 use hard coded register numbers.
18782 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18783 (rs6000_ira_change_pseudo_allocno_class): New function.
18784 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18785 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18786 alternatives.
18787 (movsi_internal1): Don't disparage vector alternatives.
18788 (mov<mode>_internal): Likewise, excepting alternative that
18789 will be split.
18790 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18791 we <- b alternative.
18792
18793 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18794
18795 PR c++/59813
18796 PR tree-optimization/89060
18797 * tree-ssa-live.h (live_vars_map): New typedef.
18798 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18799 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18800 (struct compute_live_vars_data): New type.
18801 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18802 live_vars_at_stmt, destroy_live_vars): New functions.
18803 * tree-tailcall.c: Include tree-ssa-live.h.
18804 (live_vars, live_vars_vec): New global variables.
18805 (find_tail_calls): Perform variable life analysis before punting.
18806 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18807 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18808 member.
18809 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18810 Perform variable life analysis to select variables that really need
18811 clobbers added.
18812 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18813 instead set id->eh_landing_pad_dest and assert it is the same.
18814 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18815
18816 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18817 Richard Earnshaw <rearnsha@arm.com>
18818
18819 PR target/88167
18820 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18821 function.
18822 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18823 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18824 register if both the epilogue and prologue can use call-clobbered
18825 regs.
18826 (thumb1_unexpanded_epilogue): Use
18827 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18828 picking temporaries for restoring high regs to match that of the
18829 prologue where possible.
18830 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18831 the list of work registers. Detect if the return address is still live
18832 at the end of the prologue and avoid using it for a work register if so.
18833 If the return address is not live, add LR to the list of pushable regs
18834 after the first pass.
18835
18836 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18837
18838 PR tree-optimization/90078
18839 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18840 (INFTY): Increase the value for infinite cost.
18841 (struct comp_cost): Promote type of members to int64_t.
18842 (infinite_cost): Don't set complexity in initialization.
18843 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18844 overflows to infinite_cost.
18845 (adjust_setup_cost): Promote type of parameter and cost computation
18846 to int64_t.
18847 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18848 int64_t.
18849 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18850 cost computation to int64_t.
18851 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18852 int64_t's format specifier in dump.
18853
18854 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18855
18856 PR tree-optimization/90240
18857 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18858 with respect to scaling factor pre-computed for each basic block.
18859 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18860 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18861 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18862 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18863 live range for array of loop's basic blocks. Cleanup aux field of
18864 loop's basic blocks.
18865
18866 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18867
18868 PR tree-optimization/90356
18869 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18870
18871 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18872
18873 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18874 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18875 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18876 (ix86_handle_option): Handle -mavx512bf16.
18877 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18878 to extra_headers.
18879 * config/i386/avx512bf16vlintrin.h: New.
18880 * config/i386/avx512bf16intrin.h: New.
18881 * config/i386/cpuid.h (bit_AVX512BF16): New.
18882 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18883 * config/i386/i386-builtin-types.def: Add new types.
18884 * config/i386/i386-builtin.def: Add new builtins.
18885 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18886 __AVX512BF16__.
18887 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18888 (ix86_option_override_internal): Handle BF16.
18889 (ix86_valid_target_attribute_inner_p): Ditto.
18890 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18891 * config/i386/i386-builtin.c (enum processor_features): Add
18892 F_AVX512BF16.
18893 (static const _isa_names_table isa_names_table): Ditto.
18894 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18895 (PTA_AVX512BF16): Ditto.
18896 * config/i386/i386.opt: Add -mavx512bf16.
18897 * config/i386/immintrin.h: Include avx512bf16intrin.h
18898 and avx512bf16vlintrin.h.
18899 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18900 avx512f_cvtneps2bf16_<mode><mask_name>,
18901 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18902 * config/i386/subst.md (mask_half): Add new subst.
18903 * doc/invoke.texi: Document -mavx512bf16.
18904
18905 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18906
18907 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18908 Delete declaration.
18909 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18910 (rs6000_debug_legitimize_reload_address): Delete.
18911 (rs6000_legitimize_reload_address_ptr): Delete.
18912 (rs6000_option_override_internal): Adjust.
18913 (mem_operand_gpr): Adjust comment.
18914 (legitimate_lo_sum_address_p): Ditto.
18915 (rs6000_legitimize_reload_address): Delete.
18916 (rs6000_debug_legitimize_reload_address): Delete.
18917 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18918
18919 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18920
18921 PR target/89765
18922 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18923 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18924 to compute vector element selector for both constant and variable
18925 operands.
18926
18927 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18928
18929 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18930 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18931 ashrdi3_cvt using SWI48 mode iterator.
18932
18933 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18934
18935 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18936 (aarch64_<su>abd<mode>_3): Likewise.
18937 (*aarch64_<su>abd<mode>_3): New define_insn.
18938 (<sur>sad<vsi2qi>): New define_expand.
18939 * config/aarch64/iterators.md: Added MAX_OPP attribute.
18940 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18941 (build_vect_cond_expr): Likewise.
18942
18943 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18944
18945 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18946 clobbers outside of accessible_reg_set.
18947 * config/i386/i386.c (ix86_conditional_register_usage):
18948 Disable register sets by clearing corresponding bits in
18949 accessible_reg_set. Do not set corresponding bits in fixed_regs,
18950 call_used_regs and don't clear corresponding reg_names array members.
18951
18952 2019-05-07 Richard Biener <rguenther@suse.de>
18953
18954 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18955 not specified still compute a comp_vectype for invariant
18956 compares.
18957
18958 2019-05-07 Richard Biener <rguenther@suse.de>
18959
18960 PR tree-optimization/90316
18961 * tree-ssa-pre.c (translate_vuse_through_block): When
18962 same_valid is NULL do not bother to search for a virtual
18963 PHI continuation.
18964 (phi_translate_1): When operands changed we cannot keep
18965 the same value-number so do not bother to ask whether
18966 that's possible from translate_vuse_through_block.
18967
18968 2019-05-07 Martin Liska <mliska@suse.cz>
18969
18970 * bitmap.c (bitmap_register): Come up with
18971 alloc_descriptor_max_uid and assign it for
18972 a new bitmap.
18973 (register_overhead): Use get_descriptor as
18974 a descriptor.
18975 (release_overhead): New.
18976 (bitmap_elem_to_freelist): Call it.
18977 (bitmap_elt_clear_from): Likewise.
18978 (bitmap_obstack_free): Likewise.
18979 (bitmap_move): Sensitively release memory.
18980 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
18981 (bitmap_initialize): Initialize alloc_descriptor to zero.
18982 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
18983
18984 2019-05-07 Richard Biener <rguenther@suse.de>
18985
18986 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
18987 we build a SLP node. Remove max_size and limiting.
18988 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
18989
18990 2019-05-07 Richard Biener <rguenther@suse.de>
18991
18992 PR tree-optimization/90316
18993 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
18994 limit by reference.
18995 (walk_non_aliased_vuses): Take walking limit argument.
18996 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
18997 walking if it is reached instead of just counting.
18998 (get_continuation_for_phi): Likewise.
18999 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19000 limiting to the callback.
19001 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19002 (vn_reference_lookup_3): Likewise.
19003 (vn_reference_lookup_pieces): Likewise.
19004 (vn_reference_lookup): Likewise.
19005 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19006 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19007 (avail_exprs_stack::lookup_avail_expr): Likewise.
19008
19009 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19010
19011 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19012 for comparaible types in the second direction even if first one
19013 hits incomparable type.
19014
19015 2019-05-07 Richard Biener <rguenther@suse.de>
19016
19017 PR lto/90369
19018 * lto-wrapper.c (debug_objcopy): Use the original filename
19019 including archive offset for the filename used for -save-temps.
19020
19021 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19022
19023 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19024 detection.
19025
19026 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19027 Hongtao Liu <hongtao.liu@intel.com>
19028
19029 PR target/89750
19030 PR target/86444
19031 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19032 Modified, original implementation isn't correct.
19033
19034 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19035
19036 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19037 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19038 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19039 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19040 (FRAME_POINTER_REGNUM): Change numbering.
19041 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19042 (alt_reg_names): Adjust.
19043 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19044 fixed.
19045 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19046 (DWARF_FRAME_REGISTERS): Delete.
19047 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19048 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19049 Adjust.
19050 (REG_ALLOC_ORDER): Adjust.
19051 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19052 (REG_CLASS_CONTENTS): Adjust.
19053 (RETURN_ADDR_RTX): Change comment.
19054 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19055 instead of 67.
19056 (REGISTER_NAMES): Adjust.
19057 (ADDITIONAL_REGISTER_NAMES): Adjust.
19058 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19059
19060 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19061
19062 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19063 Delete.
19064 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19065 (DWARF_FRAME_REGISTERS): Adjust.
19066 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19067 Adjust.
19068 (REG_ALLOC_ORDER): Adjust.
19069 (enum reg_class): Delete SPR_REGS.
19070 (REG_CLASS_NAMES): Delete SPR_REGS.
19071 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19072 (REGISTER_NAMES): Adjust.
19073 (ADDITIONAL_REGISTER_NAMES): Adjust.
19074 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19075 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19076 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19077 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19078 (htm_spr_regno): Delete.
19079 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19080 argument.
19081 (rs6000_dbx_register_number): Adjust.
19082
19083 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19084
19085 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19086
19087 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19088
19089 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19090 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19091
19092 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19093
19094 PR tree-optimization/88709
19095 PR tree-optimization/90271
19096 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19097 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19098 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19099 variable.
19100 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19101 of the store merging group is larger than
19102 PARAM_STORE_MERGING_MAX_SIZE parameter.
19103 (split_group): Add bzero_first argument. If set, always emit first
19104 the first store which must be = {} of the whole area and then for the
19105 rest of the stores consider all zero bytes as paddings.
19106 (imm_store_chain_info::output_merged_store): Check if first store
19107 is = {} of the whole area and if yes, determine which setting of
19108 bzero_first for split_group gives smaller number of stores. Adjust
19109 split_group callers.
19110 (lhs_valid_for_store_merging_p): Allow decls.
19111 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19112 no elts.
19113 (pass_store_merging::process_store): Likewise.
19114
19115 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19116
19117 PR target/89424
19118 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19119 handling of V1TImode.
19120
19121 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19122
19123 PR target/89221
19124 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19125 and enable_frame_pointer ...
19126 * configure.ac: ... here. Update help strings for
19127 --enable-frame-pointer.
19128 * configure: Regenerate.
19129 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19130 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19131 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19132 (USE_X86_64_FRAME_POINTER): Ditto.
19133
19134 2019-05-06 Martin Liska <mliska@suse.cz>
19135
19136 * config.gcc: Append to target_gtfiles and fix indentation.
19137
19138 2019-05-06 Richard Biener <rguenther@suse.de>
19139
19140 PR tree-optimization/90358
19141 * tree-vect-stmts.c (get_group_load_store_type): Properly
19142 detect unused upper half of load.
19143 (vectorizable_load): Likewise.
19144
19145 2019-05-06 Richard Biener <rguenther@suse.de>
19146
19147 PR tree-optimization/88828
19148 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19149 (simplify_vector_constructor): ...here. Handle constants in
19150 the constructor.
19151
19152 2019-05-06 Richard Biener <rguenther@suse.de>
19153
19154 PR tree-optimization/90328
19155 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19156 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19157 is valid in the loop nest before using it.
19158 (initialize_data_dependence_relation): Adjust.
19159 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19160 loop as loop-nest to dr_may_alias_p.
19161
19162 2019-05-06 Richard Biener <rguenther@suse.de>
19163
19164 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19165
19166 2019-05-06 Richard Biener <rguenther@suse.de>
19167
19168 PR tree-optimization/90316
19169 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19170 compute target on demand.
19171 (get_continuation_for_phi): Remove code walking stmts to
19172 get to a target virtual operand which could end up being
19173 quadratic.
19174
19175 2019-05-06 Martin Liska <mliska@suse.cz>
19176
19177 PR sanitizer/90312
19178 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19179 when -mabi is selected to a non-default version.
19180
19181 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19182 Martin Liska <mliska@suse.cz>
19183
19184 * Makefile.in: Add lto-dump.texi.
19185 * cgraph.h: Add new functions get_visibility_string and
19186 get_symtab_type_string.
19187 * doc/gcc.texi: Include lto-dump section.
19188 * doc/lto-dump.texi: New file.
19189 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19190 (parse_dump_option): Factor out this function.
19191 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19192 (parse_dump_option): Export the function.
19193 * symtab.c (symtab_node::get_visibility_string): New function.
19194 (symtab_node::get_symtab_type_string): Likewise.
19195
19196 2019-05-06 Martin Liska <mliska@suse.cz>
19197
19198 * config/i386/i386-builtins.c: New file.
19199 * config/i386/i386-builtins.h: New file.
19200 * config/i386/i386-expand.c: New file.
19201 * config/i386/i386-expand.h: New file.
19202 * config/i386/i386-features.c: New file.
19203 * config/i386/i386-features.h: New file.
19204 * config/i386/i386-options.c: New file.
19205 * config/i386/i386-options.h: New file.
19206 * config.gcc: Add new files into extra_objs and
19207 target_gtfiles.
19208 * config/i386/i386.c: Split content of the file
19209 into newly introduced files.
19210 * config/i386/i386.h: Declare common variables
19211 and macros.
19212 * config/i386/t-i386: Define dependencies for new files.
19213
19214 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19215
19216 PR target/89400
19217 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19218 Restrict 'all' variant to 32-bit configurations.
19219 (unaligned_loadhiu): Likewise.
19220 (unaligned_storehi): Likewise.
19221 (unaligned_storesi): Likewise.
19222 (unaligned_loadhis): Disable when compiling for thumb1.
19223
19224 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19225
19226 PR tree-optimization/90269
19227 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19228 Ignore clobbers.
19229
19230 2019-05-03 Martin Liska <mliska@suse.cz>
19231
19232 * hash-map.h: Add is_empty function.
19233 * hash-set.h: Likewise.
19234 * hash-table.h: Likewise.
19235 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19236 elements () == 0 (and similar usages).
19237 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19238 * gimplify.c (gimplify_bind_expr): Likewise.
19239 (gimplify_switch_expr): Likewise.
19240 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19241 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19242 * postreload-gcse.c (dump_hash_table): Likewise.
19243 (gcse_after_reload_main): Likewise.
19244 * predict.c (combine_predictions_for_bb): Likewise.
19245 * tree-parloops.c (reduction_phi): Likewise.
19246 (separate_decls_in_region): Likewise.
19247 (transform_to_exit_first_loop): Likewise.
19248 (gen_parallel_loop): Likewise.
19249 (gather_scalar_reductions): Likewise.
19250 (try_create_reduction_list): Likewise.
19251 * var-tracking.c (dump_vars): Likewise.
19252 (emit_notes_for_changes): Likewise.
19253 (vt_emit_notes): Likewise.
19254
19255 2019-05-03 Richard Biener <rguenther@suse.de>
19256
19257 PR tree-optimization/90316
19258 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19259 before running VN.
19260
19261 2019-05-03 Richard Biener <rguenther@suse.de>
19262
19263 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19264 peeling for gaps by loading only lower halves of vectors
19265 if possible.
19266 (vectorizable_load): Likewise.
19267
19268 2019-05-03 Richard Biener <rguenther@suse.de>
19269
19270 PR middle-end/89518
19271 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19272
19273 2019-05-03 Richard Biener <rguenther@suse.de>
19274
19275 PR middle-end/87314
19276 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19277 Handle STRING_CST vs DECL or STRING_CST.
19278
19279 2019-05-03 Richard Biener <rguenther@suse.de>
19280
19281 PR tree-optimization/88963
19282 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19283 vector loads feeding only BIT_FIELD_REFs to component
19284 loads. Rewrite stores fed by CONSTRUCTORs to component
19285 stores.
19286
19287 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19288
19289 * opts.h (finish_options): Remove lang_mask argument.
19290 (print_help, help_option_argument): Declare.
19291 * opts.c (print_help): Remove forward declaration, no longer static.
19292 (finish_options): Remove lang_mask argument, don't call print_help
19293 here.
19294 * opts-global.c (decode_options): Adjust finish_option caller, call
19295 print_help here.
19296
19297 PR tree-optimization/90303
19298 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19299 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19300
19301 2019-05-03 Richard Biener <rguenther@suse.de>
19302
19303 PR tree-optimization/89698
19304 * gimple-fold.c (canonicalize_constructor_val): Early out
19305 for constants, handle unfolded INTEGER_CSTs as they appear in
19306 C++ virtual table ctors.
19307
19308 2019-05-03 Richard Biener <rguenther@suse.de>
19309
19310 * passes.c (execute_function_todo): Remove dead code.
19311
19312 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19313
19314 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19315 the internal register number, for any "real" register.
19316
19317 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19318
19319 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19320 correct numbers for TFHAR, TFIAR, TEXASR.
19321
19322 2019-05-02 Richard Biener <rguenther@suse.de>
19323
19324 PR tree-optimization/89653
19325 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19326 update-address-taken before the pass.
19327 * passes.def (pass_tree_loop_init): Put comment before it.
19328
19329 2019-05-02 Richard Biener <rguenther@suse.de>
19330
19331 PR tree-optimization/89509
19332 * tree-ssa-structalias.c (compute_dependence_clique): Look
19333 at the first subvar when determining whether it is restrict.
19334
19335 2019-05-02 Richard Biener <rguenther@suse.de>
19336
19337 PR tree-optimization/90273
19338 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19339 useless debug stmts.
19340
19341 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19342
19343 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19344 ACLE branch.
19345 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19346 SVE ACLE branch.
19347 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19348 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19349 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19350 (vectorizable_reduction): Use the functions above to vectorize in a
19351 fully masked loop codes that don't have a conditional internal
19352 function.
19353
19354 2019-05-02 Martin Liska <mliska@suse.cz>
19355
19356 * cgraphclones.c: Call valid_attribute_p with 1 for
19357 target_clone.
19358 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19359 it's for target attribute.
19360 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19361 Add new boolean argument.
19362 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19363 Likewise.
19364 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19365 to ix86_valid_target_attribute_inner_p.
19366 (ix86_valid_target_attribute_p): Pass flags argument to
19367 ix86_valid_target_attribute_inner_p.
19368 (get_builtin_code_for_version): Use 0 as it's target attribute.
19369
19370 2019-05-02 Martin Liska <mliska@suse.cz>
19371
19372 * gcc.c (process_command): Add dummy file only
19373 if n_infiles == 0.
19374 * opts-global.c (decode_options): Pass lang_mask.
19375 * opts.c (print_help): New function.
19376 (finish_options): Print --help if help_option_argument
19377 is set.
19378 (common_handle_option): Factor out content of OPT__help_
19379 into print_help.
19380 * opts.h (finish_options): Add new argument.
19381
19382 2019-05-02 Martin Liska <mliska@suse.cz>
19383
19384 PR target/88809
19385 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19386 With -minline-all-stringops use inline expansion using 4B loop.
19387 * doc/invoke.texi: Document the change of
19388 -minline-all-stringops.
19389
19390 2019-05-01 Jeff Law <law@redhat.com>
19391
19392 PR tree-optimization/88797
19393 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19394 PHI feeds a conditional on the RHS of an assignment.
19395
19396 2019-04-30 Andrew Waterman <andrew@sifive.com>
19397 Jim Wilson <jimw@sifive.com>
19398
19399 * config/riscv/constraints.md (L): New.
19400 * config/riscv/predicates.md (lui_operand): New.
19401 (sfb_alu_operand): New.
19402 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19403 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19404 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19405 * config/riscv/risc.md (type): Add sfb_alu.
19406 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19407 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19408 (branch_zero<mode>): Delete.
19409 (mov<mode>cc): New.
19410 (mov<GPR:mode><X:mode>cc): Likewise.
19411 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19412
19413 2019-04-30 Nathan Sidwell <nathan@acm.org>
19414
19415 * tree.h (MARK_TS_EXP): New.
19416
19417 2019-04-30 Martin Liska <mliska@suse.cz>
19418
19419 * opts.c (enable_warning_as_error): Provide hints
19420 for unknown options.
19421
19422 2019-04-30 Martin Liska <mliska@suse.cz>
19423
19424 PR debug/90288
19425 * doc/invoke.texi: Add missing dash for gas-locview-support
19426 and gno-as-locview-support.
19427
19428 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19429
19430 PR target/89093
19431 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19432 whitespace at the start of target attribute string.
19433
19434 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19435
19436 PR target/86538
19437 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19438 Define __ARM_FEATURE_ATOMICS.
19439
19440 2019-04-30 Martin Liska <mliska@suse.cz>
19441
19442 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19443 into built_in_function enum. Remove code for endp == 2 and
19444 use BUILT_IN_* constants.
19445 (gimple_fold_builtin): Call the function with fcode.
19446
19447 2019-04-30 Martin Liska <mliska@suse.cz>
19448
19449 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19450 DECL_FUNCTION_CODE into ix86_builtins enum before
19451 the switch statement.
19452
19453 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19454
19455 PR tree-optimization/89475
19456 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19457 calls.
19458
19459 2019-04-30 Martin Liska <mliska@suse.cz>
19460
19461 PR translation/90274
19462 * opts.c (print_filtered_help): Wrap string in _(...).
19463
19464 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19465
19466 PR tree-optimization/90240
19467 Revert:
19468 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19469
19470 PR tree-optimization/90078
19471 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19472 checks for infinite_cost overflow.
19473
19474 2019-04-29 Jeff Law <law@redhat.com>
19475
19476 * passes.def: Move -Wrestrict pass after copy propagation.
19477
19478 2019-04-29 Maya Rashish <coypu@sdf.org>
19479
19480 * config.gcc (default_gnu_indirect_function): Default to yes
19481 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19482 sparc*-*-netbsd*, x86_64-*-netbsd*.
19483
19484 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19485
19486 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19487 where cond2 is NE_EXPR.
19488 (is_value_included_in): Update comment.
19489
19490 2019-04-29 Richard Biener <rguenther@suse.de>
19491
19492 PR tree-optimization/90278
19493 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19494 EH on comparison simplification.
19495
19496 2019-04-29 Jason Merrill <jason@redhat.com>
19497
19498 PR c++/82081 - tail call optimization breaks noexcept
19499 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19500 nothrow function to a might-throw function into a tail call.
19501
19502 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19503
19504 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19505 (DDR_INNER_LOOP): Likewise.
19506 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19507 (initialize_data_dependence_relation): Likewise.
19508 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19509
19510 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19511
19512 PR rtl-optimization/90257
19513 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19514 return value.
19515
19516 Revert the revert:
19517 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19518
19519 PR target/90178
19520 Revert:
19521 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19522
19523 Revert the revert:
19524 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19525
19526 Revert:
19527 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19528
19529 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19530
19531 2019-04-29 Richard Biener <rguenther@suse.de>
19532
19533 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19534 rhs issue a reset.
19535
19536 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19537
19538 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19539 varasm.h, and netbsd-protos.h.
19540
19541 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19542
19543 PR target/89261
19544 * config/i386/i386-protos.h (ix86_data_alignment): Change
19545 the second argument type to unsigned int.
19546 * config/i386/i386.c (ix86_data_alignment): Change "align"
19547 argument type to unsigned int.
19548
19549 2019-04-27 Martin Liska <mliska@suse.cz>
19550
19551 PR middle-end/90258
19552 * opt-suggestions.c (option_proposer::build_option_suggestions):
19553 When get_valid_option_values returns empty values, add the
19554 misspelling candidate.
19555
19556 2019-04-26 Jim Wilson <jimw@sifive.com>
19557
19558 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19559 parameter.
19560 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19561 Pass orig_mode to riscv_build_integer.
19562 (riscv_split_integer): Pass mode to riscv_move_integer.
19563 (riscv_legitimize_const_move): Likewise.
19564 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19565 promoted_mode. Replace force_reg call with code to load constant into
19566 promoted reg and then subreg it for the store.
19567 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19568 riscv_move_integer.
19569
19570 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19571
19572 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19573 corrupt codes.
19574
19575 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19576
19577 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19578 commentary about the encoding of precision.
19579
19580 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19581
19582 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19583 * config/i386/t-freebsd64: New file.
19584 * config.gcc: Add the t-freebsd64 for multilib support.
19585
19586 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19587
19588 * doc/extend.texi (vector_size): Add missing comma after @xref.
19589
19590 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19591
19592 * BASE-VER: Set to 10.0.0.
19593
19594 2019-04-25 Richard Biener <rguenther@suse.de>
19595
19596 PR middle-end/89765
19597 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19598 VIEW_CONVERT_EXPR into one operating on an rvalue.
19599
19600 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19601
19602 PR target/89929
19603 * config/i386/i386.c (feature_priority): Moved to file scope.
19604 (processor_features): Likewise.
19605 (processor_model): Likewise.
19606 (_arch_names_table): Likewise.
19607 (arch_names_table): Likewise.
19608 (_feature_list): Removed.
19609 (feature_list): Likewise.
19610 (_isa_names_table): Moved to file scope. Add priority.
19611 (isa_names_table): Likewise.
19612 (get_builtin_code_for_version): Replace feature_list with
19613 isa_names_table. Update error message for P_ZERO priority.
19614
19615 2019-04-25 Richard Biener <rguenther@suse.de>
19616
19617 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19618 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19619
19620 2019-04-24 Jeff Law <law@redhat.com>
19621
19622 PR tree-optimization/90037
19623 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19624 * passes.def: Replace all instance of phi-only cprop with the
19625 lattice propagator. Move propagation pass from after erroneous
19626 path isolation to before erroneous path isolation.
19627 * tree-ssa-phionlycprop.c: Remove.
19628
19629 2019-04-24 Richard Biener <rguenther@suse.de>
19630
19631 PR middle-end/90213
19632 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19633 by size and BITS_PER_UNIT on poly-wide-ints.
19634
19635 2019-04-25 Richard Biener <rguenther@suse.de>
19636
19637 PR middle-end/90194
19638 * match.pd: Add pattern to simplify view-conversion of an
19639 empty constructor.
19640
19641 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19642
19643 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19644 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19645 for Go on 32 bit AIX.
19646 * config/rs6000/aix72.h: Likewise.
19647
19648 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19649
19650 PR target/90193
19651 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19652 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19653
19654 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19655
19656 PR target/89952
19657 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19658 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19659 for restored hard frame pointer.
19660 (s390_sched_dependencies_evaluation): Implement new target hook.
19661 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19662
19663 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19664
19665 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19666 * config/arc/arc.c (arc_init): Cleanup warning message.
19667 (arc_override_options): Likewise.
19668
19669 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19670
19671 PR target/90187
19672 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19673 a register if both if_true and if_false are MEMs.
19674
19675 PR tree-optimization/90208
19676 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19677 after labels of new_bb, not before them.
19678
19679 PR tree-optimization/90211
19680 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19681 which are not SSA_NAMEs.
19682
19683 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19684
19685 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19686 AArch64.
19687 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19688
19689 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19690
19691 PR rtl-optimization/87979
19692 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19693 not equal zero.
19694
19695 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19696
19697 PR rtl-optimization/84032
19698 * modulo-sched.c (ps_insn_find_column): Change condition so that
19699 branch will always be the last insn in a row inside partial
19700 schedule.
19701
19702 2019-04-23 Richard Biener <rguenther@suse.de>
19703
19704 PR debug/90131
19705 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19706 dest_single_pred_p argument.
19707 (remove_forwarder_block): Adjust.
19708 (remove_forwarder_block_with_phi): Likewise.
19709
19710 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19711 Bernd Edlinger <bernd.edlinger@hotmail.de>
19712 Jakub Jelinek <jakub@redhat.com>
19713
19714 PR target/89093
19715 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19716 if used with general-regs-only.
19717 (arm_conditional_register_usage): Don't add non-general regs if
19718 general-regs-only.
19719 (arm_valid_target_attribute_rec): Handle general-regs-only.
19720 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19721 general-regs-only.
19722 (TARGET_HARD_FLOAT_SUB): Define.
19723 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19724 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19725 (TARGET_REALLY_IWMMXT2): Likewise.
19726 * config/arm/arm.opt: Add -mgeneral-regs-only.
19727 * doc/extend.texi: Document ARM general-regs-only target.
19728 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19729
19730 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19731
19732 PR tree-optimization/90078
19733 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19734 checks for infinite_cost overflow.
19735
19736 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19737
19738 PR tree-optimization/90021
19739 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19740 and check univariate against it.
19741 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19742 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19743
19744 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19745
19746 PR target/90178
19747 Revert:
19748 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19749
19750 Revert the revert:
19751 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19752
19753 Revert:
19754 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19755
19756 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19757
19758 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19759
19760 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19761 names using operand format, rather than hard-wired.
19762 (speculation_barrier): Likewise.
19763
19764 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19765
19766 PR tree-optimization/88055
19767 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19768 (gen_one_condition): Use it if !HONOR_NANS.
19769
19770 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19771
19772 PR middle-end/90139
19773 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19774 assign_temp instead of gen_reg_rtx.
19775
19776 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19777
19778 PR translation/90118
19779 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19780 Add missing space before %<.
19781
19782 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19783
19784 PR rtl-optimization/87871
19785 * ira-lives.c (make_object_dead): Don't add conflicts to
19786 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19787
19788 2019-04-18 Martin Sebor <msebor@redhat.com>
19789
19790 PR middle-end/89797
19791 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19792 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19793 assuming type size fits in SHWI.
19794
19795 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19796
19797 PR ipa/85051
19798 * ipa-inline.c (flatten_function): New parameter UPDATE.
19799 (ipa_inline, early_inliner): Use it.
19800
19801 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19802
19803 * fold-const.c (int_const_binop): Return early on failure.
19804
19805 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19806
19807 PR middle-end/85164
19808 * combine.c (force_int_to_mode): Cast the argument rather than
19809 the result of known_alignment.
19810 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19811
19812 2019-04-18 Richard Biener <rguenther@suse.de>
19813
19814 PR debug/90131
19815 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19816 out from ...
19817 (remove_forwarder_block): ... here.
19818 (remove_forwarder_block_with_phi): Also move debug stmts here.
19819
19820 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19821
19822 PR translation/79183
19823 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19824 inform where appropriate.
19825
19826 2019-04-18 Richard Biener <rguenther@suse.de>
19827
19828 * tree.c (get_qualified_type): Put found type variants at the
19829 head of the variant list.
19830
19831 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19832
19833 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19834
19835 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19836
19837 PR target/90125
19838 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19839 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19840 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19841 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19842 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19843
19844 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19845
19846 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19847 even for allocno's with no conflicts.
19848 (print_conflicts): Print an extra newline.
19849
19850 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19851
19852 * auto-inc-dec.c (attempt_change): Set the alignment of the
19853 temporary memory to that of the original.
19854
19855 2019-04-17 Joao Moreira <jmoreira@suse.de>
19856
19857 * targhooks.c (default_print_patchable_function_entry): Emit
19858 __patchable_function_entries section with writable flags to allow
19859 relocation resolution.
19860
19861 2019-04-17 Jonny Grant <jg@jguk.org>
19862
19863 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19864
19865 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19866
19867 PR middle-end/90095
19868 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19869 on lowpart SUBREGs.
19870
19871 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19872
19873 * config/arc/arc.c (arc_init): Format diagnostic string.
19874 (arc_override_options): Likewise.
19875 (check_if_valid_regno_const): Likewise.
19876 (arc_reorg): Likewise.
19877
19878 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19879
19880 PR target/17108
19881 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19882 name.
19883 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19884 name.
19885 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19886 (*movdi_update1): Use Pmode.
19887 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19888 (movdi_<mode>_update_stack): Rename to ...
19889 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19890 use Pmode.
19891 (*movsi_update1): Use Pmode.
19892 (*movsi_update2): Use Pmode.
19893 (movsi_update): Rename to ...
19894 (movsi_<mode>_update): ... this. Use Pmode.
19895 (movsi_update_stack): Fix condition.
19896 (*movhi_update1): Use Pmode. Fix argument to
19897 avoiding_indexed_address_p.
19898 (*movhi_update2): Ditto.
19899 (*movhi_update3): Ditto.
19900 (*movhi_update4): Ditto.
19901 (*movqi_update1): Ditto.
19902 (*movqi_update2): Ditto.
19903 (*movqi_update3): Ditto.
19904 (*movsf_update1, *movdf_update1): Merge, rename to...
19905 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19906 avoiding_indexed_address_p. Add "size" attribute.
19907 (*movsf_update2, *movdf_update2): Merge, rename to...
19908 (*mov<mode>_update2): This. Ditto.
19909 (*movsf_update3): Use Pmode. Fix argument to
19910 avoiding_indexed_address_p.
19911 (*movsf_update4): Ditto.
19912 (allocate_stack): Simplify condition. Adjust pattern names.
19913
19914 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19915
19916 PR target/89093
19917 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19918 whitespace at the start of target attribute string.
19919
19920 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19921
19922 PR target/84369
19923 * config/rs6000/power9.md: Add store forwarding bypass.
19924
19925 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19926
19927 PR debug/89528
19928 * valtrack.c (dead_debug_insert_temp): Reset debug references
19929 to the return value of a call being removed.
19930
19931 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19932
19933 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19934 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19935 implement target hook.
19936 (arc_memory_move_cost): New function.
19937 (TARGET_REGISTER_MOVE_COST): Define.
19938 (TARGET_MEMORY_MOVE_COST): Likewise.
19939 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19940 (MEMORY_MOVE_COST): Likewise.
19941
19942 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19943
19944 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19945 (sibcall_value_insn): Likewise.
19946 * config/arc/constraints.md (Rs5): Remove.
19947
19948 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19949
19950 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19951 for last two fake registers.
19952 (arc_conditional_register_usage): Make sure fake frame and arg
19953 pointer regs are in general regs class.
19954 (FRAME_POINTER_MASK): Remove.
19955 (RETURN_ADDR_MASK): Remove.
19956 (arc_must_save_register): Use hard frame regnum.
19957 (frame_restore_reg): Use hard_frame_pointer_rtx.
19958 (arc_save_callee_saves): Likewise.
19959 (arc_restore_callee_saves): Likewise.
19960 (arc_save_callee_enter): Likewise.
19961 (arc_restore_callee_leave): Likewise.
19962 (arc_save_callee_milli): Likewise.
19963 (arc_eh_return_address_location): Likewise.
19964 (arc_check_multi): Use hard frame regnum.
19965 (arc_can_eliminate): Likewise.
19966 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
19967 for register allocator.
19968 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
19969 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
19970 (FRAME_POINTER_REGNUM): Change it to a fake register.
19971 (HARD_FRAME_POINTER_REGNUM): Defined.
19972 (ARG_POINTER_REGNUM): Change it to a new fake register.
19973 (ELIMINABLE_REGS): Update.
19974 (REGISTER_NAMES): Update names.
19975 * config/arc/arc.md (LP_START): Remove.
19976 (LP_END): Likewise.
19977 (shift_si3_loop): Update pattern.
19978
19979 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
19980
19981 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
19982 to avoid delay slot scheduling.
19983 (arc_must_save_register): Don't save SP.
19984 * config/arc/arc.md (stack_tie): Remove.
19985 (UNSPEC_ARC_STKTIE): Likewise.
19986
19987 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
19988 Shiva Chen <shiva0217@gmail.com>
19989
19990 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
19991 code gen with large shift amount.
19992
19993 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
19994
19995 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
19996 subreg.
19997
19998 2019-04-16 Jakub Jelinek <jakub@redhat.com>
19999
20000 PR target/90096
20001 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20002 print -m64/-mx32/-m32 if it is true.
20003 (ix86_debug_options, ix86_function_specific_print): Pass true as
20004 ADD_ABI_P to ix86_target_string.
20005 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20006 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20007 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20008
20009 PR rtl-optimization/90082
20010 * dce.c (can_delete_call): New function.
20011 (deletable_insn_p, mark_insn): Use it.
20012
20013 PR tree-optimization/90090
20014 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20015 throw internally.
20016 (is_division_by_square): Likewise. Formatting fix.
20017
20018 2019-04-16 Richard Biener <rguenther@suse.de>
20019
20020 PR tree-optimization/56049
20021 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20022 equality check if alias-set zero will prevail.
20023
20024 2019-04-15 Jeff Law <law@redhat.com>
20025
20026 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20027 size and alignment as unsigned.
20028
20029 2019-04-15 Richard Biener <rguenther@suse.de>
20030
20031 PR debug/90074
20032 * tree-loop-distribution.c (destroy_loop): Preserve correct
20033 debug info.
20034
20035 2019-04-15 Richard Biener <rguenther@suse.de>
20036
20037 PR tree-optimization/90071
20038 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20039 abnormal operands from def stmts.
20040
20041 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20042
20043 PR rtl-optimization/89794
20044 * combine.c (count_auto_inc): New function.
20045 (try_combine): Count how many auto_inc expressions there were in the
20046 original instructions. Ensure we have the same number in the new
20047 instructions. Remove the code that tried to ensure auto_inc side
20048 effects on i1 and i0 are not lost.
20049
20050 2019-04-15 Richard Biener <rguenther@suse.de>
20051
20052 PR ipa/88936
20053 * tree.h (auto_var_p): Declare.
20054 * tree.c (auto_var_p): New function, split out from ...
20055 (auto_var_in_fn_p): ... here.
20056 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20057 member.
20058 (new_var_info): Initialize it.
20059 (set_uids_in_ptset): Also set the shadow variable uid if required.
20060 (ipa_pta_execute): Postprocess points-to solutions assigning
20061 shadow variable uids for locals that may reach their containing
20062 function recursively.
20063 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20064 assert but instead check whether the points-to solution is
20065 a singleton.
20066
20067 2019-04-15 Martin Jambor <mjambor@suse.cz>
20068
20069 PR ipa/pr89693
20070 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20071 the thunk chain.
20072
20073 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20074
20075 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20076
20077 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20078 Kito Cheng <kito.cheng@gmail.com>
20079 Shiva Chen <shiva0217@gmail.com>
20080
20081 * config/nds32/nds32-md-auxiliary.c
20082 (nds32_legitimize_pic_address): Use new PIC pattern.
20083 (nds32_legitimize_tls_address): Use new TLS pattern.
20084 (nds32_output_symrel): New.
20085 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20086 (nds32_alloc_relax_group_id): Ditto.
20087 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20088 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20089 relax_group_id.
20090 (nds32_group_tls_insn): Ditto.
20091 (nds32_group_float_insns): Ditto.
20092 * config/nds32/nds32.md (tls_le): New.
20093 (sym_got): Ditto.
20094
20095 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20096
20097 * configure: Add nds32 target for dwarf2 debug_line checking.
20098 * configure.ac: Regenerated.
20099
20100 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20101
20102 PR lto/89358
20103 * ipa-devirt.c (skip_in_fields_list_p): New.
20104 (odr_types_equivalent_p): Use it.
20105
20106 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20107
20108 PR target/89093
20109 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20110 instead of strncmp when checking for thumb and arm. Formatting fixes.
20111
20112 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20113
20114 * doc/install.texi: Document --with-target-system-zlib.
20115
20116 2019-04-12 Martin Sebor <msebor@redhat.com>
20117
20118 PR c/88383
20119 PR c/89288
20120 PR c/89798
20121 PR c/89797
20122 * targhooks.c (default_vector_alignment): Avoid assuming
20123 argument fits in SHWI.
20124 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20125 a shift expression.
20126 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20127
20128 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20129
20130 PR rtl-optimization/89965
20131 * dce.c: Include rtl-iter.h.
20132 (struct check_argument_load_data): New type.
20133 (check_argument_load): New function.
20134 (find_call_stack_args): Check for loads from stack slots still tracked
20135 in sp_bytes and punt if any is found.
20136
20137 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20138
20139 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20140
20141 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20142 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20143
20144 2019-04-12 Martin Liska <mliska@suse.cz>
20145
20146 PR middle-end/89970
20147 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20148 in error message.
20149 (separate_attrs): Handle multiple 'default's.
20150 (expand_target_clones): Rework error handling code.
20151
20152 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20153
20154 PR target/87532
20155 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20156 mode of vector rather than mode of destination for move instruction.
20157 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20158 Use QI inner mode with V16QI vector mode.
20159
20160 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20161
20162 PR target/52726
20163 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20164 "invalid %%t operand" in output_operand_lossage message.
20165
20166 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20167
20168 * config/s390/predicates.md (permute_pattern_operand): New
20169 predicate.
20170 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20171 operand for the permute pattern.
20172 ("*vec_perm<mode>"): New insn definition.
20173 ("bswap<mode>"): Generate the permute pattern operand in the
20174 expander and perform the operand reloads for pre arch13 level
20175 already.
20176 ("*bswap<mode>_emu"): Rename to ...
20177 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20178 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20179 Add the USE operand for the permute pattern.
20180 ("*vec_set_bswap_vec<mode>"): Likewise.
20181
20182 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20183
20184 PR c/89946
20185 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20186 and gcc_unreachable if it fails, just call tree_to_uhwi which
20187 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20188 Start warning message with a lower-case letter. Formatting fixes.
20189
20190 PR rtl-optimization/90026
20191 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20192 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20193 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20194 in cfglayout mode, use emit_barrier_after_bb.
20195
20196 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20197
20198 PR rtl-optimization/87763
20199 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20200 New Instruction.
20201
20202 2019-04-11 Tom de Vries <tdevries@suse.de>
20203
20204 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20205 max macro using statement expression.
20206
20207 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20208
20209 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20210 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20211 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20212 read_only_private_data_section using xcoff_private_rodata_section_name.
20213 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20214
20215 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20216
20217 PR target/90016
20218 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20219
20220 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20221
20222 PR rtl-optimization/89965
20223 * dce.c (sp_based_mem_offset): New function.
20224 (find_call_stack_args): Use sp_based_mem_offset.
20225
20226 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20227
20228 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20229
20230 2019-04-11 Richard Biener <rguenther@suse.de>
20231
20232 PR tree-optimization/90020
20233 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20234 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20235 * tree-ssa-pre.c (compute_avail): Use it to not put
20236 possibly trapping references after a call that might not
20237 return into EXP_GEN.
20238 * gcse.c (compute_hash_table_work): Do not elide
20239 marking a block containing a call if the call might not
20240 return.
20241
20242 2019-04-11 Richard Biener <rguenther@suse.de>
20243
20244 PR tree-optimization/90018
20245 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20246 Test both SLP and interleaving variants.
20247
20248 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20249
20250 * config/s390/8561.md: New file.
20251 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20252 Add arch13 cpu model.
20253 * config/s390/s390-opts.h (enum processor_type): Likewise.
20254 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20255 (s390_get_unit_mask): Likewise.
20256 (s390_is_fpd): Likewise.
20257 (s390_is_fxd): Likewise.
20258 * config/s390/s390.h (s390_tune_attr): Likewise.
20259 * config/s390/s390.md: Include arch13 pipeline description.
20260 * config/s390/s390.opt: Add arch13.
20261
20262 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20263
20264 PR rtl-optimization/87763
20265 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20266 New prototype.
20267 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20268 New function.
20269 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20270 New instruction.
20271 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20272 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20273 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20274 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20275
20276 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20277
20278 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20279 "Although" in -fipa-icf documentation.
20280
20281 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20282 of using multiple -g options.
20283
20284 2019-04-10 Martin Liska <mliska@suse.cz>
20285
20286 PR gcov-profile/89959
20287 * doc/gcov.texi: Make documentation of -x option
20288 more precise.
20289
20290 2019-04-10 Richard Biener <rguenther@suse.de>
20291
20292 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20293 member.
20294 (DR_GROUP_SAME_DR_STMT): Remove.
20295 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20296 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20297 replace with assert.
20298 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20299 (vect_record_grouped_load_vectors): Remove unreachable code.
20300
20301 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20302
20303 PR target/90016
20304 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20305 obsolete reference to N.
20306
20307 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20308
20309 PR middle-end/90025
20310 * expr.c (store_expr): Set properly size on the MEM passed to
20311 clear_storage.
20312
20313 PR c++/90010
20314 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20315 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20316 translation is needed, and when translation is needed, only append
20317 ... if the string length is hostsz or more bytes long. Avoid using
20318 strncpy or strcat.
20319
20320 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20321
20322 PR target/90024
20323 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20324 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20325 into three.
20326 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20327 differences directly.
20328 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20329
20330 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20331
20332 PR translation/90011
20333 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20334 from diagnostics.
20335 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20336 diagnostics.
20337 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20338 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20339 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20340 trailing space from -gsplit-dwarf diagnostics.
20341
20342 PR tree-optimization/89998
20343 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20344 instead of integer_type_node if possible, don't add ranges if return
20345 type is not compatible with int.
20346 * gimple-fold.c (gimple_fold_builtin_sprintf,
20347 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20348 integer_type_node.
20349
20350 2019-04-09 Martin Liska <mliska@suse.cz>
20351
20352 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20353 * doc/install.texi: Document the new config.
20354
20355 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20356
20357 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20358 use gimple_expr_type for load and store calls. Skip over the
20359 condition argument in a conditional internal function.
20360 Protect use of TREE_INT_CST_LOW.
20361
20362 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20363
20364 PR target/90015
20365 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20366 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20367 trailing period from it too.
20368
20369 2019-04-08 wu yuan <wuyuan5@huawei.com>
20370
20371 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20372 * config/aarch64/aarch64.md : Add "tsv110.md"
20373 * config/aarch64/tsv110.md: New file.
20374
20375 2019-04-08 Richard Biener <rguenther@suse.de>
20376
20377 PR tree-optimization/90006
20378 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20379 calls like lrint.
20380
20381 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20382
20383 PR target/83033
20384 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20385 construction.
20386 (fma_root_node): Likewise.
20387 (func_fma_steering): Likewise.
20388
20389 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20390
20391 PR rtl-optimization/89865
20392 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20393
20394 PR rtl-optimization/89865
20395 * config/i386/i386.md
20396 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20397 numbers not to clash with the additional operands[4].
20398 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20399 with extra register copy in the middle.
20400
20401 2019-04-08 Martin Liska <mliska@suse.cz>
20402
20403 PR gcov-profile/89961
20404 * doc/gcov.texi: Document data_file.
20405 * gcov.c (generate_results): Add data_info into JSON output.
20406
20407 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20408
20409 PR tree-optimization/89725
20410 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20411 loop's chrec as invariant symbol.
20412 * tree-chrec.h (chrec_contains_symbols): New parameter.
20413 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20414 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20415 function of loops not in DDR's loop_nest.
20416 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20417
20418 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20419
20420 PR target/89623
20421 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20422 Mask.
20423
20424 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20425
20426 PR target/89945
20427 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20428 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20429
20430 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20431
20432 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20433 targetm.fixed_condition_code_regs.
20434
20435 2019-04-05 Richard Biener <rguenther@suse.de>
20436
20437 PR debug/89892
20438 PR debug/89905
20439 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20440 debug bind stmts but reset them if they are not valid at the
20441 destination.
20442
20443 2019-04-05 Martin Liska <mliska@suse.cz>
20444
20445 PR translation/89936
20446 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20447 order to wrap keywords or arguments.
20448 * collect2.c (main): Likewise.
20449 (scan_prog_file): Likewise.
20450 (scan_libraries): Likewise.
20451 * common/config/riscv/riscv-common.c
20452 (riscv_subset_list::parsing_subset_version): Likewise.
20453 (riscv_subset_list::parse_std_ext): Likewise.
20454 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20455 Likewise.
20456 * config/arm/arm.c (arm_option_override): Likewise.
20457 * config/cris/cris.c (cris_print_operand): Likewise.
20458 * config/darwin-c.c (darwin_pragma_options): Likewise.
20459 (darwin_pragma_unused): Likewise.
20460 (darwin_pragma_ms_struct): Likewise.
20461 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20462 * config/i386/i386.c (print_reg): Likewise.
20463 (ix86_print_operand): Likewise.
20464 * config/i386/xm-djgpp.h: Likewise.
20465 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20466 * config/m32c/m32c.c (m32c_option_override): Likewise.
20467 * config/msp430/msp430.c (msp430_option_override): Likewise.
20468 * config/nds32/nds32.c (nds32_option_override): Likewise.
20469 * config/nvptx/mkoffload.c (main): Likewise.
20470 * config/rx/rx.c (rx_print_operand): Likewise.
20471 (valid_psw_flag): Likewise.
20472 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20473 (vms_pragma_nomember_alignment): Likewise.
20474 (vms_pragma_extern_model): Likewise.
20475 * lto-wrapper.c (compile_offload_image): Likewise.
20476 * omp-offload.c (oacc_parse_default_dims): Likewise.
20477 * symtab.c (symtab_node::verify_base): Likewise.
20478 * tlink.c (recompile_files): Likewise.
20479 (start_tweaking): Likewise.
20480 * tree-profile.c (parse_profile_filter): Likewise.
20481
20482 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20483
20484 PR tree-optimization/89956
20485 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20486 multiple negates of the same value.
20487
20488 2019-04-04 Martin Sebor <msebor@redhat.com>
20489
20490 PR middle-end/89957
20491 PR middle-end/89911
20492 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20493 have the same precision since the function crashes otherwise.
20494 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20495 has non-zero arguments.
20496
20497 2019-04-04 Martin Sebor <msebor@redhat.com>
20498
20499 PR middle-end/89934
20500 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20501 out if the number of arguments is less than expected.
20502
20503 2019-04-04 Jeff Law <law@redhat.com>
20504
20505 PR rtl-optimization/89399
20506 * ree.c (combine_set_extension): Use single_set rather than
20507 digging into PATTERN for items on the candidate list.
20508 (combine_reaching_defs): Likewise.
20509
20510 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20511
20512 PR rtl-optimization/46590
20513 * loop-invariant.c (find_defs): Move df_remove_problem and
20514 df_process_deferred_rescans to move_invariants.
20515 Move df_live_add_problem and df_live_set_all_dirty calls
20516 to move_invariants.
20517 (move_invariants): Likewise.
20518 (move_loop_invariants): Likewise, making the df_live calls
20519 conditional on -O. Remove the problem again if we added it
20520 locally.
20521
20522 2019-04-03 qing zhao <qing.zhao@oracle.com>
20523
20524 PR tree-optimization/89730
20525 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20526 -flive-patching=inline-only-static.
20527 (can_inline_edge_by_limits_p): Add the checking for
20528 -flive-patching=inline-only-static and grant always_inline
20529 even when -flive-patching=inline-only-static is specified.
20530
20531 2019-04-03 Jeff Law <law@redhat.com>
20532
20533 PR rtl-optimization/81025
20534 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20535
20536 2019-04-03 Richard Biener <rguenther@suse.de>
20537
20538 PR tree-optimization/84101
20539 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20540 regs.h for hard_regno_nregs.
20541 (cfun_returns): New helper.
20542 (vect_model_store_cost): When vectorizing a store to a decl
20543 we return and the function ABI returns in a multi-reg location
20544 account for the possible spilling that will happen.
20545
20546 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20547
20548 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20549 displacement addresses for vector mode operands.
20550
20551 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20552
20553 * config/arc/arc.c (GMASK_LEN): Define.
20554 (arc_restore_callee_saves): Restore first blink when
20555 !optimize_size.
20556
20557 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20558
20559 * doc/extend.texi: Add deprecated comment on sign-return-address
20560 function attribute and add mbranch-protection.
20561 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20562
20563 2019-04-03 Richard Biener <rguenther@suse.de>
20564
20565 PR lto/89896
20566 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20567 the all target phony.
20568
20569 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20570
20571 PR target/89902
20572 PR target/89903
20573 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20574 Return false for variable DImode shifts.
20575 (dimode_scalar_chain::compute_convert_gain): Do not handle
20576 register count operand in variable DImode shifts.
20577 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20578 count argument of a variable shift instruction to a vector register.
20579 (dimode_scalar_chain::convert_reg): Remove support to convert
20580 count argument of a variable shift instruction.
20581
20582 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20583
20584 PR rtl-optimization/84206
20585 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20586 iterating over loop headers.
20587
20588 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20589
20590 PR rtl-optimization/85876
20591 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20592 beyond the original fence.
20593
20594 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20595
20596 * config.gcc: Mark spu* targets as deprecated/obsolete.
20597
20598 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20599
20600 * config/s390/s390-builtin-types.def: New builtin function type
20601 definitions. Remove unused types.
20602 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20603 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20604 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20605 overloaded builtins.
20606 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20607 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20608 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20609 (vec_double, vec_signed, vec_unsigned): Define to use the new
20610 overloaded builtins.
20611 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20612 Remove expanders.
20613
20614 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20615
20616 * config/s390/s390-builtin-types.def: New builtin function type
20617 definitions.
20618 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20619 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20620 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20621 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20622 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20623 constant definitions.
20624 * config/s390/vecintrin.h (vec_search_string_cc)
20625 (vec_search_string_until_zero_cc): New builtin name definitions.
20626 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20627 expanders.
20628 ("vec_vstrs<mode>"): New insn definition.
20629
20630 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20631
20632 * config/s390/s390-builtin-types.def: Add new builtin function
20633 types.
20634 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20635 New overloaded builtins.
20636 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20637 s390_vsrd.
20638 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20639 (UNSPEC_VEC_SLDBYTE): ... this.
20640 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20641 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20642 definitions.
20643 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20644 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20645 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20646
20647 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20648
20649 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20650 New insn definition.
20651 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20652 * config/s390/vector.md (V_HW_HSD): ... here.
20653
20654 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20655
20656 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20657 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20658 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20659 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20660 New insn definitions.
20661
20662 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20663
20664 * config/s390/s390-builtin-types.def: Add new builtin function type.
20665 * config/s390/s390-builtins.def: Add overloaded builtin
20666 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20667 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20668 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20669 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20670 ("eltswap<mode>"): New expander.
20671 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20672 insn definitions.
20673
20674 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20675
20676 * config/s390/s390-builtin-types.def: Add new builtin function types.
20677 * config/s390/s390-builtins.def: Add overloaded builtin
20678 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20679 instructions.
20680 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20681 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20682 ("bswap<mode>"): New expander.
20683 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20684
20685 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20686
20687 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20688 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20689 vector builtin version number in __VEC__.
20690
20691 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20692
20693 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20694 iterators.
20695 (SFSI): New mode attribute.
20696 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20697 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20698 rename to ...
20699 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20700 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20701 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20702 ("floatsi<mode>2"): Add wcefb instruction.
20703
20704 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20705
20706 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20707 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20708 mode iterators.
20709 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20710 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20711 support 32 bit fp-int conversions. Rename to ...
20712 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20713 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20714 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20715 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20716 ... to these.
20717
20718 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20719
20720 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20721 if-then-else constructs if we can use the select instruction.
20722 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20723
20724 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20725
20726 * config/s390/s390.md ("*popcountdi_arch13_cc")
20727 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20728 definition.
20729 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20730 Append _z196 to make it ...
20731 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20732 ("popcounthi2_z196"): ... this.
20733 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20734 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20735
20736 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20737
20738 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20739 certain compares for arch13 in order to make use of the condition
20740 code result produced by the new instructions.
20741 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20742 nxrk, and nxgrk instruction patterns.
20743 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20744 (inv_no): Add new code iterator together with some attributes.
20745 ("*andc_split_<mode>"): Disable splitter for arch13.
20746 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20747 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20748 ("*<ANDOR:bitops_name>c<GPR:mode>")
20749 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20750 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20751 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20752 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20753
20754 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20755
20756 * common/config/s390/s390-common.c (processor_flags_table): New
20757 entry for arch13.
20758 * config.gcc: Support arch13 with the --with-arch= configure flag.
20759 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20760 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20761 * config/s390/s390.c (s390_get_sched_attrmask)
20762 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20763 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20764 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20765 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20766 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20767 definitions.
20768 * config/s390/s390.opt: Support arch13 as processor type in
20769 command line options.
20770
20771 2019-04-02 Martin Liska <mliska@suse.cz>
20772
20773 PR translation/89912
20774 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20775 Fix param description of graphite-max-arrays-per-scop.
20776
20777 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20778
20779 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20780 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20781 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20782
20783 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20784
20785 PR rtl-optimization/85412
20786 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20787 sel_sched_region_1, not after.
20788
20789 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20790
20791 PR rtl-optimization/86928
20792 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20793 compute_live if necessary.
20794 (sel_redirect_edge_and_branch): Likewise.
20795
20796 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20797
20798 PR rtl-optimization/89865
20799 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20800 register if it is a part of small class.
20801
20802 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20803
20804 PR rtl-optimization/87273
20805 * sel-sched-ir.c (merge_fences): Remove assert.
20806
20807 2019-04-01 Richard Biener <rguenther@suse.de>
20808
20809 PR tree-optimization/46590
20810 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20811 (dom_walker::m_reachability): Add in place of...
20812 (dom_walker::m_skip_unreachable_blocks): ...this.
20813 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20814 Move complex initialization ...
20815 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20816 lazily and initialize edge flags on each invocation.
20817 (dom_walker::bb_reachable): Use m_reachability.
20818
20819 2019-04-01 Martin Liska <mliska@suse.cz>
20820
20821 PR driver/89861
20822 * opt-suggestions.c (option_proposer::build_option_suggestions):
20823 Add variant without any argument in order to provide better
20824 hints.
20825
20826 2019-04-01 Richard Biener <rguenther@suse.de>
20827
20828 PR c/71598
20829 * gimple.c: Include langhooks.h.
20830 (gimple_get_alias_set): Treat enumeral types as the underlying
20831 integer type.
20832
20833 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20834 Eric Botcazou <ebotcazou@adacore.com>
20835
20836 PR rtl-optimization/89862
20837 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20838 that operates on the full registers for WORD_REGISTER_OPERATIONS
20839 architectures.
20840
20841 2019-03-29 Jim Wilson <jimw@sifive.com>
20842
20843 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20844 Clear MASK_RVC and then set if C subset supported.
20845
20846 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20847
20848 PR c/89872
20849 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20850 non-addressable complit into its initializer if it is volatile.
20851
20852 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20853
20854 * opts-common.c (integral_argument): Set errno properly in one case.
20855
20856 2019-03-29 Martin Liska <mliska@suse.cz>
20857
20858 * doc/invoke.texi: Remove -Wchkp from documentation.
20859
20860 2019-03-29 Martin Liska <mliska@suse.cz>
20861
20862 * dbgcnt.c (print_limit_reach): New function.
20863 (dbg_cnt): Use it.
20864
20865 2019-03-29 Martin Liska <mliska@suse.cz>
20866
20867 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20868 (dbg_cnt_process_opt): Parse first tokens aas
20869 dbg_cnt_process_single_pair is also using strtok.
20870
20871 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20872
20873 PR rtl-optimization/87485
20874 * function.c (expand_function_end): Move stack_protect_epilogue
20875 before loading of return value into hard register(s).
20876
20877 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20878
20879 PR middle-end/89621
20880 * tree-inline.h (struct copy_body_data): Add
20881 dont_remap_vla_if_no_change flag.
20882 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20883 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20884 and remap_type_2 returns false.
20885 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20886 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20887 only from where it is copied to nested contexts.
20888
20889 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20890
20891 PR target/89865
20892 * config/i386/i386.md (RMW operation with LEA peephole):
20893 Use LEAMODE mode attribute instead of SWI mode iterator for
20894 LEA pattern.
20895
20896 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20897
20898 PR target/89848
20899 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20900 Also process XEXP (src, 0) of a shift insn.
20901
20902 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20903
20904 PR middle-end/89725
20905 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20906 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20907
20908 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20909
20910 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20911 test.
20912 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20913 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20914 immediately after first one with df_analyze in between, but rather
20915 process all bbs, queueing ones that need second pass in a worklist,
20916 df_analyze, process queued debug insn changes and if second pass is
20917 needed, process bbs from worklist, df_analyze, process queued debug
20918 insns again.
20919
20920 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20921 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20922 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20923
20924 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20925
20926 PR c/79022
20927 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20928 definition.
20929
20930 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
20931
20932 PR target/85667
20933 * config/i386/i386.c (ix86_function_value_1): Call the newly added
20934 function for 32-bit MS_ABI.
20935 (function_value_ms_32): New function.
20936
20937 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
20938
20939 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20940 (movdi): Call gen_movdi_symbol_save_scc.
20941 (gen_movdi_symbol_save_scc): New insn and split.
20942
20943 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
20944
20945 PR rtl-optimization/89313
20946 * function.c (matching_constraint_num): New static function.
20947 (match_asm_constraints_1): Use it. Fixup white space and comment.
20948 Don't replace inputs with non-matching constraints which conflict
20949 with early clobber outputs.
20950
20951 2019-03-27 Jeff Law <law@redhat.com>
20952
20953 PR rtl-optimization/87761
20954 PR rtl-optimization/89826
20955 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20956 slightly later.
20957 (pass_cprop_hardreg::execute): Call df_analyze after adding the
20958 note problem to get REG_DEAD/REG_UNUSED notes updated.
20959
20960 2019-03-27 Richard Biener <rguenther@suse.de>
20961
20962 PR tree-optimization/89463
20963 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20964 queue edges to remove.
20965 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
20966 dead stmts. Delay edge removal until PHIs are removed to
20967 make debug-stmt creation not confused by seemingly degenerate
20968 PHIs.
20969
20970 2019-03-27 Alan Modra <amodra@gmail.com>
20971
20972 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
20973 throughout file.
20974 * config/rs6000/darwin.h: Likewise.
20975 * config/rs6000/rs6000.c: Likewise.
20976
20977 2019-03-27 Alan Modra <amodra@gmail.com>
20978
20979 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
20980 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
20981
20982 2019-03-26 Andrew Waterman <andrew@sifive.com>
20983 Jim Wilson <jimw@sifive.com>
20984
20985 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
20986 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
20987 (generic_idivdi, generic_fmul_single, generic_fmul_double)
20988 (generic_fdiv, generic_fsqrt): Add check for generic tune.
20989 (generic_alu): Add auipc to type list.
20990 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
20991 (riscv_microarchitecture): Declare.
20992 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
20993 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
20994 field.
20995 (riscv_microarchitecture): New.
20996 (sifive_7_tune_info): New.
20997 (riscv_cpu_info_table): Add microarchitecture value for rocket and
20998 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
20999 entries.
21000 (riscv_store_data_bypass_p): New.
21001 (riscv_option_override): Set riscv_microarchitecture from
21002 cpu->microarchitecture.
21003 * config/riscv/riscv.md: Include sifive-7.md.
21004 (type): Add auipc.
21005 (tune): New.
21006 (auipc<mode>): Change type to auipc.
21007 (restore_stack_nonlocal): New.
21008 * config/riscv/sifive-7.md: New.
21009 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21010
21011 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21012
21013 PR target/89827
21014 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21015 Also process XEXP (src, 0) of a shift insn.
21016
21017 2019-03-26 Richard Biener <rguenther@suse.de>
21018
21019 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21020 (copy_debug_stmt): Likewise.
21021 (expand_call_inline): Likewise.
21022 (copy_bb): Avoid redundant lookup & set of gimple_block.
21023 * gimple-low.c (lower_gimple_return): Likewise.
21024 (lower_builtin_setjmp): Likewise.
21025
21026 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21027
21028 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21029 is constant 0, turn into static const data member initialized to false.
21030 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21031 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21032
21033 2019-03-26 Jason Merrill <jason@redhat.com>
21034 Jakub Jelinek <jakub@redhat.com>
21035
21036 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21037 method.
21038 (mem_alloc_description::release_object_overhead): Fix comment typos.
21039 * hash-table.h (hash_table::~hash_table): Call
21040 release_instance_overhead only if m_entries is non-NULL, otherwise
21041 call unregister_descriptor.
21042
21043 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21044
21045 PR tree-optimization/81740
21046 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21047 In case of outer loop vectorization, check for backward dependence
21048 at the inner loop if outer loop dependence is reversed.
21049
21050 2019-03-26 Alan Modra <amodra@gmail.com>
21051
21052 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21053 rs6000_vector_mem init. Correct wI and wJ comment.
21054
21055 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21056
21057 PR rtl-optimization/88347
21058 PR rtl-optimization/88423
21059 * sched-deps.c (sched_analyze_insn): Take into account that for
21060 tablejumps the barrier appears after a label and a jump_table_data.
21061
21062 2019-03-25 Martin Sebor <msebor@redhat.com>
21063
21064 PR c/89812
21065 * c-common.c (check_user_alignment): Rename local. Correct maximum
21066 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21067 convert it to UHWI when it fits.
21068
21069 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21070
21071 PR debug/86964
21072 * dwarf2out.c (premark_used_variables): New function.
21073 (prune_unused_types_walk): Do not mark not premarked external
21074 variables.
21075 (prune_unused_types): Call premark_used_variables.
21076
21077 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21078
21079 PR rtl-optimization/89676
21080 * lra-constraints.c (curr_insn_transform): Do match reload for
21081 early clobbers when the match was successful only for different
21082 registers.
21083
21084 2019-03-25 Martin Sebor <msebor@redhat.com>
21085
21086 * doc/extend.texi (Common Type Attributes): Document vector_size.
21087 (Common Variable Attributes): Mention size constraint. Correct
21088 quoting and typos.
21089 (Vector Extensions): Use @dfn when defining bas type. Clarify
21090 base type and size constraints.
21091
21092 2019-03-25 Richard Biener <rguenther@suse.de>
21093
21094 PR tree-optimization/89789
21095 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21096 changes from non-undefined back to undefined.
21097
21098 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21099
21100 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21101 heap string and a gc string, but since this variable is unknown to
21102 ggc the gc string might get reused and corrupted. Fixed by always
21103 using a heap string.
21104
21105 2019-03-25 Richard Biener <rguenther@suse.de>
21106
21107 PR tree-optimization/89779
21108 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21109 to remove IV defs, delay actual removal.
21110 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21111 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21112 very end, properly also reset loop control IV information.
21113
21114 2019-03-25 Richard Biener <rguenther@suse.de>
21115
21116 PR tree-optimization/89802
21117 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21118 move EH data to folded stmt.
21119
21120 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21121
21122 * config/s390/s390-builtin-types.def: Remove few unused types and
21123 fix sort order for others.
21124
21125 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21126
21127 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21128 expected and found types with -mdebug during builtin matching.
21129
21130 2019-03-25 Richard Biener <rguenther@suse.de>
21131
21132 PR middle-end/89790
21133 * fold-const.c (operand_equal_p): Revert last change with
21134 updated comment.
21135
21136 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21137
21138 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21139 notes for the result of the __tls_get_addr calls.
21140 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21141
21142 2019-03-24 Jeff Law <law@redhat.com>
21143
21144 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21145
21146 PR rtl-optimization/87761
21147 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21148 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21149 as needed.
21150 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21151 rescans. Reprocess blocks as needed, calling df_analyze before
21152 reprocessing. Always call df_analyze before fixing up debug bind
21153 insns.
21154
21155 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21156
21157 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21158 big endian.
21159
21160 2019-03-22 Andrew Pinski <apinski@marvell.com>
21161
21162 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21163 attrribute for uxtw.
21164
21165 2019-03-26 Jeff Law <law@redhat.com>
21166
21167 PR rtl-optimization/87761
21168 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21169 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21170 (mips_split_move): Accept new INSN argument. Try to forward SRC
21171 into the next instruction.
21172 (mips_split_move_insn): Pass INSN through to mips_split_move.
21173
21174 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21175
21176 PR rtl-optimization/89676
21177 * lra-constraints.c (curr_insn_transform): Do match reload for
21178 early clobbers even if the match was successful.
21179
21180 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21181
21182 PR c++/87481
21183 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21184
21185 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21186
21187 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21188
21189 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21190
21191 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21192 <avx512>_fmsub_<mode>_mask3<round_name>,
21193 <avx512>_fnmadd_<mode>_mask3<round_name>,
21194 <avx512>_fnmsub_<mode>_mask3<round_name>,
21195 avx512f_vmfmadd_<mode>_mask3<round_name>,
21196 avx512f_vmfmsub_<mode>_mask3<round_name>,
21197 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21198 instead of register_operand and %v instead of v for match_operand 1.
21199 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21200 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21201 <round_nimm_predicate> instead of register_operand and %v instead of v
21202 for match_operand 1.
21203
21204 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21205 <avx512>_fmadd_<mode>_mask3<round_name>,
21206 <avx512>_fmsub_<mode>_mask<round_name>,
21207 <avx512>_fmsub_<mode>_mask3<round_name>,
21208 <avx512>_fnmadd_<mode>_mask<round_name>,
21209 <avx512>_fnmadd_<mode>_mask3<round_name>,
21210 <avx512>_fnmsub_<mode>_mask<round_name>,
21211 <avx512>_fnmsub_<mode>_mask3<round_name>,
21212 <avx512>_fmaddsub_<mode>_mask<round_name>,
21213 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21214 <avx512>_fmsubadd_<mode>_mask<round_name>,
21215 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21216 <round_nimm_predicate> instead of nonimmediate_operand.
21217 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21218 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21219 Use register_operand instead of <round_nimm_predicate> for the
21220 operand that needs to match output.
21221 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21222 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21223 Likewise. Formatting fixes.
21224
21225 PR target/89784
21226 * config/i386/i386.c (enum ix86_builtins): Remove
21227 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21228 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21229 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21230 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21231 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21232 __builtin_ia32_vfmsubss3_mask3): New builtins.
21233 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21234 avx512f_vmfmadd_<mode>_mask3<round_name>,
21235 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21236 *avx512f_vmfmsub_<mode>_mask<round_name>,
21237 avx512f_vmfmsub_<mode>_mask3<round_name>,
21238 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21239 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21240 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21241 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21242 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21243 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21244 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21245 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21246 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21247 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21248 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21249 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21250 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21251 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21252 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21253 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21254 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21255 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21256 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21257 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21258 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21259 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21260 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21261 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21262 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21263 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21264 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21265 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21266
21267 2019-03-21 Martin Sebor <msebor@redhat.com>
21268
21269 PR tree-optimization/89350
21270 * builtins.c (compute_objsize): Also ignore offsets whose upper
21271 bound is negative.
21272 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21273 (builtin_memref::builtin_memref): Initialize new member.
21274 Allow EXPR to be null.
21275 (builtin_memref::extend_offset_range): Replace local with a member.
21276 Avoid assuming pointer offsets are unsigned.
21277 (builtin_memref::set_base_and_offset): Determine base object
21278 before computing offset range.
21279 (builtin_access::builtin_access): Handle memset.
21280 (builtin_access::generic_overlap): Replace local with a member.
21281 (builtin_access::strcat_overlap): Same.
21282 (builtin_access::overlap): Same.
21283 (maybe_diag_overlap): Same.
21284 (maybe_diag_access_bounds): Same.
21285 (wrestrict_dom_walker::check_call): Handle memset.
21286 (check_bounds_or_overlap): Same.
21287
21288 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21289 Jakub Jelinek <jakub@redhat.com>
21290
21291 PR lto/89692
21292 * tree.c (fld_type_variant, fld_incomplete_type_of,
21293 fld_process_array_type): Call fld->pset.add and don't call
21294 add_tree_to_fld_list if it returns true.
21295 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21296 non-marked types from TYPE_NEXT_VARIANT list.
21297 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21298
21299 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21300
21301 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21302 to false, if true, don't alloc_entries during construction, but defer
21303 it to the first method that needs m_entries allocated.
21304 (hash_table::hash_table, hash_table::~hash_table,
21305 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21306 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21307 hash_table::clear_slot, hash_table::traverse_noresize,
21308 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21309 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21310 false.
21311 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21312 NO_INSERT instead of find_with_hash.
21313 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21314 hash_set::m_table): Add Lazy to template params of hash_table.
21315 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21316 * attribs.c (test_attribute_exclusions): Likewise.
21317 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21318 hash_set. Add tests for hash_set with Lazy = true.
21319
21320 2019-03-21 Richard Biener <rguenther@suse.de>
21321
21322 PR tree-optimization/89779
21323 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21324 checks with respect to released SSA names now having error_mark_node
21325 type.
21326 * fold-const.c (operand_equal_p): Likewise.
21327
21328 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21329
21330 PR target/89775
21331 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21332 available to ...
21333 (s390_optimize_register_info): Use global_not_special_regno_p to
21334 check for global regs.
21335
21336 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21337
21338 PR target/89752
21339 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21340 update this_alternative nor this_alternative_set.
21341
21342 2019-03-19 Jim Wilson <jimw@sifive.com>
21343
21344 PR target/89411
21345 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21346 align, size, offset. Use them to handle a BLKmode reference. Update
21347 comment.
21348 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21349
21350 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21351
21352 PR rtl-optimization/89768
21353 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21354 instead of GEN_INT.
21355 (unroll_loop_runtime_iterations): Likewise.
21356
21357 2019-03-19 Martin Sebor <msebor@redhat.com>
21358
21359 PR tree-optimization/89644
21360 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21361 rather than endptr as an indicator of nul-termination.
21362
21363 PR tree-optimization/89644
21364 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21365 arrays in determining sequence sizes in strncpy and stpncpy.
21366
21367 2019-03-19 Martin Liska <mliska@suse.cz>
21368
21369 PR middle-end/89737
21370 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21371 unlikely_edges if there's an edge that belongs to both these sets.
21372
21373 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21374
21375 PR target/89746
21376 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21377 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21378 go via a stack temporary.
21379
21380 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21381
21382 PR target/89378
21383 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21384 instead of gen_rtx_SUBREG.
21385 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21386
21387 2019-03-19 Richard Biener <rguenther@suse.de>
21388
21389 PR debug/88389
21390 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21391
21392 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21393
21394 PR lto/87809
21395 PR lto/89335
21396 * tree.c (free_lang_data_in_decl): Do not free context of C++
21397 destrutors.
21398
21399 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21400
21401 PR target/89506
21402 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21403 subs for the first alternative except when operands[3] is 1.
21404
21405 PR target/89752
21406 * gimplify.c (gimplify_asm_expr): For output argument with
21407 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21408 diagnose error.
21409
21410 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21411
21412 PR rtl-optimization/89753
21413 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21414 explicit unrolling factor even more robust.
21415
21416 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21417
21418 PR target/89726
21419 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21420 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21421 signed zeros, do another copysign after the compensation.
21422
21423 2019-03-18 Martin Sebor <msebor@redhat.com>
21424
21425 PR tree-optimization/89720
21426 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21427 more conservatively, the same as anti-range.
21428
21429 2019-03-18 Richard Biener <rguenther@suse.de>
21430
21431 PR middle-end/88945
21432 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21433 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21434 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21435 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21436
21437 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21438
21439 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21440 Extend queue to 1024 entries.
21441 Add "consumed" field.
21442 (gomp_print_output): Remove print_index parameter.
21443 Add final parameter.
21444 Change limit to unsigned.
21445 Use consumed field to implement circular buffer.
21446 Detect interrupted print in final pass.
21447 Flush output at the end.
21448 (run): Update gomp_print_output usage.
21449 (main): Initialize kernargs->output_data.consumed.
21450
21451 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21452
21453 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21454 calculation of the minimum number of scalar iterations for
21455 fully-predicated loops.
21456
21457 2019-03-18 Martin Jambor <mjambor@suse.cz>
21458
21459 PR tree-optimization/89546
21460 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21461 any propagation to its children took place.
21462
21463 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21464
21465 PR target/89627
21466 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21467 parameter, and make use of it.
21468 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21469
21470 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21471
21472 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21473 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21474 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21475 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21476 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21477 match what the ops is doing.
21478 (push_multi_fp_blink): Likewise.
21479 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21480 compiling for size and elf target.
21481 (arc_save_callee_enter): Adjust note to match what enter/leave
21482 operation does.
21483
21484 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21485
21486 * config/arc/arc.md (tst_movb): Fix constraint.
21487
21488 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21489
21490 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21491
21492 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21493
21494 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21495 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21496 reg_alloc_order references.
21497 (size_alloc_order): Define.
21498 (arc_adjust_reg_alloc_order): New function.
21499 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21500 order.
21501 (ADJUST_REG_ALLOC_ORDER): Define.
21502 (HONOR_REG_ALLOC_ORDER): Likewise.
21503
21504 2019-03-18 Richard Biener <rguenther@suse.de>
21505
21506 PR target/87561
21507 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21508 loads and stores a bit more.
21509
21510 2019-03-18 Richard Biener <rguenther@suse.de>
21511
21512 PR target/87561
21513 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21514 load pessimization to stores as well.
21515
21516 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21517
21518 PR middle-end/86979
21519 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21520 successor, use NULL as its av set.
21521
21522 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21523
21524 PR rtl-optimization/89721
21525 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21526
21527 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21528
21529 PR target/87532
21530 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21531 When handling vec_extract, use modular arithmetic to allow
21532 constant selectors greater than vector length.
21533 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21534 V1TImode vectors to have constant selector values greater than 0.
21535 Use modular arithmetic to compute vector index.
21536 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21537 index for in-memory vectors. Correct code generation for
21538 in-register vectors.
21539 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21540 compute index.
21541
21542 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21543
21544 PR c++/88534
21545 PR c++/88537
21546 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21547 VAR_DECL args.
21548
21549 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21550
21551 PR c++/89709
21552 * tree.c (inchash::add_expr): Strip any location wrappers.
21553 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21554 after hash verification.
21555
21556 PR debug/89704
21557 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21558 SIGN_EXTEND and ZERO_EXTEND.
21559
21560 2019-03-14 Jason Merrill <jason@redhat.com>
21561 Jakub Jelinek <jakub@redhat.com>
21562
21563 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21564 than if is_empty (*slot).
21565 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21566 existing elt and for elt removal.
21567 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21568 of already removed elt.
21569
21570 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21571
21572 PR target/89650
21573 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21574 REG_EH_REGION note.
21575
21576 2019-03-14 Martin Liska <mliska@suse.cz>
21577
21578 PR other/89712
21579 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21580
21581 2019-03-14 Richard Biener <rguenther@suse.de>
21582
21583 PR target/89711
21584 * config/i386/i386.c (make_resolver_func): Properly set
21585 DECL_CONTEXT on the RESULT_DECL.
21586 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21587
21588 2019-03-14 Richard Biener <rguenther@suse.de>
21589
21590 * gimple-pretty-print.c: Include cfgloop.h.
21591 (dump_gimple_phi): Adjust.
21592 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21593 (pp_cfg_jump): Adjust.
21594 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21595 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21596 (lower_phi_internal_fn): Remove.
21597 (verify_gimple_call): Remove IFN_PHI special-casing.
21598 (dump_function_to_file): Dump IL state.
21599 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21600 done to deal with PHI nodes being present in non-SSA state.
21601
21602 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21603
21604 PR ipa/89684
21605 * multiple_target.c (create_dispatcher_calls): Change
21606 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21607 In the node->iterate_referring loop, push *ref rather than ref, call
21608 ref->remove_reference () and always pass 0 to iterate_referring.
21609
21610 PR rtl-optimization/89679
21611 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21612 would contain a paradoxical SUBREG.
21613
21614 2019-03-14 Richard Biener <rguenther@suse.de>
21615
21616 PR tree-optimization/89710
21617 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21618 safe_dyn_cast.
21619
21620 2019-03-14 Martin Liska <mliska@suse.cz>
21621
21622 * coverage.c (coverage_begin_function): Stream also
21623 end_column.
21624 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21625 documentation about function declaration location.
21626 * gcov-dump.c (tag_function): Print whole range
21627 of function declaration.
21628 * gcov.c (struct function_info): Add end_column field.
21629 (function_info::function_info): Initialize it.
21630 (output_json_intermediate_file): Output {start,end}_column
21631 fields.
21632 (read_graph_file): Read end_column.
21633
21634 2019-03-14 Richard Biener <rguenther@suse.de>
21635
21636 PR middle-end/89698
21637 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21638 that the access types are similar.
21639
21640 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21641
21642 PR tree-optimization/89703
21643 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21644 aren't compatible also with builtin_decl_explicit. Check pure
21645 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21646 and BUILT_IN_STPNCPY{,_CHK}.
21647
21648 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21649
21650 PR target/89523
21651 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21652 addr32 prefix to VSIB address for X32.
21653 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21654 "%M2" to opcode.
21655 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21656 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21657 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21658 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21659 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21660 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21661 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21662 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21663 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21664 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21665 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21666 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21667 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21668 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21669 (*avx512f_scatterdi<mode>): Likewise.
21670
21671 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21672
21673 PR target/85860
21674 * lra-constraints.c (inherit_in_ebb): Update
21675 potential_reload_hard_regs along with live_hard_regs.
21676
21677 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21678
21679 PR debug/89498
21680 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21681 DWARF_OFFSET_SIZE.
21682 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21683
21684 2019-03-13 Martin Sebor <msebor@redhat.com>
21685
21686 PR tree-optimization/89662
21687 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21688 has a size.
21689
21690 2019-03-13 Richard Biener <rguenther@suse.de>
21691
21692 PR middle-end/89677
21693 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21694 throw FP expressions at tree-affine.
21695
21696 2019-03-14 Richard Biener <rguenther@suse.de>
21697
21698 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21699 dump negative integer constants using _Literal (type) -num.
21700
21701 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21702
21703 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21704 nonlocal_value member.
21705
21706 PR middle-end/88588
21707 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21708 (ipa_simd_modify_function_body): Handle PHIs.
21709
21710 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21711
21712 * config/s390/s390.c (s390_option_override_internal): Use more
21713 aggressive inlining parameters.
21714
21715 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21716
21717 * config/s390/3906.md: New file.
21718 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21719 (LONGRUNNING_THRESHOLD): Remove.
21720 (MAX_SCHED_MIX_SCORE): Decrease.
21721 (MAX_SCHED_MIX_DISTANCE): Decrease.
21722 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21723 (struct s390_sched_state): New struct to hold scheduling state.
21724 (S390_SCHED_STATE_NORMAL): Remove.
21725 (S390_SCHED_STATE_CRACKED): Remove.
21726 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21727 (s390_get_sched_attrmask): Use new attribute.
21728 (s390_get_unit_mask): Use new units.
21729 (s390_is_fpd): New function.
21730 (s390_is_fxd): New function.
21731 (s390_is_longrunning): New function.
21732 (s390_sched_score): Use new functions.
21733 (s390_sched_reorder): Likewise.
21734 (s390_sched_variable_issue): Rework and use new functions.
21735 (s390_sched_init): Use new functions.
21736 * config/s390/s390.h (s390_tune_attr): Add z14.
21737 * config/s390/s390.md: Add z14.
21738
21739 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21740
21741 * config/s390/2964.md: Update pipeline description.
21742 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21743 (LONGRUNNING_THRESHOLD): Remove.
21744 (LATENCY_FACTOR): Remove.
21745 (s390_get_unit_mask): Add unit.
21746 (s390_sched_score): Use fxd/fpd.
21747 (s390_sched_variable_issue): Use fxd/fpd.
21748
21749 2019-03-12 Martin Liska <mliska@suse.cz>
21750
21751 * config/i386/i386.c: Reword an error message.
21752
21753 2019-03-12 Martin Jambor <mjambor@suse.cz>
21754
21755 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21756 terminate with newline.
21757
21758 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21759
21760 PR target/52726
21761 * config/s390/s390.md (tabort): Use %wd instead of
21762 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21763 letters and periods.
21764 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21765 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21766 's with %< and %>.
21767
21768 PR middle-end/89663
21769 * builtins.c (expand_builtin_int_roundingfn,
21770 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21771 gcc_unreachable if validate_arglist fails.
21772
21773 2019-03-12 Richard Biener <rguenther@suse.de>
21774
21775 PR tree-optimization/89664
21776 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21777 free the occurance tree after the early out.
21778
21779 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21780
21781 PR middle-end/89655
21782 PR bootstrap/89656
21783 * vr-values.c (vr_values::update_value_range): If
21784 old_vr->varying_p (), don't update it, make new_vr also VARYING
21785 and return false.
21786
21787 2019-03-11 Martin Liska <mliska@suse.cz>
21788
21789 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21790 Fix double string quoting.
21791
21792 2019-03-11 Martin Liska <mliska@suse.cz>
21793
21794 * collect-utils.c (collect_wait): Wrap apostrophes
21795 in gcc internal format with %'.
21796 * collect2.c (main): Likewise.
21797 (scan_prog_file): Likewise.
21798 (scan_libraries): Likewise.
21799 * config/i386/i386.c (ix86_expand_call): Likewise.
21800 (ix86_handle_interrupt_attribute): Likewise.
21801 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21802 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21803 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21804 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21805 * symtab.c (symtab_node::verify_base): Likewise.
21806 * tree-cfg.c (verify_gimple_label): Likewise.
21807 * tree.c (verify_type_variant): Likewise.
21808
21809 2019-03-11 Martin Liska <mliska@suse.cz>
21810
21811 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21812 in a string format message and fix GNU coding style.
21813 (expand_builtin_set_thread_pointer): Likewise.
21814 * common/config/aarch64/aarch64-common.c
21815 (aarch64_rewrite_selected_cpu): Likewise.
21816 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21817 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21818 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21819 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21820 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21821 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21822 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21823 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21824 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21825 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21826 Likewise.
21827 * common/config/riscv/riscv-common.c
21828 (riscv_subset_list::parsing_subset_version): Likewise.
21829 (riscv_subset_list::parse_std_ext): Likewise.
21830 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21831 (riscv_subset_list::parse): Likewise.
21832 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21833 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21834 (aarch64_override_options_internal): Likewise.
21835 (aarch64_validate_mcpu): Likewise.
21836 (aarch64_validate_march): Likewise.
21837 (aarch64_validate_mtune): Likewise.
21838 (aarch64_override_options): Likewise.
21839 * config/alpha/alpha.c (alpha_option_override): Likewise.
21840 * config/arc/arc.c (arc_init): Likewise.
21841 (parse_mrgf_banked_regs_option): Likewise.
21842 (arc_override_options): Likewise.
21843 (arc_expand_builtin_aligned): Likewise.
21844 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21845 (arm_expand_builtin): Likewise.
21846 * config/arm/arm.c (arm_option_check_internal): Likewise.
21847 (arm_configure_build_target): Likewise.
21848 (arm_option_override): Likewise.
21849 (arm_options_perform_arch_sanity_checks): Likewise.
21850 (arm_handle_cmse_nonsecure_entry): Likewise.
21851 (arm_handle_cmse_nonsecure_call): Likewise.
21852 (arm_tls_referenced_p): Likewise.
21853 (thumb1_expand_prologue): Likewise.
21854 * config/avr/avr.c (avr_option_override): Likewise.
21855 * config/bfin/bfin.c (bfin_option_override): Likewise.
21856 * config/c6x/c6x.c (c6x_option_override): Likewise.
21857 * config/cr16/cr16.c (cr16_override_options): Likewise.
21858 * config/cris/cris.c (cris_option_override): Likewise.
21859 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21860 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21861 * config/darwin.c (darwin_override_options): Likewise.
21862 * config/frv/frv.c (frv_expand_builtin): Likewise.
21863 * config/h8300/h8300.c (h8300_option_override): Likewise.
21864 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21865 (ix86_option_override_internal): Likewise.
21866 (warn_once_call_ms2sysv_xlogues): Likewise.
21867 (ix86_expand_prologue): Likewise.
21868 (split_stack_prologue_scratch_regno): Likewise.
21869 (ix86_warn_parameter_passing_abi): Likewise.
21870 * config/ia64/ia64.c (fix_range): Likewise.
21871 * config/m68k/m68k.c (m68k_option_override): Likewise.
21872 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21873 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21874 (mips_set_compression_mode): Likewise.
21875 * config/mmix/mmix.c (mmix_option_override): Likewise.
21876 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21877 * config/msp430/msp430.c (msp430_option_override): Likewise.
21878 * config/nds32/nds32.c (nds32_option_override): Likewise.
21879 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21880 (nios2_option_override): Likewise.
21881 (nios2_expand_custom_builtin): Likewise.
21882 * config/nvptx/mkoffload.c (main): Likewise.
21883 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21884 * config/pa/pa.c (fix_range): Likewise.
21885 (pa_option_override): Likewise.
21886 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21887 (riscv_option_override): Likewise.
21888 * config/rl78/rl78.c (rl78_option_override): Likewise.
21889 * config/rs6000/aix61.h: Likewise.
21890 * config/rs6000/aix71.h: Likewise.
21891 * config/rs6000/aix72.h: Likewise.
21892 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21893 * config/rs6000/freebsd64.h: Likewise.
21894 * config/rs6000/linux64.h: Likewise.
21895 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21896 (rs6000_expand_zeroop_builtin): Likewise.
21897 (rs6000_expand_mtfsb_builtin): Likewise.
21898 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21899 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21900 (rs6000_invalid_builtin): Likewise.
21901 (rs6000_expand_split_stack_prologue): Likewise.
21902 * config/rs6000/rtems.h: Likewise.
21903 * config/rx/rx.c (valid_psw_flag): Likewise.
21904 (rx_expand_builtin): Likewise.
21905 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21906 * config/s390/s390.c (s390_expand_builtin): Likewise.
21907 (s390_function_profiler): Likewise.
21908 (s390_option_override_internal): Likewise.
21909 (s390_option_override): Likewise.
21910 * config/sh/sh.c (sh_option_override): Likewise.
21911 (sh_builtin_saveregs): Likewise.
21912 (sh_fix_range): Likewise.
21913 * config/sh/vxworks.h: Likewise.
21914 * config/sparc/sparc.c (sparc_option_override): Likewise.
21915 * config/spu/spu.c (spu_option_override): Likewise.
21916 (fix_range): Likewise.
21917 * config/visium/visium.c (visium_option_override): Likewise.
21918 (visium_handle_interrupt_attr): Likewise.
21919 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21920 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21921 (dbg_cnt_process_opt): Likewise.
21922 * dwarf2out.c (output_dwarf_version): Likewise.
21923 * except.c (expand_eh_return): Likewise.
21924 * gcc.c (defined): Likewise.
21925 (driver_handle_option): Likewise.
21926 (process_command): Likewise.
21927 (compare_files): Likewise.
21928 (driver::prepare_infiles): Likewise.
21929 (driver::do_spec_on_infiles): Likewise.
21930 (driver::maybe_run_linker): Likewise.
21931 * omp-offload.c (oacc_parse_default_dims): Likewise.
21932 * opts-global.c (handle_common_deferred_options): Likewise.
21933 * opts.c (parse_sanitizer_options): Likewise.
21934 (common_handle_option): Likewise.
21935 (enable_warning_as_error): Likewise.
21936 * passes.c (enable_disable_pass): Likewise.
21937 * plugin.c (parse_plugin_arg_opt): Likewise.
21938 (default_plugin_dir_name): Likewise.
21939 * targhooks.c (default_expand_builtin_saveregs): Likewise.
21940 (default_pch_valid_p): Likewise.
21941 * toplev.c (init_asm_output): Likewise.
21942 (process_options): Likewise.
21943 (toplev::run_self_tests): Likewise.
21944 * tree-cfg.c (verify_gimple_call): Likewise.
21945 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21946 (tree_inlinable_function_p): Likewise.
21947 * var-tracking.c (vt_find_locations): Likewise.
21948
21949 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
21950
21951 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21952 only on the else branch.
21953
21954 2019-03-11 Martin Liska <mliska@suse.cz>
21955
21956 * gcov.c (output_intermediate_json_line): Print function
21957 name of each line.
21958 (output_json_intermediate_file): Add new argument.
21959 * doc/gcov.texi: Document the change.
21960
21961 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
21962
21963 PR rtl-optimization/89588
21964 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21965 explicit unrolling factor more robust.
21966
21967 2019-03-11 Richard Biener <rguenther@suse.de>
21968
21969 PR tree-optimization/89649
21970 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
21971 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
21972 on the prolog and epilog loops.
21973 (vect_loop_versioning): Return copy of loop.
21974 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
21975 on the non-vectorized version of the loop.
21976
21977 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
21978
21979 PR target/68924
21980 * config/i386/sse.md (*vec_extractv2di_0_sse):
21981 Add (=r,x) alternative and corresponding splitter.
21982
21983 2019-03-10 Martin Jambor <mjambor@suse.cz>
21984
21985 PR tree-optimization/85762
21986 PR tree-optimization/87008
21987 PR tree-optimization/85459
21988 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
21989 it points to if there is a type changing MEM_REF. Adjust all callers.
21990 (build_accesses_from_assign): Disable total scalarization if
21991 contains_vce_or_bfcref_p returns true through the new parameter, for
21992 both rhs and lhs.
21993
21994 2019-03-09 Jakub Jelinek <jakub@redhat.com>
21995
21996 PR c/88568
21997 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
21998 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
21999
22000 PR target/79645
22001 * common.opt (fdiagnostics-show-labels,
22002 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22003 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22004 gas-locview-support, ginline-points, ginternal-reset-location-views):
22005 Terminate description text with a dot.
22006 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22007 * config/mcore/mcore.opt (m210, m340): Likewise.
22008 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22009 mnops=): Start description text with a capital letter.
22010 * config/arc/arc.opt (msize-level=): Likewise.
22011 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22012 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22013 mnewlib): Likewise.
22014 * config/ft32/ft32.opt (msim): Likewise.
22015 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22016 (mnodiv, mnopm): Terminate description text with a dot.
22017 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22018 a colon.
22019 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22020 Likewise.
22021 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22022 text.
22023
22024 PR rtl-optimization/89634
22025 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22026 are modified in BB_END (e->src) instruction.
22027
22028 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22029
22030 PR target/79926
22031 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22032 messages more amenable to translation, and improve wording.
22033
22034 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22035
22036 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22037 ud- and du-chains between phases.
22038
22039 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22040
22041 PR debug/89631
22042 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22043 instead of POLY_INT_CST.
22044
22045 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22046
22047 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22048 requirement.
22049
22050 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22051
22052 PR target/68924
22053 PR target/78782
22054 PR target/87558
22055 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22056 (_mm_storeu_si64): Ditto.
22057
22058 2019-03-08 Martin Liska <mliska@suse.cz>
22059
22060 PR target/86952
22061 * config/i386/i386.c (ix86_option_override_internal): Disable
22062 jump tables when retpolines are used.
22063
22064 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22065
22066 PR go/63560
22067 * ipa-split.c (execute_split_functions): Do not split
22068 'noinline' or 'section' function.
22069
22070 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22071
22072 PR target/79846
22073 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22074 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22075 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22076
22077 PR ipa/80000
22078 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22079 from diagnostics. Formatting fixes.
22080
22081 PR target/85665
22082 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22083 warn_odr diagnostics.
22084
22085 PR other/80058
22086 * lra-constraints.c (process_alt_operands): Avoid one space before
22087 " at the end of line and another after " on another line in a string
22088 literal.
22089 * attribs.c (handle_dll_attribute): Likewise.
22090 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22091
22092 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22093 warning_at or inform messages in G_() if there is no ?:.
22094
22095 PR tree-optimization/89550
22096 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22097 returned true. Formatting fixes.
22098 (expand_builtin_strnlen): Formatting fixes.
22099 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22100 if warning_at returned true.
22101 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22102
22103 2019-03-08 Richard Biener <rguenther@suse.de>
22104
22105 PR middle-end/89578
22106 * cfgloop.h (struct loop): Add owned_clique field.
22107 * cfgloopmanip.c (copy_loop_info): Copy it.
22108 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22109 cliques.
22110 * tree-inline.c (copy_loops): Remap owned_clique.
22111 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22112 * lto-streamer-out.c (output_cfg): Likewise.
22113
22114 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22115
22116 PR target/80190
22117 * config/darwin.c: Include intl.h.
22118 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22119 composing the message out of two separate parts.
22120
22121 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22122
22123 PR target/80003
22124 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22125 doesn't start with a capital letter and doesn't end with a dot.
22126 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22127 with a capital letter.
22128 (ix86_mangle_function_version_assembler_name): Likewise.
22129 (ix86_generate_version_dispatcher_body): Likewise.
22130 (fold_builtin_cpu): Likewise.
22131 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22132 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22133 translators, wrap full type name in %qs.
22134
22135 PR translation/79999
22136 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22137 depend clause with source (or sink) modifier.
22138 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22139
22140 PR target/89602
22141 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22142 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22143 (avx512f_load<mode>_mask): New define_expand.
22144 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22145 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22146 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22147 __builtin_ia32_movess_mask): New builtins.
22148 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22149 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22150 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22151 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22152
22153 2019-03-07 Martin Jambor <mjambor@suse.cz>
22154
22155 PR lto/87525
22156 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22157 for extern inline functions.
22158
22159 2019-03-07 Martin Jambor <mjambor@suse.cz>
22160
22161 PR ipa/88235
22162 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22163 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22164 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22165 have multiple callees. At the end check if declarations match as
22166 opposed to cgraph_nodes.
22167
22168 2019-03-07 Martin Liska <mliska@suse.cz>
22169
22170 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22171 which is equivalent to searching for this in clones chain.
22172 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22173 names with a neighbour and special case first node in a chain.
22174
22175 2019-01-25 Jason Merrill <jason@redhat.com>
22176
22177 PR c++/80916 - spurious "static but not defined" warning.
22178 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22179 for an internal symbol with DECL_EXTERNAL.
22180
22181 2019-04-07 Richard Biener <rguenther@suse.de>
22182
22183 PR middle-end/89618
22184 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22185 * tree-inline.c (copy_loops): Simplify.
22186
22187 2019-03-07 Martin Liska <mliska@suse.cz>
22188
22189 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22190
22191 2019-03-07 Richard Biener <rguenther@suse.de>
22192
22193 PR tree-optimization/89595
22194 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22195 stmt iterator as reference, take boolean output parameter to
22196 indicate whether the stmt was removed and thus the iterator
22197 already advanced.
22198 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22199 stmts created by folding.
22200
22201 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22202
22203 PR c++/89585
22204 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22205 at toplevel.
22206
22207 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22208
22209 PR rtl-optimization/88845
22210 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22211 LRA.
22212 * lra.c (remove_scratches_1): New function.
22213 (remove_scratches): Use it.
22214 (lra_emit_move): Likewise.
22215
22216 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22217
22218 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22219 unaligned_access variable.
22220 * config/arc/arc.c (arc_override_options): Set unaligned access
22221 default on for HS CPUs.
22222 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22223
22224 2019-03-06 Martin Liska <mliska@suse.cz>
22225
22226 PR gcov-profile/89577
22227 * doc/gcov.texi: Prefer to use --coverage.
22228 * doc/sourcebuild.texi: Likewise.
22229
22230 2019-03-02 Jason Merrill <jason@redhat.com>
22231
22232 PR c++/86485 - -Wmaybe-unused with empty class ?:
22233 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22234
22235 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22236
22237 PR target/89587
22238 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22239 if_multiarch.
22240
22241 PR middle-end/89590
22242 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22243 exactly one argument.
22244
22245 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22246 Richard Sandiford <richard.sandiford@arm.com>
22247
22248 PR tree-optimization/89570
22249 * match.pd (vec_cond into cond_op simplification): Don't use
22250 get_conditional_internal_fn, use as_internal_fn (cond_op).
22251
22252 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22253
22254 PR target/89222
22255 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22256 to decide when to split off a non-zero offset from a symbol.
22257 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22258 in function symbols.
22259
22260 2019-03-05 Richard Biener <rguenther@suse.de>
22261
22262 PR tree-optimization/89594
22263 * tree-if-conv.c (pass_if_conversion::execute): Handle
22264 case where .LOOP_VECTORIZED_FUNCTION was removed.
22265
22266 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22267
22268 PR bootstrap/89560
22269 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22270 instead alloca it only when needed with the needed size.
22271
22272 PR tree-optimization/89570
22273 * match.pd (vec_cond into cond_op simplification): Guard with
22274 vectorized_internal_fn_supported_p test and #if GIMPLE.
22275
22276 PR tree-optimization/89566
22277 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22278 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22279 Punt if get_user_idx_format succeeds, but idx_format argument is
22280 not provided or doesn't have pointer type, or if idx_args is above
22281 number of provided arguments.
22282
22283 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22284
22285 PR tree-optimization/89437
22286 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22287
22288 2019-03-04 Richard Biener <rguenther@suse.de>
22289
22290 PR middle-end/89572
22291 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22292 safe_dyn_cast.
22293
22294 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22295
22296 PR tree-optimization/89487
22297 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22298 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22299 (distribute_loop): Don't do runtime alias check if there is non-
22300 addressable data reference.
22301 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22302 is a register variable.
22303
22304 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22305
22306 PR target/89506
22307 * config/arm/arm.md (cmpsi2_addneg): Use
22308 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22309 If operands[2] is 0 or INT_MIN, force use of subs.
22310 (*compare_scc splitter): Use gen_int_mode.
22311 (*negscc): Likewise.
22312 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22313
22314 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22315 Monk Chiang <sh.chiang04@gmail.com>
22316
22317 * common/config/riscv/riscv-common.c: Include sstream.
22318 (riscv_subset_list::to_string): New.
22319 (riscv_arch_str): Likewise.
22320 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22321 * config.in: Regen.
22322 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22323 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22324 (riscv_emit_attribute): New.
22325 (riscv_file_start): Emit attribute if needed.
22326 (riscv_option_override): Init riscv_emit_attribute_p.
22327 * config/riscv/riscv.opt (mriscv-attribute): New option.
22328 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22329 * configure: Regen.
22330 * doc/install.texi: Document --with-riscv-attribute.
22331 * doc/invoke.texi: Document -mriscv-attribute.
22332
22333 * common/config/riscv/riscv-common.c:
22334 Include config/riscv/riscv-protos.h.
22335 (INCLUDE_STRING): Defined.
22336 (RISCV_DONT_CARE_VERSION): Defined.
22337 (riscv_subset_t): Declare.
22338 (riscv_subset_t::riscv_subset_t): New.
22339 (riscv_subset_list): Declare.
22340 (riscv_subset_list::riscv_subset_list): New.
22341 (riscv_subset_list::~riscv_subset_list): Likewise.
22342 (riscv_subset_list::parsing_subset_version): Likewise.
22343 (riscv_subset_list::parse_std_ext): Likewise.
22344 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22345 (riscv_subset_list::add): Likewise.
22346 (riscv_subset_list::lookup): Likewise.
22347 (riscv_subset_list::xlen): Likewise.
22348 (riscv_subset_list::parse): Likewise.
22349 (riscv_supported_std_ext): Likewise.
22350 (current_subset_list): Likewise.
22351 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22352 parse.
22353
22354 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22355
22356 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22357 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22358 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22359
22360 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22361
22362 PR rtl-optimization/85899
22363 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22364 fallthru edges leading to the exit block.
22365
22366 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22367
22368 PR target/89517
22369 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22370 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22371
22372 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22373
22374 PR tree-optimization/89535
22375 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22376 for each operand. Calculate the fallback choice for mask operands
22377 and pass it to vect_get_vec_def_for_operand.
22378
22379 2019-03-01 Richard Biener <rguenther@suse.de>
22380
22381 PR middle-end/89541
22382 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22383 get virtual operands.
22384 (get_expr_operands): Handle CONST_DECL like other decls.
22385
22386 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22387
22388 PR middle-end/89503
22389 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22390 on DECL_P and EXPR_P.
22391
22392 2019-03-01 Richard Biener <rguenther@suse.de>
22393
22394 PR middle-end/89497
22395 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22396 argument, defaulted to zero.
22397 * passes.c (execute_function_todo): Pass down SSA update flags
22398 to cleanup_tree_cfg.
22399 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22400 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22401 form if requested.
22402 (cleanup_tree_cfg): Get and pass down SSA update flags.
22403
22404 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22405
22406 PR bootstrap/89539
22407 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22408 early_lto_debug argument.
22409
22410 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22411
22412 PR tree-optimization/89536
22413 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22414 only whether bit #0 of the value is 0 instead of the entire value.
22415
22416 2019-02-28 Marek Polacek <polacek@redhat.com>
22417
22418 PR c++/87068 - missing diagnostic with fallthrough statement.
22419 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22420 at the end of a seq, save its location to walk_stmt_info.
22421 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22422 a switch.
22423
22424 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22425
22426 PR lto/88585
22427 * tree.c (find_atomic_core_type): Move ahead in file.
22428 (check_base_type): Correctly compare alignments of atomic types.
22429
22430 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22431
22432 PR target/89455
22433 * config/i386/i386.c (get_builtin_code_for_version): Identify
22434 Westmere from PCLMUL, instead of AES.
22435
22436 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22437
22438 PR target/89434
22439 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22440 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22441 -UINTVAL (...).
22442
22443 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22444
22445 PR target/88530
22446 * config/aarch64/aarch64-option-extensions.def: Document it.
22447 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22448 if empty hwcaps.
22449
22450 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22451
22452 PR c/89520
22453 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22454 builtins if they don't have a single scalar floating point argument.
22455 Formatting fixes.
22456
22457 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22458
22459 PR rtl-optimization/89490
22460 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22461 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22462 block section is not mergeable.
22463
22464 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22465
22466 PR target/70341
22467 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22468 old define_insn to ...
22469 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22470 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22471 Rename old define_insn to ...
22472 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22473 (thumb2_casesi_internal_pic): New define_expand. Rename old
22474 define_insn to ...
22475 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22476 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22477 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22478
22479 2019-02-27 Richard Biener <rguenther@suse.de>
22480
22481 PR debug/88878
22482 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22483
22484 2019-02-27 Richard Biener <rguenther@suse.de>
22485
22486 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22487 building.
22488
22489 2019-02-27 Richard Biener <rguenther@suse.de>
22490
22491 PR debug/88878
22492 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22493 parameter, prefix section name with .gnu.debuglto_ if true.
22494 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22495 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22496
22497 2019-02-27 Richard Biener <rguenther@suse.de>
22498
22499 PR debug/89514
22500 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22501 rather than on use_debug_types, doing what output_die does.
22502 (value_format): Likewise.
22503
22504 2019-02-27 Martin Jambor <mjambor@suse.cz>
22505 Martin Sebor <msebor@redhat.com>
22506
22507 * doc/invoke.texi (Warning Options): Reword description of
22508 -Wno-absolute-value.
22509
22510 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22511
22512 PR tree-optimization/89280
22513 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22514 builtin_setjmp_setup_bb): New functions.
22515 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22516 When visiting __builtin_setjmp_setup block, queue in special
22517 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22518 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22519 from visited after the loop if they don't have any visited successor
22520 blocks.
22521
22522 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22523
22524 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22525 New function.
22526 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22527
22528 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR c++/89507
22531 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22532 with types other than sizetype/ssizetype.
22533
22534 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22535
22536 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22537 (enum sparc_processor_type): ...this.
22538 (enum sparc_code_model_type): New enumeration type.
22539 (enum sparc_memory_model_type): Tweak comments.
22540 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22541 (mtune): Likewise.
22542 (mcmodel): Use sparc_code_model enumeration and variable.
22543 (sparc_code_model): New enumeration.
22544 (mdebug): Add Undocumented marker.
22545 * config/sparc/sparc.h (enum cmodel): Delete.
22546 (sparc_cmodel): Likewise.
22547 (TARGET_CM_MEDLOW): Adjust to above renaming.
22548 (TARGET_CM_MEDMID): Likewise.
22549 (TARGET_CM_MEDANY): Likewise.
22550 (TARGET_CM_EMBMEDANY): Likewise.
22551 * config/sparc/sparc.c (sparc_cmodel): Delete.
22552 (sparc_option_override): Remove string/value mapping support for the
22553 code model. Move code and memory model support to after the handling
22554 of target flags. Do private machine setup last.
22555 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22556 (sparc_legitimize_reload_address): Likewise.
22557 (sparc_output_mi_thunk): Likewise.
22558 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22559
22560 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22561
22562 PR tree-optimization/89500
22563 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22564 (handle_builtin_strlen): Remove noncst_bound variable. Always
22565 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22566 cst if the first cst bytes starting at x are known to be non-zero,
22567 even if the string is not zero terminated. Don't try to modify
22568 *si for strnlen. Update strlen_to_stridx only for strlen or if
22569 we can prove strnlen returns the same value as strlen would.
22570
22571 2019-02-26 Martin Liska <mliska@suse.cz>
22572
22573 * alloc-pool.h (struct pool_usage): Remove extra
22574 print_dash_line.
22575 * bitmap.h (struct bitmap_usage): Likewise.
22576 * ggc-common.c (struct ggc_usage): Likewise.
22577 * mem-stats.h (struct mem_usage): Likewise.
22578 (mem_alloc_description::dump): Print dash lines
22579 here and repeat header at the end of a table report.
22580 It's then more readable.
22581 * tree-phinodes.c (phinodes_print_statistics): Make
22582 horizontal alignment.
22583 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22584 * vec.c (struct vec_usage): Remove extra print_dash_line.
22585 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22586
22587 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22588
22589 * doc/extend.texi (__builtin_object_size):
22590 Use @pxref instead of @xref inside parenthesis.
22591 (__builtin_has_attribute): Add missing comma after @xref.
22592 (__builtin_object_size): Ditto.
22593 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22594
22595 2019-02-26 Jeff Law <law@redhat.com>
22596
22597 PR rtl-optimization/87761
22598 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22599 detect obviously dead insns and delete them.
22600
22601 2019-02-26 Richard Biener <rguenther@suse.de>
22602
22603 PR tree-optimization/89505
22604 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22605 to handle restrict pointed-to vars with multiple subvars
22606 correctly.
22607
22608 2019-02-26 Richard Biener <rguenther@suse.de>
22609
22610 PR tree-optimization/89489
22611 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22612
22613 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22614
22615 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22616 and move around comment.
22617 <BIT_AND_EXPR>: Likewise.
22618 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22619
22620 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22621
22622 PR target/89474
22623 * config/i386/i386.c (remove_partial_avx_dependency): Call
22624 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22625 after changing possibly many instructions to use that pseudo. Fix up
22626 insertion of v4sf_const0 setter at the start of bb.
22627
22628 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22629
22630 PR c/80409
22631 * doc/extend.texi (Variadic Pointer Args): New section.
22632
22633 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22634 Martin Sebor <msebor@gmail.com>
22635
22636 * common.opt (Wattribute-alias): Likewise.
22637 * doc/invoke.texi (Option Summary): List general form of
22638 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22639 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22640 Add cross-references.
22641 (-Wattribute-alias): Rewrite and correct default. Mention
22642 considered attributes (same as for -Wmissing-attributes).
22643
22644 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22645
22646 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22647 (_mm_cvtpd_ps): Likewise.
22648 (_mm_cvttpd_epi32): Likewise.
22649
22650 PR target/89338
22651 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22652 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22653
22654 PR target/89339
22655 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22656
22657 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22658
22659 PR target/88530
22660 * common/config/aarch64/aarch64-common.c
22661 (struct aarch64_option_extension): Add is_synthetic.
22662 (all_extensions): Use it.
22663 (TARGET_OPTION_INIT_STRUCT): Define hook.
22664 (struct gcc_targetm_common): Moved to end.
22665 (all_extensions_by_on): New.
22666 (opt_ext_cmp, typedef opt_ext): New.
22667 (aarch64_option_init_struct): New.
22668 (aarch64_contains_opt): New.
22669 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22670 * config/aarch64/aarch64-option-extensions.def
22671 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22672 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22673 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22674 Set is_synthetic to false.
22675 (crypto): Set is_synthetic to true.
22676 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22677 SYNTHETIC.
22678
22679 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22680
22681 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22682 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22683 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22684 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22685 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22686 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22687 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22688 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22689 Rename ...
22690 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22691 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22692 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22693 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22694 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22695 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22696 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22697 vfmlsl_laneq_high_f16): ... To this.
22698 * config/arm/neon.md: Update comments.
22699
22700 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22701
22702 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22703 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22704 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22705 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22706 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22707 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22708 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22709 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22710 Rename ...
22711 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22712 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22713 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22714 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22715 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22716 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22717 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22718 vfmlslq_laneq_high_f16): ... To this.
22719
22720 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22721
22722 PR rtl-optimization/86096
22723 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22724 comparing mw_order values.
22725
22726 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22727
22728 PR target/89434
22729 * config/arm/arm.md (*subsi3_carryin_const): Use
22730 arm_neg_immediate_operand predicate instead of
22731 arm_not_immediate_operand, "L" constraint instead of "K" and
22732 print it using %n2 instead of %B2.
22733 (*subsi3_carryin_const0): New define_insn.
22734 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22735 instead of arm_not_operand and "I" constraint instead of "K" and
22736 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22737 another match_operand and in the condition check that it is negation
22738 of operands[2].
22739 (*subsi3_carryin_compare_const0): New define_ins.
22740 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22741 *subsi3_carryin_const.
22742 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22743 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22744
22745 PR target/89438
22746 * config/arm.vfp.md (*negdf2_vfp): Use
22747 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22748 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22749
22750 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22751
22752 PR rtl-optimization/89445
22753 * simplify-rtx.c (simplify_ternary_operation): Don't use
22754 simplify_merge_mask on operands that may trap.
22755 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22756 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22757 second operand is CONST_VECTOR, check if any element could be zero.
22758 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22759 their operands can trap.
22760
22761 2019-02-23 Martin Sebor <msebor@redhat.com>
22762
22763 * gimple-ssa-sprintf.c (target_strtol): Rename...
22764 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22765 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22766 check for range error.
22767
22768 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22769
22770 PR driver/69471
22771 * opts-common.c (prune_options): Also prune joined switches
22772 with Negative and RejectNegative.
22773 * config/i386/i386.opt (march=): Add Negative(march=).
22774 (mtune=): Add Negative(mtune=).
22775 * doc/options.texi: Document Negative used together with Joined
22776 and RejectNegative.
22777
22778 2019-02-22 Martin Sebor <msebor@redhat.com>
22779
22780 * doc/extend.texi (Other Builtins): Add
22781 __builtin_is_constant_evaluated.
22782
22783 2019-02-22 Richard Biener <rguenther@suse.de>
22784
22785 PR tree-optimization/87609
22786 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22787
22788 2019-02-22 Jeff Law <law@redhat.com>
22789
22790 PR rtl-optimization/87761
22791 * config/mips/mips.md: Add new combiner pattern to recognize
22792 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22793
22794 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22795
22796 PR target/89324
22797 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22798 destination register in peepholes generating patterns for ADDS/SUBS.
22799 (add<mode>3_compare0,
22800 *addsi3_compare0_uxtw, add<mode>3_compareC,
22801 add<mode>3_compareV_imm, add<mode>3_compareV,
22802 *adds_<optab><ALLX:mode>_<GPI:mode>,
22803 *subs_<optab><ALLX:mode>_<GPI:mode>,
22804 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22805 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22806 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22807 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22808 sub<mode>3_compare1): Allow stack pointer for source register.
22809 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22810
22811 2019-02-22 Martin Sebor <msebor@redhat.com>
22812
22813 PR tree-optimization/88993
22814 PR tree-optimization/88853
22815 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22816 New helper.
22817 (sprintf_dom_walker::call_info::is_string_func): New helper.
22818 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22819 for formatted string functions.
22820 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22821
22822 2019-02-22 Martin Sebor <msebor@redhat.com>
22823
22824 PR c/89425
22825 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22826 unreachable subexpressions.
22827
22828 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22829 Hongtao Liu <hongtao.liu@intel.com>
22830 Sunil K Pandey <sunil.k.pandey@intel.com>
22831
22832 PR target/87007
22833 * config/i386/i386-passes.def: Add
22834 pass_remove_partial_avx_dependency.
22835 * config/i386/i386-protos.h
22836 (make_pass_remove_partial_avx_dependency): New.
22837 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22838 New function.
22839 (pass_data_remove_partial_avx_dependency): New.
22840 (pass_remove_partial_avx_dependency): Likewise.
22841 (make_pass_remove_partial_avx_dependency): Likewise.
22842 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22843 (*extendsfdf2): Add avx_partial_xmm_update.
22844 (truncdfsf2): Likewise.
22845 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22846 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22847
22848 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22849
22850 PR middle-end/85598
22851 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22852 analysis for pass.
22853
22854 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22855
22856 PR target/89444
22857 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22858 (PTA_SKYLAKE): Add PTA_AES.
22859 (PTA_GOLDMONT): Likewise.
22860
22861 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22862
22863 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22864 instruction if enabled.
22865 (aarch64_override_options): Remove reference to return address key.
22866
22867 2019-02-22 Richard Biener <rguenther@suse.de>
22868
22869 PR tree-optimization/89440
22870 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22871 not necessary assert.
22872
22873 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22874
22875 PR fortran/72741
22876 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22877 (oacc_replace_fn_attrib_attr): ... this new function.
22878 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22879 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22880
22881 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22882
22883 * config/arm/arm-cpus.in (ares): Rename to...
22884 (neoverse-n1): ... This. Add ares as alias.
22885 * config/arm/arm-tables.opt: Regenerate.
22886 * config/arm/arm-tune.md: Likewise.
22887 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22888
22889 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22890
22891 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22892 * config/aarch64/aarch64-tune.md: Regenerate.
22893 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22894
22895 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22896
22897 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22898 (neoversen1_tunings): ... This.
22899 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22900 (neoverse-n1): New CPU.
22901 * config/aarch64/aarch64-tune.md: Regenerate.
22902 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22903
22904 2019-02-22 Richard Biener <rguenther@suse.de>
22905
22906 PR middle-end/87609
22907 * cfghooks.h (dependence_hash): New typedef.
22908 (struct copy_bb_data): New type.
22909 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22910 (duplicate_block): Likewise.
22911 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22912 (copy_bbs): Create and pass down copy_bb_data.
22913 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22914 (rtl_duplicate_bb): Likewise.
22915 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22916 remap dependence info.
22917
22918 2019-02-22 Richard Biener <rguenther@suse.de>
22919
22920 PR tree-optimization/87609
22921 * tree-core.h (tree_base): Document special clique values.
22922 * tree-inline.c (remap_dependence_clique): Do not use the
22923 special clique value of one.
22924 (maybe_set_dependence_info): Use clique one.
22925 (clear_dependence_clique): New callback.
22926 (compute_dependence_clique): Clear clique one from all refs
22927 before assigning it (again).
22928
22929 2019-02-21 Martin Sebor <msebor@redhat.com>
22930
22931 * doc/extend.texi (__clear_cache): Correct signature.
22932
22933 2019-02-21 Ian Lance Taylor <iant@golang.org>
22934
22935 PR go/89170
22936 * varasm.c (decode_addr_const): Call lookup_constant_def rather
22937 than output_constant_def.
22938 (add_constant_to_table): New static function.
22939 (output_constant_def): Call add_constant_to_table.
22940 (tree_output_constant_def): Likewise.
22941
22942 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22943
22944 PR c++/89285
22945 * builtins.c (fold_builtin_arith_overflow): If first two args are
22946 INTEGER_CSTs, set intres and ovfres to constants rather than calls
22947 to ifn.
22948
22949 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
22950
22951 PR target/87412
22952 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22953 error for -mindirect-branch/-mfunction-return with incompatible
22954 -fcf-protection.
22955
22956 2019-02-21 Jakub Jelinek <jakub@redhat.com>
22957
22958 PR bootstrap/88714
22959 * constraints.md (q): Remove.
22960 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22961 instead of q.
22962
22963 2019-02-21 Martin Jambor <mjambor@suse.cz>
22964
22965 PR hsa/89302
22966 * omp-general.c (omp_extract_for_data): Removed a duplicate call
22967 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
22968 (omp_adjust_for_condition): ...here. Added necessary parameters.
22969 * omp-general.h (omp_adjust_for_condition): Updated declaration.
22970 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
22971 proper values to new parameters of omp_adjust_for_condition.
22972
22973 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22974
22975 PR middle-end/89412
22976 * expr.c (expand_assignment): If result is a MEM, use change_address
22977 instead of simplify_gen_subreg.
22978
22979 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22980 David Malcolm <dmalcolm@redhat.com>
22981
22982 PR middle-end/89091
22983 * fold-const.c (decode_field_reference): Return NULL_TREE if
22984 lang_hooks.types.type_for_size returns NULL. Check it before
22985 overwriting *exp_. Use return NULL_TREE instead of return 0.
22986
22987 2019-02-20 Jakub Jelinek <jakub@redhat.com>
22988
22989 PR middle-end/88074
22990 PR middle-end/89415
22991 * toplev.c (do_compile): Double the emin/emax exponents to workaround
22992 buggy mpc_norm.
22993
22994 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
22995
22996 PR target/89397
22997 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
22998 TARGET_SSE in addition to TARGET_SSE_MATH.
22999
23000 (ix86_excess_precision): Ditto.
23001 (ix86_float_exceptions_rounding_supported_p): Ditto.
23002 (use_rsqrt_p): Ditto.
23003 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23004
23005 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23006
23007 PR c/89410
23008 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23009 linenum_arith_t when determining if two adjacent line spans are
23010 close enough to merge.
23011 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23012 lines within each line_span.
23013
23014 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23015
23016 PR target/86487
23017 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23018 paradoxical SUBREGS.
23019
23020 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23021
23022 PR target/88100
23023 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23024 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23025 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23026 range checking it.
23027
23028 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23029
23030 * config/gcn/gcn.c (print_operand): Fix typo.
23031
23032 2019-02-19 Richard Biener <rguenther@suse.de>
23033
23034 PR middle-end/88074
23035 * toplev.c (do_compile): Initialize mpfr's exponent range
23036 based on available float modes.
23037
23038 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23039
23040 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23041 as long as the epilogue isn't completed.
23042
23043 2019-02-18 Martin Sebor <msebor@redhat.com>
23044
23045 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23046 __has_cpp_attribute, and __has_include.
23047
23048 2019-02-18 Martin Sebor <msebor@redhat.com>
23049
23050 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23051
23052 2019-02-18 Martin Sebor <msebor@redhat.com>
23053
23054 PR middle-end/89294
23055 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23056 expression.
23057 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23058
23059 2019-02-18 Richard Biener <rguenther@suse.de>
23060
23061 PR tree-optimization/89296
23062 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23063 of no-warning flag to cases that might emit the bogus warning.
23064
23065 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23066
23067 PR bootstrap/88714
23068 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23069 "q" constraint.
23070 * config/arm/vfp.md (*movdi_vfp): Likewise.
23071 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23072 "q" constraint for operands[0].
23073
23074 PR target/89369
23075 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23076 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23077 pattern in a temporary buffer.
23078 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23079 than 64-operands[2].
23080
23081 PR target/89361
23082 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23083 s390_indirect_branch_settings): Define unconditionally.
23084 (s390_set_current_function): Likewise, but guard the whole body except
23085 the s390_indirect_branch_settings call with
23086 #if S390_USE_TARGET_ATTRIBUTE.
23087 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23088
23089 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23090 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23091 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23092 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23093 HOST_WIDE_INT_1U instead of 1ULL.
23094 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23095 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23096 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23097 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23098 instead of 1UL.
23099 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23100 instead of 1ul.
23101
23102 2019-02-18 Martin Jambor <mjambor@suse.cz>
23103
23104 PR tree-optimization/89209
23105 * tree-sra.c (create_access_replacement): New optional parameter
23106 reg_tree. Use it as a type if non-NULL and access type is not of
23107 a register type.
23108 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23109 to create_access_replacement.
23110 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23111 Check lacc is non-NULL before attempting to re-create it on the RHS.
23112
23113 2019-02-18 Martin Liska <mliska@suse.cz>
23114
23115 PR ipa/89306
23116 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23117 by default.
23118 (symbol_table::free_edge): Recycle m_summary_id.
23119 * cgraph.h (get_summary_id): New.
23120 (symbol_table::release_symbol): Set m_summary_id to -1
23121 by default.
23122 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23123 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23124 function_summary to fast_function_summary.
23125 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23126 * ipa-pure-const.c (class funct_state_summary_t):
23127 Switch from function_summary to fast_function_summary.
23128 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23129 (class ipa_ref_opt_summary_t): Switch from function_summary
23130 to fast_function_summary.
23131 * symbol-summary.h (class function_summary_base): New class
23132 that is created from base of former function_summary.
23133 (function_summary_base::unregister_hooks): New.
23134 (class function_summary): Inherit from function_summary_base.
23135 (class call_summary_base): New class
23136 that is created from base of former call_summary.
23137 (class call_summary): Inherit from call_summary_base.
23138 (struct is_same): New.
23139 (class fast_function_summary): New summary class.
23140 (class fast_call_summary): New summary class.
23141 * vec.h (vec_safe_grow_cleared): New function.
23142
23143 2019-02-18 Martin Liska <mliska@suse.cz>
23144
23145 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23146 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23147 * doc/tm.texi: Document new target hook.
23148 * doc/tm.texi.in: Likewise.
23149 * target.def: Add new target macro.
23150 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23151 suffixes.
23152
23153 2019-02-17 Alan Modra <amodra@gmail.com>
23154
23155 PR target/89271
23156 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23157 output reg on add insn.
23158 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23159
23160 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23161
23162 PR target/89372
23163 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23164 (PMULHRSW): Likewise.
23165 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23166 TARGET_AVX2.
23167 (ssse3_pmulhrswv4hi3): New expander.
23168
23169 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23170
23171 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23172 MMX. Add isa attribute.
23173
23174 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23175
23176 PR rtl-optimization/66152
23177 * builtins.h (c_readstr): Declare.
23178 * builtins.c (c_readstr): Remove forward declaration. Add
23179 null_terminated_p argument, if false, read all bytes from the
23180 string instead of stopping after '\0'.
23181 * expr.c (string_cst_read_str): New function.
23182 (store_expr): Use string_cst_read_str instead of
23183 builtin_strncpy_read_str. Try to store by pieces the whole
23184 exp_len first, and only if that fails, split it up into
23185 store by pieces followed by clear_storage. Formatting fix.
23186
23187 * config/i386/i386.md (*movqi_internal): Remove static from
23188 buf variable. Use output_asm_insn (buf, operands); return "";
23189 instead of return buf;.
23190 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23191 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23192 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23193
23194 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23195
23196 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23197 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23198 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23199 (CC1_SPEC): Likewise.
23200 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23201
23202 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23203
23204 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23205 the base address on 64-bit strict-alignment platforms.
23206
23207 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23208
23209 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23210
23211 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23212
23213 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23214
23215 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23216
23217 PR rtl-optimization/88308
23218 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23219 on copied instruction.
23220
23221 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23222
23223 * final.c (insn_current_reference_address): Replace test on JUMP_P
23224 with test on jump_to_label_p.
23225 * config/visium/visium-passes.def: New file.
23226 * config/visium/t-visium (PASSES_EXTRA): Define.
23227 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23228 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23229 (TRAMPOLINE_ALIGNMENT): Define.
23230 * config/visium/visium.c (visium_option_override): Do not register
23231 the machine-specific reorg pass here.
23232 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23233 for the GR6.
23234 (output_branch): Adjust threshold for long branch instruction.
23235 * config/visium/visium.md (cpu): Move around.
23236 (length): Adjust for the GR6.
23237
23238 2019-02-15 Richard Biener <rguenther@suse.de>
23239 Jakub Jelinek <jakub@redhat.com>
23240
23241 PR tree-optimization/89278
23242 * tree-loop-distribution.c: Include tree-eh.h.
23243 (generate_memset_builtin, generate_memcpy_builtin): Call
23244 rewrite_to_non_trapping_overflow on builtin->size before passing it
23245 to force_gimple_operand_gsi.
23246
23247 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23248
23249 PR other/89342
23250 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23251 optimize_debug.
23252 * opth-gen.awk: Likewise.
23253
23254 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23255
23256 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23257 Enable MMX, SSE and SSE2 by default.
23258 * config/i386/i386.c (ix86_option_override_internal): Do not
23259 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23260
23261 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23262
23263 PR rtl-optimization/89354
23264 * combine.c (make_extraction): Punt if extraction_mode is narrower
23265 than len bits.
23266
23267 2019-02-14 Maya Rashish <coypu@sdf.org>
23268
23269 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23270 * config/netbsd-d.c: New file.
23271 * config/t-netbsd: Add netbsd-d.o
23272
23273 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23274
23275 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23276 affects_type_identity to true for aarch64_vector_pcs.
23277 (aarch64_comp_type_attributes): New function.
23278 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23279
23280 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23281
23282 PR target/88850
23283 * config/arm/iterators.md (ANY64): Add V4HF.
23284
23285 2019-02-14 Martin Liska <mliska@suse.cz>
23286
23287 PR rtl-optimization/89242
23288 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23289 process a transformation.
23290
23291 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23292
23293 PR tree-optimization/89314
23294 * fold-const.c (fold_binary_loc): Cast strlen argument to
23295 const char * before dereferencing it. Formatting fixes.
23296
23297 PR middle-end/89284
23298 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23299
23300 2019-02-13 Ian Lance Taylor <iant@golang.org>
23301
23302 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23303 and set current index for other optimizations.
23304
23305 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23306
23307 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23308 nonimmediate_operand as operand 2 predicate.
23309 (vec_set<VF2_512_256:mode>_0): Ditto.
23310 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23311 (*vec_concatv2si): Remove alternative 2.
23312 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23313 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23314 (vec_concatv2di): Split alternatives 4,5,6 to ...
23315 (*vec_concatv2di_0) ... new pattern.
23316
23317 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23318
23319 PR target/89190
23320 * config/arm/arm.c (ldm_stm_operation_p) Set
23321 addr_reg_in_reglist correctly for first register.
23322 (load_multiple_sequence): Remove dead base check.
23323 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23324
23325 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23326
23327 PR target/88847
23328 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23329 Expose as @aarch64_pred_mov.
23330 * config/aarch64/aarch64.c (aarch64_classify_address):
23331 Use expand_insn which legitimizes operands.
23332
23333 2019-02-13 Martin Liska <mliska@suse.cz>
23334
23335 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23336 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23337 and pointer_offset fields.
23338 (initialize_argument_information): Remove usage of dead
23339 fields.
23340 * cgraph.h (struct cgraph_thunk_info): Remove
23341 add_pointer_bounds_args.
23342 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23343 fields.
23344 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23345 fields.
23346 * config/i386/i386.c (ix86_function_arg_advance): Remove
23347 unrelated comment.
23348 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23349 (def_builtin): Remove usage of dead fields.
23350 (ix86_add_new_builtins): Likewise.
23351 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23352 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23353 (sem_function::init): Likewise.
23354 (sem_variable::merge): Likewise.
23355 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23356 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23357 * lto-cgraph.c (lto_output_node): Likewise.
23358 (lto_output_varpool_node): Likewise.
23359 (input_node): Likewise.
23360 (input_varpool_node): Likewise.
23361 * lto-streamer-out.c (lto_output): Likewise.
23362 * tree-inline.c (expand_call_inline): Remove usage of
23363 assign_stmts.
23364 * tree-inline.h (struct copy_body_data): Likewise.
23365 * varpool.c (varpool_node::dump): Likewise.
23366
23367 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23368
23369 PR middle-end/89303
23370 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23371 into pt->vars_contains_escaped_heap instead of setting
23372 pt->vars_contains_escaped_heap to it.
23373
23374 PR middle-end/89281
23375 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23376 INTVAL (size), compare it to GET_MODE_MASK instead of
23377 1 << GET_MODE_BITSIZE.
23378
23379 PR target/89290
23380 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23381 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23382 -mcmodel=large.
23383
23384 2019-02-13 Martin Liska <mliska@suse.cz>
23385
23386 PR lto/88858
23387 * cfgrtl.c (remove_barriers_from_footer): New function.
23388 (try_redirect_by_replacing_jump): Use it.
23389 (cfg_layout_redirect_edge_and_branch): Likewise.
23390
23391 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23392
23393 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23394 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23395 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23396 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23397 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23398 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23399 New BU_CRYPTO_2.
23400 * config/rs6000/rs6000.c (builtin_function_type)
23401 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23402 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23403 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23404 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23405 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23406
23407 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23408
23409 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23410 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23411
23412 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23413
23414 PR target/89229
23415 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23416 268678 and revision 268657.
23417 (*movti_internal): Likewise.
23418
23419 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23420
23421 PR target/89233
23422 * config/s390/s390.c (s390_decompose_address): Update comment.
23423 (s390_check_qrst_address): Reject invalid address forms after
23424 LRA.
23425
23426 2019-02-12 Martin Liska <mliska@suse.cz>
23427
23428 PR lto/88876
23429 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23430 we need default values of funct_state for a function that
23431 is not optimized.
23432
23433 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23434
23435 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23436 the object to pick the size of stores on strict-alignment platforms.
23437
23438 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23439 (*movdi_insn_sp32): Likewise.
23440 (*movdi_insn_sp64): Likewise.
23441
23442 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23443
23444 PR lto/88677
23445 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23446 types that needs constructiong.
23447 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23448
23449 2019-02-12 Richard Biener <rguenther@suse.de>
23450
23451 PR tree-optimization/89253
23452 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23453 duplicate the loop.
23454
23455 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23456
23457 PR lto/88147
23458 * input.c (selftest::test_line_offset_overflow): New selftest.
23459 (selftest::input_c_tests): Call it.
23460
23461 2019-02-11 Martin Sebor <msebor@redhat.com>
23462
23463 PR tree-optimization/88771
23464 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23465 when -Wstringop-overflow is set.
23466 (builtin_memref::builtin_memref): Adjust excessive upper bound
23467 only when lower bound is not excessive.
23468 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23469 -Wstringop-ovefflow.
23470 (maybe_diag_offset_bounds): Rename...
23471 (maybe_diag_access_bounds): ...to this.
23472 (check_bounds_or_overlap): Adjust for name change above.
23473
23474 2019-02-11 Martin Sebor <msebor@redhat.com>
23475
23476 PR c++/87996
23477 * builtins.c (max_object_size): Move from here...
23478 * builtins.h (max_object_size): ...and here...
23479 * tree.c (max_object_size): ...to here...
23480 * tree.h (max_object_size): ...and here.
23481
23482 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23483
23484 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23485 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23486 for correct semantics.
23487
23488 2019-02-11 Alan Modra <amodra@gmail.com>
23489
23490 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23491 -mlongcall and -mpltseq.
23492 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23493 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23494 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23495 * config/rs6000/sysv4.opt (mpltseq): New option.
23496 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23497 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23498 support is lacking. Don't allow -mpltseq with -mbss-plt.
23499 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23500 -mpltseq given for ELFv1.
23501 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23502 Only use UNSPEC_PLTSEQ for inline PLT calls.
23503 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23504 use UNSPEC_PLTSEQ for inline PLT calls.
23505 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23506 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23507 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23508 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23509 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23510 (pltseq_mtctr_<mode>): Likewise.
23511
23512 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23513
23514 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23515 Solaris ld.
23516 * configure: Regenerate.
23517
23518 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23519
23520 PR bootstrap/88714
23521 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23522 instead of r.
23523
23524 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23525
23526 * function.c (assign_parm_setup_block): Use the stored
23527 size, not the passed size, when allocating stack-space,
23528 also for a parameter with alignment larger than
23529 MAX_SUPPORTED_STACK_ALIGNMENT.
23530
23531 2019-02-11 Martin Liska <mliska@suse.cz>
23532
23533 PR ipa/89009
23534 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23535 * ipa-inline.c (inline_small_functions): Likewise.
23536 * ipa-pure-const.c (propagate_pure_const): Likewise.
23537 (propagate_nothrow): Likewise.
23538 * ipa-reference.c (propagate): Likewise.
23539 * ipa-utils.c (struct searchc_env): Remove unused field.
23540 (searchc): Always search across AVAIL_INTERPOSABLE.
23541 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23542 the only called IPA pure const can properly not propagate
23543 across interposable boundary.
23544 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23545
23546 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23547
23548 * config/nds32/nds32.md (call_internal, call_value_internal,
23549 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23550
23551 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23552
23553 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23554 typo.
23555
23556 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23557
23558 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23559 in comments
23560
23561 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23562
23563 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23564
23565 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23566
23567 PR tree-optimization/89268
23568 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23569 if preds is non-NULL.
23570
23571 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23572
23573 PR lto/89272
23574 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23575 polymorphic types.
23576
23577 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23578
23579 * config/nds32/nds32.md (trap): New pattern.
23580
23581 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23582
23583 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23584 dwarf span.
23585
23586 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23587
23588 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23589 to split POST_INC.
23590
23591 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23592
23593 * ipa-visibility.c (localize_node): Also do not localize
23594 LDPR_PREVAILING_DEF_IRONLY_EXP.
23595
23596 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23597
23598 PR lto/87957
23599 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23600 instead of type_with_linkage.
23601
23602 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23603
23604 PR ipa/88755
23605 * params.def (uninlined-function-insns, uninlined-function-time,
23606 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23607 bound so we don't get overflows.
23608
23609 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23610
23611 * config/rs6000/rs6000-string.c (expand_compare_loop,
23612 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23613 memcmp/strncmp.
23614
23615 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23616
23617 PR middle-end/89246
23618 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23619 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23620 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23621
23622 2019-02-09 Alan Modra <amodra@gmail.com>
23623
23624 PR target/88343
23625 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23626 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23627 setup.
23628
23629 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23630
23631 PR middle-end/88560
23632 * lra-constraints.c (process_alt_operands): Don't increase reject
23633 for memory when offset memory is required.
23634
23635 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23636
23637 * config/s390/vector.md: Implement vector copysign.
23638
23639 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23640
23641 * expr.c (expand_constructor): Correct indentations.
23642
23643 2019-02-08 Richard Biener <rguenther@suse.de>
23644
23645 PR tree-optimization/89247
23646 * tree-if-conv.c: Include tree-cfgcleanup.h.
23647 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23648 (tree_if_conversion): Pass through predicate vector.
23649 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23650 inline, see if any if-converted loops we refrece in
23651 LOOP_VECTORIZED calls vanished and fixup.
23652 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23653
23654 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23655
23656 * config/s390/constraints.md (jdd): New constraint.
23657
23658 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23659
23660 PR target/89229
23661 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23662 upper 16 vector registers without TARGET_AVX512VL.
23663 (*movti_internal): Likewise.
23664
23665 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23666
23667 PR rtl-optimization/89234
23668 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23669 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23670 (copy_reg_eh_region_note_backward): Likewise.
23671
23672 2019-02-08 Richard Biener <rguenther@suse.de>
23673
23674 PR middle-end/89223
23675 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23676 doesn't fit in HWI.
23677 (analyze_subscript_affine_affine): Handle failure from
23678 initialize_matrix_A.
23679
23680 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23681
23682 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23683 cfun everywhere.
23684
23685 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23686
23687 PR tree-optimization/86637
23688 PR tree-optimization/89235
23689 * tree-vect-loop.c (optimize_mask_stores): Add an
23690 auto_purge_vect_location sentinel to ensure that vect_location is
23691 purged on exit.
23692 * tree-vectorizer.c
23693 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23694 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23695 to ensure that vect_location is purged on exit.
23696 (pass_slp_vectorize::execute): Likewise, replacing the manual
23697 reset.
23698 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23699
23700 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23701
23702 * config/aarch64/iterators.md (max_opp): New code_attr.
23703 (USMAX): New code iterator.
23704 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23705 (aarch64_smax): Likewise.
23706 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23707 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23708 MINUS (MAX MIN).
23709
23710 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23711
23712 PR target/89229
23713 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23714 for TARGET_AVX512VL.
23715 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23716
23717 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23718
23719 * config/s390/s390-builtin-types.def: Add new types.
23720 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23721 (s390_vec_xlw4): Make the memory operand into a const pointer.
23722 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23723 float.
23724 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23725 a new vector type with the alignment of the scalar memory operand.
23726
23727 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23728 Jakub Jelinek <jakub@redhat.com>
23729
23730 PR bootstrap/88714
23731 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23732 arm_count_ldrdstrd_insns): New declarations.
23733 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23734 MINUS.
23735 (valid_operands_ldrd_strd): New function.
23736 (arm_count_ldrdstrd_insns): New function.
23737 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23738 sets instead of single DImode set and define new insns to match this.
23739
23740 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23741
23742 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23743 Make it a C initializer.
23744
23745 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23746
23747 PR/target 88850
23748 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23749
23750 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23751
23752 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23753 Use neon_dot<q> for type.
23754 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23755
23756 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23757
23758 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23759 Use neon_dot<q> for type.
23760 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23761 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23762
23763 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23764
23765 PR rtl-optimization/89225
23766 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23767 sizes check.
23768
23769 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23770
23771 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23772 after restoring registers saved to allocate the frame on Windows.
23773
23774 2019-02-06 Richard Biener <rguenther@suse.de>
23775
23776 PR tree-optimization/89182
23777 * graphite.h (cached_scalar_evolution_in_region): Declare.
23778 * graphite.c (struct seir_cache_key): New.
23779 (struct sese_scev_hash): Likewise.
23780 (seir_cache): New global.
23781 (cached_scalar_evolution_in_region): New function.
23782 (graphite_transform_loops): Allocate and release seir_cache.
23783 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23784 cached_scalar_evolution_in_region.
23785 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23786 Simplify.
23787 (scop_detection::graphite_can_represent_expr: Use
23788 cached_scalar_evolution_in_region.
23789 (scop_detection::stmt_simple_for_scop_p): Likewise.
23790 (find_params_in_bb): Likewise.
23791 (gather_bbs::before_dom_children): Likewise.
23792 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23793 (add_loop_constraints): Likewise.
23794
23795 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23796
23797 PR middle-end/89210
23798 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23799 operand to new_unary_operation only if both element types are integral
23800 and it isn't a widening conversion. Return NULL_TREE if
23801 new_unary_operation failed.
23802
23803 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23804
23805 PR target/88856
23806 * config/s390/s390.md: Remove load and test FP splitter.
23807
23808 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23809
23810 PR target/89112
23811 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23812 expand_compare_loop, expand_block_compare_gpr,
23813 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23814 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23815 #include "profile-count.h" and "predict.h" for types and functions
23816 needed to work with REG_BR_PROB notes.
23817
23818 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23819
23820 PR target/89112
23821 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23822 for the long branch case.
23823
23824 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23825
23826 PR target/89188
23827 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23828 can throw, non-call exceptions are enabled and we can't delete
23829 dead exceptions or alter cfg. Set must_clean if
23830 delete_insn_and_edges returns true, don't set it blindly for calls.
23831 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23832
23833 PR rtl-optimization/89195
23834 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23835 of the original MEM.
23836
23837 2019-02-05 Martin Liska <mliska@suse.cz>
23838
23839 PR gcov-profile/89000
23840 * gcov.c (function_summary): Remove argument.
23841 (file_summary): New function.
23842 (print_usage): Replace tabs with spaces.
23843 (generate_results): Use new function file_summary.
23844
23845 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23846
23847 PR target/89186
23848 * optabs.c (prepare_cmp_insn): Pass x and y to
23849 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23850
23851 2019-02-05 Richard Biener <rguenther@suse.de>
23852
23853 PR middle-end/89150
23854 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23855 (struct bitmap_element): Drop chain_prev so we properly recurse on
23856 the prev member, supporting tree views.
23857 (struct bitmap_head): GTY skip the obstack member.
23858
23859 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23860
23861 PR c/88698
23862 * doc/extend.texi (Vector Extensions): Add an example of using vector
23863 types together with x86 intrinsics.
23864
23865 2019-02-04 Alan Modra <amodra@gmail.com>
23866
23867 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23868 str[] size to 160, and comment.
23869
23870 2019-02-04 Alan Modra <amodra@gmail.com>
23871
23872 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23873 (rs6000_pltseq_template): Guard output of TLS markers with
23874 TARGET_TLS_MARKERS.
23875 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23876 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23877 to use inline PLT sequences.
23878 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23879 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23880 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23881
23882 2019-02-04 Martin Liska <mliska@suse.cz>
23883
23884 PR ipa/88985
23885 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23886 out when ipa_fn_summaries does not contain entry for callee.
23887
23888 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23889
23890 * config/sparc/sparc.h: Remove superfluous blank lines.
23891 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23892 (got_register_rtx): ...this.
23893 (sparc_got): Adjust to above renaming.
23894 (sparc_tls_got): Likewise.
23895 (sparc_delegitimize_address): Likewise.
23896 (sparc_output_mi_thunk): Likewise.
23897 (sparc_init_pic_reg): Likewise.
23898 (save_local_or_in_reg_p): Fix test on the GOT register.
23899 (USE_HIDDEN_LINKONCE): Move around.
23900 (get_pc_thunk_name): Likewise.
23901 (gen_load_pcrel_sym): Likewise.
23902 (load_got_register): Likewise.
23903
23904 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23905
23906 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23907 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23908
23909 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23910
23911 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23912 into consideration.
23913
23914 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23915
23916 * config.gcc (with_nds32_lib, glibc):
23917 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23918 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23919 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23920
23921 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23922
23923 PR target/89071
23924 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23925 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23926 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23927 (*rcpsf2_sse): Ditto.
23928 (*rsqrtsf2_sse): Ditto.
23929 (sse4_1_round<mode<2): Ditto.
23930
23931 2019-02-03 Richard Biener <rguenther@suse.de>
23932
23933 PR debug/87295
23934 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23935 orig.
23936
23937 2019-02-02 Jakub Jelinek <jakub@redhat.com>
23938
23939 PR middle-end/87887
23940 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23941 Punt with warning on aggregate return or argument types. Ignore
23942 type/mode checking for uniform arguments.
23943
23944 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
23945
23946 * combine.c (try_combine): Do not print "Can't combine" messages unless
23947 printing failed combination attempts.
23948
23949 2019-02-01 Martin Jambor <mjambor@suse.cz>
23950
23951 PR hsa/87863
23952 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23953 segment and global segment variables before making them static.
23954
23955 2019-02-01 Martin Jambor <mjambor@suse.cz>
23956
23957 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23958 missed optimization dump with dump_enabled_p.
23959
23960 2019-02-01 Richard Biener <rguenther@suse.de>
23961
23962 PR middle-end/88597
23963 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23964 the instantiate cache.
23965 (instantiate_scev_binary): Elide second operand procesing
23966 if equal to the first.
23967 * tree-chrec.c (chrec_contains_symbols): Add visited set.
23968 (chrec_contains_undetermined): Likewise.
23969 (tree_contains_chrecs): Likewise.
23970
23971 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
23972
23973 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
23974
23975 2019-02-01 Jakub Jelinek <jakub@redhat.com>
23976
23977 PR tree-optimization/89143
23978 * wide-int-range.h (wide_int_range_absu): Declare.
23979 * wide-int-range.cc (wide_int_range_absu): New function.
23980 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
23981
23982 PR tree-optimization/88107
23983 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
23984 instead of assertion that eh_region_outermost is non-NULL, if it
23985 is NULL, set *ALL to true and return NULL.
23986 (move_sese_region_to_fn): Adjust caller, if all is set, call
23987 duplicate_eh_regions with NULL region.
23988
23989 2019-02-01 Richard Biener <rguenth@suse.de>
23990
23991 PR rtl-optimization/88593
23992 * mode-switching.c (optimize_mode_switching): Free dominators before
23993 calling cleanup_cfg.
23994
23995 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
23996
23997 PR tree-optimization/88932
23998 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
23999
24000 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24001
24002 PR middle-end/89137
24003 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24004 bogus clang warning.
24005
24006 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24007
24008 PR target/89071
24009 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24010 alternative to avoid partial SSE register stall for TARGET_AVX.
24011 (truncdfsf2): Ditto.
24012 (sse4_1_round<mode>2): Ditto.
24013
24014 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24015
24016 PR tree-optimization/89008
24017 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24018 process anything of the form X * 0.
24019
24020 2019-01-31 Richard Biener <rguenther@suse.de>
24021
24022 PR tree-optimization/89135
24023 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24024 with abnormal preds.
24025
24026 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24027
24028 PR sanitizer/89124
24029 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24030 always_inline callees into no_sanitize_address callers.
24031
24032 2019-01-31 Richard Biener <rguenther@suse.de>
24033
24034 PR rtl-optimization/89115
24035 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24036
24037 2019-01-30 Martin Sebor <msebor@redhat.com>
24038
24039 PR other/89106
24040 * doc/extend.texi (cast to a union): Correct and expand.
24041
24042 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24043
24044 PR rtl-optimization/87246
24045 * lra-constraints.c (simplify_operand_subreg): Reload memory
24046 in subreg if the address became invalid.
24047
24048 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24049
24050 PR target/87064
24051 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24052 Disable for little-endian.
24053
24054 2019-01-30 Richard Biener <rguenther@suse.de>
24055
24056 PR rtl-optimization/89115
24057 * opts.c (default_options_optimization): Reduce
24058 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24059 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24060 to the default.
24061
24062 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24063
24064 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24065 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24066 type of vector element when vec_extract is implemented by direct
24067 move.
24068
24069 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24070
24071 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24072
24073 2019-01-30 Richard Biener <rguenther@suse.de>
24074
24075 PR tree-optimization/89111
24076 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24077 canonicalization to appropriately sized access types.
24078
24079 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24080
24081 PR c++/89105
24082 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24083 for arguments to functions that are TU-local and shouldn't be
24084 referenced by assembly.
24085
24086 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24087
24088 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24089 after '='.
24090
24091 2019-01-29 Martin Sebor <msebor@redhat.com>
24092
24093 PR c/88956
24094 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24095
24096 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24097
24098 PR c++/66676
24099 PR ipa/89104
24100 * omp-simd-clone.c (simd_clone_clauses_extract)
24101 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24102 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24103
24104 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24105
24106 * config.gcc: Force .init_array for ARC.
24107
24108 2019-01-29 Richard Biener <rguenther@suse.de>
24109
24110 PR debug/87295
24111 * dwarf2out.c (collect_skeleton_dies): New helper.
24112 (copy_decls_for_unworthy_types): Call it.
24113 (build_abbrev_table): Assert we do not try to replace
24114 DW_AT_signature refs with local refs.
24115
24116 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24117
24118 PR middle-end/89002
24119 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24120 for lastprivate/linear IV, push gimplify context around gimplify_assign
24121 and, if it needed any temporaries, pop it into a gimple bind around the
24122 sequence.
24123
24124 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24125
24126 * common.opt (-Wattribute-alias): Remove "no-" from name.
24127 Make -Wattribute-alias command line option and
24128 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24129
24130 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24131
24132 PR target/89073
24133 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24134 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24135 x86 ISA options.
24136 (bmi2): Add missing @opindex.
24137 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24138 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24139 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24140 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24141 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24142 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24143 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24144 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24145 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24146 xsavec, xsaveopt and xsaves options.
24147
24148 2019-01-28 Richard Biener <rguenther@suse.de>
24149
24150 PR debug/89076
24151 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24152 support removal.
24153
24154 2019-01-28 Richard Biener <rguenther@suse.de>
24155
24156 PR tree-optimization/88739
24157 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24158 BIT_FIELD_REFs only are applied to mode-precision operands
24159 when they are integral.
24160 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24161 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24162 BIT_FIELD_REFs of non-mode-precision integral operands.
24163
24164 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24165
24166 PR target/87214
24167 * config/i386/sse.md
24168 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24169 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24170 first constants in pairs are multiples of 2. Formatting fixes.
24171 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24172 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24173 first constants in each quadruple are multiples of 4. Formatting fixes.
24174
24175 2019-01-26 Martin Jambor <mjambor@suse.cz>
24176
24177 PR ipa/88933
24178 * tree-inline.c: Include tree-cfgcleanup.h.
24179 (delete_unreachable_blocks_update_callgraph): Move...
24180 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24181 ...here, make externally visible, make second argument bool, adjust
24182 all callers.
24183 * tree-cfgcleanup.c: Include cgraph.h.
24184 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24185 Declare.
24186 * ipa-prop.c: Include tree-cfgcleanup.h.
24187 (ipcp_transform_function): Call
24188 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24189
24190 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24191
24192 PR rtl-optimization/88846
24193 * ira.c (process_set_for_memref_referenced_p): New.
24194 (memref_referenced_p): Add new param. Use
24195 process_set_for_memref_referenced_p. Add new switch cases.
24196 (memref_used_between_p): Pass new arg to memref_referenced_p.
24197
24198 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24199
24200 PR target/88469
24201 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24202 argument ABI_BREAK. Set to true if the calculated alignment has
24203 changed in gcc-9. Check bit-fields for their base type alignment.
24204 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24205 (aarch64_function_arg_boundary): Likewise.
24206 (aarch64_gimplify_va_arg_expr): Likewise.
24207
24208 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24209
24210 PR middle-end/89037
24211 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24212 instead of accessing TREE_INT_CST_ELT directly.
24213
24214 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24215
24216 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24217 fenv_exceptions description.
24218
24219 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24220
24221 PR rtl-optimization/87763
24222 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24223 Allow SUBREG when matching CC_NZmode compare.
24224
24225 2019-01-25 Richard Biener <rguenther@suse.de>
24226
24227 PR tree-optimization/89049
24228 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24229 Look at the pattern stmt to determine if the stmt is vectorized.
24230
24231 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24232
24233 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24234 (pred_mov<mode>): Handle all-register forms using both a new
24235 alternative and a split.
24236
24237 2019-01-25 Richard Biener <rguenther@suse.de>
24238
24239 PR tree-optimization/86865
24240 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24241 Reject non-do-while loops.
24242
24243 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24244
24245 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24246 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24247 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24248 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24249 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24250 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24251 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24252 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24253 vlogical_operand, gpc_reg_operand, int_reg_operand,
24254 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24255 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24256 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24257 (save_world_operation, restore_world_operation, lmw_operation,
24258 stmw_operation): Use MEM_P and REG_P.
24259 (tie_operand): Use MEM_P.
24260 (vrsave_operation, crsave_operation): Use REG_P.
24261 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24262 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24263 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24264 (call_operand): Use HARD_REGISTER_P.
24265 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24266 Use CONST_INT_P.
24267 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24268 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24269 quad_aligned_load_p, replace_swapped_aligned_store,
24270 recombine_lvx_pattern, replace_swapped_aligned_load,
24271 recombine_stvx_pattern): Use MEM_P.
24272 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24273 Use MEM_P and SYMBOL_REF_P.
24274 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24275 (insn_is_swappable_p): Use REG_P and MEM_P.
24276 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24277 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24278 Use CONST_INT_P.
24279 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24280 Use CONST_DOUBLE_P.
24281 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24282 CONST_WIDE_INT_P.
24283 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24284 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24285 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24286 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24287 reg_or_subregno:
24288 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24289 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24290 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24291 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24292 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24293 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24294 rs6000_split_logical_di): Use CONST_INT_P.
24295 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24296 REG_P and SYMBOL_REF_P.
24297 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24298 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24299 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24300 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24301 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24302 (small_data_operand, print_operand_address): Use CONST_INT_P and
24303 SYMBOL_REF_P.
24304 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24305 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24306 Use HARD_REGISTER_NUM_P.
24307 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24308 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24309 SUBREG_P and SYMBOL_REF_P.
24310 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24311 and HARD_REGISTER_NUM_P.
24312 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24313 reg_or_subregno.
24314 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24315 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24316 MEM_P and REG_P.
24317 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24318 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24319 find_addr_reg): Use REG_P.
24320 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24321 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24322 (offsettable_ok_by_alignment, constant_pool_expr_p,
24323 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24324 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24325 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24326 rs6000_assemble_integer, create_TOC_reference,
24327 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24328 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24329 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24330 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24331 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24332 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24333 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24334 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24335 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24336 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24337 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24338 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24339 and cbranch<mode>4): Use CONST_INT_P.
24340 (multiple define_splits): Use REG_P and SUBREG_P.
24341 (define_expands call, call_value): Use MEM_P.
24342 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24343 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24344 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24345 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24346 and HARD_REGISTER_NUM_P.
24347 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24348
24349 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24350
24351 PR rtl-optimization/88948
24352 * rtl.h (prepare_copy_insn): New prototype.
24353 * gcse.c (prepare_copy_insn): New function, split out from
24354 process_insert_insn.
24355 (process_insert_insn): Use prepare_copy_insn.
24356 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24357 instead of gen_move_insn.
24358
24359 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24360
24361 PR debug/89006
24362 * config/i386/i386.c (ix86_pic_register_p): Return true for
24363 UNSPEC_SET_GOT too.
24364
24365 PR tree-optimization/88964
24366 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24367 punt if HONOR_SNANS (chrec).
24368
24369 PR middle-end/89015
24370 * tree-nested.c (convert_nonlocal_reference_stmt,
24371 convert_local_reference_stmt, convert_tramp_reference_stmt,
24372 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24373 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24374 or GIMPLE_OMP_TASK.
24375
24376 PR tree-optimization/89027
24377 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24378 for "omp simd array" variables.
24379
24380 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24381
24382 PR target/88469
24383 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24384 force the alignment of m_val.
24385
24386 2019-01-24 Richard Biener <rguenther@suse.de>
24387
24388 PR lto/87187
24389 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24390 When in "legacy" debug mode make sure to reset self-origins.
24391
24392 2019-01-24 Martin Liska <mliska@suse.cz>
24393
24394 PR gcov-profile/88994
24395 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24396 result will be always smaller or equal to the original.
24397 * gcov.c (mangle_name): Fix else branch where we should
24398 also copy to PTR and shift the pointer.
24399
24400 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24401
24402 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24403 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24404
24405 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24406
24407 * common/config/i386/i386-common.c
24408 (OPTION_MASK_ISA_ENQCMD_SET,
24409 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24410 (ix86_handle_option): Handle -menqcmd.
24411 * config.gcc (enqcmdintrin.h): New header file.
24412 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24413 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24414 -menqcmd.
24415 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24416 function type.
24417 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24418 __builtin_ia32_enqcmds): New builtins.
24419 * config/i386/i386-c.c (__ENQCMD__): New macro.
24420 * config/i386/i386-option.c (ix86_target_string): Add
24421 -menqcmd.
24422 (ix86_valid_target_attribute_inner_p): Likewise.
24423 * config/i386/i386-expand.c
24424 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24425 IX86_BUILTIN_ENQCMDS.
24426 * config/i386/i386.h (TARGET_ENQCMD): New.
24427 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24428 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24429 (movdir64b_<mode>): Parameterize to enable share expansion code
24430 with ENQCMD in function ix86_expand_builtin.
24431 * config/i386/i386.opt: Add -menqcmd.
24432 * config/i386/immintrin.h: Include enqcmdintrin.h.
24433 * config/i386/enqcmdintrin.h: New intrinsic file.
24434 * doc/invoke.texi: Add -menqcmd.
24435
24436 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24437 Steve Ellcey <sellcey@marvell.com>
24438
24439 PR target/85711
24440 * recog.c (address_operand): Return false on wrong mode for address.
24441 (constrain_operands): Check for mode with 'p' constraint.
24442
24443 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24444
24445 PR target/88998
24446 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24447 Disparage MMX alternative.
24448 (sse2_cvtpd2pi): Ditto.
24449 (sse2_cvttpd2pi): Ditto.
24450
24451 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24452
24453 PR driver/89014
24454 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24455 use-after-free of the result of
24456 aarch64_get_extension_string_for_isa_flags.
24457
24458 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24459
24460 PR c/44715
24461 * doc/extend.texi: Document break and continue behavior in
24462 statement expressions.
24463
24464 2019-01-23 Richard Biener <rguenther@suse.de>
24465
24466 PR tree-optimization/89008
24467 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24468 not leave another stray operand.
24469
24470 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24471
24472 * BASE-VER: Bump to 9.0.1.
24473
24474 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24475
24476 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24477 thunk that returns by reference, use the type of the return object
24478 of the thunk instead of that of the alias to build the dereference.
24479
24480 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24481
24482 * config/arc/atomic.md: Add operand to DMB instruction.
24483
24484 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24485
24486 PR tree-optimization/88964
24487 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24488 build_zero_cst instead of build_int_cst. Return false for loop
24489 invariants which honor signed zeros.
24490
24491 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24492
24493 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24494
24495 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24496
24497 PR target/88965
24498 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24499 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24500 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24501
24502 PR middle-end/88968
24503 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24504 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24505
24506 PR target/87064
24507 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24508 Disable for little endian.
24509
24510 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24511
24512 PR target/88469
24513 * config/arm/arm.c (arm_needs_double_word_align): Check
24514 DECL_BIT_FIELD_TYPE.
24515
24516 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24517 H.J. Lu <hongjiu.lu@intel.com>
24518
24519 PR target/88909
24520 * config/i386/i386-builtin.def: Add mask2 to all builtin
24521 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24522 SPECIAL_ARGS.
24523 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24524 (BDESC_FIRST): Likewise.
24525 (define_builtin): Add an argument for mask2. Updated to handle
24526 both ix86_isa_flags and ix86_isa_flags2.
24527 (define_builtin_const): Likewise.
24528 (define_builtin_pure): Likewise.
24529 (define_builtin2): Deleted.
24530 (define_builtin_const2): Likewise.
24531 (builtin_description): Add a member, mask2.
24532 (bdesc_*): Add mask2 to builtin initializations.
24533 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24534 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24535 support.
24536 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24537
24538 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24539
24540 PR target/88954
24541 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24542 noplt attribute.
24543
24544 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24545
24546 PR target/88469
24547 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24548 alignment is dominated by a bitfield with 64-bit aligned base type.
24549 (arm_function_arg): Emit a warning if the alignment has changed since
24550 earlier GCC releases.
24551 (arm_function_arg_boundary): Likewise.
24552 (arm_setup_incoming_varargs): Likewise.
24553
24554 2019-01-22 Richard Biener <rguenther@suse.de>
24555
24556 PR tree-optimization/88862
24557 * graphite-scop-detection.c
24558 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24559
24560 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24561
24562 * doc/extend.tex (AMD GCN Function Attributes): New section.
24563 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24564 * doc/invoke.texi (AMD GCN Options): New section.
24565 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24566
24567 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24568
24569 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24570 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24571
24572 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24573
24574 PR tree-optimization/88044
24575 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24576 is false in the first iteration, but !every_iteration, return false
24577 instead of true with niter->niter zero.
24578
24579 PR rtl-optimization/88904
24580 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24581 any nonequal registers before processing BB_END (b).
24582
24583 PR target/88905
24584 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24585 GET_MODE (op0).
24586 (expand_binop_directly, expand_doubleword_clz,
24587 expand_doubleword_popcount, expand_ctz, expand_ffs,
24588 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24589
24590 PR rtl-optimization/49429
24591 PR target/49454
24592 PR rtl-optimization/86334
24593 PR target/88906
24594 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24595 addressable from here...
24596 (emit_block_op_via_libcall): ... to here.
24597
24598 2019-01-22 Richard Biener <rguenther@suse.de>
24599
24600 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24601 auto_vec for cost vector to fix memleak.
24602 (vectorize_fold_left_reduction): Properly gather SLP defs.
24603 (vectorizable_comparison): Do not swap operands to properly
24604 gather SLP defs.
24605
24606 2019-01-22 Alan Modra <amodra@gmail.com>
24607
24608 PR target/88614
24609 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24610 stays a reg. Allow a const_int.
24611 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24612 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24613 (IS_NOMARK_TLSGETADDR): Define.
24614 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24615 (rs6000_output_tlsargs): New function.
24616 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24617 __tls_get_addr call takes an arg.
24618 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24619 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24620 delete split..
24621 (call_value_nonlocal_sysv): ..or here, delete split.
24622 (tls_gdld_nomark): Delete.
24623 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24624 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24625 (call_value_nonlocal_sysv): Likewise.
24626 (call_value_nonlocal_sysv_secure): Likewise.
24627 (call_value_nonlocal_aix): Likewise.
24628 (call_value_indirect_aix): Likewise.
24629 (call_value_indirect_elfv2): Likewise.
24630 (call_value_local32, call_value_local64): Disable for no-mark tls.
24631 (call_value_local_aix): Likewise.
24632
24633 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24634
24635 PR target/88938
24636 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24637 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24638
24639 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24640
24641 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24642 string contents as hash_map keys.
24643
24644 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24645
24646 PR c/88928
24647 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24648 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24649 instead of TYPE_ALIGN.
24650 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24651 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24652 pointer from TYPE_STUB_DECL.
24653
24654 2019-01-21 Richard Biener <rguenther@suse.de>
24655
24656 PR tree-optimization/88934
24657 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24658 at the possibly non-constant operand.
24659 (vect_get_constant_vectors): Adjust.
24660
24661 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24662
24663 PR target/71659
24664 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24665 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24666 instead of _X86INTRIN_H_INCLUDED.
24667 * onfig/i386/clwbintrin.h: Likewise.
24668 * config/i386/pkuintrin.h: Likewise.
24669 * config/i386/prfchwintrin.h: Likewise.
24670 * config/i386/rdseedintrin.h: Likewise.
24671 * config/i386/wbnoinvdintrin.h: Likewise.
24672 * config/i386/xsavecintrin.h: Likewise.
24673 * config/i386/xsavesintrin.h: Likewise.
24674 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24675 * config/i386/xsaveintrin.h: Likewise.
24676 * config/i386/xsaveoptintrin.h: Likewise.
24677 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24678 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24679 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24680 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24681 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24682 * config/i386/immintrin.h: Here.
24683
24684 2019-01-20 Martin Jambor <mjambor@suse.cz>
24685
24686 PR ipa/87615
24687 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24688 with aa_walk_budget.
24689 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24690 aa_walk_budget_p parameter.
24691 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24692 walk. Updated all callers.
24693 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24694 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24695 unmodified_parm.
24696 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24697 parameter info. Extract info from fbi. Pass fbi to recursive calls
24698 and to unmodified_parm.
24699 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24700 info, updated call to will_be_nonconstant_expr_predicate.
24701 (param_change_prob): New parameter fbi, limit AA walking.
24702 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24703 calls to various above functions.
24704 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24705 parameter. Use it to limit AA walking.
24706 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24707 fbi, limit AA walk.
24708 (detect_type_change): New parameter fbi, pass it on to
24709 detect_type_change_from_memory_writes.
24710 (detect_type_change_ssa): Likewise.
24711 (aa_overwalked): Removed.
24712 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24713 accordingly, adjust to the neew AA limiting scheme.
24714 (parm_ref_data_preserved_p): Likewise.
24715 (ipa_compute_jump_functions_for_edge): Adjust call to
24716 get_dynamic_type.
24717 (ipa_analyze_call_uses): Likewise.
24718 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24719 (ipa_analyze_node): Initialize aa_walk_budget.
24720 (ipcp_transform_function): Likewise.
24721 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24722 to get_dynamic_type.
24723
24724 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24725
24726 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24727 outside of #if CHECKING_P code.
24728
24729 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24730
24731 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24732 New function, split out from...
24733 (loop_versioning::analyze_stride): ...here.
24734 (loop_versioning::find_per_loop_multiplication): Use gassign.
24735 (loop_versioning::analyze_term_using_scevs): Return a success code.
24736 (loop_versioning::analyze_arbitrary_term): New function.
24737 (loop_versioning::analyze_address_fragment): Use
24738 analyze_arbitrary_term if all else fails.
24739
24740 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24741
24742 PR target/88892
24743 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24744 operands.
24745
24746 2019-01-18 Richard Biener <rguenther@suse.de>
24747
24748 PR tree-optimization/88903
24749 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24750 scalar stmts a SLP shift amount is composed of when detecting
24751 shifts by scalars.
24752
24753 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24754
24755 PR target/88799
24756 * config/arm/arm-cpus.in (mp): New feature.
24757 (sec): New feature.
24758 (fgroup ARMv7ve): Add mp and sec features.
24759 (arch armv7-a): Add options to allow mp and sec extensions.
24760 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24761 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24762 extenstions to the base architecture.
24763 (cpu cortex-a8): Add sec extension to the base architecture.
24764 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24765 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24766 variants down to the base v7-a varaint.
24767 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24768 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24769 of permitted extensions for -march=armv7-a and for
24770 -mcpu=generic-armv7-a.
24771
24772 2019-01-18 Martin Liska <mliska@suse.cz>
24773
24774 * params.def: Fix comment.
24775 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24776 name.
24777 (gimple_gen_ic_func_profiler): Likewise.
24778
24779 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24780
24781 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24782 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24783 and put in error checks for stack protector guard options.
24784 (aarch64_stack_protect_guard): New.
24785 (TARGET_STACK_PROTECT_GUARD): Define.
24786 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24787 (reg_stack_protect_address<mode>): New.
24788 (stack_protect_set): Adjust for SSP_GLOBAL.
24789 (stack_protect_test): Likewise.
24790 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24791 (-mstack-protector-guard): Likewise.
24792 (-mstack-protector-guard-offset): Likewise.
24793
24794 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24795
24796 PR tree-optimization/86214
24797 * tree-inline.h (struct copy_body_data): Add
24798 add_clobbers_to_eh_landing_pads member.
24799 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24800 (copy_edges_for_bb): Call it if EH edge destination is <
24801 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24802 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24803 if flag_stack_reuse != SR_NONE and clear it afterwards.
24804
24805 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24806
24807 PR target/85596
24808 * doc/install.texi (with-multilib-list): Document for aarch64.
24809
24810 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24811
24812 PR target/88734
24813 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24814 (("..."))) with ("...").
24815
24816 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24817
24818 * doc/extend.texi (Built-in Functions for Memory Model Aware
24819 Atomic Operations): Document atomic fetch and nand.
24820
24821 2019-01-18 Martin Liska <mliska@suse.cz>
24822 Richard Biener <rguenther@suse.de>
24823
24824 PR middle-end/88587
24825 * cgraph.h (create_version_clone_with_body): Add new argument
24826 with attributes.
24827 * cgraphclones.c (cgraph_node::create_version_clone): Add
24828 DECL_ATTRIBUTES to a newly created decl. And call
24829 valid_attribute_p so that proper cl_target_optimization_node
24830 is set for the newly created declaration.
24831 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24832 for declaration.
24833 (expand_target_clones): Do not call valid_attribute_p, it must
24834 be already done.
24835 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24836 vector types.
24837
24838 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24839
24840 PR target/88734
24841 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24842 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24843 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24844
24845 2019-01-17 Martin Sebor <msebor@redhat.com>
24846
24847 PR middle-end/88273
24848 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24849 Handle anti-ranges the same as no range at all.
24850
24851 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24852
24853 * config/aarch64/aarch64.c (cgraph.h): New include.
24854 (intl.h): New include.
24855 (supported_simd_type): New function.
24856 (currently_supported_simd_type): Ditto.
24857 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24858 (aarch64_simd_clone_adjust): Ditto.
24859 (aarch64_simd_clone_usable): Ditto.
24860 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24861 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24862 (TARGET_SIMD_CLONE_USABLE): Ditto.
24863 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24864 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24865 call.
24866
24867 2019-01-17 Martin Sebor <msebor@redhat.com>
24868
24869 PR tree-optimization/88800
24870 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24871 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24872 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24873 redundant argument. Add new argument and issue diagnostics under
24874 its control. Detect out-of-bounds access even with warnings
24875 disabled.
24876 (check_bounds_or_overlap): Change return type. Add argument.
24877 (wrestrict_dom_walker::check_call): Adjust.
24878 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24879 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24880 check_bounds_or_overlap's return value.
24881 (handle_builtin_stxncpy): Same.
24882 (handle_builtin_strcat): Same.
24883
24884 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24885 Kwok Cheung Yeung <kcy@codesourcery.com>
24886 Julian Brown <julian@codesourcery.com>
24887 Tom de Vries <tom@codesourcery.com>
24888
24889 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24890
24891 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24892
24893 * doc/sourcebuild.texi: Document dg-require-effective-target
24894 llvm_binutils and offload_gcn.
24895
24896 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24897 Kwok Cheung Yeung <kcy@codesourcery.com>
24898 Julian Brown <julian@codesourcery.com>
24899 Tom de Vries <tom@codesourcery.com>
24900
24901 * doc/sourcebuild.texi: Document dg-required-effective-target
24902 exceptions.
24903
24904 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24905 Kwok Cheung Yeung <kcy@codesourcery.com>
24906 Julian Brown <julian@codesourcery.com>
24907 Tom de Vries <tom@codesourcery.com>
24908 Jan Hubicka <hubicka@ucw.cz>
24909 Martin Jambor <mjambor@suse.cz>
24910
24911 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24912 * configure.ac: Check for dlopen.
24913 * configure: Regenerate.
24914
24915 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24916 Kwok Cheung Yeung <kcy@codesourcery.com>
24917 Julian Brown <julian@codesourcery.com>
24918 Tom de Vries <tom@codesourcery.com>
24919 Jan Hubicka <hubicka@ucw.cz>
24920 Martin Jambor <mjambor@suse.cz>
24921
24922 * common/config/gcn/gcn-common.c: New file.
24923 * config/gcn/driver-gcn.c: New file.
24924 * config/gcn/gcn-builtins.def: New file.
24925 * config/gcn/gcn-hsa.h: New file.
24926 * config/gcn/gcn-modes.def: New file.
24927 * config/gcn/gcn-opts.h: New file.
24928 * config/gcn/gcn-passes.def: New file.
24929 * config/gcn/gcn-protos.h: New file.
24930 * config/gcn/gcn-run.c: New file.
24931 * config/gcn/gcn-tree.c: New file.
24932 * config/gcn/gcn.c: New file.
24933 * config/gcn/gcn.h: New file.
24934 * config/gcn/gcn.opt: New file.
24935 * config/gcn/t-gcn-hsa: New file.
24936
24937 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24938 Kwok Cheung Yeung <kcy@codesourcery.com>
24939 Julian Brown <julian@codesourcery.com>
24940 Tom de Vries <tom@codesourcery.com>
24941 Jan Hubicka <hubicka@ucw.cz>
24942 Martin Jambor <mjambor@suse.cz>
24943
24944 * config/gcn/constraints.md: New file.
24945 * config/gcn/gcn-valu.md: New file.
24946 * config/gcn/gcn.md: New file.
24947 * config/gcn/predicates.md: New file.
24948
24949 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
24950
24951 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24952 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24953 (stmt_uses_0_or_null_in_undefined_way): Likewise.
24954 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24955
24956 2019-01-17 Tamar Christina <tamar.christina@arm.com>
24957
24958 PR target/88851
24959 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24960 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24961 it and document registers.
24962
24963 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24964
24965 * config/aarch64/aarch64.c (ares_tunings): Define.
24966 * config/aarch64/aarch64-cores.def (ares): Use the above.
24967
24968 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
24969
24970 PR target/88794
24971 Revert:
24972 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
24973
24974 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
24975 (_mm512_fixupimm_round_pd): Update parameters and builtin.
24976 (_mm512_maskz_fixupimm_round_pd): Ditto.
24977 (_mm512_fixupimm_round_ps): Ditto.
24978 (_mm512_maskz_fixupimm_round_ps): Ditto.
24979 (_mm_fixupimm_round_sd): Ditto.
24980 (_mm_maskz_fixupimm_round_sd): Ditto.
24981 (_mm_fixupimm_round_ss): Ditto.
24982 (_mm_maskz_fixupimm_round_ss): Ditto.
24983 (_mm512_fixupimm_pd): Ditto.
24984 (_mm512_maskz_fixupimm_pd): Ditto.
24985 (_mm512_fixupimm_ps): Ditto.
24986 (_mm512_maskz_fixupimm_ps): Ditto.
24987 (_mm_fixupimm_sd): Ditto.
24988 (_mm_maskz_fixupimm_sd): Ditto.
24989 (_mm_fixupimm_ss): Ditto.
24990 (_mm_maskz_fixupimm_ss): Ditto.
24991 (_mm512_mask_fixupimm_round_pd): Update builtin.
24992 (_mm512_mask_fixupimm_round_ps): Ditto.
24993 (_mm_mask_fixupimm_round_sd): Ditto.
24994 (_mm_mask_fixupimm_round_ss): Ditto.
24995 (_mm512_mask_fixupimm_pd): Ditto.
24996 (_mm512_mask_fixupimm_ps): Ditto.
24997 (_mm_mask_fixupimm_sd): Ditto.
24998 (_mm_mask_fixupimm_ss): Ditto.
24999 * config/i386/avx512vlintrin.h:
25000 (_mm256_fixupimm_pd): Update parameters and builtin.
25001 (_mm256_maskz_fixupimm_pd): Ditto.
25002 (_mm256_fixupimm_ps): Ditto.
25003 (_mm256_maskz_fixupimm_ps): Ditto.
25004 (_mm_fixupimm_pd): Ditto.
25005 (_mm_maskz_fixupimm_pd): Ditto.
25006 (_mm_fixupimm_ps): Ditto.
25007 (_mm_maskz_fixupimm_ps): Ditto.
25008 (_mm256_mask_fixupimm_pd): Update builtin.
25009 (_mm256_mask_fixupimm_ps): Ditto.
25010 (_mm_mask_fixupimm_pd): Ditto.
25011 (_mm_mask_fixupimm_ps): Ditto.
25012 * config/i386/i386-builtin-types.def: Add new types and remove
25013 useless ones.
25014 * config/i386/i386-builtin.def: Update builtin definitions.
25015 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25016 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25017 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25018 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25019 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25020 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25021 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25022 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25023 * config/i386/subst.md:
25024 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25025 (round_saeonly_sd_mask_op4): Ditto.
25026 (round_saeonly_expand_operand5): Ditto.
25027 (round_saeonly_expand): Update.
25028
25029 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25030
25031 PR target/88794
25032 Revert:
25033 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25034
25035 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25036 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25037 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25038 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25039 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25040 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25041 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25042
25043 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25044
25045 PR target/88794
25046 Revert:
25047 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25048
25049 PR target/88489
25050 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25051 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25052 instead of UNSPEC_FIXUPIMM.
25053
25054 2019-01-17 Richard Biener <rguenther@suse.de>
25055
25056 PR lto/86736
25057 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25058 and friends for the LTO part of debug info.
25059
25060 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25061
25062 PR tree-optimization/86214
25063 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25064 if x == y.
25065
25066 PR rtl-optimization/88870
25067 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25068 throw if we can't alter the cfg or delete dead exceptions.
25069 (mark_insn): Don't call find_call_stack_args for such calls.
25070
25071 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25072
25073 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25074 prototypes for vec_st.
25075 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25076 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25077 mainly on signed/unsigned long long and double.
25078
25079 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25080
25081 PR target/88861
25082 * combine.c (delete_noop_moves): Convert to "bool" return,
25083 returning true if any edges are eliminated.
25084 (combine_instructions): Also return true if delete_noop_moves
25085 returns true.
25086
25087 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25088
25089 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25090 correct max nunits for endian swap.
25091 (aarch64_expand_fcmla_builtin): Correct subreg code.
25092 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25093 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25094 lane endianness.
25095
25096 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25097
25098 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25099 Handle split indirect COMPLEX_TYPE arguments.
25100
25101 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25102
25103 PR target/86891
25104 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25105 bit is set by add and compare.
25106 (CC_ADC): New CC_MODE.
25107 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25108 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25109 comparison. Add detection for CC_ADCmode.
25110 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25111 CC_ADCmode.
25112 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25113 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25114 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25115 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25116 to eliminate the need for zero-extending the operands.
25117 (add<mode>3_compareC_imm): Delete. Merge into ...
25118 (add<mode>3_compareC): ... this. Restructure the comparison to
25119 eliminate the need for zero-extending the operands.
25120 (add<mode>3_carryin): Use LTU for the overflow detection.
25121 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25122 Reexpress comparison for overflow.
25123 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25124 (add<mode>3_carryinC): Likewise.
25125 (add<mode>3_carryinV): Use LTU for carry between partials.
25126 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25127 handling of CC_Cmode and add CC_ADCmode.
25128 (aarch64_borrow_operation): Likewise.
25129
25130 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25131
25132 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25133 Remove patternmode.
25134 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25135 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25136 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25137 Remove endianness conversion.
25138
25139 2019-01-16 Martin Liska <mliska@suse.cz>
25140
25141 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25142 for GCC driver.
25143 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25144 a new argument.
25145 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25146 (path_prefix_reset): Move up in the source file.
25147 (find_fortran_preinclude_file): Make complex search for the
25148 fortran header files.
25149
25150 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25151
25152 * godump.c (go_output_typedef): When outputting a typedef, refer
25153 to the underlying type by its name and not its structure.
25154
25155 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25156
25157 PR c++/88795
25158 * tree.c (build_function_type): Assert that arg_types is not
25159 error_mark_node.
25160
25161 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25162
25163 PR inline-asm/52813
25164 * doc/extend.texi: Document that listing the stack pointer in the
25165 clobber list of an asm is a deprecated feature.
25166 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25167 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25168 warning instead of an error for clobbers of the stack pointer.
25169 Add a note explaining why.
25170
25171 2019-01-15 Richard Biener <rguenther@suse.de>
25172
25173 PR debug/88046
25174 * dwarf2out.c (gen_member_die): Do not generate inheritance
25175 DIEs late.
25176
25177 2019-01-15 Richard Biener <rguenther@suse.de>
25178
25179 PR tree-optimization/88855
25180 * tree-if-conv.c (combine_blocks): Collect
25181 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25182
25183 2019-01-15 Tom de Vries <tdevries@suse.de>
25184
25185 PR target/80547
25186 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25187 lhs == NULL_TREE for gang-level reduction.
25188
25189 2019-01-15 Richard Biener <rguenther@suse.de>
25190 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25191
25192 PR ipa/88788
25193 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25194 return true if SSA_NAME is already marked in visited bitmap.
25195 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25196
25197 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25198
25199 PR tree-optimization/88775
25200 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25201 equal == 0 equality pointer comparisons some more if compared in
25202 integral types and either one points to an automatic var and the
25203 other to a global, or we can prove at least one points to the middle
25204 or both point to start or both point to end.
25205
25206 2019-01-14 Andi Kleen <ak@linux.intel.com>
25207
25208 * Makefile.in: Lower autofdo sampling rate by 10x.
25209 * Makefile.tpl: Dito.
25210
25211 2019-01-14 Tom Honermann <tom@honermann.net>
25212
25213 * defaults.h: Define CHAR8_TYPE.
25214
25215 2019-01-14 Martin Sebor <msebor@redhat.com>
25216
25217 PR target/88638
25218 * doc/extend.texi (Darwin Format Checks): Clarify.
25219
25220 2019-01-14 Richard Biener <rguenther@suse.de>
25221
25222 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25223 whether we are in (simplify ...) or (match ...) context.
25224
25225 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25226
25227 PR rtl-optimization/88796
25228 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25229 * cfgexpand.c (stack_protect_prologue): Initialize
25230 crtl->stack_protect_guard_decl.
25231 * function.c (stack_protect_epilogue): Use it instead of calling
25232 targetm.stack_protect_guard again.
25233 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25234 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25235 crtl->stack_protect_guard_decl.
25236 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25237 on the returned MEM_EXPR.
25238
25239 2019-01-12 Tom de Vries <tdevries@suse.de>
25240
25241 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25242 vector length using -fopenacc-dim.
25243
25244 2019-01-12 Tom de Vries <tdevries@suse.de>
25245
25246 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25247 lengths into account.
25248
25249 2019-01-12 Svante Signell <svante.signell@gmail.com>
25250
25251 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25252 (TARGET_CAN_SPLIT_STACK): Define.
25253 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25254
25255 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25256
25257 * params.def (inline-unit-growth): Set to 40.
25258
25259 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25260
25261 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25262
25263 2019-01-12 Tom de Vries <tdevries@suse.de>
25264
25265 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25266 region calling vector-partitionable routine, set default_vector_length
25267 to WARP_SIZE.
25268
25269 2019-01-12 Tom de Vries <tdevries@suse.de>
25270
25271 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25272 variable default_vector_length.
25273
25274 2019-01-12 Tom de Vries <tdevries@suse.de>
25275
25276 PR middle-end/88703
25277 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25278 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25279 dimensions limits.
25280
25281 2019-01-12 Tom de Vries <tdevries@suse.de>
25282
25283 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25284 (nvptx_goacc_validate_dims): Add used parameter.
25285 * doc/tm.texi: Regenerate.
25286 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25287 argument to call to targetm.goacc.validate_dims.
25288 (default_goacc_validate_dims): Add used
25289 parameter.
25290 * target.def (validate_dims): Add used parameter in DEFHOOK.
25291 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25292
25293 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25294
25295 PR middle-end/85956
25296 PR lto/88733
25297 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25298 field.
25299 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25300 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25301 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25302 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25303
25304 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25305
25306 PR rtl-optimization/87305
25307 * lra-assigns.c
25308 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25309 for little endian pseudos used as paradoxical subreg.
25310
25311 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25312
25313 PR tree-optimization/88693
25314 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25315 for STRING_CSTs that don't contain any NUL characters in the first
25316 TREE_STRING_LENGTH bytes.
25317
25318 2019-01-11 Alan Modra <amodra@gmail.com>
25319
25320 PR 88777
25321 PR 88614
25322 * genattrtab.c (min_fn): Don't translate values.
25323 (min_attr_value): Return INT_MAX when the value can't be calculated.
25324 Return minimum among any values that can be calculated.
25325 (max_attr_value): Adjust.
25326
25327 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25328
25329 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25330
25331 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25332
25333 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25334 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25335 (aarch64_return_call_with_max_clobbers): New function.
25336 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25337 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25338 argument.
25339 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25340 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25341 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25342 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25343 * cselib.c (cselib_process_insn): Add argument to
25344 targetm.hard_regno_call_part_clobbered call.
25345 * ira-conflicts.c (ira_build_conflicts): Ditto.
25346 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25347 * lra-constraints.c (inherit_reload_reg): Ditto.
25348 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25349 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25350 argument. Call targetm.return_call_with_max_clobbers.
25351 Add argument to targetm.hard_regno_call_part_clobbered call.
25352 (calls_have_same_clobbers_p): New function.
25353 (process_bb_lives): Add call_insn and last_call_insn variables.
25354 Pass call_insn to check_pseudos_live_through_calls.
25355 Modify if stmt to check targetm.return_call_with_max_clobbers.
25356 Update setting of flush variable.
25357 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25358 to false.
25359 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25360 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25361 targetm.hard_regno_call_part_clobbered call.
25362 * reginfo.c (choose_hard_reg_mode): Ditto.
25363 * regrename.c (check_new_reg_p): Ditto.
25364 * reload.c (find_equiv_reg): Ditto.
25365 * reload1.c (emit_reload_insns): Ditto.
25366 * sched-deps.c (deps_analyze_insn): Ditto.
25367 * sel-sched.c (init_regs_for_mode): Ditto.
25368 (mark_unavailable_hard_regs): Ditto.
25369 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25370 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25371 (return_call_with_max_clobbers): New target function.
25372 * doc/tm.texi: Regenerate.
25373 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25374 * hooks.c (hook_bool_uint_mode_false): Change to
25375 hook_bool_insn_uint_mode_false.
25376 * hooks.h (hook_bool_uint_mode_false): Ditto.
25377
25378 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25379
25380 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25381 (aarch64_remove_extra_call_preserved_regs): New function.
25382 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25383 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25384 * doc/tm.texi: Regenerate.
25385 * final.c (get_call_reg_set_usage): Call new hook.
25386 * target.def (remove_extra_call_preserved_regs): New hook.
25387 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25388 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25389
25390 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25391
25392 PR bootstrap/88714
25393 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25394 inside of pass_combine_1 dump rather than pass_profile_1.
25395
25396 2019-01-11 Tom de Vries <tdevries@suse.de>
25397
25398 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25399 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25400 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25401 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25402 num_workers 16.
25403
25404 2019-01-11 Tom de Vries <tdevries@suse.de>
25405
25406 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25407
25408 2019-01-11 Jan Beulich <jbeulich@suse.com>
25409
25410 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25411 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25412 sse2_cvtsi2sd): Add {l}.
25413 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25414 syntax.
25415
25416 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25417
25418 PR target/88785
25419 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25420 define_expand.
25421 (*float<floatunssuffix>v2div2sf2): New define_insn.
25422 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25423 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25424 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25425 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25426 match_operands with "const0_operand" "C".
25427
25428 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25429
25430 * config/aarch64/aarch64-builtins.c
25431 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25432 (aarch64_init_simd_builtins): ...Here
25433
25434 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25435
25436 PR rtl-optimization/87305
25437 * lra-assigns.c
25438 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25439 allocation for big endian pseudos used as paradoxical subregs and
25440 spill them if it is wrong.
25441 * lra-constraints.c (lra_constraints): Add a comment.
25442
25443 2019-01-10 Richard Biener <rguenther@suse.de>
25444
25445 PR tree-optimization/88792
25446 * tree-ssa-pre.c (get_representative_for): Do not return a
25447 value-number here.
25448
25449 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25450
25451 PR middle-end/84877
25452 PR bootstrap/88450
25453 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25454 (assign_parm_setup_block): Do the argument slot realignment here
25455 instead.
25456
25457 2019-01-10 Stefan Agner <stefan@agner.ch>
25458
25459 PR target/88648
25460 * config/arm/arm.c (arm_option_override_internal): Force
25461 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25462
25463 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25464
25465 PR c/88568
25466 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25467 DECL_EXTERNAL.
25468
25469 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25470
25471 * config/arm/arm-builtins.c
25472 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25473 (MAC_LANE_PAIR_QUALIFIERS): New.
25474 (arm_expand_builtin_args): Use it.
25475 (arm_expand_builtin_1): Likewise.
25476 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25477 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25478 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25479 * config/arm/arm_neon.h:
25480 (vcadd_rot90_f16): New.
25481 (vcaddq_rot90_f16): New.
25482 (vcadd_rot270_f16): New.
25483 (vcaddq_rot270_f16): New.
25484 (vcmla_f16): New.
25485 (vcmlaq_f16): New.
25486 (vcmla_lane_f16): New.
25487 (vcmla_laneq_f16): New.
25488 (vcmlaq_lane_f16): New.
25489 (vcmlaq_laneq_f16): New.
25490 (vcmla_rot90_f16): New.
25491 (vcmlaq_rot90_f16): New.
25492 (vcmla_rot90_lane_f16): New.
25493 (vcmla_rot90_laneq_f16): New.
25494 (vcmlaq_rot90_lane_f16): New.
25495 (vcmlaq_rot90_laneq_f16): New.
25496 (vcmla_rot180_f16): New.
25497 (vcmlaq_rot180_f16): New.
25498 (vcmla_rot180_lane_f16): New.
25499 (vcmla_rot180_laneq_f16): New.
25500 (vcmlaq_rot180_lane_f16): New.
25501 (vcmlaq_rot180_laneq_f16): New.
25502 (vcmla_rot270_f16): New.
25503 (vcmlaq_rot270_f16): New.
25504 (vcmla_rot270_lane_f16): New.
25505 (vcmla_rot270_laneq_f16): New.
25506 (vcmlaq_rot270_lane_f16): New.
25507 (vcmlaq_rot270_laneq_f16): New.
25508 (vcadd_rot90_f32): New.
25509 (vcaddq_rot90_f32): New.
25510 (vcadd_rot270_f32): New.
25511 (vcaddq_rot270_f32): New.
25512 (vcmla_f32): New.
25513 (vcmlaq_f32): New.
25514 (vcmla_lane_f32): New.
25515 (vcmla_laneq_f32): New.
25516 (vcmlaq_lane_f32): New.
25517 (vcmlaq_laneq_f32): New.
25518 (vcmla_rot90_f32): New.
25519 (vcmlaq_rot90_f32): New.
25520 (vcmla_rot90_lane_f32): New.
25521 (vcmla_rot90_laneq_f32): New.
25522 (vcmlaq_rot90_lane_f32): New.
25523 (vcmlaq_rot90_laneq_f32): New.
25524 (vcmla_rot180_f32): New.
25525 (vcmlaq_rot180_f32): New.
25526 (vcmla_rot180_lane_f32): New.
25527 (vcmla_rot180_laneq_f32): New.
25528 (vcmlaq_rot180_lane_f32): New.
25529 (vcmlaq_rot180_laneq_f32): New.
25530 (vcmla_rot270_f32): New.
25531 (vcmlaq_rot270_f32): New.
25532 (vcmla_rot270_lane_f32): New.
25533 (vcmla_rot270_laneq_f32): New.
25534 (vcmlaq_rot270_lane_f32): New.
25535 (vcmlaq_rot270_laneq_f32): New.
25536 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25537 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25538 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25539 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25540 vcmlaq_lane270): New.
25541 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25542 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25543 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25544 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25545 (arm_option_reconfigure_globals): Use them.
25546 * config/arm/iterators.md (VDF, VQ_HSF): New.
25547 (VCADD, VCMLA): New.
25548 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25549 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25550 New.
25551 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25552 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25553
25554 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25555
25556 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25557 Add qualifier_lane_pair_index.
25558 (emit-rtl.h): Include.
25559 (TYPES_QUADOP_LANE_PAIR): New.
25560 (aarch64_simd_expand_args): Use it.
25561 (aarch64_simd_expand_builtin): Likewise.
25562 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25563 New.
25564 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25565 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25566 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25567 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25568 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25569 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25570 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25571 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25572 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25573 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25574 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25575 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25576 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25577 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25578 Add __ARM_FEATURE_COMPLEX.
25579 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25580 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25581 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25582 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25583 fcmlaq_lane270): New.
25584 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25585 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25586 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25587 * config/aarch64/arm_neon.h:
25588 (vcadd_rot90_f16): New.
25589 (vcaddq_rot90_f16): New.
25590 (vcadd_rot270_f16): New.
25591 (vcaddq_rot270_f16): New.
25592 (vcmla_f16): New.
25593 (vcmlaq_f16): New.
25594 (vcmla_lane_f16): New.
25595 (vcmla_laneq_f16): New.
25596 (vcmlaq_lane_f16): New.
25597 (vcmlaq_rot90_lane_f16): New.
25598 (vcmla_rot90_laneq_f16): New.
25599 (vcmla_rot90_lane_f16): New.
25600 (vcmlaq_rot90_f16): New.
25601 (vcmla_rot90_f16): New.
25602 (vcmlaq_laneq_f16): New.
25603 (vcmla_rot180_laneq_f16): New.
25604 (vcmla_rot180_lane_f16): New.
25605 (vcmlaq_rot180_f16): New.
25606 (vcmla_rot180_f16): New.
25607 (vcmlaq_rot90_laneq_f16): New.
25608 (vcmlaq_rot270_laneq_f16): New.
25609 (vcmlaq_rot270_lane_f16): New.
25610 (vcmla_rot270_laneq_f16): New.
25611 (vcmlaq_rot270_f16): New.
25612 (vcmla_rot270_f16): New.
25613 (vcmlaq_rot180_laneq_f16): New.
25614 (vcmlaq_rot180_lane_f16): New.
25615 (vcmla_rot270_lane_f16): New.
25616 (vcadd_rot90_f32): New.
25617 (vcaddq_rot90_f32): New.
25618 (vcaddq_rot90_f64): New.
25619 (vcadd_rot270_f32): New.
25620 (vcaddq_rot270_f32): New.
25621 (vcaddq_rot270_f64): New.
25622 (vcmla_f32): New.
25623 (vcmlaq_f32): New.
25624 (vcmlaq_f64): New.
25625 (vcmla_lane_f32): New.
25626 (vcmla_laneq_f32): New.
25627 (vcmlaq_lane_f32): New.
25628 (vcmlaq_laneq_f32): New.
25629 (vcmla_rot90_f32): New.
25630 (vcmlaq_rot90_f32): New.
25631 (vcmlaq_rot90_f64): New.
25632 (vcmla_rot90_lane_f32): New.
25633 (vcmla_rot90_laneq_f32): New.
25634 (vcmlaq_rot90_lane_f32): New.
25635 (vcmlaq_rot90_laneq_f32): New.
25636 (vcmla_rot180_f32): New.
25637 (vcmlaq_rot180_f32): New.
25638 (vcmlaq_rot180_f64): New.
25639 (vcmla_rot180_lane_f32): New.
25640 (vcmla_rot180_laneq_f32): New.
25641 (vcmlaq_rot180_lane_f32): New.
25642 (vcmlaq_rot180_laneq_f32): New.
25643 (vcmla_rot270_f32): New.
25644 (vcmlaq_rot270_f32): New.
25645 (vcmlaq_rot270_f64): New.
25646 (vcmla_rot270_lane_f32): New.
25647 (vcmla_rot270_laneq_f32): New.
25648 (vcmlaq_rot270_lane_f32): New.
25649 (vcmlaq_rot270_laneq_f32): New.
25650 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25651 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25652 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25653 (FCADD, FCMLA): New.
25654 (rot): New.
25655 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25656
25657 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25658
25659 PR other/16615
25660
25661 * config/pa/pa.c: Change "can not" to "cannot".
25662 * gimple-ssa-evrp-analyze.c: Likewise.
25663 * ipa-icf.c: Likewise.
25664 * ipa-polymorphic-call.c: Likewise.
25665 * ipa-pure-const.c: Likewise.
25666 * lra-constraints.c: Likewise.
25667 * lra-remat.c: Likewise.
25668 * reload1.c: Likewise.
25669 * reorg.c: Likewise.
25670 * tree-ssa-uninit.c: Likewise.
25671
25672 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25673
25674 PR other/16615
25675
25676 * Makefile.in: Mechanically replace "can not" with "cannot".
25677 * alias.c: Likewise.
25678 * builtins.c: Likewise.
25679 * calls.c: Likewise.
25680 * cgraph.c: Likewise.
25681 * cgraph.h: Likewise.
25682 * cgraphclones.c: Likewise.
25683 * cgraphunit.c: Likewise.
25684 * combine-stack-adj.c: Likewise.
25685 * combine.c: Likewise.
25686 * common/config/i386/i386-common.c: Likewise.
25687 * config/aarch64/aarch64.c: Likewise.
25688 * config/alpha/sync.md: Likewise.
25689 * config/arc/arc.c: Likewise.
25690 * config/arc/predicates.md: Likewise.
25691 * config/arm/arm-c.c: Likewise.
25692 * config/arm/arm.c: Likewise.
25693 * config/arm/arm.h: Likewise.
25694 * config/arm/arm.md: Likewise.
25695 * config/arm/cortex-r4f.md: Likewise.
25696 * config/csky/csky.c: Likewise.
25697 * config/csky/csky.h: Likewise.
25698 * config/darwin-f.c: Likewise.
25699 * config/epiphany/epiphany.md: Likewise.
25700 * config/i386/i386.c: Likewise.
25701 * config/i386/sol2.h: Likewise.
25702 * config/m68k/m68k.c: Likewise.
25703 * config/mcore/mcore.h: Likewise.
25704 * config/microblaze/microblaze.md: Likewise.
25705 * config/mips/20kc.md: Likewise.
25706 * config/mips/sb1.md: Likewise.
25707 * config/nds32/nds32.c: Likewise.
25708 * config/nds32/predicates.md: Likewise.
25709 * config/pa/pa.c: Likewise.
25710 * config/rs6000/e300c2c3.md: Likewise.
25711 * config/rs6000/rs6000.c: Likewise.
25712 * config/s390/s390.h: Likewise.
25713 * config/sh/sh.c: Likewise.
25714 * config/sh/sh.md: Likewise.
25715 * config/spu/vmx2spu.h: Likewise.
25716 * cprop.c: Likewise.
25717 * dbxout.c: Likewise.
25718 * df-scan.c: Likewise.
25719 * doc/cfg.texi: Likewise.
25720 * doc/extend.texi: Likewise.
25721 * doc/fragments.texi: Likewise.
25722 * doc/gty.texi: Likewise.
25723 * doc/invoke.texi: Likewise.
25724 * doc/lto.texi: Likewise.
25725 * doc/md.texi: Likewise.
25726 * doc/objc.texi: Likewise.
25727 * doc/rtl.texi: Likewise.
25728 * doc/tm.texi: Likewise.
25729 * dse.c: Likewise.
25730 * emit-rtl.c: Likewise.
25731 * emit-rtl.h: Likewise.
25732 * except.c: Likewise.
25733 * expmed.c: Likewise.
25734 * expr.c: Likewise.
25735 * fold-const.c: Likewise.
25736 * genautomata.c: Likewise.
25737 * gimple-fold.c: Likewise.
25738 * hard-reg-set.h: Likewise.
25739 * ifcvt.c: Likewise.
25740 * ipa-comdats.c: Likewise.
25741 * ipa-cp.c: Likewise.
25742 * ipa-devirt.c: Likewise.
25743 * ipa-fnsummary.c: Likewise.
25744 * ipa-icf.c: Likewise.
25745 * ipa-inline-transform.c: Likewise.
25746 * ipa-inline.c: Likewise.
25747 * ipa-polymorphic-call.c: Likewise.
25748 * ipa-profile.c: Likewise.
25749 * ipa-prop.c: Likewise.
25750 * ipa-pure-const.c: Likewise.
25751 * ipa-reference.c: Likewise.
25752 * ipa-split.c: Likewise.
25753 * ipa-visibility.c: Likewise.
25754 * ipa.c: Likewise.
25755 * ira-build.c: Likewise.
25756 * ira-color.c: Likewise.
25757 * ira-conflicts.c: Likewise.
25758 * ira-costs.c: Likewise.
25759 * ira-int.h: Likewise.
25760 * ira-lives.c: Likewise.
25761 * ira.c: Likewise.
25762 * ira.h: Likewise.
25763 * loop-invariant.c: Likewise.
25764 * loop-unroll.c: Likewise.
25765 * lower-subreg.c: Likewise.
25766 * lra-assigns.c: Likewise.
25767 * lra-constraints.c: Likewise.
25768 * lra-eliminations.c: Likewise.
25769 * lra-lives.c: Likewise.
25770 * lra-remat.c: Likewise.
25771 * lra-spills.c: Likewise.
25772 * lra.c: Likewise.
25773 * lto-cgraph.c: Likewise.
25774 * lto-streamer-out.c: Likewise.
25775 * postreload-gcse.c: Likewise.
25776 * predict.c: Likewise.
25777 * profile-count.h: Likewise.
25778 * profile.c: Likewise.
25779 * recog.c: Likewise.
25780 * ree.c: Likewise.
25781 * reload.c: Likewise.
25782 * reload1.c: Likewise.
25783 * reorg.c: Likewise.
25784 * resource.c: Likewise.
25785 * rtl.def: Likewise.
25786 * rtl.h: Likewise.
25787 * rtlanal.c: Likewise.
25788 * sched-deps.c: Likewise.
25789 * sched-ebb.c: Likewise.
25790 * sched-rgn.c: Likewise.
25791 * sel-sched-ir.c: Likewise.
25792 * sel-sched.c: Likewise.
25793 * shrink-wrap.c: Likewise.
25794 * simplify-rtx.c: Likewise.
25795 * symtab.c: Likewise.
25796 * target.def: Likewise.
25797 * toplev.c: Likewise.
25798 * tree-call-cdce.c: Likewise.
25799 * tree-cfg.c: Likewise.
25800 * tree-complex.c: Likewise.
25801 * tree-core.h: Likewise.
25802 * tree-eh.c: Likewise.
25803 * tree-inline.c: Likewise.
25804 * tree-loop-distribution.c: Likewise.
25805 * tree-nrv.c: Likewise.
25806 * tree-profile.c: Likewise.
25807 * tree-sra.c: Likewise.
25808 * tree-ssa-alias.c: Likewise.
25809 * tree-ssa-dce.c: Likewise.
25810 * tree-ssa-dom.c: Likewise.
25811 * tree-ssa-forwprop.c: Likewise.
25812 * tree-ssa-loop-im.c: Likewise.
25813 * tree-ssa-loop-ivcanon.c: Likewise.
25814 * tree-ssa-loop-ivopts.c: Likewise.
25815 * tree-ssa-loop-niter.c: Likewise.
25816 * tree-ssa-phionlycprop.c: Likewise.
25817 * tree-ssa-phiopt.c: Likewise.
25818 * tree-ssa-propagate.c: Likewise.
25819 * tree-ssa-threadedge.c: Likewise.
25820 * tree-ssa-threadupdate.c: Likewise.
25821 * tree-ssa-uninit.c: Likewise.
25822 * tree-ssanames.c: Likewise.
25823 * tree-streamer-out.c: Likewise.
25824 * tree.c: Likewise.
25825 * tree.h: Likewise.
25826 * vr-values.c: Likewise.
25827
25828 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25829
25830 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25831 (ix86_split_xorsign): Ditto.
25832 * config/i386/i386.c (ix86_expand_xorsign): New function.
25833 (ix86_split_xorsign): Ditto.
25834 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25835 (xorsign<mode>3): New expander.
25836 (xorsign<mode>3_1): New insn_and_split pattern.
25837 * config/i386/sse.md (xorsign<mode>3): New expander.
25838
25839 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25840
25841 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25842 (*tablejump_sp64): Likewise.
25843 (*tablejump<P:mode>): ...this.
25844 (*call_address_sp32): Merge into...
25845 (*call_address_sp64): Likewise.
25846 (*call_address<P:mode>): ...this.
25847 (*call_symbolic_sp32): Merge into...
25848 (*call_symbolic_sp64): Likewise.
25849 (*call_symbolic<P:mode>): ...this.
25850 (call_value): Remove constraint and add predicate.
25851 (*call_value_address_sp32): Merge into...
25852 (*call_value_address_sp64): Likewise.
25853 (*call_value_address<P:mode>): ...this.
25854 (*call_value_symbolic_sp32): Merge into...
25855 (*call_value_symbolic_sp64): Likewise.
25856 (*call_value_symbolic<P:mode>): ...this.
25857 (*sibcall_symbolic_sp32): Merge into...
25858 (*sibcall_symbolic_sp64): Likewise.
25859 (*sibcall_symbolic<P:mode>): ...this.
25860 (sibcall_value): Remove constraint and add predicate.
25861 (*sibcall_value_symbolic_sp32): Merge into...
25862 (*sibcall_value_symbolic_sp64): Likewise.
25863 (*sibcall_value_symbolic<P:mode>): ...this.
25864 (window_save): Minor tweak.
25865 (*branch_sp32): Merge into...
25866 (*branch_sp64): Likewise.
25867 (*branch<P:mode>): ...this.
25868
25869 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25870 James Clarke <jrtc27@jrtc27.com>
25871
25872 PR target/84010
25873 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25874 consistently in TLS address generation and adjust code to the renaming
25875 of patterns. Mark calls to __tls_get_addr as const.
25876 * config/sparc/sparc.md (tgd_hi22): Turn into...
25877 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25878 (tgd_lo10): Turn into...
25879 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25880 (tgd_add32): Merge into...
25881 (tgd_add64): Likewise.
25882 (tgd_add<P:mode>): ...this and use Pmode throughout.
25883 (tldm_hi22): Turn into...
25884 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25885 (tldm_lo10): Turn into...
25886 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25887 (tldm_add32): Merge into...
25888 (tldm_add64): Likewise.
25889 (tldm_add<P:mode>): ...this and use Pmode throughout.
25890 (tldm_call32): Merge into...
25891 (tldm_call64): Likewise.
25892 (tldm_call<P:mode>): ...this and use Pmode throughout.
25893 (tldo_hix22): Turn into...
25894 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25895 (tldo_lox10): Turn into...
25896 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25897 (tldo_add32): Merge into...
25898 (tldo_add64): Likewise.
25899 (tldo_add<P:mode>): ...this and use Pmode throughout.
25900 (tie_hi22): Turn into...
25901 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25902 (tie_lo10): Turn into...
25903 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25904 (tie_ld64): Use DImode throughout.
25905 (tie_add32): Merge into...
25906 (tie_add64): Likewise.
25907 (tie_add<P:mode>): ...this and use Pmode throughout.
25908 (tle_hix22_sp32): Merge into...
25909 (tle_hix22_sp64): Likewise.
25910 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25911 (tle_lox22_sp32): Merge into...
25912 (tle_lox22_sp64): Likewise.
25913 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25914 (*tldo_ldub_sp32): Merge into...
25915 (*tldo_ldub_sp64): Likewise.
25916 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25917 (*tldo_ldub1_sp32): Merge into...
25918 (*tldo_ldub1_sp64): Likewise.
25919 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25920 (*tldo_ldub2_sp32): Merge into...
25921 (*tldo_ldub2_sp64): Likewise.
25922 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25923 (*tldo_ldsb1_sp32): Merge into...
25924 (*tldo_ldsb1_sp64): Likewise.
25925 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25926 (*tldo_ldsb2_sp32): Merge into...
25927 (*tldo_ldsb2_sp64): Likewise.
25928 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25929 (*tldo_ldub3_sp64): Use DImode throughout.
25930 (*tldo_ldsb3_sp64): Likewise.
25931 (*tldo_lduh_sp32): Merge into...
25932 (*tldo_lduh_sp64): Likewise.
25933 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25934 (*tldo_lduh1_sp32): Merge into...
25935 (*tldo_lduh1_sp64): Likewise.
25936 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25937 (*tldo_ldsh1_sp32): Merge into...
25938 (*tldo_ldsh1_sp64): Likewise.
25939 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25940 (*tldo_lduh2_sp64): Use DImode throughout.
25941 (*tldo_ldsh2_sp64): Likewise.
25942 (*tldo_lduw_sp32): Merge into...
25943 (*tldo_lduw_sp64): Likewise.
25944 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25945 (*tldo_lduw1_sp64): Use DImode throughout.
25946 (*tldo_ldsw1_sp64): Likewise.
25947 (*tldo_ldx_sp64): Likewise.
25948 (*tldo_stb_sp32): Merge into...
25949 (*tldo_stb_sp64): Likewise.
25950 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25951 (*tldo_sth_sp32): Merge into...
25952 (*tldo_sth_sp64): Likewise.
25953 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25954 (*tldo_stw_sp32): Merge into...
25955 (*tldo_stw_sp64): Likewise.
25956 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25957 (*tldo_stx_sp64): Use DImode throughout.
25958
25959 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25960
25961 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25962 check configure option to set BTI and Return Address Signing.
25963 * configure.ac: Add --enable-standard-branch-protection and
25964 --disable-standard-branch-protection.
25965 * configure: Regenerated.
25966 * doc/install.texi: Document the same.
25967
25968 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25969 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25970
25971 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
25972 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
25973 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
25974 if bti is enabled.
25975 * config/aarch64/aarch64-bti-insert.c: New file.
25976 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
25977 pass.
25978 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
25979 new bti pass.
25980 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
25981 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
25982 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
25983 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
25984
25985 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25986
25987 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
25988 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
25989 Disable bti for -mbranch-protection=none.
25990 (aarch64_handle_standard_branch_protection): Enable bti for
25991 -mbranch-protection=standard.
25992 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
25993 -mbranch-protection.
25994 (aarch64_bti_enabled): Check if bti is enabled.
25995 * config/aarch64/aarch64.opt: Declare target variable.
25996 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
25997
25998 2018-01-09 Sudakshina Das <sudi.das@arm.com>
25999
26000 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26001 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26002 (aarch64_expand_epilogue): Likewise.
26003 (aarch64_output_mi_thunk): Likewise.
26004 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26005 TAILCALL_ADDR_REGS to x16 and x17.
26006 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26007
26008 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26009
26010 * config/aarch64/aarch64-option-extensions.def: Define
26011 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26012 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26013 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26014 (AARCH64_FL_PREDRES): New.
26015 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26016 AARCH64_FL_PREDRES by default.
26017 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26018
26019 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26020
26021 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26022 ARMv8.5-A.
26023 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26024 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26025 * doc/invoke.texi: Document ARMv8.5-A.
26026
26027 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26028
26029 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26030 (xorsign<mode>3): Likewise.
26031
26032 2019-01-09 Jelinek <jakub@redhat.com>
26033
26034 PR middle-end/88758
26035 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26036 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26037
26038 PR rtl-optimization/88331
26039 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26040 not currently_expanding_to_rtl.
26041
26042 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26043
26044 * doc/invoke.texi (-Os): Remove trailing spaces.
26045 (-finline-functions): Remove reference to -O2.
26046
26047 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26048
26049 PR rtl-optimization/79593
26050 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26051
26052 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26053 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26054
26055 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26056
26057 PR bootstrap/88721
26058 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26059 to -1 on entry.
26060
26061 PR debug/88723
26062 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26063 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26064
26065 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26066
26067 PR target/88717
26068 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26069 ix86_avx_u128_mode_entry.
26070
26071 2019-01-08 Martin Liska <mliska@suse.cz>
26072
26073 PR tree-optimization/88753
26074 * tree-switch-conversion.c (switch_conversion::build_one_array):
26075 Come up with local variable constructor. Convert first to
26076 type of constructor values.
26077
26078 2019-01-08 Richard Biener <rguenther@suse.de>
26079
26080 PR tree-optimization/86554
26081 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26082 rpo_avail): Move earlier.
26083 (visit_nary_op): When value-numbering to expressions
26084 with different overflow behavior make sure there's an
26085 available expression on the path.
26086
26087 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26088
26089 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26090 aarch64_parse_branch_protection,
26091 struct aarch64_branch_protect_type,
26092 aarch64_handle_no_branch_protection,
26093 aarch64_handle_standard_branch_protection,
26094 aarch64_validate_mbranch_protection,
26095 aarch64_handle_pac_ret_protection,
26096 aarch64_handle_attr_branch_protection,
26097 accepted_branch_protection_string,
26098 aarch64_pac_ret_subtypes,
26099 aarch64_branch_protect_types,
26100 aarch64_handle_pac_ret_leaf): Define.
26101 (aarch64_override_options_after_change_1, aarch64_override_options):
26102 Add check for accepted_branch_protection_string.
26103 (aarch64_option_save): Save accepted_branch_protection_string.
26104 (aarch64_option_restore): Save accepted_branch_protection_string.
26105 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26106 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26107 msign-return-address.
26108 * doc/invoke.texi: Add mbranch-protection.
26109
26110 2019-01-08 Alan Modra <amodra@gmail.com>
26111
26112 PR target/88614
26113 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26114 Delete "unknownp" parameter. Adjust callers. Handle
26115 CONST_INT, PLUS, MINUS, and MULT.
26116 (attr_value_aligned): Renamed from or_attr_value.
26117 (min_attr_value): Return INT_MIN for unhandled rtl case..
26118 (min_fn): ..and translate to INT_MAX here.
26119 (write_length_unit_log): Modify to cope without "unknown".
26120 (write_attr_value): Handle IF_THEN_ELSE.
26121
26122 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26123
26124 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26125 optimization for masked stores.
26126
26127 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26128
26129 PR middle-end/88567
26130 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26131 output vector directly to duplicate_and_interleave instead of
26132 going through a temporary. Postpone insertion of ctor_seq to
26133 the end of the loop.
26134
26135 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26136
26137 PR target/86891
26138 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26139 unsigned_p. Handle signed and unsigned overflow correction as
26140 required.
26141 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26142 prototype.
26143 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26144 for operand 2.
26145 (add<mode>3_compareV_imm): Make this callable for expanding.
26146 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26147 aarch64_plus_operand for operand 2.
26148 (subv<GPI:mode>_insn): New insn pattern.
26149 (subv<GPI:mode>_imm): Likewise.
26150 (negv<GPI:mode>3): New expand pattern.
26151 (negv<GPI:mode>_insn): New insn pattern.
26152 (negv<GPI:mode>_cmp_only): Likewise.
26153 (cmpv<GPI:mode>_insn): Likewise.
26154 (subvti4): Use register_operand for operand 1. Update call to
26155 aarch64_expand_subvti.
26156 (usubvti4): Likewise.
26157 (negvti3): New expand pattern.
26158 (negdi_carryout): New insn pattern.
26159 (negvdi_carryinV): New insn pattern.
26160 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26161 version the named version.
26162 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26163 operands.
26164 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26165 patterns.
26166 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26167 patterns.
26168 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26169 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26170 (sub<mode>3_carryinCV): Delete.
26171 (sub<GPI:mode>3_carryinV): New expand pattern.
26172 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26173
26174 2019-01-07 Richard Biener <rguenther@suse.de>
26175
26176 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26177 of tree_operand_hash.
26178
26179 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26180
26181 PR tree-optimization/88598
26182 * tree.h (single_nonzero_element): Declare.
26183 * tree.c (single_nonzero_element): New function.
26184 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26185 if I is the only nonzero element of CST.
26186
26187 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26188
26189 PR tree-optimization/88598
26190 * tree.h (initializer_each_zero_or_onep): Declare.
26191 * tree.c (initializer_each_zero_or_onep): New function.
26192 (signed_or_unsigned_type_for): Handle float types too.
26193 (unsigned_type_for, signed_type_for): Update comments accordingly.
26194 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26195 x & { 0 or -1, 0 or -1, ... }.
26196
26197 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26198
26199 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26200 with x86_64-pc-linux-gnu.
26201
26202 2019-01-07 Tom de Vries <tdevries@suse.de>
26203
26204 PR target/85486
26205 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26206 function.
26207 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26208 routines.
26209
26210 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26211
26212 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26213 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26214 TARGET_AVX512F as condition.
26215
26216 PR debug/88723
26217 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26218 const_not_ok_for_debug_p target hook.
26219 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26220 on UNSPEC and subexpressions thereof if all subexpressions of the
26221 UNSPEC are CONSTANT_P.
26222
26223 PR tree-optimization/88676
26224 * tree-ssa-phiopt.c (two_value_replacement): New function.
26225 (tree_ssa_phiopt_worker): Call it.
26226
26227 PR sanitizer/88619
26228 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26229 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26230
26231 PR c++/85052
26232 * tree-vect-generic.c: Include insn-config.h and recog.h.
26233 (expand_vector_piecewise): Add defaulted ret_type argument,
26234 if non-NULL, use that in preference to type for the result type.
26235 (expand_vector_parallel): Formatting fix.
26236 (do_vec_conversion, do_vec_narrowing_conversion,
26237 expand_vector_conversion): New functions.
26238 (expand_vector_operations_1): Call expand_vector_conversion
26239 for VEC_CONVERT ifn calls.
26240 * internal-fn.def (VEC_CONVERT): New internal function.
26241 * internal-fn.c (expand_VEC_CONVERT): New function.
26242 * fold-const-call.c (fold_const_vec_convert): New function.
26243 (fold_const_call): Use it for CFN_VEC_CONVERT.
26244 * doc/extend.texi (__builtin_convertvector): Document.
26245
26246 2019-01-07 Tom de Vries <tdevries@suse.de>
26247
26248 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26249 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26250 vector_red_partition, vector_red_sym): New global variables.
26251 (nvptx_option_override): Initialize vector_red_sym.
26252 (nvptx_declare_function_name): Restore red_partition register.
26253 (nvptx_file_end): Emit code to declare the vector reduction variables.
26254 (nvptx_output_red_partition): New function.
26255 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26256 large vector reductions.
26257 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26258 (nvptx_init_builtins): Add VECTOR_ADDR.
26259 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26260 Handle nvptx_expand_shared_addr.
26261 (nvptx_get_shared_red_addr): Add vector argument and handle large
26262 vectors.
26263 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26264 large vectors.
26265 (nvptx_goacc_reduction_init): Likewise.
26266 (nvptx_goacc_reduction_fini): Likewise.
26267 (nvptx_goacc_reduction_teardown): Likewise.
26268 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26269 init,fini,teardown}.
26270 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26271 (nvptx_set_current_function): Init vector_red_partition.
26272 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26273 (nvptx_red_partition): New insn.
26274 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26275
26276 2019-01-07 Tom de Vries <tdevries@suse.de>
26277
26278 PR target/85381
26279 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26280 empty loops.
26281
26282 2019-01-07 Tom de Vries <tdevries@suse.de>
26283
26284 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26285 (nvptx_option_override): Init oacc_bcast_partition.
26286 (nvptx_init_oacc_workers): New function.
26287 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26288 (nvptx_needs_shared_bcast): New function.
26289 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26290 to propagate state.
26291 (nvptx_shared_propagate): Initialize vector bcast partition and
26292 synchronization state.
26293 (nvptx_single): Generalize to enable vectors to use shared-memory
26294 to propagate state.
26295 (nvptx_process_pars): Likewise.
26296 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26297 * config/nvptx/nvptx.h (struct machine_function): Add
26298 bcast_partition and sync_bar members.
26299
26300 2019-01-07 Tom de Vries <tdevries@suse.de>
26301
26302 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26303 (nvptx_apply_dim_limits): New function.
26304 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26305 PTX_WARP_SIZE.
26306
26307 2019-01-07 Tom de Vries <tdevries@suse.de>
26308
26309 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26310 as late as possible.
26311
26312 2019-01-07 Tom de Vries <tdevries@suse.de>
26313
26314 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26315 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26316 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26317 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26318 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26319
26320 2019-01-07 Tom de Vries <tdevries@suse.de>
26321
26322 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26323
26324 2019-01-07 Tom de Vries <tdevries@suse.de>
26325
26326 * omp-offload.c (oacc_get_min_dim): New function.
26327 * omp-offload.h (oacc_get_min_dim): Declare.
26328
26329 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26330
26331 PR target/88521
26332 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26333 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26334
26335 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26336
26337 PR tree-opt/86020
26338 Revert:
26339 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26340
26341 * ipa-inline.c (edge_badness): Use inlined_time instead of
26342 inline_summaries->get.
26343
26344 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26345
26346 * opts.c (enable_fdo_optimizations): Enable
26347 version-loops-for-strides, loop-interchange, unrol-and-jam
26348 and tree-loop-distribution.
26349 * invoke.texi: Document newly enabled options.
26350
26351 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26352
26353 * doc/invoke.texi (max-inline-insns-small): New parameters.
26354 * ipa-inline.c (want_early_inline_function_p): simplify.
26355 (want_inline_small_function_p): Fix pasto from previous patch;
26356 use max-inline-insns-small bound.
26357 * params.def (max-inline-insns-small): New param.
26358 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26359 variables correctly.
26360
26361 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26362
26363 * doc/invoke.texi: Document max-inline-insns-size,
26364 uninlined-function-insns, uninlined-function-time,
26365 uninlined-thunk-insns and uninlined-thunk-time.
26366 * params.def: Add max-inline-insns-size,
26367 uninlined-function-insns, uninlined-function-time,
26368 uninlined-thunk-insns and uninlined-thunk-time.
26369 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26370 new parameters.
26371 * ipa-inline.c (can_inline_edge_by_limits_p,
26372 want_inline_small_function_p): Use new parameters.
26373
26374 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26375
26376 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26377
26378 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26379
26380 PR middle-end/82564
26381 PR target/88620
26382 * expr.c (expand_assignment): For calls returning VLA structures
26383 if to_rtx is not a MEM, force it into a stack temporary.
26384
26385 PR debug/88635
26386 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26387 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26388 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26389 subexpressions of both operands.
26390 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26391 subrtxes are CONSTANT_P.
26392 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26393 2018-11-09 changes.
26394
26395 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26396
26397 * params.def (hot-bb-count-ws-permille): Set to 990.
26398
26399 2019-01-04 Martin Sebor <msebor@redhat.com>
26400
26401 PR c/88546
26402 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26403 leaf.
26404
26405 2019-01-04 Martin Sebor <msebor@redhat.com>
26406
26407 PR c/88363
26408 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26409
26410 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26411
26412 * gdbinit.in: Turn off pagination for the skip commands, restore
26413 it to previous state afterwards.
26414
26415 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26416
26417 PR target/88594
26418 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26419 of GET_MODE (opN) as modes of the libcall arguments.
26420
26421 2019-01-04 Jan Beulich <jbeulich@suse.com>
26422
26423 * config/i386/sse.md
26424 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26425 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26426 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26427 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26428 avx512f_vmcmp<mode>3<round_saeonly_name>,
26429 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26430 avx512f_maskcmp<mode>3,
26431 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26432 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26433 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26434 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26435 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26436 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26437 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26438 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26439 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26440 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26441 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26442 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26443 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26444 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26445 avx512cd_maskb_vec_dup<mode>,
26446 avx512cd_maskw_vec_dup<mode>,
26447 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26448 avx512dq_vmfpclass<mode>,
26449 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26450 instead of =Yk.
26451
26452 2019-01-03 Martin Sebor <msebor@redhat.com>
26453
26454 PR tree-optimization/88659
26455 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26456
26457 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26458
26459 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26460 unaligned vsx and avoid lxvd2x/stxvd2x.
26461 (gen_lvx_v4si_move): New function.
26462
26463 2019-01-03 Tom de Vries <tdevries@suse.de>
26464
26465 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26466 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26467 function.
26468 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26469
26470 2019-01-03 Tom de Vries <tdevries@suse.de>
26471
26472 * config/nvptx/nvptx.c (struct offload_attrs): New.
26473 (populate_offload_attrs): New function. Factor mask extraction out of
26474 nvptx_reorg. Add extraction of dimensions.
26475 (nvptx_reorg): Use populate_offload_attrs.
26476
26477 2019-01-03 Tom de Vries <tdevries@suse.de>
26478
26479 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26480 cases for oacc_min_dims_p and routine_p. Add asserts for
26481 oacc_default_dims_p and offload_region_p.
26482
26483 2019-01-03 Tom de Vries <tdevries@suse.de>
26484
26485 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26486 factored out of ...
26487 (nvptx_goacc_validate_dims): ... here.
26488
26489 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26490
26491 PR tree-optimization/85574
26492 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26493 structure.
26494 (struct ssa_equip_hash_traits): Declare.
26495 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26496
26497 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26498
26499 PR debug/88644
26500 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26501 change it to qualified_type.
26502
26503 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26504
26505 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26506 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26507
26508 2019-01-02 Martin Sebor <msebor@redhat.com>
26509 Jeff Law <law@redhat.com>
26510
26511 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26512 (get_range_strlen_tree): Update appropriately.
26513 (get_range_strlen)
26514 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26515
26516 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26517 rather than set_range_info.
26518 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26519 maybe_set_strlen_range. Handle potentially boundary crossing
26520 cases more conservatively.
26521 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26522 Call set_strlen_range.
26523 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26524
26525 PR middle-end/88663
26526 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26527 need the flexp argument.
26528 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26529 from calls to get_range_strlen. Update comments. Just update
26530 VAL for an unterminated const char array and let the reset of the
26531 code handle it normally. No longer try to set *flexp. Adjust
26532 return value.
26533 (get_range_strlen): Update for the new get_range_strlen API.
26534 (get_maxval_strlen): Similarly.
26535 (gimple_fold_builtin_strlen): Handle update meaning of return value
26536 from get_range_strlen.
26537 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26538 get_range_strlen API.
26539
26540 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26541
26542 PR lto/88130
26543 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26544 false at WPA time when body was removed.
26545
26546 2019-01-02 Martin Liska <mliska@suse.cz>
26547
26548 PR tree-optimization/88650
26549 * predict.c (set_even_probabilities): Calculate probability
26550 remainer only when really used.
26551
26552 2019-01-02 Richard Biener <rguenther@suse.de>
26553
26554 PR middle-end/88651
26555 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26556 widest_ints when mangling max_stmt_execution results.
26557
26558 2019-01-02 Richard Biener <rguenther@suse.de>
26559
26560 PR tree-optimization/88621
26561 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26562 bitfields when canoncalizing.
26563
26564 2019-01-02 Richard Biener <rguenther@suse.de>
26565
26566 PR target/87545
26567 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26568 cost of cheap SSE instruction.
26569
26570 2019-01-02 Richard Biener <rguenther@suse.de>
26571
26572 PR ipa/85574
26573 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26574 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26575 function.
26576 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26577 set after UIDs before splitting them.
26578
26579 2019-01-01 Martin Sebor <msebor@redhat.com>
26580 Jeff Law <law@redhat.com>
26581
26582 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26583 length is optimistic. If it is, then arrange to compute the
26584 conservative length as well.
26585
26586 * gimple-fold.h (get_range_strlen): Update prototype.
26587 * builtins.c (check_access): Update call to get_range_strlen to use
26588 c_strlen_data pointer. Change various variable accesses to instead
26589 pull data from the c_strlen_data structure.
26590 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26591 * calls.c (maybe_warn_nonstring_arg): Likewise.
26592 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26593 minimum length if maximum lengh is unknown.
26594 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26595 that used c_strlen, it's no longer needed. Restructure slightly.
26596 (format_string): Set unlikely range appropriately.
26597 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26598 formatting issues.
26599 (get_range_strlen): Accept c_strlen_data pointer for external
26600 call sites as well. Pass through to call to internal get_range_strlen.
26601 Adjust minlen, maxlen and maxbound as needed.
26602 (get_maxval_strlen): Update comments.
26603 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26604 to use c_strlen_data pointer. Change variable accesses to instead
26605 use c_strlen_data data members.
26606
26607 * gimple-fold.c (get_range_strlen): Update prototype.
26608 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26609 local variables. Use pdata to return information to caller.
26610 Update calls to get_range_strlen. Update pdata->maxbound.
26611 (get_range_strlen -- static version): Similarly.
26612 (get_range_strlen -- extern version): Update for internal
26613 get_range_strlen API change. Convert to external data format.
26614 (get_maxval_strlen): Similarly.
26615
26616 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26617
26618 * coverage.c (get_coverage_counts): Use current_function_decl.
26619 * profile.c (read_thunk_profile): New function.
26620 (branch_prob): Add THUNK parameter.
26621 * tree-profile.c (tree_profiling): Handle thunks.
26622 * value-prof.c (init_node_map): Handle thunks.
26623 * value-prof.h (branch_prob): Upate prototype.
26624 (read_thunk_profile): Declare.
26625
26626 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26627
26628 Update copyright years.
26629
26630 * gcc.c (process_command): Update copyright notice dates.
26631 * gcov-dump.c (print_version): Ditto.
26632 * gcov.c (print_version): Ditto.
26633 * gcov-tool.c (print_version): Ditto.
26634 * gengtype.c (create_file): Ditto.
26635 * doc/cpp.texi: Bump @copying's copyright year.
26636 * doc/cppinternals.texi: Ditto.
26637 * doc/gcc.texi: Ditto.
26638 * doc/gccint.texi: Ditto.
26639 * doc/gcov.texi: Ditto.
26640 * doc/install.texi: Ditto.
26641 * doc/invoke.texi: Ditto.
26642 \f
26643 Copyright (C) 2019 Free Software Foundation, Inc.
26644
26645 Copying and distribution of this file, with or without modification,
26646 are permitted in any medium without royalty provided the copyright
26647 notice and this notice are preserved.