]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Add missing mask[z]_roundscale_[round]_s[d,s] intrinsics
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
2
3 PR target/92035
4 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
5 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
6 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
7 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8 _mm_maskz_roundscale_round_sd): New intrinsics.
9 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
10 __builtin_ia32_rndscales?_mask_round builtins instead of
11 __builtin_ia32_rndscales?_round.
12 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
13 __builtin_ia32_rndscalesd_round): Remove.
14 (__builtin_ia32_rndscaless_mask_round,
15 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
16 * config/i386/sse.md
17 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
18 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
19 ... this, adjust and add subst atrributes to make it maskable.
20
21 2019-10-15 Richard Biener <rguenther@suse.de>
22
23 PR middle-end/92046
24 * common.opt (fallow-store-data-races): New.
25 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
26 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
27 * doc/invoke.texi (fallow-store-data-races): Document.
28 (--param allow-store-data-races): Remove docs.
29 * opts.c (default_options_table): Enable -fallow-store-data-races
30 at -Ofast.
31 (default_options_optimization): Do not enable --param
32 allow-store-data-races at -Ofast.
33 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
34 instead of PARAM_ALLOW_STORE_DATA_RACES.
35 * tree-ssa-loop-im.c (execute_sm): Likewise.
36
37 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38
39 PR tree-optimization/92085
40 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
41 instead of calling it unconditionally after
42 delete_dead_or_redundant_assignment and fix indentation.
43
44 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
45
46 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
47 TARGET_VFP_DOUBLE.
48 (*fmsub<SDF:mode>4): Likewise.
49 *fnmsub<SDF:mode>4): Likewise.
50 (*fnmadd<SDF:mode>4): Likewise.
51
52 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
53
54 * doc/tree-ssa.texi: Update renamed macro name.
55
56 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
57
58 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
59 vector constants.
60
61 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
62
63 * config/darwin.c: Use unsigned ints for the picbase label
64 counters, initialise the vars explicitly.
65 (update_pic_label_number_if_needed): Move a variable declaration
66 to where it's needed.
67 (machopic_output_function_base_name): Use a more strict checking
68 assert, and and unsigned int for the picbase label counter.
69 (machopic_get_function_picbase): Likewise.
70
71 2019-10-14 Richard Biener <rguenther@suse.de>
72
73 PR middle-end/92046
74 * dse.c (scan_insn): Use param max_active_local_stores.
75 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
76 based on optimization level.
77 * loop-invariant.c (move_loop_invariants): Adjust
78 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
79 * opts.c (default_options_optimization): Do not adjust
80 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
81 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
82
83 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
84
85 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
86
87 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
88
89 * config/arm/arm.c (arm_option_override): Don't override sched
90 pressure algorithm.
91
92 2019-10-14 Richard Biener <rguenther@suse.de>
93
94 PR tree-optimization/92069
95 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
96 cycles do not set vect_nested_cycle on the latch definition.
97
98 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
99
100 * function-abi.h (expr_callee_abi): Declare.
101 * function-abi.cc (expr_callee_abi): New function.
102
103 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
104
105 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
106 into [1,MAX].
107 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
108 non-zero being represented as [1,MAX].
109
110 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
111
112 * tree-sra.c (dump_access): Add missing braces.
113
114 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
115
116 * config/darwin.c (machopic_indirection_name): Rework the
117 function to emit linker-visible symbols only for indirections
118 in the data section. Clean up the code and update comments.
119
120 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
121
122 * config/darwin.c (machopic_indirect_data_reference): Remove
123 redundant code.
124
125 2019-10-13 Nathan Sidwell <nathan@acm.org>
126
127 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
128
129 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
130
131 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
132 c99_runtime.
133
134 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
135
136 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
137 so non-virutal are before virutals.
138 (output_function): Avoid body modifications.
139
140 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
141
142 * config/pa/pa.c (pa_output_call): Load descriptor address to register
143 %r22. Load function address before global pointer.
144 (pa_attr_length_indirect_call): Adjust length of inline versions of
145 $$dyncall.
146 (pa_output_indirect_call): Remove fast inline version of $$dyncall
147 before normal cases. Update inline $$dyncall sequences to preserve
148 function descriptor address in register %r22.
149 (TRAMPOLINE_CODE_SIZE): Adjust.
150 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
151 register %r22 contains trampoline address.
152 (pa_trampoline_init): Adjust offsets.
153 (pa_trampoline_adjust_address): Likewise.
154 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
155
156 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
157
158 PR target/67183
159 * config/darwin.c (machopic_indirection): New field to flag
160 non-lazy-symbol-pointers in the data section.
161 (machopic_indirection_name): Compute if an indirection should
162 appear in the data section.
163 (machopic_output_data_section_indirection): New callback split
164 from machopic_output_indirection.
165 (machopic_output_stub_indirection): Likewise.
166 (machopic_output_indirection): Retain the code for non-lazy
167 symbol pointers in their regular section.
168 (machopic_finish): Use the new callbacks to order the indirection
169 output.
170
171 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
172
173 * config/darwin-protos.h (machopic_finish): Delete.
174 * config/darwin.c (machopic_finish): Make static.
175
176 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
177
178 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
179 sections when building kernel extension code.
180
181 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
182
183 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
184 later standard."
185
186 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
187
188 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
189 from warning.
190
191 2019-10-12 Jakub Jelinek <jakub@redhat.com>
192
193 PR middle-end/92063
194 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
195 <case VEC_COND_EXPR>: Return false with *handled = false.
196 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
197 recursing on the first operand.
198 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
199 instead of tree_could_trap_p.
200 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
201
202 2019-10-11 Jim Wilson <jimw@sifive.com>
203
204 PR rtl-optimization/91860
205 * combine.c (subst): If new_rtx is a constant, also check for
206 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
207
208 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
209
210 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
211 INTVAL when calling store_bit_field.
212
213 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
214
215 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
216 size.
217
218 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
219
220 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
221 vectorizable_live_operation.
222 (vectorizable_live_operation): Adjust parameters.
223 * tree-vect-stmts.c (vect_init_vector,
224 vect_gen_widened_results_half): Fix typo in function comment.
225 (can_vectorize_live_stmts): Adjust function comment.
226 Adjust parameters. Adjust call to vectorizable_live_operation.
227 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
228 (vect_transform_stmt): Adjust function comment. Adjust call to
229 can_vectorize_live_stmts.
230 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
231
232 2019-10-11 Richard Biener <rguenther@suse.de>
233
234 PR tree-optimization/90883
235 PR tree-optimization/91091
236 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
237 alias-sets both for recording VN table entries and continuing
238 walking after translating through copies. Handle same-sized
239 reads from SSA names by returning the plain SSA name.
240 (eliminate_dom_walker::eliminate_stmt): Properly handle
241 non-size precision stores in redundant store elimination.
242
243 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
244
245 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
246 (ggc_collect): Dump later to not interfere with release_page dump.
247 (ggc_trim): New function.
248 * ggc-none.c (ggc_trim): New.
249 * ggc.h (ggc_trim): Declare.
250
251 2019-10-11 Richard Biener <rguenther@suse.de>
252
253 PR tree-optimization/92066
254 PR tree-optimization/92046
255 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
256 Fix bogus cost model check.
257
258 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
259
260 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
261 (LANG_HOOKS_DECLS): Add it.
262 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
263 update comment for omp_is_optional_argument.
264 * omp-general.c (omp_is_allocatable_or_ptr): New.
265 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
266 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
267 Fortran's optional arguments and allocatable/pointer scalars
268 with use_device_addr.
269
270 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
271
272 PR target/77918
273 * config/s390/2827.md: Add new opcodes.
274 * config/s390/2964.md: Likewise.
275 * config/s390/3906.md: Likewise.
276 * config/s390/8561.md: Likewise.
277 * config/s390/s390-builtins.def (s390_vfchesb): Use
278 the new vec_cmpgev4sf_quiet_nocc.
279 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
280 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
281 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
282 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
283 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
284 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
285 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
286 * config/s390/s390-modes.def (CCSFPS): New mode.
287 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
288 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
289 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
290 (s390_expand_vec_compare): Use non-signaling patterns where
291 necessary.
292 (s390_reverse_condition): Support CCSFPS.
293 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
294 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
295 (asm_fcmp_op): Likewise.
296 (*smaxv2df3_vx): Use pattern for quiet comparison.
297 (*sminv2df3_vx): Likewise.
298 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
299 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
300 (vec_cmpgt<mode>_quiet_nocc): Likewise.
301 (vec_cmplt<mode>_quiet_nocc): New expander.
302 (vec_cmpge<mode>_quiet_nocc): New pattern.
303 (vec_cmple<mode>_quiet_nocc): New expander.
304 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
305 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
306 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
307 (*vec_cmpge<mode>_signaling_nocc): Likewise.
308 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
309 (vec_cmpungt<mode>): New expander.
310 (vec_cmpunge<mode>): Likewise.
311 (vec_cmpuneq<mode>): Use quiet patterns.
312 (vec_cmpltgt<mode>): Allow only on z14+.
313 (vec_cmpordered<mode>): Use quiet patterns.
314 (vec_cmpunordered<mode>): Likewise.
315 (VEC_CMP_EXPAND): Add ungt and unge.
316
317 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
318
319 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
320 parameter.
321 * lto-streamer-out.c: Include tree-dfa.h.
322 (output_cfg): Do not use cfun.
323 (lto_prepare_function_for_streaming): New.
324 (output_function): Do not push cfun; do not initialize loop optimizer.
325 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
326 * passes.c (ipa_write_summaries): Use it.
327 (ipa_write_optimization_summaries): Do not modify bodies.
328 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
329 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
330 * tree-ssa-dse.c (pass_dse::execute): Update use of
331 renumber_gimple_stmt_uids.
332 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
333
334 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
335
336 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
337 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
338
339 2019-10-10 Joseph Myers <joseph@codesourcery.com>
340
341 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
342 macros.
343 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
344 Also define DFP macros for these conditions.
345 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
346 DEC128_SUBNORMAL_MIN): Do not define.
347 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
348 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
349
350 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
351 Sandra Loosemore <sandra@codesourcery.com>
352
353 PR middle-end/26241
354 * doc/lto.texi (IPA): Reference to the IPA passes.
355 * doc/passes.texi (Pass manager): Add node IPA passes and
356 description for each IPA pass.
357
358 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
359
360 * ipa-reference.c: Do not include splay-tree.h
361 (reference_vars_to_consider): Turn to hash map.
362 (get_static_name, ipa_init, analyze_function, propagate,
363 stream_out_bitmap, ipa_reference_write_optimization_summary,
364 ipa_reference_write_optimization_summary): Update.
365
366 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
367
368 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
369
370 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
371
372 * config/darwin.c: Lookup Objective C metadata and force indirection
373 for IVAR refs.
374
375 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
376
377 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
378 addresses.
379 (mem_operand_gpr): Add check for prefixed addresses.
380 (mem_operand_ds_form): Add check for prefixed addresses.
381 (rs6000_legitimate_offset_address_p): If we support prefixed
382 addresses, check for a 34-bit offset instead of 16-bit.
383 (rs6000_legitimate_address_p): Add check for prefixed addresses.
384 Do not allow load/store with update if the address is prefixed.
385 (rs6000_mode_dependent_address): If we support prefixed
386 addresses, check for a 34-bit offset instead of 16-bit.
387
388 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
389
390 PR target/77918
391 * config/s390/vector.md (vcond_comparison_operator): New
392 predicate.
393 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
394
395 2019-10-10 David Malcolm <dmalcolm@redhat.com>
396
397 PR 87488
398 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
399 -D.
400 * configure.ac (--with-documentation-root-url): New option.
401 * configure: Regenerate.
402 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
403 option URL, add it as a new string field of the diagnostic option.
404 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
405 (print_option_information): If get_option_url is non-NULL, call
406 it, and if the result is non-NULL, potentially emit an escape
407 sequence to markup the option text with the resulting URL.
408 * diagnostic.h (diagnostic_context::get_option_url): New callback.
409 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
410 example of JSON output.
411 * opts-diagnostic.h (get_option_url): New decl.
412 * opts.c (get_option_url): New function.
413 * toplev.c (general_init): Initialize the get_option_url callback.
414
415 2019-10-10 David Malcolm <dmalcolm@redhat.com>
416
417 PR 87488
418 * common.opt (fdiagnostics-urls=): New option.
419 (diagnostic-url.h): Add SourceInclude.
420 (diagnostic_url_rule): New enum.
421 * diagnostic-color.c: Include "diagnostic-url.h".
422 (diagnostic_urls_enabled_p): New function.
423 * diagnostic-url.h: New file.
424 * diagnostic.c: Include "diagnostic-url.h".
425 (diagnostic_urls_init): New function.
426 * diagnostic.h (diagnostic_urls_init): New decl.
427 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
428 -fdiagnostics-urls to the list.
429 (-fdiagnostics-urls): New option.
430 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
431 (driver::global_initializations): Call diagnostic_urls_init.
432 * opts-global.c (init_options_once): Likewise.
433 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
434 * pretty-print.c (pretty_printer::pretty_printer): Initialize
435 show_urls.
436 (pp_begin_url): New function.
437 (pp_end_url): New function.
438 (selftest::test_urls): New selftest.
439 (selftest::pretty_print_c_tests): Call it.
440 * pretty-print.h (pretty_printer::show_urls): New field.
441 (pp_begin_url): New decl.
442 (pp_end_url): New decl.
443
444 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
445
446 PR target/92022
447 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
448
449 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
450
451 PR target/88630
452 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
453 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
454 also for TARGET_FPU_SH4_300.
455 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
456 TARGET_SH4_300.
457 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
458 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
459 (*negsf2_i): Split into ...
460 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
461 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
462 (**abssf2_i): Split into ...
463 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
464 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
465 (*negdf2_i): Split into ...
466 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
467 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
468 (**abssf2_i): Split into ...
469 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
470
471 2019-10-10 Richard Biener <rguenther@suse.de>
472
473 PR middle-end/92046
474 * opts.c (finish_options): Do not influence global --params
475 from options that are adjustable per function.
476 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
477 Apply --param adjustment based on active cost-model.
478 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
479 further store-sinking when vectorization or if-conversion
480 are not enabled.
481
482 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
483
484 PR middle-end/92037
485 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
486 rather than ggc_alloc_cleared to alloc symbol table.
487 * toplev.c (general_init): Likewise.
488 * cgraph.h (symbol_table): Explicitly construct every field.
489
490 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
491
492 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
493 (PF_Z15): ... this.
494 * config.gcc: Add z15 as option for --with-arch and --with-tune
495 configure switches.
496 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
497 error reporting for unsupported builtins.
498 * config/s390/s390-opts.h (enum processor_type): Rename
499 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
500 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
501 * config/s390/driver-native.c (s390_host_detect_local_cpu):
502 Likewise.
503 * config/s390/s390-builtins.def: Likewise.
504 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
505 (s390_expand_builtin): Add missing check for unsupported builtins.
506 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
507 (s390_rtx_costs): Likewise.
508 (s390_get_sched_attrmask): Rename arch13 to z15.
509 (s390_get_unit_mask): Likewise.
510 (s390_is_fpd): Likewise.
511 (s390_is_fxd): Likewise.
512 * config/s390/s390.h (enum processor_flags): Likewise.
513 * config/s390/s390.md: Likewise.
514 * config/s390/vector.md: Likewise.
515 * config/s390/vx-builtins.md: Likewise.
516 * config/s390/s390.opt: Add z15 to processor_type value.
517
518 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
519
520 PR target/91035
521 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
522 prototype.
523 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
524 ("split_stack_data", "split_stack_call")
525 ("split_stack_call_<mode>", "split_stack_cond_call")
526 ("split_stack_cond_call_<mode>"): Remove.
527 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
528 insn definition.
529 * config/s390/s390.c (s390_output_split_stack_data): New function.
530 (s390_expand_split_stack_prologue): Use the merged expander.
531
532 2019-10-09 Martin Sebor <msebor@redhat.com>
533
534 PR tree-optimization/90879
535 * builtins.c (check_access): Avoid using maxbound when null.
536 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
537 * doc/invoke.texi (-Wstring-compare): Document new warning option.
538 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
539 conditional.
540 (get_range_strlen): Overwrite initial maxbound when non-null.
541 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
542 changes.
543 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
544 (used_only_for_zero_equality): New function.
545 (handle_builtin_memcmp): Call it.
546 (determine_min_objsize): Return an integer instead of tree.
547 (get_len_or_size, strxcmp_eqz_result): New functions.
548 (maybe_warn_pointless_strcmp): New function.
549 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
550 between a longer string and a smaller array.
551 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
552
553 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
554
555 * config/darwin.c (darwin_override_options): Make the check for
556 Objective-C ABI version more specific for 64bit code.
557
558 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
559
560 * config/darwin.c (machopic_indirect_data_reference): Set flag to
561 indicate that the new symbol is an indirection.
562 (machopic_indirect_call_target): Likewise.
563 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
564 (MACHO_SYMBOL_INDIRECTION_P): New.
565 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
566
567 2019-10-08 Jason Merrill <jason@redhat.com>
568
569 * doc/invoke.texi: Document -fconcepts-ts.
570
571 2019-10-09 Richard Biener <rguenther@suse.de>
572
573 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
574 allow stmts other than GIMPLE_ASSIGN in nested cycles.
575
576 2019-10-08 Richard Biener <rguenther@suse.de>
577
578 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
579 (_stmt_vec_info::force_single_cycle): Likewise.
580 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
581 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
582 * tree-vect-loop.c (vectorizable_reduction): Set
583 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
584 (vect_transform_reduction): Use them to remove redundant code.
585 (vect_transform_cycle_phi): Likewise.
586
587 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
588
589 PR tree-optimization/90836
590 * gcc/match.pd (popcount): New pattern.
591
592 2019-10-08 Martin Sebor <msebor@redhat.com>
593
594 PR middle-end/92026
595 PR middle-end/92014
596 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
597 again once nbytes has been set. Set the access size when not yet set.
598
599 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
600
601 * config/darwin.c (machopic_select_section): Remove dead code for
602 old Objective-C section selection method, replace with unreachable.
603
604 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
605
606 * config/darwin.c (machopic_indirect_data_reference): Check for
607 required indirections before making direct access to defined
608 values.
609 (machopic_output_indirection): Place the indirected pointes for
610 required indirections into the non-lazy symbol pointers section.
611 (darwin_encode_section_info):
612 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
613 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
614
615 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
616
617 PR target/91994
618 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
619 instead of ALL_SSE_REG to check if function call preserves some
620 256-bit SSE registers.
621
622 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
623
624 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
625 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
626 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
627
628 2019-10-08 Richard Biener <rguenther@suse.de>
629
630 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
631 (_stmt_vec_info::is_reduc_info): Add.
632 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
633 (vectorizable_condition): Remove.
634 (vectorizable_shift): Likewise.
635 (vectorizable_reduction): Adjust.
636 (info_for_reduction): New.
637 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
638 (vect_analyze_scalar_cycles_1): ... here.
639 (vect_analyze_loop_operations): Adjust.
640 (needs_fold_left_reduction_p): Simplify for single caller.
641 (vect_is_simple_reduction): Likewise. Remove stmt restriction
642 for nested cycles not part of double reductions.
643 (vect_model_reduction_cost): Pass in the reduction type.
644 (info_for_reduction): New function.
645 (vect_create_epilog_for_reduction): Use it, access reduction
646 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
647 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
648 (vectorize_fold_left_reduction): Remove pointless assert.
649 (vectorizable_reduction): Analyze the full reduction when
650 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
651 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
652 stmt code-generation to vectorizable_* in most cases. Verify
653 code-generation only for cases handled by
654 vect_transform_reductuon.
655 (vect_transform_reduction): Use info_for_reduction to get at
656 reduction meta. Simplify.
657 (vect_transform_cycle_phi): Likewise.
658 (vectorizable_live_operation): Likewise.
659 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
660 at the PHI node for STMT_VINFO_REDUC_TYPE.
661 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
662 longer necessary code.
663 * tree-vect-stmts.c (vectorizable_shift): Make static again.
664 (vectorizable_condition): Likewise. Get at reduction related
665 info via info_for_reduction.
666 (vect_analyze_stmt): Adjust.
667 (vect_transform_stmt): Likewise.
668 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
669 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
670
671 2019-10-08 Joseph Myers <joseph@codesourcery.com>
672
673 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
674 -fno-fp-int-builtin-inexact default for C2X.
675
676 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
677 Richard Biener <rguenther@suse.de>
678
679 PR tree-optimization/91532
680 * tree-if-conv.c: Include tree-ssa-dse.h.
681 (ifcvt_local_dce): Change param from bb to loop,
682 and call dse_classify_store.
683 (tree_if_conversion): Pass loop instead of loop->header as arg
684 to ifcvt_local_dce.
685 * tree-ssa-dse.c: Include tree-ssa-dse.h.
686 (delete_dead_or_redundant_assignment): Remove static qualifier from
687 declaration, and add prototype in tree-ssa-dse.h.
688 (dse_store_status): Move to tree-ssa-dse.h.
689 (dse_classify_store): Remove static qualifier and add new tree param
690 stop_at_vuse, and add prototype in tree-ssa-dse.h.
691 * tree-ssa-dse.h: New header.
692
693 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
694
695 * config/darwin.c (machopic_output_indirection): Don't put
696 hidden symbol indirections into the .data section, use the
697 non-lazy symbol pointers section as normal.
698 (darwin_encode_section_info): Record if a symbol is hidden.
699 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
700 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
701
702 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
703
704 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
705 predicates instead of accessing bits directly.
706 (machopic_indirect_call_target): Likewise.
707 (machopic_output_indirection): Likewise.
708 (darwin_encode_section_info): Improve description. Use renamed
709 symbol flags. Use predicate macros for variables and functions.
710 * config/darwin.h:
711 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
712 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
713 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
714 (MACHO_SYMBOL_VARIABLE_P): New.
715 (MACHO_SYMBOL_DEFINED_P):New.
716 (MACHO_SYMBOL_STATIC_P): New.
717 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
718 (SYMBOL_FLAG_SUBT_DEP): New.
719 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
720
721 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
722
723 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
724 (msp430_expand_epilogue): Likewise.
725 * config/msp430/predicates.md: Likewise.
726 * config/msp430/msp430.md: Likewise.
727 Replace blocks of 8 spaces with tabs.
728
729 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
730
731 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
732 * config/msp430/msp430.c (msp430_split_addsi): New.
733 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
734 a block of C code for splitting addsi.
735
736 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
737
738 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
739 ix86_expand_rounddf_32): Reorder functions.
740 * config/i386/i386-protos.h: Update.
741
742 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
743
744 * config.in: Regenerate.
745 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
746 Add new "Yx" constraint.
747 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
748 function.
749 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
750 prototype.
751 * config/msp430/msp430.c (msp430_option_override): Allow the lower
752 code/data region to be selected in the small memory model.
753 (msp430_section_attr): Don't warn if the "section" and "lower"
754 attributes are used together.
755 (msp430_handle_generic_attribute): Likewise.
756 (msp430_var_in_low_mem): New function.
757 (TARGET_ENCODE_SECTION_INFO): Define.
758 (msp430_encode_section_info): New function.
759 (gen_prefix): Return early in the small memory model.
760 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
761 ".lower" prefix if -m{code,data}-region=lower have been passed.
762 (msp430_output_aligned_decl_common): Emit common symbols when
763 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
764 set.
765 (TARGET_ASM_FILE_END): Define.
766 (msp430_file_end): New function.
767 (msp430_do_not_relax_short_jumps): Allow relaxation when
768 function will be in the lower region.
769 (msp430_op_not_in_high_mem): New function.
770 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
771 the 'X' operand selector.
772 Clarify comment for 'x' operand selector.
773 * config/msp430/msp430.h (LINK_SPEC): Propagate
774 -m{code,data}-region to the linker via spec function
775 msp430_propagate_region_opt.
776 (msp430_propagate_region_opt): New prototype.
777 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
778 (SYMBOL_FLAG_LOW_MEM): Define.
779 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
780 selector.
781 (zero_extendqihi2): Fix operand number used by "%X" selector.
782 (zero_extendqisi2): Likewise.
783 (zero_extendhisi2): Likewise.
784 (movqi): Use "Yx" constraint in place of "%X" operand selector.
785 (movhi): Likewise.
786 (addqi3): Likewise.
787 (addhi3): Likewise.
788 (addsi3): Likewise.
789 (addhi3_cy): Likewise.
790 (addchi4_cy): Likewise.
791 (subqi3): Likewise.
792 (subhi3): Likewise.
793 (subsi3): Likewise.
794 (bic<mode>3): Likewise.
795 (and<mode>3): Likewise.
796 (ior<mode>3): Likewise.
797 (xor<mode>3): Likewise.
798 (slli_1): Add missing "%X" operand selector.
799 (slll_1): Likewise.
800 (slll_2): Likewise.
801 (srai_1): Likewise.
802 (sral_1): Likewise.
803 (sral_2): Likewise.
804 (srli_1): Likewise.
805 (srll_1): Likewise.
806 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
807 selector.
808 (cbranchhi4_real): Likewise.
809 (cbranchqi4_reversed): Likewise.
810 (cbranchhi4_reversed): Likewise.
811 (*bitbranch<mode>4): Likewise.
812 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
813 * config/msp430/msp430.opt (mcode-region=): Set default to
814 MSP430_REGION_LOWER. Improve docstring.
815 (mdata-region=): Likewise.
816 (muse-lower-region-prefix): New option.
817 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
818 mdata-region=none multilib.
819 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
820 mdata-region=none multilib.
821 MULTILIB_EXCEPTIONS: Remove.
822 MULTILIB_REQUIRED: Define.
823 * configure: Regenerate.
824 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
825 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
826 * doc/extend.texi: Clarify comment for {upper,lower,either}
827 function attributes.
828 Add separate description for "lower" variable attribute.
829
830 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
831
832 PR target/77918
833 * optabs-tree.c (vcond_icode_p): New function.
834 (vcond_eq_icode_p): Likewise.
835 (expand_vec_cond_expr_p): Use vcond_icode_p and
836 vcond_eq_icode_p.
837 * optabs.c (can_vcond_compare_p): New function.
838 * optabs.h (can_vcond_compare_p): Likewise.
839
840 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
841
842 PR target/77918
843 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
844 caller passes a non-trapping condition.
845 (is_gimple_condexpr): Allow trapping conditions.
846 (is_gimple_condexpr_1): New helper function.
847 (is_gimple_condexpr_for_cond): New function, acts like old
848 is_gimple_condexpr.
849 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
850 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
851 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
852 * gimplify.c (gimplify_cond_expr): Use
853 is_gimple_condexpr_for_cond.
854 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
855 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
856 VEC_COND_EXPR.
857 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
858 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
859 is_gimple_condexpr_for_cond, remove pointless tmp check
860 (forward_propagate_into_cond): Remove pointless tmp check.
861
862 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
863
864 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
865 match that of other gsi_next_* functions. Adjust the comment.
866 (gsi_start_nonvirtual_phis): New function.
867 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
868 gsi_next_nonvirtual_phi accordingly. (No functional change.)
869
870 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
871
872 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
873 setjmp situation here. Fix a verb's ending: "the exact variables or
874 elements for which there are warnings depends" -> "... depend".
875
876 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
877
878 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
879
880 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
881
882 * ipa-prop.c (ipa_vr::nonzero_p): New.
883 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
884 non-zero range.
885 * ipa-prop.h (class ipa_vr): Add nonzero_p.
886 * tree-vrp.c (range_has_numeric_bounds_p): New.
887 (range_int_cst_p): Use range_has_numeric_bounds_p.
888 (get_range_op_handler): New.
889 (supported_types_p): New.
890 (defined_ranges_p): New.
891 (drop_undefines_to_varying): New.
892 (range_fold_binary_symbolics_p): New.
893 (range_fold_unary_symbolics_p): New.
894 (range_fold_unary_expr): Extract out into above functions.
895 (range_fold_binary_expr): Same.
896 (value_range_base::normalize_addresses): New.
897 (value_range_base::normalize_symbolics): Normalize addresses.
898 * tree-vrp.h (class value_range_base): Add normalize_addresses.
899
900 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
901
902 * tree-vrp.c (value_range_base::singleton_p): Use
903 value_range_base::num_pairs instead of vrp_val_is* to check
904 if a range has one sub-range.
905
906 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
907
908 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
909 DEF is not a true earlyclobber but is tied to a specific input
910 operand, and so is effectively earlyclobber wrt inputs that have
911 different values.
912 (make_early_clobber_and_input_conflicts): Pass this case to the above.
913
914 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
915
916 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
917 (pod_mode): Mark operators likewise.
918 (scalar_int_mode): Mark non-default constructors and
919 operators with CONSTEXPR.
920 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
921 (fixed_size_mode): Likewise.
922
923 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
924
925 PR target/91994
926 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
927 and wrap the unspec_volatile in a parallel.
928 (*avx_vzeroupper): New define_insn. Use a match_parallel around
929 the unspec_volatile.
930 * config/i386/predicates.md (vzeroupper_pattern): Expect the
931 unspec_volatile to be wrapped in a parallel.
932 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
933 (ix86_add_reg_usage_to_vzerouppers): New functions.
934 (rest_of_handle_insert_vzeroupper): Use them to add register
935 usage information to the vzeroupper instructions.
936
937 2019-10-07 Richard Biener <rguenther@suse.de>
938
939 PR tree-optimization/91975
940 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
941 handle invariants.
942
943 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
944
945 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
946 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
947
948 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
949
950 * config/darwin.c (darwin_override_options): Adjust objective-c
951 ABI version error messages to avoid punctuation and contracted
952 negations.
953
954 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
955
956 * ipa-inline.c: Fix type; compute size rather than self_size
957 for size of caller function.
958
959 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
960
961 PR target/59888
962 * config/darwin.c (darwin_rodata_section): Add relocation flag,
963 choose const_data section for constants with relocations.
964 (machopic_select_section): Pass relocation flag to
965 darwin_rodata_section ().
966
967 2019-10-05 Jakub Jelinek <jakub@redhat.com>
968
969 PR tree-optimization/91734
970 * generic-match-head.c: Include fold-const-call.h.
971 * match.pd (sqrt(x) cmp c): Check the boundary value and
972 in case inexact computation of c*c affects comparison of the boundary,
973 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
974 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
975 for -frounding-math. For c2, try the next smaller or larger floating
976 point constant depending on comparison code and if it has the same
977 sqrt as c2, use it instead of c2.
978
979 2019-10-04 Martin Sebor <msebor@redhat.com>
980
981 PR middle-end/91977
982 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
983 MEM_REF right operand. Avoid failing for MEM_REF assignments from
984 uninitialized objects.
985
986 2019-10-04 Martin Sebor <msebor@redhat.com>
987
988 * builtins.c (compute_objsize): Add an argument.
989 * tree-object-size.c (addr_object_size): Same.
990 (compute_builtin_object_size): Same.
991 * tree-object-size.h (compute_builtin_object): Same.
992
993 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
994
995 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
996
997 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
998
999 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1000
1001 2019-10-04 Martin Jambor <mjambor@suse.cz>
1002
1003 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1004 fntype when switching to calling memcpy instead of memset.
1005
1006 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1007
1008 * hash-table.h (hash_table::empty_slow): Don't assign
1009 size_t values to int variables.
1010
1011 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1012
1013 * expr.c (convert_mode_scalar): Remove shadowing local var.
1014 (emit_block_move): Rename local vars.
1015 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1016 (emit_push_insn): Rename local vars.
1017 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1018 shadowing local vars.
1019 (store_constructor): Remove shadowing local vars. Rename local var.
1020 (store_field, expand_cond_expr_using_cmove,
1021 expand_expr_real_2): Remove shadowing local vars.
1022 (expand_expr_real_1,
1023 do_store_flag): Remove shadowing local vars. Rename local vars.
1024
1025 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1026
1027 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1028
1029 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1030
1031 * genmatch.c (commutate): Rename local var.
1032 (lower_cond): Reuse local var.
1033 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1034 dt_operand::gen, dt_operand::gen_gimple_expr,
1035 dt_simplify::gen): Add a param. Rename generated vars.
1036 (decision_tree::insert_operand,
1037 (capture_info::walk_match, capture_info::walk_result,
1038 capture_info::walk_c_expr): Rename local vars.
1039 (expr::gen_transform): Rename generated vars.
1040 Use snprintf. Rename local vars.
1041 (capture::gen_transform, dt_operand::get_name,
1042 dt_operand::gen_opname): Rename generated vars.
1043 (write_predicate): Adjust call to gen_kids.
1044 (parser::get_internal_capture_id): Rename generated vars.
1045 (parser::parse_expr): Rename local vars.
1046 (parser::parse_if): Remove local var.
1047 (parser::parse_pattern, add_operator): Rename local vars.
1048
1049 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1050
1051 * builtins.def (DEF_C2X_BUILTIN): New macro.
1052 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1053 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1054 (strndup): Use DEF_C2X_BUILTIN.
1055 * coretypes.h (enum function_class): Add function_c2x_misc.
1056
1057 2019-10-04 Maya Rashish <coypu@sdf.org>
1058
1059 * ira-color.c (update_costs_from_allocno): Call
1060 ira_init_register_move_cost_if_necessary.
1061
1062 2019-10-04 Jeff Law <law@redhat.com>
1063
1064 * config/h8300/h8300.md (cpymemsi): Disable.
1065 (movmd, movmd_internal_<mode>, movstr, movsd):
1066 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1067 (movmd splitter, movsd splitter): Likewise.
1068
1069 * range-op.cc (range_tests): Avoid two tests when ints and
1070 shorts are the same size.
1071
1072 2019-10-04 Richard Biener <rguenther@suse.de>
1073
1074 PR lto/91968
1075 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1076 BLOCK_VARS.
1077
1078 2019-10-04 Richard Biener <rguenther@suse.de>
1079
1080 PR tree-optimization/91982
1081 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1082 against EXTRACT_LAST_REDUCTION.
1083 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1084
1085 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1086
1087 * range-op.o (value_range_from_overflowed_bounds): Rename from
1088 adjust_overflow_bound.
1089 (value_range_with_overflow): Rename from
1090 create_range_with_overflow.
1091 (create_possibly_reversed_range): Adjusted for above renames.
1092 (operator_*::wi_fold): Same.
1093 (cross_product_operator::wi_cross_productor): Same.
1094
1095 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1096
1097 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1098 -Wshadow=compatible-local): Fix description.
1099 Add an example where -Wshadow=compatible-local does not
1100 warn.
1101
1102 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1103
1104 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1105
1106 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1107 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1108
1109 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1110
1111 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1112 can_move_by_pieces issue.
1113
1114 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1115
1116 PR target/87243
1117 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1118 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1119 is available and the user has not set one on the command line.
1120
1121 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1122
1123 PR target/91769
1124 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1125 instead of REGNO equality check on addr.reg.
1126
1127 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1128
1129 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1130 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1131 * doc/invoke.texi (inline-heuristics-hint-percent,
1132 inline-heuristics-hint-percent-O2): Document.
1133 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1134 hint attribute.
1135 (can_inline_edge_by_limits_p): Use it.
1136
1137 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1138
1139 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1140 to print CONST_DOUBLEs.
1141
1142 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1143
1144 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1145 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1146 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1147
1148 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1149
1150 * Makefile.in (OBJS): Add range.o and range-op.o.
1151 Remove wide-int-range.o.
1152 * function-tests.c (test_ranges): New.
1153 (function_tests_c_tests): Call test_ranges.
1154 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1155 range_fold_unary_expr instead of extract_range_from_unary_expr.
1156 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1157 * range-op.cc: New file.
1158 * range-op.h: New file.
1159 * range.cc: New file.
1160 * range.h: New file.
1161 * selftest.h (range_tests): New prototype.
1162 * ssa.h: Include range.h.
1163 * tree-vrp.c (value_range_base::value_range_base): New
1164 constructors.
1165 (value_range_base::singleton_p): Do not call
1166 ranges_from_anti_range until sure we will need to.
1167 (value_range_base::type): Rename gcc_assert to
1168 gcc_checking_assert.
1169 (vrp_val_is_max): New argument.
1170 (vrp_val_is_min): Same.
1171 (wide_int_range_set_zero_nonzero_bits): Move from
1172 wide-int-range.cc.
1173 (extract_range_into_wide_ints): Remove.
1174 (extract_range_from_multiplicative_op): Remove.
1175 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1176 from extract_range_from_binary_expr.
1177 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1178 from extract_range_from_binary_expr.
1179 (extract_range_from_binary_expr): Remove.
1180 (normalize_for_range_ops): New.
1181 (range_fold_binary_expr): New.
1182 (range_fold_unary_expr): New.
1183 (value_range_base::num_pairs): New.
1184 (value_range_base::lower_bound): New.
1185 (value_range_base::upper_bound): New.
1186 (value_range_base::upper_bound): New.
1187 (value_range_base::contains_p): New.
1188 (value_range_base::invert): New.
1189 (value_range_base::union_): New.
1190 (value_range_base::intersect): New.
1191 (range_compatible_p): New.
1192 (value_range_base::operator==): New.
1193 (determine_value_range_1): Call range_fold_*expr instead of
1194 extract_range_from_*expr.
1195 * tree-vrp.h (class value_range_base): Add new constructors.
1196 Add methods for union_, intersect, operator==, contains_p,
1197 num_pairs, lower_bound, upper_bound, invert.
1198 (vrp_val_is_min): Add handle_pointers argument.
1199 (vrp_val_is_max): Same.
1200 (extract_range_from_unary_expr): Remove.
1201 (extract_range_from_binary_expr): Remove.
1202 (range_fold_unary_expr): New.
1203 (range_fold_binary_expr): New.
1204 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1205 range_fold_binary_expr instead of extract_range_from_binary_expr.
1206 (vr_values::extract_range_basic): Same.
1207 (vr_values::extract_range_from_unary_expr): Call
1208 range_fold_unary_expr instead of extract_range_from_unary_expr.
1209 * wide-int-range.cc: Remove.
1210 * wide-int-range.h: Remove.
1211
1212 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1213
1214 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1215 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1216 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1217 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1218 macro.
1219
1220 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1221
1222 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1223 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1224 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1225 * glimits.h: Likewise.
1226
1227 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1228
1229 PR rtl-optimization/91976
1230 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1231 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1232 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1233
1234 2019-10-02 Martin Sebor <msebor@redhat.com>
1235
1236 PR tree-optimization/80936
1237 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1238
1239 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1240
1241 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1242 instead of reg_class_contents[ALL_REGS].
1243
1244 2019-09-30 Jason Merrill <jason@redhat.com>
1245
1246 Add some hash_map_safe_* functions like vec_safe_*.
1247 * hash-map.h (default_hash_map_size): New variable.
1248 (create_ggc): Use it as default argument.
1249 (hash_map_maybe_create, hash_map_safe_get)
1250 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1251
1252 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1253
1254 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1255 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1256 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1257 (can_inline_edge_by_limits_p): Use it.
1258 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1259 (want_inline_small_function_p): Use O2 bounds.
1260 (edge_badness): LIkewise.
1261 * opts.c (default_options): Add OPT_finline_functions.
1262 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1263 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1264 New parameters.
1265 * doc/invoke.texi (-finline-functions): Update documentation.
1266 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1267 inline-min-speedup-O2): Document.
1268 (early-inlining-insns-O2): Simplify docs.
1269
1270 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1271
1272 PR rtl-optimization/87047
1273 * ifcvt.c (average_cost): New static function. Use it...
1274 (noce_process_if_block): ... here.
1275
1276 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1277
1278 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1279 * config/rs6000/rs6000-string.c (expand_block_move): Add
1280 might_overlap parm.
1281 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1282 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1283
1284 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1285
1286 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1287 (expand_builtin_memcpy): Use might_overlap parm.
1288 (expand_builtin_mempcpy_args): Use might_overlap parm.
1289 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1290 (expand_builtin_memory_copy_args): Add might_overlap parm.
1291 * expr.c (emit_block_move_via_cpymem): Rename to
1292 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1293 or movmem optab as appropriate.
1294 (emit_block_move_hints): Add might_overlap parm, do the right
1295 thing for might_overlap==true.
1296 * expr.h (emit_block_move_hints): Update prototype.
1297
1298 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1299
1300 * tree-eh.h (unsplit_eh_edges): Declare.
1301 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1302 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1303 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1304 (struct store_immediate_info): Add lp_nr field.
1305 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1306 initialize lp_nr with it.
1307 (struct merged_store_group): Add lp_nr and only_constants fields.
1308 (merged_store_group::merged_store_group): Initialize them.
1309 (merged_store_group::can_be_merged_into): Deal with them.
1310 (pass_store_merging): Rename terminate_and_release_chain into
1311 terminate_and_process_chain.
1312 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1313 renaming and remove useless assertions.
1314 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1315 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1316 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1317 instead of always recomputing it and compare lp_nr.
1318 (imm_store_chain_info::output_merged_store): If the group is in an
1319 active EH region, register new stores if they can throw. Moreover,
1320 if the insertion has created new basic blocks, adjust the PHI nodes
1321 of the post landing pad.
1322 (imm_store_chain_info::output_merged_stores): If the original stores
1323 are in an active EH region, deregister them.
1324 (lhs_valid_for_store_merging_p): Prettify.
1325 (adjust_bit_pos): New function extracted from...
1326 (mem_valid_for_store_merging): ...here. Use it for the base address
1327 and also for the offset if it is the addition of a constant.
1328 (lp_nr_for_store): New function.
1329 (pass_store_merging::process_store): Change return type to bool.
1330 Call lp_nr_for_store to initialize the store info. Propagate the
1331 return status of various called functions to the return value.
1332 (store_valid_for_store_merging_p): New predicate.
1333 (enum basic_block_status): New enumeration.
1334 (get_status_for_store_merging): New function.
1335 (pass_store_merging::execute): If the function can throw and catch
1336 non-call exceptions, unsplit the EH edges on entry and clean up the
1337 CFG on exit if something changed. Call get_status_for_store_merging
1338 for every basic block and keep the chains open across basic blocks
1339 when possible. Terminate and process open chains at the end, if any.
1340
1341 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1342
1343 * reginfo.c (globalize_reg): Fix shadowed variable in
1344 function_abis walk.
1345
1346 2019-10-02 Martin Jambor <mjambor@suse.cz>
1347
1348 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1349 do not compute some stuff when set.
1350 (cgraph_node::create_edge): Likewise.
1351 (cgraph_node::create_indirect_edge): Renamed last parameter to
1352 coning_p and flipped its meaning, don't even calculate
1353 inline_failed when set.
1354 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1355 (symbol_table::::create_edge): Likewise.
1356 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1357 the default value.
1358 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1359 call graph edge creating functions.
1360
1361 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1362
1363 PR c++/91222
1364 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1365 namespace types.
1366
1367 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1368
1369 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1370
1371 2019-10-02 Richard Biener <rguenther@suse.de>
1372
1373 * tree-vectorizer.h (vect_transform_reduction): Declare.
1374 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1375 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1376 stmt transform to ...
1377 (vect_transform_reduction): ... this.
1378
1379 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1380
1381 * omp-low.c (lower_omp_target): Dereference optional argument
1382 to work with the right pointer.
1383
1384 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1385
1386 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1387 false.
1388 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1389 * langhooks.h (omp_is_optional_argument): New hook.
1390 * omp-general.c (omp_is_optional_argument): New.
1391 * omp-general.h (omp_is_optional_argument): New declaration.
1392 * omp-low.c (lower_omp_target): Create temporary for received value
1393 and take the address for new_var if the original variable was a
1394 DECL_BY_REFERENCE. Use size of referenced object when a
1395 pass-by-reference optional argument used as argument to firstprivate.
1396
1397 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1398
1399 PR tree-optimization/91940
1400 * tree-vect-patterns.c: Include tree-vector-builder.h and
1401 vec-perm-indices.h.
1402 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1403 unpromoting the argument back to uint16_t, or by converting into a
1404 rotate, or into shifts plus ior.
1405
1406 2019-10-02 Richard Biener <rguenther@suse.de>
1407
1408 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1409 New.
1410 (vect_transform_cycle_phi): Declare.
1411 * tree-vect-stmts.c (vect_transform_stmt): Call
1412 vect_transform_cycle_phi.
1413 * tree-vect-loop.c (vectorizable_reduction): Split out
1414 PHI transformation stage to ...
1415 (vect_transform_cycle_phi): ... here.
1416
1417 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1418
1419 PR middle-end/91957
1420 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1421 eliminable registers.
1422 (make_hard_regno_live): Likewise, and don't make them live.
1423
1424 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1425
1426 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1427 Call pp_emit_prefix.
1428 (layout::print_source_line): Likewise.
1429 (layout::start_annotation_line): Likewise.
1430 (diagnostic_show_locus): Remove call to temporarily clear the
1431 prefix.
1432 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1433 interaction of pp_set_prefix with rulers and fix-it hints.
1434 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1435 prefix when calling diagnostic_show_locus, rather than destroying
1436 it afterwards.
1437 (print_parseable_fixits): Temporarily clear prefix.
1438 * pretty-print.c (pp_format): Save and restore line_length, rather
1439 than assuming it is zero.
1440 (pp_output_formatted_text): Remove assertion that line_length is
1441 zero.
1442
1443 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1444
1445 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1446 Rename to ...
1447 (nonoverlapping_refs_since_match_p): ... this; handle also
1448 ARRAY_REFs.
1449 (alias_stats): Update stats.
1450 (dump_alias_stats): Likewise.
1451 (cheap_array_ref_low_bound): New function.
1452 (aliasing_matching_component_refs_p): Add partial_overlap
1453 argument;
1454 pass it to nonoverlapping_refs_since_match_p.
1455 (aliasing_component_refs_walk): Update call of
1456 aliasing_matching_component_refs_p
1457 (nonoverlapping_array_refs_p): New function.
1458 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1459 indirect_refs_may_alias_p): Update calls of
1460 nonoverlapping_refs_since_match_p.
1461
1462 2019-10-01 Maya Rashish <coypu@sdf.org>
1463
1464 PR target/85401
1465 * ira-color.c (allocno_copy_cost_saving): Call
1466 ira_init_register_move_cost_if_necessary.
1467
1468 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1469
1470 * Makefile.in (gnat_install_lib): New variable.
1471 * configure.ac: Substitute it.
1472 * configure: Regenerate.
1473
1474 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1475
1476 PR lto/91222
1477 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1478 is matched with non-C++ type
1479
1480 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1481
1482 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1483 after local CSE.
1484
1485 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1486
1487 * doc/invoke.texi (early-inlining-insns-O2): Document.
1488 (early-inlining-insns): Update.
1489 * params.def (early-inlining-insns-O2): New bound.
1490 (early-inlining-insns): Update docs.
1491 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1492
1493 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1494
1495 PR target/88562
1496 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1497 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1498 a memory access insn.
1499
1500 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1501
1502 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1503 vpmsumd.
1504
1505 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1506
1507 PR target/77918
1508 * config/s390/s390.c (s390_expand_vec_compare): Use
1509 gen_vec_cmpordered and gen_vec_cmpunordered.
1510 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1511 vec_unordered): Delete.
1512 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1513 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1514 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1515 (vec_cmp<code>): Generic dispatcher.
1516
1517 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1518
1519 PR target/77918
1520 * config/s390/vector.md (V_HW): Add V1TI in order to make
1521 vcond$a$b generate vcondv1tiv1tf.
1522
1523 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1524
1525 PR rtl-optimization/91948
1526 * ira-build.c (ira_create_allocno): Initialize
1527 ALLOCNO_CROSSED_CALLS_ABIS.
1528 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1529 than regno to ira_need_caller_save_p.
1530
1531 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1532
1533 * config/i386/i386-options.c
1534 (ix86_recompute_optlev_based_flags): New, moved out of...
1535 (ix86_option_override_internal): ... this. Call it.
1536 (ix86_override_options_after_change): Call it here too.
1537
1538 PR debug/91507
1539 * dwarf2out.c (override_type_for_decl_p): New.
1540 (gen_variable_die): Use it.
1541
1542 2019-10-01 Richard Biener <rguenther@suse.de>
1543
1544 * tree-vect-loop.c (vectorizable_reduction): Move variables
1545 to where they are used.
1546
1547 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1548
1549 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1550 (build_def_use): Use PC instead of CC0 in a comment.
1551
1552 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1553
1554 * rtl.def (CLOBBER_HIGH): Delete.
1555 * doc/rtl.texi (clobber_high): Remove documentation.
1556 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1557 (reg_is_clobbered_by_clobber_high): Delete.
1558 (gen_hard_reg_clobber_high): Likewise.
1559 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1560 * cfgexpand.c (expand_gimple_stmt): Likewise.
1561 * combine-stack-adj.c (single_set_for_csa): Likewise.
1562 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1563 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1564 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1565 * cse.c (invalidate_reg): Remove clobber_high parameter.
1566 (invalidate): Update call accordingly.
1567 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1568 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1569 (count_reg_usage, insn_live_p): Likewise.
1570 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1571 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1572 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1573 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1574 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1575 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1576 (mark_nonreg_stores_2): Likewise.
1577 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1578 (df_get_call_refs): Likewise.
1579 * dwarf2out.c (mem_loc_descriptor): Likewise.
1580 * emit-rtl.c (verify_rtx_sharing): Likewise.
1581 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1582 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1583 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1584 * genemit.c (gen_exp, gen_insn): Likewise.
1585 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1586 * haifa-sched.c (haifa_classify_rtx): Likewise.
1587 * ira-build.c (create_insn_allocnos): Likewise.
1588 * ira-costs.c (scan_one_insn): Likewise.
1589 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1590 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1591 * jump.c (mark_jump_label_1): Likewise.
1592 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1593 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1594 handling.
1595 (mark_not_eliminable): Likewise.
1596 * lra-lives.c (process_bb_lives): Likewise.
1597 * lra.c (new_insn_reg): Remove clobber_high parameter.
1598 (collect_non_operand_hard_regs): Likewise. Update call to new
1599 insn_reg. Remove CLOBBER_HIGH handling.
1600 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1601 to collect_non_operand_hard_regs.
1602 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1603 Update call to new_insn_reg.
1604 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1605 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1606 (move2add_note_store): Likewise.
1607 * print-rtl.c (print_pattern): Likewise.
1608 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1609 (if_test_bypass_p): Likewise.
1610 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1611 * reginfo.c (reg_scan_mark_refs): Likewise.
1612 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1613 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1614 (forget_old_reloads_1): Likewise.
1615 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1616 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1617 (dbr_schedule): Likewise.
1618 * resource.c (update_live_status, mark_referenced_resources)
1619 (mark_set_resources): Likewise.
1620 * rtl.c (copy_rtx): Likewise.
1621 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1622 (note_pattern_stores): Likewise.
1623 (reg_is_clobbered_by_clobber_high): Delete.
1624 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1625 CLOBBER_HIGH handling.
1626
1627 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1628
1629 PR target/91452
1630 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1631 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1632 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1633 Handle ARM_PCS_TLSDESC.
1634 (aarch64_tlsdesc_abi_id): New function.
1635 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1636 rtx instead of a list of clobbers and clobber_highs.
1637 (tlsdesc_small_<mode>): Update accordingly.
1638
1639 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1640
1641 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1642 extra callee_abi argument.
1643 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1644 Insert a CALLEE_ABI unspec into the call pattern as the second
1645 element in the PARALLEL.
1646 (aarch64_simd_call_p): Delete.
1647 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1648 the new CALLEE_ABI element of the PARALLEL.
1649 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1650 from the function type, if given.
1651 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1652 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1653 when passed the function_arg_info end marker.
1654 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1655 final argument of gen_sibcall.
1656 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1657 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1658 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1659 pattern.
1660 (call_value): Likewise operand 3.
1661 (sibcall): Likewise operand 2. Place the unspec before rather than
1662 after the return.
1663 (sibcall_value): Likewise operand 3.
1664 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1665 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1666 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1667 constraint strings.
1668 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1669
1670 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1671
1672 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1673 choose_hard_reg_mode.
1674 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1675
1676 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1677
1678 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1679 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1680 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1681
1682 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1683
1684 * diagnostic-show-locus.c (line_label::line_label): Initialize
1685 m_has_vbar.
1686 (line_label::comparator): Reverse the sort order by m_state_idx,
1687 so that when the list is walked backwards the labels appear in
1688 order of insertion into the rich_location.
1689 (line_label::m_has_vbar): New field.
1690 (layout::print_any_labels): When dealing with multiple labels at
1691 the same line and column, only print vertical bars for the one
1692 with the highest label_line.
1693 (selftest::test_one_liner_labels): Update test for multiple labels
1694 to expect the labels to be in the order of insertion into the
1695 rich_location. Add a test for many such labels, where the column
1696 numbers are out-of-order relative to the insertion order.
1697
1698 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1699
1700 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1701 (ix86_frame::expensive_count): Likewise.
1702 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1703 of use_fast_prologue_epilogue robust against incidental changes
1704 in function size.
1705
1706 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1707
1708 PR target/77918
1709 * config/s390/vector.md (vec_unordered<mode>): Call
1710 gen_vec_ordered<mode>.
1711
1712 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1713
1714 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1715 New pattern for ASRD.
1716 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1717 * internal-fn.def (IFN_DIV_POW2): New internal function.
1718 * optabs.def (sdiv_pow2_optab): New optab.
1719 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1720 Modify pattern to support new operation.
1721 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1722 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1723 Document new target selector.
1724
1725 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1726
1727 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1728 to test whether we're compiling a vector PCS function and to test
1729 whether the function needs to save a particular register.
1730 Remove the vector PCS handling of df_set_regs_ever_live.
1731 (aarch64_components_for_bb): Use crtl->abi to test whether
1732 the function needs to save a particular register.
1733 (aarch64_process_components): Use crtl->abi to test whether
1734 we're compiling a vector PCS function.
1735 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1736 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1737
1738 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1739
1740 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1741 Delete.
1742 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1743 whether the block calls a function that clobbers more registers
1744 than the current function is allowed to.
1745 (aarch64_use_simple_return_insn_p): Delete.
1746 * config/aarch64/aarch64.md (simple_return): Remove condition.
1747
1748 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1749
1750 * function-abi.h (function_abi_aggregator): New class.
1751 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1752 function.
1753 * ira.c (update_equiv_regs_prescan): New function. Call
1754 set_paradoxical_subreg here rather than...
1755 (update_equiv_regs): ...here.
1756 (ira): Call update_equiv_regs_prescan.
1757
1758 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1759
1760 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1761 IN_TARGET_CODE.
1762 (call_used_or_fixed_regs): Likewise.
1763 (call_used_or_fixed_reg_p): Likewise.
1764 * reginfo.c (regs_invalidated_by_call): New macro.
1765
1766 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1767
1768 * shrink-wrap.c: Include function-abi.h.
1769 (requires_stack_frame_p): Use crtl->abi to test whether the
1770 current function can use a register without saving it first.
1771
1772 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1773
1774 * sel-sched-ir.h (_def::crosses_call): Replace with...
1775 (_def::crossed_call_abis): ..this new field.
1776 (def_list_add): Take a mask of ABIs instead of a crosses_call
1777 boolean.
1778 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1779 of _def accordingly.
1780 * sel-sched.c: Include function-abi.h.
1781 (hard_regs_data::regs_for_call_clobbered): Delete.
1782 (reg_rename::crosses_call): Replace with...
1783 (reg_rename::crossed_call_abis): ...this new field.
1784 (fur_static_params::crosses_call): Replace with...
1785 (fur_static_params::crossed_call_abis): ...this new field.
1786 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1787 (init_hard_regs_data): Use crtl->abi to test which registers the
1788 current function would need to save before it uses them.
1789 (mark_unavailable_hard_regs): Update handling of call-clobbered
1790 registers, using call_clobbers_in_region to find out which registers
1791 might be call-clobbered (but without taking -fipa-ra into account
1792 for now). Remove separate handling of partially call-clobbered
1793 registers.
1794 (verify_target_availability): Use crossed_call_abis instead of
1795 crosses_call.
1796 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1797 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1798
1799 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1800
1801 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1802 function to test whether a register is fully or partly clobbered.
1803
1804 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1805
1806 * rtlanal.c: Include function-abi.h.
1807 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1808 function and clobbers_reg_p to test whether the register
1809 is call-clobbered.
1810 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1811 to get the ABI of the called function and full_reg_clobbers to
1812 get the set of fully call-clobbered registers. Warn about the
1813 pitfalls of using this mode.
1814
1815 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1816
1817 * reload.c: Include function-abi.h.
1818 (find_equiv_reg): Use clobbers_reg_p to test whether either
1819 of the equivalent registers is clobbered by a call.
1820 * reload1.c: Include function-abi.h.
1821 (reg_reloaded_call_part_clobbered): Delete.
1822 (reload): Use crtl->abi to test which registers would need
1823 saving in the prologue before use.
1824 (find_reg): Likewise.
1825 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1826 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1827 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1828
1829 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1830
1831 * regrename.h (du_head::call_clobber_mask): New field.
1832 (du_head::need_caller_save_reg): Replace with...
1833 (du_head::call_abis): ...this new field.
1834 * regrename.c: Include function-abi.h.
1835 (call_clobbered_in_chain_p): New function.
1836 (check_new_reg_p): Use crtl->abi when deciding whether a register
1837 is free for use after RA. Use call_clobbered_in_chain_p to test
1838 whether a candidate register would be clobbered by a call.
1839 (find_rename_reg): Don't add call-clobber conflicts here.
1840 (rename_chains): Check call_abis instead of need_caller_save_reg.
1841 (merge_chains): Update for changes to du_head.
1842 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1843 target. Record the ABI identifier in call_abis and the set of
1844 fully or partially clobbered registers in call_clobber_mask.
1845 Add fully-clobbered registers to hard_conflicts here rather
1846 than in find_rename_reg.
1847 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1848 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1849 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1850 function-abi.h.
1851 * config/c6x/c6x.c: Likewise.
1852
1853 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1854
1855 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1856 mode of the register when deciding whether it is no longer
1857 available after a call.
1858
1859 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1860
1861 * recog.c: Include function-abi.h.
1862 (peep2_find_free_register): Use crtl->abi when deciding whether
1863 a register is free for use after RA.
1864
1865 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1866
1867 * postreload-gcse.c: Include regs.h and function-abi.h.
1868 (record_opr_changes): Use insn_callee_abi to get the ABI of the
1869 call insn target. Conservatively assume that partially-clobbered
1870 registers are altered.
1871
1872 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1873
1874 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1875 when deciding whether a register is free for use after RA.
1876 (reload_combine): Remove unnecessary use of fixed_reg_set.
1877 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1878 call insn target. Use reg_mode when testing whether a register
1879 is no longer available.
1880
1881 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1882
1883 * target.def (return_call_with_max_clobbers): Delete.
1884 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1885 * doc/tm.texi: Regenerate.
1886 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1887 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1888 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1889 (lra_reg::call_insn): Delete.
1890 * lra.c: Include function-abi.h.
1891 (initialize_lra_reg_info_element): Don't initialize the fields above.
1892 (lra): Use crtl->abi to test whether the current function needs to
1893 save a register in the prologue. Remove special pre-inheritance
1894 lra_create_live_ranges pass for flag_ipa_ra.
1895 * lra-assigns.c: Include function-abi.h
1896 (find_hard_regno_for_1): Use crtl->abi to test whether the current
1897 function needs to save a register in the prologue.
1898 (lra_assign): Assert that registers aren't allocated to a
1899 conflicting register, rather than checking only for overlaps
1900 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
1901 and for registers that are not live across a call.
1902 * lra-constraints.c (last_call_for_abi): New variable.
1903 (full_and_partial_call_clobbers): Likewise.
1904 (setup_next_usage_insn): Remove the register from
1905 full_and_partial_call_clobbers.
1906 (need_for_call_save_p): Use call_clobbered_in_region_p to test
1907 whether the register needs a caller save.
1908 (need_for_split_p): Use full_and_partial_reg_clobbers instead
1909 of call_used_or_fixed_regs.
1910 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1911 full_and_partial_call_clobbers.
1912 * lra-lives.c (check_pseudos_live_through_calls): Replace
1913 last_call_used_reg_set and call_insn arguments with an abi argument.
1914 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
1915 as the set of conflicting registers.
1916 (calls_have_same_clobbers_p): Delete.
1917 (process_bb_lives): Track the ABI of the last call instead of an
1918 insn/HARD_REG_SET pair. Update calls to
1919 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
1920 the set of registers that could be clobbered by an EH edge.
1921 Include partially-clobbered as well as fully-clobbered registers.
1922 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1923 * lra-remat.c: Include function-abi.h.
1924 (call_used_regs_arr_len, call_used_regs_arr): Delete.
1925 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1926 registers and bitmap_view to combine them into dead_regs.
1927 (call_used_input_regno_present_p): Take a function_abi argument
1928 and use it to test whether a register is call-clobbered.
1929 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1930 call insn target. Update tje call to call_used_input_regno_present_p.
1931 (do_remat): Likewise.
1932 (lra_remat): Remove the initialization of call_used_regs_arr_len
1933 and call_used_regs_arr.
1934
1935 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1936
1937 * loop-iv.c: Include regs.h and function-abi.h.
1938 (simplify_using_initial_values): Use insn_callee_abi to get the
1939 ABI of the call insn target. Conservatively assume that
1940 partially-clobbered registers are altered.
1941
1942 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1943
1944 * function-abi.h (call_clobbers_in_region): Declare.
1945 (call_clobbered_in_region_p): New function.
1946 * function-abi.cc (call_clobbers_in_region): Likewise.
1947 * ira-int.h: Include function-abi.h.
1948 (ira_allocno::crossed_calls_abis): New field.
1949 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1950 (ira_need_caller_save_regs): New function.
1951 (ira_need_caller_save_p): Likewise.
1952 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1953 of call_used_or_fixed_regs.
1954 (do_reload): Use crtl->abi to test whether the current function
1955 needs to save a register in the prologue. Count registers that
1956 need to be saved rather than registers that don't.
1957 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1958 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1959 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1960 (propagate_some_info_from_allocno): Likewise.
1961 (copy_info_to_removed_store_destinations): Likewise.
1962 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1963 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1964 (ira_build): Use ira_need_caller_save_regs instead of
1965 call_used_or_fixed_regs.
1966 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1967 whether the current function would need to save a register
1968 before using it.
1969 (calculate_spill_cost): Likewise.
1970 (allocno_reload_assign): Use ira_need_caller_save_regs and
1971 ira_need_caller_save_p instead of call_used_or_fixed_regs.
1972 * ira-conflicts.c (ira_build_conflicts): Use
1973 ira_need_caller_save_regs rather than call_used_or_fixed_regs
1974 as the set of call-clobbered registers. Remove the
1975 call_used_or_fixed_regs mask from the calculation of
1976 temp_hard_reg_set and mask its use instead. Remove special
1977 handling of partially-clobbered registers.
1978 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1979 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1980 calculate the set of conflicting registers for calls that
1981 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1982 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1983 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1984 Use eh_edge_abi to calculate the set of registers that could
1985 be clobbered by an EH edge. Include partially-clobbered as
1986 well as fully-clobbered registers.
1987
1988 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1989
1990 * haifa-sched.c: Include function-abi.h.
1991 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1992 the function would need to save a register before using it.
1993
1994 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1995
1996 * gcse.c: Include function-abi.h.
1997 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1998 the call insn target. Invalidate partially call-clobbered
1999 registers as well as fully call-clobbered ones.
2000
2001 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2002
2003 * function.c (aggregate_value_p): Work out which ABI the
2004 function is using before testing which registers are at least
2005 partly preserved by a call.
2006
2007 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2008
2009 * early-remat.c: Include regs.h and function-abi.h.
2010 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2011 registers here.
2012 (early_remat::restrict_remat_for_unavail_regs): New function.
2013 (early_remat::restrict_remat_for_call): Likewise.
2014 (early_remat::process_block): Before calling emit_remat_insns
2015 for a previous call in the block, invalidate any candidates
2016 that would clobber call-preserved registers.
2017 (early_remat::emit_remat_insns_for_block): Likewise for the
2018 final call in a block. Do the same thing for live-in registers
2019 when calling emit_remat_insns at the head of a block.
2020
2021 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2022
2023 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2024 whether the current function needs to save at least part of a
2025 register before using it.
2026 (df_get_exit_block_use_set): Likewise for epilogue restores.
2027
2028 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2029
2030 * df-problems.c: Include regs.h and function-abi.h.
2031 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2032 sparse_invalidated_by_eh and dense_invalidated_by_call to
2033 dense_invalidated_by_eh.
2034 (df_print_bb_index): Update accordingly.
2035 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2036 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2037 that are clobbered by an EH edge. Clobber partially-clobbered
2038 registers as well as fully-clobbered ones.
2039 (df_md_confluence_n): Likewise.
2040 (df_rd_local_compute): Likewise. Update for changes to
2041 df_rd_problem_data.
2042 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2043 of registers that are clobbered by an EH edge. Includde partially-
2044 clobbered registers as well as fully-clobbered ones.
2045
2046 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2047
2048 * cselib.c (cselib_process_insn): If we know what mode a
2049 register was set in, check whether it is clobbered in that
2050 mode by a call. Only fall back to reg_raw_mode if that fails.
2051
2052 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2053
2054 * cse.c: Include regs.h and function-abi.h.
2055 (invalidate_for_call): Take the call insn as an argument.
2056 Use insn_callee_abi to get the ABI of the call and invalidate
2057 partially clobbered registers as well as fully clobbered ones.
2058 (cse_insn): Update call accordingly.
2059
2060 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2061
2062 * combine.c: Include function-abi.h.
2063 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2064 of the target of call insns. Invalidate partially-clobbered
2065 registers as well as fully-clobbered ones.
2066
2067 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2068
2069 * cfgloopanal.c: Include regs.h and function-abi.h.
2070 (init_set_costs): Use default_function_abi to test whether
2071 a general register is call-clobbered.
2072
2073 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2074
2075 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2076 instead of the call-clobbered sets.
2077
2078 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2079
2080 * caller-save.c (setup_save_areas): Remove redundant |s of
2081 fixed_reg_set.
2082 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2083 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2084 value is useful.
2085
2086 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2087
2088 * rtl.h (predefined_function_abi): Declare.
2089 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2090 instead of a boolean call_save flag.
2091 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2092 accordingly.
2093 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2094 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2095 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2096 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2097 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2098 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2099 * reginfo.c (init_reg_modes_target): Likewise.
2100 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2101 instead of a boolean call_save flag.
2102 * targhooks.c: Include function-abi.h.
2103 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2104 using eh_edge_abi to choose the mode.
2105
2106 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2107
2108 * target.def (hard_regno_call_part_clobbered): Take an ABI
2109 identifier instead of an rtx_insn.
2110 * doc/tm.texi: Regenerate.
2111 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2112 (hook_bool_uint_uint_mode_false): New function.
2113 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2114 (hook_bool_uint_uint_mode_false): New function.
2115 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2116 Take an ABI identifier instead of an rtx_insn.
2117 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2118 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2119 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2120 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2121 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2122 Likewise.
2123 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2124 * cselib.c: Include function-abi.h.
2125 (cselib_process_insn): Update call to
2126 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2127 to get the appropriate ABI identifier.
2128 * function-abi.cc (predefined_function_abi::initialize): Update call
2129 to targetm.hard_regno_call_part_clobbered.
2130 * ira-conflicts.c (ira_build_conflicts): Likewise.
2131 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2132 * lra-constraints.c: Include function-abi.h.
2133 (need_for_call_save_p): Update call to
2134 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2135 to get the appropriate ABI identifier.
2136 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2137 * regcprop.c (copyprop_hardreg_forward_1): Update call
2138 to targetm.hard_regno_call_part_clobbered.
2139 * reginfo.c (choose_hard_reg_mode): Likewise.
2140 * regrename.c (check_new_reg_p): Likewise.
2141 * reload.c (find_equiv_reg): Likewise.
2142 * reload1.c (emit_reload_insns): Likewise.
2143 * sched-deps.c: Include function-abi.h.
2144 (deps_analyze_insn): Update call to
2145 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2146 to get the appropriate ABI identifier.
2147 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2148 call to targetm.hard_regno_call_part_clobbered.
2149 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2150
2151 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2152
2153 * config/i386/i386.c: Include function-abi.h.
2154 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2155 if they preserve some 256-bit or 512-bit SSE registers.
2156
2157 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2158
2159 * target.def (insn_callee_abi): New hook.
2160 (remove_extra_call_preserved_regs): Delete.
2161 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2162 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2163 * doc/tm.texi: Regenerate.
2164 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2165 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2166 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2167 insn argument.
2168 (aarch64_remove_extra_call_preserved_regs): Delete.
2169 (aarch64_insn_callee_abi): New function.
2170 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2171 (TARGET_INSN_CALLEE_ABI): New macro.
2172 * rtl.h (get_call_fndecl): Declare.
2173 (cgraph_rtl_info): Fix formatting. Tweak comment for
2174 function_used_regs. Remove function_used_regs_valid.
2175 * rtlanal.c (get_call_fndecl): Moved from final.c
2176 * function-abi.h (insn_callee_abi): Declare.
2177 (target_function_abi_info): Mention insn_callee_abi.
2178 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2179 way to get_call_reg_set_usage did.
2180 (insn_callee_abi): New function.
2181 * regs.h (get_call_reg_set_usage): Delete.
2182 * final.c: Include function-abi.h.
2183 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2184 function_used_regs before the main loop rather than afterwards.
2185 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2186 if function_used_regs ends up not being useful.
2187 (get_call_fndecl): Move to rtlanal.c
2188 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2189 * caller-save.c: Include function-abi.h.
2190 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2191 instead of get_call_reg_set_usage.
2192 * cfgcleanup.c: Include function-abi.h.
2193 (old_insns_match_p): Use insn_callee_abi instead of
2194 get_call_reg_set_usage.
2195 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2196 a tree.
2197 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2198 function_used_regs.
2199 * df-scan.c: Include function-abi.h.
2200 (df_get_call_refs): Use insn_callee_abi instead of
2201 get_call_reg_set_usage.
2202 * ira-lives.c: Include function-abi.h.
2203 (process_bb_node_lives): Use insn_callee_abi instead of
2204 get_call_reg_set_usage.
2205 * lra-lives.c: Include function-abi.h.
2206 (process_bb_lives): Use insn_callee_abi instead of
2207 get_call_reg_set_usage.
2208 * postreload.c: Include function-abi.h.
2209 (reload_combine): Use insn_callee_abi instead of
2210 get_call_reg_set_usage.
2211 * regcprop.c: Include function-abi.h.
2212 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2213 get_call_reg_set_usage.
2214 * resource.c: Include function-abi.h.
2215 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2216 instead of get_call_reg_set_usage.
2217 * var-tracking.c: Include function-abi.h.
2218 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2219 get_call_reg_set_usage.
2220
2221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * target.def (fntype_abi): New target hook.
2224 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2225 * doc/tm.texi: Regenerate.
2226 * target.h (predefined_function_abi): Declare.
2227 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2228 if defined.
2229 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2230 * config/aarch64/aarch64.c: Include function-abi.h.
2231 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2232 (TARGET_FNTYPE_ABI): Define.
2233
2234 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2235
2236 * Makefile.in (OBJS): Add function-abi.o.
2237 (GTFILES): Add function-abi.h.
2238 * function-abi.cc: New file.
2239 * function-abi.h: Likewise.
2240 * emit-rtl.h (rtl_data::abi): New field.
2241 * function.c: Include function-abi.h.
2242 (prepare_function_start): Initialize crtl->abi.
2243 * read-rtl-function.c: Include regs.h and function-abi.h.
2244 (read_rtl_function_body): Initialize crtl->abi.
2245 (read_rtl_function_body_from_file_range): Likewise.
2246 * reginfo.c: Include function-abi.h.
2247 (init_reg_sets_1): Initialize default_function_abi.
2248 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2249 when making a register global.
2250 * target-globals.h (this_target_function_abi_info): Declare.
2251 (target_globals::function_abi_info): New field.
2252 (restore_target_globals): Copy it.
2253 * target-globals.c: Include function-abi.h.
2254 (default_target_globals): Initialize the function_abi_info field.
2255 (target_globals): Allocate it.
2256 (save_target_globals): Free it.
2257
2258 2019-09-30 Nick Clifton <nickc@redhat.com>
2259
2260 PR target/85978
2261 * config/frv/frv.c (frv_register_move_cost): Add break statements
2262 to avoid falling through to the wrong cases. Tidy code.
2263
2264 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2265
2266 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2267 For multi-registers modes, test how big each register part is.
2268
2269 2019-09-30 Nick Clifton <nickc@redhat.com>
2270
2271 PR target/59205
2272 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2273 (TARGET_ASM_SELECT_SECTION): Remove definition.
2274 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2275
2276 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2277
2278 * emit-rtl.c (init_raw_REG): New function.
2279 (gen_raw_REG): Use init_raw_REG.
2280 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2281 macros.
2282 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2283 * rtl.h (rtx_init): New function.
2284 (rtx_alloca): New function.
2285 (init_raw_REG): New function.
2286 (alloca_raw_REG): New macro.
2287
2288 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2289
2290 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2291 (pcrel_local_address): Replace pcrel_address predicate, use the
2292 new function address_to_insn_form.
2293 (pcrel_external_address): Replace with new implementation using
2294 address_to_insn_form..
2295 (prefixed_mem_operand): Delete predicate which is now unused.
2296 (pcrel_external_mem_operand): Delete predicate which is now
2297 unused.
2298 * config/rs6000/rs6000-protos.h (enum insn_form): New
2299 enumeration.
2300 (enum non_prefixed_form): New enumeration.
2301 (address_to_insn_form): New declaration.
2302 (prefixed_load_p): New declaration.
2303 (prefixed_store_p): New declaration.
2304 (prefixed_paddi_p): New declaration.
2305 (rs6000_asm_output_opcode): New declaration.
2306 (rs6000_final_prescan_insn): Move declaration and update calling
2307 signature.
2308 (address_is_prefixed): New helper inline function.
2309 * config/rs6000/rs6000.c(print_operand_address): Check for either
2310 PC-relative local symbols or PC-relative external symbols.
2311 (rs6000_emit_move): Support loading PC-relative addresses.
2312 (mode_supports_prefixed_address_p): Delete, no longer used.
2313 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2314 (address_to_insn_form): New function to decode an address format.
2315 (reg_to_non_prefixed): New function to identify what the
2316 non-prefixed memory instruction format is for a register.
2317 (prefixed_load_p): New function to identify prefixed loads.
2318 (prefixed_store_p): New function to identify prefixed stores.
2319 (prefixed_paddi_p): New function to identify prefixed load
2320 immediates.
2321 (next_insn_prefixed_p): New static state variable.
2322 (rs6000_final_prescan_insn): New function to determine if an insn
2323 uses a prefixed instruction.
2324 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2325 prefixed instruction.
2326 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2327 (ASM_OUTPUT_OPCODE): New target hook.
2328 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2329 prefixed instructions.
2330 (prefixed_length): New insn attribute for the size of prefixed
2331 instructions.
2332 (non_prefixed_length): New insn attribute for the size of
2333 non-prefixed instructions.
2334 (pcrel_local_addr): New insn to load up a local PC-relative
2335 address.
2336 (pcrel_extern_addr): New insn to load up an external PC-relative
2337 address.
2338 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2339 GPR and loading a 128-bit floating point type to a GPR.
2340
2341 2019-09-30 Richard Biener <rguenther@suse.de>
2342
2343 * gimple.c (gimple_get_lhs): For PHIs return the result.
2344 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2345 SLP instance as argument.
2346 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2347 double-reduction PHIs with vectorizable_lc_phi.
2348 (vect_analyze_loop_operations): Adjust.
2349 (vect_create_epilog_for_reduction): Remove all code not dealing
2350 with reduction LC PHI or epilogue generation.
2351 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2352 for live stmts of reductions.
2353 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2354 do not handle defs that are not vect_internal_def.
2355 (can_vectorize_live_stmts): Adjust.
2356 (vect_analyze_stmt): When the vectorized stmt defined a value
2357 used on backedges adjust the backedge uses of vectorized PHIs.
2358
2359 2019-09-30 Martin Jambor <mjambor@suse.cz>
2360
2361 PR ipa/91853
2362 * tree-inline.c (force_value_to_type): New function.
2363 (setup_one_parameter): Use force_value_to_type to convert type.
2364 * tree-inline.c (force_value_to_type): Declare.
2365 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2366 with register type mismatches.
2367
2368 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2369
2370 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2371 32-bit PowerPC.
2372 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2373 * config/rs6000/t-freebsd64: Make use of the above define and build
2374 the 32-bit libraries with secure-plt.
2375
2376 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2377
2378 PR target/91931
2379 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2380 gen_int_mode instead of GEN_INT.
2381
2382 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2383
2384 * config/darwin.c (gen_macho_low): Amend to include the mode
2385 argument.
2386 (machopic_indirect_data_reference): Amend gen_macho_low call
2387 to include mode argument
2388 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2389 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2390 the macho_high expander and two define_insn entries.
2391
2392 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2393
2394 PR bootstrap/90543
2395 * optc-save-gen.awk: Fix up printing string option differences.
2396
2397 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2398
2399 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2400 vec_perm cost to 1 for non-Power7 VSX architectures.
2401
2402 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2403
2404 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2405 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2406 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2407
2408 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2409
2410 * config/darwin.c (gen_macho_high): Amend to include the mode
2411 argument.
2412 (machopic_indirect_data_reference): Amend gen_macho_high call
2413 to include mode argument.
2414 (machopic_legitimize_pic_address): Likewise.
2415 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2416 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2417 the macho_high expander and two define_insn entries.
2418
2419 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2420
2421 PR target/86805
2422 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2423
2424 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2425
2426 PR target/80672
2427 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2428 std::string::compare instead of std::string::find.
2429
2430 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2431
2432 * configure: Regenerate.
2433
2434 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2435
2436 PR middle-end/91920
2437 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2438 variables as shared.
2439
2440 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2441
2442 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2443 replaces the expander and two define_insn entries.
2444 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2445 call.
2446 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2447
2448 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2449
2450 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2451 (fibonacci_heap::nodes): Likewise.
2452 (fibonacci_heap::min_key): Likewise.
2453 (fibonacci_heap::min): Likewise.
2454
2455 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2456
2457 * cgraph.c (cgraph_node::get_fun): Make const.
2458 * cgraph.h (cgraph_node::get_fun): Likewise.
2459
2460 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2461
2462 PR target/91919
2463 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2464 of SImode MULT.
2465
2466 2019-09-27 Richard Biener <rguenther@suse.de>
2467
2468 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2469 (STMT_VINFO_REDUC_FN): Likewise.
2470 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2471 STMT_VINFO_REDUC_FN.
2472 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2473 for condition reductions.
2474 (vect_create_epilog_for_reduction): Compute all required state
2475 from the stmt to be vectorized.
2476 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2477 invocation and remove then dead code. For single def-use chains
2478 record only a single vector stmt.
2479
2480 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2481
2482 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2483 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2484 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2485 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2486 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2487 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2488 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2489 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2490 (aarch64_general_builtin_rsqrt): Declare.
2491 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2492 New function.
2493 (aarch64_mangle_builtin_type): Rename to...
2494 (aarch64_general_mangle_builtin_type): ...this.
2495 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2496 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2497 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2498 aarch64_general_add_builtin instead of add_builtin_function.
2499 (aarch64_init_builtins): Rename to...
2500 (aarch64_general_init_builtins): ...this. Use
2501 aarch64_general_add_builtin instead of add_builtin_function.
2502 (aarch64_builtin_decl): Rename to...
2503 (aarch64_general_builtin_decl): ...this and remove the unused
2504 arguments.
2505 (aarch64_expand_builtin): Rename to...
2506 (aarch64_general_expand_builtin): ...this and remove the unused
2507 arguments.
2508 (aarch64_builtin_rsqrt): Rename to...
2509 (aarch64_general_builtin_rsqrt): ...this.
2510 (aarch64_fold_builtin): Rename to...
2511 (aarch64_general_fold_builtin): ...this. Take the function subcode
2512 and return type as arguments. Remove the "ignored" argument.
2513 (aarch64_gimple_fold_builtin): Rename to...
2514 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2515 subcode and gcall as arguments, and return the new function call.
2516 * config/aarch64/aarch64.c (aarch64_init_builtins)
2517 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2518 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2519 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2520 instead of aarch64_builtin_rsqrt.
2521 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2522 instead of aarch64_mangle_builtin_type.
2523
2524 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2525
2526 * target.def (check_builtin_call): New target hook.
2527 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2528 * doc/tm.texi: Regenerate.
2529
2530 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2531
2532 PR tree-optimization/91909
2533 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2534 reduc_index parameter. When handling COND_REDUCTION, make sure
2535 that the reduction phi operand is in the correct arm of the
2536 VEC_COND_EXPR.
2537 (vectorizable_reduction): Pass reduc_index to the above.
2538
2539 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2540
2541 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2542 New combine pattern.
2543
2544 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2545
2546 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2547 loop instruction into new basic block before the loop when basic
2548 block that precedes the loop is empty.
2549
2550 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2551
2552 * function.c (gimplify_parameters): Use build_clobber function.
2553 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2554 * tree-inline.c (expand_call_inline): Likewise.
2555 * tree-sra.c (clobber_subtree): Likewise.
2556 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2557 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2558 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2559 lower_omp_target): Likewise.
2560 * omp-expand.c (expand_omp_for_generic): Likewise.
2561 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2562
2563 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2564
2565 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2566 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2567 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2568 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2569 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2570 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2571 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2572 LD_ELEMREV_V16QI): Use the PURE attribute.
2573
2574 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2575
2576 * config/rs6000/darwin.md: Replace the expanders for
2577 load_macho_picbase and reload_macho_picbase with use of '@'
2578 and <mode> in their respective define_insns.
2579 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2580 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2581 Pmode to gen_load_macho_picbase.
2582 * config/rs6000/rs6000.md: Likewise.
2583
2584 2019-09-25 Richard Biener <rguenther@suse.de>
2585
2586 PR tree-optimization/91896
2587 * tree-vect-loop.c (vectorizable_reduction): The single
2588 def-use cycle optimization cannot apply when there's more
2589 than one pattern stmt involved.
2590
2591 2019-09-26 Richard Biener <rguenther@suse.de>
2592
2593 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2594 loop-closed PHIs that are vect_internal_def.
2595 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2596 Simplify.
2597 (vectorizable_lc_phi): New.
2598 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2599 (vect_transform_stmt): Likewise.
2600 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2601 (vectorizable_lc_phi): Declare.
2602
2603 2019-09-26 Richard Biener <rguenther@suse.de>
2604
2605 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2606 vectorizable_reduction for vect_double_reduction_def.
2607 (vect_transform_loop): Likewise.
2608 (vect_create_epilog_for_reduction): Move double-reduction
2609 PHI creation and preheader argument setting of PHIs ...
2610 (vectorizable_reduction): ... here. Also process
2611 vect_double_reduction_def PHIs, creating the vectorized
2612 PHI nodes, remembering the scalar adjustment computed for
2613 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2614 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2615 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2616 Initialize STMT_VINFO_REDUC_CODE.
2617 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2618 (_stmt_vec_info::reduc_code): Likewise.
2619 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2620 (STMT_VINFO_REDUC_CODE): Likewise.
2621
2622 2019-09-26 Matt Turner <mattst88@gmail.com>
2623
2624 PR driver/69471
2625 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2626 (mtune=): Add Negative(mtune=).
2627 (mcpu=): Add Negative(mcpu=).
2628 * config/arm/arm.opt: Likewise.
2629
2630 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2631
2632 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2633 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2634 Define.
2635 * config/arm/arm_acle.h: Define builtins for the above.
2636 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2637 (simd32_op): Handle the above.
2638 * config/arm/unspecs.md: Define unspecs for the above.
2639
2640 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2641
2642 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2643 (arm_<sup>xtb16): Likewise.
2644 (arm_usada8): Likewise.
2645 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2646 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2647 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2648 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2649 __sxtb16, __uxtab16, __uxtb16): Define.
2650 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2651 * config/arm/unspecs.md: Define unspecs for the above.
2652 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2653 (USXTB16): Likewise.
2654 (simd32_op): New int_attribute.
2655 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2656 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2657
2658 2019-09-26 Martin Jambor <mjambor@suse.cz>
2659
2660 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2661 internal_error.
2662
2663 2019-09-26 Martin Jambor <mjambor@suse.cz>
2664
2665 * ipa-sra.c (process_scan_results): Fix continue condition.
2666
2667 2019-09-26 Martin Liska <mliska@suse.cz>
2668
2669 PR tree-optimization/91885
2670 * tree-vectorizer.c (try_vectorize_loop_1): Add
2671 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2672
2673 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2674
2675 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2676 aarch64_plus_immediate rather than aarch64_uimm12_shift
2677 to test for valid PLUS immediates.
2678
2679 2019-09-25 Martin Jambor <mjambor@suse.cz>
2680
2681 * tree-sra.c (no_accesses_p): Remove.
2682 (no_accesses_representant): Likewise.
2683
2684 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2685
2686 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2687 consistenly.
2688 (vaba_s16): Likewise.
2689 (vaba_s32): Likewise.
2690 (vaba_u8): Likewise.
2691 (vaba_u16): Likewise.
2692 (vaba_u32): Likewise.
2693 (vabal_high_s8): Likewise.
2694 (vabal_high_s16): Likewise.
2695 (vabal_high_s32): Likewise.
2696 (vabal_high_u8): Likewise.
2697 (vabal_high_u16): Likewise.
2698 (vabal_high_u32): Likewise.
2699 (vabal_s8): Likewise.
2700 (vabal_s16): Likewise.
2701 (vabal_s32): Likewise.
2702 (vabal_u8): Likewise.
2703 (vabal_u16): Likewise.
2704 (vabal_u32): Likewise.
2705 (vabaq_s8): Likewise.
2706 (vabaq_s16): Likewise.
2707 (vabaq_s32): Likewise.
2708 (vabaq_u8): Likewise.
2709 (vabaq_u16): Likewise.
2710 (vabaq_u32): Likewise.
2711 (vabd_s8): Likewise.
2712 (vabd_s16): Likewise.
2713 (vabd_s32): Likewise.
2714 (vabd_u8): Likewise.
2715 (vabd_u16): Likewise.
2716 (vabd_u32): Likewise.
2717 (vabdl_high_s8): Likewise.
2718 (vabdl_high_s16): Likewise.
2719 (vabdl_high_s32): Likewise.
2720 (vabdl_high_u8): Likewise.
2721 (vabdl_high_u16): Likewise.
2722 (vabdl_high_u32): Likewise.
2723 (vabdl_s8): Likewise.
2724 (vabdl_s16): Likewise.
2725 (vabdl_s32): Likewise.
2726 (vabdl_u8): Likewise.
2727 (vabdl_u16): Likewise.
2728 (vabdl_u32): Likewise.
2729 (vabdq_s8): Likewise.
2730 (vabdq_s16): Likewise.
2731 (vabdq_s32): Likewise.
2732 (vabdq_u8): Likewise.
2733 (vabdq_u16): Likewise.
2734 (vabdq_u32): Likewise.
2735 (vaddlv_s8): Likewise.
2736 (vaddlv_s16): Likewise.
2737 (vaddlv_u8): Likewise.
2738 (vaddlv_u16): Likewise.
2739 (vaddlvq_s8): Likewise.
2740 (vaddlvq_s16): Likewise.
2741 (vaddlvq_s32): Likewise.
2742 (vaddlvq_u8): Likewise.
2743 (vaddlvq_u16): Likewise.
2744 (vaddlvq_u32): Likewise.
2745 (vcvtx_f32_f64): Likewise.
2746 (vcvtx_high_f32_f64): Likewise.
2747 (vcvtxd_f32_f64): Likewise.
2748 (vmla_n_f32): Likewise.
2749 (vmla_n_s16): Likewise.
2750 (vmla_n_s32): Likewise.
2751 (vmla_n_u16): Likewise.
2752 (vmla_n_u32): Likewise.
2753 (vmla_s8): Likewise.
2754 (vmla_s16): Likewise.
2755 (vmla_s32): Likewise.
2756 (vmla_u8): Likewise.
2757 (vmla_u16): Likewise.
2758 (vmla_u32): Likewise.
2759 (vmlal_high_n_s16): Likewise.
2760 (vmlal_high_n_s32): Likewise.
2761 (vmlal_high_n_u16): Likewise.
2762 (vmlal_high_n_u32): Likewise.
2763 (vmlal_high_s8): Likewise.
2764 (vmlal_high_s16): Likewise.
2765 (vmlal_high_s32): Likewise.
2766 (vmlal_high_u8): Likewise.
2767 (vmlal_high_u16): Likewise.
2768 (vmlal_high_u32): Likewise.
2769 (vmlal_n_s16): Likewise.
2770 (vmlal_n_s32): Likewise.
2771 (vmlal_n_u16): Likewise.
2772 (vmlal_n_u32): Likewise.
2773 (vmlal_s8): Likewise.
2774 (vmlal_s16): Likewise.
2775 (vmlal_s32): Likewise.
2776 (vmlal_u8): Likewise.
2777 (vmlal_u16): Likewise.
2778 (vmlal_u32): Likewise.
2779 (vmlaq_n_f32): Likewise.
2780 (vmlaq_n_s16): Likewise.
2781 (vmlaq_n_s32): Likewise.
2782 (vmlaq_n_u16): Likewise.
2783 (vmlaq_n_u32): Likewise.
2784 (vmlaq_s8): Likewise.
2785 (vmlaq_s16): Likewise.
2786 (vmlaq_s32): Likewise.
2787 (vmlaq_u8): Likewise.
2788 (vmlaq_u16): Likewise.
2789 (vmlaq_u32): Likewise.
2790 (vmls_n_f32): Likewise.
2791 (vmls_n_s16): Likewise.
2792 (vmls_n_s32): Likewise.
2793 (vmls_n_u16): Likewise.
2794 (vmls_n_u32): Likewise.
2795 (vmls_s8): Likewise.
2796 (vmls_s16): Likewise.
2797 (vmls_s32): Likewise.
2798 (vmls_u8): Likewise.
2799 (vmls_u16): Likewise.
2800 (vmls_u32): Likewise.
2801 (vmlsl_high_n_s16): Likewise.
2802 (vmlsl_high_n_s32): Likewise.
2803 (vmlsl_high_n_u16): Likewise.
2804 (vmlsl_high_n_u32): Likewise.
2805 (vmlsl_high_s8): Likewise.
2806 (vmlsl_high_s16): Likewise.
2807 (vmlsl_high_s32): Likewise.
2808 (vmlsl_high_u8): Likewise.
2809 (vmlsl_high_u16): Likewise.
2810 (vmlsl_high_u32): Likewise.
2811 (vmlsl_n_s16): Likewise.
2812 (vmlsl_n_s32): Likewise.
2813 (vmlsl_n_u16): Likewise.
2814 (vmlsl_n_u32): Likewise.
2815 (vmlsl_s8): Likewise.
2816 (vmlsl_s16): Likewise.
2817 (vmlsl_s32): Likewise.
2818 (vmlsl_u8): Likewise.
2819 (vmlsl_u16): Likewise.
2820 (vmlsl_u32): Likewise.
2821 (vmlsq_n_f32): Likewise.
2822 (vmlsq_n_s16): Likewise.
2823 (vmlsq_n_s32): Likewise.
2824 (vmlsq_n_u16): Likewise.
2825 (vmlsq_n_u32): Likewise.
2826 (vmlsq_s8): Likewise.
2827 (vmlsq_s16): Likewise.
2828 (vmlsq_s32): Likewise.
2829 (vmlsq_u8): Likewise.
2830 (vmlsq_u16): Likewise.
2831 (vmlsq_u32): Likewise.
2832 (vmovl_high_s8): Likewise.
2833 (vmovl_high_s16): Likewise.
2834 (vmovl_high_s32): Likewise.
2835 (vmovl_high_u8): Likewise.
2836 (vmovl_high_u16): Likewise.
2837 (vmovl_high_u32): Likewise.
2838 (vmovl_s8): Likewise.
2839 (vmovl_s16): Likewise.
2840 (vmovl_s32): Likewise.
2841 (vmovl_u8): Likewise.
2842 (vmovl_u16): Likewise.
2843 (vmovl_u32): Likewise.
2844 (vmovn_high_s16): Likewise.
2845 (vmovn_high_s32): Likewise.
2846 (vmovn_high_s64): Likewise.
2847 (vmovn_high_u16): Likewise.
2848 (vmovn_high_u32): Likewise.
2849 (vmovn_high_u64): Likewise.
2850 (vmovn_s16): Likewise.
2851 (vmovn_s32): Likewise.
2852 (vmovn_s64): Likewise.
2853 (vmovn_u16): Likewise.
2854 (vmovn_u32): Likewise.
2855 (vmovn_u64): Likewise.
2856 (vmull_high_n_s16): Likewise.
2857 (vmull_high_n_s32): Likewise.
2858 (vmull_high_n_u16): Likewise.
2859 (vmull_high_n_u32): Likewise.
2860 (vmull_high_p8): Likewise.
2861 (vmull_high_s8): Likewise.
2862 (vmull_high_s16): Likewise.
2863 (vmull_high_s32): Likewise.
2864 (vmull_high_u8): Likewise.
2865 (vmull_high_u16): Likewise.
2866 (vmull_high_u32): Likewise.
2867 (vmull_n_s16): Likewise.
2868 (vmull_n_s32): Likewise.
2869 (vmull_n_u16): Likewise.
2870 (vmull_n_u32): Likewise.
2871 (vmull_p8): Likewise.
2872 (vmull_s8): Likewise.
2873 (vmull_s16): Likewise.
2874 (vmull_s32): Likewise.
2875 (vmull_u8): Likewise.
2876 (vmull_u16): Likewise.
2877 (vmull_u32): Likewise.
2878 (vpadal_s8): Likewise.
2879 (vpadal_s16): Likewise.
2880 (vpadal_s32): Likewise.
2881 (vpadal_u8): Likewise.
2882 (vpadal_u16): Likewise.
2883 (vpadal_u32): Likewise.
2884 (vpadalq_s8): Likewise.
2885 (vpadalq_s16): Likewise.
2886 (vpadalq_s32): Likewise.
2887 (vpadalq_u8): Likewise.
2888 (vpadalq_u16): Likewise.
2889 (vpadalq_u32): Likewise.
2890 (vpaddl_s8): Likewise.
2891 (vpaddl_s16): Likewise.
2892 (vpaddl_s32): Likewise.
2893 (vpaddl_u8): Likewise.
2894 (vpaddl_u16): Likewise.
2895 (vpaddl_u32): Likewise.
2896 (vpaddlq_s8): Likewise.
2897 (vpaddlq_s16): Likewise.
2898 (vpaddlq_s32): Likewise.
2899 (vpaddlq_u8): Likewise.
2900 (vpaddlq_u16): Likewise.
2901 (vpaddlq_u32): Likewise.
2902 (vpaddq_s8): Likewise.
2903 (vpaddq_s16): Likewise.
2904 (vpaddq_s32): Likewise.
2905 (vpaddq_s64): Likewise.
2906 (vpaddq_u8): Likewise.
2907 (vpaddq_u16): Likewise.
2908 (vpaddq_u32): Likewise.
2909 (vpaddq_u64): Likewise.
2910 (vqdmulh_n_s16): Likewise.
2911 (vqdmulh_n_s32): Likewise.
2912 (vqdmulhq_n_s16): Likewise.
2913 (vqdmulhq_n_s32): Likewise.
2914 (vqmovn_high_s16): Likewise.
2915 (vqmovn_high_s32): Likewise.
2916 (vqmovn_high_s64): Likewise.
2917 (vqmovn_high_u16): Likewise.
2918 (vqmovn_high_u32): Likewise.
2919 (vqmovn_high_u64): Likewise.
2920 (vqmovun_high_s16): Likewise.
2921 (vqmovun_high_s32): Likewise.
2922 (vqmovun_high_s64): Likewise.
2923 (vqrdmulh_n_s16): Likewise.
2924 (vqrdmulh_n_s32): Likewise.
2925 (vqrdmulhq_n_s16): Likewise.
2926 (vqrdmulhq_n_s32): Likewise.
2927 (vrsqrte_u32): Likewise.
2928 (vrsqrteq_u32): Likewise.
2929 (vtst_p8): Likewise.
2930 (vtst_p16): Likewise.
2931 (vtst_p64): Likewise.
2932 (vtstq_p8): Likewise.
2933 (vtstq_p16): Likewise.
2934 (vtstq_p64): Likewise.
2935 (vaddlv_s32): Likewise.
2936 (vaddlv_u32): Likewise.
2937 (vqtbl1_p8): Likewise.
2938 (vqtbl1_s8): Likewise.
2939 (vqtbl1_u8): Likewise.
2940 (vqtbl1q_p8): Likewise.
2941 (vqtbl1q_s8): Likewise.
2942 (vqtbl1q_u8): Likewise.
2943 (vqtbx1_s8): Likewise.
2944 (vqtbx1_u8): Likewise.
2945 (vqtbx1_p8): Likewise.
2946 (vqtbx1q_s8): Likewise.
2947 (vqtbx1q_u8): Likewise.
2948 (vqtbx1q_p8): Likewise.
2949 (vtbl1_s8): Likewise.
2950 (vtbl1_u8): Likewise.
2951 (vtbl1_p8): Likewise.
2952 (vtbl2_s8): Likewise.
2953 (vtbl2_u8): Likewise.
2954 (vtbl2_p8): Likewise.
2955 (vtbl3_s8): Likewise.
2956 (vtbl3_u8): Likewise.
2957 (vtbl3_p8): Likewise.
2958 (vtbl4_s8): Likewise.
2959 (vtbl4_u8): Likewise.
2960 (vtbl4_p8): Likewise.
2961 (vtbx2_s8): Likewise.
2962 (vtbx2_u8): Likewise.
2963 (vtbx2_p8): Likewise.
2964 (vld1_f32): Likewise.
2965 (vld1_f64): Likewise.
2966 (vld1_p8): Likewise.
2967 (vld1_p16): Likewise.
2968 (vld1_p64): Likewise.
2969 (vld1_s8): Likewise.
2970 (vld1_s16): Likewise.
2971 (vld1_s32): Likewise.
2972 (vld1_s64): Likewise.
2973 (vld1_u8): Likewise.
2974 (vld1_u16): Likewise.
2975 (vld1_u32): Likewise.
2976 (vld1_u64): Likewise.
2977 (vld1q_f32): Likewise.
2978 (vld1q_f64): Likewise.
2979 (vld1q_p8): Likewise.
2980 (vld1q_p16): Likewise.
2981 (vld1q_p64): Likewise.
2982 (vld1q_s8): Likewise.
2983 (vld1q_s16): Likewise.
2984 (vld1q_s32): Likewise.
2985 (vld1q_s64): Likewise.
2986 (vld1q_u8): Likewise.
2987 (vld1q_u16): Likewise.
2988 (vld1q_u32): Likewise.
2989 (vld1q_u64): Likewise.
2990 (vpmax_s8): Likewise.
2991 (vpmax_s16): Likewise.
2992 (vpmax_s32): Likewise.
2993 (vpmax_u8): Likewise.
2994 (vpmax_u16): Likewise.
2995 (vpmax_u32): Likewise.
2996 (vpmaxq_s8): Likewise.
2997 (vpmaxq_s16): Likewise.
2998 (vpmaxq_s32): Likewise.
2999 (vpmaxq_u8): Likewise.
3000 (vpmaxq_u16): Likewise.
3001 (vpmaxq_u32): Likewise.
3002 (vpmax_f32): Likewise.
3003 (vpmaxq_f32): Likewise.
3004 (vpmaxq_f64): Likewise.
3005 (vpmaxqd_f64): Likewise.
3006 (vpmaxs_f32): Likewise.
3007 (vpmaxnm_f32): Likewise.
3008 (vpmaxnmq_f32): Likewise.
3009 (vpmaxnmq_f64): Likewise.
3010 (vpmaxnmqd_f64): Likewise.
3011 (vpmaxnms_f32): Likewise.
3012 (vpmin_s8): Likewise.
3013 (vpmin_s16): Likewise.
3014 (vpmin_s32): Likewise.
3015 (vpmin_u8): Likewise.
3016 (vpmin_u16): Likewise.
3017 (vpmin_u32): Likewise.
3018 (vpminq_s8): Likewise.
3019 (vpminq_s16): Likewise.
3020 (vpminq_s32): Likewise.
3021 (vpminq_u8): Likewise.
3022 (vpminq_u16): Likewise.
3023 (vpminq_u32): Likewise.
3024 (vpmin_f32): Likewise.
3025 (vpminq_f32): Likewise.
3026 (vpminq_f64): Likewise.
3027 (vpminqd_f64): Likewise.
3028 (vpmins_f32): Likewise.
3029 (vpminnm_f32): Likewise.
3030 (vpminnmq_f32): Likewise.
3031 (vpminnmq_f64): Likewise.
3032 (vpminnmqd_f64): Likewise.
3033 (vpminnms_f32): Likewise.
3034 (vmla_f32): Likewise.
3035 (vmlaq_f32): Likewise.
3036 (vmlaq_f64): Likewise.
3037 (vmls_f32): Likewise.
3038 (vmlsq_f32): Likewise.
3039 (vmlsq_f64): Likewise.
3040 (vqtbl2_s8): Likewise.
3041 (vqtbl2_u8): Likewise.
3042 (vqtbl2_p8): Likewise.
3043 (vqtbl2q_s8): Likewise.
3044 (vqtbl2q_u8): Likewise.
3045 (vqtbl2q_p8): Likewise.
3046 (vqtbl3_s8): Likewise.
3047 (vqtbl3_u8): Likewise.
3048 (vqtbl3_p8): Likewise.
3049 (vqtbl3q_s8): Likewise.
3050 (vqtbl3q_u8): Likewise.
3051 (vqtbl3q_p8): Likewise.
3052 (vqtbl4_s8): Likewise.
3053 (vqtbl4_u8): Likewise.
3054 (vqtbl4_p8): Likewise.
3055 (vqtbl4q_s8): Likewise.
3056 (vqtbl4q_u8): Likewise.
3057 (vqtbl4q_p8): Likewise.
3058 (vqtbx2_s8): Likewise.
3059 (vqtbx2_u8): Likewise.
3060 (vqtbx2_p8): Likewise.
3061 (vqtbx2q_s8): Likewise.
3062 (vqtbx2q_u8): Likewise.
3063 (vqtbx2q_p8): Likewise.
3064 (vqtbx3_s8): Likewise.
3065 (vqtbx3_u8): Likewise.
3066 (vqtbx3_p8): Likewise.
3067 (vqtbx3q_s8): Likewise.
3068 (vqtbx3q_u8): Likewise.
3069 (vqtbx3q_p8): Likewise.
3070 (vqtbx4_s8): Likewise.
3071 (vqtbx4_u8): Likewise.
3072 (vqtbx4_p8): Likewise.
3073 (vqtbx4q_s8): Likewise.
3074 (vqtbx4q_u8): Likewise.
3075 (vqtbx4q_p8): Likewise.
3076 (vrev16_p8): Likewise.
3077 (vrev16_s8): Likewise.
3078 (vrev16_u8): Likewise.
3079 (vrev16q_p8): Likewise.
3080 (vrev16q_s8): Likewise.
3081 (vrev16q_u8): Likewise.
3082 (vrev32_p8): Likewise.
3083 (vrev32_p16): Likewise.
3084 (vrev32_s8): Likewise.
3085 (vrev32_s16): Likewise.
3086 (vrev32_u8): Likewise.
3087 (vrev32_u16): Likewise.
3088 (vrev32q_p8): Likewise.
3089 (vrev32q_p16): Likewise.
3090 (vrev32q_s8): Likewise.
3091 (vrev32q_s16): Likewise.
3092 (vrev32q_u8): Likewise.
3093 (vrev32q_u16): Likewise.
3094 (vrev64_f32): Likewise.
3095 (vrev64_p8): Likewise.
3096 (vrev64_p16): Likewise.
3097 (vrev64_s8): Likewise.
3098 (vrev64_s16): Likewise.
3099 (vrev64_s32): Likewise.
3100 (vrev64_u8): Likewise.
3101 (vrev64_u16): Likewise.
3102 (vrev64_u32): Likewise.
3103 (vrev64q_f32): Likewise.
3104 (vrev64q_p8): Likewise.
3105 (vrev64q_p16): Likewise.
3106 (vrev64q_s8): Likewise.
3107 (vrev64q_s16): Likewise.
3108 (vrev64q_s32): Likewise.
3109 (vrev64q_u8): Likewise.
3110 (vrev64q_u16): Likewise.
3111 (vrev64q_u32): Likewise.
3112 (vsha1cq_u32): Likewise.
3113 (vsha1mq_u32): Likewise.
3114 (vsha1pq_u32): Likewise.
3115 (vsha1h_u32): Likewise.
3116 (vsha1su0q_u32): Likewise.
3117 (vsha1su1q_u32): Likewise.
3118 (vsha256hq_u32): Likewise.
3119 (vsha256h2q_u32): Likewise.
3120 (vsha256su0q_u32): Likewise.
3121 (vsha256su1q_u32): Likewise.
3122 (vmull_p64): Likewise.
3123 (vmull_high_p64): Likewise.
3124 (vsqrt_f32): Likewise.
3125 (vsqrtq_f32): Likewise.
3126 (vsqrt_f64): Likewise.
3127 (vsqrtq_f64): Likewise.
3128 (vst1_f32): Likewise.
3129 (vst1_f64): Likewise.
3130 (vst1_p8): Likewise.
3131 (vst1_p16): Likewise.
3132 (vst1_p64): Likewise.
3133 (vst1_s8): Likewise.
3134 (vst1_s16): Likewise.
3135 (vst1_s32): Likewise.
3136 (vst1_s64): Likewise.
3137 (vst1_u8): Likewise.
3138 (vst1_u16): Likewise.
3139 (vst1_u32): Likewise.
3140 (vst1_u64): Likewise.
3141 (vst1q_f32): Likewise.
3142 (vst1q_f64): Likewise.
3143 (vst1q_p8): Likewise.
3144 (vst1q_p16): Likewise.
3145 (vst1q_p64): Likewise.
3146 (vst1q_s8): Likewise.
3147 (vst1q_s16): Likewise.
3148 (vst1q_s32): Likewise.
3149 (vst1q_s64): Likewise.
3150 (vst1q_u8): Likewise.
3151 (vst1q_u16): Likewise.
3152 (vst1q_u32): Likewise.
3153 (vst1q_u64): Likewise.
3154 (vst1_s64_x2): Likewise.
3155 (vst1_u64_x2): Likewise.
3156 (vst1_f64_x2): Likewise.
3157 (vst1_s8_x2): Likewise.
3158 (vst1_p8_x2): Likewise.
3159 (vst1_s16_x2): Likewise.
3160 (vst1_p16_x2): Likewise.
3161 (vst1_s32_x2): Likewise.
3162 (vst1_u8_x2): Likewise.
3163 (vst1_u16_x2): Likewise.
3164 (vst1_u32_x2): Likewise.
3165 (vst1_f16_x2): Likewise.
3166 (vst1_f32_x2): Likewise.
3167 (vst1_p64_x2): Likewise.
3168 (vst1q_s8_x2): Likewise.
3169 (vst1q_p8_x2): Likewise.
3170 (vst1q_s16_x2): Likewise.
3171 (vst1q_p16_x2): Likewise.
3172 (vst1q_s32_x2): Likewise.
3173 (vst1q_s64_x2): Likewise.
3174 (vst1q_u8_x2): Likewise.
3175 (vst1q_u16_x2): Likewise.
3176 (vst1q_u32_x2): Likewise.
3177 (vst1q_u64_x2): Likewise.
3178 (vst1q_f16_x2): Likewise.
3179 (vst1q_f32_x2): Likewise.
3180 (vst1q_f64_x2): Likewise.
3181 (vst1q_p64_x2): Likewise.
3182 (vst1_s64_x3): Likewise.
3183 (vst1_u64_x3): Likewise.
3184 (vst1_f64_x3): Likewise.
3185 (vst1_s8_x3): Likewise.
3186 (vst1_p8_x3): Likewise.
3187 (vst1_s16_x3): Likewise.
3188 (vst1_p16_x3): Likewise.
3189 (vst1_s32_x3): Likewise.
3190 (vst1_u8_x3): Likewise.
3191 (vst1_u16_x3): Likewise.
3192 (vst1_u32_x3): Likewise.
3193 (vst1_f16_x3): Likewise.
3194 (vst1_f32_x3): Likewise.
3195 (vst1_p64_x3): Likewise.
3196 (vst1q_s8_x3): Likewise.
3197 (vst1q_p8_x3): Likewise.
3198 (vst1q_s16_x3): Likewise.
3199 (vst1q_p16_x3): Likewise.
3200 (vst1q_s32_x3): Likewise.
3201 (vst1q_s64_x3): Likewise.
3202 (vst1q_u8_x3): Likewise.
3203 (vst1q_u16_x3): Likewise.
3204 (vst1q_u32_x3): Likewise.
3205 (vst1q_u64_x3): Likewise.
3206 (vst1q_f16_x3): Likewise.
3207 (vst1q_f32_x3): Likewise.
3208 (vst1q_f64_x3): Likewise.
3209 (vst1q_p64_x3): Likewise.
3210 (vst2_s64): Likewise.
3211 (vst2_u64): Likewise.
3212 (vst2_f64): Likewise.
3213 (vst2_s8): Likewise.
3214 (vst2_p8): Likewise.
3215 (vst2_s16): Likewise.
3216 (vst2_p16): Likewise.
3217 (vst2_s32): Likewise.
3218 (vst2_u8): Likewise.
3219 (vst2_u16): Likewise.
3220 (vst2_u32): Likewise.
3221 (vst2_f16): Likewise.
3222 (vst2_f32): Likewise.
3223 (vst2_p64): Likewise.
3224 (vst2q_s8): Likewise.
3225 (vst2q_p8): Likewise.
3226 (vst2q_s16): Likewise.
3227 (vst2q_p16): Likewise.
3228 (vst2q_s32): Likewise.
3229 (vst2q_s64): Likewise.
3230 (vst2q_u8): Likewise.
3231 (vst2q_u16): Likewise.
3232 (vst2q_u32): Likewise.
3233 (vst2q_u64): Likewise.
3234 (vst2q_f16): Likewise.
3235 (vst2q_f32): Likewise.
3236 (vst2q_f64): Likewise.
3237 (vst2q_p64): Likewise.
3238 (vst3_s64): Likewise.
3239 (vst3_u64): Likewise.
3240 (vst3_f64): Likewise.
3241 (vst3_s8): Likewise.
3242 (vst3_p8): Likewise.
3243 (vst3_s16): Likewise.
3244 (vst3_p16): Likewise.
3245 (vst3_s32): Likewise.
3246 (vst3_u8): Likewise.
3247 (vst3_u16): Likewise.
3248 (vst3_u32): Likewise.
3249 (vst3_f16): Likewise.
3250 (vst3_f32): Likewise.
3251 (vst3_p64): Likewise.
3252 (vst3q_s8): Likewise.
3253 (vst3q_p8): Likewise.
3254 (vst3q_s16): Likewise.
3255 (vst3q_p16): Likewise.
3256 (vst3q_s32): Likewise.
3257 (vst3q_s64): Likewise.
3258 (vst3q_u8): Likewise.
3259 (vst3q_u16): Likewise.
3260 (vst3q_u32): Likewise.
3261 (vst3q_u64): Likewise.
3262 (vst3q_f16): Likewise.
3263 (vst3q_f32): Likewise.
3264 (vst3q_f64): Likewise.
3265 (vst3q_p64): Likewise.
3266 (vst4_s64): Likewise.
3267 (vst4_u64): Likewise.
3268 (vst4_f64): Likewise.
3269 (vst4_s8): Likewise.
3270 (vst4_p8): Likewise.
3271 (vst4_s16): Likewise.
3272 (vst4_p16): Likewise.
3273 (vst4_s32): Likewise.
3274 (vst4_u8): Likewise.
3275 (vst4_u16): Likewise.
3276 (vst4_u32): Likewise.
3277 (vst4_f16): Likewise.
3278 (vst4_f32): Likewise.
3279 (vst4_p64): Likewise.
3280 (vst4q_s8): Likewise.
3281 (vst4q_p8): Likewise.
3282 (vst4q_s16): Likewise.
3283 (vst4q_p16): Likewise.
3284 (vst4q_s32): Likewise.
3285 (vst4q_s64): Likewise.
3286 (vst4q_u8): Likewise.
3287 (vst4q_u16): Likewise.
3288 (vst4q_u32): Likewise.
3289 (vst4q_u64): Likewise.
3290 (vst4q_f16): Likewise.
3291 (vst4q_f32): Likewise.
3292 (vst4q_f64): Likewise.
3293 (vst4q_p64): Likewise.
3294 (vtbx4_s8): Likewise.
3295 (vtbx4_u8): Likewise.
3296 (vtbx4_p8): Likewise.
3297 (vtrn_f32): Likewise.
3298 (vtrn_p8): Likewise.
3299 (vtrn_p16): Likewise.
3300 (vtrn_s8): Likewise.
3301 (vtrn_s16): Likewise.
3302 (vtrn_s32): Likewise.
3303 (vtrn_u8): Likewise.
3304 (vtrn_u16): Likewise.
3305 (vtrn_u32): Likewise.
3306 (vtrnq_f32): Likewise.
3307 (vtrnq_p8): Likewise.
3308 (vtrnq_p16): Likewise.
3309 (vtrnq_s8): Likewise.
3310 (vtrnq_s16): Likewise.
3311 (vtrnq_s32): Likewise.
3312 (vtrnq_u8): Likewise.
3313 (vtrnq_u16): Likewise.
3314 (vtrnq_u32): Likewise.
3315 (vrsqrte_f16): Likewise.
3316 (vrsqrteq_f16): Likewise.
3317 (vsqrt_f16): Likewise.
3318 (vsqrtq_f16): Likewise.
3319 (vabd_f16): Likewise.
3320 (vabdq_f16): Likewise.
3321 (vpadd_f16): Likewise.
3322 (vpaddq_f16): Likewise.
3323 (vpmax_f16): Likewise.
3324 (vpmaxq_f16): Likewise.
3325 (vpmaxnm_f16): Likewise.
3326 (vpmaxnmq_f16): Likewise.
3327 (vpmin_f16): Likewise.
3328 (vpminq_f16): Likewise.
3329 (vpminnm_f16): Likewise.
3330 (vpminnmq_f16): Likewise.
3331 (vrsqrts_f16): Likewise.
3332 (vrsqrtsq_f16): Likewise.
3333
3334 2019-09-25 Richard Biener <rguenther@suse.de>
3335
3336 PR tree-optimization/91896
3337 * tree-vect-loop.c (vectorizable_reduction): The single
3338 def-use cycle optimization cannot apply when there's more
3339 than one pattern stmt involved.
3340
3341 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3342
3343 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3344 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3345 (reload_macho_picbase_<mode>): Likewise.
3346
3347 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3348
3349 * config/rs6000/rs6000.md: Move darwin.md include until
3350 after the definition of the mode iterators.
3351
3352 2019-09-23 Martin Sebor <msebor@redhat.com>
3353
3354 PR tree-optimization/91570
3355 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3356 non-constant minlen, maxlen and maxbound.
3357
3358 2019-09-24 Richard Biener <rguenther@suse.de>
3359
3360 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3361 Rename to...
3362 (_stmt_vec_info::cond_reduc_code): ... this.
3363 (_stmt_vec_info::induc_cond_initial_val): Add.
3364 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3365 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3366 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3367 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3368 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3369 the reduction code.
3370 (vect_create_epilog_for_reduction): Drop special
3371 induction condition reduction params, pass in reduction code
3372 and simplify.
3373 (vectorizable_reduction): Perform condition reduction kind
3374 selection only at analysis time. Adjust passing on state.
3375
3376 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3377
3378 * config/aarch64/aarch64.md (mov<mode>): Don't call
3379 aarch64_split_dimode_const_store on volatile MEM.
3380
3381 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3382
3383 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3384 Update hwcap string for fp16fml.
3385
3386 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3387
3388 PR middle-end/91866
3389 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3390 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3391
3392 2019-09-24 Martin Liska <mliska@suse.cz>
3393
3394 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3395 instead of if-elseif-elseif-...
3396 * gimple-expr.c (extract_ops_from_tree): Likewise.
3397 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3398 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3399
3400 2019-09-24 Martin Jambor <mjambor@suse.cz>
3401
3402 PR ipa/91831
3403 * ipa-param-manipulation.c (carry_over_param): Make a method of
3404 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3405 in case of a context mismatch.
3406 (ipa_param_body_adjustments::common_initialization): Adjust call to
3407 carry_over_param.
3408 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3409 private method carry_over_param.
3410
3411 2019-09-24 Martin Jambor <mjambor@suse.cz>
3412
3413 PR ipa/91832
3414 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3415
3416 2019-09-24 Richard Biener <rguenther@suse.de>
3417
3418 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3419 base.
3420
3421 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3422
3423 * config/arm/t-arm (arm-builtins.o): Add dependency on
3424 arm_acle_builtins.def.
3425
3426 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3427
3428 PR target/91823
3429 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3430 canonical CONST_INTs. Use gen_rtvec.
3431
3432 2019-09-23 Richard Biener <rguenther@suse.de>
3433
3434 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3435 avoid adjusting by + 0 or * 1.
3436 (vect_create_epilog_for_reduction): Get reduction code only
3437 when necessary. Deal with adjustment_def only when necessary.
3438
3439 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3440
3441 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3442 memmodel index.
3443
3444 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3445
3446 PR ipa/91835
3447 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3448 "ipa-sra".
3449
3450 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3451
3452 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3453 code. Merge code blocks with common conditionals. Use declared
3454 macro instead of a magic number for PIC level.
3455
3456 2019-09-21 Martin Sebor <msebor@redhat.com>
3457
3458 PR middle-end/91830
3459 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3460 Simplify computation of the offset of the referenced subobject.
3461
3462 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3463
3464 * config/darwin.c (machopic_legitimize_pic_address): Check
3465 for lra not reload.
3466
3467 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3468
3469 * ira-conflicts.c (can_use_same_reg_p): New function.
3470 (process_reg_shuffles): Take an insn parameter. Ignore cases
3471 in which input operand op_num could seemingly never be allocated
3472 to the same register as the destination.
3473 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3474
3475 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3476
3477 * simplify-rtx.c (neg_const_int): Replace with...
3478 (neg_poly_int_rtx): ...this new function.
3479 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3480 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3481 (simplify_plus_minus): Likewise for constant terms here.
3482
3483 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3484
3485 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3486 HOST_WIDE_PRINT_UNSIGNED.
3487
3488 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3489
3490 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3491 character.
3492
3493 2019-09-20 Maya Rashish <coypu@sdf.org>
3494
3495 PR target/86811
3496 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3497 Define to speculation_safe_value_not_needed.
3498
3499 2019-09-20 Richard Biener <rguenther@suse.de>
3500 Uros Bizjak <ubizjak@gmail.com>
3501
3502 PR target/91814
3503 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3504 previous change.
3505 (general_scalar_chain::convert_op): Force not suitable memory
3506 operands to a register.
3507
3508 2019-09-20 Richard Biener <rguenther@suse.de>
3509
3510 PR tree-optimization/91821
3511 * tree-vect-loop.c (check_reduction_path): Check we can compute
3512 reduc_idx.
3513 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3514 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3515 operands in canonical order.
3516 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3517 STMT_VINFO_REDUC_IDX.
3518 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3519 (STMT_VINFO_REDUC_IDX): Likewise.
3520
3521 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3522
3523 PR target/91269
3524 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3525
3526 2019-09-20 Richard Biener <rguenther@suse.de>
3527
3528 PR tree-optimization/91822
3529 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3530 parameter.
3531 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3532 for reduc_index in nested cycles, adjust vectorizable_condition
3533 calls.
3534 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3535 parameter.
3536 (vect_analyze_stmt): Adjust.
3537 (vect_transform_stmt): Likewise.
3538
3539 2019-09-20 Richard Biener <rguenther@suse.de>
3540
3541 PR target/91767
3542 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3543 Ensure there's a sequence point between allocating the new register
3544 and passing a reference to a reg via regno_reg_rtx.
3545
3546 2019-09-20 Martin Jambor <mjambor@suse.cz>
3547
3548 * coretypes.h (cgraph_edge): Declare.
3549 * ipa-param-manipulation.c: Rewrite.
3550 * ipa-param-manipulation.h: Likewise.
3551 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3552 (OBJS): Added ipa-sra.o.
3553 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3554 and ref_p, added fields param_adjustments and performed_splits.
3555 (struct cgraph_clone_info): Remove ags_to_skip and
3556 combined_args_to_skip, new field param_adjustments.
3557 (cgraph_node::create_clone): Changed parameters to use
3558 ipa_param_adjustments.
3559 (cgraph_node::create_virtual_clone): Likewise.
3560 (cgraph_node::create_virtual_clone_with_body): Likewise.
3561 (tree_function_versioning): Likewise.
3562 (cgraph_build_function_type_skip_args): Removed.
3563 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3564 using ipa_param_adjustments.
3565 (clone_of_p): Likewise.
3566 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3567 (build_function_decl_skip_args): Likewise.
3568 (duplicate_thunk_for_node): Adjust parameters using
3569 ipa_param_body_adjustments, copy param_adjustments instead of
3570 args_to_skip.
3571 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3572 (cgraph_node::create_virtual_clone): Likewise.
3573 (cgraph_node::create_version_clone_with_body): Likewise.
3574 (cgraph_materialize_clone): Likewise.
3575 (symbol_table::materialize_all_clones): Likewise.
3576 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3577 ipa_replace_map check.
3578 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3579 (initialize_node_lattices): Make aware that some parameters might have
3580 already been removed.
3581 (want_remove_some_param_p): New function.
3582 (create_specialized_node): Convert to using ipa_param_adjustments and
3583 deal with possibly pre-existing adjustments.
3584 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3585 (output_node_opt_summary): Do not stream removed fields. Stream
3586 parameter adjustments instead of argumetns to skip.
3587 (input_node_opt_summary): Likewise.
3588 (input_node_opt_summary): Likewise.
3589 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3590 * lto-streamer.h (lto_section_type): Likewise.
3591 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3592 param_body_adjs.
3593 (copy_decl_to_var): Declare.
3594 * tree-inline.c (update_clone_info): Do not remap old_tree.
3595 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3596 statements, walk all extra generated statements and remap their
3597 operands.
3598 (redirect_all_calls): Add killed SSA names to a hash set.
3599 (remap_ssa_name): Do not remap killed SSA names.
3600 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3601 half of functionality moved to ipa_param_body_adjustments.
3602 (copy_decl_to_var): Make exported.
3603 (copy_body): Destroy killed_new_ssa_names hash set.
3604 (expand_call_inline): Remap performed splits.
3605 (update_clone_info): Likewise.
3606 (tree_function_versioning): Simplify tree_map processing. Updated to
3607 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3608 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3609 for the new interface.
3610 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3611 (simd_clone_compute_base_data_type): Likewise.
3612 (simd_clone_init_simd_arrays): Adjust for the new interface.
3613 (simd_clone_adjust_argument_types): Likewise.
3614 (struct modify_stmt_info): Likewise.
3615 (ipa_simd_modify_stmt_ops): Likewise.
3616 (ipa_simd_modify_function_body): Likewise.
3617 (simd_clone_adjust): Likewise.
3618 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3619 (type_internals_preclude_sra_p): Make public.
3620 * tree-sra.h: New file.
3621 * ipa-inline-transform.c (save_inline_function_body): Update to
3622 refelct new tree_function_versioning signature.
3623 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3624 ipa_param_adjustments to get current parameter indices.
3625 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3626 (ipcp_update_bits): Likewise.
3627 (ipcp_update_vr): Likewise.
3628 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3629 * ipa-sra.c: New file.
3630 * multiple_target.c (create_target_clone): Update to reflet new type
3631 of create_version_clone_with_body.
3632 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3633 tree_function_versioning.
3634 (modify_function): Update to reflect new type of
3635 tree_function_versioning.
3636 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3637 * passes.def: Remove old IPA-SRA and add new one.
3638 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3639 (make_pass_ipa_sra): Declare.
3640 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3641 ipa_sra_retvalues.
3642 * doc/invoke.texi (ipa-sra-max-replacements): New.
3643
3644 2019-09-19 Martin Sebor <msebor@redhat.com>
3645
3646 PR middle-end/91631
3647 * builtins.c (component_size): Correct trailing array computation,
3648 rename to component_ref_size and move...
3649 (compute_objsize): Adjust.
3650 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3651 (builtin_access::strict): Do not consider memmove.
3652 (builtin_access::write_off): New function.
3653 (builtin_memref::builtin_memref): Initialize refsize.
3654 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3655 refsize.
3656 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3657 Handle refsize.
3658 (builtin_access::builtin_access): Initialize dstoff to destination
3659 refeence offset here instead of in maybe_diag_overlap. Adjust
3660 referencess even to unrelated objects. Adjust sizrange of bounded
3661 string functions to reflect bound. For strcat, adjust destination
3662 sizrange by that of source.
3663 (builtin_access::strcat_overlap): Adjust offsets and sizes
3664 to reflect the increase in destination sizrange above.
3665 (builtin_access::overlap): Do not set dstoff here but instead
3666 in builtin_access::builtin_access.
3667 (check_bounds_or_overlap): Use builtin_access::write_off.
3668 (maybe_diag_access_bounds): Add argument. Add informational notes.
3669 (dump_builtin_memref, dump_builtin_access): New functions.
3670 * tree.c (component_ref_size): ...to here.
3671 * tree.h (component_ref_size): Declare.
3672 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3673 nul in the size of the source string.
3674
3675 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3676
3677 PR c/67224
3678 * doc/cpp.texi: Document support for extended characters in
3679 identifiers.
3680 * doc/cppopts.texi: Likewise.
3681
3682 2019-09-19 Richard Biener <rguenther@suse.de>
3683
3684 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3685 (check_reduction_path): New overload having the path as result.
3686 (vect_is_simple_reduction): From the detected reduction
3687 path build a SLP reduction chain if possible.
3688
3689 2019-09-19 Richard Biener <rguenther@suse.de>
3690
3691 PR target/91814
3692 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3693 Force operand to a register if it isn't nonimmediate_operand.
3694
3695 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3696
3697 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3698 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3699 (logical_op): Remove code attribute.
3700 (logical_OP): Likewise.
3701
3702 2019-09-19 Martin Liska <mliska@suse.cz>
3703
3704 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3705 Use proper casting.
3706
3707 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3708
3709 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3710 registers with %R.
3711
3712 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3713 for NE comparison of TImode values.
3714 (aarch64_emit_load_exclusive): Add support for TImode.
3715 (aarch64_emit_store_exclusive): Likewise.
3716 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3717 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3718 Change iterator from ALLI to ALLI_TI.
3719 (@atomic_compare_and_swap<JUST_TI>): New.
3720 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3721 (aarch64_load_exclusive_pair): New.
3722 (aarch64_store_exclusive_pair): New.
3723 * config/aarch64/iterators.md (JUST_TI): New.
3724
3725 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3726 strong_zero_p for aarch64_track_speculation; unify some code paths;
3727 use aarch64_gen_compare_reg instead of open-coding.
3728
3729 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3730 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3731 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3732 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3733 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3734 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3735 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3736 (atomic_<atomic_op><ALLI>): Likewise.
3737 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3738 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3739 * doc/invoke.texi: Document -moutline-atomics.
3740
3741 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3742
3743 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3744 trivial predicate for condition branch.
3745 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3746 for switch case.
3747 (compute_bb_predicates): Update predicate based on post-dominating
3748 relationship.
3749 (analyze_function_body): Calculate post-dominating information.
3750
3751 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3752
3753 * tree-vectorizer.h (vectorizable_condition): Take an int
3754 reduction index instead of a boolean flag.
3755 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3756 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3757 reductions if the reduction accumulator is the "then" rather
3758 than the "else" value.
3759 (vect_analyze_stmt): Update call accordingly.
3760 (vect_transform_stmt): Likewise.
3761 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3762 asserting that the index is > 0.
3763
3764 2019-09-19 Martin Liska <mliska@suse.cz>
3765
3766 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3767 (sort_congruence_classes_by_decl_uid): Likewise.
3768 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3769 easier sorting.
3770 (sem_item_optimizer::merge_classes): Likewise.
3771
3772 2019-09-19 Richard Biener <rguenther@suse.de>
3773
3774 PR tree-optimization/91812
3775 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3776 volatile loads.
3777
3778 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3779
3780 * defaults.h (TARGET_UNIT): New macro.
3781 (target_unit): New type.
3782 * rtl.h (native_encode_rtx, native_decode_rtx)
3783 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3784 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3785 * rtlanal.c (subreg_lsb_1): Delete.
3786 (subreg_size_lsb): New function.
3787 * simplify-rtx.c: Include rtx-vector-builder.h
3788 (simplify_immed_subreg): Delete.
3789 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3790 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3791 functions.
3792 (simplify_subreg): Use them.
3793 (test_vector_subregs_modes, test_vector_subregs_repeating)
3794 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3795 (test_vector_subregs): New functions.
3796 (test_vector_ops): Call test_vector_subregs for integer vector
3797 modes with at least 2 elements.
3798
3799 2019-09-19 Richard Biener <rguenther@suse.de>
3800
3801 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3802 LOOP_VINFO_OPERANDS_SWAPPED.
3803 (parloops_is_simple_reduction): Likewise.
3804 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3805 initialize operands_swapped.
3806 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3807 (vect_is_slp_reduction): Do not swap operands.
3808 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3809 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3810
3811 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3812
3813 PR target/87007
3814 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3815 Add avx_partial_xmm_update.
3816
3817 2019-09-18 Jim Wilson <jimw@sifive.com>
3818
3819 PR target/91683
3820 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3821 (riscv_move_integer): Likewise.
3822 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3823 riscv_move_integer arg.
3824 (riscv_legitimize_move): Likewise.
3825 (riscv_force_temporary): New parameter in_splitter. Don't call
3826 force_reg if true.
3827 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3828 arg.
3829 (riscv_add_offset): Likewise.
3830 (riscv_split_symbol): New parameter in_splitter. Pass to
3831 riscv_force_temporary.
3832 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3833 arg.
3834 (riscv_move_integer): New parameter in_splitter. New local
3835 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3836 in_splitter TRUE.
3837 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3838 riscv_split_symbol, and riscv_force_temporary args.
3839 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3840 riscv_move_integer arg.
3841 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3842
3843 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3844
3845 PR target/90878
3846 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3847 hard register store cost to 6.
3848
3849 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3850
3851 PR target/91446
3852 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3853 pseudo register store cost from 3 to 6 to make it the same as
3854 QImode and HImode.
3855
3856 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3857
3858 PR target/91738
3859 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3860 (one_cmpldi2): Likewise.
3861 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3862 of the constant parts is simple.
3863 * config/arm/iterators.md (LOGICAL): Add new code iterator.
3864 (logical_op): Add new code attribute.
3865 (logical_OP): Likewise.
3866 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3867 (arm_iordi_operand): Add predicate.
3868 (arm_xordi_operand): Add predicate.
3869
3870 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3871
3872 * config/arm/arm.md (maddsidi4): Remove expander.
3873 (mulsidi3adddi): Remove pattern.
3874 (mulsidi3adddi_v6): Likewise.
3875 (mulsidi3_nov6): Likewise.
3876 (mulsidi3_v6): Likewise.
3877 (umulsidi3): Remove expander.
3878 (umulsidi3_nov6): Remove pattern.
3879 (umulsidi3_v6): Likewise.
3880 (umulsidi3adddi): Likewise.
3881 (umulsidi3adddi_v6): Likewise.
3882 (<Us>mulsidi3): Add combined expander.
3883 (<Us>maddsidi4): Likewise.
3884 (<US>mull): Add combined umull and smull pattern.
3885 (<US>mlal): Likewise.
3886 * config/arm/iterators.md (Us): Add new iterator.
3887
3888 2019-09-18 Richard Biener <rguenther@suse.de>
3889
3890 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3891 swapping.
3892 (vectorize_fold_left_reduction): Remove assert.
3893 (vectorizable_reduction): Also expect COND_EXPR non-reduction
3894 operand in position 2. Remove assert.
3895
3896 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3897
3898 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3899 (smulsi3_highpart_nov6): Remove pattern.
3900 (smulsi3_highpart_v6): Likewise.
3901 (umulsi3_highpart): Likewise.
3902 (umulsi3_highpart_nov6): Likewise.
3903 (umulsi3_highpart_v6): Likewise.
3904 (<US>mull_high): Add new combined multiply pattern.
3905
3906 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3907
3908 * config/arm/arm.md (arm_mulsi3): Remove pattern.
3909 (arm_mulsi3_v6): Likewise.
3910 (mulsi3addsi_v6): Likewise.
3911 (mulsi3subsi): Likewise.
3912 (mul): Add new multiply pattern.
3913 (mla): Likewise.
3914 (mls): Likewise.
3915
3916 2019-09-18 Richard Biener <rguenther@suse.de>
3917
3918 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3919 (parloops_valid_reduction_input_p): Copy from
3920 valid_reduction_input_p.
3921 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3922 (parloops_needs_fold_left_reduction_p): Copy from
3923 needs_fold_left_reduction_p.
3924 (parloops_is_simple_reduction): Copy from
3925 vect_is_simple_reduction.
3926 (parloops_force_simple_reduction): Copy from
3927 vect_force_simple_reduction.
3928 (gather_scalar_reductions): Adjust.
3929 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3930 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3931
3932 2019-09-18 Richard Biener <rguenther@suse.de>
3933
3934 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3935 * tree-vect-loop.c (get_initial_def_for_reduction): Make
3936 static.
3937 (vect_create_epilog_for_reduction): Remove dead code.
3938
3939 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3940
3941 * varasm.c (assemble_real): Generate canonical const_ints.
3942
3943 2019-09-18 Richard Biener <rguenther@suse.de>
3944
3945 PR lto/91763
3946 * lto-streamer-in.c (input_eh_regions): Move EH init to
3947 lto_materialize_function.
3948 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3949 Likewise.
3950
3951 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3952
3953 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3954 are INTEGER_CSTs.
3955
3956 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3957
3958 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3959 of checking specifically for INTEGER_CST.
3960
3961 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3962
3963 * stor-layout.c (compute_record_mode): Operate on poly_uint64
3964 sizes instead of uhwi sizes.
3965
3966 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
3967
3968 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3969 (add_const_value_attribute): Handle CONST_POLY_INT.
3970
3971 2019-09-18 Martin Liska <mliska@suse.cz>
3972
3973 * dbgcnt.def (store_merging): New counter.
3974 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3975 Use it in store merging.
3976
3977 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3978
3979 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3980 function.
3981 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3982 * config/arm/arm.c (arm_sched_variable_issue): New function.
3983 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3984
3985 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
3986
3987 * config/arm/types.md (no_reservation): New reservation.
3988 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3989 no_insn here.
3990 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3991 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3992 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3993 * config/arm/arm1020e.md (1020alu_op): Likewise.
3994 * config/arm/arm1026ejs.md (alu_op): Likewise.
3995 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3996 * config/arm/arm926ejs.md (9_alu_op): Likewise.
3997 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3998 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3999 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4000 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4001 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4002 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4003 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4004 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4005 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4006 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4007 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4008 * config/arm/fa526.md (526_alu_op): Likewise.
4009 * config/arm/fa606te.md (606te_alu_op): Likewise.
4010 * config/arm/fa626te.md (626te_alu_op): Likewise.
4011 * config/arm/fa726te.md (726te_alu_op): Likewise.
4012 * config/arm/xgene1.md (xgene1_nop): Likewise.
4013
4014 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4015
4016 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4017 "no_insn" to "branch".
4018
4019 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4020
4021 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4022
4023 2019-09-17 Richard Biener <rguenther@suse.de>
4024
4025 PR debug/91772
4026 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4027 was missing generate locations only once.
4028
4029 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4030
4031 PR ipa/91089
4032 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4033 option.
4034 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4035 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4036 for switch default case using range analysis information.
4037
4038 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4039
4040 PR target/91749
4041 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4042 mode attributed is supported by FDPIC.
4043
4044 2019-09-17 Richard Biener <rguenther@suse.de>
4045
4046 PR tree-optimization/91790
4047 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4048 use the correct DR for setting up realignment.
4049
4050 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4051
4052 PR target/91719
4053 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4054 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4055 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4056 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4057
4058 2019-09-16 Jason Merrill <jason@redhat.com>
4059
4060 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4061
4062 2019-09-16 Martin Liska <mliska@suse.cz>
4063
4064 * gimple-fold.c (or_comparisons_1): Remove rules moved
4065 to ...
4066 * match.pd: ... here.
4067
4068 2019-09-16 Martin Liska <mliska@suse.cz>
4069
4070 * gimple-fold.c (or_comparisons_1): Remove rules
4071 moved to ...
4072 * match.pd: ... here.
4073
4074 2019-09-16 Martin Liska <mliska@suse.cz>
4075
4076 * genmatch.c (dt_node::append_simplify): Do not print
4077 warning when we have duplicate patterns belonging
4078 to a same simplify rule.
4079 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4080 (maybe_fold_comparisons_from_match_pd): Handle
4081 tcc_comparison as a results.
4082 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4083
4084 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4085 Qi Feng <ffengqi@linux.ibm.com>
4086
4087 PR middle-end/88784
4088 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4089 (x > y && x == XXX_MIN): Optimize into 'false'.
4090 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4091 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4092 (x < y && x == XXX_MAX): Optimize into 'false'.
4093 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4094 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4095 (x <= y || x != XXX_MIN): Optimize into 'true'.
4096 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4097 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4098 (x >= y || x != XXX_MAX): Optimize into 'true'.
4099 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4100
4101 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4102 Martin Liska <mliska@suse.cz>
4103
4104 * gimple-fold.c (and_comparisons_1): Add type as first
4105 argument.
4106 (and_var_with_comparison): Likewise.
4107 (and_var_with_comparison_1): Likewise.
4108 (or_comparisons_1): Likewise.
4109 (or_var_with_comparison): Likewise.
4110 (or_var_with_comparison_1): Likewise.
4111 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4112 (maybe_fold_or_comparisons): Likewise.
4113 (maybe_fold_comparisons_from_match_pd): New.
4114 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4115 (maybe_fold_or_comparisons): Likewise.
4116 * gimple.c (gimple_size): Make it public and add num_ops argument.
4117 (gimple_init): New function.
4118 (gimple_alloc): Call gimple_init.
4119 * gimple.h (gimple_size): New.
4120 (gimple_init): Likewise.
4121 * tree-if-conv.c (fold_or_predicates): Pass type.
4122 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4123 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4124 (optimize_vec_cond_expr): Likewise.
4125 (ovce_extract_ops): Return type of conditional expression.
4126 * tree-ssanames.c (init_ssa_name_imm_use): New.
4127 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4128 * tree-ssanames.h (init_ssa_name_imm_use): New.
4129
4130 2019-09-16 Richard Biener <rguenther@suse.de>
4131
4132 PR tree-optimization/91756
4133 PR tree-optimization/87132
4134 * tree-ssa-alias.h (enum translate_flags): New.
4135 (get_continuation_for_phi): Use it instead of simple bool flag.
4136 (walk_non_aliased_vuses): Likewise.
4137 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4138 (get_continuation_for_phi): When looking across backedges only
4139 disallow valueization.
4140 (walk_non_aliased_vuses): Adjust.
4141 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4142 if requested.
4143
4144 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4145
4146 PR middle-end/80791
4147 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4148 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4149 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4150 * target.def (have_count_reg_decr_p): New hook.
4151 (doloop_cost_for_generic): Likewise.
4152 (doloop_cost_for_address): Likewise.
4153 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4154 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4155 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4156 * doc/tm.texi: Regenerate.
4157 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4158 addend.
4159 (record_group): Init doloop_p.
4160 (add_candidate_1): Add optional argument doloop, change the handlings
4161 accordingly.
4162 (add_candidate): Likewise.
4163 (generic_predict_doloop_p): Update attribute.
4164 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4165 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4166 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4167 MIN_EXPR.
4168 (get_computation_cost): Update for doloop IV cand extra cost.
4169 (determine_group_iv_cost_cond): Update for doloop IV cand.
4170 (determine_iv_cost): Likewise.
4171 (ivopts_estimate_reg_pressure): Likewise.
4172 (may_eliminate_iv): Update handlings for doloop IV cand.
4173 (add_iv_candidate_for_doloop): New function.
4174 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4175 (iv_ca_set_no_cp): Update for doloop IV cand.
4176 (iv_ca_set_cp): Likewise.
4177 (iv_ca_dump): Dump register cost.
4178 (find_doloop_use): New function.
4179 (analyze_and_mark_doloop_use): Likewise.
4180 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4181
4182 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4183
4184 PR middle-end/91708
4185 * cse.c (cse_insn): Do not replace anything with a
4186 MEM.
4187
4188 2019-09-13 Ian Lance Taylor <iant@golang.org>
4189
4190 * doc/invoke.texi (Optimize Options): Fix typo.
4191
4192 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4193
4194 PR tree-optimization/89386
4195 * config/i386/sse.md (smulhrs<mode>3): New expander.
4196 (smulhrsv4hi3): Ditto.
4197
4198 2019-09-12 Richard Biener <rguenther@suse.de>
4199
4200 PR tree-optimization/91750
4201 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4202 in the type of the evolution.
4203
4204 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4205
4206 PR tree-optimization/89386
4207 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4208 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4209 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4210 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4211 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4212 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4213 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4214 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4215 (su, r): Handle the unspecs above.
4216 (bt): New int attribute.
4217 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4218 * internal-fn.c (first_commutative_argument): Commutativity info for
4219 above.
4220 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4221 (umulhrs_optab): New optabs.
4222 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4223 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4224 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4225 function.
4226 (vect_vect_recog_func_ptrs): Add it.
4227
4228 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4229
4230 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4231 code.
4232
4233 2019-09-11 Nathan Sidwell <nathan@acm.org>
4234
4235 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4236 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4237
4238 2019-09-11 Richard Biener <rguenther@suse.de>
4239
4240 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4241 * lto-wrapper.c (merge_and_complain): Pick up -g.
4242 (append_compiler_options): Likewise.
4243 (run_gcc): Re-instantiate handling -g0 at link-time.
4244 * doc/invoke.texi (flto): Document debug info generation.
4245
4246 2019-09-11 Richard Biener <rguenther@suse.de>
4247
4248 PR tree-optimization/90387
4249 * vr-values.c (vr_values::extract_range_basic): After inlining
4250 simplify non-constant __builtin_constant_p to false.
4251
4252 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4253
4254 PR rtl-optimization/89795
4255 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4256 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4257
4258 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4259
4260 PR tree-optimization/91723
4261 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4262 instead of pointer equality when checking if argument vectypes are
4263 the same.
4264
4265 PR middle-end/91725
4266 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4267 of get_nonzero_bits, only call it for integral types.
4268
4269 2019-09-11 Richard Biener <rguenther@suse.de>
4270
4271 Revert
4272 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4273
4274 * match.pd: Add flag_unsafe_math_optimizations check
4275 before deciding on the widest type in a binary math operation.
4276
4277 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4278
4279 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4280 and CALL_REALLY_USED_REGISTERS must be defined, and that
4281 CALL_REALLY_USED_REGISTERS is preferred.
4282 * doc/tm.texi: Regenerate.
4283 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4284 (call_really_used_regs): Likewise.
4285 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4286 CALL_REALLY_USED_REGISTERS are defined.
4287 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4288 initial value if defined.
4289 (initial_call_really_used_regs): Delete.
4290 (saved_call_really_used_regs): Likewise.
4291 (CALL_REALLY_USED_REGNO_P): Likewise.
4292 (init_reg_sets): Remove handling of call_really_used_regs.
4293 (save_register_info, restore_register_info, globalize_reg): Likewise.
4294 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4295 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4296 outside operand_reg_set.
4297 (fix_register): Don't change call_used_regs if
4298 CALL_REALLY_USED_REGISTERS is defined.
4299 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4300 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4301 instead of call_really_used_regs.
4302 (csky_conditional_register_usage): Remove the old handling of
4303 call_used_regs and change the handling of call_really_used_regs
4304 to use call_used_regs instead.
4305 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4306 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4307 making a register fixed.
4308 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4309 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4310 instead of call_really_used_regs.
4311 (m32r_conditional_register_usage): Don't set call_used_regs when
4312 making a register fixed.
4313 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4314 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4315 instead of call_really_used_regs.
4316 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4317 (mips_cfun_call_saved_reg_p): Likewise.
4318 (mips_swap_registers): Remove the old handling of call_used_regs
4319 and change the handling of call_really_used_regs to use call_used_regs
4320 instead.
4321 (mips_conditional_register_usage): Likewise.
4322 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4323 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4324 instead of call_really_used_regs.
4325 (mn10300_get_live_callee_saved_regs): Likewise.
4326 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4327 (mn10300_conditional_register_usage): Don't set call_used_regs when
4328 making a register fixed.
4329 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4330 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4331 Remove the old handling of call_used_regs and change the handling
4332 of call_really_used_regs to use call_used_regs instead.
4333 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4334 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4335 instead of call_really_used_regs.
4336 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4337 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4338 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4339 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4340 (s390_conditional_register_usage): Remove the old handling of
4341 call_used_regs and change the handling of call_really_used_regs
4342 to use call_used_regs instead.
4343 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4344 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4345 (sh_fix_range, reg_unused_after): Likewise.
4346 (sh_conditional_register_usage): Remove the old handling of
4347 call_used_regs and change the handling of call_really_used_regs
4348 to use call_used_regs instead.
4349 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4350 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4351 call_used_regs when making a register fixed.
4352 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4353 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4354 call_used_regs when making a register fixed.
4355 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4356 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4357 set call_used_regs when making a register fixed.
4358 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4359 * config/visium/visium.c (visium_conditional_register_usage): Remove
4360 the old handling of call_used_regs and change the handling of
4361 call_really_used_regs to use call_used_regs instead.
4362
4363 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4364
4365 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4366 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4367 * reginfo.c (call_used_regs): New macro.
4368
4369 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4370
4371 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4372 fixed_regs test.
4373 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4374 (bpf_expand_epilogue): Likewise.
4375 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4376 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4377 (ft32_expand_epilogue): Likewise.
4378 * config/i386/i386.c (ix86_save_reg): Likewise.
4379 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4380 (moxie_expand_epilogue): Likewise.
4381 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4382 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4383 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4384
4385 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4386
4387 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4388 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4389 instead of testing call_used_regs directly.
4390 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4391 (aarch64_components_for_bb): Likewise.
4392 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4393 * config/arc/arc.c (arc_must_save_register): Likewise.
4394 (arc_epilogue_uses): Likewise.
4395 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4396 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4397 (arm_compute_save_reg0_reg12_mask): Likewise.
4398 (arm_compute_save_core_reg_mask): Likewise.
4399 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4400 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4401 (cmse_nonsecure_entry_clear_before_return): Likewise.
4402 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4403 (arm_expand_epilogue): Likewise.
4404 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4405 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4406 (_reg_unused_after): Likewise.
4407 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4408 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4409 (add_to_reg, hwloop_optimize): Likewise.
4410 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4411 (bpf_expand_epilogue): Likewise.
4412 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4413 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4414 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4415 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4416 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4417 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4418 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4419 * config/frv/frv.c (frv_stack_info): Likewise.
4420 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4421 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4422 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4423 (move_callee_saved_registers): Likewise.
4424 * config/h8300/h8300.c (byte_reg): Likewise.
4425 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4426 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4427 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4428 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4429 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4430 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4431 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4432 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4433 * config/m32c/m32c.c (need_to_save): Likewise.
4434 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4435 * config/mcore/mcore.c (calc_live_regs): Likewise.
4436 * config/microblaze/microblaze.c (microblaze_must_save_register):
4437 Likewise.
4438 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4439 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4440 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4441 (mmix_expand_epilogue): Likewise.
4442 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4443 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4444 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4445 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4446 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4447 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4448 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4449 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4450 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4451 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4452 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4453 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4454 * config/rl78/rl78.c (need_to_save): Likewise.
4455 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4456 (rs6000_stack_info, generate_set_vrsave): Likewise.
4457 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4458 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4459 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4460 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4461 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4462 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4463 (save_local_or_in_reg_p): Likewise.
4464 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4465 (xstormy16_epilogue_uses): Likewise.
4466 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4467 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4468 * config/v850/v850.c (compute_register_save_size): Likewise.
4469 * config/vax/vax.c (vax_expand_prologue): Likewise.
4470 * config/visium/visium.c (visium_save_reg_p): Likewise.
4471 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4472 * cselib.c (cselib_process_insn): Likewise.
4473 * df-scan.c (df_get_entry_block_def_set): Likewise.
4474 * function.c (aggregate_value_p): Likewise.
4475 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4476 * ira-lives.c (process_bb_node_lives): Likewise.
4477 * ira.c (do_reload): Likewise.
4478 * lra-lives.c (process_bb_lives): Likewise.
4479 * lra-remat.c (lra_remat): Likewise.
4480 * lra.c (lra): Likewise.
4481 * postreload.c (reload_combine_recognize_pattern): Likewise.
4482 (reload_cse_move2add): Likewise.
4483 * recog.c (peep2_find_free_register): Likewise.
4484 * regrename.c (check_new_reg_p): Likewise.
4485 * reload.c (find_equiv_reg): Likewise.
4486 * reload1.c (reload, find_reg): Likewise.
4487 * sel-sched.c (init_hard_regs_data): Likewise.
4488
4489 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4490
4491 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4492 regs_invalidated_by_call & ~fixed_reg_set instead of
4493 call_used_or_fixed_regs & ~fixed_reg_set.
4494 * config/sh/sh.c (output_stack_adjust): Likewise.
4495
4496 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4497
4498 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4499 (call_used_reg_set): Delete.
4500 (call_used_or_fixed_regs): New macro.
4501 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4502 of call_used_reg_set.
4503 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4504 instead of call_used_regs.
4505 (save_call_clobbered_regs): Likewise.
4506 * cfgcleanup.c (old_insns_match_p): Likewise.
4507 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4508 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4509 Likewise.
4510 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4511 * config/sh/sh.c (output_stack_adjust): Likewise.
4512 * final.c (collect_fn_hard_reg_usage): Likewise.
4513 * ira-build.c (ira_build): Likewise.
4514 * ira-color.c (calculate_saved_nregs): Likewise.
4515 (allocno_reload_assign, calculate_spill_cost): Likewise.
4516 * ira-conflicts.c (ira_build_conflicts): Likewise.
4517 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4518 * ira-lives.c (process_bb_node_lives): Likewise.
4519 * ira.c (setup_reg_renumber): Likewise.
4520 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4521 * lra-constraints.c (need_for_call_save_p): Likewise.
4522 (need_for_split_p, inherit_in_ebb): Likewise.
4523 * lra-lives.c (process_bb_lives): Likewise.
4524 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4525 * postreload.c (reload_combine): Likewise.
4526 * regrename.c (find_rename_reg): Likewise.
4527 * reload1.c (reload_as_needed): Likewise.
4528 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4529 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4530 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4531
4532 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4533
4534 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4535 (no_caller_save_reg_set): Delete.
4536 * caller-save.c (init_caller_save): Don't initialize it.
4537 * ira-conflicts.c (ira_build_conflicts): Calculate
4538 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4539
4540 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4541
4542 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4543 (target_hard_regs::x_savable_regs): New field.
4544 (call_fixed_reg_set): Delete.
4545 (savable_regs): New macro,
4546 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4547 (init_reg_sets_1): Likewise. Initialize savable_regs.
4548 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4549 for all registers. Set savable_regs instead of call_fixed_reg_set.
4550 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4551 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4552 * config/sh/sh.c (output_stack_adjust): Likewise.
4553
4554 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4555
4556 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4557 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4558 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4559
4560 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4561
4562 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4563 * rtlanal.c (get_call_rtx_from): Likewise.
4564 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4565 than the pattern to get_call_rtx_from.
4566 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4567 an rtx_insn * instead of an rtx.
4568 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4569
4570 2019-09-10 Martin Liska <mliska@suse.cz>
4571
4572 * common.opt: Use newly added WarnRemoved.
4573 * config/aarch64/aarch64.opt: Likewise.
4574 * config/arm/arm.opt: Likewise.
4575 * config/i386/i386.opt: Likewise.
4576 * config/ia64/ia64.opt: Likewise.
4577 * config/rs6000/rs6000.opt: Likewise.
4578 * doc/options.texi: Document WarnRemoved properly.
4579 * dwarf2out.c (gen_producer_string): Handle renamed
4580 OPT_SPECIAL_warn_removed.
4581 * lto-opts.c (lto_write_options): Likewise.
4582 * lto-wrapper.c (merge_and_complain): Likewise.
4583 * opts-common.c (decode_cmdline_option): Likewise.
4584 (prune_options): Likewise.
4585 (read_cmdline_option): Likewise.
4586 (control_warning_option): Likewise.
4587 * opts.c (print_filtered_help): Likewise.
4588 * optc-gen.awk: Parse for WarnRemoved and make usage
4589 of Deprecated an error.
4590 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4591
4592 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4593
4594 * doc/install.texi: Fix syntax for html generation.
4595
4596 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4597
4598 PR middle-end/91680
4599 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4600 the shift type to type.
4601
4602 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4603
4604 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4605 FDPIC mode.
4606 (stack_protect_combined_test_insn): Likewise.
4607
4608 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4609 Mickaël Guêné <mickael.guene@st.com>
4610
4611 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4612 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4613 (load_tp_soft_fdpic): New pattern.
4614 (load_tp_soft): Disable in FDPIC mode.
4615
4616 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4617 Mickaël Guêné <mickael.guene@st.com>
4618
4619 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4620 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4621 (arm_call_tls_get_addr): Add FDPIC support.
4622 (legitimize_tls_address): Likewise.
4623 (arm_emit_tls_decoration): Likewise.
4624
4625 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4626 Mickaël Guêné <mickael.guene@st.com>
4627
4628 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4629 support.
4630 (arm_trampoline_init): Likewise.
4631 (arm_trampoline_adjust_address): Likewise.
4632 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4633
4634 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4635 Mickaël Guêné <mickael.guene@st.com>
4636
4637 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4638 (legitimize_pic_address): Enforce binding rules on function
4639 pointers in FDPIC mode.
4640 (arm_assemble_integer): Likewise.
4641
4642 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4643 Mickaël Guêné <mickael.guene@st.com>
4644
4645 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4646 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4647 FDPIC.
4648
4649 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4650 Mickaël Guêné <mickael.guene@st.com>
4651
4652 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4653 field.
4654
4655 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4656 Mickaël Guêné <mickael.guene@st.com>
4657
4658 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4659 in FDPIC mode.
4660 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4661 new function.
4662 * config/arm/arm.c (arm_option_override): Define pic register to
4663 FDPIC_REGNUM.
4664 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4665 have no decl or go through PLT.
4666 (calculate_pic_address_constant): New function.
4667 (legitimize_pic_address): Call calculate_pic_address_constant.
4668 (arm_load_pic_register): Handle TARGET_FDPIC.
4669 (arm_is_segment_info_known): New function.
4670 (arm_pic_static_addr): Add support for FDPIC.
4671 (arm_load_function_descriptor): New function.
4672 (arm_emit_call_insn): Add support for FDPIC.
4673 (arm_assemble_integer): Add support for FDPIC.
4674 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4675 Define. (FDPIC_REGNUM): New define.
4676 * config/arm/arm.md (call): Add support for FDPIC.
4677 (call_value): Likewise.
4678 (restore_pic_register_after_call): New pattern.
4679 (untyped_call): Disable if FDPIC.
4680 (untyped_return): Likewise.
4681 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4682
4683 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4684 Mickaël Guêné <mickael.guene@st.com>
4685
4686 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4687 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4688 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4689 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4690 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4691 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4692 * config/arm/uclinuxfdpiceabi.h: New file.
4693
4694 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4695
4696 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4697
4698 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4699 Mickaël Guêné <mickael.guene@st.com>
4700
4701 * config/arm/arm.opt: Add -mfdpic option.
4702 * doc/invoke.texi: Add documentation for -mfdpic.
4703
4704 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4705
4706 * expmed.c (extract_bit_field): Update function comment
4707 regarding alt_rtl.
4708 * expr.c (expand_expr_real): Update function comment
4709 regarding alt_rtl.
4710 (expand_misaligned_mem_ref): New helper function.
4711 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4712 Remove duplicate assignment to "base" at case MEM_REF.
4713 Remove a shadowed variable "unsignedp" at case VCE.
4714
4715 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4716
4717 * regset.h (regs_invalidated_by_call_regset): Delete.
4718 (fixed_reg_set_regset): Likewise.
4719 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4720 (fixed_reg_set_regset, persistent_obstack): Likewise.
4721 (init_reg_sets_1, globalize_reg): Update accordingly.
4722 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4723 instead of a bitmap.
4724 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4725 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4726 instead of regs_invalidated_by_call_regset.
4727 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4728 * df-scan.c (df_scan_start_dump): Likewise.
4729 * dse.c (copy_fixed_regs): Likewise.
4730 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4731
4732 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4733
4734 * array-traits.h: New file.
4735 * coretypes.h (array_traits, bitmap_view): New types.
4736 * bitmap.h: Include "array-traits.h"
4737 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4738 (base_bitmap_view, bitmap_view): New classes.
4739 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4740 * hard-reg-set.h: Include array-traits.h.
4741 (array_traits<HARD_REG_SET>): New struct.
4742 * regset.h (IOR_REG_SET_HRS): New macro.
4743 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4744 rather than iterating over each hard register.
4745 * sched-deps.c (sched_analyze_insn): Likewise.
4746 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4747
4748 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4749
4750 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4751 instead of a HARD_REG_SET *.
4752 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4753 (ira_build): Update call accordingly.
4754 * ira-emit.c (add_range_and_copies_from_move_list): 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 (hard_reg_set_equal_p): Delete.
4761 * cfgcleanup.c (old_insns_match_p): Use == instead of
4762 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4763 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4764 (add_allocno_hard_regs_to_forest): Likewise.
4765 (setup_allocno_available_regs_num): Likewise.
4766 * ira.c (setup_pressure_classes): Likewise.
4767 (setup_allocno_and_important_classes): Likewise.
4768 (setup_reg_class_relations): Likewise.
4769 * lra-lives.c (process_bb_lives): Likewise.
4770 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4771
4772 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4773
4774 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4775 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4776 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4777 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4778 Likewise.
4779 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4780 * ira.c (setup_reg_renumber): Likewise.
4781 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4782 * regrename.c (regrename_find_superclass): Likewise.
4783 * reload1.c (find_reg): Likewise.
4784
4785 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4786
4787 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4788 * caller-save.c (setup_save_areas): Use "&~" instead of
4789 AND_COMPL_HARD_REG_SET.
4790 (save_call_clobbered_regs): Likewise.
4791 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4792 Likewise.
4793 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4794 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4795 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4796 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4797 (mips_conditional_register_usage): Likewise.
4798 * config/sh/sh.c (output_stack_adjust): Likewise.
4799 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4800 (setup_profitable_hard_regs): Likewise.
4801 (get_conflict_and_start_profitable_regs): Likewise.
4802 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4803 (ira_build_conflicts): Likewise.
4804 * ira-costs.c (restrict_cost_classes): Likewise.
4805 (setup_regno_cost_classes_by_aclass): Likewise.
4806 * ira-lives.c (process_bb_node_lives): Likewise.
4807 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4808 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4809 (setup_allocno_and_important_classes, setup_class_translate_array)
4810 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4811 Likewise.
4812 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4813 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4814 (process_alt_operands, inherit_in_ebb): Likewise.
4815 * lra-eliminations.c (update_reg_eliminate): Likewise.
4816 * lra-lives.c (process_bb_lives): Likewise.
4817 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4818 * resource.c (find_dead_or_set_registers): Likewise.
4819 (mark_target_live_regs): Likewise.
4820 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4821 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4822 (implicit_clobber_conflict_p): Likewise.
4823 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4824 (try_shrink_wrapping): Likewise.
4825
4826 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4827
4828 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4829 (HARD_REG_SET::operator|=): Likewise.
4830 (IOR_HARD_REG_SET): Delete.
4831 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4832 IOR_HARD_REG_SET.
4833 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4834 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4835 * final.c (collect_fn_hard_reg_usage): Likewise.
4836 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4837 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4838 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4839 (propagate_some_info_from_allocno): Likewise.
4840 (copy_info_to_removed_store_destinations): Likewise.
4841 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4842 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4843 (fast_allocation): Likewise.
4844 * ira-conflicts.c (ira_build_conflicts): Likewise.
4845 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4846 (process_bb_node_lives): Likewise.
4847 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4848 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4849 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4850 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4851 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4852 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4853 (process_bb_lives): Likewise.
4854 * lra-spills.c (assign_spill_hard_regs): Likewise.
4855 * postreload.c (reload_combine): Likewise.
4856 * reginfo.c (init_reg_sets_1): Likewise.
4857 * regrename.c (merge_overlapping_regs, find_rename_reg)
4858 (merge_chains): Likewise.
4859 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4860 (find_reload_regs, finish_spills, choose_reload_regs_init)
4861 (emit_reload_insns): Likewise.
4862 * reorg.c (redundant_insn): Likewise.
4863 * resource.c (find_dead_or_set_registers, mark_set_resources)
4864 (mark_target_live_regs): Likewise.
4865 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4866 * sched-deps.c (sched_analyze_insn): Likewise.
4867 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4868 (find_best_reg_for_expr): Likewise.
4869 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4870
4871 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4872
4873 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4874 (HARD_REG_SET::operator&): Likewise.
4875 (AND_HARD_REG_SET): Delete.
4876 * caller-save.c (setup_save_areas): Use "&" instead of
4877 AND_HARD_REG_SET.
4878 (save_call_clobbered_regs): Likewise.
4879 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4880 * config/m32c/m32c.c (reduce_class): Likewise.
4881 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4882 * final.c (get_call_reg_set_usage): Likewise.
4883 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4884 (setup_left_conflict_sizes_p): Likewise.
4885 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4886 (ira_build_conflicts): Likewise.
4887 * ira-costs.c (restrict_cost_classes): Likewise.
4888 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4889 (setup_reg_class_relations): Likewise.
4890 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4891 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4892 * resource.c (find_dead_or_set_registers): Likewise.
4893 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4894
4895 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4896
4897 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4898 (COMPL_HARD_REG_SET): Delete.
4899 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4900 of COMPL_HARD_REG_SET.
4901 (try_rename_operands): Likewise.
4902 * config/sh/sh.c (push_regs): Likewise.
4903 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4904 * lra-constraints.c (contains_reg_p): Likewise.
4905 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4906
4907 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4908
4909 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4910 * caller-save.c (save_call_clobbered_regs): Use assignment instead
4911 of COPY_HARD_REG_SET.
4912 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4913 (epiphany_conditional_register_usage): Likewise.
4914 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4915 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4916 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4917 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4918 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4919 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4920 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4921 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4922 * config/sh/sh.c (output_stack_adjust): Likewise.
4923 * final.c (collect_fn_hard_reg_usage): Likewise.
4924 (get_call_reg_set_usage): Likewise.
4925 * ira-build.c (ira_create_object, remove_low_level_allocnos)
4926 (ira_flattening): Likewise.
4927 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4928 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4929 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4930 (ira_reassign_pseudos): Likewise.
4931 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4932 (ira_build_conflicts): Likewise.
4933 * ira-costs.c (restrict_cost_classes): Likewise.
4934 (setup_regno_cost_classes_by_aclass): Likewise.
4935 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4936 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4937 (setup_stack_reg_pressure_class, setup_pressure_classes)
4938 (setup_allocno_and_important_classes, setup_class_translate_array)
4939 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4940 (ira_setup_eliminable_regset): Likewise.
4941 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4942 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4943 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4944 (process_alt_operands, inherit_in_ebb): Likewise.
4945 * lra-lives.c (process_bb_lives): Likewise.
4946 * lra-spills.c (assign_spill_hard_regs): Likewise.
4947 * lra.c (lra): Likewise.
4948 * mode-switching.c (new_seginfo): Likewise.
4949 * postreload.c (reload_combine): Likewise.
4950 * reg-stack.c (straighten_stack): Likewise.
4951 * reginfo.c (save_register_info, restore_register_info): Likewise.
4952 (init_reg_sets_1, record_subregs_of_mode): Likewise
4953 * regrename.c (create_new_chain, rename_chains): Likewise.
4954 * reload1.c (order_regs_for_reload, find_reg): Likewise.
4955 (find_reload_regs): Likewise.
4956 * resource.c (find_dead_or_set_registers): Likewise.
4957 (mark_target_live_regs): Likewise.
4958 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4959
4960 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4961
4962 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4963 (note_pattern_stores): Declare.
4964 (note_stores): Take an rtx_insn *.
4965 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4966 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4967 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4968 (note_stores): Take an rtx_insn * as argument and process
4969 CALL_INSN_FUNCTION_USAGE. Rename old function to...
4970 (note_pattern_stores): ...this.
4971 (find_first_parameter_load): Pass the insn rather than
4972 its pattern to note_stores.
4973 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4974 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4975 (insert_one_insn): Likewise.
4976 * combine.c (combine_instructions): Likewise.
4977 (likely_spilled_retval_p): Likewise.
4978 (try_combine): Use note_pattern_stores instead of note_stores.
4979 (record_dead_and_set_regs): Pass the insn rather than its pattern
4980 to note_stores.
4981 (reg_dead_at_p): Likewise.
4982 * config/bfin/bfin.c (workaround_speculation): Likewise.
4983 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
4984 rather than an rtx.
4985 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4986 instead of note_stores.
4987 (frv_optimize_membar_local): Pass the insn rather than its pattern
4988 to note_stores.
4989 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4990 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4991 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4992 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4993 (mips_reorg_process_insns): Likewise.
4994 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4995 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
4996 rather than rtxes.
4997 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4998 its pattern to note_stores.
4999 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5000 of note_stores.
5001 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5002 the insn to note_stores.
5003 (prescan_insns_for_dce): Update call accordingly.
5004 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5005 to note_stores.
5006 * df-problems.c (can_move_insns_across): Likewise.
5007 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5008 * function.c (assign_parm_setup_reg): Likewise.
5009 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5010 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5011 (single_set_gcse): Likewise.
5012 * ira.c (validate_equiv_mem): Likewise.
5013 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5014 for no_equiv.
5015 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5016 pattern to note_stores.
5017 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5018 * loop-iv.c (simplify_using_initial_values): Likewise.
5019 * mode-switching.c (optimize_mode_switching): Likewise.
5020 * optabs.c (emit_libcall_block_1): Likewise.
5021 (expand_atomic_compare_and_swap): Likewise.
5022 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5023 (record_opr_changes): Likewise. Remove explicit handling of
5024 CALL_INSN_FUNCTION_USAGE.
5025 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5026 * regcprop.c (kill_clobbered_values): Likewise.
5027 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5028 to note_stores.
5029 * regrename.c (build_def_use): Likewise.
5030 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5031 for mark_not_eliminable.
5032 (reload_as_needed): Pass the insn rather than its pattern
5033 to note_stores.
5034 (emit_output_reload_insns): Likewise.
5035 * resource.c (mark_target_live_regs): Likewise.
5036 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5037 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5038 instead of note_stores.
5039 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5040 its pattern to note_stores.
5041 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5042 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5043
5044 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5045
5046 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5047 than a #define. Use a structure rather than an array as the
5048 fallback definition. Remove special cases for low array sizes.
5049 (const_hard_reg_set): New typedef.
5050 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5051 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5052 (hard_reg_set_empty_p): Likewise.
5053 (SET_HARD_REG_BIT): Use a function rather than a macro to
5054 handle the case in which HARD_REG_SET is a structure.
5055 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5056 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5057 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5058 (IOR_COMPL_HARD_REG_SET): Likewise.
5059 (hard_reg_set_iterator::pset): Constify the pointer target.
5060 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5061 of a "const HARD_REG_SET". Update the handling of non-integer
5062 HARD_REG_SETs.
5063 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5064 * reload.h: Likewise.
5065 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5066 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5067 of a "const HARD_REG_SET".
5068 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5069 (range_in_hard_reg_set_p): Likewise.
5070 * ira-costs.c (restrict_cost_classes): Likewise.
5071 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5072 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5073 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5074 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5075 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5076 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5077 take an unsigned int and open-code the HARD_REG_SET operations.
5078
5079 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5080
5081 * Makefile.in (OBJS): Remove bt-load.o.
5082 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5083 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5084 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5085 document that the option no longer does anything.
5086 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5087 * target.def (branch_target_register_class): Delete.
5088 (branch_target_register_callee_saved): Likewise.
5089 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5090 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5091 * doc/tm.texi: Regenerate.
5092 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5093 (make_pass_branch_target_load_optimize2): Likewise.
5094 * passes.def (pass_branch_target_load_optimize1): Likewise.
5095 (pass_branch_target_load_optimize2): Likewise.
5096 * targhooks.h (default_branch_target_register_class): Likewise.
5097 * targhooks.c (default_branch_target_register_class): Likewise.
5098 * opt-suggestions.c (test_completion_valid_options): Remove
5099 -fbtr-bb-exclusive from the list of test options.
5100 * bt-load.c: Remove.
5101
5102 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5103
5104 * match.pd: Add flag_unsafe_math_optimizations check
5105 before deciding on the widest type in a binary math operation.
5106
5107 2019-09-09 Martin Liska <mliska@suse.cz>
5108
5109 * config/i386/i386.opt: Update comment of removed
5110 options that are preserved only for backward
5111 compatibility.
5112
5113 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5114
5115 PR target/87853
5116 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5117 instead of __v16qs.
5118
5119 PR target/91704
5120 * config/i386/avxintrin.h (__v32qs): New typedef.
5121 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5122 instead of __v32qi.
5123
5124 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5125
5126 * doc/invoke.texi (Option Summary): Cover eBPF.
5127 (eBPF Options): New section.
5128 * doc/extend.texi (BPF Built-in Functions): Likewise.
5129 (BPF Kernel Helpers): Likewise.
5130
5131 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5132
5133 * config.gcc: Support for bpf-*-* targets.
5134 * common/config/bpf/bpf-common.c: New file.
5135 * config/bpf/t-bpf: Likewise.
5136 * config/bpf/predicates.md: Likewise.
5137 * config/bpf/constraints.md: Likewise.
5138 * config/bpf/bpf.opt: Likewise.
5139 * config/bpf/bpf.md: Likewise.
5140 * config/bpf/bpf.h: Likewise.
5141 * config/bpf/bpf.c: Likewise.
5142 * config/bpf/bpf-protos.h: Likewise.
5143 * config/bpf/bpf-opts.h: Likewise.
5144 * config/bpf/bpf-helpers.h: Likewise.
5145 * config/bpf/bpf-helpers.def: Likewise.
5146
5147 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5148
5149 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5150 indirect_calls.
5151
5152 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5153
5154 * opt-functions.awk (integer_range_info): Make sure values are in
5155 numeric context before operating with them.
5156
5157 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5158
5159 * genemit.c (gen_split): Print the filename and line number where the
5160 splitter (or peephole2) was defined, to the dump file.
5161
5162 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR tree-optimization/91665
5165 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5166 incompatible with the type of PHI result.
5167
5168 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5169
5170 PR target/91684
5171 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5172 gen_unaligned_storedi for 4-byte aligned addresses.
5173
5174 2019-09-06 Jim Wilson <jimw@sifive.com>
5175
5176 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5177 change.
5178
5179 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5180
5181 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5182
5183 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5184
5185 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5186 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5187
5188 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5189
5190 PR target/91654
5191 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5192 cost of SSE->integer and integer->SSE moves from 2 to 6.
5193 (core_cost): Ditto.
5194
5195 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5196
5197 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5198 before testing TYPE_TRANSPARENT_AGGR.
5199 * calls.c (initialize_argument_information, load_register_parameters):
5200 Likewise.
5201
5202 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5203
5204 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5205 high regs.
5206 (cmp_ior): Likewise.
5207
5208 2019-09-06 Martin Liska <mliska@suse.cz>
5209
5210 * doc/match-and-simplify.texi: Separate tuples with ;.
5211
5212 2019-09-06 Martin Liska <mliska@suse.cz>
5213
5214 PR c++/91125
5215 * Makefile.in: Remove tlink.o.
5216 * collect2.c (do_link): New function isolated
5217 from do_tlink.
5218 (main): Use.
5219 * collect2.h (do_tlink): Remove declaration of do_tlink.
5220 * doc/extend.texi: Remove documentation of -frepo.
5221 * doc/invoke.texi: Likewise.
5222 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5223 * tlink.c: Remove.
5224
5225 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5226 Jim Wilson <jimw@sifive.com>
5227
5228 PR target/91635
5229 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5230 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5231 paradoxical_subreg_p (operands[0]).
5232 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5233 use as intermediate value.
5234
5235 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5236
5237 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5238 (sync_compare_and_swap<mode>_insn): Likewise.
5239
5240 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5241
5242 PR middle-end/91615
5243 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5244 without movmisalign optab.
5245
5246 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5247
5248 PR middle-end/91001
5249 PR middle-end/91105
5250 PR middle-end/91106
5251 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5252 types, use type of their first field instead of type of
5253 args[i].tree_value.
5254
5255 2019-09-05 Richard Biener <rguenther@suse.de>
5256
5257 PR rtl-optimization/91656
5258 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5259 of early out.
5260
5261 2019-09-05 Richard Biener <rguenther@suse.de>
5262
5263 PR middle-end/90501
5264 * tree-inline.c (declare_return_variable): Mark the return
5265 slot as addressable after building an address of it.
5266
5267 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5268
5269 * doc/install.texi: Update and clarify requirements to build GNAT.
5270
5271 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5272
5273 PR middle-end/91577
5274 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5275 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5276 call to be in memory.
5277 (pass_expand::execute): Call discover_nonconstant_array_refs before
5278 setting currently_expanding_to_rtl.
5279
5280 2019-09-04 Caroline Tice <cmtice@google.com>
5281
5282 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5283 specified together.
5284
5285 2019-09-04 Marek Polacek <polacek@redhat.com>
5286
5287 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5288
5289 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5290
5291 PR target/32413
5292 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5293 for QI and HImode moves between SSE and general registers.
5294
5295 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5296
5297 PR c/78736
5298 * doc/invoke.texi: Document -Wenum-conversion.
5299
5300 2019-09-04 Richard Biener <rguenther@suse.de>
5301
5302 PR rtl-optimization/36262
5303 * postreload-gcse.c: Include intl.h and gcse.h.
5304 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5305 to avoid linear list walk.
5306 (record_last_mem_set_info): Gate off if not computing transparentness.
5307 (get_bb_avail_insn): If transparentness isn't computed give up
5308 early.
5309 (gcse_after_reload_main): Skip compute_transp and extended PRE
5310 if gcse_or_cprop_is_too_expensive says so.
5311
5312 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5313
5314 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5315 noinit section.
5316 (msp430_select_section): Handle decls with the "noinit" attribute with
5317 default_elf_select_section.
5318 Handle SECCAT_RODATA_MERGE_* section types with
5319 default_elf_select_section.
5320 Add comments about handling of unsupported section types.
5321 (msp430_section_type_flags): Remove handling of the noinit section.
5322
5323 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5324
5325 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5326 conflicting msp430-specific attributes.
5327 (msp430_section_attr): Likewise.
5328 Add warnings about conflicts with generic "noinit" and "section"
5329 attributes.
5330 Fix grammar in -mlarge error message.
5331 (msp430_data_attr): Rename to msp430_persist_attr.
5332 Add warnings about conflicts with generic "noinit" and "section"
5333 attributes.
5334 Add warning for when variable is not initialized.
5335 Chain conditionals which prevent the attribute being added.
5336 (ATTR_EXCL): New helper.
5337 (attr_reent_exclusions): New exclusion table.
5338 (attr_naked_exclusions): Likewise.
5339 (attr_crit_exclusions): Likewise.
5340 (attr_lower_exclusions): Likewise.
5341 (attr_upper_exclusions): Likewise.
5342 (attr_either_exclusions): Likewise.
5343 (attr_persist_exclusions): Likewise.
5344 (msp430_attribute_table): Update with exclusion rules.
5345 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5346 has a section.
5347
5348 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5349
5350 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5351 (msp430_handle_generic_attribute): New function.
5352 * doc/tm.texi: Regenerate.
5353 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5354 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5355 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5356 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5357
5358 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5359
5360 PR tree-optimization/91504
5361 * match.pd: Add ((~a & b) ^a) --> (a | b).
5362
5363 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5364
5365 PR target/91604
5366 * config/i386/i386-expand.c (split_double_mode): If there is more than
5367 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5368 already split matching MEM operand instead of calling adjust_address
5369 again.
5370
5371 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5372
5373 * config.gcc: Obsolete spu target. Remove references to spu.
5374 * configure.ac: Remove references to spu.
5375 * configure: Regenerate.
5376 * config/spu/: Remove directory.
5377 * common/config/spu/: Remove directory.
5378
5379 * doc/extend.texi: Remove references to spu.
5380 * doc/invoke.texi: Likewise.
5381 * doc/md.texi: Likewise.
5382 * doc/sourcebuild.texi: Likewise.
5383
5384 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5385
5386 PR middle-end/91603
5387 PR middle-end/91612
5388 PR middle-end/91613
5389 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5390 and SSA_NAME referring to CONSTANT_P correctly.
5391
5392 2019-09-03 Richard Biener <rguenther@suse.de>
5393
5394 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5395 (vn_nary_op_insert): Likewise.
5396 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5397 (vn_nary_op_lookup): Likewise.
5398 (vn_nary_op_insert): Likewise.
5399
5400 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5401
5402 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5403 (*op0, 1) instead of XEXP (*op1, 0).
5404
5405 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5406
5407 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5408 (aarch64_fjcvtzs): New define_insn.
5409 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5410 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5411 Add AARCH64_JSCVT.
5412 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5413 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5414 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5415 __ARM_FEATURE_JCVT where appropriate.
5416 * config/aarch64/arm_acle.h (__jcvt): Define.
5417
5418 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5419
5420 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5421 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5422 (aarch64_<frintnzs_op><mode>): New define_insn.
5423 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5424 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5425 __ARM_FEATURE_FRINT when appropriate.
5426 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5427 frint32x, frint64z, frint64x.
5428 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5429 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5430 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5431 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5432 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5433 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5434 * config/aarch64/iterators.md (VSFDF): Define.
5435 (FRINTNZX): Likewise.
5436 (frintnzs_op): Likewise.
5437
5438 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5439
5440 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5441 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5442 Cortex-A34.
5443 * config/aarch64/aarch64-tune.md: Regenerated.
5444 * doc/invoke.texi: Document the new processors.
5445
5446 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5447
5448 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5449 string.
5450 (ssbs): Likewise.
5451 (sve2): Likewise.
5452 (sve2-sm4): Likewise.
5453 (sveaes): Likewise.
5454 (svesha3): Likewise.
5455 (svebitperm): Likewise.
5456
5457 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5458 Richard Biener <rguenther@suse.de>
5459
5460 PR tree-optimization/91597
5461 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5462 BIT_AND_EXPR optimization for pointers, even if both operand
5463 ranges don't include NULL, the result can be NULL.
5464
5465 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5466
5467 PR middle-end/91605
5468 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5469 (non_mem_decl_p): ...this.
5470 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5471 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5472 unconditionally as before.
5473
5474 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5475
5476 PR target/91323
5477 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5478 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5479 * tree.def (LTGT_EXPR): Likewise.
5480 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5481
5482 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5483
5484 PR go/91617
5485 * fold-const.c (range_check_type): For enumeral and boolean
5486 type, pass 1 to type_for_size langhook instead of
5487 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5488 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5489 (build_range_check): Don't call unsigned_type_for for pointer types.
5490 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5491 range_check_type result.
5492
5493 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5494
5495 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5496 (replace_ref): Do not replace a chain of only two candidates which are
5497 valid memory references.
5498
5499 2019-09-02 Martin Liska <mliska@suse.cz>
5500
5501 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5502 Bail out when we'll end up with the same number of clusters as
5503 at the beginning.
5504 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5505 (jump_table_cluster::can_be_handled): Remove the guard
5506 as it's already handled in ::is_enabled. Allocate output
5507 after early bail out.
5508
5509 2019-09-02 Martin Liska <mliska@suse.cz>
5510
5511 PR gcov-profile/91601
5512 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5513 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5514 also negative edges.
5515 (circuit): Handle also negative edges as they can happen
5516 in some situations.
5517
5518 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5519
5520 PR target/91472
5521 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5522 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5523 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5524
5525 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5526
5527 PR middle-end/91623
5528 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5529 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5530 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5531 zero vector.
5532
5533 PR lto/91572
5534 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5535 GIMPLE_ASM TREE_LIST operands.
5536
5537 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5538
5539 * doc/generic.texi (Unary and Binary Expressions): Mark up
5540 an instance of TYPE_MIN.
5541
5542 2019-08-31 Stafford Horne <shorne@gmail.com>
5543
5544 * config/or1k/constraints.md (t): New constraint.
5545 * config/or1k/or1k.h (GOT_REGS): New register class.
5546 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5547
5548 2019-08-30 Jim Wilson <jimw@sifive.com>
5549
5550 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5551 and -fpic and -mplt then disable -msave-restore and warn.
5552
5553 2019-08-30 Martin Sebor <msebor@redhat.com>
5554
5555 PR middle-end/91599
5556 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5557 the statement doesn't have one.
5558 * gimple-pretty-print.c (percent_G_format): Same.
5559
5560 PR middle-end/91584
5561 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5562 before using them to validate MEM_REF offset.
5563
5564 2019-08-30 Marek Polacek <polacek@redhat.com>
5565
5566 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5567
5568 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5569
5570 * config/arm/arm.md (unaligned_loaddi,
5571 unaligned_storedi): New unspec insn patterns.
5572 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5573 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5574 and unaligned_storedi for 4-byte aligned memory.
5575 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5576 4-byte aligned memory.
5577
5578 2019-08-30 Martin Jambor <mjambor@suse.cz>
5579
5580 tree-optimization/91579
5581 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5582 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5583 appropriate.
5584 (arg_needs_copy_p): Removed.
5585 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5586 arg_needs_copy_p.
5587 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5588
5589 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5590
5591 * config/i386/i386-features.c
5592 (general_scalar_chain::compute_convert_gain):
5593 Correct cost for double-word shifts.
5594 (general_scalar_to_vector_candidate_p): Reject count operands
5595 greater or equal to mode bitsize.
5596
5597 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5598
5599 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5600 for moves between SSE and non-general registers and between
5601 mask and non-general registers.
5602 (ix86_register_move_cost): Remove stalled comment.
5603
5604 2019-08-29 Richard Biener <rguenther@suse.de>
5605
5606 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5607 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5608
5609 2019-08-29 Richard Biener <rguenther@suse.de>
5610
5611 PR bootstrap/91580
5612 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5613 Do not emit scalar copies for debug-insns, instead replace
5614 their uses with the reg copy used in the chain or reset them
5615 if there is a reaching definition outside of the chain as well.
5616
5617 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5618
5619 PR target/91560
5620 * config/i386/i386-expand.c (expand_vec_perm_movs,
5621 expand_vec_perm_blend, expand_vec_perm_vpermil,
5622 expand_vec_perm_pshufb, expand_vec_perm_1,
5623 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5624 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5625 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5626 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5627 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5628 comments - replace ix86_expand_vec_perm_builtin_1 with
5629 ix86_expand_vec_perm_const_1.
5630 (expand_vec_perm2_vperm2f128_vblend): New function.
5631 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5632 expand_vec_perm2_vperm2f128_vblend as last resort.
5633 (canonicalize_perm): Formatting fix.
5634
5635 PR tree-optimization/91351
5636 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5637 unsigned_type_for.
5638 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5639 range_check_type returns NULL.
5640 * tree-switch-conversion.c (switch_conversion::build_one_array):
5641 Use range_check_type instead of unsigned_type_for, don't perform
5642 linear opt if it returns NULL.
5643 (bit_test_cluster::find_bit_tests): Formatting fix.
5644 (bit_test_cluster::emit): Use range_check_type instead of
5645 unsigned_type_for.
5646 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5647 returns NULL.
5648
5649 2019-08-29 Richard Biener <rguenther@suse.de>
5650
5651 PR tree-optimization/91568
5652 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5653 (vect_update_max_nunits): Add overload for poly_uint64.
5654 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5655 (vect_build_slp_tree): Record max_nunits into the subtree
5656 and merge it upwards.
5657 (vect_print_slp_tree): Print max_nunits.
5658
5659 2019-08-28 Marek Polacek <polacek@redhat.com>
5660
5661 Implement P1152R4: Deprecating some uses of volatile.
5662 PR c++/91361
5663 * doc/invoke.texi: Document -Wvolatile.
5664
5665 2019-08-28 Marek Polacek <polacek@redhat.com>
5666
5667 PR c++/91360 - Implement C++20 P1143R2: constinit.
5668 * doc/invoke.texi: Document -Wc++20-compat.
5669
5670 2019-08-28 Martin Sebor <msebor@redhat.com>
5671
5672 PR tree-optimization/91457
5673 * builtins.c (component_size): New function.
5674 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5675 * builtins.h (compute_objsize): Add argument.
5676 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5677 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5678 (vrp_prop::check_mem_ref): Same.
5679 (vrp_prop::search_for_addr_array): Set no-warning bit.
5680 (check_array_bounds): Same.
5681
5682 2019-08-28 Martin Sebor <msebor@redhat.com>
5683
5684 PR driver/80545
5685 * opts-common.c (option_enabled): Correct checking for language
5686 options.
5687
5688 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5689
5690 * config/i386/i386.c (ix86_register_move_cost): Do not
5691 limit the cost of moves to/from XMM register to minimum 8.
5692
5693 2019-08-28 Martin Jambor <mjambor@suse.cz>
5694
5695 PR ipa/91468
5696 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5697 checking assert a normal assert to test it really is redundant.
5698 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5699 redundant test.
5700 (update_jump_functions_after_inlining): Removed combining unary
5701 arithmetic operations with an ancestor jump function.
5702 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5703 instead of t.
5704
5705 2019-08-28 Richard Biener <rguenther@suse.de>
5706
5707 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5708 add the MD problem.
5709
5710 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5711 Richard Biener <rguenther@suse.de>
5712
5713 * expr.c (expand_assignment): Handle misaligned DECLs.
5714 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5715 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5716 too.
5717 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5718 * varasm.c (build_constant_desc): Align constants of misaligned types.
5719 * config/arm/predicates.md (aligned_operand): New predicate.
5720 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5721 aligned_operand to check restrictions on memory addresses.
5722 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5723 * config/arm/vec-common.md (mov<VALL>): Likewise.
5724
5725 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5726
5727 PR libgomp/91530
5728 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5729 V_128 iterator instead of VI_128.
5730
5731 2019-08-28 Martin Liska <mliska@suse.cz>
5732
5733 PR tree-optimization/90970
5734 * builtins.c (check_access): Remove assignment to maxread
5735 as it hasn't been used since when it was introduced in r255755.
5736
5737 2019-08-27 Martin Sebor <msebor@redhat.com>
5738
5739 PR tree-optimization/91567
5740 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5741 of unknown strings.
5742 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5743 to PTRDIFF_MAX - 2.
5744
5745 2019-08-27 Jeff Law <law@redhat.com>
5746
5747 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5748 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5749
5750 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5751
5752 PR target/91528
5753 * config/i386/i386-features.c (convert_scalars_to_vector):
5754 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5755 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5756 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5757 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5758
5759 2019-08-27 Richard Biener <rguenther@suse.de>
5760
5761 * config/i386/i386-features.h
5762 (general_scalar_chain::~general_scalar_chain): Add.
5763 (general_scalar_chain::insns_conv): New bitmap.
5764 (general_scalar_chain::n_sse_to_integer): New.
5765 (general_scalar_chain::n_integer_to_sse): Likewise.
5766 (general_scalar_chain::make_vector_copies): Adjust signature.
5767 * config/i386/i386-features.c
5768 (general_scalar_chain::general_scalar_chain): Outline,
5769 initialize new members.
5770 (general_scalar_chain::~general_scalar_chain): New.
5771 (general_scalar_chain::mark_dual_mode_def): Record insns
5772 we need to insert conversions at and count them.
5773 (general_scalar_chain::compute_convert_gain): Account
5774 for conversion instructions at chain boundary.
5775 (general_scalar_chain::make_vector_copies): Generate a single
5776 copy for a def by a specific insn.
5777 (general_scalar_chain::convert_registers): First populate
5778 defs_map, then make copies at out-of chain insns.
5779
5780 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5781
5782 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5783 comment.
5784 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5785
5786 2019-08-27 Martin Liska <mliska@suse.cz>
5787
5788 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5789 loop.
5790 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5791 Enclose in anonymous namespace.
5792 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5793 hard_register initialization in braces.
5794 * tree-vrp.h (value_range_base::supports_type_p): Return false
5795 for function with boolean return type.
5796
5797 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5798
5799 * config/i386/i386.c (emit_i387_cw_initialization)
5800 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5801
5802 2019-08-26 Martin Sebor <msebor@redhat.com>
5803
5804 PR c++/83431
5805 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5806 (sprintf_dom_walker): Remove class.
5807 (get_int_range): Make argument const.
5808 (directive::fmtfunc, directive::set_precision): Same.
5809 (format_none): Same.
5810 (build_intmax_type_nodes): Same.
5811 (adjust_range_for_overflow): Same.
5812 (format_floating): Same.
5813 (format_character): Same.
5814 (format_string): Same.
5815 (format_plain): Same.
5816 (get_int_range): Cast away constness.
5817 (format_integer): Same.
5818 (get_string_length): Call get_range_strlen_dynamic. Handle
5819 null lendata.maxbound.
5820 (should_warn_p): Adjust argument scope qualifier.
5821 (maybe_warn): Same.
5822 (format_directive): Same.
5823 (parse_directive): Same.
5824 (is_call_safe): Same.
5825 (try_substitute_return_value): Same.
5826 (sprintf_dom_walker::handle_printf_call): Rename...
5827 (handle_printf_call): ...to this. Initialize target to host charmap
5828 here instead of in pass_sprintf_length::execute.
5829 (struct call_info): Make global.
5830 (sprintf_dom_walker::compute_format_length): Make global.
5831 (sprintf_dom_walker::handle_gimple_call): Same.
5832 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5833 * print-rtl.c (print_pattern): Reduce the number of spaces to
5834 avoid -Wformat-truncation.
5835 * tree-pass.h (make_pass_warn_printf): New function.
5836 * tree-ssa-strlen.c (strlen_optimize): New variable.
5837 (get_string_length): Add comments.
5838 (get_range_strlen_dynamic): New function.
5839 (check_and_optimize_call): New function.
5840 (handle_integral_assign): New function.
5841 (strlen_check_and_optimize_stmt): Factor code out into
5842 strlen_check_and_optimize_call and handle_integral_assign.
5843 (strlen_dom_walker::evrp): New member.
5844 (strlen_dom_walker::before_dom_children): Use evrp member.
5845 (strlen_dom_walker::after_dom_children): Use evrp member.
5846 (printf_strlen_execute): New function.
5847 (pass_strlen::gate): Update to handle printf calls.
5848 (dump_strlen_info): New function.
5849 (pass_data_warn_printf): New variable.
5850 (pass_warn_printf): New class.
5851 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5852 (handle_printf_call): Same.
5853 * tree-vrp.c (value_range_base::type): Adjust assertion.
5854 * vr-values.c (vr_values::update_value_range): Use type of the first
5855 argument rather than the second.
5856
5857 2019-08-26 Richard Biener <rguenther@suse.de>
5858
5859 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5860 Remove.
5861 (convert_scalars_to_vector): Do not call it.
5862
5863 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5864 Uros Bizjak <ubizjak@gmail.com>
5865
5866 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5867 CASE_MATHFN_FLOATN for roundeven.
5868 * config/i386/i386.c (ix86_i387_mode_needed): Add case
5869 I387_ROUNDEVEN.
5870 (ix86_mode_needed): Likewise.
5871 (ix86_mode_after): Likewise.
5872 (ix86_mode_entry): Likewise.
5873 (ix86_mode_exit): Likewise.
5874 (ix86_emit_mode_set): Likewise.
5875 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5876 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5877 (ix86_entity): Add I387_ROUNDEVEN.
5878 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5879 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5880 (define_int_iterator): Likewise.
5881 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5882 (define_constant): Define ROUND_ROUNDEVEN mode.
5883 (define_attr): Add roundeven mode for i387_cw.
5884 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5885 * internal-fn.def (ROUNDEVEN): New builtin function.
5886 * optabs.def (roundeven_optab): New optab.
5887
5888 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
5889
5890 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5891 for ROUNDEVEN.
5892 * builtins.def: Added function definitions for roundeven function
5893 variants.
5894 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5895 function call. Adjust condition for floor, ceil, trunc and round.
5896 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5897 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5898 (integer_valued_real_call_p): Added case for roundeven function.
5899 * real.c (is_even): New function. Returns true if real number is even,
5900 otherwise returns false.
5901 (is_halfway_below): New function. Returns true if real number is
5902 halfway between two integers, else return false.
5903 (real_roundeven): New function. Round real number to nearest integer,
5904 rounding halfway cases towards even.
5905 * real.h (real_value): Added descriptive comments. Added function
5906 declaration for roundeven function.
5907 * doc/extend.texi (Other Builtins): List roundeven variants among
5908 functions which can be handled as builtins.
5909
5910 2019-08-26 Richard Biener <rguenther@suse.de>
5911
5912 PR target/91522
5913 PR target/91527
5914 * config/i386/i386-features.h (general_scalar_chain::defs_map):
5915 New member.
5916 (general_scalar_chain::replace_with_subreg): Remove.
5917 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5918 (general_scalar_chain::convert_reg): Adjust signature.
5919 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5920 iterate over all defs of a reg.
5921 (general_scalar_chain::replace_with_subreg): Remove.
5922 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5923 (general_scalar_chain::make_vector_copies): Populate defs_map,
5924 place copy only after defs that are used as vectors in the chain.
5925 (general_scalar_chain::convert_reg): Emit a copy for a specific
5926 def in a specific instruction.
5927 (general_scalar_chain::convert_op): All reg uses are converted here.
5928 (general_scalar_chain::convert_insn): Emit copies for scalar
5929 uses of defs here. Replace uses with the copies we created.
5930 Replace and convert the def. Adjust REG_DEAD notes, remove
5931 REG_EQUIV/EQUAL notes.
5932 (general_scalar_chain::convert_registers): Only handle copies
5933 into the chain here.
5934
5935 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5936
5937 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5938
5939 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
5940
5941 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5942 Add nop_convert case.
5943 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5944 Fold all statements if requested.
5945 * tree-ssa-propagate.h (class substitute_and_fold_engine):
5946 Allow to fold all statements.
5947 * tree-vrp.c (class vrp_folder):
5948 Let substitute_and_fold_engine fold all statements.
5949
5950 2019-08-26 Richard Biener <rguenther@suse.de>
5951
5952 PR tree-optimization/91526
5953 * passes.def: Note that after late FRE we do TODO_update_address_taken.
5954 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5955 TODO_update_address_taken.
5956
5957 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
5958
5959 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5960 __STDC_HOSTED__.
5961
5962 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5963
5964 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5965 machine mode for unspec_volatile operand.
5966
5967 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
5968
5969 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5970 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5971 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5972 (prefer_neon_for_64bits): Remove.
5973 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5974 (tune_params): Remove PREF_NEON_64_FALSE uses.
5975 (arm_option_override): Remove prefer_neon selection code.
5976 (arm_print_tune_info): Remove prefer_neon_for_64bits.
5977 * gcc/config/arm/arm-protos.h (tune_params): Remove
5978 prefer_neon_for_64bits.
5979 (prefer_neon_for_64bits): Remove.
5980
5981 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
5982
5983 PR pch/61250
5984 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5985 and issue any diagnostics needed before collecting the pre-PCH
5986 state.
5987
5988 2019-08-23 Jakub Jelinek <jakub@redhat.com>
5989
5990 PR middle-end/91283
5991 * common.opt (fexcess-precision=): Add Optimization flag. Use
5992 flag_excess_precision variable instead of
5993 flag_excess_precision_cmdline.
5994 * flags.h (class target_flag_state): Remove x_flag_excess_precision
5995 member.
5996 (flag_excess_precision): Don't define.
5997 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5998 flag_excess_precision_cmdline. Remove comment.
5999 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6000 and x_flag_excess_precision instead of
6001 frontend_set_flag_excess_precision_cmdline and
6002 x_flag_excess_precision_cmdline.
6003 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6004 x_flag_excess_precision_cmdline.
6005 * toplev.c (init_excess_precision): Remove.
6006 (lang_dependent_init_target): Don't call it.
6007
6008 2019-08-23 Martin Liska <mliska@suse.cz>
6009
6010 * lto-wrapper.c (run_gcc): When setting jobserver
6011 set also parallel to 1. This was done so before r273908.
6012
6013 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6014
6015 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6016 (cortex-a76ae): Likewise.
6017 (cortex-a77): Likewise
6018 * config/arm/arm-tables.opt: Regenerate.
6019 * config/arm/arm-tune.md: Likewise.
6020 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6021 cortex-a77 CPU options.
6022
6023 2019-08-23 Martin Liska <mliska@suse.cz>
6024
6025 * profile.c (instrument_values): Do not set
6026 0 as last argument.
6027 * tree-profile.c (gimple_gen_interval_profiler): Remove
6028 last argument.
6029 (gimple_gen_pow2_profiler): Likewise.
6030 (gimple_gen_topn_values_profiler): Likewise.
6031 (gimple_gen_ic_profiler): Likewise.
6032 (gimple_gen_time_profiler): Likewise.
6033 (gimple_gen_average_profiler): Likewise.
6034 (gimple_gen_ior_profiler): Likewise.
6035 * value-prof.c (dump_histogram_value): Use default
6036 in switch statement instead of HIST_TYPE_MAX.
6037 (stream_in_histogram_value): Likewise.
6038 (gimple_duplicate_stmt_histograms): Do not
6039 use NULL for implicitly set arguments.
6040 (gimple_divmod_values_to_profile): Do not use
6041 reserve+quick_push.
6042 (gimple_indirect_call_to_profile): Likewise.
6043 (gimple_find_values_to_profile): Use implicit
6044 function call arguments.
6045 * value-prof.h (gimple_alloc_histogram_value):
6046 Set default values.
6047 (gimple_gen_interval_profiler): Remove last argument.
6048 (gimple_gen_pow2_profiler): Likewise.
6049 (gimple_gen_topn_values_profiler): Likewise.
6050 (gimple_gen_ic_profiler): Likewise.
6051 (gimple_gen_time_profiler): Likewise.
6052 (gimple_gen_average_profiler): Likewise.
6053 (gimple_gen_ior_profiler): Likewise.
6054
6055 2019-08-22 Martin Sebor <msebor@redhat.com>
6056
6057 PR middle-end/91490
6058 * builtins.c (c_strlen): Rename argument and introduce new local.
6059 Set no-warning bit on original argument.
6060 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6061 Fold empty and zero constructors into empty strings.
6062 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6063 for missing initializers.
6064 * tree.c (build_string_literal): Handle optional argument.
6065 * tree.h (build_string_literal): Add defaulted argument.
6066 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6067 no-warning bit on original expression.
6068
6069 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6070
6071 PR target/91481
6072 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6073 and UNSPEC_DARN_RAW.
6074 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6075 UNSPECV_DARN_RAW.
6076 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6077 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6078 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6079
6080 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6081
6082 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6083 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6084 * config/rs6000/rs6000.md (unspec): ... here.
6085 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6086 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6087 cmpeqb, *cmpeqb_internal): Delete, move to...
6088 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6089 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6090 cmpeqb, *cmpeqb_internal): ... here.
6091
6092 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6093
6094 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6095 intrinsics if __ARM_FP.
6096 Use __ARM_FEATURE_CRC32 ifdef guard.
6097
6098 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6099
6100 * config/arm/arm.md (neon_for_64bits): Remove.
6101 (avoid_neon_for_64bits): Remove.
6102 (arm_adddi3): Always split early.
6103 (arm_subdi3): Always split early.
6104 (negdi2): Remove Neon expansion.
6105 (split zero_extend): Split before reload.
6106 (split sign_extend): Split before reload.
6107
6108 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6109
6110 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6111 (qhs_extenddi_cstr): Likewise.
6112 * config/arm/arm.md (ashldi3): Always expand early.
6113 (ashlsi3): Likewise.
6114 (ashrsi3): Likewise.
6115 (zero_extend<mode>di2): Remove Neon variants.
6116 (extend<mode>di2): Likewise.
6117 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6118 (signed_shift_di3_neon): Likewise.
6119 (unsigned_shift_di3_neon): Likewise.
6120 (ashrdi3_neon_imm_noclobber): Likewise.
6121 (lshrdi3_neon_imm_noclobber): Likewise.
6122 (<shift>di3_neon): Likewise.
6123 (split extend): Remove DI extend split patterns.
6124
6125 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6126
6127 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6128 (split not): Add DImode not splitter.
6129 (anddi3): Remove pattern.
6130 (anddi3_insn): Likewise.
6131 (anddi_zesidi_di): Likewise.
6132 (anddi_sesdi_di): Likewise.
6133 (anddi_notdi_di): Likewise.
6134 (anddi_notzesidi_di): Likewise.
6135 (anddi_notsesidi_di): Likewise.
6136 (iordi3): Likewise.
6137 (iordi3_insn): Likewise.
6138 (iordi_zesidi_di): Likewise.
6139 (iordi_sesidi_di): Likewise.
6140 (xordi3): Likewise.
6141 (xordi3_insn): Likewise.
6142 (xordi_sesidi_di): Likewise.
6143 (xordi_zesidi_di): Likewise.
6144 (one_cmpldi2): Likewise.
6145 (one_cmpldi2_insn): Likewise.
6146 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6147 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6148 alternative.
6149 (iwmmxt_xordi3): Likewise.
6150 (iwmmxt_anddi3): Likewise.
6151 * config/arm/neon.md (orndi3_neon): Remove pattern.
6152 (anddi_notdi_di): Likewise.
6153 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6154 (arm_iordi_operand_neon): Likewise.
6155 (arm_xordi_operand_neon): Likewise.
6156 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6157 (iordi_notzesidi_di): Likewise.
6158 (iordi_notdi_zesidi): Likewise.
6159 (iordi_notsesidi_di): Likewise.
6160
6161 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6162
6163 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6164 insn.
6165 (iorsi3_compare0_scratch): Likewise.
6166
6167 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6168
6169 * config/aarch64/aarch64-simd-builtins.def:
6170 (ld1x4): New.
6171 (st1x4): Likewise.
6172 * config/aarch64/aarch64-simd.md:
6173 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6174 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6175 (aarch64_ld1_x4_<mode>): Likewise.
6176 (aarch64_st1_x4_<mode>): Likewise.
6177 * config/aarch64/arm_neon.h:
6178 (vld1_s8_x4): New function.
6179 (vld1q_s8_x4): Likewise.
6180 (vld1_s16_x4): Likewise.
6181 (vld1q_s16_x4): Likewise.
6182 (vld1_s32_x4): Likewise.
6183 (vld1q_s32_x4): Likewise.
6184 (vld1_u8_x4): Likewise.
6185 (vld1q_u8_x4): Likewise.
6186 (vld1_u16_x4): Likewise.
6187 (vld1q_u16_x4): Likewise.
6188 (vld1_u32_x4): Likewise.
6189 (vld1q_u32_x4): Likewise.
6190 (vld1_f16_x4): Likewise.
6191 (vld1q_f16_x4): Likewise.
6192 (vld1_f32_x4): Likewise.
6193 (vld1q_f32_x4): Likewise.
6194 (vld1_p8_x4): Likewise.
6195 (vld1q_p8_x4): Likewise.
6196 (vld1_p16_x4): Likewise.
6197 (vld1q_p16_x4): Likewise.
6198 (vld1_s64_x4): Likewise.
6199 (vld1_u64_x4): Likewise.
6200 (vld1_p64_x4): Likewise.
6201 (vld1q_s64_x4): Likewise.
6202 (vld1q_u64_x4): Likewise.
6203 (vld1q_p64_x4): Likewise.
6204 (vld1_f64_x4): Likewise.
6205 (vld1q_f64_x4): Likewise.
6206 (vst1_s8_x4): Likewise.
6207 (vst1q_s8_x4): Likewise.
6208 (vst1_s16_x4): Likewise.
6209 (vst1q_s16_x4): Likewise.
6210 (vst1_s32_x4): Likewise.
6211 (vst1q_s32_x4): Likewise.
6212 (vst1_u8_x4): Likewise.
6213 (vst1q_u8_x4): Likewise.
6214 (vst1_u16_x4): Likewise.
6215 (vst1q_u16_x4): Likewise.
6216 (vst1_u32_x4): Likewise.
6217 (vst1q_u32_x4): Likewise.
6218 (vst1_f16_x4): Likewise.
6219 (vst1q_f16_x4): Likewise.
6220 (vst1_f32_x4): Likewise.
6221 (vst1q_f32_x4): Likewise.
6222 (vst1_p8_x4): Likewise.
6223 (vst1q_p8_x4): Likewise.
6224 (vst1_p16_x4): Likewise.
6225 (vst1q_p16_x4): Likewise.
6226 (vst1_s64_x4): Likewise.
6227 (vst1_u64_x4): Likewise.
6228 (vst1_p64_x4): Likewise.
6229 (vst1q_s64_x4): Likewise.
6230 (vst1q_u64_x4): Likewise.
6231 (vst1q_p64_x4): Likewise.
6232 (vst1_f64_x4): Likewise.
6233 (vst1q_f64_x4): Likewise.
6234
6235 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6236
6237 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6238
6239 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6240 Richard Sandiford <richard.sandiford@arm.com>
6241
6242 PR target/88839
6243 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6244 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6245
6246 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6247
6248 PR target/90724
6249 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6250 in reg if it fails aarch64_plus_operand predicate.
6251
6252 2019-08-21 Richard Biener <rguenther@suse.de>
6253
6254 PR tree-optimization/91482
6255 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6256 BUILT_IN_ASSUME_ALIGNED calls.
6257
6258 2019-08-21 Richard Biener <rguenther@suse.de>
6259
6260 PR target/91498
6261 PR target/91503
6262 * config/i386/i386-features.c
6263 (general_scalar_chain::make_vector_copies): Copy stack temporary
6264 rtx when using it multiple times.
6265 (general_scalar_chain::convert_reg): Likewise.
6266
6267 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6268
6269 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6270
6271 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6272
6273 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6274 catch more redundant zero initialization cases.
6275 (dse_dom_walker::dse_optimize_stmt): Likewise.
6276
6277 2019-08-20 Richard Biener <rguenther@suse.de>
6278
6279 PR lto/91307
6280 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6281 by collect2 when targetm.have_ctors_dtors which avoids dragging
6282 in temporary filenames from LTO input objects.
6283
6284 2019-08-20 Richard Biener <rguenther@suse.de>
6285
6286 PR tree-optimization/37242
6287 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6288 to (T)a + (T)b if we know that a + b does not overflow.
6289
6290 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6291
6292 PR rtl-optimization/91347
6293 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6294 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6295
6296 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6297
6298 * calls.h (function_arg_info): Add a pass_by_reference field,
6299 defaulting to false.
6300 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6301 when applying pass-by-reference semantics.
6302 (initialize_argument_information): Likewise.
6303 (emit_library_call_value_1): Likewise.
6304 * function.c (assign_parm_data_one): Remove passed_pointer field.
6305 (assign_parm_find_data_types): Don't set it.
6306 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6307 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6308 arg.pass_by_reference instead of passed_pointer.
6309
6310 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6311
6312 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6313 into a single function_arg_info, updating its fields when we
6314 apply pass-by-reference and promotion semantics. Use the
6315 function_arg_info to track the mode rather than keeping it in
6316 a separate local variable.
6317 (initialize_argument_information): Likewise. Base the final
6318 arg_to_skip on this new function_arg_info rather than creating
6319 a new one from scratch.
6320
6321 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6322
6323 * function.c (assign_parm_data_one): Replace passed_type,
6324 promoted_mode and named_arg with a function_arg_info field.
6325 (assign_parm_find_data_types): Remove local variables and
6326 assign directly to "data". Make data->passed_mode shadow
6327 data->arg.mode until promotion, then assign the promoted
6328 mode to data->arg.mode.
6329 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6330 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6331 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6332 (assign_parm_setup_block, assign_parm_setup_reg)
6333 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6334 arg.mode instead of promoted_mode, arg.type instead of passed_type
6335 and arg.named instead of named_arg. Use data->arg for
6336 function_arg_info structures that had the field values passed_type,
6337 promoted_mode and named_arg. Base other function_arg_infos on
6338 data->arg, changing the necessary properties.
6339
6340 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6341
6342 * calls.h (apply_pass_by_reference_rules): Declare.
6343 * calls.c (apply_pass_by_reference_rules): New function.
6344 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6345 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6346 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6347 * function.c (assign_parm_find_data_types): Likewise.
6348 * var-tracking.c (prepare_call_arguments): Likewise.
6349
6350 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6351
6352 * target.def (must_pass_in_stack): Take a function_arg_info instead
6353 of a mode and a type.
6354 * doc/tm.texi: Regenerate.
6355 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6356 instead of a mode and a type.
6357 (must_pass_in_stack_var_size_or_pad): Likewise.
6358 * calls.c (must_pass_in_stack_var_size): Likewise.
6359 (must_pass_in_stack_var_size_or_pad): Likewise.
6360 (initialize_argument_information): Update call to
6361 targetm.calls.must_pass_in_stack.
6362 (must_pass_va_arg_on_stack): Likewise.
6363 * function.c (assign_parm_find_entry_rtl): Likewise.
6364 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6365 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6366 (alpha_function_arg_advance): Likewise.
6367 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6368 (cr16_function_arg_advance): Likewise.
6369 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6370 (cris_arg_partial_bytes): Likewise.
6371 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6372 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6373 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6374 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6375 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6376 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6377 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6378 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6379 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6380 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6381 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6382 instead of a mode and a type.
6383 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6384 (fr30_num_arg_regs): Likewise.
6385 (fr30_setup_incoming_varargs): Update calls accordingly.
6386 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6387 (fr30_function_arg_advance): Likewise.
6388 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6389 instead of a mode and a type.
6390 * config/gcn/gcn.c (num_arg_regs): Likewise.
6391 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6392 num_arg_regs and targetm.calls.must_pass_in_stack.
6393 (gcn_arg_partial_bytes): Likewise.
6394 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6395 function_arg_info instead of a mode and a type.
6396 (classify_argument): Update call accordingly.
6397 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6398 function_arg_info instead of a mode and a type.
6399 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6400 Likewise.
6401 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6402 (rs6000_parm_needs_stack): Update call accordingly.
6403 (setup_incoming_varargs): Likewise.
6404
6405 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6406
6407 * target.def (callee_copies): Take a function_arg_info instead
6408 of a mode, type and named flag.
6409 * doc/tm.texi: Regenerate.
6410 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6411 instead of a mode, type and named flag.
6412 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6413 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6414 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6415 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6416 instead of a mode, type and named flag.
6417 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6418 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6419 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6420 * calls.h (reference_callee_copied): Take a function_arg_info
6421 instead of a mode, type and named flag.
6422 * calls.c (reference_callee_copied): Likewise.
6423 (initialize_argument_information): Update call accordingly.
6424 (emit_library_call_value_1): Likewise.
6425 * function.c (gimplify_parameters): Likewise.
6426 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6427 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6428 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6429 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6430 (TARGET_CALLEE_COPIES): Define to
6431 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6432 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6433 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6434 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6435 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6436 instead of a mode, type and named flag.
6437 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6438 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6439 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6440 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6441 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6442 (TARGET_CALLEE_COPIES): Define to
6443 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6444 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6445 instead of a mode, type and named flag.
6446 * config/sh/sh.c (sh_callee_copies): Likewise.
6447 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6448 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6449 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6450
6451 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6452
6453 * target.def (function_arg_advance): Take a function_arg_info instead
6454 of a mode, type and named flag.
6455 * doc/tm.texi: Regenerate.
6456 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6457 instead of a mode, type and named flag.
6458 * targhooks.c (default_function_arg_advance): Likewise.
6459 * calls.c (initialize_argument_information): Update call to
6460 targetm.calls.function_arg_advance.
6461 (emit_library_call_value_1): Likewise.
6462 * dse.c (get_call_args): Likewise.
6463 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6464 * function.c (assign_parms, gimplify_parameters): Likewise.
6465 * var-tracking.c (prepare_call_arguments): Likewise.
6466 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6467 function_arg_info instead of a mode, type and named flag.
6468 (aarch64_setup_incoming_varargs): Update call accordingly.
6469 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6470 function_arg_info instead of a mode, type and named flag.
6471 (alpha_setup_incoming_varargs): Update call accordingly.
6472 * config/arc/arc.c (arc_function_arg_advance): Take a
6473 function_arg_info instead of a mode, type and named flag.
6474 (arc_setup_incoming_varargs): Update call accordingly.
6475 * config/arm/arm.c (arm_function_arg_advance): Take a
6476 function_arg_info instead of a mode, type and named flag.
6477 (cmse_func_args_or_return_in_stack): Update call accordingly.
6478 (arm_function_ok_for_sibcall): Likewise.
6479 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6480 * config/avr/avr.c (avr_function_arg_advance): Take a
6481 function_arg_info instead of a mode, type and named flag.
6482 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6483 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6484 (c6x_call_saved_register_used): Update call accordingly.
6485 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6486 function_arg_info instead of a mode, type and named flag.
6487 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6488 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6489 (csky_setup_incoming_varargs): Update call accordingly.
6490 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6491 function_arg_info instead of a mode, type and named flag.
6492 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6493 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6494 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6495 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6496 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6497 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6498 (ix86_setup_incoming_varargs): Update call accordingly.
6499 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6500 function_arg_info instead of a mode, type and named flag.
6501 (ia64_setup_incoming_varargs): Update call accordingly.
6502 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6503 function_arg_info instead of a mode, type and named flag.
6504 (iq2000_expand_prologue): Update call accordingly.
6505 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6506 function_arg_info instead of a mode, type and named flag.
6507 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6508 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6509 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6510 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6511 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6512 Likewise.
6513 (microblaze_expand_prologue): Update call accordingly.
6514 * config/mips/mips.c (mips_function_arg_advance): Take a
6515 function_arg_info instead of a mode, type and named flag.
6516 (mips_setup_incoming_varargs): Update call accordingly.
6517 (mips_output_args_xfer): Likewise.
6518 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6519 function_arg_info instead of a mode, type and named flag.
6520 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6521 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6522 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6523 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6524 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6525 (nios2_setup_incoming_varargs): Update call accordingly.
6526 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6527 function_arg_info instead of a mode, type and named flag.
6528 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6529 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6530 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6531 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6532 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6533 (riscv_setup_incoming_varargs): Update call accordingly.
6534 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6535 function_arg_info instead of a mode, type and named flag.
6536 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6537 Likewise.
6538 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6539 (rs6000_parm_needs_stack): Update call accordingly.
6540 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6541 instead of a mode, type and named flag.
6542 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6543 (s390_call_saved_register_used): Update call accordingly.
6544 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6545 instead of a mode, type and named flag.
6546 (sh_output_mi_thunk): Update call accordingly.
6547 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6548 function_arg_info instead of a mode, type and named flag.
6549 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6550 (spu_setup_incoming_varargs): Update call accordingly.
6551 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6552 function_arg_info instead of a mode, type and named flag.
6553 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6554 (tilegx_setup_incoming_varargs): Update call accordingly.
6555 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6556 function_arg_info instead of a mode, type and named flag.
6557 (tilegx_setup_incoming_varargs): Update call accordingly.
6558 * config/v850/v850.c (v850_function_arg_advance): Take a
6559 function_arg_info instead of a mode, type and named flag.
6560 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6561 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6562 (visium_setup_incoming_varargs): Update call accordingly.
6563 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6564 function_arg_info instead of a mode, type and named flag.
6565
6566 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6567
6568 * target.def (function_arg, function_incoming_arg): Take a
6569 function_arg_info instead of a mode, tree and named flag.
6570 * doc/tm.texi: Regenerate.
6571 * targhooks.h (default_function_arg): Take a function_arg_info
6572 instead of a mode, tree and named flag.
6573 (default_function_incoming_arg): Likewise.
6574 * targhooks.c (default_function_arg): Likewise.
6575 (default_function_incoming_arg): Likewise.
6576 * calls.h (function_arg_info::end_marker_p): New function.
6577 (function_arg_info::end_marker): Likewise.
6578 * calls.c (prepare_call_address, initialize_argument_information)
6579 (expand_call, emit_library_call_value_1): Update calls to
6580 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6581 * dse.c: Include calls.h.
6582 (get_call_args): Update call to targetm.calls.function_arg.
6583 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6584 * var-tracking.c (prepare_call_arguments): Likewise.
6585 * function.c (assign_parm_find_entry_rtl): Update call to
6586 targetm.calls.function_incoming_arg.
6587 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6588 function_arg_info instead of a mode, tree and named flag.
6589 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6590 * config/arc/arc.c (arc_function_arg): Likewise.
6591 * config/arm/arm.c (arm_function_arg): Likewise.
6592 (cmse_func_args_or_return_in_stack): Update call accordingly.
6593 (arm_function_ok_for_sibcall): Likewise.
6594 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6595 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6596 instead of a mode, tree and named flag.
6597 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6598 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6599 (c6x_call_saved_register_used): Update call accordingly.
6600 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6601 instead of a mode, tree and named flag.
6602 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6603 (cris_function_arg_1): Likewise.
6604 * config/csky/csky.c (csky_function_arg): Likewise.
6605 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6606 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6607 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6608 (frv_function_arg_1): Likewise.
6609 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6610 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6611 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6612 * config/i386/i386.c (ix86_function_arg): Likewise.
6613 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6614 (ia64_function_arg_1): Likewise.
6615 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6616 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6617 accordingly.
6618 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6619 instead of a mode, tree and named flag.
6620 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6621 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6622 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6623 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6624 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6625 (microblaze_expand_prologue): Update call accordingly.
6626 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6627 instead of a mode, tree and named flag.
6628 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6629 (mmix_function_arg_1): Likewise.
6630 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6631 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6632 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6633 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6634 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6635 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6636 (nvptx_function_incoming_arg): Likewise.
6637 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6638 * config/pa/pa.c (pa_function_arg): Likewise.
6639 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6640 * config/pru/pru.c (pru_function_arg): Likewise.
6641 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6642 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6643 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6644 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6645 (rs6000_parm_needs_stack): Update call accordingly.
6646 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6647 instead of a mode, tree and named flag.
6648 * config/s390/s390.c (s390_function_arg): Likewise.
6649 (s390_call_saved_register_used): Update call accordingly.
6650 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6651 instead of a mode, tree and named flag.
6652 (sh_output_mi_thunk): Update call accordingly.
6653 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6654 (sparc_function_incoming_arg): Take a function_arg_info instead of
6655 a mode, tree and named flag.
6656 * config/spu/spu.c (spu_function_arg): Likewise.
6657 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6658 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6659 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6660 * config/v850/v850.c (v850_function_arg): Likewise.
6661 * config/vax/vax.c (vax_function_arg): Likewise.
6662 * config/visium/visium.c (visium_function_arg): Likewise.
6663 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6664 (xtensa_function_incoming_arg): Likewise.
6665
6666 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6667
6668 * target.def (setup_incoming_varargs): Take a function_arg_info
6669 instead of a mode and tree.
6670 * doc/tm.texi: Regenerate.
6671 * targhooks.h (default_setup_incoming_varargs): Take a
6672 function_arg_info instead of a mode and tree.
6673 * targhooks.c (default_setup_incoming_varargs): Likewise.
6674 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6675 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6676 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6677 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6678 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6679 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6680 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6681 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6682 Likewise.
6683 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6684 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6685 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6686 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6687 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6688 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6689 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6690 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6691 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6692 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6693 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6694 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6695 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6696 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6697 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6698 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6699 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6700 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6701 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6702 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6703 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6704 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6705 * function.c (assign_parms_setup_varargs): Update call to
6706 targetm.calls.setup_incoming_varargs.
6707
6708 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6709
6710 * target.def (pass_by_reference): Take a function_arg_info instead
6711 of a mode, type and named flag.
6712 * doc/tm.texi: Regenerate.
6713 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6714 accordingly.
6715 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6716 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6717 function_arg_info instead of a mode, type and named flag.
6718 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6719 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6720 mode, type and named flag.
6721 * calls.c (pass_by_reference): Likewise.
6722 (pass_va_arg_by_reference): Update call accordingly.
6723 (initialize_argument_information): Likewise.
6724 (emit_library_call_value_1): Likewise.
6725 * function.c (assign_parm_find_data_types): Likewise.
6726 * var-tracking.c (prepare_call_arguments): Likewise.
6727 * stor-layout.c: Include calls.h.
6728 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6729 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6730 function_arg_info instead of a mode, type and named flag.
6731 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6732 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6733 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6734 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6735 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6736 (c6x_call_saved_register_used): Update call to pass_by_reference.
6737 * config/cris/cris.c (cris_pass_by_reference): Take a
6738 function_arg_info instead of a mode, type and named flag.
6739 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6740 function_arg_info instead of a mode, type and named flag.
6741 (epiphany_arg_partial_bytes): Update call accordingly.
6742 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6743 function_arg_info instead of a mode, type and named flag.
6744 (ft32_arg_partial_bytes): Update call accordingly.
6745 * config/i386/i386.c (ix86_pass_by_reference): Take a
6746 function_arg_info instead of a mode, type and named flag.
6747 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6748 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6749 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6750 (m32r_return_in_memory): Update call accordingly.
6751 * config/mips/mips.c (mips_pass_by_reference): Take a
6752 function_arg_info instead of a mode, type and named flag.
6753 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6754 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6755 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6756 (moxie_arg_partial_bytes): Update call accordingly.
6757 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6758 function_arg_info instead of a mode, type and named flag.
6759 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6760 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6761 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6762 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6763 (riscv_return_in_memory): Update call accordingly.
6764 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6765 function_arg_info instead of a mode, type and named flag.
6766 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6767 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6768 * config/s390/s390.c (s390_pass_by_reference): Take a
6769 function_arg_info instead of a mode, type and named flag.
6770 (s390_call_saved_register_used): Update call accordingly.
6771 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6772 instead of a mode, type and named flag.
6773 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6774 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6775 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6776 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6777 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6778 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6779
6780 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6781
6782 * target.def (arg_partial_bytes): Take a function_arg_info instead
6783 of a mode, type and named flag.
6784 * doc/tm.texi: Regenerate.
6785 * target.h (function_arg_info): Declare.
6786 * calls.h (function_arg_info): New class.
6787 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6788 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6789 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6790 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6791 * calls.c (initialize_argument_information): Update call to
6792 targetm.calls.partial_bytes.
6793 (emit_library_call_value_1): Likewise.
6794 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6795 * function.c (assign_parm_find_entry_rtl): Likewise.
6796 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6797 function_arg_info instead of a mode, type and named flag.
6798 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6799 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6800 (cmse_func_args_or_return_in_stack): Update accordingly.
6801 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6802 function_arg_info instead of a mode, type and named flag.
6803 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6804 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6805 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6806 * config/fr30/fr30.c: Include calls.h.
6807 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6808 type and named flag.
6809 * config/frv/frv.c: Include calls.h.
6810 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6811 type and named flag.
6812 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6813 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6814 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6815 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6816 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6817 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6818 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6819 Likewise.
6820 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6821 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6822 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6823 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6824 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6825 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6826 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6827 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6828 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6829 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6830 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6831 (rs6000_parm_needs_stack): Update call accordingly.
6832 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6833 function_arg_info instead of a mode, type and named flag.
6834 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6835 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6836
6837 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6838
6839 * calls.h (must_pass_va_arg_in_stack): Declare.
6840 * calls.c (must_pass_va_arg_in_stack): New function.
6841 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6842 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6843 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6844 Likewise.
6845 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6846
6847 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6848
6849 * calls.h (pass_va_arg_by_reference): Declare.
6850 * calls.c (pass_va_arg_by_reference): New function.
6851 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6852 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6853 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6854 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6855 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6856 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6857 (mips_gimplify_va_arg_expr): Likewise.
6858 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6859 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6860 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6861 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6862 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6863 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6864 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6865 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6866 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6867 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6868 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6869
6870 2019-08-20 Richard Biener <rguenther@suse.de>
6871
6872 PR target/91498
6873 * config/i386/i386-features.c (general_scalar_chain::convert_op):
6874 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6875 (convert_scalars_to_vector): Add timode_p parameter and use it
6876 to guard TImode-only operation.
6877 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6878 (pass_stv::execute): Pass down timode_p.
6879
6880 2019-08-20 Lili Cui <lili.cui@intel.com>
6881
6882 * common/config/i386/i386-common.c
6883 (processor_names): Add tigerlake and cooperlake.
6884 (processor_alias_table): Add tigerlake and cooperlake.
6885 * config.gcc: Add -march=tigerlake and cooperlake.
6886 * config/i386/driver-i386.c
6887 (host_detect_local_cpu): Detect tigerlake and cooperlake.
6888 Add "has_avx" to classify processor.
6889 * config/i386/i386-builtins.c (processor_model) :
6890 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6891 (arch_names_table): Add tigerlake and cooperlake.
6892 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6893 and PROCESSOR_COOPERLAKE.
6894 * config/i386/i386-c.c
6895 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6896 * config/i386/i386-options.c
6897 (m_TIGERLAKE) : Define.
6898 (m_COOPERLAKE) : Ditto.
6899 (m_CORE_AVX512): Ditto.
6900 (processor_cost_table): Add cascadelake.
6901 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6902 * config/i386/i386.h
6903 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6904 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6905 (PTA_MOVDIRI): Ditto.
6906 (PTA_MOVDIR64B): Ditto.
6907 (PTA_COOPERLAKE) : Ditto.
6908 (PTA_TIGERLAKE) : Ditto.
6909 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6910 * doc/extend.texi: Add tigerlake and cooperlake.
6911 * doc/invoke.texi: Add tigerlake and cooperlake.
6912
6913 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
6914
6915 * doc/install.texi (Specific, alpha): Remove note to use
6916 binutils 2.11.2 or later.
6917
6918 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6919
6920 PR middle-end/89544
6921 * function.c (assign_parm_find_stack_rtl): Use larger alignment
6922 when possible.
6923
6924 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
6925
6926 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6927 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6928 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6929 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6930 * config/aarch64/constraints.md (Dt): New constraint
6931 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6932
6933 2019-08-19 Richard Biener <rguenther@suse.de>
6934
6935 PR tree-optimization/91403
6936 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6937 cases we can handle with tail-recursion...
6938 (follow_ssa_edge_expr): ... here. Do so.
6939
6940 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
6941
6942 PR target/91441
6943 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6944 implemented for -fsanitize=kernel-address, and merge check logic
6945 with -fsanitize=address.
6946
6947 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
6948
6949 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6950 for cpu and machine. Factor 64/32b builtins.
6951
6952 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
6953
6954 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6955 gone, point to sourceforge.net.
6956
6957 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6958
6959 * doc/ux.texi (User Experience Guidelines): Update reference.
6960
6961 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
6962
6963 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6964 not LGPL".
6965
6966 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
6967
6968 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6969 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
6970
6971 2019-08-16 Martin Sebor <msebor@redhat.com>
6972
6973 * tree.def (TYPE_SIZE): Clarify.
6974 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6975
6976 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6977
6978 PR tree-optimization/91109
6979 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6980 * lra.c (lra): Use lra_need_for_scratch_reg_p.
6981 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6982
6983 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
6984
6985 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6986 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6987 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6988 (uavg<mode>3_ceil): New expander.
6989 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6990 mode iterator when creating CONST1_RTX.
6991 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6992 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6993 mode iterator for const1_operand predicate.
6994
6995 2019-08-16 Richard Biener <rguenther@suse.de>
6996
6997 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6998 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6999 follow_ssa_edge.
7000 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7001 (analyze_evolution_in_loop): Likewise.
7002 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7003 (follow_ssa_edge_expr): ... here. Refactor code.
7004
7005 2019-08-16 Richard Biener <rguenther@suse.de>
7006
7007 PR target/91469
7008 * config/i386/i386-features.c
7009 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7010
7011 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7012
7013 PR other/91255
7014 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7015 only if subst_name matches curr_attr string.
7016
7017 2019-08-16 Richard Biener <rguenther@suse.de>
7018
7019 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7020 stmt at gsi_p, instead replace it with a NOP removed later.
7021 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7022 that became dead because of that.
7023
7024 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7025
7026 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7027 for which we can't represent a range.
7028 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7029 set_varying.
7030 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7031 Set VR_UNDEFINED if type is not supported.
7032 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7033 * tree-vrp.c (value_range_base::check): Assert that a varying has
7034 min/max set.
7035 (value_range_base::equal_p): Early bail for undefines.
7036 (value_range_base::set_varying): Accept a type.
7037 (value_range::set_varying): Same.
7038 (value_range_base::type): VARYING can have a type, while UNDEFINE
7039 is typeless.
7040 (value_range_base::dump): Print type for VARYING nodes.
7041 (value_range_base::set): Add type to VARYING.
7042 (extract_range_from_multiplicative_op): Pass type to set_varying.
7043 (extract_range_from_binary_expr): Same.
7044 (value_range_base::intersect_helper): Same.
7045 (value_range_base::union_helper): Same.
7046 (value_range_base::normalize_symbolics): Same.
7047 (determine_value_range_1): Same.
7048 * tree-vrp.h (class value_range_base): Add type to set_varying.
7049 Add prototype for dump(void).
7050 Add prototype for supports_type_p.
7051 (class value_range): Add type to set_varying.
7052 Add prototype for dump(void).
7053 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7054 set_varying.
7055 (vr_values::get_lattice_entry): Set varying even if propagation
7056 finished.
7057 Pass type to set_varying.
7058 (vr_values::get_value_range): Remove vr_const_varying.
7059 Reallocate the lattice if needed.
7060 (vr_values::update_value_range): Pass type to set_varying.
7061 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7062 (vr_values::extract_range_from_binary_expr): Same.
7063 (vr_values::extract_range_from_unary_expr): Same.
7064 (vr_values::extract_range_from_cond_expr): Same.
7065 (vr_values::check_for_binary_op_overflow): Same.
7066 (vr_values::extract_range_basic): Same.
7067 (vr_values::extract_range_from_assignment): Same.
7068 (vr_values::vr_values): Increase size of num_vr_values.
7069 (vr_values::extract_range_from_phi_node): Pass type to
7070 set_varying.
7071
7072 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7073
7074 PR target/90878
7075 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7076 for costs of hard register moves.
7077 (ix86_register_move_cost): Likewise.
7078 * config/i386/i386.h (processor_costs): Move costs of hard
7079 register moves to hard_register. Add int_load, int_store,
7080 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7081 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7082 for costs of RTL expressions.
7083 * config/i386/x86-tune-costs.h: Move costs of hard register
7084 moves to hard_register. Duplicate int_load, int_store,
7085 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7086 sse_load, sse_store for costs of RTL expressions.
7087
7088 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7089
7090 * target.def (setup_incoming_vararg_bounds): Remove.
7091 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7092 * doc/tm.texi: Regenerate.
7093 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7094 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7095 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7096 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7097
7098 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7099
7100 MSP430: Fix lines over 80 characters long in
7101 config/msp430/*.{c,h} files
7102
7103 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7104 specifier in string.
7105 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7106 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7107 redundant old comment.
7108 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7109 Split line more than 80 characters long.
7110 * config/msp430/msp430.c (msp430_option_override): Likewise.
7111 (msp430_return_in_memory): Likewise.
7112 (msp430_gimplify_va_arg_expr): Likewise.
7113 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7114 (msp430_legitimate_constant): Likewise.
7115 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7116 (msp430_attr): Likewise.
7117 (msp430_data_attr): Likewise.
7118 (msp430_start_function): Likewise.
7119 (gen_prefix): Likewise.
7120 (msp430_init_sections): Likewise.
7121 (msp430_select_section): Likewise.
7122 (msp430_function_section): Likewise.
7123 (msp430_unique_section): Likewise.
7124 (msp430_output_aligned_decl_common): Likewise.
7125 (msp430_do_not_relax_short_jumps): Likewise.
7126 (msp430_init_builtins): Likewise.
7127 (msp430_expand_delay_cycles): Likewise.
7128 (msp430_expand_prologue): Likewise.
7129 (msp430_expand_epilogue): Likewise.
7130 (msp430_expand_helper): Likewise.
7131 (msp430_split_movsi): Likewise.
7132 (msp430_print_operand): Likewise.
7133 (msp430_return_addr_rtx): Likewise.
7134 (msp430x_extendhisi): Likewise.
7135 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7136 (ASM_SPEC): Likewise.
7137 Remove very obvious comments.
7138 (LIB_SPEC): Split line more than 80 characters long.
7139 (EH_RETURN_HANDLER_RTX): Likewise.
7140 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7141
7142 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7143
7144 MSP430: Fix whitespace errors and incorrect indentation in
7145 config/msp430/*.{c,h} files
7146
7147 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7148 (msp430_select_hwmult_lib): Likewise.
7149 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7150 (msp430_extract_mcu_data): Likewise.
7151 (struct t_msp430_mcu_data): Likewise.
7152 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7153 before left square bracket.
7154 (msp430_option_override): Fix indentation.
7155 (msp430_hard_regno_nregs_with_padding): Likewise.
7156 (msp430_initial_elimination_offset): Likewise.
7157 (msp430_special_register_convention_p): Remove whitespace before left
7158 square bracket and after exclamation mark.
7159 (msp430_evaluate_arg): Likewise.
7160 (msp430_callee_copies): Fix indentation.
7161 (msp430_gimplify_va_arg_expr): Likewise.
7162 (msp430_function_arg_advance): Remove whitespace before left square
7163 bracket.
7164 (reg_ok_for_addr): Likewise.
7165 (msp430_preserve_reg_p): Likewise.
7166 (msp430_compute_frame_info): Likewise.
7167 (msp430_asm_output_addr_const_extra): Add space between function name
7168 and open parenthesis.
7169 (has_section_name): Fix indentation.
7170 (msp430_attr): Remove trailing whitespace.
7171 (msp430_section_attr): Likewise.
7172 (msp430_data_attr): Likewise.
7173 (struct msp430_attribute_table): Fix comment and whitespace.
7174 (msp430_start_function): Remove whitespace before left square bracket.
7175 Add space between function name and open parenthesis.
7176 (msp430_select_section): Remove trailing whitespace.
7177 (msp430_section_type_flags): Remove trailing whitespace.
7178 (msp430_unique_section): Remove space before closing parenthesis.
7179 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7180 (msp430_builtins): Remove whitespace before left square bracket.
7181 (msp430_init_builtins): Fix indentation.
7182 (msp430_expand_prologue): Remove whitespace before left square bracket.
7183 Remove space before closing parenthesis.
7184 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7185 (msp430_split_movsi): Remove space before closing parenthesis.
7186 (helper_function_name_mappings): Fix indentation.
7187 (msp430_use_f5_series_hwmult): Fix whitespace.
7188 (use_32bit_hwmult): Likewise.
7189 (msp430_no_hwmult): Likewise.
7190 (msp430_output_labelref): Remove whitespace before left square bracket.
7191 (msp430_print_operand_raw): Likewise.
7192 (msp430_print_operand_addr): Likewise.
7193 (msp430_print_operand): Add two spaces after '.' in comment.
7194 Fix trailing whitespace.
7195 (msp430x_extendhisi): Fix indentation.
7196 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7197 tab.
7198 (PC_REGNUM): Likewise.
7199 (STACK_POINTER_REGNUM): Likewise.
7200 (CC_REGNUM): Likewise.
7201
7202 2019-08-15 Richard Biener <rguenther@suse.de>
7203
7204 PR target/91454
7205 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7206 helper.
7207 (general_scalar_chain::make_vector_copies): Use it.
7208
7209 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7210
7211 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7212
7213 2019-08-15 Martin Liska <mliska@suse.cz>
7214
7215 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7216 operators with no arguments.
7217 (eliminate_unnecessary_stmts): Likewise here.
7218
7219 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7220
7221 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7222 <case COMPARE>: Revert 2019-08-14 change.
7223 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7224 for (TARGET_64BIT || mode != DImode).
7225
7226 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7227
7228 * tree-vrp.c (value_range_base::set): Merge in code from
7229 value_range_base::set_and_canonicalize.
7230 Enforce canonicalization at set time.
7231 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7232 (value_range_base::set_undefined): Inline call to set().
7233 (value_range_base::set_varying): Same.
7234 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7235 (vrp_val_max): New argument handle_pointers.
7236 (vrp_val_min): Same.
7237 (ranges_from_anti_range): Same.
7238 (extract_range_into_wide_ints): Use tree argument instead of sign
7239 and precision.
7240 (extract_range_from_multiplicative_op): Take in tree type instead
7241 of precision and sign. Adapt function for canonicalized ranges.
7242 (extract_range_from_binary_expr): Pass type to
7243 extract_range_from_multiplicative_op.
7244 Adapt for canonicalized ranges.
7245 (extract_range_from_unary_expr): Same.
7246 (value_range_base::intersect_helper): Adjust for canonicalized
7247 ranges.
7248 (value_range_base::union_helper): Same.
7249 (value_range_base::normalize_symbolics): New.
7250 * tree-vrp.h (class value_range_base): Remove
7251 set_and_canonicalize.
7252 New prototype for normalize_symbolics.
7253 (class value_range): Remove set_and_canonicalize.
7254 (vrp_val_min): Adjust prototype.
7255 (vrp_val_max): Same.
7256 * vr-values.c
7257 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7258 instead of set_and_canonicalize.
7259
7260 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7261
7262 PR middle-end/91444
7263 * tree-vect-stmts.c (vectorizable_call): Check that the function
7264 is a BUILT_IN_MD function before passing it to
7265 targetm.vectorize.builtin_md_vectorized_function.
7266
7267 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7268
7269 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7270 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7271 (aarch64_select_early_remat_modes): Use it.
7272
7273 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7274
7275 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7276 16 for SVE predicates even if they are fixed-length.
7277
7278 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7279
7280 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7281 operand order match the MOV /Z alias.
7282
7283 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7284
7285 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7286 the vector pattern as an aarch64_svpattern argument. Update the
7287 overloaded caller accordingly.
7288 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7289 (aarch64_output_sve_vector_inc_dec): Likewise.
7290
7291 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7292
7293 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7294 multiplication case, try to compute VG * (lowest set bit) directly
7295 rather than always basing the multiplication on VG. Use
7296 expand_mult for the multiplication if we can.
7297
7298 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7299
7300 * config/aarch64/aarch64-protos.h
7301 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7302 (aarch64_sve_inc_dec_immediate_p): Rename to...
7303 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7304 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7305 (aarch64_output_sve_scalar_inc_dec): Declare.
7306 (aarch64_output_sve_inc_dec_immediate): Rename to...
7307 (aarch64_output_sve_vector_inc_dec): ...this.
7308 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7309 (aarch64_output_sve_scalar_inc_dec): New functions.
7310 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7311 arguments. Only handle true ADDVL and ADDPL instructions;
7312 don't emit an INC or DEC.
7313 (aarch64_sve_inc_dec_immediate_p): Rename to...
7314 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7315 (aarch64_output_sve_inc_dec_immediate): Rename to...
7316 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7317 aarch64_sve_vector_inc_dec_immediate_p.
7318 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7319 (aarch64_sve_plus_immediate): New predicates.
7320 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7321 rather than aarch64_sve_addvl_addpl_immediate.
7322 (aarch64_sve_inc_dec_immediate): Rename to...
7323 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7324 aarch64_sve_vector_inc_dec_immediate_p.
7325 (aarch64_sve_add_operand): Update accordingly.
7326 * config/aarch64/constraints.md (Uai): New constraint.
7327 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7328 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7329 operand into a register if it satisfies aarch64_sve_plus_immediate.
7330 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7331 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7332 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7333 aarch64_output_sve_vector_inc_dec instead of
7334 aarch64_output_sve_inc_dec_immediate.
7335
7336 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7337
7338 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7339 (UNSPEC_REVW): New constants.
7340 (elem_bits): New mode attribute.
7341 (SVE_INT_UNARY): New int iterator.
7342 (optab): Handle UNSPEC_REV[BHW].
7343 (sve_int_op): New int attribute.
7344 (min_elem_bits): Handle VNx16QI and the predicate modes.
7345 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7346 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7347 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7348 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7349 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7350 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7351 unspecs based on the total width of the reversed data.
7352 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7353 reinterpret followed by a subreg on big-endian targets.
7354
7355 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7356 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7357
7358 * config/aarch64/aarch64-sve.md
7359 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7360 alternatives in which one of the inputs is in the same register
7361 as the output.
7362
7363 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7364
7365 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7366 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7367
7368 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7369
7370 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7371 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7372
7373 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7374 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7375
7376 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7377 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7378 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7379
7380 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7381 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7382
7383 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7384 Add an alternative that uses reversed shifts.
7385
7386 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7387
7388 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7389 struct.
7390
7391 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7392
7393 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7394 a commutativity marker.
7395
7396 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7398
7399 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7400 (aarch64_prepare_sve_cond_int_fma): Declare.
7401 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7402 (aarch64_prepare_sve_int_fma): New functions.
7403 (aarch64_prepare_sve_cond_int_fma): Likewise.
7404 * config/aarch64/aarch64-sve.md
7405 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7406 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7407 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7408 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7409 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7410 (*madd<mode>): Rename to...
7411 (*fma<mode>4): ...this.
7412 (*msub<mode>): Rename to...
7413 (*fnma<mode>4): ...this.
7414
7415 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7416 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7417
7418 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7419 Print 2.0 naturally.
7420 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7421 * config/aarch64/predicates.md
7422 (aarch64_sve_float_negated_arith_immediate): New predicate,
7423 renamed from aarch64_sve_float_arith_with_sub_immediate.
7424 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7425 positive and negative constants.
7426 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7427 or an aarch64_sve_float_arith_with_sub_immediate.
7428 * config/aarch64/constraints.md (vsN): Use
7429 aarch64_sve_float_negated_arith_immediate.
7430 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7431 iterator.
7432 (sve_pred_fp_rhs2_immediate): New int attribute.
7433 * config/aarch64/aarch64-sve.md
7434 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7435 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7436 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7437 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7438 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7439 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7440
7441 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7442 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7443
7444 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7445 (*aarch64_cond_abd<SVE_F:mode>_3)
7446 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7447
7448 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7449 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7450
7451 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7452 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7453
7454 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7455 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7456
7457 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7458 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7459 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7460 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7461 optabs.
7462 * optabs.h (create_convert_operand_from): Expand comment.
7463 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7464 when mapping scalar rtxes to vector operands.
7465 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7466 ashiftrt and lshiftrt.
7467 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7468 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7469 (*cond_<optab><mode>_any_const): New patterns.
7470
7471 2019-08-15 Martin Liska <mliska@suse.cz>
7472
7473 PR ipa/91438
7474 * cgraph.c (cgraph_node::remove): When setting
7475 n->origin = NULL for all nested functions, reset
7476 also next_nested.
7477
7478 2019-08-15 Martin Liska <mliska@suse.cz>
7479
7480 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7481 and next_nested.
7482
7483 2019-08-15 Martin Liska <mliska@suse.cz>
7484
7485 PR ipa/91404
7486 * passes.c (order): Remove.
7487 (uid_hash_t): Likewise).
7488 (remove_cgraph_node_from_order): Remove from set
7489 of pointers (cgraph_node *).
7490 (insert_cgraph_node_to_order): New.
7491 (duplicate_cgraph_node_to_order): New.
7492 (do_per_function_toporder): Register all 3 cgraph hooks.
7493 Skip removed_nodes now as we know about all of them.
7494
7495 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7496
7497 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7498 <case E_V8QImode>: Use vector_set path for
7499 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7500 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7501 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7502
7503 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7504
7505 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7506
7507 2019-08-14 Martin Sebor <msebor@redhat.com>
7508
7509 PR tree-optimization/91294
7510 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7511 source length as exact.
7512
7513 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7514
7515 * doc/extend.texi: Add "noinit" attribute documentation.
7516 * doc/sourcebuild.texi: Add noinit effective target documentation.
7517 * varasm.c (default_section_type_flags): Add support for "noinit"
7518 section.
7519 (default_elf_select_section): Add support for "noinit" attribute.
7520 * config/msp430/msp430.c (msp430_attribute_table): Remove
7521 "noinit" entry.
7522
7523 2019-08-14 Richard Biener <rguenther@suse.de>
7524 Uroš Bizjak <ubizjak@gmail.com>
7525
7526 PR target/91154
7527 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7528 mode arguments.
7529 (scalar_chain::smode): New member.
7530 (scalar_chain::vmode): Likewise.
7531 (dimode_scalar_chain): Rename to...
7532 (general_scalar_chain): ... this.
7533 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7534 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7535 base with TImode and V1TImode.
7536 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7537 (general_scalar_chain::vector_const_cost): Adjust for SImode
7538 chains.
7539 (general_scalar_chain::compute_convert_gain): Likewise. Add
7540 {S,U}{MIN,MAX} support.
7541 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7542 (general_scalar_chain::make_vector_copies): Likewise. Handle
7543 non-DImode chains appropriately.
7544 (general_scalar_chain::convert_reg): Likewise.
7545 (general_scalar_chain::convert_op): Likewise.
7546 (general_scalar_chain::convert_insn): Likewise. Add
7547 fatal_insn_not_found if the result is not recognized.
7548 (convertible_comparison_p): Pass in the scalar mode and use that.
7549 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7550 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7551 (scalar_to_vector_candidate_p): Remove by inlining into single
7552 caller.
7553 (general_remove_non_convertible_regs): Rename from
7554 dimode_remove_non_convertible_regs.
7555 (remove_non_convertible_regs): Remove by inlining into single caller.
7556 (convert_scalars_to_vector): Handle SImode and DImode chains
7557 in addition to TImode chains.
7558 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7559 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7560 (*<maxmin>di3_doubleword): Likewise.
7561
7562 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7563 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7564
7565 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7566 (*cond_bic<mode>_any): New patterns.
7567
7568 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7569
7570 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7571 take the equivalent mask, as well as a bit count.
7572 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7573 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7574 (aarch64_sve_pred_and_operand): New predicates.
7575 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7576 code attribute.
7577 * config/aarch64/aarch64-sve.md
7578 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7579 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7580
7581 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7582
7583 * config/aarch64/aarch64-sve.md
7584 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7585 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7586 New patterns.
7587
7588 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7589 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7590
7591 * config/aarch64/aarch64-sve.md
7592 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7593 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7594
7595 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7596 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7597
7598 * config/aarch64/aarch64-sve.md
7599 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7600 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7601
7602 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7603
7604 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7605 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7606 New pattern.
7607
7608 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7609 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7610
7611 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7612
7613 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7614 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7615
7616 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7617 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7618 (aarch64_print_operand): Add support for %I.
7619 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7620 Bitcast floating-point constants to the corresponding integer constant.
7621 (aarch64_float_const_representable_p): Handle vectors as well
7622 as scalars.
7623 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7624 for the new vcond_mask_<mode><vpred> expander.
7625 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7626 test aarch64_float_const_representable_p.
7627 (aarch64_sve_reg_or_dup_imm): New predicate.
7628 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7629 gen_vcond_mask_<mode><vpred> instead of
7630 gen_aarch64_sve_dup<mode>_const.
7631 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7632 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7633 for operands 1 and 2 respectively. Force operand 2 into a
7634 register if operand 1 is a register. Fold old define_insn...
7635 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7636 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7637 floating-point constants that can be moved as integers. Add
7638 alternatives for MOV /M and FMOV /M.
7639 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7640 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7641 1 and 2 respectively.
7642 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7643 as scalars.
7644 (vss): New constraint.
7645
7646 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7647
7648 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7649 (aarch64_sve_float_maxmin_operand): New predicates.
7650 * config/aarch64/constraints.md (vsB): New constraint.
7651 (vsM): Fix typo.
7652 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7653 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7654 UNSPEC_COND_FMINNM.
7655 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7656 Use aarch64_sve_float_maxmin_operand for operand 2.
7657 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7658 Add alternatives for the constant forms.
7659
7660 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7661
7662 * config/aarch64/constraints.md (vsb): New constraint.
7663 (vsm): Generalize description.
7664 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7665 iterator.
7666 (sve_imm_con): Handle smax, smin, umax and umin.
7667 (sve_imm_prefix): New code attribute.
7668 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7669 (aarch64_sve_vsb_operand): New predicates.
7670 (aarch64_sve_mul_immediate): Rename to...
7671 (aarch64_sve_vsm_immediate): ...this.
7672 (aarch64_sve_mul_operand): Rename to...
7673 (aarch64_sve_vsm_operand): ...this.
7674 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7675 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7676 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7677 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7678 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7679 add movprfx support for the immediate alternatives.
7680 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7681 of the above.
7682 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7683 for operand 3.
7684
7685 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7686
7687 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7688 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7689 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7690
7691 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7692
7693 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7694 (optab, sve_int_op): Handle them.
7695 * config/aarch64/aarch64-sve.md: Expand comment.
7696
7697 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7698
7699 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7700 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7701 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7702
7703 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7704
7705 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7706 (aarch64_expand_sve_const_pred_trn): New functions.
7707 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7708 use the above functions when the parameter is true.
7709 (aarch64_expand_sve_const_pred): Update call accordingly.
7710 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7711 Rename to...
7712 (@aarch64_sve_<perm_insn><mode>): ...this.
7713
7714 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7715
7716 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7717 Declare.
7718 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7719 (aarch64_sve_emit_int_cmp): New functions.
7720 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7721 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7722 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7723 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7724 (UNSPEC_PRED_Z): New unspec.
7725 (set_clobber_cc_nzc): Delete.
7726 * config/aarch64/aarch64-sve.md: Add a block comment about
7727 UNSPEC_PRED_Z.
7728 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7729 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7730 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7731 UNSPEC_MERGE_PTRUE.
7732 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7733 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7734 check for compatible predicates.
7735 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7736 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7737 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7738 comparisons above.
7739
7740 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7741
7742 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7743 * config/aarch64/aarch64-sve.md: Add a section describing it.
7744 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7745 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7746 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7747 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7748 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7749 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7750 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7751 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7752 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7753 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7754 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7755 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7756 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7757 (aarch64_evpc_rev_local): Update accordingly.
7758
7759 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7760
7761 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7762 iterators.
7763 (SVE_BHSI, SVE_SDI): Tweak comment.
7764 (SVE_HSDI): Likewise. Fix definition.
7765 (SVE_SDF): New mode iterator.
7766 (elem_bits): New mode attribute.
7767 (SVE_COND_FCVT): New int iterator.
7768 * config/aarch64/aarch64-sve.md
7769 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7770 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7771 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7772 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7773 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7774 ...these new patterns.
7775 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7776 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7777 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7778 Merge into...
7779 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7780 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7781 ...these new patterns.
7782 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7783 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7784 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7785 ...this new pattern.
7786 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7787 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7788 ...this new pattern.
7789 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7790
7791 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7792
7793 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7794 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7795 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7796 unspecs.
7797 (optab, su): Handle them.
7798 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7799 * config/aarch64/aarch64-sve.md
7800 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7801 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7802 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7803 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7804 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7805 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7806 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7807 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7808 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7809 FIXUORS.
7810 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7811 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7812 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7813 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7814 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7815 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7816 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7817 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7818 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7819 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7820 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7821 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7822 of UNSPEC_FLOAT_CONVERT.
7823 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7824 aarch64_sve_extend<mode><Vwide>2.
7825
7826 2019-08-14 Richard Biener <rguenther@suse.de>
7827
7828 PR target/91154
7829 * config/i386/i386-features.c
7830 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7831 individual instruction gain. Fix reg-reg copy GRP cost. Use
7832 ix86_cost->sse_op for vector instruction costs.
7833
7834 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7835
7836 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7837 (cmp_op): Handle it.
7838 (SVE_COND_FP_CMP): Rename to...
7839 (SVE_COND_FP_CMP_I0): ...this.
7840 (SVE_FP_CMP): Remove.
7841 * config/aarch64/aarch64-sve.md
7842 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7843 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7844 using unspecs to represent the comparison.
7845 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7846 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7847 accordingly.
7848 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7849 (aarch64_unspec_cond_code): Move after integer code. Handle
7850 UNORDERED.
7851 (aarch64_emit_sve_predicated_cond): Replace with...
7852 (aarch64_emit_sve_fp_cond): ...this new function.
7853 (aarch64_emit_sve_or_conds): Replace with...
7854 (aarch64_emit_sve_or_fp_conds): ...this new function.
7855 (aarch64_emit_sve_inverted_cond): Replace with...
7856 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7857 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7858
7859 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7860
7861 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7862 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7863 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7864 SVE_HSD instead of SVE_SD.
7865
7866 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7867 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7868
7869 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7870 iterator.
7871 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7872 attributes.
7873 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7874 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7875 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7876 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7877 (*div<SVE_F:mode>3): Generalize to...
7878 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7879
7880 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7881 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7882
7883 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7884 constants.
7885 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7886 predicate.
7887 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7888 Declare.
7889 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7890 function.
7891 * config/aarch64/aarch64-sve.md: Add a block comment about the
7892 handling of predicated FP operations.
7893 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7894 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7895 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7896 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7897 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7898 operand.
7899 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7900 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7901 operand.
7902 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7903 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7904 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7905 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7906 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7907 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7908 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7909 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7910 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7911 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7912 strictness operands. Use aarch64_sve_pred_dominates_p to check
7913 whether the predicate on the conditional operation is suitable
7914 for merging. Split patterns into the canonical equal-predicate form.
7915 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7916 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7917
7918 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7919 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7920
7921 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7922 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7923 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7924 rtx codes.
7925 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7926 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7927 unspecs.
7928
7929 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7930 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7931
7932 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7933 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
7934 actually has, rather than relying on REG_EQUAL notes.
7935 Make the insn operand order match the SVE operand order.
7936 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7937 the SVE operand order.
7938
7939 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7940
7941 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7942 (aarch64_emit_set_immediate): Likewise.
7943 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7944 (aarch64_pfalse_reg): Likewise.
7945 (aarch64_convert_sve_data_to_pred): New function.
7946 (aarch64_sve_move_pred_via_while): Take an optional target register
7947 and the required register mode.
7948 (aarch64_expand_sve_const_pred_1): New function.
7949 (aarch64_expand_sve_const_pred): Likewise.
7950 (aarch64_expand_mov_immediate): Build an all-true predicate
7951 if the significant bits of the immediate are all true. Use
7952 aarch64_expand_sve_const_pred for all compile-time predicate constants.
7953 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7954 before register allocation.
7955 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7956 a VNx16BI PTRUE when splitting the memory alternative.
7957 (vec_duplicate<mode>): Update accordingly.
7958 (*pred_cmp<cmp_op><mode>): Rename to...
7959 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7960
7961 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7962
7963 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7964 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7965 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7966 (UNSPEC_PTEST): New unspec.
7967 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7968 * config/aarch64/iterators.md (data_bytes): New mode attribute.
7969 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7970 * config/aarch64/aarch64-sve.md: Add a new section describing the
7971 handling of UNSPEC_PTEST.
7972 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7973 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7974 (ptest_ptrue<mode>): Replace with...
7975 (aarch64_ptest<mode>): ...this new pattern.
7976 (cbranch<mode>4): Update after above changes.
7977 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7978 UNSPEC_PTEST_PTRUE.
7979 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7980 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7981 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7982
7983 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7984
7985 PR lto/91287
7986 * builtins.c (builtin_with_linkage_p): New function.
7987 * builtins.h (builtin_with_linkage_p): New function.
7988 * symtab.c (write_symbol): Remove redundant assert.
7989 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7990 Remove FIXME and use builtin_with_linkage_p.
7991
7992 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
7993
7994 PR middle-end/91421
7995 * tree-core.h (function_decl::function_code): Change type to
7996 unsigned int.
7997 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7998 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7999 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8000 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8001 is BUILT_IN_NORMAL.
8002 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8003 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8004 (fndecl_built_in_p): Change the type of the "name" argument to
8005 unsigned int.
8006 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8007 after check for DECL_BUILT_IN_CLASS.
8008 * cgraphclones.c (build_function_decl_skip_args): Use
8009 set_decl_built_in_function.
8010 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8011 * ipa-split.c (split_function): Likewise.
8012 * langhooks.c (add_builtin_function_common): Likewise.
8013 * omp-simd-clone.c (simd_clone_create): Likewise.
8014 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8015 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8016 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8017 DECL_FUNCTION_CODE.
8018 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8019 instead of DECL_FUNCTION_CODE.
8020 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8021 instead of DECL_FUNCTION_CODE.
8022 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8023 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8024 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8025 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8026 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8027 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8028 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8029 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8030 (alpha_gimple_fold_builtin): Likewise.
8031 * config/arc/arc.c (arc_expand_builtin): Likewise.
8032 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8033 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8034 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8035 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8036 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8037 * config/frv/frv.c (frv_expand_builtin): Likewise.
8038 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8039 (gcn_expand_builtin): Likewise.
8040 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8041 (fold_builtin_cpu): Likewise.
8042 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8043 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8044 (ix86_gimple_fold_builtin): Likewise.
8045 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8046 (ia64_expand_builtin): Likewise.
8047 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8048 * config/mips/mips.c (mips_expand_builtin): Likewise.
8049 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8050 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8051 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8052 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8053 * config/pa/pa.c (pa_expand_builtin): Likewise.
8054 * config/pru/pru.c (pru_expand_builtin): Likewise.
8055 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8056 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8057 Likewise.
8058 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8059 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8060 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8061 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8062 (rs6000_builtin_reciprocal): Likewise.
8063 * config/rx/rx.c (rx_expand_builtin): Likewise.
8064 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8065 * config/s390/s390.c (s390_expand_builtin): Likewise.
8066 * config/sh/sh.c (sh_expand_builtin): Likewise.
8067 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8068 (sparc_fold_builtin): Likewise.
8069 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8070 * config/spu/spu.c (spu_expand_builtin): Likewise.
8071 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8072 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8073 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8074 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8075 (xtensa_expand_builtin): Likewise.
8076
8077 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8078
8079 PR middle-end/91421
8080 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8081 before the DECL_FUNCTION_CODE.
8082 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8083 to check for a BUILT_IN_ALLOCA call.
8084 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8085 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8086 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8087 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8088 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8089 for BUILT_IN_NORMAL functions.
8090 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8091 test for BUILT_IN_TM_ABORT.
8092 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8093 to check for a BUILT_IN_STACK_RESTORE call.
8094 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8095 * tree-ssa-threadedge.c
8096 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8097 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8098 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8099 test for a BUILT_IN_NORMAL call instead of a negative test for
8100 an internal function call.
8101
8102 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8103
8104 * tree.h (build_vector_a_then_b): Declare.
8105 * tree.c (build_vector_a_then_b): New function.
8106 * fold-const-call.c (fold_while_ult): Likewise.
8107 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8108 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8109 (aarch64_svpattern): New enum.
8110 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8111 constants through aarch64_expand_mov_immediate.
8112 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8113 than general_operand as the predicate for operand 1.
8114 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8115 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8116 insn_type.
8117 (simd_immediate_info::simd_immediate_info): New overload that
8118 takes a scalar_int_mode and an svpattern.
8119 (simd_immediate_info::u): Add a "pattern" field.
8120 (svpattern_token): New function.
8121 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8122 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8123 (aarch64_sve_move_pred_via_while): New functions.
8124 (aarch64_expand_mov_immediate): Try using
8125 aarch64_sve_move_pred_via_while for predicates that contain N ones
8126 followed by M zeros but that do not correspond to a VLnnn pattern.
8127 (aarch64_sve_pred_valid_immediate): New function.
8128 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8129 with PTRUE and PFALSE.
8130 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8131 forms.
8132
8133 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8134
8135 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8136 flag.
8137 (darwin_override_options): Likewise.
8138 * config/darwin.h: Likewise.
8139 * config/darwin.opt: Likewise.
8140 * config/i386/i386.c (output_pic_addr_const): Likewise.
8141 * config/rs6000/darwin.h: Likewise.
8142 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8143 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8144 ... this TARGET_MACHO_SYMBOL_STUBS.
8145 (FUNCTION_PROFILER):Likewise.
8146 * config/i386/i386.h: Likewise.
8147
8148 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8149
8150 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8151 <case E_V2SImode>: Use vec_extr path for
8152 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8153 <case E_V8QImode>: Ditto.
8154 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8155 Use SWI48 mode iterator. Use %k to output operand 0.
8156 (*mmx_pextrw): New insn pattern.
8157 (*mmx_pextrb): Ditto.
8158 (*mmx_pextrb_zext): Ditto.
8159
8160 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8161
8162 * target.def (libc_has_function, libc_has_fast_function): Improve
8163 documentation strings.
8164 * doc/tm.texi: Regenerate.
8165
8166 2019-08-13 Caroline Tice <cmtice@google.com>
8167
8168 PR other/91396
8169 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8170 vtv_end.o or vtv_end_preinit.o files if !static.
8171
8172 2019-08-13 Olivier Hainque <hainque@adacore.com>
8173
8174 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8175
8176 2019-08-13 Olivier Hainque <hainque@adacore.com>
8177
8178 * rtlanal.c (tablejump_casesi_pattern): New function, to
8179 determine if a tablejump insn is a casesi dispatcher. Extracted
8180 from patch_jump_insn.
8181 * rtl.h (tablejump_casesi_pattern): Declare.
8182 * cfgrtl.c (patch_jump_insn): Use it.
8183 * dwarf2cfi.c (create_trace_edges): Use it.
8184
8185 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8186
8187 PR target/81800
8188 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8189 operand is larger than a long int.
8190
8191 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8192
8193 * machmode.h (opt_mode::else_mode): New function.
8194 (opt_mode::else_blk): Use it.
8195 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8196 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8197 (aarch64_gen_stepped_int_parallel): Likewise.
8198 (aarch64_stepped_int_parallel_p): Likewise.
8199 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8200 argument.
8201 * config/aarch64/aarch64.c
8202 (aarch64_expand_sve_widened_duplicate): Delete.
8203 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8204 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8205 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8206 argument. Use early returns in the !CONST_INT_P handling.
8207 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8208 than handling some inline.
8209 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8210 from...
8211 (aarch64_simd_container_mode): ...here.
8212 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8213 (aarch64_sve_ld1rq_operand_p): New functions.
8214 * config/aarch64/predicates.md (descending_int_parallel)
8215 (aarch64_sve_ld1rq_operand): New predicates.
8216 * config/aarch64/constraints.md (UtQ): New constraint.
8217 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8218 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8219 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8220 (@aarch64_sve_reinterpret<mode>): New expander.
8221 (*aarch64_sve_reinterpret<mode>): New pattern.
8222 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8223 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8224 (*sve_ld1rq<Vesize>): Replace with...
8225 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8226
8227 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8228
8229 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8230 16:12.
8231
8232 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8233
8234 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8235 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8236 (msp430_check_path_for_devices): New.
8237 (parse_devices_csv_1): New.
8238 (parse_devices_csv): New.
8239 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8240 MCU data in devices.csv before using the hard-coded data.
8241 Warn if devices.csv isn't found and the MCU wasn't found in the
8242 hard-coded data either.
8243 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8244 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8245 Search for devices.csv on -I and -L paths.
8246 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8247 msp430_set_driver_var.
8248 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8249 -mdevices-csv-loc=.
8250 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8251 searched for devices.csv.
8252 (mwarn-devices-csv): Document option.
8253
8254 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8255
8256 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8257 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8258 Use a single Dn alternative instead of separate Dz and Dm
8259 alternatives. Use aarch64_output_sve_move_immediate.
8260 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8261 function.
8262 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8263 for predicates too.
8264 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8265 (aarch64_output_ptrue): Delete.
8266
8267 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8268
8269 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8270 INDEX.
8271 (simd_immediate_info::value, simd_immediate_info::step)
8272 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8273 with...
8274 (simd_immediate_info::u): ...this new union.
8275 (simd_immediate_info::simd_immediate_info): Update accordingly.
8276 (aarch64_output_simd_mov_immediate): Likewise.
8277 (aarch64_output_sve_mov_immediate): Likewise.
8278
8279 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8280
8281 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8282 extra_gcc_objs.
8283 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8284 (msp430_select_cpu): New spec function.
8285 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8286 MCU data.
8287 * config/msp430/msp430-devices.c: New file.
8288 * config/msp430/msp430-devices.h: New file.
8289 * config/msp430/msp430.c: Remove msp430_mcu_data.
8290 (msp430_option_override): Use msp430_extract_mcu_data to extract
8291 MCU data.
8292 (msp430_use_f5_series_hwmult): Likewise.
8293 (use_32bit_hwmult): Likewise.
8294 (msp430_no_hwmult): Likewise.
8295 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8296 assembler.
8297 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8298 and -mcpu option.
8299 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8300 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8301 Remove hard-coded MCU multilib data.
8302
8303 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8304
8305 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8306 based on the mode instead of testing properties of it.
8307
8308 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8309
8310 * doc/md.texi: Document the x and y constraints for AArch64.
8311 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8312 (FP_LO8_REGS): New reg_class.
8313 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8314 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8315 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8316 * config/aarch64/predicates.md (aarch64_simd_register): Use
8317 FP_REGNUM_P instead of checking the classes manually.
8318 * config/aarch64/constraints.md (y): New constraint.
8319
8320 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8321
8322 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8323 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8324 * config/aarch64/aarch64-simd.md
8325 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8326 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8327 from the asm template.
8328 * config/aarch64/aarch64-sve.md
8329 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8330 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8331 from the asm template.
8332 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8333 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8334 from the asm template.
8335 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8336
8337 2019-08-13 Martin Liska <mliska@suse.cz>
8338
8339 * value-prof.c (gimple_ic_transform): Add new line.
8340 Print details with MSG_NOTE.
8341
8342 2019-08-13 Martin Liska <mliska@suse.cz>
8343
8344 * doc/invoke.texi: Document automatic detection of jobserver.
8345 * lto-wrapper.c (run_gcc): Detect jobserver always.
8346
8347 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8348
8349 * config/i386/i386-expand.c (ix86_expand_vector_set)
8350 <case E_V2SImode>: Use vec_merge path for
8351 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8352 <case E_V8QImode>: Ditto.
8353 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8354 (*mmx_pinsrb): Ditto.
8355
8356 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8357
8358 PR target/83250
8359 PR target/91340
8360 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8361 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8362 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8363 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8364 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8365
8366 2019-08-12 Richard Biener <rguenther@suse.de>
8367
8368 PR lto/91375
8369 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8370 flag_devirtualize.
8371
8372 2019-08-12 Richard Biener <rguenther@suse.de>
8373
8374 PR driver/91130
8375 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8376 lang_mask option, always use CL_DRIVER.
8377 (get_options_from_collect_gcc_options): Adjust.
8378 (find_and_merge_options): Likewise.
8379 (run_gcc): Likewise.
8380
8381 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8382
8383 * ipa-predicate.c (add_condition): Restore inverted test.
8384
8385 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8386
8387 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8388 (enum omp_clause_device_type_kind): New enum.
8389 (struct tree_omp_clause): Add subcode.device_type_kind.
8390 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8391 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8392 for device_type clause.
8393 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8394 * tree-pretty-print.c (dump_omp_clause): Likewise.
8395
8396 PR target/91408
8397 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8398 vector_operand.
8399
8400 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8401
8402 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8403 handling spilled pseudos.
8404
8405 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8406
8407 PR target/91386
8408 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8409 to preserve the contents of the original insns.
8410
8411 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8412
8413 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8414 (addsi3_compare_op2): Likewise.
8415
8416 2019-08-09 Martin Liska <mliska@suse.cz>
8417
8418 * alias.c (alias_ptr_types_compatible_p): Strengten
8419 type comparison in LTO mode.
8420
8421 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8422
8423 PR middle-end/90313
8424 * tree-tailcall.c (find_tail_calls): Reject calls that might
8425 read from an escaped RESULT_DECL.
8426
8427 2019-08-09 Martin Liska <mliska@suse.cz>
8428
8429 * doc/invoke.texi: Document the option value.
8430 * lto-wrapper.c (run_gcc): Set auto_parallel
8431 only with -flto=auto.
8432
8433 2019-08-09 Martin Liska <mliska@suse.cz>
8434
8435 * opts.c (common_handle_option): Error for an invalid argument
8436 to -flto=.
8437
8438 2019-08-09 Martin Liska <mliska@suse.cz>
8439
8440 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8441 use dump_printf to report optimization.
8442 (sem_variable::merge): Likwise.
8443 (sem_item_optimizer::merge_classes): Use dump_printf to report
8444 ICF hits.
8445
8446 2019-08-09 Martin Liska <mliska@suse.cz>
8447
8448 * value-prof.c (gimple_divmod_fixed_value_transform):
8449 Use dump_printf_loc.
8450 (gimple_mod_pow2_value_transform): Likewise.
8451 (gimple_mod_subtract_transform): Likewise.
8452 (init_node_map): Likewise.
8453 (gimple_ic_transform): Likewise.
8454 (gimple_stringops_transform): Likewise.
8455
8456 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8457
8458 * doc/extend.texi: Add const qualifier to ld intrinsics.
8459
8460 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8461
8462 * config/rs6000/dfp.md (D64_D128): Rename to ...
8463 (DDTD): ... this, throughout.
8464 (dfp_suffix): Rename to ...
8465 (q): ... this, throughout.
8466
8467 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8468
8469 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8470 (dfp_suffix): Ditto.
8471 (adddd3, addtd3): Merge to ...
8472 (add<mode>3 for D64_D128): ... this.
8473 (subdd3, subtd3): Merge to ...
8474 (sub<mode>3 for D64_D128): ... this.
8475 (muldd3, multd3): Merge to ...
8476 (mul<mode>3 for D64_D128): ... this.
8477 (divdd3, divtd3): Merge to ...
8478 (div<mode>3 for D64_D128): ... this.
8479 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8480 (*cmp<mode>_internal1 for D64_D128): ... this.
8481 (ftruncdd2, ftrunctd2): Merge to ...
8482 (ftrunc<mode>2 for D64_D128): ... this.
8483 (fixdddi2, fixtddi2): Merge to ...
8484 (fix<mode>di2 for D64_D128): ... this.
8485
8486 2019-08-08 Jim Wilson <jimw@sifive.com>
8487
8488 PR target/91229
8489 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8490 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8491 Pass into recursive call.
8492 (riscv_flatten_aggregate_argument): New arg. Pass to
8493 riscv_flatten_aggregate_field.
8494 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8495 riscv_flatten_aggregate_argument twice, with false and true as last
8496 arg. Process result twice. Compare results and warn if different.
8497 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8498
8499 2019-08-08 Martin Liska <mliska@suse.cz>
8500
8501 PR bootstrap/91352
8502 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8503 * lto-wrapper.c (jobserver_active_p): Likewise.
8504
8505 2019-08-08 Martin Liska <mliska@suse.cz>
8506
8507 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8508 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8509 (create_version_clone_with_body): Likewise.
8510
8511 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8512
8513 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8514 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8515 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8516 GOVD_EXPLICIT flags.
8517 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8518 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8519 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8520 call install_var_field with mask 11 instead of 3.
8521 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8522 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8523
8524 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8525
8526 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8527 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8528
8529 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8530
8531 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8532 MOVPRFX alternatives. Make the GPR alternatives more expensive
8533 than the FPR ones.
8534
8535 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8536
8537 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8538 Disparage the GPR alternative relative to the FPR one.
8539 Fix handling of 8-bit and 16-bit FPR values.
8540
8541 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8542
8543 * config/aarch64/iterators.md (BITWISEV): Delete.
8544 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8545 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8546 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8547 UNSPEC_FMINNMV, UNSPEC_FMINV.
8548 (bit_reduc_op): Delete.
8549 (sve_int_op): New int attribute.
8550 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8551 UNSPEC_FMINNMV, UNSPEC_FMINV.
8552 * config/aarch64/aarch64-sve.md
8553 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8554 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8555 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8556 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8557 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8558 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8559 new patterns.
8560 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8561 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8562 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8563 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8564 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8565 new patterns.
8566
8567 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8568
8569 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8570 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8571 (fms<mode>4, *fms<mode>4): Replace with...
8572 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8573 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8574 Use unspecs instead of rtx codes.
8575 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8576 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8577
8578 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8579
8580 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8581 int iterator.
8582 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8583 * config/aarch64/aarch64-sve.md
8584 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8585 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8586 use a single unspec for the rhs.
8587 (*<su><maxmin><mode>3): Delete.
8588 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8589
8590 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8591
8592 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8593 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8594 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8595 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8596 (optab, sve_fp_op): Handle them.
8597 (SVE_FP_UNARY): Delete.
8598 (optab): Remove sqrt entry.
8599 (sve_fp_op): Remove neg, abs and sqrt entries.
8600 (SVE_COND_FP_UNARY): New int iterator.
8601 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8602 (*<frint_pattern><mode>2): Delete.
8603 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8604 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8605 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8606 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8607
8608 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8609
8610 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8611
8612 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8613
8614 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8615 (UNSPEC_COND_FADD): ...this.
8616 (UNSPEC_COND_SUB): Rename to...
8617 (UNSPEC_COND_FSUB): ...this.
8618 (UNSPEC_COND_MUL): Rename to...
8619 (UNSPEC_COND_FMUL): ...this.
8620 (UNSPEC_COND_DIV): Rename to...
8621 (UNSPEC_COND_FDIV): ...this.
8622 (UNSPEC_COND_MAX): Rename to...
8623 (UNSPEC_COND_FMAXNM): ...this.
8624 (UNSPEC_COND_MIN): Rename to...
8625 (UNSPEC_COND_FMINNM): ...this.
8626 (UNSPEC_COND_LT): Rename to...
8627 (UNSPEC_COND_FCMLT): ...this.
8628 (UNSPEC_COND_LE): Rename to...
8629 (UNSPEC_COND_FCMLE): ...this.
8630 (UNSPEC_COND_EQ): Rename to...
8631 (UNSPEC_COND_FCMEQ): ...this.
8632 (UNSPEC_COND_NE): Rename to...
8633 (UNSPEC_COND_FCMNE): ...this.
8634 (UNSPEC_COND_GE): Rename to...
8635 (UNSPEC_COND_FCMGE): ...this.
8636 (UNSPEC_COND_GT): Rename to...
8637 (UNSPEC_COND_FCMGT): ...this.
8638 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8639 (sve_fp_op_rev): Update accordingly.
8640 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8641
8642 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8643
8644 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8645 banner comments.
8646 * config/aarch64/check-sve-md.awk: New file.
8647 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8648 (insn-conditions.md): Depend on it.
8649
8650 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8651
8652 PR target/91385
8653 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8654 (*negsi2_cmpz_zext): Ditto.
8655
8656 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8657
8658 * config/aarch64/iterators.md (commutative): Remove.
8659
8660 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8661
8662 PR driver/91130
8663 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8664 processing COLLECT_GCC_OPTIONS.
8665 (run_gcc): Likewise.
8666
8667 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8668
8669 PR tree-optimization/91109
8670 * lra-remat.c (update_scratch_ops): Remove assignment of the
8671 hard register.
8672
8673 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8674
8675 * data-streamer.h (streamer_write_poly_uint64): Declare.
8676 (streamer_read_poly_uint64): Likewise.
8677 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8678 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8679 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8680 (add_condition): Take a poly_int64 size.
8681 * ipa-predicate.c (add_condition): Likewise.
8682 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8683 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8684 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8685 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8686 condition::size as a poly_int64.
8687 (unmodified_parm_1): Take a poly_int64 size pointer.
8688 (unmodified_parm): Likewise.
8689 (unmodified_parm_or_parm_agg_item): Likewise.
8690 (set_cond_stmt_execution_predicate): Update accordingly.
8691 (set_switch_stmt_execution_predicate): Likewise.
8692 (will_be_nonconstant_expr_predicate): Likewise.
8693 (will_be_nonconstant_predicate): Likewise.
8694 (inline_read_section): Stream condition::size as a poly_int.
8695 (ipa_fn_summary_write): Likewise.
8696
8697 2019-08-07 Martin Liska <mliska@suse.cz>
8698
8699 * fold-const.c (twoval_comparison_p): Replace int
8700 with bool as a return type.
8701 (simple_operand_p): Likewise.
8702 (operand_equal_p): Replace int with bool as a return type.
8703 * fold-const.h (operand_equal_p): Likewise.
8704
8705 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8706
8707 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8708 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8709 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8710 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8711 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8712 * tree-pretty-print.c (dump_omp_clause): Likewise.
8713 * tree-nested.c (convert_nonlocal_omp_clauses,
8714 convert_local_omp_clauses): Likewise.
8715 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8716 Likewise.
8717 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8718 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8719 clause with array or reference to array types, no matter what type
8720 except for reference it has.
8721
8722 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8723
8724 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8725
8726 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8727
8728 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8729 (arch_canonicalize): Support rv32g and rv64g and fix error
8730 handling.
8731
8732 2019-08-06 Martin Liska <mliska@suse.cz>
8733
8734 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8735 and DECL_IS_OPERATOR_DELETE_P.
8736
8737 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8738
8739 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8740 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8741 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8742 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8743 (gimplify_omp_for): Don't do C++ random access iterator clause
8744 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8745 don't predetermine the artificial iterator in case of C++ random
8746 access iterators as lastprivate, but private. For OMP_LOOP, force
8747 bind expr around simd body and force for_pre_body before the
8748 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8749 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8750 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8751 diff var of C++ random access iterators. Handle
8752 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8753 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8754 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8755 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8756 * omp-low.c (lower_rec_input_clauses): For
8757 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8758 variables instead of default constructing them.
8759 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8760 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8761 is_taskloop_ctx check from the assert to the guarding condition.
8762
8763 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8764
8765 * config/riscv/multilib-generator: (canonical_order): New.
8766 (arch_canonicalize): Dito.
8767 Apply arch_canonicalize for alts.
8768
8769 2019-08-05 Martin Sebor <msebor@redhat.com>
8770
8771 * doc/extend.texi (Common Variable Attributes): Document alias
8772 attribute.
8773
8774 2019-08-05 Marek Polacek <polacek@redhat.com>
8775
8776 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8777 * doc/invoke.texi: Document -Wcomma-subscript.
8778
8779 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8780
8781 * tree-core.h (tree_function_decl): Make function_code an
8782 independent field. Group the remaining bitfields into bytes
8783 and move decl_type so that it contines to be at a byte boundary.
8784 Leave 12 bits for future expansion.
8785
8786 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8787
8788 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8789 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8790 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8791 IFN_MASK_STORE.
8792
8793 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8794
8795 * gimple.h (gimple_move_vops): Declare.
8796 * gimple.c (gimple_move_vops): New function
8797 * gimple-fold.c (replace_call_with_call_and_fold)
8798 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8799 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8800 (gimple_fold_call): Use it.
8801 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8802 * tree-call-cdce.c (use_internal_fn): Likewise.
8803 * tree-if-conv.c (predicate_load_or_store): Likewise.
8804 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8805 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8806 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8807 (update_call_from_tree): Likewise.
8808 * tree-vect-stmts.c (vectorizable_load): Likewise.
8809 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8810
8811 2019-08-05 Martin Liska <mliska@suse.cz>
8812
8813 PR c++/91334
8814 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8815 with not arguments.
8816 (eliminate_unnecessary_stmts): Likewise.
8817
8818 2019-08-05 Richard Biener <rguenther@suse.de>
8819
8820 PR middle-end/91169
8821 * fold-const.c (get_array_ctor_element_at_index): Create
8822 offset_ints according to the sign of the index type and treat
8823 that as signed if it is obviously so.
8824
8825 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8826
8827 PR target/91341
8828 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8829 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8830 _mm256_storeu2_m128i): New function.
8831
8832 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8833
8834 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8835 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8836
8837 2019-08-05 Alan Modra <amodra@gmail.com>
8838
8839 PR target/91349
8840 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8841 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8842
8843 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8844
8845 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8846 bug that was fixed in Tcl 8.6.1.
8847
8848 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8849
8850 * config/rs6000/future.md: New file.
8851 * config/rs6000/rs6000.md: Include future.md.
8852 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8853
8854 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8855
8856 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8857 check to use targetm.slow_unaligned_access instead.
8858
8859 * function.c (assign_param_data_one): Remove unused data members.
8860
8861 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8862
8863 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8864 build_distinct_type_copy.
8865 (simd_clone_adjust_argument_types): Ditto.
8866 (simd_clone_adjust): Call build_distinct_type_copy here.
8867 (expand_simd_clones): Ditto.
8868
8869 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8870
8871 PR target/91201
8872 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8873
8874 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
8875
8876 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8877 from 'const void *'.
8878 (sort_locs_in_loop_postorder_cmp): Likewise.
8879
8880 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
8881
8882 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8883 (hot-bb-count-ws-permille): Likewise.
8884 (hot-bb-frequency-fraction): Likewise.
8885 (unlikely-bb-count-fraction): Likewise.
8886 * params.def (hot-bb-count-fraction): Rework description.
8887 (hot-bb-count-ws-permille): Likewise.
8888 (hot-bb-frequency-fraction): Likewise.
8889 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
8890 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8891
8892 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
8893
8894 PR target/91323
8895 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8896 Return false.
8897
8898 2019-08-02 Richard Biener <rguenther@suse.de>
8899
8900 * vec.h (vec::sort): Add gcc_qsort_r support.
8901 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8902 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8903 to gcc_qsort_r style callback.
8904 (sort_locs_in_loop_postorder_cmp): Likewise.
8905 (analyze_memory_references): Use gcc_sort_r interfaces.
8906 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8907
8908 2019-08-02 Martin Liska <mliska@suse.cz>
8909
8910 PR lto/91313
8911 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8912 to detect working job server.
8913 (driver::detect_jobserver): Test whether jobserver
8914 is active from GCC driver. That will prevent situation where
8915 GCC is invoked from a LD plugin and the linker already uses
8916 file descriptors suggested by make. That leads to a wrong
8917 detection.
8918 * gcc.h (driver): Add detect_jobserver.
8919 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8920 not scanning for --jobserver-auth prefix.
8921
8922 2019-08-02 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR tree-optimization/91201
8925 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8926 V16QImode extraction without sse4.1 try to use V4SImode lowpart
8927 extraction.
8928
8929 2019-08-01 Martin Sebor <msebor@redhat.com>
8930
8931 PR c++/90947
8932 * tree.c (type_initializer_zero_p): Define.
8933 * tree.h (type_initializer_zero_p): New function.
8934
8935 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8936
8937 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8938
8939 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
8940
8941 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8942 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
8943 * predict.c (maybe_hot_count_p): Likewise.
8944 (maybe_hot_bb_p): Tweak comment.
8945 (maybe_hot_edge_p): Likewise.
8946 (probably_never_executed): Likewise. Minor tweak.
8947 (probably_never_executed_bb_p): Likewise.
8948 (unlikely_executed_edge_p): Likewise.
8949 (probably_never_executed_edge_p): Likewise.
8950 (optimize_function_for_size_p): Likewise.
8951 (optimize_function_for_speed_p): Likewise.
8952 (function_optimization_type): Likewise.
8953 (optimize_bb_for_size_p): Likewise.
8954 (optimize_bb_for_speed_p): Likewise.
8955 (bb_optimization_type): Likewise.
8956 (optimize_edge_for_size_p): Likewise.
8957 (optimize_edge_for_speed_p): Likewise.
8958 (optimize_insn_for_size_p): Likewise.
8959 (optimize_insn_for_speed_p): Likewise.
8960 (optimize_loop_for_size_p): Likewise.
8961 (optimize_loop_for_speed_p): Likewise.
8962 (optimize_loop_nest_for_speed_p): Likewise.
8963 (optimize_loop_nest_for_size_p): Likewise.
8964 (predictable_edge_p): Likewise.
8965 (handle_missing_profiles): Minor tweak.
8966
8967 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
8968
8969 * config/rs6000/predicates.md (pcrel_external_address): Update
8970 comment.
8971
8972 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8973
8974 PR target/85693
8975 * config/i386/mmx.md (usadv8qi): New expander.
8976
8977 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
8978
8979 PR c++/90590
8980 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8981 with reserved names that are in a system header.
8982
8983 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
8984
8985 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8986 (*vec_extractv2si_0_zext_sse4): New insn pattern.
8987 (*vec_extractv2si_0_zext): Ditto.
8988 (*vec_extractv2si_1): Add (rm,x) alternative.
8989 (*vec_extractv2si_1_zext): New insn pattern.
8990 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8991 insn constraint.
8992
8993 2019-08-01 Richard Biener <rguenther@suse.de>
8994
8995 * domwalk.c (bb_postorder): Remove static variable.
8996 (cmp_bb_postorder): Adjust.
8997 (sort_bbs_postorder): Adjust and use gcc_sort_r.
8998 (dom_walker::walk): Adjust.
8999
9000 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9001
9002 * sort.cc (sort_r_ctx): New struct.
9003 (reorder23): Make templated on context type.
9004 (reorder45): Ditto.
9005 (cmp1): Ditto. Adjust signature.
9006 (netsort): Ditto.
9007 (mergesort): Ditto.
9008 [CHECKING_P] (cmp2to3): New static function. Use it...
9009 (gcc_qsort) [CHECKING_P]: ...here.
9010 (gcc_sort_r): New function.
9011 * system.h (sort_r_cmp_fn): New function typedef.
9012 (qsort_chk): Adjust signature.
9013 (gcc_sort_r): Declare.
9014 * vec.c (qsort_chk_error): Adjust.
9015 (qsort_chk): Adjust.
9016
9017 2019-08-01 Richard Biener <rguenther@suse.de>
9018
9019 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9020 (compute_antic): Localize it here.
9021
9022 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9023
9024 * common/config/riscv/riscv-common.c: Check -march string ends
9025 with null.
9026
9027 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9028
9029 * ipa-devirt.c (type_warning_cmp): Make static.
9030 (decl_warning_cmp): Ditto.
9031
9032 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9033
9034 PR target/91050
9035 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9036 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9037 use of deleted rs6000_dejagnu_cpu_index variable.
9038 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9039 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9040 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9041 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9042 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9043 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9044
9045 2019-07-31 Richard Biener <rguenther@suse.de>
9046
9047 PR tree-optimization/91280
9048 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9049 Decompose MEM_REF manually for offset handling.
9050
9051 2019-07-31 Richard Biener <rguenther@suse.de>
9052
9053 PR tree-optimization/91293
9054 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9055 of reduction stmts.
9056
9057 2019-07-31 Matt Thomas <matt@3am-software.com>
9058 Nick Hudson <nick@nthcliff.demon.co.uk>
9059 Matthew Green <mrg@eterna.com.au>
9060 Maya Rashish <coypu@sdf.org>
9061
9062 * config.gcc (hppa*-*-netbsd*): New target.
9063 * config/pa/pa-netbsd.h: New file.
9064 * config/pa/pa32-netbsd.h: New file.
9065
9066 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9067
9068 PR tree-optimization/91201
9069 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9070
9071 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9072
9073 * config/gcn/gcn-valu.md
9074 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9075 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9076 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9077 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9078 struct ilist. Add nops for delayeduse insns.
9079 * config/gcn/gcn.md (delayeduse): New attribute.
9080 (*movbi): Remove s_waitcnt from stores.
9081 (*mov<mode>_insn): Likewise.
9082 (*movti_insn): Likewise. Add delayeduse attribute.
9083 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9084 (atomic_store<mode>): Remove or adjust s_waitcnt.
9085
9086 2019-07-31 Richard Biener <rguenther@suse.de>
9087
9088 * vr-values.h (vr_values::swap_vr_value): New.
9089 (vr_values::free_value_range): likewise.
9090 * vr-values.c (vr_values::swap_vr_value): Implement.
9091 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9092 Do not return a range or take a var.
9093 (evrp_range_analyzer::stack): Change back to recording a non-const
9094 value_range *.
9095 * gimple-ssa-evrp-analyze.c
9096 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9097 value-range.
9098 (evrp_range_analyzer::pop_to_marker): Adjust.
9099 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9100 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9101 no longer needed value-range.
9102
9103 2019-07-31 Martin Liska <mliska@suse.cz>
9104
9105 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9106 have size and (or) alignment as 2nd and later arguments.
9107 Mark all of them as necessary.
9108
9109 2019-07-31 Richard Biener <rguenther@suse.de>
9110
9111 PR tree-optimization/91178
9112 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9113 Use tail-recursion.
9114
9115 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9116
9117 PR tree-optimization/91201
9118 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9119 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9120 TARGET_AVX512F.
9121 (reduc_plus_scal_<mode>): Improve formatting by introducing
9122 a temporary.
9123
9124 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9125
9126 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9127 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9128 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9129 (aarch64_init_tme_builtins): New.
9130 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9131 (aarch64_expand_builtin_tme): New.
9132 (aarch64_expand_builtin): Handle TME builtins.
9133 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9134 __ARM_FEATURE_TME when enabled.
9135 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9136 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9137 (TARGET_TME): New.
9138 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9139 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9140 UNSPECV_TCANCEL.
9141 (tstart, ttest, tcommit, tcancel): New instructions.
9142 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9143 (__tcancel, __ttest): New.
9144 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9145 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9146 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9147 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9148 * config/arm/types.md: Add new tme type attr.
9149 * doc/invoke.texi: Document "tme".
9150
9151 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9152
9153 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9154 warn_unused_result attribute.
9155 (cmse_check_address_range): Add warn_unused_result attribute.
9156
9157 2019-07-31 Richard Biener <rguenther@suse.de>
9158
9159 PR tree-optimization/91257
9160 * tree-vrp.c (union_ranges): Unify equality and less tests
9161 by using compare_values. Re-order cheap tests first.
9162
9163 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9164
9165 PR middle-end/91301
9166 * gimplify.c (gimplify_omp_for): If for class iterator on
9167 distribute parallel for there is no data sharing clause
9168 on inner_for_stmt, look for private clause on combined
9169 parallel too and if found, move it to inner_for_stmt.
9170
9171 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9172
9173 * lra-int.h (lra_operand_data): Remove early_clobber field.
9174 (lra_insn_reg): Likewise.
9175 * lra.c (debug_operand_data): Update accordingly.
9176 (setup_operand_alternative): Likewise.
9177 (new_insn_reg): Likewise. Remove early_clobber parameter.
9178 (collect_non_operand_hard_regs): Update call accordingly.
9179 Don't assign to lra_insn_reg::early_clobber.
9180 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9181 and update calls to new_insn_reg.
9182 (lra_update_insn_regno_info): Update calls accordingly.
9183 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9184 alternative number as a parameter and test whether the operand
9185 is earlyclobbered in that particular alternative.
9186 (process_alt_operands): Update call accordingly. Use per-alternative
9187 checks for earyclobber here too.
9188 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9189 against zero for IRA_UNKNOWN_ALT.
9190
9191 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9192
9193 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9194
9195 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9196
9197 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9198 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9199
9200 2019-07-30 Martin Liska <mliska@suse.cz>
9201
9202 PR ipa/89330
9203 * cgraph.c (cgraph_edge::make_direct): Use
9204 edge->indirect_unknown_callee as edge->resolve_speculation can
9205 deallocate edge which is this pointer.
9206
9207 2019-07-30 Richard Biener <rguenther@suse.de>
9208
9209 PR tree-optimization/91257
9210 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9211
9212 2019-07-30 Martin Liska <mliska@suse.cz>
9213
9214 * doc/invoke.texi: Document new behavior.
9215 * lto-wrapper.c (cpuset_popcount): New function
9216 is a copy of libgomp/config/linux/proc.c.
9217 (init_num_threads): Likewise.
9218 (run_gcc): Automatically detect core count for -flto.
9219 (jobserver_active_p): New function.
9220
9221 2019-07-30 Richard Biener <rguenther@suse.de>
9222
9223 PR tree-optimization/91257
9224 * bitmap.h (bitmap_ior_into_and_free): Declare.
9225 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9226 whether to add the unliked element to the freelist.
9227 (bitmap_list_insert_element_after): Add defaulted param for
9228 an already allocated element.
9229 (bitmap_ior_into_and_free): New function.
9230 * tree-ssa-structalias.c (condense_visit): Reduce the
9231 ponts-to and edge bitmaps of the SCC members in a
9232 logarithmic fashion rather than all to one.
9233
9234 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9235
9236 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9237 parameter. When nonnull, make sure that the addition or subtraction
9238 has the same condition.
9239 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9240 for CFN_COND_MUL too.
9241
9242 2019-07-30 Richard Biener <rguenther@suse.de>
9243
9244 PR tree-optimization/91291
9245 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9246 constant values.
9247
9248 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9249
9250 PR middle-end/91216
9251 * omp-low.c (global_nonaddressable_vars): New variable.
9252 (use_pointer_for_field): For global decls, if they are non-addressable,
9253 remember it in the global_nonaddressable_vars bitmap, if they are
9254 addressable and in the global_nonaddressable_vars bitmap, ignore their
9255 TREE_ADDRESSABLE bit.
9256 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9257 vars in global_nonaddressable_vars bitmap.
9258 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9259
9260 PR target/91150
9261 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9262 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9263 comparison to unsigned HOST_WIDE_INT before shifting it left.
9264
9265 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9266
9267 * config/i386/i386.md (movstrict<mode>): Use register_operand
9268 predicate for operand 0. Add expander condition. Assert that
9269 operand 0 is a SUBREG RTX.
9270 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9271 Update operand constraints and insn condition.
9272 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9273 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9274 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9275 Update operand 0 constraints.
9276 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9277
9278 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9279
9280 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9281 when -m{code,data}-region are used without -mlarge.
9282 * config/msp430/msp430.c (msp430_option_override): Error when a
9283 non-default code or data region is used without -mlarge.
9284 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9285 attributes when they are used without -mlarge.
9286
9287 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9288
9289 PR target/70320
9290 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9291
9292 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9293
9294 PR middle-end/91242
9295 * wide-int.h (generic_wide_int::sext_elt): New function.
9296 * inchash.h (hash::add_wide_int): Use it instead of elt.
9297
9298 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9299
9300 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9301 CODE_FOR_arm_##.
9302 * config/arm/arm.md (<crc_variant>): Rename to...
9303 (arm_<crc_variant>): ... This.
9304 (<cdp>): Rename to...
9305 (arm_<cdp>): ... This.
9306 (<ldc>): Rename to...
9307 (arm_<ldc>): ... This.
9308 (<stc>): Rename to...
9309 (arm_<stc>): ... This.
9310 (<mcr>): Rename to...
9311 (arm_<mcr>): ... This.
9312 (<mrc>): Rename to...
9313 (arm_<mrc>): ... This.
9314 (<mcrr>): Rename to...
9315 (arm_<mcrr>): ... This.
9316 (<mrrc>): Rename to...
9317 (arm_<mrrc>): ... This.
9318
9319 2019-07-29 Richard Biener <rguenther@suse.de>
9320
9321 PR tree-optimization/91257
9322 * tree-ssa-sccvn.h (struct vn_avail): New.
9323 (struct vn_ssa_aux): Add avail member.
9324 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9325 member, add m_avail_freelist one.
9326 (rpo_elim::~rpo_elim): Remove.
9327 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9328 data structure.
9329 (rpo_elim::eliminate_push_avail): Likewise.
9330 (do_unwind): Likewise.
9331 (do_rpo_vn): Likewise.
9332
9333 2019-07-29 Richard Biener <rguenther@suse.de>
9334
9335 PR tree-optimization/91257
9336 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9337 most cases, instead call compare_values which handles the
9338 symbolic ranges we handle specially.
9339 (compare_values_warnv): Do not call operand_less_p but open-code
9340 the effective fold calls. Avoid converting so much.
9341
9342 2019-07-29 Martin Liska <mliska@suse.cz>
9343
9344 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9345 remove LHS of operator new call. It's handled latter.
9346
9347 2019-07-29 Richard Biener <rguenther@suse.de>
9348
9349 PR tree-optimization/91267
9350 * vr-values.c (vr_values::update_value_range): Add early return
9351 for effectively VARYING lattice entry.
9352
9353 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9354
9355 PR debug/86638
9356 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9357 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9358 necessary if keep_all_vdefs_p is true.
9359 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9360 that keep_all_vdefs_p is false.
9361 (mark_all_reaching_defs_necessary): Likewise.
9362 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9363
9364 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9365
9366 * common.opt (Og): Change the initial value of flag_dse to 0.
9367 * opts.c (default_options_table): Move OPT_ftree_dse from
9368 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9369 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9370 entry before the OPT_ftree_sra entry.
9371 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9372 of flags disabled by Og.
9373
9374 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9375
9376 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9377 variables for -Og.
9378
9379 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9380
9381 * doc/sourcebuild.texi (check-function-bodies): Document.
9382
9383 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9384
9385 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9386 VEC_DUPLICATE of a fixed-length vector even if the result
9387 is variable-length. Likewise fold a duplicate of a
9388 variable-length vector if the variable-length vector is
9389 itself a duplicate of a fixed-length sequence.
9390 (test_vector_ops_duplicate): Test more cases.
9391
9392 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9393
9394 * vector-builder.h (vector_builder): Add a shape template parameter.
9395 (vector_builder::new_unary_operation): New function, generalizing
9396 the old tree_vector_builder function.
9397 (vector_builder::new_binary_operation): Likewise.
9398 (vector_builder::binary_encoded_nelts): Likewise.
9399 * int-vector-builder.h (int_vector_builder): Update template
9400 parameters to vector_builder.
9401 (int_vector_builder::shape_nelts): New function.
9402 * rtx-vector-builder.h (rtx_vector_builder): Update template
9403 parameters to vector_builder.
9404 (rtx_vector_builder::shape_nelts): New function.
9405 (rtx_vector_builder::nelts_of): Likewise.
9406 (rtx_vector_builder::npatterns_of): Likewise.
9407 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9408 * tree-vector-builder.h (tree_vector_builder): Update template
9409 parameters to vector_builder.
9410 (tree_vector_builder::shape_nelts): New function.
9411 (tree_vector_builder::nelts_of): Likewise.
9412 (tree_vector_builder::npatterns_of): Likewise.
9413 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9414 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9415 (tree_vector_builder::new_binary_operation): Delete.
9416 (tree_vector_builder::binary_encoded_nelts): Likewise.
9417 * simplify-rtx.c: Include rtx-vector-builder.h.
9418 (distributes_over_addition_p): New function.
9419 (simplify_const_unary_operation)
9420 (simplify_const_binary_operation): Generalize handling of vector
9421 constants to include variable-length vectors.
9422 (test_vector_ops_series): Add more tests.
9423
9424 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9425
9426 PR lto/91222
9427 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9428 than INDENTIFIER_POINTER.
9429
9430 2019-07-28 Martin Liska <mliska@suse.cz>
9431
9432 PR ipa/89330
9433 * cgraph.c (symbol_table::create_edge): Always allocate
9434 a cgraph_edge.
9435 (symbol_table::free_edge): Store summary_id to
9436 edge_released_summary_ids if != -1;
9437 * cgraph.h (NEXT_FREE_NODE): Remove.
9438 (SET_NEXT_FREE_NODE): Likewise.
9439 (NEXT_FREE_EDGE): Likewise.
9440 (symbol_table::release_symbol): Store summary_id to
9441 cgraph_released_summary_ids if != -1;
9442 (symbol_table::allocate_cgraph_symbol): Always allocate
9443 a cgraph_node.
9444
9445 2019-07-28 Alan Modra <amodra@gmail.com>
9446
9447 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9448 gen_sibcall.
9449
9450 2019-07-28 Alan Modra <amodra@gmail.com>
9451
9452 PR target/91135
9453 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9454 define.
9455 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9456 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9457 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9458
9459 2019-07-28 Alan Modra <amodra@gmail.com>
9460
9461 PR target/91050
9462 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9463 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9464 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9465 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9466 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9467 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9468 in asm_default spec.
9469 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9470 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9471
9472 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9473
9474 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9475
9476 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9477
9478 PR target/89517
9479 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9480 * config/aarch64/aarch64-option-extensions.def: Add new comments
9481 and restore easier to read options.
9482
9483 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9484
9485 * convert.c (convert_to_real_1): Move part of conversion code...
9486 * match.pd: ...To here.
9487
9488 2019-07-26 Martin Jambor <mjambor@suse.cz>
9489
9490 PR ipa/89330
9491 * ipa-inline-transform.c (check_speculations_1): New function.
9492 (push_all_edges_in_set_to_vec): Likewise.
9493 (check_speculations): Use check_speculations_1, new parameter
9494 new_edges.
9495 (inline_call): Pass new_edges to check_speculations.
9496 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9497 NULL.
9498 (speculation_useful_p): Early return true if edge is inlined, remove
9499 later checks for inline_failed.
9500
9501 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9502
9503 PR rtl-optimization/91223
9504 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9505 matching with INOUT operand.
9506
9507 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9508
9509 * stmt.c (expand_case): Try to narrow the index type if it's larger
9510 than a word. Tidy up.
9511
9512 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9513
9514 * cif-code.def (NEVER_CALL): New code.
9515 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9516 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9517
9518 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9519
9520 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9521 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9522
9523 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9524
9525 * ipa-devirt.c (add_type_duplicate): Fix return value.
9526
9527 2019-07-25 Richard Biener <rguenther@suse.de>
9528
9529 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9530 type parameter and use it instead of guessing expression
9531 type from the first operand.
9532 (extract_range_from_binary_expr): Pass expr_type down.
9533
9534 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9535
9536 * config/arm/arm.md (SATrev): Change to code attribute.
9537 (*satsi_<SAT:code>): Adjust for the above.
9538 (*satsi_<SAT:code>_shift): Likewise.
9539
9540 2019-07-25 Richard Biener <rguenther@suse.de>
9541
9542 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9543 Make value_range * temporary const.
9544 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9545 Likewise.
9546 (evrp_range_analyzer::record_ranges_from_): Likewise.
9547 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9548 deal with having recorded a const one.
9549 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9550 Return a const value_range *.
9551 (evrp_range_analyzer::pop_value_range): Likewise.
9552 (evrp_range_analyzer::stack): Record const value_range *s.
9553 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9554 Adjust.
9555 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9556 (format_integer): Likewise.
9557 (sprintf_dom_walker::handle_gimple_call): Likewise.
9558 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9559 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9560 (vrp_prop::get_value_range): Adjust.
9561 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9562 modifying the lattice in-place.
9563 (vrp_prop::visit_stmt): Likewise.
9564 * vr-values.c (vr_values::get_lattice_entry): New private method.
9565 (vr_values::get_value_range): Wrap it and return a const
9566 value_range *.
9567 (vr_values::set_def_to_varying): New.
9568 (vr_values::set_defs_to_varying): Use it.
9569 (vr_values::update_value_range): Likewise.
9570 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9571 (values::op_with_constant_singleton_va): Likewise.
9572 (vr_values::extract_range_for_var_from_co): Likewise.
9573 (vr_values::extract_range_from_ssa_name): Likewise.
9574 (vr_values::extract_range_from_cond_expr): Likewise.
9575 (vr_values::extract_range_basic): Likewise.
9576 (compare_ranges): Take const value_range *, adjust.
9577 (compare_range_with_value): Likewise.
9578 (vrp_valueize): Adjust.
9579 (vrp_valueize_1): Likewise.
9580 (vr_values::get_vr_for_comparison): Return a const value_range *.
9581 (vr_values::compare_name_with_value): Adjust.
9582 (vr_values::compare_names): Likewise.
9583 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9584 Likewise.
9585 (vr_values::vrp_evaluate_conditional): Likewise.
9586 (find_case_label_ranges): Take a const value_range *.
9587 (vr_values::vrp_visit_switch_stmt): Adjust.
9588 (vr_values::extract_range_from_phi_node): Likewise.
9589 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9590 (vr_values::simplify_abs_using_ranges): Likewise.
9591 (test_for_singularity): Take a const value_range *.
9592 (range_fits_type_p): Likewise.
9593 (vr_values::simplify_cond_using_ranges_1): Adjust.
9594 (vr_values::simplify_cond_using_ranges_2): Likewise.
9595 (vr_values::simplify_switch_using_ranges): Likewise.
9596 (vr_values::simplify_float_conversion_usi): Likewise.
9597 (vr_values::two_valued_val_range_p): Likewise.
9598 * vr-values.h (vr_values::get_value_range): Return a const
9599 value_range *.
9600 (vr_values::set_def_to_varying): New.
9601 (vr_values::get_lattice_entry): New private method.
9602 (vr_values::get_vr_for_comparison): Return a const value_range *.
9603
9604 2019-07-25 Martin Liska <mliska@suse.cz>
9605 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9606
9607 PR c++/23383
9608 * common.opt: Add -fallocation-dce
9609 * gimple.c (gimple_call_operator_delete_p): New.
9610 * gimple.h (gimple_call_operator_delete_p): Likewise.
9611 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9612 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9613 DECL_IS_OPERATOR_DELETE_P.
9614 (mark_all_reaching_defs_necessary_1): Likewise.
9615 (propagate_necessity): Likewise.
9616 (eliminate_unnecessary_stmts): Handle
9617 gimple_call_operator_delete_p.
9618 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9619 Add packing of OPERATOR_DELETE.
9620 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9621 Similarly here.
9622 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9623 (DECL_SET_IS_OPERATOR_DELETE): New.
9624 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9625
9626 2019-07-25 Martin Liska <mliska@suse.cz>
9627
9628 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9629 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9630 * coverage.c (coverage_begin_function): Likewise.
9631 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9632 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9633 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9634 (sem_item::hash_referenced_symbol_properties): Likewise.
9635 * lto-streamer-out.c (hash_tree): Likewise.
9636 * predict.c (expr_expected_value_1): Likewise.
9637 * tree-inline.c (expand_call_inline): Likewise.
9638 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9639 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9640 * tree-core.h (enum function_decl_type): New enum.
9641 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9642 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9643 (set_function_decl_type): Likewise.
9644 (DECL_IS_OPERATOR_NEW_P): New.
9645 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9646 (DECL_LAMBDA_FUNCTION): Likewise.
9647 (DECL_LAMBDA_FUNCTION_P): Likewise.
9648 (DECL_IS_OPERATOR_NEW): Remove.
9649 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9650
9651 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9652
9653 * ipa-profile.c (get_most_common_single_value): Use
9654 get_nth_most_common_value.
9655 * profile.c (sort_hist_value): New function.
9656 (compute_value_histograms): Call sort_hist_value to sort the
9657 values after loading from disk.
9658 * value-prof.c (get_most_common_single_value): Rename to ...
9659 get_nth_most_common_value. Add input params n, return
9660 the n_th value and count.
9661 (gimple_divmod_fixed_value_transform): Use
9662 get_nth_most_common_value.
9663 (gimple_ic_transform): Likewise.
9664 (gimple_stringops_transform): Likewise.
9665 * value-prof.h (get_most_common_single_value): Add input params
9666 n, default to 0.
9667
9668 2019-07-25 Richard Biener <rguenther@suse.de>
9669
9670 PR tree-optimization/91236
9671 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9672 size of CONSTRUCTOR write. Fix buffer size we pass to
9673 native_encode_expr.
9674
9675 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9676
9677 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9678 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9679 r273773.
9680
9681 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9682
9683 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9684 explicitly disabled with --disable-initfini-array.
9685
9686 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9687
9688 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9689 if-exists.
9690
9691 2019-07-24 Martin Sebor <msebor@redhat.com>
9692
9693 PR tree-optimization/91183
9694 PR tree-optimization/86688
9695 * builtins.c (compute_objsize): Handle MEM_REF.
9696 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9697 (get_min_string_length): Remove.
9698 (count_nonzero_bytes): New function.
9699 (handle_char_store): Rename...
9700 (handle_store): to this. Handle multibyte stores via integer types.
9701 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9702 function name.
9703
9704 2019-07-24 Martin Sebor <msebor@redhat.com>
9705
9706 PR driver/80545
9707 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9708 (diagnostic_report_diagnostic): Same.
9709 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9710 (diagnostic_context::lang_mask): New data member.
9711 * ipa-pure-const.c (suggest_attribute): Use
9712 lang_hooks.option_lang_mask ().
9713 * opts-common.c (option_enabled): Handle new argument.
9714 (get_option_state): Pass an additional argument.
9715 * opts.c (print_filtered_help): Print supported languages for
9716 unsupported options. Adjust printing of current state.
9717 * opts.h (option_enabled): Add argument.
9718 * toplev.c (print_switch_values): Use lang_mask.
9719 (general_init): Set global_dc->lang_mask.
9720
9721 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9722
9723 PR bootstrap/87030
9724 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9725
9726 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9727
9728 * cgraphunit.c (symbol_table::compile): Start and stop
9729 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9730 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9731
9732 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9733
9734 * gimplify.c (flag_instrument_functions_exclude_p): Include
9735 namespace/class information in the printable name.
9736 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9737 to tokens entered into the vector.
9738
9739 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9740
9741 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9742 (get_static_chain): Call it instead of build_simple_mem_ref.
9743 (get_frame_field): Likewise.
9744 (get_nonlocal_debug_decl): Likewise.
9745 (convert_nonlocal_reference_op): Likewise.
9746
9747 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9748
9749 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9750 declaration.
9751 (arc_compute_frame_size): Millicode is disabled when compiling
9752 ISR.
9753 (arc_return_address_register): Likewise.
9754 (arc_compute_function_type): Likewise.
9755 (arc_compute_frame_size): Likewise.
9756 (secondary_reload_info): Likewise.
9757 (arc_get_unalign): Likewise.
9758 (arc_can_use_return_insn): Declare.
9759 * config/arc/arc.c (AUX_LP_START): Define
9760 (AUX_LP_END): Likewise.
9761 (arc_frame_info): Update gmask member to 64-bit datum.
9762 (GMASK_LEN): Update.
9763 (arc_compute_function_type): Make it static, move it forward.
9764 (arc_must_save_register): Update, consider the extra regs.
9765 (arc_compute_millicode_save_restore_regs): Update to use the 64
9766 bit gmask.
9767 (arc_compute_frame_size): Likewise.
9768 (arc_enter_leave_p): Likewise.
9769 (arc_save_callee_saves): Likewise.
9770 (arc_restore_callee_saves): Likewise.
9771 (arc_save_callee_enter): Likewise.
9772 (arc_restore_callee_leave): Likewise.
9773 (arc_save_callee_milli): Likewise.
9774 (arc_restore_callee_milli): Likewise.
9775 (arc_expand_prologue): Add new interrupt handling.
9776 (arc_return_address_register): Make it static, move it forward.
9777 (arc_expand_epilogue): Add new interrupt handling.
9778 (arc_get_unalign): Delete.
9779 (arc_epilogue_uses): Make sure we do not remove the extra
9780 saved/restored registers when interrupt.
9781 (arc_can_use_return_insn): New function.
9782 (push_reg): Likewise.
9783 (pop_reg): Likewise.
9784 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9785 procedures.
9786 (arc_restore_callee_saves): Likewise, but restoring.
9787 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9788 (R33_REG): Likewise.
9789 (R34_REG): Likewise.
9790 (R35_REG): Likewise.
9791 (R36_REG): Likewise.
9792 (R37_REG): Likewise.
9793 (R38_REG): Likewise.
9794 (R39_REG): Likewise.
9795 (R45_REG): Likewise.
9796 (R46_REG): Likewise.
9797 (R47_REG): Likewise.
9798 (R48_REG): Likewise.
9799 (R49_REG): Likewise.
9800 (R50_REG): Likewise.
9801 (R51_REG): Likewise.
9802 (R52_REG): Likewise.
9803 (R53_REG): Likewise.
9804 (R54_REG): Likewise.
9805 (R55_REG): Likewise.
9806 (R56_REG): Likewise.
9807 (R58_REG): Likewise.
9808 (type): Add rtie attribute.
9809 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9810 (movsi_insn): Accept moves to lp_count.
9811 (rtie): Update pattern.
9812 (simple_return): Simplify it, don't use this pattern as a return
9813 from an interrupt.
9814 (arc600_rtie): New pattern.
9815 (p_return_i): Clean up.
9816 (return): Likewise.
9817 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9818 family CPUs.
9819 * config/arc/predicates.md (move_src_operand): Consider lp_count
9820 as a register.
9821
9822 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9823
9824 * config/s390/predicates.md (addv_const_operand): New predicate.
9825 * config/s390/s390-modes.def (CCO): New condition code mode.
9826 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9827 (s390_branch_condition_mask): Likewise.
9828 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9829 ("mulv<mode>4"): New expanders.
9830 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9831 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9832 pattern definitions.
9833
9834 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9835
9836 PR middle-end/91166
9837 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9838 (define_predicates): Add entry for uniform_vector_p.
9839 (vec_same_elem_p): New match pattern.
9840
9841 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9842
9843 PR bootstrap/87030
9844 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9845 * config/i386/darwin32-biarch.h .. to here.
9846 * config/i386/darwin64-biarch.h: Adjust comments.
9847 * config/rs6000/darwin32-biarch.h: Likewise.
9848 * config/rs6000/darwin64-biarch.h: Likewise.
9849 * config.gcc: Missed commit from r273746
9850 (*-*-darwin*): Don't include CPU t-darwin here.
9851 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9852 an error message if i686-darwin configuration is attempted for
9853 Darwin >= 18.
9854
9855 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9856
9857 PR bootstrap/87030
9858 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9859 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9860 an error message if i686-darwin configuration is attempted for
9861 Darwin >= 18.
9862 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9863 (powerpc-*-darwin*): Use biarch files where needed.
9864 (powerpc64-*-darwin*): Likewise.
9865 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9866 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9867 arch case.
9868 * config/i386/darwin32-biarch.h: New.
9869 * config/i386/darwin64.h: Rename.
9870 * config/i386/darwin64-biarch.h: To this.
9871 * config/i386/t-darwin: Rename.
9872 * config/i386/t-darwin32-biarch: To this.
9873 * config/i386/t-darwin64: Rename.
9874 * config/i386/t-darwin64-biarch: To this.
9875 * config/rs6000/darwin32-biarch.h: New.
9876 * config/rs6000/darwin64.h: Rename.
9877 * config/rs6000/darwin64-biarch.h: To this.
9878 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9879 arch case.
9880 * config/rs6000/t-darwin8: Rename.
9881 * config/rs6000/t-darwin32-biarch: To this.
9882 * config/rs6000/t-darwin64 Rename.
9883 * config/rs6000/t-darwin64-biarch: To this.
9884
9885 2019-07-23 Martin Sebor <msebor@redhat.com>
9886
9887 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9888
9889 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9890
9891 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9892 (rh): New alias for it.
9893
9894 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
9895
9896 * gdbhooks.py: Pass replace=True to
9897 gdb.printing.register_pretty_printer.
9898
9899 2019-07-23 Richard Biener <rguenther@suse.de>
9900
9901 PR debug/91231
9902 * lto-streamer-in.c (input_function): Drop inline-entry markers
9903 that ended up with an unknown location block.
9904
9905 2019-07-23 Richard Biener <rguenther@suse.de>
9906
9907 PR tree-optimization/83518
9908 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9909 init from a constant even when partial defs are already recorded.
9910
9911 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9912
9913 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9914 * config/i386/znver1.md: Enable patterns for znver2 and add store
9915 variants which use extra AGU unit.
9916
9917 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9918
9919 * config/i386/i386-options.c (ix86_option_override_internal): Default
9920 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9921 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9922 for ZNVER2.
9923
9924 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9925
9926 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9927 (znver2_costs): Update 256 bit SSE costs and multiplication.
9928
9929 2019-07-23 Jan Beulich <jbeulich@suse.com>
9930
9931 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9932 Require only AVX512F.
9933 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
9934 alternative expanding to vpternlog.
9935
9936 2019-07-23 Martin Liska <mliska@suse.cz>
9937
9938 * dwarf2out.c (gen_producer_string): Canonize -flto=N
9939 to -flto in dwarf producer string.
9940
9941 2019-07-23 Richard Biener <rguenther@suse.de>
9942
9943 * tree-cfg.c (label_for_bb): Remove global var.
9944 (main_block_label): Take label_for_bb as argument.
9945 (cleanup_dead_labels_eh): Likewise, adjust.
9946 (cleanup_dead_labels): Adjust.
9947
9948 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9949
9950 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9951 Configurations): Add documentation for __builtin_mtfsf.
9952
9953 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
9954
9955 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9956 * config/riscv/riscv.c (riscv_constant_alignment): Use
9957 riscv_align_data_type.
9958 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9959 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9960 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9961 * config/riscv/riscv.opt (malign-data): New.
9962 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9963
9964 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
9965
9966 * cgraph.c (dump_graphviz): New function.
9967 * cgraph.h (dump_graphviz): New function.
9968 * symtab.c (dump_graphviz): New function.
9969
9970 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
9971
9972 * config/aarch64/aarch64-simd.md
9973 (*aarch64_simd_sra<mode>): New.
9974 * config/aarch64/iterators.md
9975 (SHIFTRT): New iterator.
9976 (sra_op): New attribute.
9977
9978 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9979
9980 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9981 callee-saved regs R4->R10 in an interrupt function that calls another
9982 function.
9983
9984 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
9985
9986 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9987 (_mm_blendv_epi8): New.
9988
9989 2019-07-22 Richard Biener <rguenther@suse.de>
9990
9991 PR tree-optimization/91221
9992 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9993 restrict partial-def handling of empty constructors and
9994 memset to refs with known offset.
9995
9996 2019-07-22 Jan Beulich <jbeulich@suse.com>
9997
9998 * config/i386/sse.md (ternlogsuffix): New.
9999 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10000 AVX512F is in use.
10001 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10002
10003 2019-07-22 Martin Liska <mliska@suse.cz>
10004
10005 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10006 comment.
10007 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10008
10009 2019-07-22 Martin Liska <mliska@suse.cz>
10010
10011 * lto-section-in.c (lto_get_section_data):
10012 Use new function get_compression.
10013 * lto-streamer-out.c (produce_lto_section): Use
10014 set_compression to encode compression algorithm.
10015 * lto-streamer.h (struct lto_section): Do not
10016 use bitfields in the format.
10017
10018 2019-07-22 Martin Liska <mliska@suse.cz>
10019
10020 PR driver/91172
10021 * opts-common.c (decode_cmdline_option): Decode
10022 argument of -Werror and check it for a wrong language.
10023 * opts-global.c (complain_wrong_lang): Remove such case.
10024
10025 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10026
10027 * config/arc/arc.c (prepare_move_operands): Always use an
10028 intermediate register when storing a TLS symbols.
10029
10030 2019-07-22 Stafford Horne <shorne@gmail.com>
10031
10032 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10033 force_reg.
10034
10035 2019-07-22 Stafford Horne <shorne@gmail.com>
10036
10037 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10038 and munordered-float validations.
10039 * config/or1k/constraints.md (d): New register constraint.
10040 * config/or1k/predicates.md (fp_comparison_operator): New.
10041 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10042 operands.
10043 (or1k_expand_compare): Normalize unordered comparisons.
10044 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10045 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10046 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10047 * config/or1k/or1k.md (type): Add fpu.
10048 (fpu): New instruction reservation.
10049 (F, f, fr, fi, FI, FOP, fop): New.
10050 (<fop><F:mode>3): New ALU instruction definition.
10051 (float<fi><F:mode>2): New conversion instruction definition.
10052 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10053 (fpcmpcc): New code iterator.
10054 (*sf_fp_insn): New instruction definition.
10055 (cstore<F:mode>4): New expand definition.
10056 (cbranch<F:mode>4): New expand definition.
10057 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10058 munordered-float): New options.
10059 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10060 munordered-float.
10061
10062 2019-07-22 Stafford Horne <shorne@gmail.com>
10063
10064 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10065 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10066 documenation to be more clear.
10067 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10068 more clear.
10069 * config/or1k/or1k.opt (mrori): New option.
10070 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10071 msfimm, mshftimm): Rewrite documentation to be more clear.
10072 * config/or1k/or1k.md (insn_support): Add ror and rori.
10073 (enabled): Add conditions for ror and rori.
10074 (rotrsi3): Replace condition for shftimm with ror and rori.
10075
10076 2019-07-22 Stafford Horne <shorne@gmail.com>
10077
10078 PR target/90363
10079 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10080 (extend<mode>si2): Update predicate.
10081 * config/or1k/predicates.md (volatile_mem_operand): New.
10082 (reg_or_mem_operand): New.
10083
10084 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10085
10086 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10087 * config/rs6000/rs6000-call.c: ... to here.
10088
10089 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10090
10091 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10092 memory.
10093
10094 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10095
10096 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10097
10098 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10099
10100 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10101
10102 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10103
10104 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10105 (any_memory_operand): New predicate.
10106 (reg_or_mem_operand): Use it.
10107
10108 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10109
10110 PR target/91204
10111 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10112
10113 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10114
10115 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10116 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10117
10118 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10119
10120 * tree.def (OMP_LOOP): New tree code.
10121 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10122 (enum omp_clause_bind_kind): New enum.
10123 (struct tree_omp_clause): Add subcode.bind_kind.
10124 * tree.h (OMP_LOOP_CHECK): Rename to ...
10125 (OMP_LOOPING_CHECK): ... this.
10126 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10127 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10128 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10129 (OMP_CLAUSE_BIND_KIND): Define.
10130 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10131 bind clause entries.
10132 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10133 * tree-pretty-print.c (dump_omp_clause): Likewise.
10134 (dump_generic_node): Handle OMP_LOOP.
10135 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10136 (in_omp_construct): New variable.
10137 (is_gimple_stmt): Handle OMP_LOOP.
10138 (gimplify_scan_omp_clauses): For lastprivate don't set
10139 check_non_private if code == OMP_LOOP. For reduction clause
10140 on OMP_LOOP combined with parallel or teams propagate as shared
10141 on the combined construct. Handle OMP_CLAUSE_BIND.
10142 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10143 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10144 for constructs from a loop construct to gimplify_scan_omp_clauses.
10145 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10146 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10147 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10148 to match the implicit ORT_TARGET construct around whole body.
10149 Temporarily clear in_omp_construct when processing body.
10150 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10151 etc. temporarily set in_omp_construct when processing body.
10152 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10153 * omp-low.c (struct omp_context): Add loop_p.
10154 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10155 in that the original var might be private.
10156 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10157 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10158 addition of loop construct.
10159 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10160
10161 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10162 lastprivate non-addressable iterator of a collapse(1) simd.
10163
10164 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10165
10166 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10167 as in rs6000.c.
10168
10169 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10170
10171 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10172 refer to default conditions. Warn for the 'y' spec which is ignored
10173 by current linkers.
10174
10175 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10176
10177 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10178 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10179 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10180 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10181 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10182 init_cumulative_args, rs6000_promote_function_mode,
10183 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10184 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10185 rs6000_function_arg_boundary, rs6000_parm_offset,
10186 rs6000_parm_start, rs6000_arg_size,
10187 rs6000_darwin64_record_arg_advance_flush,
10188 rs6000_darwin64_record_arg_advance_recurse,
10189 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10190 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10191 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10192 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10193 rs6000_finish_function_arg, rs6000_function_arg,
10194 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10195 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10196 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10197 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10198 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10199 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10200 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10201 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10202 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10203 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10204 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10205 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10206 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10207 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10208 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10209 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10210 get_element_number, altivec_expand_vec_set_builtin,
10211 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10212 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10213 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10214 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10215 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10216 rs6000_expand_builtin, rs6000_vector_type,
10217 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10218 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10219 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10220 to rs6000-call.c.
10221 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10222 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10223 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10224 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10225 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10226 init_cumulative_args, rs6000_promote_function_mode,
10227 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10228 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10229 rs6000_function_arg_boundary, rs6000_parm_offset,
10230 rs6000_parm_start, rs6000_arg_size,
10231 rs6000_darwin64_record_arg_advance_flush,
10232 rs6000_darwin64_record_arg_advance_recurse,
10233 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10234 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10235 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10236 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10237 rs6000_finish_function_arg, rs6000_function_arg,
10238 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10239 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10240 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10241 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10242 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10243 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10244 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10245 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10246 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10247 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10248 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10249 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10250 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10251 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10252 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10253 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10254 get_element_number, altivec_expand_vec_set_builtin,
10255 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10256 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10257 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10258 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10259 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10260 rs6000_expand_builtin, rs6000_vector_type,
10261 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10262 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10263 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10264 to here from rs6000.c.
10265 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10266 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10267 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10268 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10269 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10270 rs6000_return_in_memory, rs6000_return_in_msb,
10271 rs6000_pass_by_reference, setup_incoming_varargs,
10272 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10273 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10274 rs6000_function_arg_padding, rs6000_function_arg,
10275 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10276 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10277 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10278 rs6000_passes_long_double, rs6000_passes_vector,
10279 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10280 altivec_builtin_mask_for_load) Add declarations.
10281 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10282 * config/config.gcc: Add new source file rs6000-call.c to garbage
10283 collector and extra_objs.
10284
10285 2019-07-19 Jeff Law <law@redhat.com>
10286
10287 PR tree-optimization/86061
10288 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10289 strncpy. Drop some trivial dead code.
10290 (maybe_trim_memstar_call): Handle strncpy.
10291
10292 2019-07-19 Richard Biener <rguenther@suse.de>
10293
10294 PR tree-optimization/91211
10295 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10296 memset encoding size.
10297
10298 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10299
10300 PR target/91204
10301 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10302
10303 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10304
10305 PR ipa/91194
10306 * ipa-inline.c (recursive_inlining): Fix limits check.
10307
10308 2019-07-19 Richard Biener <rguenther@suse.de>
10309
10310 PR tree-optimization/91200
10311 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10312 no PHI nodes in middle-bb.
10313
10314 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10315
10316 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10317 to +sve-bitperm.
10318 * config/aarch64/aarch64-option-extensions.def: Likewise.
10319
10320 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10321
10322 PR middle-end/91190
10323 * function.c (insert_temp_slot_address): Store into the hash table
10324 a copy of address to avoid RTL sharing issues.
10325
10326 2019-07-19 Richard Biener <rguenther@suse.de>
10327
10328 PR tree-optimization/91207
10329 Revert
10330 2019-07-17 Richard Biener <rguenther@suse.de>
10331
10332 PR tree-optimization/91178
10333 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10334 loads with a gap larger than the vector size always use
10335 VMAT_STRIDED_SLP.
10336 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10337 avoid loading vectors that are only contained in the gap
10338 and thus are not needed.
10339
10340 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10341
10342 * config/i386/i386.md (*addqi_2_slp): Remove.
10343 (*<code>qi_2_slp): Ditto.
10344
10345 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10346
10347 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10348 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10349 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10350 Rename function from rs6000_prefixed_address.
10351 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10352 TARGET_HAS_TOC.
10353 (TARGET_TOC): Likewise.
10354 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10355 rs6000.h.
10356 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10357 TARGET_HAS_TOC.
10358 (TARGET_TOC): Likewise.
10359 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10360 rs6000.h.
10361 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10362 TARGET_HAS_TOC.
10363 (TARGET_TOC): Likewise.
10364 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10365 check to require -mcmodel=medium for pc-relative addressing.
10366 (create_TOC_reference): Add assertion for TARGET_TOC.
10367 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10368 TARGET_NO_TOC.
10369 (rs6000_emit_move): Likewise.
10370 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10371 to 'TOC_alias_set'.
10372 (get_TOC_alias_set): Likewise.
10373 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10374 TARGET_NO_TOC.
10375 (rs6000_can_eliminate): Likewise.
10376 (rs6000_prefixed_address_mode_p): Rename function from
10377 rs6000_prefixed_address.
10378 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10379 TARGET_HAS_TOC and not pc-relative.
10380 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10381 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10382 TARGET_HAS_TOC.
10383 (TARGET_TOC): Likewise.
10384 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10385 rs6000.h.
10386
10387 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10388
10389 PR target/91188
10390 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10391 for operand 0. Do not use (match_dup) to match operand 1 with
10392 operand 0. Add check in insn constraint that either input operand
10393 matches operand 0. Use SWI12 mode iterator to also handle
10394 HImode operands.
10395 (*and<mode>_1_slp): Ditto.
10396 (*<code>qi_1_slp): Ditto.
10397 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10398 Do not use (match_dup) to match operand 1 with operand 0. Add
10399 check in insn constraint that operand 1 matches operand 0.
10400 Use SWI12 mode iterator to also handle HImode operands.
10401 (*ashl<mode>3_1_slp): Ditto.
10402 (*<shift_insn><mode>3_1_slp): Ditto.
10403 (*<rotate_insn><mode>3_1_slp): Ditto.
10404
10405 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10406
10407 * config/arm/arm-builtins.c
10408 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10409 (arm_expand_unop_builtin): Likewise.
10410 * config/arm/crypto.md
10411 (crypto_sha1h): Convert from define_insn to define_expand.
10412 (crypto_<crypto_pattern>): Likewise.
10413 (crypto_sha1h_lb): New define_insn.
10414 (crypto_<crypto_pattern>_lb): Likewise.
10415
10416 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10417
10418 PR target/90317
10419 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10420 (vsha1cq_u32): Likewise.
10421 (vsha1pq_u32): Likewise.
10422 (vsha1mq_u32): Likewise.
10423 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10424 vec select.
10425 (crypto_sha1c): Correct vec select.
10426 (crypto_sha1m): Likewise.
10427 (crypto_sha1p): Likewise.
10428
10429 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10430
10431 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10432 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10433 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10434 (subdi_zesidi_zesidi): Likewise.
10435 (negdi2_compare, negdi2_insn): Likewise.
10436 (negdi_extensidi): Likewise.
10437 (negdi_zero_extendsidi): Likewise.
10438 (arm_cmpdi_insn): Likewise.
10439 (subsi3_carryin): Use arm_borrow_operation.
10440 (subsi3_carryin_const): Likewise.
10441 (subsi3_carryin_const0): Likewise.
10442 (subsi3_carryin_compare): Likewise.
10443 (subsi3_carryin_compare_const): Likewise.
10444 (subsi3_carryin_compare_const0): Likewise.
10445 (subsi3_carryin_shift): Likewise.
10446 (rsbsi3_carryin_shift): Likewise.
10447 (negsi2_carryin_compare): Likewise.
10448
10449 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10450
10451 PR tree-optimization/91137
10452 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10453 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10454 Init, use and fini the above new field.
10455 (determine_base_object_1): New function.
10456 (determine_base_object): Reimplement using walk_tree.
10457
10458 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10459
10460 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10461 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10462 CLEANUP_FORCE_FAST_DCE is set.
10463 * ifcvt.c (rest_of_handle_if_conversion): Pass
10464 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10465 if-conversion succeeded.
10466
10467 2019-07-18 Richard Biener <rguenther@suse.de>
10468
10469 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10470 branches to make code less indented.
10471
10472 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10473
10474 PR middle-end/81824
10475 * attribs.c (decls_mismatched_attributes): Simplify the logic
10476 that avoids duplicates and false positives.
10477
10478 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10479
10480 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10481 data into data section when generating PIC code.
10482 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10483 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10484 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10485 return 2 for SOM and 0 for other targets.
10486
10487 2019-07-17 Jeff Law <law@redhat.com>
10488
10489 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10490 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10491 avoid unexpected switch statement fallthru.
10492
10493 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10494
10495 * config/i386/i386.md (*add<dwi>3_doubleword):
10496 Remove redundant constraints.
10497 (*add<mode>_1): Ditto.
10498 (*addhi_1): Ditto.
10499 (*addqi_1): Ditto.
10500 (*addqi_1_slp): Ditto.
10501 (*add<mode>_2): Ditto.
10502 (*addv<mode>4): Ditto.
10503 (*sub<dwi>3_doubleword): Ditto.
10504 (*sub<mode>_1): Ditto.
10505 (*subqi_1_slp): Ditto.
10506 (*sub<mode>_2): Ditto.
10507 (*subv<mode>4): Ditto.
10508 (*sub<mode>_3): Ditto.
10509 (@add<mode>3_carry): Ditto.
10510 (@sub<mode>3_carry): Ditto.
10511 (*add<mode>3_cc_overflow_1): Ditto.
10512 (*add<mode>3_zext_cc_overflow_2): Ditto.
10513 (*anddi_1): Ditto.
10514 (*and<mode>_1): Ditto.
10515 (*andqi_1): Ditto.
10516 (*andqi_1_slp): Ditto.
10517 (*anddi_2): Ditto.
10518 (*andqi_2_maybe_si): Ditto.
10519 (*and<mode>_2): Ditto.
10520 (*andqi_2_slp): Ditto.
10521 (*<code><mode>_1): Ditto.
10522 (*<code>qi_1): Ditto.
10523 (*<code>qi_1_slp): Ditto.
10524 (*<code><mode>_2): Ditto.
10525 (*<code>qi_2_slp): Ditto.
10526
10527 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10528
10529 * alias.c (record_component_aliases): Do not simplify pointed-to
10530 types of ODR types.
10531
10532 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10533
10534 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10535 partial reg stall on alternative 2.
10536
10537 2019-07-17 Richard Biener <rguenther@suse.de>
10538
10539 PR tree-optimization/91178
10540 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10541 lower SSA names to avoid quadratic behavior in the common case.
10542 * tree-data-ref.c (split_constant_offset): Add limit argument
10543 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10544 (split_constant_offset_1): Add limit argument and use it to
10545 limit SSA def walking. Optimize the common plus/minus case.
10546
10547 2019-07-17 Richard Biener <rguenther@suse.de>
10548
10549 PR tree-optimization/91178
10550 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10551 loads with a gap larger than the vector size always use
10552 VMAT_STRIDED_SLP.
10553 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10554 avoid loading vectors that are only contained in the gap
10555 and thus are not needed.
10556
10557 2019-07-17 Richard Biener <rguenther@suse.de>
10558
10559 PR tree-optimization/91180
10560 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10561 computation for memset partial defs.
10562
10563 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10564
10565 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10566 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10567 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10568 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10569 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10570 * omp-grid.c (grid_process_grid_body,
10571 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10572 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10573 == GF_OMP_FOR_KIND_SIMD.
10574 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10575 check_omp_nesting_restrictions, scan_omp_1_stmt,
10576 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10577 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10578 omp_find_scan): Likewise.
10579 * omp-expand.c (expand_omp_for): Likewise.
10580 * omp-general.c (omp_extract_for_data): Likewise.
10581
10582 PR tree-optimization/91157
10583 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10584 a vector boolean with scalar mode.
10585 (expand_vector_condition): Handle first operand being a vector boolean
10586 with scalar mode.
10587 (expand_vector_operations_1): For comparisons, don't bail out early
10588 if the return type is vector boolean with scalar mode, but comparison
10589 operand type is not.
10590
10591 2019-07-17 Richard Biener <rguenther@suse.de>
10592
10593 PR tree-optimization/91181
10594 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10595 IFN_LOADs as calls.
10596
10597 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10598
10599 * config/i386/i386.md (*testdi_1): Match CCZmode for
10600 constants that might have the SImode sign bit set.
10601 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10602 Use correct constraints for pentium pairing.
10603 (*test<mode>_1): Ditto.
10604
10605 2019-07-16 Jeff Law <law@redhat.com>
10606
10607 PR rtl-optimization/91173
10608 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10609 SSA_NAME with a constant value, fold its value into the offset
10610 and clear the base before calling gen_addr_rtx.
10611
10612 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10613
10614 PR rtl-optimization/91164
10615 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10616 invalidate dominance info.
10617
10618 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10619
10620 * read-md.h (md_reader::record_potential_iterator_use): Add a
10621 file_location parameter.
10622 * read-rtl.c (attribute_use::loc): New field.
10623 (map_attr_string): Take a file_location parameter. Report cases
10624 in which attributes map to multiple distinct values.
10625 (apply_attribute_uses): Update call accordingly.
10626 (md_reader::handle_overloaded_name): Likewise.
10627 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10628 nonnull strings.
10629 (record_attribute_use): Take a file_location parameter.
10630 Initialize attribute_use::loc.
10631 (md_reader::record_potential_iterator_use): Take a file_location
10632 parameter. Update call to record_attribute_use.
10633 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10634 (rtx_reader::read_rtx_code): Likewise.
10635 (rtx_reader::read_rtx_operand): Likewise. Record a location
10636 for implicitly-expanded empty strings.
10637
10638 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10639
10640 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10641 Use file_location instead of separate fields.
10642 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10643 separate filename and line number.
10644 * read-md.c (ptr_loc): As above.
10645 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10646 (md_reader::fprint_md_ptr_loc): Likewise.
10647 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10648 instead of a separate filename and line number.
10649 (md_reader::read_string): Update call accordingly.
10650
10651 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10652
10653 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10654 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10655 leaving the choice between SFDF and P implicit.
10656 (*mov<mode>_update2): Likewise.
10657 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10658 rather than leaving the choice betweem IBM128 and GPR implicit.
10659 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10660 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10661 QHSI implicit.
10662 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10663 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10664 * config/rs6000/vsx.md
10665 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10666 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10667 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10668 and VSX_EXTRACT_I implicit.
10669
10670 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10671
10672 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10673 Explicitly use <MOVEP1:MODE> for the mode attribute.
10674
10675 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10676
10677 PR bootstrap/91176
10678 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10679
10680 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10681
10682 PR target/91050
10683 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10684 .machine directive.
10685
10686 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10687
10688 * config/i386/i386.md (@test<mode>_ccno_1):
10689 Rename from test<mode>_ccno_1.
10690 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10691 (*testqi_1_maybe_si): Remove modrm attribute.
10692 (*test<mode>_1): Ditto.
10693 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10694 gen_test_ccno_1 and gen_extend_insn.
10695
10696 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10697
10698 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10699 to 0.
10700
10701 2019-07-15 Richard Biener <rguenther@suse.de>
10702
10703 PR middle-end/91162
10704 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10705 node make sure to replace all uses with something valid.
10706
10707 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10708
10709 PR tree-optimization/88497
10710 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10711 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10712 function undistribute_bitref_for_vector.
10713 (undistribute_bitref_for_vector): New function.
10714 (cleanup_vinfo_map): Likewise.
10715 (sort_by_mach_mode): Likewise.
10716
10717 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10718
10719 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10720 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10721 and testdi_ccno_1 using SWI48 mode attribute.
10722 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10723 x86_64_szext_general_operand.
10724 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10725 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10726 instead of genera_operand mode attribute.
10727
10728 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10729
10730 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10731 fopen and fclose to their respective types.
10732 (DotFn.invoke): Ditto.
10733
10734 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10735
10736 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10737 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10738 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10739 (array_index_predicate): Remove.
10740 (analyze_function_body): Account cost for variable ofsetted array
10741 indexing.
10742 (estimate_node_size_and_time): Do not compute array index hint.
10743 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10744 (inline_read_section): Do not read array index hint.
10745 (ipa_fn_summary_write): Do not write array index hint.
10746 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10747 * ipa-cp.c (hint_time_bonus): Remove.
10748 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10749 (ipa_fnsummary): Remove array_index.
10750 * ipa-inline.c (want_inline_small_function_p): Do not use
10751 array_index.
10752 (edge_badness): Likewise.
10753 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10754
10755 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10756
10757 PR target/91148
10758 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10759 superfluous "builtin function" phrasing.
10760
10761 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10762
10763 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10764 Break out from ...
10765 (aliasing_component_refs_walk): Break out from ...
10766 (aliasing_component_refs_p): ... here.
10767
10768 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10769
10770 PR target/91148
10771 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10772 "builtin function" phrasing.
10773
10774 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10775
10776 PR target/90723
10777 * recog.h (temporary_volatile_ok): New class.
10778 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10779 volatile_ok temporarily to true using temporary_volatile_ok.
10780 * expr.c (emit_block_move_via_cpymem): Likewise.
10781 * optabs.c (maybe_legitimize_operand): Likewise.
10782
10783 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10784
10785 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10786 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10787 uses inside of order(concurrent) constructs.
10788 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10789 OMP_CLAUSE_ORDER is seen.
10790 * omp-low.c (struct omp_context): Add order_concurrent member.
10791 (scan_sharing_clauses): Set ctx->order_concurrent if
10792 OMP_CLAUSE_ORDER is seen.
10793 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10794 of simd order(concurrent). Diagnose constructs not allowed inside of
10795 for order(concurrent).
10796 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10797 complaining about static double setjmp (double); or class static
10798 methods or non-global namespace setjmps.
10799 (omp_runtime_api_call): New function.
10800 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10801 order(concurrent) loops.
10802
10803 2019-07-12 Martin Sebor <msebor@redhat.com>
10804
10805 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10806 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10807 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10808 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10809
10810 2019-07-12 Jan Hubicka <jh@suse.cz>
10811
10812 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10813 (indirect_refs_may_alias_p): ... here.
10814 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10815 mem refs in the access paths.
10816
10817 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10818
10819 PR tree-optimization/89430
10820 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10821 store elimination for local variable without address escape.
10822
10823 2019-07-12 Jeff Law <law@redhat.com>
10824
10825 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10826 for the ".far" section.
10827
10828 2019-07-12 Richard Biener <rguenther@suse.de>
10829
10830 PR tree-optimization/91145
10831 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10832 chain check.
10833
10834 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10835
10836 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10837 rather than this_state as the lowering context for the ELSE
10838 seq in a GIMPLE_EH_ELSE.
10839
10840 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10841
10842 * vector-builder.h (vector_builder::elt): Allow already-supplied
10843 elements to be read back before building is complete.
10844
10845 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10846
10847 PR rtl-optimization/91136
10848 * df-core.c (ACCESSING REFS): Fix typos in comment.
10849 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10850 the beginning of the block to the initial set of live registers.
10851
10852 2019-07-12 Richard Biener <rguenther@suse.de>
10853
10854 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10855 * fold-const.c (get_array_ctor_element_at_index): Add
10856 ctor_idx output parameter informing the caller where in
10857 the constructor the element was (not) found. Add early exit
10858 for when the ctor is sorted.
10859 * gimple-fold.c (fold_array_ctor_reference): Support constant
10860 folding across multiple array elements.
10861
10862 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10863
10864 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10865 doesn't have location, set the current location to the function's end.
10866
10867 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10868
10869 * config/aarch64/aarch64.md (*compare_condjump<mode>)
10870 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10871 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10872 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10873 * config/aarch64/aarch64-simd.md
10874 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10875 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10876 * config/aarch64/aarch64-sve.md
10877 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10878 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10879
10880 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10881
10882 * doc/md.texi: Document that @ patterns can have different
10883 numbers of operands.
10884 * genemit.c (handle_overloaded_gen): Handle this case.
10885 * genopinit.c (handle_overloaded_gen): Likewise.
10886 * gensupport.c (replace_operands_with_dups): Iterate over
10887 the new rtx's format rather than the old one's.
10888
10889 2019-07-12 Jakub Jelinek <jakub@redhat.com>
10890
10891 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10892 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10893 order clause entries.
10894 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10895 * tree-pretty-print.c (dump_omp_clause): Likewise.
10896 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10897 Likewise.
10898 * omp-low.c (scan_sharing_clauses): Likewise.
10899 * tree-nested.c (convert_nonlocal_omp_clauses,
10900 convert_local_omp_clauses): Likewise.
10901
10902 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
10903
10904 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10905 fallthrough target of current basic block isn't the placed
10906 right next.
10907
10908 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
10909
10910 PR target/90980
10911 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10912 (_mm512_storeu_epi64): Likewise.
10913 (_mm512_loadu_epi32): Likewise.
10914 (_mm512_storeu_epi32): Likewise.
10915 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10916 (_mm_storeu_epi64): Likewise.
10917 (_mm256_storeu_epi32): Likewise.
10918 (_mm_storeu_epi32): Likewise.
10919
10920 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10921
10922 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10923
10924 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
10925
10926 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10927 Handle Modula-2.
10928
10929 2019-07-11 Jakub Jelinek <jakub@redhat.com>
10930
10931 PR target/91124
10932 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10933 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10934 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10935 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10936 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
10937 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10938 define_insns.
10939 (ufix_truncv2dfv2si2<mask_name>): Change into ...
10940 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
10941 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10942 define_insns.
10943 (sse2_cvttpd2dq<mask_name>): Change into ...
10944 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
10945 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10946 (*sse2_cvtpd2dq<mask_name>): Change into ...
10947 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
10948 Add "C" constraint to const0_operand.
10949 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10950 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10951 changes.
10952
10953 PR target/91124
10954 * config/i386/i386-builtin-types.def
10955 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10956 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10957 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10958 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10959 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10960 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10961 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10962 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10963 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10964 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10965 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10966 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10967 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10968 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10969 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10970 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10971 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10972 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10973 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10974 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10975 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10976 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10977 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10978 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10979 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10980 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10981 __builtin_ia32_vpdpbusd_v4si_maskz,
10982 __builtin_ia32_vpdpbusds_v16si_mask,
10983 __builtin_ia32_vpdpbusds_v16si_maskz,
10984 __builtin_ia32_vpdpbusds_v8si_mask,
10985 __builtin_ia32_vpdpbusds_v8si_maskz,
10986 __builtin_ia32_vpdpbusds_v4si_mask,
10987 __builtin_ia32_vpdpbusds_v4si_maskz,
10988 __builtin_ia32_vpdpwssd_v16si_mask,
10989 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10990 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10991 __builtin_ia32_vpdpwssd_v4si_maskz,
10992 __builtin_ia32_vpdpwssds_v16si_mask,
10993 __builtin_ia32_vpdpwssds_v16si_maskz,
10994 __builtin_ia32_vpdpwssds_v8si_mask,
10995 __builtin_ia32_vpdpwssds_v8si_maskz,
10996 __builtin_ia32_vpdpwssds_v4si_mask,
10997 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10998 suffixed types rather than *_INT.
10999 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11000 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11001 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11002 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11003 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11004 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11005
11006 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11007
11008 * tree-vrp.c (intersect_ranges): If we know the intersection is
11009 empty, there is no need to conservatively add anything else to
11010 the set.
11011
11012 2019-07-11 Richard Biener <rguenther@suse.de>
11013
11014 PR middle-end/91131
11015 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11016 when the object is volatile and we have not cleared it even though
11017 there are no nonzero elements.
11018
11019 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11020
11021 * config/rs6000/predicates.md (cint34_operand): Update
11022 SIGNED_34BIT_OFFSET_P call.
11023 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11024 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11025 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11026 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11027 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11028 argument.
11029 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11030 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11031 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11032 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11033 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11034
11035 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11036
11037 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11038 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11039 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11040 (DEF_MIN_OSX_VERSION): New.
11041
11042 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11043
11044 * fold-const.c (fold_relational_const): Fix folding of
11045 vector-to-scalar NE_EXPRs.
11046 (test_vector_folding): Add more tests.
11047
11048 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11049
11050 PR target/91060
11051 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11052 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11053 (vec_setv2di_internal): Reexpress as...
11054 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11055 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11056 rather than gen_neon_vset_lane<mode>.
11057
11058 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11059
11060 PR target/91102
11061 * lra-constraints.c (process_alt_operands): Don't match user
11062 defined regs only if they are early clobbers.
11063
11064 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11065
11066 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11067
11068 2019-07-10 Richard Biener <rguenther@suse.de>
11069
11070 PR tree-optimization/91126
11071 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11072 native encoding offset for BYTES_BIG_ENDIAN.
11073 (vn_reference_lookup_3): Likewise.
11074
11075 2019-07-10 Richard Biener <rguenther@suse.de>
11076
11077 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11078 LHS whenever possible.
11079
11080 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11081
11082 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11083 from ...; work also on duplicated types.
11084 (nonoverlapping_component_refs_since_match): ... here
11085 (ncr_type_uid): Break out from ...
11086 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11087 available.
11088 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11089 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11090
11091 2019-07-09 Martin Sebor <msebor@redhat.com>
11092
11093 PR tree-optimization/90989
11094 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11095 optimization to just single character stores.
11096
11097 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11098
11099 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11100 Swap operands only once.
11101
11102 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11103
11104 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11105 for both call instructions.
11106
11107 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11108
11109 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11110 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11111
11112 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11113
11114 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11115 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11116 function from rs6000-logue.c back to rs6000.c.
11117 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11118
11119 2019-07-09 Martin Sebor <msebor@redhat.com>
11120
11121 PR c++/61339
11122 * auto-profile.c: Change class-key of PODs to struct and others
11123 to class.
11124 * basic-block.h: Same.
11125 * bitmap.c (bitmap_alloc): Same.
11126 * bitmap.h: Same.
11127 * builtins.c (expand_builtin_prefetch): Same.
11128 (expand_builtin_interclass_mathfn): Same.
11129 (expand_builtin_strlen): Same.
11130 (expand_builtin_mempcpy_args): Same.
11131 (expand_cmpstr): Same.
11132 (expand_builtin___clear_cache): Same.
11133 (expand_ifn_atomic_bit_test_and): Same.
11134 (expand_builtin_thread_pointer): Same.
11135 (expand_builtin_set_thread_pointer): Same.
11136 * caller-save.c (setup_save_areas): Same.
11137 (replace_reg_with_saved_mem): Same.
11138 (insert_restore): Same.
11139 (insert_save): Same.
11140 (add_used_regs): Same.
11141 * cfg.c (get_bb_copy): Same.
11142 (set_loop_copy): Same.
11143 * cfg.h: Same.
11144 * cfganal.h: Same.
11145 * cfgexpand.c (alloc_stack_frame_space): Same.
11146 (add_stack_var): Same.
11147 (add_stack_var_conflict): Same.
11148 (add_scope_conflicts_1): Same.
11149 (update_alias_info_with_stack_vars): Same.
11150 (expand_used_vars): Same.
11151 * cfghooks.c (redirect_edge_and_branch_force): Same.
11152 (delete_basic_block): Same.
11153 (split_edge): Same.
11154 (make_forwarder_block): Same.
11155 (force_nonfallthru): Same.
11156 (duplicate_block): Same.
11157 (lv_flush_pending_stmts): Same.
11158 * cfghooks.h: Same.
11159 * cfgloop.c (flow_loops_cfg_dump): Same.
11160 (flow_loop_nested_p): Same.
11161 (superloop_at_depth): Same.
11162 (get_loop_latch_edges): Same.
11163 (flow_loop_dump): Same.
11164 (flow_loops_dump): Same.
11165 (flow_loops_free): Same.
11166 (flow_loop_nodes_find): Same.
11167 (establish_preds): Same.
11168 (flow_loop_tree_node_add): Same.
11169 (flow_loop_tree_node_remove): Same.
11170 (flow_loops_find): Same.
11171 (find_subloop_latch_edge_by_profile): Same.
11172 (find_subloop_latch_edge_by_ivs): Same.
11173 (mfb_redirect_edges_in_set): Same.
11174 (form_subloop): Same.
11175 (merge_latch_edges): Same.
11176 (disambiguate_multiple_latches): Same.
11177 (disambiguate_loops_with_multiple_latches): Same.
11178 (flow_bb_inside_loop_p): Same.
11179 (glb_enum_p): Same.
11180 (get_loop_body_with_size): Same.
11181 (get_loop_body): Same.
11182 (fill_sons_in_loop): Same.
11183 (get_loop_body_in_dom_order): Same.
11184 (get_loop_body_in_custom_order): Same.
11185 (release_recorded_exits): Same.
11186 (get_loop_exit_edges): Same.
11187 (num_loop_branches): Same.
11188 (remove_bb_from_loops): Same.
11189 (find_common_loop): Same.
11190 (delete_loop): Same.
11191 (cancel_loop): Same.
11192 (verify_loop_structure): Same.
11193 (loop_preheader_edge): Same.
11194 (loop_exit_edge_p): Same.
11195 (single_exit): Same.
11196 (loop_exits_to_bb_p): Same.
11197 (loop_exits_from_bb_p): Same.
11198 (get_loop_location): Same.
11199 (record_niter_bound): Same.
11200 (get_estimated_loop_iterations_int): Same.
11201 (max_stmt_executions_int): Same.
11202 (likely_max_stmt_executions_int): Same.
11203 (get_estimated_loop_iterations): Same.
11204 (get_max_loop_iterations): Same.
11205 (get_max_loop_iterations_int): Same.
11206 (get_likely_max_loop_iterations): Same.
11207 * cfgloop.h (simple_loop_desc): Same.
11208 (get_loop): Same.
11209 (loop_depth): Same.
11210 (loop_outer): Same.
11211 (loop_iterator::next): Same.
11212 (loop_outermost): Same.
11213 * cfgloopanal.c (mark_irreducible_loops): Same.
11214 (num_loop_insns): Same.
11215 (average_num_loop_insns): Same.
11216 (expected_loop_iterations_unbounded): Same.
11217 (expected_loop_iterations): Same.
11218 (mark_loop_exit_edges): Same.
11219 (single_likely_exit): Same.
11220 * cfgloopmanip.c (fix_bb_placement): Same.
11221 (fix_bb_placements): Same.
11222 (remove_path): Same.
11223 (place_new_loop): Same.
11224 (add_loop): Same.
11225 (scale_loop_frequencies): Same.
11226 (scale_loop_profile): Same.
11227 (create_empty_if_region_on_edge): Same.
11228 (create_empty_loop_on_edge): Same.
11229 (loopify): Same.
11230 (unloop): Same.
11231 (fix_loop_placements): Same.
11232 (copy_loop_info): Same.
11233 (duplicate_loop): Same.
11234 (duplicate_subloops): Same.
11235 (loop_redirect_edge): Same.
11236 (can_duplicate_loop_p): Same.
11237 (duplicate_loop_to_header_edge): Same.
11238 (mfb_keep_just): Same.
11239 (has_preds_from_loop): Same.
11240 (create_preheader): Same.
11241 (create_preheaders): Same.
11242 (lv_adjust_loop_entry_edge): Same.
11243 (loop_version): Same.
11244 * cfgloopmanip.h: Same.
11245 * cgraph.h: Same.
11246 * cgraphbuild.c: Same.
11247 * combine.c (make_extraction): Same.
11248 * config/i386/i386-features.c: Same.
11249 * config/i386/i386-features.h: Same.
11250 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11251 (ix86_emit_outlined_ms2sysv_restore): Same.
11252 (ix86_noce_conversion_profitable_p): Same.
11253 (ix86_init_cost): Same.
11254 (ix86_simd_clone_usable): Same.
11255 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11256 Wstruct-not-pod.
11257 * coretypes.h: Same.
11258 * data-streamer-in.c (string_for_index): Change class-key of PODs
11259 to struct and others to class.
11260 (streamer_read_indexed_string): Same.
11261 (streamer_read_string): Same.
11262 (bp_unpack_indexed_string): Same.
11263 (bp_unpack_string): Same.
11264 (streamer_read_uhwi): Same.
11265 (streamer_read_hwi): Same.
11266 (streamer_read_gcov_count): Same.
11267 (streamer_read_wide_int): Same.
11268 * data-streamer.h (streamer_write_bitpack): Same.
11269 (bp_unpack_value): Same.
11270 (streamer_write_char_stream): Same.
11271 (streamer_write_hwi_in_range): Same.
11272 (streamer_write_record_start): Same.
11273 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11274 (add_cross_iteration_register_deps): Same.
11275 (build_intra_loop_deps): Same.
11276 * df-core.c (df_analyze): Same.
11277 (loop_post_order_compute): Same.
11278 (loop_inverted_post_order_compute): Same.
11279 * df-problems.c (df_rd_alloc): Same.
11280 (df_rd_simulate_one_insn): Same.
11281 (df_rd_local_compute): Same.
11282 (df_rd_init_solution): Same.
11283 (df_rd_confluence_n): Same.
11284 (df_rd_transfer_function): Same.
11285 (df_rd_free): Same.
11286 (df_rd_dump_defs_set): Same.
11287 (df_rd_top_dump): Same.
11288 (df_lr_alloc): Same.
11289 (df_lr_reset): Same.
11290 (df_lr_local_compute): Same.
11291 (df_lr_init): Same.
11292 (df_lr_confluence_n): Same.
11293 (df_lr_free): Same.
11294 (df_lr_top_dump): Same.
11295 (df_lr_verify_transfer_functions): Same.
11296 (df_live_alloc): Same.
11297 (df_live_reset): Same.
11298 (df_live_init): Same.
11299 (df_live_confluence_n): Same.
11300 (df_live_finalize): Same.
11301 (df_live_free): Same.
11302 (df_live_top_dump): Same.
11303 (df_live_verify_transfer_functions): Same.
11304 (df_mir_alloc): Same.
11305 (df_mir_reset): Same.
11306 (df_mir_init): Same.
11307 (df_mir_confluence_n): Same.
11308 (df_mir_free): Same.
11309 (df_mir_top_dump): Same.
11310 (df_word_lr_alloc): Same.
11311 (df_word_lr_reset): Same.
11312 (df_word_lr_init): Same.
11313 (df_word_lr_confluence_n): Same.
11314 (df_word_lr_free): Same.
11315 (df_word_lr_top_dump): Same.
11316 (df_md_alloc): Same.
11317 (df_md_simulate_one_insn): Same.
11318 (df_md_reset): Same.
11319 (df_md_init): Same.
11320 (df_md_free): Same.
11321 (df_md_top_dump): Same.
11322 * df-scan.c (df_insn_delete): Same.
11323 (df_insn_rescan): Same.
11324 (df_notes_rescan): Same.
11325 (df_sort_and_compress_mws): Same.
11326 (df_install_mws): Same.
11327 (df_refs_add_to_chains): Same.
11328 (df_ref_create_structure): Same.
11329 (df_ref_record): Same.
11330 (df_def_record_1): Same.
11331 (df_find_hard_reg_defs): Same.
11332 (df_uses_record): Same.
11333 (df_get_conditional_uses): Same.
11334 (df_get_call_refs): Same.
11335 (df_recompute_luids): Same.
11336 (df_get_entry_block_def_set): Same.
11337 (df_entry_block_defs_collect): Same.
11338 (df_get_exit_block_use_set): Same.
11339 (df_exit_block_uses_collect): Same.
11340 (df_mws_verify): Same.
11341 (df_bb_verify): Same.
11342 * df.h (df_scan_get_bb_info): Same.
11343 * doc/tm.texi: Same.
11344 * dse.c (record_store): Same.
11345 * dumpfile.h: Same.
11346 * emit-rtl.c (const_fixed_hasher::equal): Same.
11347 (set_mem_attributes_minus_bitpos): Same.
11348 (change_address): Same.
11349 (adjust_address_1): Same.
11350 (offset_address): Same.
11351 * emit-rtl.h: Same.
11352 * except.c (dw2_build_landing_pads): Same.
11353 (sjlj_emit_dispatch_table): Same.
11354 * explow.c (allocate_dynamic_stack_space): Same.
11355 (emit_stack_probe): Same.
11356 (probe_stack_range): Same.
11357 * expmed.c (store_bit_field_using_insv): Same.
11358 (store_bit_field_1): Same.
11359 (store_integral_bit_field): Same.
11360 (extract_bit_field_using_extv): Same.
11361 (extract_bit_field_1): Same.
11362 (emit_cstore): Same.
11363 * expr.c (emit_block_move_via_cpymem): Same.
11364 (expand_cmpstrn_or_cmpmem): Same.
11365 (set_storage_via_setmem): Same.
11366 (emit_single_push_insn_1): Same.
11367 (expand_assignment): Same.
11368 (store_constructor): Same.
11369 (expand_expr_real_2): Same.
11370 (expand_expr_real_1): Same.
11371 (try_casesi): Same.
11372 * flags.h: Same.
11373 * function.c (try_fit_stack_local): Same.
11374 (assign_stack_local_1): Same.
11375 (assign_stack_local): Same.
11376 (cut_slot_from_list): Same.
11377 (insert_slot_to_list): Same.
11378 (max_slot_level): Same.
11379 (move_slot_to_level): Same.
11380 (temp_address_hasher::equal): Same.
11381 (remove_unused_temp_slot_addresses): Same.
11382 (assign_temp): Same.
11383 (combine_temp_slots): Same.
11384 (update_temp_slot_address): Same.
11385 (preserve_temp_slots): Same.
11386 * function.h: Same.
11387 * fwprop.c: Same.
11388 * gcc-rich-location.h: Same.
11389 * gcov.c: Same.
11390 * genattrtab.c (check_attr_test): Same.
11391 (check_attr_value): Same.
11392 (convert_set_attr_alternative): Same.
11393 (convert_set_attr): Same.
11394 (check_defs): Same.
11395 (copy_boolean): Same.
11396 (get_attr_value): Same.
11397 (expand_delays): Same.
11398 (make_length_attrs): Same.
11399 (min_fn): Same.
11400 (make_alternative_compare): Same.
11401 (simplify_test_exp): Same.
11402 (tests_attr_p): Same.
11403 (get_attr_order): Same.
11404 (clear_struct_flag): Same.
11405 (gen_attr): Same.
11406 (compares_alternatives_p): Same.
11407 (gen_insn): Same.
11408 (gen_delay): Same.
11409 (find_attrs_to_cache): Same.
11410 (write_test_expr): Same.
11411 (walk_attr_value): Same.
11412 (write_attr_get): Same.
11413 (eliminate_known_true): Same.
11414 (write_insn_cases): Same.
11415 (write_attr_case): Same.
11416 (write_attr_valueq): Same.
11417 (write_attr_value): Same.
11418 (write_dummy_eligible_delay): Same.
11419 (next_comma_elt): Same.
11420 (find_attr): Same.
11421 (make_internal_attr): Same.
11422 (copy_rtx_unchanging): Same.
11423 (gen_insn_reserv): Same.
11424 (check_tune_attr): Same.
11425 (make_automaton_attrs): Same.
11426 (handle_arg): Same.
11427 * genextract.c (gen_insn): Same.
11428 (VEC_char_to_string): Same.
11429 * genmatch.c (print_operand): Same.
11430 (lower): Same.
11431 (parser::parse_operation): Same.
11432 (parser::parse_capture): Same.
11433 (parser::parse_c_expr): Same.
11434 (parser::parse_simplify): Same.
11435 (main): Same.
11436 * genoutput.c (output_operand_data): Same.
11437 (output_get_insn_name): Same.
11438 (compare_operands): Same.
11439 (place_operands): Same.
11440 (process_template): Same.
11441 (validate_insn_alternatives): Same.
11442 (validate_insn_operands): Same.
11443 (gen_expand): Same.
11444 (note_constraint): Same.
11445 * genpreds.c (write_one_predicate_function): Same.
11446 (add_constraint): Same.
11447 (process_define_register_constraint): Same.
11448 (write_lookup_constraint_1): Same.
11449 (write_lookup_constraint_array): Same.
11450 (write_insn_constraint_len): Same.
11451 (write_reg_class_for_constraint_1): Same.
11452 (write_constraint_satisfied_p_array): Same.
11453 * genrecog.c (optimize_subroutine_group): Same.
11454 * gensupport.c (process_define_predicate): Same.
11455 (queue_pattern): Same.
11456 (remove_from_queue): Same.
11457 (process_rtx): Same.
11458 (is_predicable): Same.
11459 (change_subst_attribute): Same.
11460 (subst_pattern_match): Same.
11461 (alter_constraints): Same.
11462 (alter_attrs_for_insn): Same.
11463 (shift_output_template): Same.
11464 (alter_output_for_subst_insn): Same.
11465 (process_one_cond_exec): Same.
11466 (subst_dup): Same.
11467 (process_define_cond_exec): Same.
11468 (mnemonic_htab_callback): Same.
11469 (gen_mnemonic_attr): Same.
11470 (read_md_rtx): Same.
11471 * ggc-page.c: Same.
11472 * gimple-loop-interchange.cc (dump_reduction): Same.
11473 (dump_induction): Same.
11474 (loop_cand::~loop_cand): Same.
11475 (free_data_refs_with_aux): Same.
11476 (tree_loop_interchange::interchange_loops): Same.
11477 (tree_loop_interchange::map_inductions_to_loop): Same.
11478 (tree_loop_interchange::move_code_to_inner_loop): Same.
11479 (compute_access_stride): Same.
11480 (compute_access_strides): Same.
11481 (proper_loop_form_for_interchange): Same.
11482 (tree_loop_interchange_compute_ddrs): Same.
11483 (prune_datarefs_not_in_loop): Same.
11484 (prepare_data_references): Same.
11485 (pass_linterchange::execute): Same.
11486 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11487 (unroll_jam_possible_p): Same.
11488 (fuse_loops): Same.
11489 (adjust_unroll_factor): Same.
11490 (tree_loop_unroll_and_jam): Same.
11491 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11492 (loop_versioning::expensive_stmt_p): Same.
11493 (loop_versioning::version_for_unity): Same.
11494 (loop_versioning::dump_inner_likelihood): Same.
11495 (loop_versioning::find_per_loop_multiplication): Same.
11496 (loop_versioning::analyze_term_using_scevs): Same.
11497 (loop_versioning::record_address_fragment): Same.
11498 (loop_versioning::analyze_expr): Same.
11499 (loop_versioning::analyze_blocks): Same.
11500 (loop_versioning::prune_conditions): Same.
11501 (loop_versioning::merge_loop_info): Same.
11502 (loop_versioning::add_loop_to_queue): Same.
11503 (loop_versioning::decide_whether_loop_is_versionable): Same.
11504 (loop_versioning::make_versioning_decisions): Same.
11505 (loop_versioning::implement_versioning_decisions): Same.
11506 * gimple-ssa-evrp-analyze.c
11507 (evrp_range_analyzer::record_ranges_from_phis): Same.
11508 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11509 (count_multiple_uses): Same.
11510 (split_group): Same.
11511 (imm_store_chain_info::output_merged_store): Same.
11512 (pass_store_merging::process_store): Same.
11513 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11514 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11515 (is_max): Same.
11516 (alloca_call_type): Same.
11517 (pass_walloca::execute): Same.
11518 * gimple-streamer-in.c (input_phi): Same.
11519 (input_gimple_stmt): Same.
11520 * gimple-streamer.h: Same.
11521 * godump.c (go_force_record_alignment): Same.
11522 (go_format_type): Same.
11523 (go_output_type): Same.
11524 (go_output_fndecl): Same.
11525 (go_output_typedef): Same.
11526 (keyword_hash_init): Same.
11527 (find_dummy_types): Same.
11528 * graph.c (draw_cfg_nodes_no_loops): Same.
11529 (draw_cfg_nodes_for_loop): Same.
11530 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11531 * hsa-brig.c: Same.
11532 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11533 * hsa-dump.c (dump_hsa_cfun): Same.
11534 * hsa-gen.c (gen_function_def_parameters): Same.
11535 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11536 * input.c (dump_line_table_statistics): Same.
11537 (test_lexer): Same.
11538 * input.h: Same.
11539 * internal-fn.c (get_multi_vector_move): Same.
11540 (expand_load_lanes_optab_fn): Same.
11541 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11542 (expand_GOMP_SIMT_EXIT): Same.
11543 (expand_GOMP_SIMT_LAST_LANE): Same.
11544 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11545 (expand_GOMP_SIMT_VOTE_ANY): Same.
11546 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11547 (expand_GOMP_SIMT_XCHG_IDX): Same.
11548 (expand_addsub_overflow): Same.
11549 (expand_neg_overflow): Same.
11550 (expand_mul_overflow): Same.
11551 (expand_call_mem_ref): Same.
11552 (expand_mask_load_optab_fn): Same.
11553 (expand_scatter_store_optab_fn): Same.
11554 (expand_gather_load_optab_fn): Same.
11555 * ipa-cp.c (ipa_get_parm_lattices): Same.
11556 (print_all_lattices): Same.
11557 (ignore_edge_p): Same.
11558 (build_toporder_info): Same.
11559 (free_toporder_info): Same.
11560 (push_node_to_stack): Same.
11561 (ipcp_lattice<valtype>::set_contains_variable): Same.
11562 (set_agg_lats_to_bottom): Same.
11563 (ipcp_bits_lattice::meet_with): Same.
11564 (set_single_call_flag): Same.
11565 (initialize_node_lattices): Same.
11566 (ipa_get_jf_ancestor_result): Same.
11567 (ipcp_verify_propagated_values): Same.
11568 (propagate_scalar_across_jump_function): Same.
11569 (propagate_context_across_jump_function): Same.
11570 (propagate_bits_across_jump_function): Same.
11571 (ipa_vr_operation_and_type_effects): Same.
11572 (propagate_vr_across_jump_function): Same.
11573 (set_check_aggs_by_ref): Same.
11574 (set_chain_of_aglats_contains_variable): Same.
11575 (merge_aggregate_lattices): Same.
11576 (agg_pass_through_permissible_p): Same.
11577 (propagate_aggs_across_jump_function): Same.
11578 (call_passes_through_thunk_p): Same.
11579 (propagate_constants_across_call): Same.
11580 (devirtualization_time_bonus): Same.
11581 (good_cloning_opportunity_p): Same.
11582 (context_independent_aggregate_values): Same.
11583 (gather_context_independent_values): Same.
11584 (perform_estimation_of_a_value): Same.
11585 (estimate_local_effects): Same.
11586 (value_topo_info<valtype>::add_val): Same.
11587 (add_all_node_vals_to_toposort): Same.
11588 (value_topo_info<valtype>::propagate_effects): Same.
11589 (ipcp_propagate_stage): Same.
11590 (ipcp_discover_new_direct_edges): Same.
11591 (same_node_or_its_all_contexts_clone_p): Same.
11592 (cgraph_edge_brings_value_p): Same.
11593 (gather_edges_for_value): Same.
11594 (create_specialized_node): Same.
11595 (find_more_scalar_values_for_callers_subset): Same.
11596 (find_more_contexts_for_caller_subset): Same.
11597 (copy_plats_to_inter): Same.
11598 (intersect_aggregates_with_edge): Same.
11599 (find_aggregate_values_for_callers_subset): Same.
11600 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11601 (decide_about_value): Same.
11602 (decide_whether_version_node): Same.
11603 (spread_undeadness): Same.
11604 (identify_dead_nodes): Same.
11605 (ipcp_store_vr_results): Same.
11606 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11607 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11608 (redirect_to_unreachable): Same.
11609 (edge_set_predicate): Same.
11610 (evaluate_conditions_for_known_args): Same.
11611 (evaluate_properties_for_edge): Same.
11612 (ipa_fn_summary_t::duplicate): Same.
11613 (ipa_call_summary_t::duplicate): Same.
11614 (dump_ipa_call_summary): Same.
11615 (ipa_dump_fn_summary): Same.
11616 (eliminated_by_inlining_prob): Same.
11617 (set_cond_stmt_execution_predicate): Same.
11618 (set_switch_stmt_execution_predicate): Same.
11619 (compute_bb_predicates): Same.
11620 (will_be_nonconstant_expr_predicate): Same.
11621 (phi_result_unknown_predicate): Same.
11622 (analyze_function_body): Same.
11623 (compute_fn_summary): Same.
11624 (estimate_edge_devirt_benefit): Same.
11625 (estimate_edge_size_and_time): Same.
11626 (estimate_calls_size_and_time): Same.
11627 (estimate_node_size_and_time): Same.
11628 (remap_edge_change_prob): Same.
11629 (remap_edge_summaries): Same.
11630 (ipa_merge_fn_summary_after_inlining): Same.
11631 (ipa_fn_summary_generate): Same.
11632 (inline_read_section): Same.
11633 (ipa_fn_summary_read): Same.
11634 (ipa_fn_summary_write): Same.
11635 * ipa-fnsummary.h: Same.
11636 * ipa-hsa.c (ipa_hsa_read_section): Same.
11637 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11638 * ipa-icf.c (sem_function::param_used_p): Same.
11639 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11640 * ipa-inline.c (edge_badness): Same.
11641 (inline_small_functions): Same.
11642 * ipa-polymorphic-call.c
11643 (ipa_polymorphic_call_context::stream_out): Same.
11644 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11645 (predicate::remap_after_inlining): Same.
11646 (predicate::stream_out): Same.
11647 * ipa-predicate.h: Same.
11648 * ipa-profile.c (ipa_profile_read_summary): Same.
11649 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11650 (count_formal_params): Same.
11651 (ipa_dump_param): Same.
11652 (ipa_alloc_node_params): Same.
11653 (ipa_print_node_jump_functions_for_edge): Same.
11654 (ipa_print_node_jump_functions): Same.
11655 (ipa_load_from_parm_agg): Same.
11656 (get_ancestor_addr_info): Same.
11657 (ipa_compute_jump_functions_for_edge): Same.
11658 (ipa_analyze_virtual_call_uses): Same.
11659 (ipa_analyze_stmt_uses): Same.
11660 (ipa_analyze_params_uses_in_bb): Same.
11661 (update_jump_functions_after_inlining): Same.
11662 (try_decrement_rdesc_refcount): Same.
11663 (ipa_impossible_devirt_target): Same.
11664 (update_indirect_edges_after_inlining): Same.
11665 (combine_controlled_uses_counters): Same.
11666 (ipa_edge_args_sum_t::duplicate): Same.
11667 (ipa_write_jump_function): Same.
11668 (ipa_write_indirect_edge_info): Same.
11669 (ipa_write_node_info): Same.
11670 (ipa_read_edge_info): Same.
11671 (ipa_prop_read_section): Same.
11672 (read_replacements_section): Same.
11673 * ipa-prop.h (ipa_get_param_count): Same.
11674 (ipa_get_param): Same.
11675 (ipa_get_type): Same.
11676 (ipa_get_param_move_cost): Same.
11677 (ipa_set_param_used): Same.
11678 (ipa_get_controlled_uses): Same.
11679 (ipa_set_controlled_uses): Same.
11680 (ipa_get_cs_argument_count): Same.
11681 * ipa-pure-const.c (analyze_function): Same.
11682 (pure_const_read_summary): Same.
11683 * ipa-ref.h: Same.
11684 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11685 * ipa-split.c (test_nonssa_use): Same.
11686 (dump_split_point): Same.
11687 (dominated_by_forbidden): Same.
11688 (split_part_set_ssa_name_p): Same.
11689 (find_split_points): Same.
11690 * ira-build.c (finish_loop_tree_nodes): Same.
11691 (low_pressure_loop_node_p): Same.
11692 * ira-color.c (ira_reuse_stack_slot): Same.
11693 * ira-int.h: Same.
11694 * ira.c (setup_reg_equiv): Same.
11695 (print_insn_chain): Same.
11696 (ira): Same.
11697 * loop-doloop.c (doloop_condition_get): Same.
11698 (add_test): Same.
11699 (record_reg_sets): Same.
11700 (doloop_optimize): Same.
11701 * loop-init.c (loop_optimizer_init): Same.
11702 (fix_loop_structure): Same.
11703 * loop-invariant.c (merge_identical_invariants): Same.
11704 (compute_always_reached): Same.
11705 (find_exits): Same.
11706 (may_assign_reg_p): Same.
11707 (find_invariants_bb): Same.
11708 (find_invariants_body): Same.
11709 (replace_uses): Same.
11710 (can_move_invariant_reg): Same.
11711 (free_inv_motion_data): Same.
11712 (move_single_loop_invariants): Same.
11713 (change_pressure): Same.
11714 (mark_ref_regs): Same.
11715 (calculate_loop_reg_pressure): Same.
11716 * loop-iv.c (biv_entry_hasher::equal): Same.
11717 (iv_extend_to_rtx_code): Same.
11718 (check_iv_ref_table_size): Same.
11719 (clear_iv_info): Same.
11720 (latch_dominating_def): Same.
11721 (iv_get_reaching_def): Same.
11722 (iv_constant): Same.
11723 (iv_subreg): Same.
11724 (iv_extend): Same.
11725 (iv_neg): Same.
11726 (iv_add): Same.
11727 (iv_mult): Same.
11728 (get_biv_step): Same.
11729 (record_iv): Same.
11730 (analyzed_for_bivness_p): Same.
11731 (record_biv): Same.
11732 (iv_analyze_biv): Same.
11733 (iv_analyze_expr): Same.
11734 (iv_analyze_def): Same.
11735 (iv_analyze_op): Same.
11736 (iv_analyze): Same.
11737 (iv_analyze_result): Same.
11738 (biv_p): Same.
11739 (eliminate_implied_conditions): Same.
11740 (simplify_using_initial_values): Same.
11741 (shorten_into_mode): Same.
11742 (canonicalize_iv_subregs): Same.
11743 (determine_max_iter): Same.
11744 (check_simple_exit): Same.
11745 (find_simple_exit): Same.
11746 (get_simple_loop_desc): Same.
11747 * loop-unroll.c (report_unroll): Same.
11748 (decide_unrolling): Same.
11749 (unroll_loops): Same.
11750 (loop_exit_at_end_p): Same.
11751 (decide_unroll_constant_iterations): Same.
11752 (unroll_loop_constant_iterations): Same.
11753 (compare_and_jump_seq): Same.
11754 (unroll_loop_runtime_iterations): Same.
11755 (decide_unroll_stupid): Same.
11756 (unroll_loop_stupid): Same.
11757 (referenced_in_one_insn_in_loop_p): Same.
11758 (reset_debug_uses_in_loop): Same.
11759 (analyze_iv_to_split_insn): Same.
11760 * lra-eliminations.c (lra_debug_elim_table): Same.
11761 (setup_can_eliminate): Same.
11762 (form_sum): Same.
11763 (lra_get_elimination_hard_regno): Same.
11764 (lra_eliminate_regs_1): Same.
11765 (eliminate_regs_in_insn): Same.
11766 (update_reg_eliminate): Same.
11767 (init_elimination): Same.
11768 (lra_eliminate): Same.
11769 * lra-int.h: Same.
11770 * lra-lives.c (initiate_live_solver): Same.
11771 * lra-remat.c (create_remat_bb_data): Same.
11772 * lra-spills.c (lra_spill): Same.
11773 * lra.c (lra_set_insn_recog_data): Same.
11774 (lra_set_used_insn_alternative_by_uid): Same.
11775 (init_reg_info): Same.
11776 (expand_reg_info): Same.
11777 * lto-cgraph.c (output_symtab): Same.
11778 (read_identifier): Same.
11779 (get_alias_symbol): Same.
11780 (input_node): Same.
11781 (input_varpool_node): Same.
11782 (input_ref): Same.
11783 (input_edge): Same.
11784 (input_cgraph_1): Same.
11785 (input_refs): Same.
11786 (input_symtab): Same.
11787 (input_offload_tables): Same.
11788 (output_cgraph_opt_summary): Same.
11789 (input_edge_opt_summary): Same.
11790 (input_cgraph_opt_section): Same.
11791 * lto-section-in.c (lto_free_raw_section_data): Same.
11792 (lto_create_simple_input_block): Same.
11793 (lto_free_function_in_decl_state_for_node): Same.
11794 * lto-streamer-in.c (lto_tag_check_set): Same.
11795 (lto_location_cache::revert_location_cache): Same.
11796 (lto_location_cache::input_location): Same.
11797 (lto_input_location): Same.
11798 (stream_input_location_now): Same.
11799 (lto_input_tree_ref): Same.
11800 (lto_input_eh_catch_list): Same.
11801 (input_eh_region): Same.
11802 (lto_init_eh): Same.
11803 (make_new_block): Same.
11804 (input_cfg): Same.
11805 (fixup_call_stmt_edges): Same.
11806 (input_struct_function_base): Same.
11807 (input_function): Same.
11808 (lto_read_body_or_constructor): Same.
11809 (lto_read_tree_1): Same.
11810 (lto_read_tree): Same.
11811 (lto_input_scc): Same.
11812 (lto_input_tree_1): Same.
11813 (lto_input_toplevel_asms): Same.
11814 (lto_input_mode_table): Same.
11815 (lto_reader_init): Same.
11816 (lto_data_in_create): Same.
11817 * lto-streamer-out.c (output_cfg): Same.
11818 * lto-streamer.h: Same.
11819 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11820 (generate_prolog_epilog): Same.
11821 (mark_loop_unsched): Same.
11822 (dump_insn_location): Same.
11823 (loop_canon_p): Same.
11824 (sms_schedule): Same.
11825 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11826 (expand_omp_for_generic): Same.
11827 (expand_omp_for_static_nochunk): Same.
11828 (expand_omp_for_static_chunk): Same.
11829 (expand_omp_simd): Same.
11830 (expand_omp_taskloop_for_inner): Same.
11831 (expand_oacc_for): Same.
11832 (expand_omp_atomic_pipeline): Same.
11833 (mark_loops_in_oacc_kernels_region): Same.
11834 * omp-offload.c (oacc_xform_loop): Same.
11835 * omp-simd-clone.c (simd_clone_adjust): Same.
11836 * optabs-query.c (get_traditional_extraction_insn): Same.
11837 * optabs.c (expand_vector_broadcast): Same.
11838 (expand_binop_directly): Same.
11839 (expand_twoval_unop): Same.
11840 (expand_twoval_binop): Same.
11841 (expand_unop_direct): Same.
11842 (emit_indirect_jump): Same.
11843 (emit_conditional_move): Same.
11844 (emit_conditional_neg_or_complement): Same.
11845 (emit_conditional_add): Same.
11846 (vector_compare_rtx): Same.
11847 (expand_vec_perm_1): Same.
11848 (expand_vec_perm_const): Same.
11849 (expand_vec_cond_expr): Same.
11850 (expand_vec_series_expr): Same.
11851 (maybe_emit_atomic_exchange): Same.
11852 (maybe_emit_sync_lock_test_and_set): Same.
11853 (expand_atomic_compare_and_swap): Same.
11854 (expand_atomic_load): Same.
11855 (expand_atomic_store): Same.
11856 (maybe_emit_op): Same.
11857 (valid_multiword_target_p): Same.
11858 (create_integer_operand): Same.
11859 (maybe_legitimize_operand_same_code): Same.
11860 (maybe_legitimize_operand): Same.
11861 (create_convert_operand_from_type): Same.
11862 (can_reuse_operands_p): Same.
11863 (maybe_legitimize_operands): Same.
11864 (maybe_gen_insn): Same.
11865 (maybe_expand_insn): Same.
11866 (maybe_expand_jump_insn): Same.
11867 (expand_insn): Same.
11868 * optabs.h (create_expand_operand): Same.
11869 (create_fixed_operand): Same.
11870 (create_output_operand): Same.
11871 (create_input_operand): Same.
11872 (create_convert_operand_to): Same.
11873 (create_convert_operand_from): Same.
11874 * optinfo.h: Same.
11875 * poly-int.h: Same.
11876 * predict.c (optimize_insn_for_speed_p): Same.
11877 (optimize_loop_for_size_p): Same.
11878 (optimize_loop_for_speed_p): Same.
11879 (optimize_loop_nest_for_speed_p): Same.
11880 (get_base_value): Same.
11881 (predicted_by_loop_heuristics_p): Same.
11882 (predict_extra_loop_exits): Same.
11883 (predict_loops): Same.
11884 (predict_paths_for_bb): Same.
11885 (predict_paths_leading_to): Same.
11886 (propagate_freq): Same.
11887 (pass_profile::execute): Same.
11888 * predict.h: Same.
11889 * profile-count.c (profile_count::differs_from_p): Same.
11890 (profile_probability::differs_lot_from_p): Same.
11891 * profile-count.h: Same.
11892 * profile.c (branch_prob): Same.
11893 * regrename.c (free_chain_data): Same.
11894 (mark_conflict): Same.
11895 (create_new_chain): Same.
11896 (merge_overlapping_regs): Same.
11897 (init_rename_info): Same.
11898 (merge_chains): Same.
11899 (regrename_analyze): Same.
11900 (regrename_do_replace): Same.
11901 (scan_rtx_reg): Same.
11902 (record_out_operands): Same.
11903 (build_def_use): Same.
11904 * regrename.h: Same.
11905 * reload.h: Same.
11906 * reload1.c (init_reload): Same.
11907 (maybe_fix_stack_asms): Same.
11908 (copy_reloads): Same.
11909 (count_pseudo): Same.
11910 (count_spilled_pseudo): Same.
11911 (find_reg): Same.
11912 (find_reload_regs): Same.
11913 (select_reload_regs): Same.
11914 (spill_hard_reg): Same.
11915 (fixup_eh_region_note): Same.
11916 (set_reload_reg): Same.
11917 (allocate_reload_reg): Same.
11918 (compute_reload_subreg_offset): Same.
11919 (reload_adjust_reg_for_icode): Same.
11920 (emit_input_reload_insns): Same.
11921 (emit_output_reload_insns): Same.
11922 (do_input_reload): Same.
11923 (inherit_piecemeal_p): Same.
11924 * rtl.h: Same.
11925 * sanopt.c (maybe_get_dominating_check): Same.
11926 (maybe_optimize_ubsan_ptr_ifn): Same.
11927 (can_remove_asan_check): Same.
11928 (maybe_optimize_asan_check_ifn): Same.
11929 (sanopt_optimize_walker): Same.
11930 * sched-deps.c (add_dependence_list): Same.
11931 (chain_to_prev_insn): Same.
11932 (add_insn_mem_dependence): Same.
11933 (create_insn_reg_set): Same.
11934 (maybe_extend_reg_info_p): Same.
11935 (sched_analyze_reg): Same.
11936 (sched_analyze_1): Same.
11937 (get_implicit_reg_pending_clobbers): Same.
11938 (chain_to_prev_insn_p): Same.
11939 (deps_analyze_insn): Same.
11940 (deps_start_bb): Same.
11941 (sched_free_deps): Same.
11942 (init_deps): Same.
11943 (init_deps_reg_last): Same.
11944 (free_deps): Same.
11945 * sched-ebb.c: Same.
11946 * sched-int.h: Same.
11947 * sched-rgn.c (add_branch_dependences): Same.
11948 (concat_insn_mem_list): Same.
11949 (deps_join): Same.
11950 (sched_rgn_compute_dependencies): Same.
11951 * sel-sched-ir.c (reset_target_context): Same.
11952 (copy_deps_context): Same.
11953 (init_id_from_df): Same.
11954 (has_dependence_p): Same.
11955 (change_loops_latches): Same.
11956 (bb_top_order_comparator): Same.
11957 (make_region_from_loop_preheader): Same.
11958 (sel_init_pipelining): Same.
11959 (get_loop_nest_for_rgn): Same.
11960 (make_regions_from_the_rest): Same.
11961 (sel_is_loop_preheader_p): Same.
11962 * sel-sched-ir.h (inner_loop_header_p): Same.
11963 (get_all_loop_exits): Same.
11964 * selftest.h: Same.
11965 * sese.c (sese_build_liveouts): Same.
11966 (sese_insert_phis_for_liveouts): Same.
11967 * sese.h (defined_in_sese_p): Same.
11968 * sreal.c (sreal::stream_out): Same.
11969 * sreal.h: Same.
11970 * streamer-hooks.h: Same.
11971 * target-globals.c (save_target_globals): Same.
11972 * target-globals.h: Same.
11973 * target.def: Same.
11974 * target.h: Same.
11975 * targhooks.c (default_has_ifunc_p): Same.
11976 (default_empty_mask_is_expensive): Same.
11977 (default_init_cost): Same.
11978 * targhooks.h: Same.
11979 * toplev.c: Same.
11980 * tree-affine.c (aff_combination_mult): Same.
11981 (aff_combination_expand): Same.
11982 (aff_combination_constant_multiple_p): Same.
11983 * tree-affine.h: Same.
11984 * tree-cfg.c (build_gimple_cfg): Same.
11985 (replace_loop_annotate_in_block): Same.
11986 (replace_uses_by): Same.
11987 (remove_bb): Same.
11988 (dump_cfg_stats): Same.
11989 (gimple_duplicate_sese_region): Same.
11990 (gimple_duplicate_sese_tail): Same.
11991 (move_block_to_fn): Same.
11992 (replace_block_vars_by_duplicates): Same.
11993 (move_sese_region_to_fn): Same.
11994 (print_loops_bb): Same.
11995 (print_loop): Same.
11996 (print_loops): Same.
11997 (debug): Same.
11998 (debug_loops): Same.
11999 * tree-cfg.h: Same.
12000 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12001 (chrec_fold_multiply_poly_poly): Same.
12002 (chrec_evaluate): Same.
12003 (chrec_component_in_loop_num): Same.
12004 (reset_evolution_in_loop): Same.
12005 (is_multivariate_chrec): Same.
12006 (chrec_contains_symbols): Same.
12007 (nb_vars_in_chrec): Same.
12008 (chrec_convert_1): Same.
12009 (chrec_convert_aggressive): Same.
12010 * tree-chrec.h: Same.
12011 * tree-core.h: Same.
12012 * tree-data-ref.c (dump_data_dependence_relation): Same.
12013 (canonicalize_base_object_address): Same.
12014 (data_ref_compare_tree): Same.
12015 (prune_runtime_alias_test_list): Same.
12016 (get_segment_min_max): Same.
12017 (create_intersect_range_checks): Same.
12018 (conflict_fn_no_dependence): Same.
12019 (object_address_invariant_in_loop_p): Same.
12020 (analyze_ziv_subscript): Same.
12021 (analyze_siv_subscript_cst_affine): Same.
12022 (analyze_miv_subscript): Same.
12023 (analyze_overlapping_iterations): Same.
12024 (build_classic_dist_vector_1): Same.
12025 (add_other_self_distances): Same.
12026 (same_access_functions): Same.
12027 (build_classic_dir_vector): Same.
12028 (subscript_dependence_tester_1): Same.
12029 (subscript_dependence_tester): Same.
12030 (access_functions_are_affine_or_constant_p): Same.
12031 (get_references_in_stmt): Same.
12032 (loop_nest_has_data_refs): Same.
12033 (graphite_find_data_references_in_stmt): Same.
12034 (find_data_references_in_bb): Same.
12035 (get_base_for_alignment): Same.
12036 (find_loop_nest_1): Same.
12037 (find_loop_nest): Same.
12038 * tree-data-ref.h (dr_alignment): Same.
12039 (ddr_dependence_level): Same.
12040 * tree-if-conv.c (fold_build_cond_expr): Same.
12041 (add_to_predicate_list): Same.
12042 (add_to_dst_predicate_list): Same.
12043 (phi_convertible_by_degenerating_args): Same.
12044 (idx_within_array_bound): Same.
12045 (all_preds_critical_p): Same.
12046 (pred_blocks_visited_p): Same.
12047 (predicate_bbs): Same.
12048 (build_region): Same.
12049 (if_convertible_loop_p_1): Same.
12050 (is_cond_scalar_reduction): Same.
12051 (predicate_scalar_phi): Same.
12052 (remove_conditions_and_labels): Same.
12053 (combine_blocks): Same.
12054 (version_loop_for_if_conversion): Same.
12055 (versionable_outer_loop_p): Same.
12056 (ifcvt_local_dce): Same.
12057 (tree_if_conversion): Same.
12058 (pass_if_conversion::gate): Same.
12059 * tree-if-conv.h: Same.
12060 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12061 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12062 (free_rdg): Same.
12063 (stmt_has_scalar_dependences_outside_loop): Same.
12064 (copy_loop_before): Same.
12065 (create_bb_after_loop): Same.
12066 (const_with_all_bytes_same): Same.
12067 (generate_memset_builtin): Same.
12068 (generate_memcpy_builtin): Same.
12069 (destroy_loop): Same.
12070 (build_rdg_partition_for_vertex): Same.
12071 (compute_access_range): Same.
12072 (data_ref_segment_size): Same.
12073 (latch_dominated_by_data_ref): Same.
12074 (compute_alias_check_pairs): Same.
12075 (fuse_memset_builtins): Same.
12076 (finalize_partitions): Same.
12077 (find_seed_stmts_for_distribution): Same.
12078 (prepare_perfect_loop_nest): Same.
12079 * tree-parloops.c (lambda_transform_legal_p): Same.
12080 (loop_parallel_p): Same.
12081 (reduc_stmt_res): Same.
12082 (add_field_for_name): Same.
12083 (create_call_for_reduction_1): Same.
12084 (replace_uses_in_bb_by): Same.
12085 (transform_to_exit_first_loop_alt): Same.
12086 (try_transform_to_exit_first_loop_alt): Same.
12087 (transform_to_exit_first_loop): Same.
12088 (num_phis): Same.
12089 (gen_parallel_loop): Same.
12090 (gather_scalar_reductions): Same.
12091 (get_omp_data_i_param): Same.
12092 (try_create_reduction_list): Same.
12093 (oacc_entry_exit_single_gang): Same.
12094 (parallelize_loops): Same.
12095 * tree-pass.h: Same.
12096 * tree-predcom.c (determine_offset): Same.
12097 (last_always_executed_block): Same.
12098 (split_data_refs_to_components): Same.
12099 (suitable_component_p): Same.
12100 (valid_initializer_p): Same.
12101 (find_looparound_phi): Same.
12102 (insert_looparound_copy): Same.
12103 (add_looparound_copies): Same.
12104 (determine_roots_comp): Same.
12105 (predcom_tmp_var): Same.
12106 (initialize_root_vars): Same.
12107 (initialize_root_vars_store_elim_1): Same.
12108 (initialize_root_vars_store_elim_2): Same.
12109 (finalize_eliminated_stores): Same.
12110 (initialize_root_vars_lm): Same.
12111 (remove_stmt): Same.
12112 (determine_unroll_factor): Same.
12113 (execute_pred_commoning_cbck): Same.
12114 (base_names_in_chain_on): Same.
12115 (combine_chains): Same.
12116 (pcom_stmt_dominates_stmt_p): Same.
12117 (try_combine_chains): Same.
12118 (prepare_initializers_chain_store_elim): Same.
12119 (prepare_initializers_chain): Same.
12120 (prepare_initializers): Same.
12121 (prepare_finalizers_chain): Same.
12122 (prepare_finalizers): Same.
12123 (insert_init_seqs): Same.
12124 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12125 (compute_overall_effect_of_inner_loop): Same.
12126 (add_to_evolution_1): Same.
12127 (add_to_evolution): Same.
12128 (follow_ssa_edge_binary): Same.
12129 (follow_ssa_edge_expr): Same.
12130 (backedge_phi_arg_p): Same.
12131 (follow_ssa_edge_in_condition_phi_branch): Same.
12132 (follow_ssa_edge_in_condition_phi): Same.
12133 (follow_ssa_edge_inner_loop_phi): Same.
12134 (follow_ssa_edge): Same.
12135 (analyze_evolution_in_loop): Same.
12136 (analyze_initial_condition): Same.
12137 (interpret_loop_phi): Same.
12138 (interpret_condition_phi): Same.
12139 (interpret_rhs_expr): Same.
12140 (interpret_expr): Same.
12141 (interpret_gimple_assign): Same.
12142 (analyze_scalar_evolution_1): Same.
12143 (analyze_scalar_evolution): Same.
12144 (analyze_scalar_evolution_for_address_of): Same.
12145 (get_instantiated_value_entry): Same.
12146 (loop_closed_phi_def): Same.
12147 (instantiate_scev_name): Same.
12148 (instantiate_scev_poly): Same.
12149 (instantiate_scev_binary): Same.
12150 (instantiate_scev_convert): Same.
12151 (instantiate_scev_not): Same.
12152 (instantiate_scev_r): Same.
12153 (instantiate_scev): Same.
12154 (resolve_mixers): Same.
12155 (initialize_scalar_evolutions_analyzer): Same.
12156 (scev_reset_htab): Same.
12157 (scev_reset): Same.
12158 (derive_simple_iv_with_niters): Same.
12159 (simple_iv_with_niters): Same.
12160 (expression_expensive_p): Same.
12161 (final_value_replacement_loop): Same.
12162 * tree-scalar-evolution.h (block_before_loop): Same.
12163 * tree-ssa-address.h: Same.
12164 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12165 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12166 (record_edge_info): Same.
12167 * tree-ssa-live.c (var_map_base_fini): Same.
12168 (remove_unused_locals): Same.
12169 * tree-ssa-live.h: Same.
12170 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12171 (pass_ch_vect::execute): Same.
12172 (pass_ch::process_loop_p): Same.
12173 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12174 (movement_possibility): Same.
12175 (outermost_invariant_loop): Same.
12176 (stmt_cost): Same.
12177 (determine_max_movement): Same.
12178 (invariantness_dom_walker::before_dom_children): Same.
12179 (move_computations): Same.
12180 (may_move_till): Same.
12181 (force_move_till_op): Same.
12182 (force_move_till): Same.
12183 (memref_free): Same.
12184 (record_mem_ref_loc): Same.
12185 (set_ref_stored_in_loop): Same.
12186 (mark_ref_stored): Same.
12187 (sort_bbs_in_loop_postorder_cmp): Same.
12188 (sort_locs_in_loop_postorder_cmp): Same.
12189 (analyze_memory_references): Same.
12190 (mem_refs_may_alias_p): Same.
12191 (find_ref_loc_in_loop_cmp): Same.
12192 (rewrite_mem_ref_loc::operator): Same.
12193 (first_mem_ref_loc_1::operator): Same.
12194 (sm_set_flag_if_changed::operator): Same.
12195 (execute_sm_if_changed_flag_set): Same.
12196 (execute_sm): Same.
12197 (hoist_memory_references): Same.
12198 (ref_always_accessed::operator): Same.
12199 (refs_independent_p): Same.
12200 (record_dep_loop): Same.
12201 (ref_indep_loop_p_1): Same.
12202 (ref_indep_loop_p): Same.
12203 (can_sm_ref_p): Same.
12204 (find_refs_for_sm): Same.
12205 (loop_suitable_for_sm): Same.
12206 (store_motion_loop): Same.
12207 (store_motion): Same.
12208 (fill_always_executed_in): Same.
12209 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12210 (estimated_unrolled_size): Same.
12211 (loop_edge_to_cancel): Same.
12212 (remove_exits_and_undefined_stmts): Same.
12213 (remove_redundant_iv_tests): Same.
12214 (unloop_loops): Same.
12215 (estimated_peeled_sequence_size): Same.
12216 (try_peel_loop): Same.
12217 (canonicalize_loop_induction_variables): Same.
12218 (canonicalize_induction_variables): Same.
12219 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12220 (name_info): Same.
12221 (stmt_after_inc_pos): Same.
12222 (contains_abnormal_ssa_name_p): Same.
12223 (niter_for_exit): Same.
12224 (find_bivs): Same.
12225 (mark_bivs): Same.
12226 (find_givs_in_bb): Same.
12227 (find_induction_variables): Same.
12228 (find_interesting_uses_cond): Same.
12229 (outermost_invariant_loop_for_expr): Same.
12230 (idx_find_step): Same.
12231 (add_candidate_1): Same.
12232 (add_iv_candidate_derived_from_uses): Same.
12233 (alloc_use_cost_map): Same.
12234 (prepare_decl_rtl): Same.
12235 (generic_predict_doloop_p): Same.
12236 (computation_cost): Same.
12237 (determine_common_wider_type): Same.
12238 (get_computation_aff_1): Same.
12239 (get_use_type): Same.
12240 (determine_group_iv_cost_address): Same.
12241 (iv_period): Same.
12242 (difference_cannot_overflow_p): Same.
12243 (may_eliminate_iv): Same.
12244 (determine_set_costs): Same.
12245 (cheaper_cost_pair): Same.
12246 (compare_cost_pair): Same.
12247 (iv_ca_cand_for_group): Same.
12248 (iv_ca_recount_cost): Same.
12249 (iv_ca_set_remove_invs): Same.
12250 (iv_ca_set_no_cp): Same.
12251 (iv_ca_set_add_invs): Same.
12252 (iv_ca_set_cp): Same.
12253 (iv_ca_add_group): Same.
12254 (iv_ca_cost): Same.
12255 (iv_ca_compare_deps): Same.
12256 (iv_ca_delta_reverse): Same.
12257 (iv_ca_delta_commit): Same.
12258 (iv_ca_cand_used_p): Same.
12259 (iv_ca_delta_free): Same.
12260 (iv_ca_new): Same.
12261 (iv_ca_free): Same.
12262 (iv_ca_dump): Same.
12263 (iv_ca_extend): Same.
12264 (iv_ca_narrow): Same.
12265 (iv_ca_prune): Same.
12266 (cheaper_cost_with_cand): Same.
12267 (iv_ca_replace): Same.
12268 (try_add_cand_for): Same.
12269 (get_initial_solution): Same.
12270 (try_improve_iv_set): Same.
12271 (find_optimal_iv_set_1): Same.
12272 (create_new_iv): Same.
12273 (rewrite_use_compare): Same.
12274 (remove_unused_ivs): Same.
12275 (determine_scaling_factor): Same.
12276 * tree-ssa-loop-ivopts.h: Same.
12277 * tree-ssa-loop-manip.c (create_iv): Same.
12278 (compute_live_loop_exits): Same.
12279 (add_exit_phi): Same.
12280 (add_exit_phis): Same.
12281 (find_uses_to_rename_use): Same.
12282 (find_uses_to_rename_def): Same.
12283 (find_uses_to_rename_in_loop): Same.
12284 (rewrite_into_loop_closed_ssa): Same.
12285 (check_loop_closed_ssa_bb): Same.
12286 (split_loop_exit_edge): Same.
12287 (ip_end_pos): Same.
12288 (ip_normal_pos): Same.
12289 (copy_phi_node_args): Same.
12290 (gimple_duplicate_loop_to_header_edge): Same.
12291 (can_unroll_loop_p): Same.
12292 (determine_exit_conditions): Same.
12293 (scale_dominated_blocks_in_loop): Same.
12294 (niter_for_unrolled_loop): Same.
12295 (tree_transform_and_unroll_loop): Same.
12296 (rewrite_all_phi_nodes_with_iv): Same.
12297 * tree-ssa-loop-manip.h: Same.
12298 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12299 (number_of_iterations_ne): Same.
12300 (assert_no_overflow_lt): Same.
12301 (assert_loop_rolls_lt): Same.
12302 (number_of_iterations_lt): Same.
12303 (adjust_cond_for_loop_until_wrap): Same.
12304 (tree_simplify_using_condition): Same.
12305 (simplify_using_initial_conditions): Same.
12306 (simplify_using_outer_evolutions): Same.
12307 (loop_only_exit_p): Same.
12308 (ssa_defined_by_minus_one_stmt_p): Same.
12309 (number_of_iterations_popcount): Same.
12310 (number_of_iterations_exit): Same.
12311 (find_loop_niter): Same.
12312 (finite_loop_p): Same.
12313 (chain_of_csts_start): Same.
12314 (get_val_for): Same.
12315 (loop_niter_by_eval): Same.
12316 (derive_constant_upper_bound_ops): Same.
12317 (do_warn_aggressive_loop_optimizations): Same.
12318 (record_estimate): Same.
12319 (get_cst_init_from_scev): Same.
12320 (record_nonwrapping_iv): Same.
12321 (idx_infer_loop_bounds): Same.
12322 (infer_loop_bounds_from_ref): Same.
12323 (infer_loop_bounds_from_array): Same.
12324 (infer_loop_bounds_from_pointer_arith): Same.
12325 (infer_loop_bounds_from_signedness): Same.
12326 (bound_index): Same.
12327 (discover_iteration_bound_by_body_walk): Same.
12328 (maybe_lower_iteration_bound): Same.
12329 (estimate_numbers_of_iterations): Same.
12330 (estimated_loop_iterations): Same.
12331 (estimated_loop_iterations_int): Same.
12332 (max_loop_iterations): Same.
12333 (max_loop_iterations_int): Same.
12334 (likely_max_loop_iterations): Same.
12335 (likely_max_loop_iterations_int): Same.
12336 (estimated_stmt_executions_int): Same.
12337 (max_stmt_executions): Same.
12338 (likely_max_stmt_executions): Same.
12339 (estimated_stmt_executions): Same.
12340 (stmt_dominates_stmt_p): Same.
12341 (nowrap_type_p): Same.
12342 (loop_exits_before_overflow): Same.
12343 (scev_var_range_cant_overflow): Same.
12344 (scev_probably_wraps_p): Same.
12345 (free_numbers_of_iterations_estimates): Same.
12346 * tree-ssa-loop-niter.h: Same.
12347 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12348 (idx_analyze_ref): Same.
12349 (analyze_ref): Same.
12350 (gather_memory_references_ref): Same.
12351 (mark_nontemporal_store): Same.
12352 (emit_mfence_after_loop): Same.
12353 (may_use_storent_in_loop_p): Same.
12354 (mark_nontemporal_stores): Same.
12355 (should_unroll_loop_p): Same.
12356 (volume_of_dist_vector): Same.
12357 (add_subscript_strides): Same.
12358 (self_reuse_distance): Same.
12359 (insn_to_prefetch_ratio_too_small_p): Same.
12360 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12361 (patch_loop_exit): Same.
12362 (find_or_create_guard_phi): Same.
12363 (easy_exit_values): Same.
12364 (connect_loop_phis): Same.
12365 (connect_loops): Same.
12366 (compute_new_first_bound): Same.
12367 (split_loop): Same.
12368 (tree_ssa_split_loops): Same.
12369 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12370 (is_maybe_undefined): Same.
12371 (tree_may_unswitch_on): Same.
12372 (simplify_using_entry_checks): Same.
12373 (tree_unswitch_single_loop): Same.
12374 (tree_unswitch_loop): Same.
12375 (tree_unswitch_outer_loop): Same.
12376 (empty_bb_without_guard_p): Same.
12377 (used_outside_loop_p): Same.
12378 (get_vop_from_header): Same.
12379 (hoist_guard): Same.
12380 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12381 (get_lsm_tmp_name): Same.
12382 * tree-ssa-loop.h: Same.
12383 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12384 (build_and_add_sum): Same.
12385 (no_side_effect_bb): Same.
12386 (get_ops): Same.
12387 (linearize_expr): Same.
12388 (should_break_up_subtract): Same.
12389 (linearize_expr_tree): Same.
12390 * tree-ssa-scopedtables.c: Same.
12391 * tree-ssa-scopedtables.h: Same.
12392 * tree-ssa-structalias.c (condense_visit): Same.
12393 (label_visit): Same.
12394 (dump_pred_graph): Same.
12395 (perform_var_substitution): Same.
12396 (move_complex_constraints): Same.
12397 (remove_preds_and_fake_succs): Same.
12398 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12399 (determine_bb_domination_status): Same.
12400 (duplicate_thread_path): Same.
12401 (thread_through_all_blocks): Same.
12402 * tree-ssa-threadupdate.h: Same.
12403 * tree-streamer-in.c (streamer_read_string_cst): Same.
12404 (input_identifier): Same.
12405 (unpack_ts_type_common_value_fields): Same.
12406 (unpack_ts_block_value_fields): Same.
12407 (unpack_ts_translation_unit_decl_value_fields): Same.
12408 (unpack_ts_omp_clause_value_fields): Same.
12409 (streamer_read_tree_bitfields): Same.
12410 (streamer_alloc_tree): Same.
12411 (lto_input_ts_common_tree_pointers): Same.
12412 (lto_input_ts_vector_tree_pointers): Same.
12413 (lto_input_ts_poly_tree_pointers): Same.
12414 (lto_input_ts_complex_tree_pointers): Same.
12415 (lto_input_ts_decl_minimal_tree_pointers): Same.
12416 (lto_input_ts_decl_common_tree_pointers): Same.
12417 (lto_input_ts_decl_non_common_tree_pointers): Same.
12418 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12419 (lto_input_ts_field_decl_tree_pointers): Same.
12420 (lto_input_ts_function_decl_tree_pointers): Same.
12421 (lto_input_ts_type_common_tree_pointers): Same.
12422 (lto_input_ts_type_non_common_tree_pointers): Same.
12423 (lto_input_ts_list_tree_pointers): Same.
12424 (lto_input_ts_vec_tree_pointers): Same.
12425 (lto_input_ts_exp_tree_pointers): Same.
12426 (lto_input_ts_block_tree_pointers): Same.
12427 (lto_input_ts_binfo_tree_pointers): Same.
12428 (lto_input_ts_constructor_tree_pointers): Same.
12429 (lto_input_ts_omp_clause_tree_pointers): Same.
12430 (streamer_read_tree_body): Same.
12431 * tree-streamer.h: Same.
12432 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12433 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12434 (vect_analyze_possibly_independent_ddr): Same.
12435 (vect_analyze_data_ref_dependence): Same.
12436 (vect_compute_data_ref_alignment): Same.
12437 (vect_enhance_data_refs_alignment): Same.
12438 (vect_analyze_data_ref_access): Same.
12439 (vect_check_gather_scatter): Same.
12440 (vect_find_stmt_data_reference): Same.
12441 (vect_create_addr_base_for_vector_ref): Same.
12442 (vect_setup_realignment): Same.
12443 (vect_supportable_dr_alignment): Same.
12444 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12445 (adjust_phi_and_debug_stmts): Same.
12446 (vect_set_loop_mask): Same.
12447 (add_preheader_seq): Same.
12448 (vect_maybe_permute_loop_masks): Same.
12449 (vect_set_loop_masks_directly): Same.
12450 (vect_set_loop_condition_masked): Same.
12451 (vect_set_loop_condition_unmasked): Same.
12452 (slpeel_duplicate_current_defs_from_edges): Same.
12453 (slpeel_add_loop_guard): Same.
12454 (slpeel_can_duplicate_loop_p): Same.
12455 (create_lcssa_for_virtual_phi): Same.
12456 (iv_phi_p): Same.
12457 (vect_update_ivs_after_vectorizer): Same.
12458 (vect_gen_vector_loop_niters_mult_vf): Same.
12459 (slpeel_update_phi_nodes_for_loops): Same.
12460 (slpeel_update_phi_nodes_for_guard1): Same.
12461 (find_guard_arg): Same.
12462 (slpeel_update_phi_nodes_for_guard2): Same.
12463 (slpeel_update_phi_nodes_for_lcssa): Same.
12464 (vect_do_peeling): Same.
12465 (vect_create_cond_for_alias_checks): Same.
12466 (vect_loop_versioning): Same.
12467 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12468 (vect_inner_phi_in_double_reduction_p): Same.
12469 (vect_analyze_scalar_cycles_1): Same.
12470 (vect_fixup_scalar_cycles_with_patterns): Same.
12471 (vect_get_loop_niters): Same.
12472 (bb_in_loop_p): Same.
12473 (vect_get_max_nscalars_per_iter): Same.
12474 (vect_verify_full_masking): Same.
12475 (vect_compute_single_scalar_iteration_cost): Same.
12476 (vect_analyze_loop_form_1): Same.
12477 (vect_analyze_loop_form): Same.
12478 (vect_active_double_reduction_p): Same.
12479 (vect_analyze_loop_operations): Same.
12480 (neutral_op_for_slp_reduction): Same.
12481 (vect_is_simple_reduction): Same.
12482 (vect_model_reduction_cost): Same.
12483 (get_initial_def_for_reduction): Same.
12484 (get_initial_defs_for_reduction): Same.
12485 (vect_create_epilog_for_reduction): Same.
12486 (vectorize_fold_left_reduction): Same.
12487 (vectorizable_reduction): Same.
12488 (vectorizable_induction): Same.
12489 (vectorizable_live_operation): Same.
12490 (loop_niters_no_overflow): Same.
12491 (vect_get_loop_mask): Same.
12492 (vect_transform_loop_stmt): Same.
12493 (vect_transform_loop): Same.
12494 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12495 (vect_determine_precisions): Same.
12496 (vect_pattern_recog_1): Same.
12497 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12498 * tree-vect-stmts.c (stmt_vectype): Same.
12499 (process_use): Same.
12500 (vect_init_vector_1): Same.
12501 (vect_truncate_gather_scatter_offset): Same.
12502 (get_group_load_store_type): Same.
12503 (vect_build_gather_load_calls): Same.
12504 (vect_get_strided_load_store_ops): Same.
12505 (vectorizable_simd_clone_call): Same.
12506 (vectorizable_store): Same.
12507 (permute_vec_elements): Same.
12508 (vectorizable_load): Same.
12509 (vect_transform_stmt): Same.
12510 (supportable_widening_operation): Same.
12511 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12512 (vec_info::free_stmt_vec_info): Same.
12513 (vect_free_loop_info_assumptions): Same.
12514 (vect_loop_vectorized_call): Same.
12515 (set_uid_loop_bbs): Same.
12516 (vectorize_loops): Same.
12517 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12518 * tree.c (add_tree_to_fld_list): Same.
12519 (fld_type_variant_equal_p): Same.
12520 (fld_decl_context): Same.
12521 (fld_incomplete_type_of): Same.
12522 (free_lang_data_in_binfo): Same.
12523 (need_assembler_name_p): Same.
12524 (find_decls_types_r): Same.
12525 (get_eh_types_for_runtime): Same.
12526 (find_decls_types_in_eh_region): Same.
12527 (find_decls_types_in_node): Same.
12528 (assign_assembler_name_if_needed): Same.
12529 * value-prof.c (stream_out_histogram_value): Same.
12530 * value-prof.h: Same.
12531 * var-tracking.c (use_narrower_mode): Same.
12532 (prepare_call_arguments): Same.
12533 (vt_expand_loc_callback): Same.
12534 (resolve_expansions_pending_recursion): Same.
12535 (vt_expand_loc): Same.
12536 * varasm.c (const_hash_1): Same.
12537 (compare_constant): Same.
12538 (tree_output_constant_def): Same.
12539 (simplify_subtraction): Same.
12540 (get_pool_constant): Same.
12541 (output_constant_pool_2): Same.
12542 (output_constant_pool_1): Same.
12543 (mark_constants_in_pattern): Same.
12544 (mark_constant_pool): Same.
12545 (get_section_anchor): Same.
12546 * vr-values.c (compare_range_with_value): Same.
12547 (vr_values::extract_range_from_phi_node): Same.
12548 * vr-values.h: Same.
12549 * web.c (unionfind_union): Same.
12550 * wide-int.h: Same.
12551
12552 2019-07-09 Martin Sebor <msebor@redhat.com>
12553
12554 PR c++/61339
12555 * align.h: Change class-key from class to struct and vice versa
12556 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12557 * alloc-pool.h: Same.
12558 * asan.c (shadow_mem_size): Same.
12559 * auto-profile.c: Same.
12560 * basic-block.h: Same.
12561 * bitmap.h: Same.
12562 * cfgexpand.c (set_rtl): Same.
12563 (expand_one_stack_var_at): Same.
12564 * cfghooks.h: Same.
12565 * cfgloop.h: Same.
12566 * cgraph.h: Same.
12567 * config/i386/i386.h: Same.
12568 * df-problems.c (df_print_bb_index): Same.
12569 * df-scan.c: Same.
12570 * df.h (df_single_use): Same.
12571 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12572 (layout::annotation_line_showed_range_p): Same.
12573 (get_printed_columns): Same.
12574 (correction::ensure_terminated): Same.
12575 (line_corrections::~line_corrections): Same.
12576 * dojump.h: Same.
12577 * dse.c: Same.
12578 * dump-context.h: Same.
12579 * dumpfile.h: Same.
12580 * dwarf2out.c: Same.
12581 * edit-context.c: Same.
12582 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12583 * flags.h: Same.
12584 * function.c (assign_stack_local): Same.
12585 * function.h: Same.
12586 * gcc.c: Same.
12587 * gcov.c (block_info::block_info): Same.
12588 * genattrtab.c: Same.
12589 * genextract.c: Same.
12590 * genmatch.c (comparison_code_p): Same.
12591 (id_base::id_base): Same.
12592 (decision_tree::print): Same.
12593 * genoutput.c: Same.
12594 * genpreds.c (write_one_predicate_function): Same.
12595 * genrecog.c (validate_pattern): Same.
12596 (find_operand_positions): Same.
12597 (optimize_subroutine_group): Same.
12598 (merge_pattern_transition::merge_pattern_transition): Same.
12599 (merge_pattern_info::merge_pattern_info): Same.
12600 (merge_state_result::merge_state_result): Same.
12601 (merge_into_state): Same.
12602 * gensupport.c: Same.
12603 * gensupport.h: Same.
12604 * ggc-common.c (init_ggc_heuristics): Same.
12605 * ggc-tests.c (test_union): Same.
12606 * gimple-loop-interchange.cc (dump_induction): Same.
12607 * gimple-loop-versioning.cc: Same.
12608 * gimple-match.h (gimple_match_cond::any_else): Same.
12609 * gimple-ssa-backprop.c: Same.
12610 * gimple-ssa-sprintf.c: Same.
12611 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12612 Same.
12613 (store_immediate_info::store_immediate_info): Same.
12614 (merged_store_group::apply_stores): Same.
12615 (get_location_for_stmts): Same.
12616 * gimple-ssa-strength-reduction.c: Same.
12617 * gimple-ssa-warn-alloca.c: Same.
12618 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12619 * godump.c (go_type_decl): Same.
12620 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12621 * hash-map.h: Same.
12622 * hash-set-tests.c (test_set_of_strings): Same.
12623 * hsa-brig.c: Same.
12624 * hsa-common.h: Same.
12625 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12626 * input.c (assert_loceq): Same.
12627 * input.h: Same.
12628 * ipa-cp.c: Same.
12629 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12630 * ipa-fnsummary.h: Same.
12631 * ipa-inline.h: Same.
12632 * ipa-prop.h: Same.
12633 * ipa-split.c (visit_bb): Same.
12634 * ira-int.h (minmax_set_iter_next): Same.
12635 * loop-invariant.c: Same.
12636 * loop-iv.c: Same.
12637 * lra-eliminations.c: Same.
12638 * lra-int.h: Same.
12639 * lra-lives.c (mark_regno_dead): Same.
12640 * lra-remat.c: Same.
12641 * lra-spills.c: Same.
12642 * lto-streamer.h: Same.
12643 * mem-stats.h: Same.
12644 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12645 * omp-low.c (omp_clause_aligned_alignment): Same.
12646 * optabs-query.h (get_vcond_eq_icode): Same.
12647 * optabs.h: Same.
12648 * opts.c (wrap_help): Same.
12649 * poly-int.h: Same.
12650 * predict.c (predict_paths_leading_to_edge): Same.
12651 * pretty-print.h: Same.
12652 * profile-count.h: Same.
12653 * read-md.h: Same.
12654 * read-rtl-function.c: Same.
12655 * ree.c: Same.
12656 * reginfo.c: Same.
12657 * regrename.c: Same.
12658 * regrename.h: Same.
12659 * reload.h: Same.
12660 * rtl-iter.h: Same.
12661 * rtl.h (costs_add_n_insns): Same.
12662 * sanopt.c: Same.
12663 * sched-int.h: Same.
12664 * sel-sched-ir.h: Same.
12665 * selftest.h: Same.
12666 * sese.h (vec_find): Same.
12667 * stmt.c: Same.
12668 * target-globals.h: Same.
12669 * tree-affine.c (aff_combination_find_elt): Same.
12670 * tree-affine.h: Same.
12671 * tree-data-ref.h: Same.
12672 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12673 * tree-predcom.c: Same.
12674 * tree-scalar-evolution.c (find_var_scev_info): Same.
12675 * tree-ssa-alias.h: Same.
12676 * tree-ssa-ccp.c: Same.
12677 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12678 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12679 (rewrite_mem_refs): Same.
12680 (execute_sm_if_changed): Same.
12681 (hoist_memory_references): Same.
12682 * tree-ssa-loop-ivopts.c (operator<=): Same.
12683 * tree-ssa-loop.h: Same.
12684 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12685 * tree-ssa-structalias.c: Same.
12686 * tree-switch-conversion.h (cluster::cluster): Same.
12687 (simple_cluster::simple_cluster): Same.
12688 * tree-vect-patterns.c (type_conversion_p): Same.
12689 * tree-vectorizer.c (dump_stmt_cost): Same.
12690 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12691 * tree.c (protected_set_expr_location): Same.
12692 * tree.h (desired_pro_or_demotion_p): Same.
12693 (fndecl_built_in_p): Same.
12694 * unique-ptr-tests.cc: Same.
12695 * var-tracking.c (delete_variable_part): Same.
12696 * varasm.c (assemble_real): Same.
12697 (tree_output_constant_def): Same.
12698 * vec.c: Same.
12699 * wide-int-bitmask.h: Same.
12700 * wide-int.h (decompose): Same.
12701
12702 2019-07-09 Richard Biener <rguenther@suse.de>
12703
12704 PR tree-optimization/91114
12705 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12706 find a vector type isn't fatal.
12707
12708 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12709
12710 * config/aarch64/aarch64-simd.md
12711 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12712 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12713 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12714 (*aarch64_crypto_aese_fused,
12715 *aarch64_crypto_aesd_fused): Update to new definition.
12716 * config/aarch64/aarch64.c
12717 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12718
12719 2019-07-09 Richard Biener <rguenther@suse.de>
12720
12721 * gimple-match.h (gimple_match_op::resimplify): New.
12722 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12723 gimple_resimplify4, gimple_resimplify5): Remove.
12724 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12725 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12726 Make static.
12727 (gimple_match_op::resimplify): New.
12728 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12729 according to availability. Use gimple_match_op::resimplify.
12730
12731 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12732
12733 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12734
12735 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12736
12737 * config/arm/crypto.md:
12738 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12739 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12740 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12741 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12742 * config/arm/arm.c
12743 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12744 * config/arm/aarch-common-protos.h
12745 (aarch_crypto_can_dual_issue): Remove.
12746 * config/arm/aarch-common.c
12747 (aarch_crypto_can_dual_issue): Likewise.
12748 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12749 * config/arm/cortex-a53.md: Likewise.
12750 * config/arm/cortex-a57.md: Likewise.
12751 * config/arm/iterators.md:
12752 (CRYPTO_BINARY): Redefine.
12753 (CRYPTO_UNARY): Removed.
12754 (CRYPTO_AES, CRYPTO_AESMC): New.
12755
12756 2019-07-09 Richard Biener <rguenther@suse.de>
12757
12758 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12759 (vn_reference_lookup_3): If the main ref has no access path recorded
12760 but orig_ref has use it to do access-path based disambiguation.
12761 (vn_reference_lookup_pieces): Adjust.
12762 (vn_reference_lookup): Pass down original ref if we valueized.
12763
12764 2019-07-09 Martin Liska <mliska@suse.cz>
12765
12766 * doc/extend.texi: Document influence on loop
12767 optimizers.
12768
12769 2019-07-09 Martin Liska <mliska@suse.cz>
12770
12771 * lto-compress.c (lto_normalized_zstd_level): Do not use
12772 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12773 of libzstd. One can use 0 as a default compression level.
12774
12775 2019-07-09 Martin Liska <mliska@suse.cz>
12776
12777 * doc/invoke.texi: Add link from -fprofile-dir option.
12778 Use better wording for 'gcno filename'.
12779
12780 2019-07-08 Martin Sebor <msebor@redhat.com>
12781
12782 PR middle-end/71924
12783 PR middle-end/90549
12784 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12785 comment.
12786 (args_loc_t): New type.
12787 (args_loc_t, locmap_t): same.
12788 (diag_returned_locals): New function.
12789 (is_addr_local): Same.
12790 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12791 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12792 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12793
12794 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12795
12796 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12797 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12798 and casts in offset when different, both through gimple stmts
12799 and through trees. Rewritten using loops to minimize code duplication
12800 for each operand.
12801
12802 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12803
12804 * emit-rtl.c (set_insn_locations): New function moved from...
12805 * function.c (set_insn_locations): ...here.
12806 * ira-emit.c (emit_moves): Propagate location of the first instruction
12807 to the inserted move instructions.
12808 * reg-stack.c (compensate_edge): Set the location if the sequence is
12809 inserted on the edge.
12810 * rtl.h (set_insn_locations): Declare.
12811
12812 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12813
12814 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12815 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12816 .machine string.
12817
12818 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12819
12820 PR rtl-optimization/88233
12821 * common.opt (fsplit-wide-types-early): New option.
12822 * common/config/rs6000/rs6000-common.c
12823 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12824 OPT_LEVELS_ALL.
12825 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12826 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12827 flag_split_wide_types_early.
12828 (pass_data_lower_subreg3): New.
12829 (pass_lower_subreg3): New.
12830 (make_pass_lower_subreg3): New.
12831 * passes.def (pass_lower_subreg2): Move after the loop passes.
12832 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12833 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12834 the pass pipeline; its previous place is taken by ...
12835 (make_pass_lower_subreg3): ... this.
12836
12837 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12838
12839 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12840 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12841
12842 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12843
12844 * config/s390/constraints.md: Add new jsc constraint.
12845 * config/s390/predicates.md: New predicates.
12846 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12847 * config/s390/s390.c (s390_valid_shift_count): New function.
12848 (print_shift_count_operand): Use s390_valid_shift_count.
12849 (print_operand): Likewise.
12850 * config/s390/s390.md: Use new predicate.
12851 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12852 * config/s390/vector.md: Use new predicate.
12853
12854 2019-07-08 Andrew Waterman <andrew@sifive.com>
12855 Jim Wilson <jimw@sifive.com>
12856
12857 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12858 bitsize instead of BITS_PER_WORD.
12859
12860 2019-07-08 Martin Liska <mliska@suse.cz>
12861
12862 * collect2.c (defined): Revert to before r254460.
12863 (scan_prog_file): Revert to before r254460.
12864
12865 2019-07-08 Richard Biener <rguenther@suse.de>
12866
12867 PR tree-optimization/83518
12868 * tree-ssa-sccvn.c: Include splay-tree.h.
12869 (struct pd_range, struct pd_data): New.
12870 (struct vn_walk_cb_data): Add data to track partial definitions.
12871 (vn_walk_cb_data::~vn_walk_cb_data): New.
12872 (vn_walk_cb_data::push_partial_def): New.
12873 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12874 (vn_reference_lookup_2): When partial defs are registered give up.
12875 (vn_reference_lookup_3): Track partial defs for memset and
12876 constructor zeroing and for defs from constants.
12877
12878 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12879
12880 * doc/install.texi (bootstrap-Og): Document.
12881
12882 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
12883
12884 * config/riscv/pic.md (*local_pic_load_s<mode>)
12885 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12886 referenced by <mode>, giving...
12887 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12888 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12889 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12890 use <X:MODE> for the mode attribute.
12891
12892 2019-07-07 Jeff Law <law@redhat.com>
12893
12894 PR tree-optimization/91090
12895 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12896 in handling of ranges to simplify switch statements.
12897
12898 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12899
12900 * config/darwin.c (darwin_override_options): Make a final check on PIC
12901 options.
12902
12903 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
12904
12905 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12906 on for kernel code.
12907
12908 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12909
12910 PR target/91068
12911 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12912 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12913 instead of matching them to "l" output operands.
12914
12915 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
12916
12917 * config/mips/mips.c (mips_split_move): Zero-initialize addr
12918 and check whether addr.reg is nonnull before using it.
12919
12920 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12921
12922 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12923 ctx->for_simd_scan_phase simd copy the outer var to the privatized
12924 variable(s). For conditional lastprivate look through outer
12925 GIMPLE_OMP_SCAN context.
12926 (lower_omp_1): For conditional lastprivate look through outer
12927 GIMPLE_OMP_SCAN context.
12928
12929 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12930 member to combined_into_simd_safelen1.
12931 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12932 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
12933 clauses if ctx->combined_into_simd_safelen1 put statements after the
12934 predicate conditionalized block rather than into it.
12935
12936 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12937
12938 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12939 operand 1.
12940 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12941 Make the choice of <mode> explicit, giving...
12942 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12943
12944 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12945
12946 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12947 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12948 of .md attributes.
12949 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12950 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12951 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12952 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12953 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12954 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12955 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12956 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12957 (*avx512f_scatterdi<mode>): Likewise.
12958 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12959
12960 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12961
12962 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12963 specify the mode iterator referenced by <mode>, giving...
12964 (*push1_h8300hs_<QHI:mode>): ...this.
12965
12966 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12967
12968 * config/gcn/gcn-valu.md
12969 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12970 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12971 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
12972 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12973 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12974 but using the _exec comparison patterns.
12975 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12976 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12977 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
12978 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12979 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12980 but using the _exec comparison patterns.
12981
12982 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
12983
12984 * config/arm/sync.md
12985 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12986 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12987 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12988 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
12989 <SIDI:cas_cmp_str>.
12990
12991 2019-07-06 Jakub Jelinek <jakub@redhat.com>
12992
12993 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12994 (maybe_lookup_ctx): Add forward declaration.
12995 (omp_find_scan): Likewise. Walk into body of simd if composited
12996 with worksharing loop.
12997 (scan_omp_simd_scan): New function.
12998 (scan_omp_1_stmt): Call it.
12999 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13000 ctx->for_simd_scan_phase.
13001 (lower_rec_input_clauses): Do much less work for inscan reductions
13002 in ctx->for_simd_scan_phase is_simd regions.
13003 (lower_omp_scan): Set is_simd also on simd constructs composited
13004 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13005 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13006 emit their body after in simd constructs composited with worksharing
13007 loop.
13008 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13009
13010 * omp-low.c (omp_find_scan): Make static.
13011 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13012 the second loop, var2 represents the first partial sum and so needs
13013 to go before rprivb[ivar].
13014
13015 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13016
13017 * config/rs6000/rs6000-logue.c: Remove unused code.
13018
13019 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13020
13021 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13022
13023 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13024
13025 PR target/90712
13026 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13027 check with a frame laid out check.
13028
13029 2019-07-05 Richard Biener <rguenther@suse.de>
13030
13031 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13032 when comparing against a store with possibly the same value.
13033
13034 2019-07-05 Richard Biener <rguenther@suse.de>
13035
13036 PR tree-optimization/91091
13037 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13038 (walk_non_aliased_vuses): Likewise.
13039 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13040 (get_continuation_for_phi): New tbaa_p parameter and pass
13041 it down.
13042 (walk_non_aliased_vuses): Likewise.
13043 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13044 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13045 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13046 Likewise.
13047 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13048 (adjust_offsets_for_equal_base_address): New function.
13049 (vn_reference_lookup_3): Use it to catch more base equivalences.
13050 Handle and pass down tbaa_p flag.
13051 (vn_reference_lookup_pieces): Adjust.
13052 (vn_reference_lookup): Remove alias-set altering, instead pass
13053 down false as tbaa_p.
13054
13055 2019-07-05 Richard Biener <rguenther@suse.de>
13056
13057 PR tree-optimization/91091
13058 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13059 accesses can happen with -fno-strict-aliasing.
13060
13061 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13062
13063 * tree-ssa-alias.c (alias_stats): Add
13064 nonoverlapping_component_refs_since_match_p_must_overlap.
13065 (dump_alias_stats): Print it.
13066 (nonoverlapping_component_refs_since_match_p): Add early exit.
13067 (nonoverlapping_component_refs_p): Do not account early exit.
13068
13069 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13070
13071 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13072 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13073 (emit_eh_dispatch): Delete.
13074 (lower_catch): Emit the eh_dispatch manually and set the location of
13075 the first catch statement onto it.
13076 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13077 (lower_eh_dispatch): Propagate location.
13078 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13079 (eliminate_build): Likewise.
13080
13081 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13082
13083 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13084 phi nodes if possible.
13085 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13086 location info on the newly created statement.
13087 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13088 newly created increment if needed.
13089
13090 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13091
13092 PR middle-end/78884
13093 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13094 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13095 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13096 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13097 ctx->add_safelen1 is set.
13098
13099 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13100 GOMP_loop_start at the start of second worksharing loop in a scan.
13101 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13102 worksharing loop in a scan even if there are conditional lastprivates,
13103 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13104
13105 2019-07-04 Jan Hubicka <jh@suse.cz>
13106
13107 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13108 Fix check for match in the ref walk.
13109
13110 2019-07-04 Martin Liska <mliska@suse.cz>
13111
13112 * tree-ssa-loop-niter.c
13113 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13114 (estimate_numbers_of_iterations):
13115 Support __builtin_expect_with_probability for analysis
13116 of # of loop iterations.
13117
13118 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13119
13120 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13121 * except.c: Likewise.
13122 * expr.c (expand_expr_real_1): Reject it.
13123 * gimplify.c (gimplify_expr): Gimplify it, within
13124 TRY_FINALLY_EXPR.
13125 * tree-dump.c (dequeue_and_dump): Dump it.
13126 * tree-pretty-print.c (dump_generic_node): Likewise.
13127 * tree.c (block_may_fallthru): Handle it.
13128 * tree.def (EH_ELSE_EXPR): Introduce it.
13129 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13130 with GIMPLE_EH_ELSE as try/finally/else.
13131
13132 2019-07-04 Richard Biener <rguenther@suse.de>
13133
13134 PR ipa/91062
13135 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13136 parameter whether to disable GC collection.
13137 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13138 honor it.
13139 (execute_all_ipa_transforms): Likewise and pass it down.
13140 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13141 collection from applying IPA transforms.
13142 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13143 from applying IPA transforms.
13144
13145 2019-07-04 Richard Biener <rguenther@suse.de>
13146
13147 PR tree-optimization/90911
13148 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13149 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13150 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13151 scalar_loop_scaling.
13152 (vect_transform_loop): Scale scalar loop profile if needed.
13153 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13154 the loop copy from if-conversion adjust edge probabilities
13155 and scale the vectorized loop body profile, queue the scalar
13156 profile for updating after peeling.
13157
13158 2019-07-04 Jan Hubicka <jh@suse.cz>
13159
13160 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13161 parameters; return early for must-alias.
13162 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13163 outer types match, try nonoverlapping_component_refs
13164 if must-alias is not obvious.
13165 (indirect_refs_may_alias_p): Likewise.
13166 (refs_may_alias_p_2): Likewise.
13167
13168 2019-07-04 Richard Biener <rguenther@suse.de>
13169
13170 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13171 argument.
13172 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13173 globals into...
13174 (struct vn_walk_cb_data): New callback data struct.
13175 (vn_reference_lookup_2): Adjust.
13176 (vn_reference_lookup_3): Likewise.
13177 (vn_reference_lookup_pieces): Likewise.
13178 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13179 (visit_reference_op_load): Adjust.
13180
13181 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13182
13183 PR tree-optimization/91063
13184 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13185 stmt from stmts sequence before calling vect_init_vector_1.
13186 Formatting fix.
13187
13188 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13189
13190 PR target/88833
13191 * fwprop.c (reg_single_def_p): New function.
13192 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13193 (forward_propagate_into): New parameter reg_prop_only
13194 with default value false.
13195 Propagate def's src into loop only if SET_SRC and SET_DEST
13196 of def_set have single definitions.
13197 Likewise if reg_prop_only is set to true.
13198 (fwprop): New param fwprop_addr_p.
13199 Integrate fwprop_addr into fwprop.
13200 (fwprop_addr): Remove.
13201 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13202 to true.
13203 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13204 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13205 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13206
13207 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13208
13209 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13210 in worksharing loop scans.
13211
13212 PR tree-optimization/91074
13213 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13214 temporary.
13215
13216 PR rtl-optimization/90756
13217 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13218 for VECTOR_TYPE_P.
13219
13220 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13221
13222 * config/aarch64/aarch64.md: Remove redundant constraints from
13223 define_expand but keep some patterns untouched if they are
13224 specially selected by TARGET_SECONDARY_RELOAD hook.
13225 * config/aarch64/aarch64-sve.md: Likewise.
13226 * config/aarch64/atomics.md: Remove redundant constraints from
13227 define_expand.
13228 * config/aarch64/aarch64-simd.md: Likewise.
13229
13230 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13231
13232 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13233 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13234 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13235 clauses.
13236 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13237 DARWIN_NOPIE_SPEC.
13238
13239 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13240
13241 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13242 (STARTFILE_SPEC): Split crt3 into a separate spec.
13243 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13244 (DARWIN_CRT2_SPEC): New.
13245 (DARWIN_CRT3_SPEC): New.
13246 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13247 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13248 (DARWIN_CRT3_SPEC): New.
13249
13250 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13251
13252 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13253 Change the RTL attribute "length" from "4" to "*" to allow the
13254 length attribute to be adjusted automatically for prefixed load,
13255 store, and add immediate instructions.
13256 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13257 Likewise.
13258 (extendsi<mode>2, EXTSI iterator): Likewise.
13259 (movsi_internal1): Likewise.
13260 (movsi_from_sf): Likewise.
13261 (movdi_from_sf_zero_ext): Likewise.
13262 (mov<mode>_internal): Likewise.
13263 (movcc_internal1, QHI iterator): Likewise.
13264 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13265 (movsf_from_si): Likewise.
13266 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13267 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13268 (mov<mode>, FMOVE128 iterator): Likewise.
13269 (movdi_internal64): Likewise.
13270 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13271 Likewise.
13272 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13273 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13274 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13275 (vsx_splat_v4sf): Likewise.
13276
13277 2019-07-03 Mark Wielaard <mark@klomp.org>
13278
13279 PR debug/90981
13280 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13281 DW_AT_addr_base if there is actually a .debug_addr section with
13282 addresses.
13283 (output_addr_table): Add DWARF5 table header generation here after
13284 checking there are actually any addresses from...
13285 (dwarf2out_finish): ...here.
13286
13287 2019-07-03 Richard Biener <rguenther@suse.de>
13288
13289 PR middle-end/91069
13290 * match.pd (vec_perm -> bit_insert): Fix element read from
13291 first vector.
13292
13293 2019-07-03 Martin Liska <mliska@suse.cz>
13294
13295 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13296 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13297 condition.
13298 * generic-match-head.c: Include dbgcnt.h.
13299 * gimple-match-head.c: Likewise.
13300
13301 2019-07-03 Martin Liska <mliska@suse.cz>
13302
13303 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13304 (GCOV_COUNTER_V_TOPN): New.
13305 (GCOV_COUNTER_V_INDIR): Use _topn.
13306 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13307 (GCOV_TOPN_VALUES): New.
13308 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13309 (GCOV_TOPN_VALUES_COUNTERS): New.
13310 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13311 * tree-profile.c:
13312 (gimple_init_gcov_profiler): Rename variables from one_value
13313 to topn_values.
13314 (gimple_gen_one_value_profiler): Remove.
13315 (gimple_gen_topn_values_profiler): New function.
13316 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13317 names instead of SINGLE_VALUE.
13318 (stream_out_histogram_value): Likewise.
13319 (stream_in_histogram_value): Likewise.
13320 (get_most_common_single_value): Likewise.
13321 (gimple_divmod_fixed_value_transform): Likewise.
13322 (gimple_stringops_transform): Likewise.
13323 (gimple_divmod_values_to_profile): Likewise.
13324 (gimple_stringops_values_to_profile): Likewise.
13325 (gimple_find_values_to_profile): Likewise.
13326 * value-prof.h (enum hist_type): Rename to TOPN.
13327 (gimple_gen_one_value_profiler): Remove.
13328 (gimple_gen_topn_values_profiler): New.
13329
13330 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13331
13332 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13333 if it has the DW_AT_data_member_location attribute.
13334
13335 2019-07-03 Richard Biener <rguenther@suse.de>
13336
13337 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13338 dumping.
13339
13340 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13341
13342 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13343 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13344 (tlsdesc_small_sve_<mode>): Likewise.
13345
13346 2019-07-03 Martin Liska <mliska@suse.cz>
13347
13348 * Makefile.in: Define ZSTD_LIB.
13349 * common.opt: Adjust compression level
13350 to support also zstd levels.
13351 * config.in: Regenerate.
13352 * configure: Likewise.
13353 * configure.ac: Add --with-zstd and --with-zstd-include options
13354 and detect ZSTD.
13355 * doc/install.texi: Mention zstd dependency.
13356 * gcc.c: Print supported LTO compression algorithms.
13357 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13358 (lto_compression_zstd): Likewise.
13359 (lto_uncompression_zstd): Likewise.
13360 (lto_end_compression): Dispatch in between zlib and zstd.
13361 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13362 (lto_uncompression_zlib): Make it static.
13363 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13364 * lto-section-in.c (lto_get_section_data): Pass info
13365 about used compression.
13366 * lto-streamer-out.c: By default use zstd when possible.
13367 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13368 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13369
13370 2019-07-03 Martin Liska <mliska@suse.cz>
13371
13372 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13373 * lto-section-out.c (lto_destroy_simple_output_block): Never
13374 compress LTO_section_lto section.
13375 * lto-streamer-out.c (produce_asm): Do not set major_version
13376 and minor_version.
13377 (lto_output_toplevel_asms): Likewise.
13378 (produce_lto_section): New function.
13379 (lto_output): Call produce_lto_section.
13380 (lto_write_mode_table): Do not set major_version and
13381 minor_version.
13382 (produce_asm_for_decls): Likewise.
13383 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13384 type.
13385 (struct lto_header): Remove.
13386 (struct lto_section): New struct.
13387 (struct lto_simple_header): Do not inherit from lto_header.
13388 (struct lto_file_decl_data): Add lto_section_header field.
13389
13390 2019-07-03 Martin Liska <mliska@suse.cz>
13391
13392 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13393 dead assignemts.
13394 * reg-stack.c (check_asm_stack_operands): Likewise.
13395 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13396 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13397 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13398 force_expand_binop.
13399
13400 2019-07-03 Martin Liska <mliska@suse.cz>
13401
13402 PR tree-optimization/90892
13403 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13404 in string constants.
13405
13406 2019-07-03 Martin Liska <mliska@suse.cz>
13407
13408 PR middle-end/90899
13409 * multiple_target.c (create_dispatcher_calls): Add to comdat
13410 group only if set for ifunc.
13411
13412 2019-07-03 Martin Liska <mliska@suse.cz>
13413
13414 PR target/88056
13415 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13416 Define local_object_name in outer scope in order to handle
13417 use-after-scope issue.
13418
13419 2019-07-03 Martin Liska <mliska@suse.cz>
13420
13421 * common.opt: Add fprofile-note.
13422 * coverage.c (coverage_init): Append the option
13423 to bbg_file_name.
13424 * doc/invoke.texi: Document -fprofile-note.
13425
13426 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13427
13428 PR tree-optimization/91033
13429 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13430 vect_analyze_data_refs): Add bool * arguments.
13431 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13432 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13433 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13434 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13435 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13436 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13437 vect_analyze_data_refs caller.
13438
13439 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13440 clause.
13441 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13442 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13443 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13444 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13445 OMP_CLAUSE__SCANTEMP_ entry.
13446 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13447 * tree-pretty-print.c (dump_omp_clause): Likewise.
13448 * tree-nested.c (convert_nonlocal_omp_clauses,
13449 convert_local_omp_clauses): Likewise.
13450 * omp-general.h (struct omp_for_data): Add have_scantemp and
13451 have_nonctrl_scantemp members.
13452 * omp-general.c (omp_extract_for_data): Initialize them.
13453 * omp-low.c (struct omp_context): Add scan_exclusive member.
13454 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13455 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13456 ctx->scan_exclusive.
13457 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13458 of !ctx->scan_inclusive.
13459 (lower_rec_input_clauses): Simplify gimplification of dtors using
13460 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13461 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13462 loops. Don't add barrier for reduction_omp_orig_ref if
13463 ctx->scan_??xclusive.
13464 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13465 (lower_omp_scan): Use ctx->scan_exclusive instead
13466 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13467 reductions. Use new_vard != new_var instead of repeated
13468 omp_is_reference calls.
13469 (omp_find_scan, lower_omp_for_scan): New functions.
13470 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13471 inscan reductions.
13472 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13473 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13474 and fd->have_scantemp.
13475
13476 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13477 on worksharing loop propagate it as shared clause to containing
13478 combined parallel.
13479
13480 * omp-expand.c (expand_omp_for_static_nochunk,
13481 expand_omp_for_static_chunk): For nowait worksharing loop with
13482 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13483 at the end.
13484
13485 2019-07-02 qing zhao <qing.zhao@oracle.com>
13486
13487 PR preprocessor/90581
13488 * doc/cppopts.texi: Add document for -fmax-include-depth.
13489 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13490
13491 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13492
13493 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13494 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13495 (mmx_packssdw): Ditto.
13496 (mmx_punpckhbw): Ditto.
13497 (mmx_punpcklbw): Ditto.
13498 (mmx_punpckhwd): Ditto.
13499 (mmx_punpcklwd): Ditto.
13500 (mmx_punpckhdq): Ditto.
13501 (mmx_punpckldq): Ditto.
13502 (*vec_dupv4hi): Ditto.
13503 (*vec_dupv2si): Ditto.
13504 (mmx_pmovmskb): Ditto.
13505 * config/i386/sse.md (sse_cvtpi2ps): Use
13506 TARGET_SSE2 && SSE_REG_P in split condition.
13507 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13508 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13509 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13510 (ssse3_pshufbv8qi3): Ditto.
13511 (ssse3_palignrdi): Ditto.
13512
13513 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13514
13515 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13516 with inlined save and restore.
13517
13518 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13519
13520 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13521 to be inserted on single successor edge of the entry block. Then call
13522 commit_edge_insertions instead of inserting the instructions manually.
13523 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13524 RTL expansion and rebuild jump labels chain.
13525
13526 2019-07-02 Richard Biener <rguenther@suse.de>
13527
13528 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13529 TI_CHREC_KNOWN.
13530 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13531 Define here.
13532 * tree.c (build_common_tree_nodes): Initialize them.
13533 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13534 Make declarations comments.
13535 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13536 chrec_known): Remove definitions.
13537 (initialize_scalar_evolutions_analyzer): Remove.
13538 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13539 * tree-streamer.c (preload_common_nodes): Do not preload
13540 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13541
13542 2019-07-02 Jan Hubicka <jh@suse.cz>
13543
13544 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13545 sanity check.
13546
13547 2019-07-02 Jan Hubicka <jh@suse.cz>
13548
13549 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13550 to ..
13551 (nonoverlapping_component_refs_since_match_p): ... this one;
13552 handle also non-decl bases; return -1 if search gave up.
13553 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13554 nonoverlapping_component_refs_of_decl_p_no_alias to
13555 nonoverlapping_component_refs_since_match_p_may_alias,
13556 nonoverlapping_component_refs_since_match_p_no_alias.
13557 (dump_alias_stats): Update dumping.
13558 (aliasing_matching_component_refs_p): Break out from ...;
13559 dispatch to nonoverlapping_component_refs_for_decl_p
13560 and nonoverlapping_component_refs_since_match_p.
13561 (aliasing_component_refs_p): ... here; call
13562 nonoverlapping_component_refs_p in scenarios where we can not
13563 precisely determine base match.
13564 (decl_refs_may_alias_p): Use
13565 nonoverlapping_component_refs_since_match_p.
13566 (indirect_ref_may_alias_decl_p): Do not call
13567 nonoverlapping_component_refs_p.
13568 (indirect_refs_may_alias_p): Likewise.
13569
13570 2019-07-02 Jan Hubicka <jh@suse.cz>
13571
13572 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13573 to clobber of return value.
13574
13575 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13576
13577 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13578 for is_neon_type instructions that have not already been categorized.
13579
13580 2019-07-02 Richard Biener <rguenther@suse.de>
13581
13582 PR tree-optimization/58483
13583 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13584 for MEM_REF base hashing.
13585 (equal_mem_array_ref_p): Likewise for base comparison.
13586
13587 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13588
13589 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13590 parameterized name.
13591 (signbit<mode>2): Use that name. Simplify.
13592
13593 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13594
13595 PR middle-end/66726
13596 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13597 Tune heuristic from PR71016 to allow MIN / MAX.
13598
13599 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13600
13601 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13602 parameterized name.
13603 (abs<mode>2): Use that name. Simplify.
13604
13605 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13606
13607 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13608 parameterized name.
13609 (neg<mode>2): Use that name. Simplify.
13610
13611 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13612
13613 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13614 name.
13615 (abs<mode>2): Use that name. Simplify.
13616
13617 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13618
13619 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13620 name.
13621 (neg<mode>2): Use that name. Simplify.
13622
13623 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13624
13625 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13626 ("enabled" attribute): Handle sse_noavx isa attribute.
13627 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13628 Use TARGET_SSE && SSE_REGNO_P in split condition.
13629 (*vec_dupv2sf): Ditto.
13630
13631 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13632
13633 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13634 name.
13635 (floatsi<mode>2): Use that name. Simplify.
13636
13637 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13638
13639 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13640 parameterized name.
13641 (extenddf<mode>2_vsx): Make this a parameterized name.
13642 (extenddf<mode>2): Use those names. Simplify.
13643
13644 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13645
13646 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13647 name.
13648 (eh_return): Use that name. Simplify.
13649
13650 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13651
13652 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13653 (doloop_end): Use that name. Simplify.
13654
13655 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13656
13657 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13658 parameterized name.
13659 (indirect_jump): Use that name. Simplify.
13660
13661 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13662
13663 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13664 parameterized name.
13665 (abs<mode>2): Use that name. Simplify.
13666
13667 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13668
13669 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13670 parameterized name.
13671 (fix_trunc<mode>si2): Use that name. Simplify.
13672
13673 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13674
13675 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13676 (allocate_stack): Use that name. Simplify.
13677
13678 2019-07-01 Martin Sebor <msebor@redhat.com>
13679
13680 PR middle-end/90923
13681 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13682 (hash_map::get_or_insert): Same. Reformat comment.
13683 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13684 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13685 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13686 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13687 (hash_table::hash_table (const hash_table&)): Use copy ctor
13688 instead of assignment to copy elements.
13689
13690 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13691 John David Anglin <danglin@gcc.gnu.org>
13692
13693 PR target/90963
13694 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13695 using saved frame pointer.
13696
13697 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13698
13699 PR middle-end/64242
13700 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13701 Add frame clobber and schedule blockage.
13702
13703 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13704
13705 * doc/invoke.texi (Link Options): Further editorial changes to
13706 -flinker-output docs.
13707
13708 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13709
13710 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13711 Load both operands of a PLUS into registers separately.
13712
13713 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13714
13715 * config/s390/vector.md: Fix shift count operand printing.
13716
13717 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13718
13719 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13720
13721 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13722
13723 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13724 Use recog_data to test for an output operand.
13725
13726 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13727
13728 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13729 exclude any others that are disparaged or that are bound to need
13730 a reload or spill.
13731 (ira_get_dup_out_num): Expand comment.
13732
13733 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13734
13735 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13736 constraint string for each operand/alternative combo. Only handle
13737 '%' at the start of constraint strings, and look for it outside
13738 the main loop.
13739
13740 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13741
13742 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13743 alternative_mask instead of HARD_REG_SET to represent a
13744 bitmask of alternatives.
13745 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13746 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13747
13748 2019-07-01 Martin Liska <mliska@suse.cz>
13749
13750 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13751 use () for a constructor call.
13752 (test_applying_fixits_line_out_of_range): Likewise.
13753 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13754 argument.
13755 (free_page): Likewise.
13756
13757 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13758
13759 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13760 parameter names to match usage (no functional change).
13761 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13762
13763 2019-07-01 Richard Biener <rguenther@suse.de>
13764
13765 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13766 pass parameter.
13767 (pass_fre::execute): Honor it.
13768 * passes.def: Adjust pass_fre invocations to allow iterating,
13769 add non-iterating pass_fre before late threading/dom.
13770
13771 2019-07-01 Richard Biener <rguenther@suse.de>
13772
13773 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13774 TARGET_MEM_REF handling to also handle address-taken ones.
13775
13776 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13777
13778 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13779 hardware attributes): Document avx512vp2intersect.
13780
13781 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13782
13783 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13784 (abs<mode>2): New expander.
13785 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13786 Use CODE_FOR_ssse3_absv8qi2.
13787 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13788 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13789
13790 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13791
13792 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13793 to sse, sse_noavx and avx. Update all uses.
13794
13795 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13796
13797 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13798 (*mmx_<plusminus_insn><mode>3): Ditto.
13799 (*mmx_mulv4hi3"): Ditto.
13800 (*mmx_smulv4hi3_highpart): Ditto.
13801 (*mmx_umulv4hi3_highpart): Ditto.
13802 (*mmx_pmaddwd): Ditto.
13803 (*sse2_umulv1siv1di3): Ditto.
13804 (*mmx_<code>v4hi3): Ditto.
13805 (*mmx_<code>v8qi3): Ditto.
13806 (mmx_ashr<mode>3): Ditto.
13807 ("mmx_<shift_insn><mode>3): Ditto.
13808 (*mmx_eq<mode>3): Ditto.
13809 (mmx_gt<mode>3): Ditto.
13810 (mmx_andnot<mode>3): Ditto.
13811 (*mmx_<code><mode>3): Ditto.
13812 (*mmx_pinsrw): Ditto.
13813 (*mmx_pextrw): Ditto.
13814 (mmx_pshufw_1): Ditto.
13815 (*mmx_uavgv8qi3): Ditto.
13816 (*mmx_uavgv4hi3): Ditto.
13817 ("mmx_psadbw): Ditto.
13818 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13819 (sse_cvttps2pi): Ditto.
13820 (ssse3_pmaddubsw): Ditto.
13821 (*ssse3_pmulhrswv4hi3): Ditto.
13822 (ssse3_psign<mode>3): Ditto.
13823
13824 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13825
13826 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13827 adjustment for bit-fields to all aggregate types.
13828
13829 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13830
13831 * config/rs6000/predicates.md (pcrel_address): Use
13832 SYMBOL_REF_LOCAL_P to determine if a label is local.
13833 (pcrel_external_address): New predicate.
13834 (non_prefixed_mem_operand): Delete, predicate not used.
13835 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13836 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13837 addressing.
13838 (SYMBOL_REF_PCREL_P): Likewise.
13839
13840 PR target/91009
13841 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13842 alternative.
13843 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13844 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13845 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13846
13847 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13848
13849 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13850 override on extra_headers.
13851
13852 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13853
13854 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13855 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13856 from warning.
13857 (darwin_driver_init): Likewise.
13858
13859 2019-06-28 Jan Beulich <jbeulich@suse.com>
13860
13861 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13862 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13863 Eliminate redundant alternative.
13864
13865 2019-06-28 Jan Beulich <jbeulich@suse.com>
13866
13867 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13868 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13869 Use vector_operand.
13870
13871 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
13872
13873 * config/arc/arc.c (arc_rtx_costs): All short instructions are
13874 having a lower cost regardless of the speed option.
13875
13876 2019-06-28 Jan Beulich <jbeulich@suse.com>
13877
13878 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13879 vector_operand plus, on both alternatives, "Bm" constraint.
13880
13881 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
13882
13883 * config/arm/arm.md: Remove redundant constraints from
13884 define_expand but leave reload_inm and reload_outm patterns
13885 untouched since they need special constraints to work.
13886 * config/arm/arm-fixed.md: Remove redundant constraints from
13887 define_expand.
13888 * config/arm/iwmmxt.md: Likewise.
13889 * config/arm/neon.md: Likewise.
13890 * config/arm/sync.md: Likewise.
13891 * config/arm/thumb1.md: Likewise.
13892 * config/arm/vec-common.md: Likewise.
13893
13894 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
13895
13896 * doc/install.texi: Document --disable-tm-clone-registry.
13897
13898 2019-06-27 Jakub Jelinek <jakub@redhat.com>
13899
13900 PR c++/91024
13901 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13902 statements.
13903
13904 PR tree-optimization/91010
13905 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13906 return true. Otherwise, don't call operand_equal_p if offset1 or
13907 offset2 is NULL and just return false.
13908
13909 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13910
13911 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13912 user-specified float mode choice for kernel mode code.
13913
13914 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13915
13916 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13917 spec.
13918
13919 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
13920
13921 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13922 use longcall for 64b code.
13923
13924 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
13925
13926 * builtins.c (get_memory_rtx): Fix comment.
13927 * optabs.def (movmem_optab): Change to cpymem_optab.
13928 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13929 (emit_block_move_hints): Change movmem to cpymem.
13930 * defaults.h: Change movmem to cpymem.
13931 * targhooks.c (get_move_ratio): Change movmem to cpymem.
13932 (default_use_by_pieces_infrastructure_p): Ditto.
13933 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13934 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13935 to cpymem.
13936 * config/aarch64/aarch64.h: Change movmem to cpymem.
13937 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13938 * config/alpha/alpha.h: Change movmem to cpymem in comment.
13939 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13940 movmem to cpymem.
13941 * config/arc/arc-protos.h: Change movmem to cpymem.
13942 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13943 * config/arc/arc.h: Change movmem to cpymem in comment.
13944 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13945 * config/arm/arm-protos.h: Change movmem to cpymem in names.
13946 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13947 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13948 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13949 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13950 * config/avr/avr-protos.h: Change movmem to cpymem.
13951 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13952 avr_out_movmem): Change movmem to cpymem.
13953 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13954 Change movmem to cpymem.
13955 * config/bfin/bfin-protos.h: Change movmem to cpymem.
13956 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13957 Change movmem to cpymem.
13958 * config/bfin/bfin.h: Change movmem to cpymem in comment.
13959 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13960 * config/c6x/c6x-protos.h: Change movmem to cpymem.
13961 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13962 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13963 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13964 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13965 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13966 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13967 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13968 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13969 expand_small_cpymem_or_setmem,
13970 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13971 expand_set_or_cpymem_constant_prologue,
13972 ix86_expand_set_or_cpymem): Change movmem to cpymem.
13973 * config/i386/i386-protos.h: Change movmem to cpymem.
13974 * config/i386/i386.h: Change movmem to cpymem in comment.
13975 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13976 (setmem<mode>): Change expansion function name.
13977 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13978 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13979 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13980 * config/m32c/m32c-protos.h: Change movmem to cpymem.
13981 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13982 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13983 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13984 to cpymem.
13985 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13986 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13987 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13988 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13989 Change movmem to cpymem.
13990 * config/mips/mips.h: Change movmem to cpymem.
13991 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13992 * config/nds32/nds32-memory-manipulation.c
13993 (nds32_expand_movmemsi_loop_unknown_size,
13994 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13995 nds32_expand_movmemsi_unroll,
13996 nds32_expand_movmemsi): Change movmem to cpymem.
13997 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13998 * config/nds32/nds32-protos.h: Change movmem to cpymem.
13999 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14000 (pa_adjust_insn_length): Change call to compute_movmem_length.
14001 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14002 movmemdi, movmemdi_prereload,
14003 movmemdi_postreload): Change movmem to cpymem.
14004 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14005 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14006 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14007 * config/riscv/riscv.h: Change movmem to cpymem.
14008 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14009 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14010 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14011 movmem to cpymem.
14012 * config/s390/s390-protos.h: Change movmem to cpymem.
14013 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14014 s390_expand_insv): Change movmem to cpymem.
14015 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14016 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14017 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14018 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14019 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14020 for nonexistent function.
14021 * config/vax/vax.h: Change movmem to cpymem in comment.
14022 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14023 * config/visium/visium.h: Change movmem to cpymem in comment.
14024 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14025 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14026 * doc/md.texi: Change movmem to cpymem and update description to match.
14027 * doc/rtl.texi: Change movmem to cpymem.
14028 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14029 * doc/tm.texi: Regenerate.
14030
14031 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14032
14033 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14034 -fvariable-expansion-in-unroller by default.
14035 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14036 default for Power.
14037
14038 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14039
14040 Revert
14041 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14042 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14043
14044 * config.gcc(rs6000-*-*): Define target_gtfiles.
14045
14046 2019-06-27 Jan Hubicka <jh@suse.cz>
14047
14048 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14049 (add_type_duplicate): When odr hash is not allocated, to nothing.
14050 (odr_based_tbaa_p): New function.
14051 (set_type_canonical_for_odr_type): New function.
14052 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14053 set_type_canonical_for_odr_type): New.
14054 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14055 ODR based TBAA are not equivalent to non-ODR types.
14056
14057 2019-06-27 Martin Liska <mliska@suse.cz>
14058
14059 PR tree-optimization/90974
14060 PR rtl-optimization/90975
14061 PR rtl-optimization/90976
14062 PR target/91016
14063 PR tree-optimization/91017
14064 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14065 unused tmp.
14066 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14067 initial commit of IRA.
14068 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14069 of op0 and op1.
14070 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14071 Remove unused mode1.
14072 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14073 to new_stmt_info.
14074
14075 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14076
14077 PR target/90991
14078 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14079 instead of register_operand for operands[1], add m to its constraints
14080 if operands[2] uses "C" constraint. Ensure in condition that if
14081 operands[2] is not 0, then operands[1] is not a MEM. For last two
14082 alternatives, use unaligned loads instead of aligned if operands[1] is
14083 misaligned_operand.
14084
14085 2019-06-27 Martin Liska <mliska@suse.cz>
14086
14087 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14088 dead assignments.
14089 * bt-load.c (move_btr_def): Likewise.
14090 * builtins.c (expand_builtin_apply_args_1): Likewise.
14091 (expand_builtin_apply): Likewise.
14092 * cfgexpand.c (expand_asm_stmt): Likewise.
14093 (construct_init_block): Likewise.
14094 * cfghooks.c (verify_flow_info): Likewise.
14095 * cfgloopmanip.c (remove_path): Likewise.
14096 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14097 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14098 * combine.c (simplify_if_then_else): Likewise.
14099 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14100 (choose_basereg): Likewise.
14101 (ix86_expand_prologue): Likewise.
14102 (ix86_preferred_output_reload_class): Likewise.
14103 * cselib.c (cselib_record_sets): Likewise.
14104 * df-scan.c (df_scan_alloc): Likewise.
14105 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14106 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14107 * emit-rtl.c (try_split): Likewise.
14108 * graphite-scop-detection.c (assign_parameter_index_in_region):
14109 Likewise.
14110 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14111 * ira-color.c (setup_profitable_hard_regs): Likewise.
14112 * ira.c (rtx_moveable_p): Likewise.
14113 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14114 * read-rtl.c (read_subst_mapping): Likewise.
14115 * regrename.c (scan_rtx): Likewise.
14116 * reorg.c (fill_slots_from_thread): Likewise.
14117 * tree-inline.c (tree_function_versioning): Likewise.
14118 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14119 * tree-ssa-sink.c (statement_sink_location): Likewise.
14120 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14121 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14122 (vect_create_epilog_for_reduction): Likewise.
14123 * tree.c (build_nonstandard_integer_type): Likewise.
14124
14125 2019-06-27 Richard Biener <rguenther@suse.de>
14126
14127 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14128
14129 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14130
14131 PR tree-optimization/89772
14132 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14133 out-of-bound accesses checking.
14134
14135 2019-06-27 Martin Liska <mliska@suse.cz>
14136
14137 PR tree-optimization/91014
14138 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14139 when LHS is NULL_TREE.
14140
14141 2019-06-27 Martin Liska <mliska@suse.cz>
14142
14143 * symbol-summary.h (traverse): Pass
14144 argument a to the call of callback.
14145 (gt_ggc_mx): Mark arguments as unused.
14146 (gt_pch_nx): Likewise.
14147
14148 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14149
14150 PR target/62147
14151 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14152 finiteness.
14153
14154 2019-06-26 Jeff Law <law@redhat.com>
14155
14156 PR tree-optimization/90883
14157 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14158 (delete_dead_or_redundant_assignment): Likewise.
14159
14160 PR tree-optimization/90883
14161 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14162 * tree-ssa-dse.c: Update various comments to distinguish between
14163 dead and redundant stores.
14164 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14165 (dse_optimize_redundant_stores): New function.
14166 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14167 Distinguish between dead and redundant calls in dump output. All
14168 callers updated.
14169 (delete_dead_or_redundant_assignment): Similarly for assignments.
14170 (dse_optimize_stmt): Handle _CHK variants. For statements which
14171 store 0 into multiple memory locations, try to prove a subsequent
14172 store is redundant.
14173
14174 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14175
14176 PR target/89021
14177 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14178 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14179
14180 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14181
14182 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14183 (branch_islands): New extern.
14184 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14185 * config/rs6000/rs6000.c: .. here.
14186
14187 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14188
14189 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14190 (powerpc*-*-*) ... to here.
14191
14192 2019-06-26 Jeff Law <law@redhat.com>
14193
14194 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14195 memcpy, memmove and memset builtins.
14196 (maybe_trim_memstar_call): Likewise.
14197
14198 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14199
14200 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14201
14202 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14203
14204 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14205
14206 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14207
14208 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14209 declaration.
14210 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14211 "static".
14212 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14213 declaration.
14214
14215 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14216
14217 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14218
14219 2019-06-26 Richard Biener <rguenther@suse.de>
14220
14221 PR ipa/90982
14222 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14223
14224 2019-06-26 Richard Biener <rguenther@suse.de>
14225
14226 * lto-streamer.h (lto_bitmap_alloc): Remove.
14227 (lto_bitmap_free): Likewise.
14228 * lto-streamer.c (lto_bitmap_alloc): Remove.
14229 (lto_bitmap_free): Likewise.
14230 (lto_obstack): Likewise.
14231 (lto_obstack_initialized): Likewise.
14232 * lto-streamer-out.c (lto_output): Use own obstack for local
14233 bitmap, free it consistently.
14234
14235 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14236
14237 PR target/90991
14238 * config/i386/sse.md
14239 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14240 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14241 insns if operands[2] is misaligned_operand.
14242
14243 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14244
14245 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14246 TARGET_POWERPC64.
14247 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14248 to GPR.
14249
14250 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14251
14252 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14253
14254 2019-06-26 Martin Liska <mliska@suse.cz>
14255
14256 PR tree-optimization/90973
14257 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14258 epilogue_cost_vec instead of prologue_cost_vec for
14259 a epilogue cost.
14260
14261 2019-06-26 Martin Liska <mliska@suse.cz>
14262
14263 * bb-reorder.c (connect_better_edge_p): Add missing else
14264 statement in the middle of if-else statements.
14265
14266 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14267 H.J. Lu <hongjiu.lu@intel.com>
14268 Olga Makhotina <olga.makhotina@intel.com>
14269
14270 * common/config/i386/i386-common.c
14271 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14272 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14273 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14274 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14275 (ix86_handle_option): Handle -mavx512vp2intersect.
14276 * config/i386/avx512vp2intersectintrin.h: New.
14277 * config/i386/avx512vp2intersectvlintrin.h: New.
14278 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14279 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14280 AVX512VP2INTERSECT.
14281 * config/i386/i386-builtin-types.def: Add new types.
14282 * config/i386/i386-builtin.def: Add new builtins.
14283 * config/i386/i386-builtins.c: (enum processor_features): Add
14284 F_AVX512VP2INTERSECT.
14285 (static const _isa_names_table isa_names_table): Ditto.
14286 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14287 __AVX512VP2INTERSECT__.
14288 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14289 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14290 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14291 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14292 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14293 * config/i386/i386-options.c (ix86_target_string): Add
14294 -mavx512vp2intersect.
14295 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14296 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14297 P2HImode and P2QImode.
14298 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14299 number for P2QImode and P2HImode.
14300 (ix86_regmode_natural_size): New function.
14301 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14302 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14303 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14304 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14305 * config/i386/i386.opt: Add -mavx512vp2intersect.
14306 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14307 avx512vp2intersectvlintrin.h.
14308 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14309 (define_mode_iterator VI48_AVX512VP2VL): New.
14310 (avx512vp2intersect_2intersect<mode>,
14311 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14312 * config.gcc: Add avx512vp2intersectvlintrin.h and
14313 avx512vp2intersectintrin.h to extra_headers.
14314 * doc/invoke.texi: Document -mavx512vp2intersect.
14315
14316 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14317
14318 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14319
14320 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14321
14322 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14323 savres_routine_syms, savres_routine_name, morestack_ref,
14324 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14325 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14326 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14327 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14328 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14329 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14330 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14331 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14332 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14333 get_stack_clash_protection_probe_interval,
14334 get_stack_clash_protection_guard_size,
14335 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14336 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14337 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14338 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14339 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14340 gen_frame_mem_offset, rs6000_savres_routine_name,
14341 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14342 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14343 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14344 rs6000_global_entry_point_prologue_needed_p,
14345 rs6000_get_separate_components, rs6000_components_for_bb,
14346 rs6000_disqualify_components, rs6000_emit_prologue_components,
14347 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14348 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14349 rs6000_output_savres_externs, rs6000_output_function_prologue,
14350 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14351 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14352 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14353 rs6000_output_function_epilogue, gen_add3_const,
14354 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14355 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14356 to rs6000-logue.c.
14357 (machine_function): Moved to rs6000.h.
14358 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14359 rs6000-internal.h.
14360 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14361 savres_routine_syms, savres_routine_name, morestack_ref,
14362 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14363 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14364 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14365 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14366 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14367 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14368 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14369 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14370 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14371 get_stack_clash_protection_probe_interval,
14372 get_stack_clash_protection_guard_size,
14373 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14374 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14375 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14376 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14377 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14378 gen_frame_mem_offset, rs6000_savres_routine_name,
14379 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14380 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14381 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14382 rs6000_global_entry_point_prologue_needed_p,
14383 rs6000_get_separate_components, rs6000_components_for_bb,
14384 rs6000_disqualify_components, rs6000_emit_prologue_components,
14385 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14386 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14387 rs6000_output_savres_externs, rs6000_output_function_prologue,
14388 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14389 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14390 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14391 rs6000_output_function_epilogue, gen_add3_const,
14392 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14393 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14394 to here from rs6000.c.
14395 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14396 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14397 quad_address_offset_p) Moved to here from rs6000.c.
14398 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14399 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14400 collector.
14401
14402 2019-06-25 Martin Liska <mliska@suse.cz>
14403
14404 * hash-table.c (hashtab_chk_error): Move here from ...
14405 * hash-table.h (hashtab_chk_error): ... here.
14406
14407 2019-06-25 Martin Liska <mliska@suse.cz>
14408
14409 PR tree-optimization/90978
14410 * df-scan.c (df_update_entry_block_defs): Remove dead else
14411 branch.
14412 (df_update_exit_block_uses): Likewise.
14413
14414 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14415 Andrew Stubbs <ams@codesourcery.com>
14416
14417 * config.gcc (thread_file): Set to gcn for AMD GCN.
14418 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14419 (TARGET_EMUTLS_VAR_INIT): New hook.
14420
14421 2019-06-25 Martin Jambor <mjambor@suse.cz>
14422
14423 PR ipa/90939
14424 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14425
14426 2019-06-25 Richard Biener <rguenther@suse.de>
14427
14428 PR tree-optimization/90930
14429 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14430 into parallel form in the last pass instance.
14431
14432 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14433
14434 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14435 (arc_legitimize_pic_address): Simplify and cleanup the function.
14436 (SYMBOLIC_CONST): Remove.
14437 (prepare_pic_move): Likewise.
14438 (prepare_move_operands): Handle complex mov cases here.
14439 (arc_legitimize_address_0): Remove call to
14440 arc_legitimize_pic_address.
14441 (arc_legitimize_address): Remove call to
14442 arc_legitimize_tls_address.
14443 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14444 (movhi_insn): Likewise.
14445
14446 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14447
14448 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14449 PTRDIFF_TYPE.
14450 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14451 format of "__intN" types for UINTMAX_TYPE.
14452 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14453 format of "__intN" types for SIZETYPE.
14454 * tree.c (build_common_tree_nodes): Accept "__intN__"
14455 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14456 * doc/invoke.texi: Document that __intN__ disables pedantic
14457 warnings.
14458
14459 2019-06-25 Jan Hubicka <jh@suse.cz>
14460
14461 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14462 base2_alias_set is non-zero before doing TBAA based disambiguation.
14463
14464 2019-06-25 Martin Liska <mliska@suse.cz>
14465
14466 PR tree-optimization/90973
14467 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14468 of prologue and epilogue.
14469
14470 2019-06-24 Jan Hubicka <jh@suse.cz>
14471
14472 * ipa-utils.h (type_with_linkage_p): Verify that type is
14473 CXX_ODR_P.
14474 (odr_type_p): Remove extra return.
14475 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14476 hash STRING_FLAG only for arrays and integers.
14477 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14478 Update analogously.
14479 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14480 Likewise.
14481 * print-tree.c (print_node): Print cxx-odr-p
14482 and string-flag.
14483 * tree.c (need_assembler_name_p): Also check that type
14484 is CXX_ODR_TYPE_P
14485 (verify_type_variant): Update verification of SRING_FLAG;
14486 also check CXX_ODR_P.
14487 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14488 (TYPE_STRING_FLAG): Use it.
14489 (TYPE_CXX_ODR_P): New macro.
14490 * dwarf2out.c (gen_array_type_die): First check that type
14491 is an array and then test string flag.
14492
14493 2019-06-24 Richard Biener <rguenther@suse.de>
14494
14495 PR tree-optimization/90972
14496 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14497 in common code, dealing with STRING_CST properly.
14498
14499 2019-06-24 Richard Biener <rguenther@suse.de>
14500
14501 PR tree-optimization/90930
14502 PR tree-optimization/90316
14503 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14504 decrement of limit.
14505
14506 2019-06-24 Martin Sebor <msebor@redhat.com>
14507
14508 * tree-pretty-print.h: Remove unnecessary punctuation characters
14509 from a diagnostic.
14510 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14511
14512 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14513
14514 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14515 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14516 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14517
14518 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14519
14520 * config/rs6000/darwin.h: Handle GCC target pragma.
14521
14522 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14523
14524 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14525
14526 2019-06-22 Jeff Law <law@redhat.com>
14527
14528 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14529
14530 2019-06-22 Jan Hubicka <jh@suse.cz>
14531
14532 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14533 give up on bitfields; continue searching for different refs
14534 appearing later.
14535
14536 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14537
14538 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14539 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14540 containing the offset as possible simd lane access. Look through
14541 widening conversion. Move the
14542 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14543
14544 2019-06-21 Richard Biener <rguenther@suse.de>
14545
14546 PR tree-optimization/90930
14547 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14548 flag on new stmts to avoid re-processing them.
14549
14550 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14551
14552 PR c++/90875 - added -Wswitch-outside-range option
14553 * doc/invoke.texi (Wswitch-outside-range): Document.
14554
14555 2019-06-21 Jeff Law <law@redhat.com>
14556
14557 PR tree-optimization/90949
14558 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14559 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14560
14561 2019-06-21 Richard Biener <rguenther@suse.de>
14562
14563 PR debug/90914
14564 * dwarf2out.c (prune_unused_types_walk): Always consider
14565 function-local extern declarations as used.
14566
14567 2019-06-21 Richard Biener <rguenther@suse.de>
14568
14569 PR tree-optimization/90913
14570 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14571 the scalar variant of if-conversion versioning.
14572
14573 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14574
14575 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14576 create another "omp scan inscan exclusive" array if
14577 !ctx->scan_inclusive.
14578 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14579 (lower_omp_scan): Likewise.
14580 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14581 2-bit bitfield for simd_lane_access_p member.
14582 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14583 aux == (void *)-4 as simd lane access.
14584 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14585 comment with permutations to show the canonical permutation order.
14586 (vectorizable_scan_store): Handle exclusive scan.
14587 (vectorizable_store): Call vectorizable_scan_store even for
14588 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14589
14590 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14591 "omp simd array" arrays with one byte elements.
14592
14593 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14594
14595 * config/alpha/alpha.md (@unaligned_store<mode>):
14596 Rename from unaligned_store<mode>.
14597 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14598 * config/alpha/sync.md (@load_locked_<mode>): Rename
14599 from load_locked_<mode>.
14600 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14601 (@atomic_compare_and_swap<mode>_1): Rename
14602 from atomic_compare_and_swap<mode>_1.
14603 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14604 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14605 Use gen_reload_in_aligned and gen_unaligned_store.
14606 (emit_load_locked): Remove.
14607 (emit_store_conditional): Ditto.
14608 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14609 (alpha_split_compare_and_swap): Ditto.
14610 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14611 (alpha_split_compare_and_swap_12): Use gen_load_locked
14612 and gen_store_conditional.
14613 (alpha_split_atomic_exchange): Ditto.
14614 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14615 (alpha_split_atomic_exchange_12): Use gen_load_locked
14616 and gen_store_conditional.
14617
14618 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14619
14620 * config/aarch64/aarch64-errata.h: New file.
14621 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14622 (CA53_ERR_843419_SPEC): Delete.
14623 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14624 * config/aarch64/aarch64-linux.h: Likewise.
14625 * config/aarch64/aarch64-netbsd.h: Likewise.
14626 * config/aarch64/aarch64-freebsd.h: Likewise.
14627
14628 2019-06-20 Marek Polacek <polacek@redhat.com>
14629
14630 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14631
14632 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14633
14634 * config/rs6000/rs6000.md (isa attribute): Add support for
14635 for a future processor.
14636
14637 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14638
14639 PR target/54855
14640 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14641 standard scalar operation pattern for V2DF.
14642 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14643 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14644 (*ieee_<ieee_maxmin><mode>3): Likewise.
14645 (vec_setv2df_0): Likewise.
14646
14647 2019-06-20 Jan Hubicka <jh@suse.cz>
14648
14649 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14650 parameter; it has no use in gimple memory model.
14651 (indirect_ref_may_alias_decl_p): Update.
14652
14653 2019-06-20 Martin Liska <mliska@suse.cz>
14654
14655 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14656 to 10.
14657
14658 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14659
14660 * tree-vect-stmts.c (enum scan_store_kind): New type.
14661 (scan_store_can_perm_p): Change last argument from int * to
14662 vec<enum scan_store_kind> *, record precisely which permutations
14663 need whole vector left shift or that plus VEC_COND_EXPR.
14664 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14665 and additional VEC_COND_EXPR only for those iterations that need it.
14666
14667 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14668
14669 * config.gcc: Fix ARM --with-fpu checking and error message.
14670
14671 2019-06-19 Marek Polacek <polacek@redhat.com>
14672
14673 PR c++/60364 - noreturn after first decl not diagnosed.
14674 * attribs.c (get_attribute_namespace): No longer static.
14675 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14676 attributes.
14677 (attr_noreturn_exclusions): Make it extern.
14678 * attribs.h (get_attribute_namespace): Declare.
14679 * tree-inline.c (function_attribute_inlinable_p): Use
14680 get_attribute_name.
14681
14682 2019-06-19 Martin Sebor <msebor@redhat.com>
14683
14684 PR tree-optimization/90626
14685 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14686
14687 PR tree-optimization/90626
14688 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14689 (handle_builtin_string_cmp): Call it.
14690
14691 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14692
14693 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14694 and DARWIN_NOPIE_SPEC.
14695 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14696 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14697 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14698 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14699 (DARWIN_EXPORT_DYNAMIC): Delete.
14700 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14701 and pie options processing to darwin.h.
14702 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14703
14704 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14705
14706 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14707 in computing the number of options to be moved.
14708
14709 2019-06-19 Maya Rashish <coypu@sdf.org>
14710
14711 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14712 (CLEAR_INSN_CACHE) Use it.
14713
14714 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14715
14716 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14717
14718 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14719
14720 PR middle-end/84521
14721 * builtins.c (expand_builtin_setjmp_setup): Save
14722 hard_frame_pointer_rtx.
14723 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14724 restore fp.
14725 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14726 non-local goto.
14727 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14728 elimination code.
14729 (remove_reg_equal_offset_note): Remove unused function.
14730 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14731 code.
14732 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14733 (arc_builtin_setjmp_frame_value): Remove function.
14734 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14735 (avr_builtin_setjmp_frame_value): Remove function.
14736 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14737 (ix86_builtin_setjmp_frame_value): Remove function.
14738 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14739 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14740 (sparc_builtin_setjmp_frame_value): Remove function.
14741 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14742 (vax_builtin_setjmp_frame_value): Remove function.
14743 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14744 pointer if has_nonlocal_label.
14745
14746 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14747
14748 * doc/md.texi: Document vec_shl_<mode> pattern.
14749 * optabs.def (vec_shl_optab): New optab.
14750 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14751 argument, if == vec_shl_optab, check for left whole vector shift
14752 pattern rather than right shift.
14753 (expand_vec_perm_const): Add vec_shl_optab support.
14754 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14755 in the comment.
14756 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14757 can be handled by vec_shl_optab.
14758 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14759 (check_scan_store): Use it.
14760 (vectorizable_scan_store): If target can't do normal permutations,
14761 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14762 after it.
14763 * config/i386/sse.md (vec_shl_<mode>): New expander.
14764
14765 * omp-low.c (lower_rec_input_clauses): Handle references properly
14766 in inscan clauses.
14767 (lower_omp_scan): Likewise.
14768
14769 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14770
14771 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14772 mem_mode is BLKmode.
14773
14774 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14775
14776 PR target/90922
14777 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14778 pointer adjustment for the case of no callee-saved registers and
14779 stack frame bigger than 128 bytes.
14780
14781 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14782
14783 PR middle-end/90862
14784 * omp-low.c (check_omp_nesting_restrictions): Handle
14785 GF_OMP_TARGET_KIND_OACC_DECLARE.
14786
14787 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14788
14789 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14790 (@add<mode>3_carry): Rename from add<mode>3_carry.
14791 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14792 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14793 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14794 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14795 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14796 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14797 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14798 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14799 (cmpstrnsi): Use gen_cmp_1.
14800 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14801 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14802 (@umonitor_<mode>): Rename from umonitor_<mode>.
14803 * config/i386/i386-expand.c (ix86_expand_copysign):
14804 Use gen_copysign3_const and gen_copysign3_var.
14805 (ix86_expand_xorsign): Use gen_xorsign3_1.
14806 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14807 gen_sub3_carry_ccgz and gen_cmp1.
14808 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14809 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14810 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14811 (ix86_split_lshr): Ditto.
14812 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14813
14814 2019-06-18 Jason Merrill <jason@redhat.com>
14815
14816 * tree.c (build_constructor): Add MEM_STAT_DECL.
14817
14818 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14819
14820 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14821 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14822 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14823 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14824 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14825 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14826 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14827 Use CC_NZC instead of CC.
14828 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14829 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14830 (aarch64_print_operand): Handle E_CC_NZCmode.
14831 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14832 of gen_set_clobber_cc.
14833
14834 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14835
14836 * config/aarch64/aarch64-sve.md: Tabify file.
14837
14838 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14839
14840 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14841 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14842 * config/aarch64/aarch64-sve.md: Use it.
14843
14844 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14845
14846 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14847 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14848 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14849 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14850 (aarch64_expand_sve_vec_cmp_int): Use it.
14851 (aarch64_expand_sve_vec_cmp_float): Likewise.
14852 * config/aarch64/aarch64-sve.md: Likewise throughout.
14853
14854 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14855 Kugan Vivekanandarajah <kuganv@linaro.org>
14856
14857 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14858 (*cond_<optab><mode>_z): Fold into...
14859 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14860 operand 4 can be tied to operand 0 (either inherently or via RA).
14861
14862 2019-06-18 Richard Biener <rguenther@suse.de>
14863
14864 PR debug/90900
14865 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14866 as if optimized away.
14867
14868 2019-06-18 Tom de Vries <tdevries@suse.de>
14869
14870 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14871 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14872 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14873 Rename to ...
14874 (define_insn "@set_softstack_<mode>"): ... this.
14875 (define_insn "omp_simt_enter_<mode>"): Rename to ...
14876 (define_insn "@omp_simt_enter_<mode>"): ... this.
14877 (define_insn "omp_simt_exit_<mode>"): Rename to ...
14878 (define_insn "@omp_simt_exit_<mode>"): ... this.
14879
14880 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14881
14882 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14883 vf parameter. Restore the previous iv step of nscalars_step,
14884 but give it iv_type rather than compare_type. Tweak code order
14885 to match the comments.
14886 (vect_set_loop_condition_masked): Update accordingly.
14887 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14888 for iv_precision. Tweak comment formatting.
14889
14890 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14891
14892 * config/darwin.c: Strip trailing whitespace.
14893
14894 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
14895
14896 * config/darwin.c (darwin_emit_unwind_label): New default to false.
14897 (darwin_override_options): Set darwin_emit_unwind_label as needed.
14898
14899 2019-06-18 Martin Jambor <mjambor@suse.cz>
14900
14901 PR ipa/90889
14902 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14903 caller does not have flag_ipa_cp set.
14904
14905 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14906
14907 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14908 from "*fold_left_plus_<mode>", updated operands order.
14909 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14910 * internal-fn.c (mask_fold_left_direct): New define.
14911 (expand_mask_fold_left_optab_fn): Likewise.
14912 (direct_mask_fold_left_optab_supported_p): Likewise.
14913 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14914 * optabs.def (mask_fold_left_plus_optab): New optab.
14915 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14916 masked internal_fn for a reduction ifn.
14917 (vectorize_fold_left_reduction): Add support for masking reductions.
14918
14919 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
14920
14921 PR middle-end/80791
14922 * target.def (predict_doloop_p): New hook.
14923 * targhooks.h (default_predict_doloop_p): New declaration.
14924 * targhooks.c (default_predict_doloop_p): New function.
14925 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14926 * doc/tm.texi: Regenerate.
14927 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14928 (TARGET_PREDICT_DOLOOP_P): New macro.
14929 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14930
14931 2019-06-17 Jakub Jelinek <jakub@redhat.com>
14932
14933 * omp-low.c (struct omp_context): Add scan_inclusive field.
14934 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14935 if inclusive scan.
14936 (struct omplow_simd_context): Add lastlane member.
14937 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14938 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14939 1 or 2 argument.
14940 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14941 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14942 (lower_omp_scan): New function.
14943 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14944 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14945 check 3rd argument if present rather than 2nd.
14946 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14947 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14948 2-bit bitfield.
14949 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14950 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14951 than 2nd.
14952 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14953 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14954 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14955 init.
14956 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14957 IFN_GOMP_SIMD_LANE argument.
14958 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14959 encoded ->aux value.
14960 * tree-vect-stmts.c: Include attribs.h.
14961 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14962 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14963 functions.
14964 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14965 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14966
14967 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
14968
14969 PR target/62055
14970 * config/i386/i386.md (*nabstf2_1): New insn pattern.
14971 (*nabs<mode>2_1): Ditto.
14972 (nabs sse-reg splitter): New splitter.
14973 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14974
14975 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
14976
14977 PR bootstrap/90873.
14978 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14979 TMR index check.
14980
14981 2019-06-17 Tom de Vries <tdevries@suse.de>
14982
14983 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14984 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14985 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14986 ...
14987 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
14988 match_operand 0.
14989 (define_insn "omp_simt_enter_insn"): Rename to ...
14990 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
14991 match_operand 0, 1 and 2, as well as the unspec_volatile result.
14992 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14993 gen_omp_simt_enter_si.
14994 (define_expand "omp_simt_exit"): New.
14995 (define_insn "omp_simt_exit"): Rename to ...
14996 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
14997 match_operand 0.
14998
14999 2019-06-17 Matthew Green <mrg@eterna.com.au>
15000 Maya Rashish <coypu@sdf.org>
15001
15002 * config.gcc (aarch64*-*-netbsd*): New target.
15003 * config/aarch64/aarch64-netbsd.h: New file.
15004 * config/aarch64/t-aarch64-netbsd: Likewise.
15005
15006 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15007
15008 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15009 the access path from base to first VIEW_CONVERT_EXPR or
15010 BIT_FIELD_REF.
15011
15012 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15013
15014 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15015 access path on BIT_FIELD_REFs.
15016
15017 2019-06-17 Martin Liska <mliska@suse.cz>
15018
15019 PR ipa/90874
15020 * ipa-utils.h (odr_type_p): Remove dead code.
15021
15022 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15023
15024 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15025 alternative Solaris 11.4 format.
15026 * configure: Regenerate.
15027
15028 2019-06-17 Tom de Vries <tdevries@suse.de>
15029
15030 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15031 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15032 match_operand 0.
15033 (define_insn "call_value_insn"): Rename to ...
15034 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15035 match_operand 0.
15036 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15037 DI.
15038
15039 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15040
15041 PR middle-end/64242
15042 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15043 frame clobbers and schedule block.
15044 (builtin_longjmp): Likewise.
15045
15046 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15047
15048 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15049 describe how to perform MSPABI compliant 64-bit shift.
15050 * config/msp430/msp430.md (ashldi3): New define_expand.
15051 (ashrdi3): New define_expand.
15052 (lshrdi3): New define_expand.
15053
15054 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15055
15056 * doc/sourcebuild.texi: Document new effective target keyword
15057 longlong64.
15058
15059 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15060
15061 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15062 indirect_refs_may_alias_p): Revert accidental commits.
15063
15064 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15065 at the end of structures.
15066
15067 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15068
15069 * config/darwin.c (machopic_indirect_call_target): Use renamed
15070 darwin_picsymbol_stubs to decide on output.
15071 (darwin_override_options): Handle darwin_picsymbol_stubs.
15072 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15073 (LD64_VERSION): Revise default.
15074 * config/darwin.opt: (mpic-symbol-stubs): New option.
15075 (darwin_picsymbol_stubs): New variable.
15076 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15077 rename to TARGET_MACHO_PICSYM_STUBS.
15078 * config/i386/i386.c (output_pic_addr_const): Likewise.
15079 * config/i386/i386.h Likewise.
15080 * config/rs6000/darwin.h: Likewise.
15081 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15082 darwin_picsymbol_stubs.
15083
15084 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15085
15086 * config/darwin.opt (prebind, noprebind, seglinkedit,
15087 noseglinkedit): Add RejectNegative.
15088
15089 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15090
15091 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15092 in my previous patch.
15093
15094 2019-06-16 Tom de Vries <tdevries@suse.de>
15095
15096 PR tree-optimization/89376
15097 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15098
15099 2019-06-15 Maya Rashish <coypu@sdf.org>
15100
15101 * doc/invoke.texi (Spec Files): Update location of the
15102 Fortran spec file.
15103
15104 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15105
15106 * doc/extend.texi (Common Function Attributes): Clarify
15107 no_sanitize. Fix grammar.
15108
15109 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15110
15111 * tree-ssa-alias.c (alias_stats): Add
15112 nonoverlapping_component_refs_p_may_alias,
15113 nonoverlapping_component_refs_p_no_alias,
15114 nonoverlapping_component_refs_of_decl_p_may_alias,
15115 nonoverlapping_component_refs_of_decl_p_no_alias.
15116 (dump_alias_stats): Dump them.
15117 (nonoverlapping_component_refs_of_decl_p): Add stats.
15118 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15119 ARRAY_REF.
15120
15121 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15122
15123 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15124 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15125 only.
15126 (*anddi3_doubleword): Split before reload. Merge with
15127 anddi->zext pre-reload splitter.
15128 (*andndi3_doubleword): Split before reload.
15129 (*<code>di3_doubleword): Ditto.
15130 (*one_cmpldi2_doubleword): Ditto.
15131
15132 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15133
15134 PR middle-end/90779
15135 * gimplify.c: Include omp-offload.h and context.h.
15136 (gimplify_bind_expr): Add "omp declare target" attributes
15137 to static block scope variables inside of target region or target
15138 functions.
15139
15140 2019-06-15 Tom de Vries <tdevries@suse.de>
15141
15142 PR tree-optimization/90009
15143 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15144 Return NULL if bb contains IFN_UNIQUE.
15145
15146 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15147
15148 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15149 (un): New define_mode_attr.
15150 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15151 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15152 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15153 merge into ...
15154 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15155
15156 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15157
15158 * config/darwin.opt: Add RejectNegative where needed, reorder
15159 and add minimal functional descriptions.
15160
15161 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15162
15163 PR rtl-optimization/90765
15164 * calls.c (update_stack_alignment_for_call): New function.
15165 (expand_call): Call update_stack_alignment_for_call when
15166 outgoing parameter is passed in the stack.
15167 (emit_library_call_value_1): Likewise.
15168 * function.c (locate_and_pad_parm): Don't update
15169 stack_alignment_needed and preferred_stack_boundary.
15170
15171 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15172
15173 PR target/90877
15174 * config/i386/i386-features.c
15175 (dimode_scalar_chain::compute_convert_gain): Replace
15176 mmxsse_to_integer with sse_to_integer.
15177 * config/i386/i386.c (ix86_register_move_cost): Verify that
15178 moves between MMX and non-MMX units require secondary memory.
15179 Correct costs of moves between SSE and integer units.
15180 * config/i386/i386.h (processor_costs): Rename cost of moving
15181 SSE register to integer to sse_to_integer. Rename cost of
15182
15183 2019-06-14 Matt Thomas <matt@3am-software.com>
15184 Matthew Green <mrg@eterna.com.au>
15185 Nick Hudson <skrll@netbsd.org>
15186 Maya Rashish <coypu@sdf.org>
15187 Richard Earnshaw <rearnsha@arm.com>
15188
15189 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15190 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15191 * config/arm/netbsd-eabi.h: New file.
15192 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15193 redefining.
15194 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15195 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15196 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15197 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15198
15199 2019-06-14 Richard Biener <rguenther@suse.de>
15200
15201 * tree-loop-distribution.c (classify_partition): Return
15202 whether a reduction appeared in all partitions and do not
15203 stop builtin detection because of this.
15204 (distribute_loop): Sort a non-builtin partition last if
15205 there's a reduction in all partitions and make sure the
15206 partition prevailing as last is not a builtin.
15207
15208 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15209
15210 PR ipa/90401
15211 * ipa-prop.c (add_to_agg_contents_list): New function.
15212 (clobber_by_agg_contents_list_p): Likewise.
15213 (extract_mem_content): Likewise.
15214 (get_place_in_agg_contents_list): Delete.
15215 (determine_known_aggregate_parts): Renamed from
15216 determine_locally_known_aggregate_parts. New parameter
15217 aa_walk_budget_p.
15218
15219 2019-06-13 Martin Sebor <msebor@redhat.com>
15220
15221 PR tree-optimization/90662
15222 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15223 to the same type.
15224
15225 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15226
15227 PR bootstrap/90873
15228 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15229 dbase is not TARGET_MEM_REF.
15230
15231 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15232
15233 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15234 Update all uses.
15235 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15236 Do not generate DImode extends for 32bit targets.
15237 (and->zext post-reload splitter): Use gen_extend_insn
15238 instead of indirect functions.
15239 (anddi->zext pre-reload splitter): New.
15240 (*zext<mode>_doubleword_and): Remove.
15241 (*zext<mode>_doubleword): Ditto.
15242 (*zextsi_doubleword): Dittto.
15243
15244 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15245
15246 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15247 Use gen_sub3_insn instead of indirect function.
15248 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15249 indirect function.
15250 (ix86_adjust_counter): Ditto.
15251
15252 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15253 Lijia He <helijia@linux.ibm.com>
15254
15255 PR tree-optimization/77820
15256 * tree-ssa-threadedge.c
15257 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15258 function.
15259 (thread_across_edge): Add call to
15260 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15261
15262 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15263
15264 * config/darwin-driver.c (validate_macosx_version_min): New.
15265 (darwin_default_min_version): Cleanup and validate supplied version.
15266 (darwin_driver_init): Likewise and push cleaned version into opts.
15267
15268 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15269
15270 PR tree-optimization/90869
15271 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15272 converts in MEM_REF referencing decl rather than view converts
15273 from decl type to MEM_REF type.
15274
15275 2019-06-13 Richard Biener <rguenther@suse.de>
15276
15277 PR tree-optimization/90856
15278 * tree-sra.c (build_ref_for_model): Only use
15279 build_reconstructed_reference when address-spaces are the same.
15280
15281 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15282
15283 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15284 wrap ei variable name in the declaration in ()s.
15285 (nvptx_single): Actually use mode_label variable. Formatting fix.
15286
15287 2019-06-13 Richard Biener <rguenther@suse.de>
15288
15289 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15290 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15291 also return the condition stmt.
15292 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15293 loop we can version and version that, reusing the loop version
15294 created by if-conversion instead of versioning again.
15295
15296 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15297
15298 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15299 may_contain_p.
15300 * tree-vrp (value_range_base::may_contain_p): Call into
15301 value_inside_range.
15302 (value_inside_range): Make private inside value_range_base class.
15303 Take min/max from *this.
15304 (range_includes_p): Remove.
15305 * tree-vrp.h (value_range_base): Add value_inside_range.
15306 (range_includes_p): Remove.
15307 (range_includes_zero_p): Call may_contain_p.
15308 * vr-values.c (compare_range_with_value): Same.
15309
15310 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15311
15312 * doc/extend.texi (ARC Function Attributes): Update info.
15313
15314 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15315
15316 PR tree-optimization/89713
15317 * doc/invoke.texi (-ffinite-loops): Document new option.
15318 * common.opt (-ffinite-loops): New option.
15319 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15320 IFN_GOACC_LOOP calls as necessary.
15321 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15322 is finite.
15323 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15324 IFN_GOACC_LOOP call is not used.
15325 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15326
15327 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15328
15329 PR target/88838
15330 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15331 compare_type is not with Pmode size, we will create an IV with
15332 Pmode size with truncated use (i.e. converted to the correct type).
15333 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15334 (vect_iv_limit_for_full_masking): New. Factored out of
15335 vect_set_loop_condition_masked.
15336 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15337 (vect_iv_limit_for_full_masking): Declare.
15338
15339 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15340
15341 PR target/88834
15342 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15343 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15344 (get_alias_ptr_type_for_ptr_address): Likewise.
15345 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15346 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15347 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15348 allow_reg_index_p.
15349
15350 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15351
15352 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15353
15354 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15355
15356 * common/config/pru/pru-common.c: New file.
15357 * config.gcc: Add PRU target.
15358 * config/pru/alu-zext.md: New file.
15359 * config/pru/constraints.md: New file.
15360 * config/pru/predicates.md: New file.
15361 * config/pru/pru-opts.h: New file.
15362 * config/pru/pru-passes.c: New file.
15363 * config/pru/pru-pragma.c: New file.
15364 * config/pru/pru-protos.h: New file.
15365 * config/pru/pru.c: New file.
15366 * config/pru/pru.h: New file.
15367 * config/pru/pru.md: New file.
15368 * config/pru/pru.opt: New file.
15369 * config/pru/t-pru: New file.
15370 * doc/extend.texi: Document PRU pragmas.
15371 * doc/invoke.texi: Document PRU-specific options.
15372 * doc/md.texi: Document PRU asm constraints.
15373
15374 2019-06-12 Martin Sebor <msebor@redhat.com>
15375
15376 PR middle-end/90676
15377 * tree-pretty-print.c (dump_mem_ref): New function. Include
15378 MEM_REF type in output when different size than operand.
15379 (dump_generic_node): Move code to dump_mem_ref and call it.
15380
15381 2019-06-12 Martin Sebor <msebor@redhat.com>
15382
15383 PR tree-optimization/90662
15384 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15385 to arrays.
15386
15387 2019-06-12 Tom de Vries <tdevries@suse.de>
15388
15389 PR tree-optimization/90009
15390 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15391
15392 2019-06-12 Martin Liska <mliska@suse.cz>
15393
15394 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15395 the created map.
15396 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15397 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15398 Do not sanitize created maps.
15399
15400 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15401
15402 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15403 value_range::singleton_p.
15404 * tree-vrp.c (value_range_constant_singleton): Remove.
15405 * tree-vrp.h (value_range_constant_singleton): Remove.
15406 * vr-values.c (vr_values::singleton): Use
15407 value_range::singleton_p.
15408
15409 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15410
15411 PR target/90811
15412 * cfgexpand.c (align_local_variable): Add really_expand argument,
15413 don't SET_DECL_ALIGN if it is false.
15414 (add_stack_var): Add really_expand argument, pass it through to
15415 align_local_variable.
15416 (expand_one_stack_var_1): Pass true as really_expand to
15417 align_local_variable.
15418 (expand_one_ssa_partition): Pass true as really_expand to
15419 add_stack_var.
15420 (expand_one_var): Pass really_expand through to add_stack_var.
15421
15422 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15423
15424 * config/arm/iterators.md (VABAL): New int iterator.
15425 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15426 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15427 UNSPEC_VABAL_U values.
15428
15429 2019-06-12 Martin Liska <mliska@suse.cz>
15430
15431 * value-prof.c (stream_out_histogram_value): Only first value
15432 can't be negative.
15433
15434 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15435
15436 PR c/90760
15437 * symtab.c (symtab_node::set_section): Allow being called on aliases
15438 as long as they aren't analyzed yet.
15439
15440 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15441
15442 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15443 to `mips_set_text_contents_type' to indicate whether a
15444 non-debug insn follows.
15445
15446 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15447
15448 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15449 enabling -mpcrel by default.
15450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15451 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15452 that the test against -mcpu=future is done first. Then test if
15453 -mprefixed-addr is on for -mpcrel.
15454 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15455
15456 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15457
15458 PR target/90811
15459 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15460 instead of and.u%d.
15461
15462 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15463
15464 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15465
15466 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15467
15468 PR c++/90449 - add -Winaccessible-base option.
15469 * doc/invoke.texi (Winaccessible-base): Document.
15470
15471 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15472
15473 PR tree-optimization/62041
15474 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15475
15476 2019-06-11 Jason Merrill <jason@redhat.com>
15477
15478 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15479 * tree.c (get_tree_code_name): Likewise.
15480 * print-tree.c (print_node): Only briefly print a node with an
15481 invalid code.
15482
15483 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15484
15485 PR bootstrap/90819
15486 * trans-mem.c (tm_memopt_compute_available): Add assertion
15487 that blocks is not empty. Formatting fix.
15488
15489 2019-06-11 Martin Liska <mliska@suse.cz>
15490
15491 PR c++/87847
15492 * hash-table.h: Extend create_gcc, add one parameter
15493 that is passed into hash_table::hash_table.
15494
15495 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15496
15497 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15498 New prototype.
15499 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15500 Emit clobber also for non-sse operations.
15501 (ix86_split_fp_absneg_operator): New function.
15502 * config/i386/i386.md (SSEMODEF): New mode iterator.
15503 (ssevecmodef): New mode attribute.
15504 (<code>tf2): Use absneg code iterator.
15505 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15506 Add three-operand AVX alternatives.
15507 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15508 Use absneg code iterator and X87MODEF mode iterator.
15509 (absneg fp_reg non-sse splitter): Call absneg code iterator
15510 and X87MODEF mode iterator.
15511 (absneg general_reg non-sse splitter): Use absneg code iterator
15512 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15513 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15514 code iterator. Add three-operand AVX alternative.
15515 (absneg sse_reg splitter): Use absneg code iterator
15516 and SSEMODEF mode iterator. Handle AVX operands.
15517 (absneg fp_reg splitter): Use absneg code iterator
15518 and MODEF mode iterator.
15519 (absneg general_reg splitter): Merge splitters using MODEF mode
15520 iterator. Use absneg code iterator. Call
15521 ix86_split_fp_absneg_operator.
15522 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15523 Do not enable for non-sse modes before reload.
15524 (CSGNMODE): Remove.
15525 (CSGNVMODE): Ditto.
15526 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15527 ssevecmodef mode attribute instaed of CSGNVMODE.
15528 (copysign<mode>3_const): Ditto.
15529 (copysign<mode>3_var): Ditto.
15530 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15531 Use absneg code iterator. Simplify code using std::swap.
15532 * config/i386/predicates.md (absneg_operator): Remove.
15533
15534 2019-06-10 Martin Sebor <msebor@redhat.com>
15535
15536 * gimple-fold.c (get_range_strlen): Update comment that didn't
15537 make it into r267503 or related commits.
15538
15539 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15540
15541 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15542 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15543
15544 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15545
15546 * tree.def (OMP_SCAN): New tree code.
15547 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15548 OMP_CLAUSE_EXCLUSIVE.
15549 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15550 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15551 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15552 OMP_CLAUSE_{IN,EX}CLUSIVE.
15553 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15554 * tree-nested.c (convert_nonlocal_reference_stmt,
15555 convert_local_reference_stmt, convert_gimple_call): Handle
15556 GIMPLE_OMP_SCAN.
15557 * tree-pretty-print.c (dump_omp_clause): Handle
15558 OMP_CLAUSE_{IN,EX}CLUSIVE.
15559 (dump_generic_node): Handle OMP_SCAN.
15560 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15561 * gimple.h (gomp_scan): New type.
15562 (is_a_helper <gomp_scan *>::test,
15563 is_a_helper <const gomp_scan *>::test): New templates.
15564 (gimple_build_omp_scan): Declare.
15565 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15566 gimple_omp_scan_set_clauses): New inline functions.
15567 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15568 * gimple.c (gimple_build_omp_scan): New function.
15569 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15570 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15571 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15572 GIMPLE_OMP_TASKGROUP.
15573 (dump_gimple_omp_scan): New function.
15574 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15575 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15576 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15577 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15578 (is_gimple_stmt): Handle OMP_SCAN.
15579 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15580 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15581 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15582 mentioned in nested #pragma omp scan. Handle
15583 OMP_CLAUSE_{IN,EX}CLUSIVE.
15584 (gimplify_expr): Handle OMP_SCAN.
15585 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15586 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15587 simd constructs.
15588 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15589 GIMPLE_OMP_SCAN.
15590
15591 2019-06-10 Martin Liska <mliska@suse.cz>
15592
15593 * ipa-cp.c (ignore_edge_p): New function.
15594 (build_toporder_info): Use it.
15595 * ipa-inline.c (ignore_edge_p): New function.
15596 (inline_small_functions): Use it.
15597 * ipa-pure-const.c (ignore_edge_for_nothrow):
15598 Verify opt_for_fn for caller and callee.
15599 (ignore_edge_for_pure_const): Likewise.
15600 * ipa-reference.c (ignore_edge_p): Extend to check
15601 for opt_for_fn.
15602 * ipa-utils.c (searchc): Refactor.
15603 * ipa-utils.h: Fix coding style.
15604
15605 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15606
15607 * config/arc/arc.c (arc_rtx_costs): Update costs.
15608
15609 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15610
15611 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15612 (arc_split_ior): Likewise.
15613 (arc_check_mov_const): Likewise.
15614 (arc_split_mov_const): Likewise.
15615 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15616 (arc_rtx_costs): Replace check Crr with Cax constraint.
15617 (prepare_move_operands): Cleanup, remove unused code.
15618 (arc_split_ior): New function.
15619 (arc_check_ior_const): Likewise.
15620 (arc_split_mov_const): Likewise.
15621 (arc_check_mov_const): Likewise.
15622 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15623 in define_insn_and_split pattern.
15624 (iorsi3): Likewise.
15625 (mulsi3_v2): Add new matching variant.
15626 (andsi3_i): Cleanup pattern.
15627 (rotrsi3_cnt1): Update pattern.
15628 (rotrsi3_cnt8): New pattern.
15629 (ashlsi2_cnt8): Likewise.
15630 (ashlsi2_cnt16): Likewise.
15631 * config/arc/constraints.md (C0p): Update constraint.
15632 (Crr): Remove it.
15633 (C0x): New pattern.
15634 (Cax): New pattern.
15635
15636 2019-06-10 Martin Liska <mliska@suse.cz>
15637
15638 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15639 Update coding style.
15640 (sem_item_optimizer::dump_cong_classes):
15641 Print how many items are in a non-singular class. Improve
15642 coding style.
15643
15644 2019-06-10 Martin Liska <mliska@suse.cz>
15645
15646 * value-prof.c (dump_histogram_value): Change dump format.
15647 (gimple_mod_subtract_transform): Remove legacy comment.
15648
15649 2019-06-10 Martin Liska <mliska@suse.cz>
15650
15651 * value-prof.c (dump_histogram_value): Print histogram values
15652 only if present.
15653
15654 2019-06-10 Martin Liska <mliska@suse.cz>
15655
15656 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15657 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15658 * ipa-profile.c (ipa_profile_generate_summary):
15659 Use get_most_common_single_value.
15660 * tree-profile.c (gimple_init_gcov_profiler):
15661 Instrument with __gcov_one_value_profiler_v2
15662 and __gcov_indirect_call_profiler_v4.
15663 * value-prof.c (dump_histogram_value):
15664 Print all values for HIST_TYPE_SINGLE_VALUE.
15665 (stream_out_histogram_value): Update assert for
15666 N values.
15667 (stream_in_histogram_value): Set number of
15668 counters for HIST_TYPE_SINGLE_VALUE.
15669 (get_most_common_single_value): New.
15670 (gimple_divmod_fixed_value_transform):
15671 Use get_most_common_single_value.
15672 (gimple_ic_transform): Likewise.
15673 (gimple_stringops_transform): Likewise.
15674 (gimple_find_values_to_profile): Set number
15675 of counters for HIST_TYPE_SINGLE_VALUE.
15676 * value-prof.h (get_most_common_single_value): New.
15677
15678 2019-06-10 Martin Liska <mliska@suse.cz>
15679
15680 * hash-map.h: Pass default value to hash_table ctor.
15681 * hash-table.h: Add default value to call of a ctor.
15682
15683 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15684
15685 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15686 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15687
15688 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15689
15690 PR target/90751
15691 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15692 Call pa_output_function_label.
15693 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15694 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15695 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15696 to declaration.
15697 (pa_linux_output_function_prologue): Declare.
15698 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15699 (pa_output_function_label): New.
15700 (pa_output_function_prologue): Revise to use pa_output_function_label.
15701 (pa_linux_output_function_prologue): New.
15702 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15703
15704 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15705
15706 * tree-vrp.h (value_range_base::intersect): New.
15707 (value_range::intersect_helper): Move from here...
15708 (value_range_base::intersect_helper): ...to here.
15709 * tree-vrp.c (value_range::intersect_helper): Rename to...
15710 (value_range_base::intersect_helper): ...this, and rewrite to
15711 return a value instead of modifying THIS in place.
15712 Also, move equivalence handling...
15713 (value_range::intersect): ...here, while calling intersect_helper.
15714 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15715 calling intersect.
15716 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15717 Same.
15718 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15719
15720 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15721
15722 * Makefile.in (genprogerr): Add condmd.
15723 (genprog): Remove it here.
15724
15725 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15726
15727 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15728
15729 2019-06-07 Richard Biener <rguenther@suse.de>
15730
15731 PR debug/90574
15732 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15733 that appear after user labels.
15734
15735 2019-06-07 Martin Liska <mliska@suse.cz>
15736
15737 * cselib.c (cselib_init): Disable hash table
15738 sanitization.
15739 * hash-set.h: Pass new default argument to m_table.
15740 * hash-table.c: Add global variable with hash table
15741 sanitization limit.
15742 * hash-table.h (Allocator>::hash_table): Add new argument
15743 to ctor.
15744 (hashtab_chk_error): New.
15745 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15746 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15747 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15748
15749 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15750
15751 * common.opt (flto-odr-type-merging): Ignore.
15752 * invoke.texi (-flto-odr-type-merging): Remove.
15753 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15754 (can_be_vtable_hashed_p): Remove.
15755 (hash_odr_vtable): Remove.
15756 (odr_vtable_hasher::hash): Remove.
15757 (types_same_for_odr): Remove.
15758 (types_odr_comparable): Remove.
15759 (odr_vtable_hasher::equal): Remove.
15760 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15761 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15762 (get_odr_type): Do not use vtable hash.
15763 (dump_odr_type): Remove commented out code.
15764 (build_type_inheritance_graph): Do not allocate vtable hash.
15765 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15766 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15767 (odr_type_p): Likewise.
15768 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15769 test.
15770
15771 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15772
15773 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15774 immediately after same_types_for_tbaa_p returns -1 and continue
15775 looking for possible exact match; if matching types are arrays
15776 watch for partial overlaps.
15777 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15778 (indirect_refs_may_alias_p): Do type based disambiguation first;
15779 update comment.
15780
15781 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15782
15783 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15784
15785 2019-06-07 Martin Liska <mliska@suse.cz>
15786
15787 * doc/invoke.texi: Remove param.
15788 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15789 Remove.
15790 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15791 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15792 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15793 * profile.c (instrument_values): Remove
15794 HIST_TYPE_INDIR_CALL_TOPN.
15795 * tree-profile.c (init_ic_make_global_vars):
15796 Always build __gcov_indirect_call only.
15797 (gimple_init_gcov_profiler): Remove usage
15798 of PARAM_INDIR_CALL_TOPN_PROFILE.
15799 (gimple_gen_ic_profiler): Likewise.
15800 * value-prof.c (dump_histogram_value): Likewise.
15801 (stream_in_histogram_value): Likewise.
15802 (gimple_indirect_call_to_profile): Likewise.
15803 (gimple_find_values_to_profile): Likewise.
15804 * value-prof.h (enum hist_type): Likewise.
15805
15806 2019-06-07 Martin Liska <mliska@suse.cz>
15807
15808 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15809 function.
15810
15811 2019-06-07 Martin Liska <mliska@suse.cz>
15812
15813 PR tree-optimization/78902
15814 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15815 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15816 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15817 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15818 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15819 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15820 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15821 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15822 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15823 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15824 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15825 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15826 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15827 New.
15828 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15829 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15830 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15831 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15832 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15833 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15834 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15835 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15836 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15837 warn_unused_result attribute.
15838 (BUILT_IN_STRDUP): Likewise.
15839 (BUILT_IN_STRNDUP): Likewise.
15840 (BUILT_IN_ALLOCA): Likewise.
15841 (BUILT_IN_CALLOC): Likewise.
15842 (BUILT_IN_MALLOC): Likewise.
15843 (BUILT_IN_REALLOC): Likewise.
15844
15845 2019-06-06 Jim Wilson <jimw@sifive.com>
15846
15847 PR target/89955
15848 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15849 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15850 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15851
15852 2019-06-06 Martin Sebor <msebor@redhat.com>
15853
15854 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15855 (handle_builtin_malloc): Remove trailing spaces.
15856 (handle_builtin_memset): Same.
15857 (handle_builtin_memcmp): Same.
15858 (compute_string_length): Same.
15859 (determine_min_objsize): Same.
15860 (handle_builtin_string_cmp): Same.
15861 (handle_char_store): Same. Break up excessively long line.
15862
15863 2019-06-06 Martin Jambor <mjambor@suse.cz>
15864
15865 * tree-sra.c (build_reconstructed_reference): Drop the alignment
15866 check.
15867
15868 2019-06-06 Martin Jambor <mjambor@suse.cz>
15869
15870 * tree-sra.c (struct access): New field grp_same_access_path.
15871 (dump_access): Dump it.
15872 (build_reconstructed_reference): New function.
15873 (build_ref_for_model): Use it if possible.
15874 (path_comparable_for_same_access): New function.
15875 (same_access_path_p): Likewise.
15876 (sort_and_splice_var_accesses): Set the new flag.
15877 (analyze_access_subtree): Likewise.
15878 (propagate_subaccesses_across_link): Propagate zero value of the new
15879 flag down the access tree.
15880
15881 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
15882
15883 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15884 * config/gcn/gcn.opt (gpu_type): Add gfx906.
15885 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15886 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15887 Add gfx906.
15888
15889 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15890
15891 PR tree-optimization/90332
15892 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15893 Handle VALS containing two vectors.
15894 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15895 to...
15896 (@aarch64_combinez<mode>): ... This.
15897 (*aarch64_combinez_be<mode>): Rename to...
15898 (@aarch64_combinez_be<mode>): ... This.
15899 (vec_init<mode><Vhalf>): New define_expand.
15900 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15901
15902 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15903
15904 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15905 library functions only when not optimizing for size.
15906 (ashlsi3): Likewise.
15907 (ashrhi3): Likewise.
15908 (ashrsi3): Likewise.
15909 (lshrhi3): Likewise.
15910 (lshrsi3): Likewise.
15911
15912 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
15913
15914 PR rtl-optimization/88751
15915 * ira.c (ira): Use the number of the actually referenced registers
15916 when calculating the threshold.
15917
15918 2019-06-06 Jakub Jelinek <jakub@redhat.com>
15919
15920 * configure: Regenerate.
15921
15922 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15923
15924 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15925 register if it is in memory, so the shift can be emulated with a rotate
15926 instruction.
15927 (ashrhi3): Likewise.
15928 (lshrhi3): Likewise.
15929
15930 2019-06-06 Martin Liska <mliska@suse.cz>
15931
15932 PR tree-optimization/87954
15933 * match.pd: Simplify mult where both arguments are 0 or 1.
15934
15935 2019-06-06 Richard Biener <rguenther@suse.de>
15936
15937 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15938 put equivalences on UNDEFINED ranges.
15939 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15940 Make sure to drop defs of stmts added during simplification
15941 to VARYING.
15942
15943 2019-06-06 Richard Biener <rguenther@suse.de>
15944
15945 * tree-ssa-structalias.c: Include tree-cfg.h.
15946 (make_heapvar): Do not make heap vars artificial.
15947 (find_func_aliases_for_builtin_call): Handle stack allocation
15948 functions.
15949 (find_func_aliases): Delay processing of simple enough returns
15950 in non-IPA mode.
15951 (set_uids_in_ptset): Adjust.
15952 (find_what_var_points_to): Likewise.
15953 (solve_constraints): Do not dump points-to sets here.
15954 (compute_points_to_sets): Post-process return statements,
15955 amending the escaped solution. Dump points-to sets afterwards.
15956 (ipa_pta_execute): Dump points-to sets.
15957
15958 2019-06-06 Martin Liska <mliska@suse.cz>
15959
15960 PR web/87933
15961 * doc/install.texi: Fix HTML headers and
15962 titles for 'Installing GCC' pages.
15963
15964 2019-06-06 Martin Liska <mliska@suse.cz>
15965
15966 * ipa-icf-gimple.h (dump_message_1): Remove.
15967 (dump_message): Likewise.
15968 (return_false_with_message_1): Print also file.
15969 (return_false_with_msg): Likewise.
15970 (return_with_result): Likewise.
15971 (return_with_debug): Likewise.
15972 * ipa-icf.c (sem_function::equals_private): Remove call
15973 to dump_message.
15974
15975 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
15976
15977 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15978 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15979 memory operand for it.
15980 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15981
15982 2019-06-05 Martin Sebor <msebor@redhat.com>
15983
15984 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15985 Adjust quoting and hyphenation.
15986 * convert.c (convert_to_real_1): Same.
15987 * gcc.c (driver_wrong_lang_callback): Same.
15988 (driver::handle_unrecognized_options): Same.
15989 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15990 * opts-common.c (cmdline_handle_error): Same.
15991 (read_cmdline_option): Same.
15992 * opts-global.c (complain_wrong_lang): Same.
15993 (print_ignored_options): Same.
15994 (handle_common_deferred_options): Same.
15995 * pretty-print.h: Same.
15996 * print-rtl.c (debug_bb_n_slim): Same.
15997 * sched-rgn.c (make_pass_sched_fusion): Same.
15998 * tree-cfg.c (verify_gimple_assign_unary): Same.
15999 (verify_gimple_label): Same.
16000 * tree-ssa-operands.c (verify_ssa_operands): Same.
16001 * varasm.c (do_assemble_alias): Same.
16002 (assemble_alias): Same.
16003
16004 2019-06-05 Richard Henderson <rth@twiddle.net>
16005
16006 * config/alpha/alpha.c (direct_return): Move down after
16007 struct machine_function definition; use saved frame_size;
16008 return bool.
16009 (struct machine_function): Add sa_mask, sa_size, frame_size.
16010 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16011 (alpha_compute_frame_layout): ... new function.
16012 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16013 (alpha_initial_elimination_offset): Use saved sa_size.
16014 (alpha_vms_initial_elimination_offset): Likewise.
16015 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16016 (alpha_expand_prologue): Use saved frame data. Merge integer
16017 and fp register save loops.
16018 (alpha_expand_epilogue): Likewise.
16019 (alpha_start_function): Use saved frame data.
16020 * config/alpha/alpha-protos.h (direct_return): Update.
16021 (alpha_sa_size): Remove.
16022
16023 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16024
16025 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16026 multiplication by a power-of-two value.
16027 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16028 and turn the modulo operation into a masking operation.
16029
16030 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16031
16032 PR debug/90733
16033 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16034 with VOIDmode inner operands.
16035
16036 2019-06-05 Richard Biener <rguenther@suse.de>
16037
16038 PR middle-end/90726
16039 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16040 turn an expression graph into a tree.
16041
16042 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16043
16044 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16045 member.
16046 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16047 treat it like explicit monotonic schedule modifier.
16048 (expand_omp_for): Initialize has_lastprivate_conditional.
16049 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16050 schedule modifier.
16051
16052 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16053 references, lookup in in hash map MEM_REF operand instead of the
16054 MEM_REF itself.
16055 (lower_omp_1): When looking for lastprivate conditional assignments,
16056 handle MEM_REFs with REFERENCE_TYPE operands.
16057
16058 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16059 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16060 and references a VLA. Handle references to non-VLAs if is_simd
16061 all privatization clauses like reductions.
16062 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16063 If omp_is_reference, use always omp simd arrays and set
16064 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16065 fails, emit reference initialization.
16066
16067 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16068
16069 PR target/89803
16070 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16071 _mm_mask_fpclass_sd_mask): New intrinsics.
16072 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16073 * config/i386/i386-builtin.def
16074 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16075 New builtins.
16076 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16077 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16078 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16079 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16080 case QI_FTYPE_V2SF_INT): Ditto.
16081 * config/i386/sse.md
16082 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16083 Extended to insnstructions with mask operands.
16084
16085 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16086
16087 * config/rs6000/constraints.md (define_register_constraint "wp"):
16088 Delete.
16089 (define_register_constraint "wq"): Delete.
16090 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16091 (rs6000_init_hard_regno_mode_ok): Adjust.
16092 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16093 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16094 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16095 (define_mode_attr VSa): Delete.
16096 (define_mode_attr VSisa): New.
16097 (rest of file): Adjust.
16098 * doc/md.texi (Machine Constraints): Adjust.
16099
16100 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16101
16102 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16103 (define_attr "enabled"): Handle those new isa values.
16104
16105 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16106
16107 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16108 (define_mode_attr VSr5): Delete.
16109 (define_mode_attr VStype_sqrt): Delete.
16110 (define_mode_iterator VSX_SPDP): Delete.
16111 (define_mode_attr VS_spdp_res): Delete.
16112 (define_mode_attr VS_spdp_insn): Delete.
16113 (define_mode_attr VS_spdp_type): Delete.
16114 (*vsx_sqrt<mode>2): Adjust.
16115 (vsx_<VS_spdp_insn>): Delete, split to...
16116 (vsx_xscvdpsp): ... this. New. And...
16117 (vsx_xvcvspdp): ... this. New. And...
16118 (vsx_xvcvdpsp): ... this. New.
16119
16120 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16121
16122 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16123 and V2DF.
16124 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16125 (rest of file): Adjust.
16126
16127 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16128
16129 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16130 (vsx_extract_<mode>_var): Ditto.
16131
16132 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16133
16134 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16135 with just "wa".
16136
16137 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16138
16139 * config/rs6000/constraints.md (define_register_constraint "ww"):
16140 Delete.
16141 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16142 (rs6000_init_hard_regno_mode_ok): Adjust.
16143 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16144 RS6000_CONSTRAINT_ww.
16145 * config/rs6000/rs6000.md: Adjust.
16146 * config/rs6000/vsx.md: Adjust.
16147 * doc/md.texi (Machine Constraints): Adjust.
16148
16149 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16150
16151 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16152 (define_mode_attr sd): New.
16153 (define_mode_attr s): New.
16154 (define_mode_attr Ftrad): Delete.
16155 (define_mode_attr Fvsx): Delete.
16156 (define_mode_attr Fs): Delete.
16157 (rest of file): Use the new mode attributes.
16158 * config.rs6000/vsx.md: Use the new mode attributes.
16159
16160 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16161
16162 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16163 with just "wa".
16164
16165 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16166
16167 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16168 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16169 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16170
16171 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16172
16173 PR target/78263
16174 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16175 C++ with strict ANSI requirements.
16176
16177 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16178
16179 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16180 computations when step is 1.
16181
16182 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16183
16184 * config/rs6000/constraints.md (define_register_constraint "wf"):
16185 Delete.
16186 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16187 (rs6000_init_hard_regno_mode_ok): Adjust.
16188 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16189 RS6000_CONSTRAINT_wf.
16190 * config/rs6000/rs6000.md: Adjust.
16191 * config/rs6000/vsx.md: Adjust.
16192 * doc/md.texi (Machine Constraints): Adjust.
16193
16194 2019-06-04 Andrew Pinski <apinski@marvell.com>
16195
16196 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16197 Fix ILP32 value.
16198
16199 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16200
16201 * config/rs6000/constraints.md (define_register_constraint "wd"):
16202 Delete.
16203 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16204 (rs6000_init_hard_regno_mode_ok): Adjust.
16205 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16206 RS6000_CONSTRAINT_wd.
16207 * config/rs6000/rs6000.md: Adjust.
16208 * config/rs6000/vsx.md: Adjust.
16209 * doc/md.texi (Machine Constraints): Adjust.
16210
16211 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16212
16213 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16214 (rest of file): Adjust.
16215
16216 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16217
16218 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16219 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16220 (vsx_splat_<mode>_reg): Adjust.
16221
16222 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16223
16224 * config/rs6000/constraints.md (define_register_constraint "ws"):
16225 Delete.
16226 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16227 (rs6000_init_hard_regno_mode_ok): Adjust.
16228 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16229 RS6000_CONSTRAINT_ws.
16230 * config/rs6000/rs6000.md: Adjust.
16231 * config/rs6000/vsx.md: Adjust.
16232 * doc/md.texi (Machine Constraints): Adjust.
16233
16234 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16235
16236 * config/rs6000/constraints.md (define_register_constraint "wv"):
16237 Delete.
16238 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16239 (rs6000_init_hard_regno_mode_ok): Adjust.
16240 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16241 RS6000_CONSTRAINT_wv.
16242 * config/rs6000/rs6000.md: Adjust.
16243 * config/rs6000/vsx.md: Adjust.
16244 * doc/md.texi (Machine Constraints): Adjust.
16245
16246 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16247
16248 * config/rs6000/constraints.md (define_register_constraint "wi"):
16249 Delete.
16250 (define_register_constraint "wt"): Delete.
16251 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16252 (rs6000_init_hard_regno_mode_ok): Adjust.
16253 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16254 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16255 * config/rs6000/rs6000.md: Adjust.
16256 * config/rs6000/vsx.md: Adjust.
16257 * doc/md.texi (Machine Constraints): Adjust.
16258
16259 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16260
16261 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16262 const.
16263 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16264 default_elf_asm_output_external.
16265
16266 2019-06-04 Martin Liska <mliska@suse.cz>
16267
16268 * ipa-icf.c (INCLUDE_LIST): Remove.
16269 (sem_item_optimizer::execute): Remove call to init_wpa.
16270 * ipa-icf.h (init_wpa): Remove.
16271
16272 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16273
16274 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16275 conditional on combined for simd.
16276 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16277 member.
16278 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16279 constructs, don't remove lastprivate_conditional_map, but instead set
16280 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16281 to parent construct temporaries.
16282 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16283 like !ctx->lastprivate_conditional_map.
16284 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16285 use up->outer context instead of up.
16286 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16287 gimple_omp_for_combined_p.
16288 (expand_omp_for_static_nochunk): Likewise.
16289 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16290 probably moved over into expand_omp_for_generic rather than being copied
16291 there.
16292
16293 2019-06-04 Martin Liska <mliska@suse.cz>
16294
16295 * value-prof.c (dump_histogram_value): Fix typo.
16296 (gimple_mod_subtract_transform): Likewise.
16297
16298 2019-06-04 Richard Biener <rguenther@suse.de>
16299
16300 PR middle-end/90726
16301 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16302 (tree_contains_chrecs): Likewise.
16303 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16304 exponential behaivor from ...
16305 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16306 ... here.
16307 (expression_expensive_p): Avoid exponential behavior and compute
16308 expanded size, rejecting any expansion.
16309 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16310 (idx_contains_abnormal_ssa_name_p): Likewise.
16311 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16312 (contains_abnormal_ssa_name_p): Simplify and use
16313 walk_tree_without_duplicates.
16314
16315 2019-06-04 Richard Biener <rguenther@suse.de>
16316
16317 PR tree-optimization/90738
16318 Revert
16319 2019-06-03 Richard Biener <rguenther@suse.de>
16320
16321 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16322 full reference tree and record in ref->ref.
16323 (vn_reference_lookup_3): Pass in original ref to
16324 ao_ref_init_from_vn_reference.
16325 (vn_reference_lookup): Likewise.
16326 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16327 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16328 Handle non-decl bases in the original reference.
16329
16330 2019-06-04 Martin Liska <mliska@suse.cz>
16331
16332 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16333 number of references.
16334 (sem_item_optimizer::do_congruence_step):
16335 (sem_item_optimizer::worklist_push): Dump how references
16336 a class has.
16337 (sem_item_optimizer::worklist_pop): Use heap.
16338 (sem_item_optimizer::process_cong_reduction): Likewise.
16339 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16340
16341 2019-06-04 Martin Liska <mliska@suse.cz>
16342
16343 * ipa-icf.h (struct sem_usage_pair_hash): New.
16344 (sem_usage_pair_hash::hash): Likewise.
16345 (sem_usage_pair_hash::equal): Likewise.
16346 (struct sem_usage_hash): Likewise.
16347 * ipa-icf.c (sem_item::sem_item): Initialize
16348 referenced_by_count.
16349 (sem_item::add_reference): Register a reference
16350 in ref_map and not in target->usages.
16351 (sem_item::setup): Remove initialization of
16352 dead vectors.
16353 (sem_item::~sem_item): Remove usage of dead vectors.
16354 (sem_item::dump): Remove dump of references.
16355 (sem_item_optimizer::sem_item_optimizer): Initialize
16356 m_references.
16357 (sem_item_optimizer::read_section): Remove useless
16358 dump.
16359 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16360 (sem_item_optimizer::build_graph): Pass m_references
16361 to ::add_reference.
16362 (sem_item_optimizer::verify_classes): Remove usage of dead
16363 vectors.
16364 (sem_item_optimizer::traverse_congruence_split): Return true
16365 when a class is split.
16366 (sem_item_optimizer::do_congruence_step_for_index): Use
16367 hash_map for look up of (sem_item *, index). That brings
16368 significant speed up.
16369 (sem_item_optimizer::do_congruence_step): Return true
16370 when a split is done.
16371 (congruence_class::is_class_used): Use referenced_by_count.
16372
16373 2019-06-04 Alan Modra <amodra@gmail.com>
16374
16375 PR target/90689
16376 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16377 error.
16378
16379 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16380
16381 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16382 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16383 (rs6000_secondary_reload_simple_move): Adjust.
16384 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16385 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16386 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16387 comment.
16388 (power6x): Adjust.
16389 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16390 (floatunssi<mode>2_lfiwzx): Adjust.
16391 (fix_trunc<mode>si2_stfiwx): Adjust.
16392 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16393 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16394 (mfpgpr): Mark as deprecated.
16395 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16396 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16397 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16398
16399 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16400
16401 * config/rs6000/constraints.md (define_register_constraint "wg"):
16402 Delete.
16403 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16404 RS6000_CONSTRAINT_wg.
16405 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16406 (rs6000_init_hard_regno_mode_ok): Adjust.
16407 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16408 Delete "wg" alternatives.
16409 * doc/md.texi (Machine Constraints): Adjust.
16410
16411 2019-06-03 Alan Modra <amodra@gmail.com>
16412
16413 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16414 (get_uncond_jump_length): Assert length less than INT_MAX and
16415 non-negative.
16416
16417 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16418
16419 PR middle-end/64242
16420 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16421 block.
16422 (expand_builtin_nonlocal_goto): Likewise.
16423
16424 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16425
16426 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16427 (aarch64_asm_output_external): Declare.
16428 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16429 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16430 (aarch64_asm_output_alias): New.
16431 (aarch64_asm_output_external): New.
16432 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16433 (ASM_OUTPUT_EXTERNAL): Define.
16434
16435 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16436 * tree-vrp.h (value_range_base::nonzero_p): New.
16437 (value_range_base::set_nonnull): Rename to...
16438 (value_range_base::set_nonzero): ...this.
16439 (value_range_base::set_null): Rename to...
16440 (value_range_base::set_zero): ...this.
16441 (value_range::set_nonnull): Remove.
16442 (value_range::set_null): Remove.
16443 * tree-vrp.c (range_is_null): Remove.
16444 (range_is_nonnull): Remove.
16445 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16446 instead of range_is_*null.
16447 (extract_range_from_unary_expr): Same.
16448 (value_range_base::set_nonnull): Rename to...
16449 (value_range_base::set_nonzero): ...this.
16450 (value_range::set_nonnull): Remove.
16451 (value_range_base::set_null): Rename to...
16452 (value_range_base::set_zero): ...this.
16453 (value_range::set_null): Remove.
16454 (extract_range_from_binary_expr): Rename set_*null uses to
16455 set_*zero.
16456 (extract_range_from_unary_expr): Same.
16457 (union_helper): Same.
16458 * vr-values.c (get_value_range): Use set_*zero instead of
16459 set_*null.
16460 (vr_values::extract_range_from_binary_expr): Same.
16461 (vr_values::extract_range_basic): Same.
16462
16463 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16464
16465 PR driver/90684
16466 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16467
16468 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16469
16470 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16471 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16472 Rename to...
16473 (aarch64_<su>abd<mode>_3): ... This.
16474 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16475
16476 2019-06-03 Richard Biener <rguenther@suse.de>
16477
16478 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16479 full reference tree and record in ref->ref.
16480 (vn_reference_lookup_3): Pass in original ref to
16481 ao_ref_init_from_vn_reference.
16482 (vn_reference_lookup): Likewise.
16483 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16484 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16485 Handle non-decl bases in the original reference.
16486
16487 2019-06-03 Martin Liska <mliska@suse.cz>
16488
16489 * doc/generic.texi: Remove Java Trees.
16490
16491 2019-06-03 Martin Liska <mliska@suse.cz>
16492
16493 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16494 returns 0 when operands are equal.
16495
16496 2019-06-03 Richard Biener <rguenther@suse.de>
16497
16498 PR tree-optimization/90716
16499 * tree-loop-distribution.c (destroy_loop): Process blocks in
16500 correct order.
16501
16502 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16503
16504 PR target/88837
16505 * vector-builder.h (vector_builder::count_dups): New method.
16506 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16507 Declare prototype.
16508 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16509 (vec_init<mode><Vel>): New pattern.
16510 * config/aarch64/aarch64.c (emit_insr): New function.
16511 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16512 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16513 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16514 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16515
16516 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16517
16518 PR tree-optimization/90681
16519 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16520 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16521 special case for SLP, but fail on non-groupped loads.
16522
16523 2019-06-03 Martin Liska <mliska@suse.cz>
16524
16525 * cfg.c (debug): Use TDF_DETAILS for debug and
16526 print edge info only once.
16527
16528 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16529
16530 PR fortran/90539
16531 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16532
16533 2019-06-01 Martin Sebor <msebor@redhat.com>
16534
16535 PR middle-end/90694
16536 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16537
16538 2019-05-31 Jan Hubicka <jh@suse.cz>
16539
16540 * alias.c: Include ipa-utils.h.
16541 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16542 * ipa-devirt.c (prevailing_odr_type): New.
16543 * ipa-utils.h (previaling_odr_type): Declare.
16544
16545 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16546 Hongtao Liu <hongtao.liu@intel.com>
16547
16548 PR target/89355
16549 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16550 NOTE_INSN_DELETED_LABEL check.
16551
16552 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16553 Robert Suchanek <robert.suchanek@mips.com>
16554
16555 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16556 and 3rd operands of the fmadd/fmsub/maddv builtin.
16557
16558 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16559
16560 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16561 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16562 on OMP_SIMD if not nested inside of worksharing loop that also has
16563 lastprivate conditional clause for the same decl.
16564 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16565 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16566 on simd.
16567 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16568 on simd construct.
16569 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16570 on simd construct.
16571 (lower_lastprivate_clauses): Likewise.
16572 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16573 calling lower_rec_input_clauses.
16574 (lower_omp_for): Likewise.
16575 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16576 clause on simd construct.
16577 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16578 OMP_CLAUSE__CONDTEMP_ clause is present.
16579
16580 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16581 ivar and lvar.
16582
16583 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16584
16585 PR c/43673
16586 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16587 TEX_D32, TEX_D64 or TEX_D128.
16588
16589 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16590
16591 * match.pd (~(vec?cst1:cst2)): New transformation.
16592
16593 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16594
16595 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16596 ((size_t)(A /[ex] B) CMP C): New transformation.
16597
16598 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16599
16600 * doc/md.texi: Document define_insn_and_rewrite.
16601 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16602 * gensupport.c (queue_elem): Update comment.
16603 (replace_operands_with_dups): New function.
16604 (gen_rewrite_sequence): Likewise.
16605 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16606 * read-rtl.c (apply_subst_iterator): Likewise.
16607 (add_condition_to_rtx, named_rtx_p): Likewise.
16608 (rtx_reader::read_rtx_operand): Likewise.
16609 * config/aarch64/aarch64-sve.md
16610 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16611 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16612 define_insn_and_rewrite.
16613 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16614 Remove separate define_split.
16615
16616 2019-05-31 Jan Hubicka <jh@suse.cz>
16617
16618 * tree-ssa-alias.c (type_has_components_p): New function.
16619 (aliasing_component_refs_p): Use it.
16620
16621 2019-05-31 Martin Liska <mliska@suse.cz>
16622
16623 * gdbhooks.py: Add const_tree to TreePrinter.
16624
16625 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16626
16627 PR debug/86964
16628 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16629 * doc/invoke.texi (Debugging Options): Document new default of
16630 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16631
16632 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16633
16634 PR tree-optimization/90671
16635 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16636 template_block used to be empty on the first call, don't use
16637 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16638 seq with bb_seq and set it with set_bb_seq.
16639
16640 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16641
16642 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16643
16644 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16645 Michael Meissner <meissner@linux.ibm.com>
16646
16647 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16648 (prefixed_mem_operand): Likewise.
16649 (non_prefixed_mem_operand): Likewise.
16650 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16651 prototype.
16652 * config/rs6000/rs6000.c (print_operand_address): Handle
16653 PC-relative addresses.
16654 (mode_supports_prefixed_address_p): New function.
16655 (rs6000_prefixed_address): New function.
16656 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16657 (SYMBOL_REF_PCREL_P): Likewise.
16658
16659 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16660
16661 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16662 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16663 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16664 is nested inside of parallel region, add _condtemp_ clause to both.
16665 * tree-nested.c (convert_nonlocal_omp_clauses,
16666 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16667 assertion failure.
16668 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16669 member.
16670 * omp-general.c (omp_extract_for_data): Compute it.
16671 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16672 (lower_rec_input_clauses): Likewise.
16673 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16674 clause is already present, just add one further one after it.
16675 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16676 (lower_send_shared_vars): Clear _condtemp_ vars.
16677 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16678 or section or taskgroup.
16679 * omp-expand.c (determine_parallel_type): Disallow combining only if
16680 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16681 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16682 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16683 expand_omp_for_static_chunk, expand_omp_for): Use
16684 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16685 determine if a special set of API routines are needed and if condtemp
16686 needs to be initialized, while always initialize cond_var if
16687 fd->lastprivate_conditional is non-zero.
16688
16689 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16690 Michael Meissner <meissner@linux.ibm.com>
16691
16692 * config/rs6000/constraints.md (eI): New constraint.
16693 * config/rs6000/predicates.md (cint34_operand): New predicate.
16694 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16695 (SIGNED_34BIT_OFFSET_P): Likewise.
16696 * doc/md.texi (eI): Document constraint.
16697
16698 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16699
16700 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16701
16702 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16703 Michael Meissner <meissner@linux.ibm.com>
16704
16705 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16706 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16707 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16708 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16709 (OTHER_FUTURE_MASKS): Likewise.
16710 (POWERPC_MASKS): Likewise.
16711 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16712 specified without -mprefixed-addr or -mcpu=future. Error if
16713 -mprefixed-addr is specified without -mcpu=future.
16714 (rs6000_opt_masks): Add entry for prefixed-addr.
16715 * rs6000.opt (mprefixed-addr): New option.
16716
16717 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16718
16719 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16720 cfun->is_thunk check.
16721
16722 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16723
16724 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16725 to length.
16726
16727 2019-05-30 Martin Liska <mliska@suse.cz>
16728
16729 * gdbinit.in: Fix 'ptc' command. Add trt
16730 that prints TREE_TYPE($).
16731
16732 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16733 Alan Modra <amodra@gmail.com>
16734
16735 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16736 calls here...
16737 (rs6000_indirect_call_template_1): ...and here.
16738 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16739 plt16_ha, plt16_lo, mtctr indirect calls. Use
16740 rs6000_pltseq_enum.
16741 (rs6000_decl_ok_for_sibcall): New function.
16742 (rs6000_function_ok_for_sibcall): Refactor.
16743 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16744 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16745 when pcrel. Reorganize.
16746 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16747 * rs6000.h (rs6000_pltseq_enum): New enum.
16748 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16749 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16750 (*pltseq_plt16_ha): Likewise.
16751 (*pltseq_plt16_lo): Likewise.
16752 (*pltseq_mtctr): Likewise.
16753 (*pltseq_plt_pcrel): New insn.
16754 (*call_local_aix): Handle @notoc calls.
16755 (*call_value_local_aix): Likewise.
16756 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16757 (*call_value_nonlocal_aix): Likewise.
16758 (*call_indirect_pcrel): New insn.
16759 (*call_value_indirect_pcrel): Likewise.
16760
16761 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16762
16763 * config/i386/sse.md (*save_multiple<mode>): Rename from
16764 save_multiple<mode>.
16765 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16766 (*restore_multiple_and_return<mode>): Rename from
16767 restore_multiple_and_return<mode>.
16768 (*restore_multiple_leave_return<mode>): Rename from
16769 restore_multiple_leave_return<mode>.
16770
16771 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16772
16773 * config.gcc (rx-*-linux*): New target.
16774 * config/rx/elf.opt: New file.
16775 * config/rx/linux.h: Likewise.
16776 * config/rx/t-linux: Likewise.
16777 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16778 make it zero.
16779 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16780 (ASM_APP_OFF): Likewise.
16781 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16782 moved elsewhere.
16783
16784 2019-05-29 Jan Hubicka <jh@suse.cz>
16785
16786 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16787 variants are pointer equivalent.
16788
16789 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16790
16791 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16792 * config/aarch64/aarch64-sve2.md: New file.
16793 (<u>avg<mode>3_floor): New pattern.
16794 (<u>avg<mode>3_ceil): Likewise.
16795 (*<sur>h<addsub><mode>): Likewise.
16796 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16797 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16798
16799 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16800
16801 PR bootstrap/90543
16802 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16803 for var_opt_string printing. In cl_optimization_print_diff, print
16804 (null) instead of invoking undefined behavior if one of the
16805 var_opt_string pointers is NULL and use && instead of first || in the
16806 guarding condition. For var_target_other options, handle const char *
16807 target variables similarly to const char * optimize node variables.
16808
16809 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16810
16811 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16812 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16813 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16814 Add autib1716 and pacib1716 initialisation.
16815 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16816 for autib1716 and pacib1716.
16817 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16818 aarch64_post_cfi_startproc): Define.
16819 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16820 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16821 aarch64_handle_pac_ret_protection): Set default sign key to A.
16822 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16823 aarch64_expand_prologue): Add check for b-key.
16824 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16825 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16826 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16827 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16828 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16829 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16830 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16831 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16832 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16833 pauth_hint_num_a with pauth_hint_num.
16834 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16835 pauth_hint_num_a with pauth_hint_num.
16836 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16837 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16838 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16839 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16840 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16841 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16842 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16843 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16844 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16845 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16846 UNSPEC_AUTIA1716 respectively.
16847 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16848 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16849 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16850 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16851 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16852 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16853
16854 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16855
16856 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16857 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16858 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16859 explicit clause on combined parallel into implicit shared clause.
16860 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16861 and firstprivate if the decl has one too from combined parallel to
16862 the worksharing construct.
16863
16864 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
16865 Michael Meissner <meissner@linux.ibm.com>
16866
16867 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16868
16869 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
16870
16871 * rtl.h (LABEL_REF_P): New #define.
16872
16873 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
16874
16875 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16876
16877 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16878
16879 * internal-fn.c: Marked mask_load_direct as vectorizable.
16880 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16881 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16882 combined even if masks different with allow_slp_p param.
16883 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16884 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16885 dissolve SLP-only vectorizable groups when SLP has been discarded.
16886 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16887 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16888 masks.
16889 (vect_build_slp_tree_1): Fixed comment typo.
16890 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16891 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16892 loads for SLP only.
16893 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16894 vectorizable.
16895 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16896
16897 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16898
16899 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16900 Remove obsolete use_thunk reference.
16901 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16902 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16903 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16904 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16905 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16906 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16907 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16908 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16909 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16910
16911 2019-05-28 Nathan Sidwell <nathan@acm.org>
16912
16913 * tree.h (IDENTIFIER_ANON_P): New.
16914 (anon_aggrname_format, anon_aggname_p): Don't declare.
16915 (make_anon_name): Declare.
16916 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16917 (hash_tree): Likewise.
16918 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16919 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16920 (anon_cnt, make_anon_name): New.
16921
16922 2019-05-28 Martin Liska <mliska@suse.cz>
16923
16924 PR other/90315
16925 * opts-global.c (decode_options): Print help for all
16926 help_option_arguments.
16927 * opts.c (print_help): Add new argument.
16928 (common_handle_option): Remember all values into
16929 help_option_arguments.
16930 * opts.h (print_help): Add new argument.
16931
16932 2019-05-28 Martin Liska <mliska@suse.cz>
16933
16934 PR ipa/90555
16935 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16936 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16937 (func_checker::compare_bb): Call compare_loops.
16938
16939 2019-05-27 Jakub Jelinek <jakub@redhat.com>
16940
16941 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16942 on sections construct.
16943 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16944 construct.
16945 (lower_omp_sections): Handle lastprivate conditional.
16946 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16947 lastprivate_conditional_map.
16948 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16949
16950 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16951 critical, taskgroup and section regions when looking for a region
16952 with non-NULL lastprivate_conditional_map.
16953
16954 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16955
16956 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16957 (*ix86_gen_sub3): Ditto.
16958 (*ix86_gen_sub3_carry): Ditto.
16959 (*ix86_gen_one_cmpl2): Ditto.
16960 (*ix86_gen_andsp): Ditto.
16961 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16962 (gen_and2_insn): New static function.
16963 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16964 Use gen_add3_insn instead of ix86_gen_add3.
16965 (ix86_expand_split_stack_prologue): Use gen_add2_insn
16966 instead of ix86_gen_add3.
16967 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16968 Use gen_sub3_insn instead of ix86_gen_sub3.
16969 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16970 instead of ix86_gen_add3.
16971 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16972 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
16973 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16974 * config/i386/i386-options.c (ix86_option_override_internal):
16975 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16976 ix86_gen_one_cmpl2 and ix86_gen_andsp.
16977
16978 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
16979
16980 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16981 and DW_OP_GNU_const_index opcodes.
16982
16983 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
16984
16985 * config/i386/i386.h (STACK_SIZE_MODE): Define.
16986
16987 2019-05-27 Richard Biener <rguenther@suse.de>
16988
16989 PR tree-optimization/90637
16990 * tree-ssa-sink.c (statement_sink_location): Honor the
16991 computed sink location for single-uses.
16992
16993 2019-05-27 Richard Biener <rguenther@suse.de>
16994
16995 PR middle-end/90610
16996 * match.pd (vec_perm): Avoid clobbering op0 when not generating
16997 a bit-insert.
16998
16999 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17000
17001 * config/i386/i386.md (@sub<mode>3_carry): Rename
17002 from sub<mode>3_carry.
17003 (@leave_<mode>): New expander.
17004 (*leave): Rename from leave.
17005 (*leave_rex64): Rename from leave_rex64.
17006 (@monitorx_<mode>): Rename from monitorx_<mode>.
17007 (@clzero_<mode>): Rename from clzero_<mode>.
17008 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17009 from sse3_monitor_<mode>.
17010 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17011 (*ix86_gen_leave): Ditto.
17012 (*ix86_gen_monitor): Ditto.
17013 (*ix86_gen_monitorx): Ditto.
17014 (*ix86_gen_clzero): Ditto.
17015 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17016 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17017 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17018 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17019 Use gen_sse3_monitor instead of ix86_gen_monitor.
17020 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17021 instead of ix86_gen_monitorx.
17022 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17023 instead of ix86_gen_clzero.
17024 * config/i386/i386-options.c (ix86_option_override_internal):
17025 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17026 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17027
17028 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17029
17030 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17031 Rename from tls_global_dynamic_64_<mode>.
17032 (@tls_local_dynamic_base_64_<mode>): Rename from
17033 tls_local_dynamic_base_64_<mode>.
17034 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17035 Remove indirect function.
17036 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17037 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17038 instead of ix86_gen_tls_global_dynamic_64.
17039 Use gen_tls_local_dynamic_base_64 instead of
17040 ix86_gen_tls_local_dynamic_base_64.
17041 * config/i386/i386-options.c (ix86_option_override_internal):
17042 Do not initialize ix86_gen_tls_global_dynamic_64 and
17043 ix86_gen_tls_local_dynamic_base_64.
17044
17045 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17046
17047 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17048 Rename from pro_epilogue_adjust_stack_<mode>_add.
17049 (@pro_epilogue_adjust_stack_sub_<mode>)
17050 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17051 (@allocate_stack_worker_probe_<mode>):
17052 Rename from allocate_stack_worker_probe_<mode>.
17053 (allocate_stack): Use gen_allocate_stack_worker_probe.
17054 (probe_stack): Use gen_probe_stack_1.
17055 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17056 (@adjust_stack_and_probe_<mode>): Rename from
17057 adjust_stack_and_probe<mode>.
17058 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17059 (stack_protect_set): Use gen_stack_protect_set_1.
17060 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17061 (stack_protect_test): Use gen_stack_protect_test_1.
17062 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17063 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17064 Remove indirect function.
17065 (*ix86_gen_adjust_stack_and_probe): Ditto.
17066 (*ix86_gen_probe_stack_range): Ditto.
17067 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17068 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17069 (ix86_adjust_stack_and_probe_stack_clash): Use
17070 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17071 (ix86_adjust_stack_and_probe): Ditto.
17072 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17073 of ix86_gen_probe_stack_range.
17074 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17075 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17076 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17077 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17078 CODE_FOR_stack_protect_test_{si,di}.
17079 * config/i386/i386-options.c (ix86_option_override_internal):
17080 Do not initialize ix86_gen_allocate_stack_worker,
17081 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17082
17083 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17084
17085 * doc/invoke.texi (Link Options): Many editorial changes around
17086 -flinker-output.
17087
17088 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17089
17090 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17091 pre-Solaris 11 referene and most Studio compiler details.
17092
17093 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17094
17095 PR target/90530
17096 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17097 DImode to SImode in floating-point registers on 64-bit target.
17098 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17099 register_operand in xmpyu patterns.
17100
17101 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17102
17103 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17104 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17105 OMP_CLAUSE__REDUCTEMP_.
17106 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17107 OMP_CLAUSE__CONDTEMP_.
17108 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17109 * tree-pretty-print.c (dump_omp_clause): Likewise.
17110 * tree-nested.c (convert_nonlocal_omp_clauses,
17111 convert_local_omp_clauses): Likewise.
17112 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17113 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17114 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17115 on OMP_FOR.
17116 (gimplify_omp_for): Warn and disable conditional modifier from
17117 lastprivate on loop iterators.
17118 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17119 member.
17120 * omp-general.c (omp_extract_for_data): Initialize it.
17121 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17122 member.
17123 (delete_omp_context): Delete it.
17124 (lower_lastprivate_conditional_clauses): New function.
17125 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17126 handle lastprivate conditional clauses.
17127 (lower_reduction_clauses): Add CLIST argument, emit it into
17128 the critical section if any.
17129 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17130 lower_reduction_clauses callers.
17131 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17132 to lower_lastprivate_clauses.
17133 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17134 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17135 clist into a critical section if not emitted there already by
17136 lower_reduction_clauses.
17137 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17138 callers.
17139 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17140 conditional variables.
17141 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17142 clause is present.
17143 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17144 expand_omp_for_static_chunk): Handle lastprivate conditional.
17145 (expand_omp_for): Handle fd.lastprivate_conditional like
17146 fd.have_reductemp.
17147
17148 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17149
17150 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17151 kernel does not exit cleanly.
17152 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17153
17154 2019-05-24 Jason Merrill <jason@redhat.com>
17155
17156 Revert:
17157 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17158
17159 2019-05-24 Richard Biener <rguenther@suse.de>
17160
17161 PR testsuite/90607
17162 * tree-loop-distribution.c (struct partition): Add location
17163 member.
17164 (partition_alloc): Initialize all fields.
17165 (generate_memset_builtin): Use the location recorded in the
17166 partition for the generated call.
17167 (generate_memcpy_builtin): Likewise.
17168 (classify_partition): Record the location of a single store
17169 as location for the partition.
17170
17171 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17172
17173 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17174 for lo-part.
17175
17176 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17177
17178 PR target/90588
17179 * common/config/aarch64/aarch64-common.c
17180 (aarch64_rewrite_selected_cpu): Change local temporary variable
17181 type from unsigned long to uint64_t.
17182 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17183 aarch64_get_extension_string_for_isa_flags): Change declaration to
17184 match new definition by replacing unsigned long with uint64_t.
17185
17186 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17187
17188 PR target/90568
17189 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17190 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17191 Handle stack_protect_test_<mode> codegen similarly to corresponding
17192 sub instruction.
17193
17194 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17195
17196 * config/i386/darwin.h: Reject -mfentry*.
17197 * doc/sourcebuild.texi: Document mfentry target support.
17198
17199 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17200
17201 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17202 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17203 false for PC-relative functions.
17204 (rs6000_output_function_prologue): Change called function name to
17205 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17206 name,1" for PC-relative functions.
17207 (rs6000_elf_declare_function_name): Change called function name to
17208 rs6000_global_entry_point_prologue_needed_p.
17209
17210 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17211
17212 PR target/90552
17213 * config/i386/i386.c (gen_rtx_cost):
17214 Use ix86_tune_cost instead of ix86_cost.
17215
17216 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17217 Michael Meissner <meissner@linux.ibm.com>
17218 Segher Boessenkool <segher@kernel.crashing.org>
17219
17220 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17221 OPTION_MASK_PCREL.
17222 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17223 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17224 (rs6000_fndecl_pcrel_p): Likewise.
17225 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17226 error if -mpcrel is requested without -mcpu=future.
17227 (rs6000_opt_masks): Add entry for pcrel.
17228 (rs6000_fndecl_pcrel_p): New function.
17229 (rs6000_pcrel_p): Likewise.
17230 * config/rs6000/rs6000.opt (mpcrel): New option.
17231 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17232
17233 2019-05-23 Jan Hubicka <jh@suse.cz>
17234 Martin Liska <mliska@suse.cz>
17235
17236 PR tree-optimization/90576
17237 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17238 poly_int_tree_p.
17239 (aliasing_component_refs_p): Fix three way size compare conditional;
17240 give up earlier in case we can not decide on equivalence.
17241
17242 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17243 Michael Meissner <meissner@linux.ibm.com>
17244 Segher Boessenkool <segher@kernel.crashing.org>
17245
17246 * config.gcc: Add future cpu.
17247 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17248 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17249 #define.
17250 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17251 (RS6000_CPU): New instantiation for future cpu.
17252 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17253 PROCESSOR_FUTURE.
17254 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17255 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17256 * config/rs6000/rs6000-tables.opt: Regenerate.
17257 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17258 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17259 (rs6000_machine_from_flags): Handle future cpu.
17260 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17261 PROCESSOR_POWER9 for now.
17262 (rs6000_adjust_cost): Likewise.
17263 (rs6000_issue_rate): Likewise.
17264 (rs6000_register_move_cost): Likewise.
17265 (rs6000_opt_masks): Add entry for future.
17266 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17267 (MASK_FUTURE): New #define.
17268 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17269 * config/rs6000/rs6000.opt (mfuture): New target option.
17270 * doc/invoke.texi (mcpu): Add future cpu.
17271
17272 2019-05-23 Martin Liska <mliska@suse.cz>
17273
17274 PR c++/90587
17275 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17276 operation points to a temporary (pointed via tree_to_wide_ref)
17277 that is out of scope after the &.
17278
17279 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17280
17281 PR c++/90592
17282 * doc/extend.texi (Function Names): Add missing word.
17283
17284 2019-05-23 Richard Biener <rguenther@suse.de>
17285
17286 PR tree-optimization/88440
17287 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17288 at -O[2s]+.
17289 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17290 generated call.
17291 (generate_memcpy_builtin): Likewise.
17292 (distribute_loop): Pass in whether to only distribute patterns.
17293 (prepare_perfect_loop_nest): Also allow size optimization.
17294 (pass_loop_distribution::execute): When optimizing a loop
17295 nest for size allow pattern replacement.
17296
17297 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17298
17299 PR target/90568
17300 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17301 of xor.
17302
17303 2019-05-23 Martin Liska <mliska@suse.cz>
17304
17305 PR sanitizer/90570
17306 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17307 expression similarly to gimplify_decl_expr.
17308
17309 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17310
17311 * cse.c (cse_dump_path): s/dump_file/f.
17312
17313 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17314
17315 PR c++/90462
17316 * diagnostic-format-json.cc: Include "selftest.h".
17317 (json_from_expanded_location): Only add "file" key for non-NULL
17318 file strings.
17319 (json_from_location_range): Don't add "start" and "finish"
17320 children if they are UNKNOWN_LOCATION.
17321 (selftest::test_unknown_location): New selftest.
17322 (selftest::test_bad_endpoints): New selftest.
17323 (selftest::diagnostic_format_json_cc_tests): New function.
17324 * json.cc (json::object::get): New function.
17325 (selftest::test_object_get): New selftest.
17326 (selftest::json_cc_tests): Call it.
17327 * json.h (json::object::get): New decl.
17328 * selftest-run-tests.c (selftest::run_tests): Call
17329 selftest::diagnostic_format_json_cc_tests.
17330 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17331 decl.
17332
17333 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17334 Andrew Stubbs <amd@codesourcery.com>
17335
17336 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17337 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17338 (kernel): Rename to...
17339 (main_kernel): ... this.
17340 (load_image): Load _init_array and _fini_array kernels.
17341 (run): Add argument for kernel to run.
17342 (main): Run init_array_kernel before main_kernel, and
17343 fini_array_kernel after.
17344 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17345 amdgpu_hsa_kernel attribute on functions.
17346 (gcn_disable_constructors): Delete.
17347 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17348 * config/gcn/crt0.c (size_t): Define.
17349 (_init_array, _fini_array): New.
17350 (__preinit_array_start, __preinit_array_end,
17351 __init_array_start, __init_array_end,
17352 __fini_array_start, __fini_array_end): Declare weak references.
17353
17354 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17355
17356 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17357
17358 2019-05-22 Jason Merrill <jason@redhat.com>
17359
17360 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17361
17362 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17363
17364 PR target/88483
17365 * config/i386/i386-options.c (ix86_init_machine_status): Set
17366 stack_frame_required to true.
17367 * config/i386/i386.c (ix86_get_frame_size): New function.
17368 (ix86_frame_pointer_required): Replace get_frame_size with
17369 ix86_get_frame_size.
17370 (ix86_compute_frame_layout): Likewise.
17371 (ix86_find_max_used_stack_alignment): Changed to void. Set
17372 stack_frame_required.
17373 (ix86_finalize_stack_frame_flags): Always call
17374 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17375 ix86_get_frame_size.
17376 * config/i386/i386.h (machine_function): Add stack_frame_required.
17377
17378 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17379
17380 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17381
17382 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17383
17384 * common/config/aarch64/aarch64-common.c
17385 (struct aarch64_option_extension, struct processor_name_to_arch,
17386 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17387 aarch64_contains_opt,
17388 aarch64_get_extension_string_for_isa_flags): Change type of
17389 variables storing flags to uint64_t.
17390 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17391 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17392 * config/aarch64/aarch64.c (struct processor,
17393 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17394 aarch64_validate_march, aarch64_override_options,
17395 aarch64_option_print, aarch64_handle_attr_isa_flags,
17396 aarch64_declare_function_name, aarch64_start_file): Make flag
17397 variables uint64_t.
17398 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17399 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17400 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17401 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17402 * config/aarch64/driver-aarch64.c
17403 (struct aarch64_arch_extension, struct aarch64_core_data,
17404 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17405 flag variables uint64_t.
17406 * doc/invoke.texi: Add documentation for new arguments.
17407
17408 2019-05-22 Richard Biener <rguenther@suse.de>
17409
17410 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17411 rewrite ...
17412 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17413
17414 2019-05-22 Martin Liska <mliska@suse.cz>
17415
17416 PR lto/90500
17417 * doc/extend.texi: Document the change.
17418
17419 2019-05-22 Richard Biener <rguenther@suse.de>
17420
17421 PR tree-optimization/90450
17422 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17423 (mem_ref_hasher::equal): Check it.
17424 (mem_ref_alloc): Initialize it.
17425 (gather_mem_refs_stmt): Set it.
17426
17427 2019-05-22 Richard Biener <rguenther@suse.de>
17428
17429 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17430 Add ABS_EXPR.
17431 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17432 as ABSU_EXPR.
17433
17434 2019-05-22 Alan Modra <amodra@gmail.com>
17435
17436 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17437 (ASM_CPU_SPEC): Conditionally add -many.
17438 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17439 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17440 (rs6000_file_start): ..extracted from here, and modified to
17441 test all ISA bits.
17442 (rs6000_output_function_prologue): Emit .machine as necessary.
17443
17444 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17445
17446 PR middle-end/90553
17447 * ira-lives.c (process_bb_node_lives): Consider defs
17448 for a call insn to be die before the call, not after.
17449
17450 * function.c (assign_parm_setup_block): Raise alignment of
17451 stacked parameter only for STRICT_ALIGNMENT targets.
17452
17453 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17454
17455 * config/rs6000/constraints.md (define_register_constraint "wz"):
17456 Delete.
17457 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17458 RS6000_CONSTRAINT_wz.
17459 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17460 (rs6000_init_hard_regno_mode_ok): Adjust.
17461 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17462 * doc/md.texi (Machine Constraints): Adjust.
17463
17464 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17465
17466 * config/rs6000/constraints.md (define_register_constraint "wl"):
17467 Delete.
17468 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17469 RS6000_CONSTRAINT_wl.
17470 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17471 (rs6000_init_hard_regno_mode_ok): Adjust.
17472 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17473 * doc/md.texi (Machine Constraints): Adjust.
17474
17475 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17476
17477 * config/rs6000/constraints.md (define_register_constraint "wm"):
17478 Delete.
17479 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17480 RS6000_CONSTRAINT_wm.
17481 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17482 (rs6000_init_hard_regno_mode_ok): Adjust.
17483 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17484 * doc/md.texi (Machine Constraints): Adjust.
17485
17486 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17487
17488 * config/rs6000/constraints.md (define_register_constraint "wk"):
17489 Delete.
17490 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17491 RS6000_CONSTRAINT_wk.
17492 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17493 (rs6000_init_hard_regno_mode_ok): Adjust.
17494 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17495 * doc/md.texi (Machine Constraints): Adjust.
17496
17497 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17498
17499 * config/rs6000/constraints.md (define_register_constraint "wj"):
17500 Delete.
17501 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17502 RS6000_CONSTRAINT_wj.
17503 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17504 (rs6000_init_hard_regno_mode_ok): Adjust.
17505 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17506 (VS_64dm): Delete.
17507 * config/rs6000/vsx.md: Ditto.
17508 * doc/md.texi (Machine Constraints): Adjust.
17509
17510 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17511
17512 * config/rs6000/constraints.md (define_register_constraint "wh"):
17513 Delete.
17514 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17515 RS6000_CONSTRAINT_wh.
17516 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17517 (rs6000_init_hard_regno_mode_ok): Adjust.
17518 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17519 * doc/md.texi (Machine Constraints): Adjust.
17520
17521 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17522
17523 PR target/90547
17524 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17525 Avoid calling gen_lowpart with CONST operand.
17526
17527 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17528
17529 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17530 field template_last_to_copy.
17531 (ssa_create_duplicates): Set it, and use it. Attempt to
17532 preserve more debug stmts.
17533
17534 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17535
17536 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17537 (signbit<mode>2): New expander
17538
17539 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17540
17541 PR bootstrap/87338
17542 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17543 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17544
17545 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17546
17547 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17548 %ebx and %ecx bafore calling cpuid with leaf 1 or
17549 non-constant leaf argument.
17550
17551 2019-05-21 Alan Modra <amodra@gmail.com>
17552
17553 PR target/90545
17554 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17555 power9 direct move cost.
17556
17557 2019-05-21 Richard Biener <rguenther@suse.de>
17558
17559 PR middle-end/90510
17560 * fold-const.c (fold_read_from_vector): New function.
17561 * fold-const.h (fold_read_from_vector): Declare.
17562 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17563 single-element insert permutations. Canonicalize selector
17564 further and fix issue with last commit.
17565
17566 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17567
17568 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17569 parameter with default value false to declaration.
17570 (split_edges_for_insertion): New inline function. Wrapper for
17571 split_critical_edges with for_edge_insertion_p = true.
17572 * tree-cfg.c (split_critical_edges): Don't split non-critical
17573 edges if for_edge_insertion_p is false. Fix whitespace.
17574 * tree-ssa-pre.c (pass_pre::execute): Call
17575 split_edges_for_insertion instead of split_critical_edges.
17576 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17577 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17578 (pass_data_sink_code): Update function name in the comment.
17579
17580 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17581
17582 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17583 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17584 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17585 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17586 positives.
17587
17588 2019-05-21 Martin Liska <mliska@suse.cz>
17589
17590 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17591 an extra newline.
17592 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17593 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17594 vec_lvsr.
17595 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17596 Quote a C type.
17597 (rs6000_function_arg): Likewise.
17598 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17599 (rs6000_expand_ternop_builtin): Use interval syntax.
17600 (get_element_number): Likewise.
17601 (altivec_expand_builtin): Likewise.
17602 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17603
17604 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17605
17606 PR c++/59813
17607 PR target/90418
17608 * function.h (struct function): Add calls_eh_return member.
17609 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17610 gimplifying __builtin_eh_return call.
17611 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17612 to cfun.
17613 (expand_call_inline): Or in src_cfun->calls_eh_return into
17614 dst_cfun->calls_eh_return.
17615 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17616 cfun->calls_eh_return.
17617 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17618 * lto-streamer-out.c (output_struct_function_base): Write
17619 calls_eh_return.
17620
17621 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17622
17623 PR rtl-optimization/43147
17624 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17625 IX86_BUILTIN_SHUFPD.
17626
17627 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17628
17629 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17630 (refs_may_alias_p_1): ... here; update stats.
17631 (refs_may_alias_p): Do not update stats here.
17632
17633 2019-05-20 Richard Biener <rguenther@suse.de>
17634
17635 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17636 doesn't produce pointers.
17637 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17638 the first operand points to.
17639
17640 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17641
17642 * tree-ssa-alias.c (compare_sizes): New function.
17643 (sompare_type_sizes): New function
17644 (aliasing_component_refs_p): Use it.
17645 (indirect_ref_may_alias_decl_p): Likewise.
17646
17647 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17648
17649 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17650
17651 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17652
17653 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17654 (LIBLSAN_EARLY_SPEC): Likewise.
17655 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17656
17657 2019-05-20 Martin Liska <mliska@suse.cz>
17658
17659 * config/i386/i386.c (ix86_libc_has_fast_function):
17660 Add ATTRIBUTE_UNUSED for the argument.
17661
17662 2019-05-20 Richard Biener <rguenther@suse.de>
17663
17664 * gimple-match-head.c: Include vec-perm-indices.h.
17665 * generic-match-head.c: Likewise.
17666 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17667 is included.
17668 * fold-const.c (fold_vec_perm): Export.
17669 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17670 (match.pd): ...here.
17671
17672 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17673
17674 * cfgloop.h (struct loop): Add simdlen member.
17675 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17676 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17677 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17678 as new argument to autovectorize_vector_sizes target hook. If
17679 loop->simdlen, pick up vector size where the vectorization factor
17680 is equal to loop->simd, and if there is none, fall back to the first
17681 successful one.
17682 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17683 caller.
17684 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17685 * omp-general.c (omp_max_vf): Likewise.
17686 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17687 * tree-vect-slp.c (vect_slp_bb): Likewise.
17688 * target.def (autovectorize_vector_sizes): Add ALL argument and
17689 document it.
17690 * doc/tm.texi: Adjust documentation.
17691 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17692 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17693 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17694 bool argument.
17695 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17696 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17697 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17698 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17699 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17700 preferred vector size is not 512-bit or 256-bit, just put those
17701 unpreferred ones last.
17702
17703 2019-05-20 Martin Liska <mliska@suse.cz>
17704
17705 * targhooks.c (default_libc_has_fast_function): New function.
17706 * targhooks.h (default_libc_has_fast_function): Likewise.
17707
17708 2019-05-20 Martin Liska <mliska@suse.cz>
17709
17710 PR middle-end/90263
17711 * builtins.c (expand_builtin_memory_copy_args): When having a
17712 target with fast mempcpy implementation do now use memcpy.
17713 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17714 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17715 * doc/tm.texi: Likewise.
17716 * doc/tm.texi.in: Likewise.
17717 * target.def:
17718 * expr.c (emit_block_move_hints): Add 2 new arguments.
17719 * expr.h (emit_block_move_hints): Bail out when libcall
17720 to memcpy would be used.
17721
17722 2019-05-20 Martin Liska <mliska@suse.cz>
17723
17724 * profile-count.c: Add vertical spacing in order
17725 to separate functions.
17726 * profile-count.h: Likewise.
17727
17728 2019-05-20 Martin Liska <mliska@suse.cz>
17729
17730 * profile-count.h: Do not use full qualified
17731 names if possible.
17732 * profile-count.c (profile_count::to_frequency): Likewise.
17733
17734 2019-05-20 Martin Liska <mliska@suse.cz>
17735
17736 * profile-count.h (enum profile_quality): Use capital letters
17737 for enum value names. Use the adjusted names.
17738 * profile-count.c: Use the adjusted names.
17739
17740 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17741
17742 * config/rs6000/constraints.md (define_register_constraint "wH"):
17743 Delete.
17744 (define_register_constraint "wI"): Delete.
17745 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17746 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17747 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17748 (rs6000_init_hard_regno_mode_ok): Adjust.
17749 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17750 resp. "d", or with "wa" as appropriate, all with "p8v".
17751 * config/rs6000/vsx.md: Ditto.
17752 * doc/md.texi (Machine Constraints): Adjust.
17753
17754 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17755
17756 * config/rs6000/constraints.md (define_register_constraint "wy"):
17757 Delete.
17758 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17759 RS6000_CONSTRAINT_wy.
17760 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17761 (rs6000_init_hard_regno_mode_ok): Adjust.
17762 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17763 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17764 (define_mode_attr Fisa): New.
17765 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17766 * doc/md.texi (Machine Constraints): Adjust.
17767
17768 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17769
17770 * config/rs6000/constraints.md (define_register_constraint "wu"):
17771 Delete.
17772 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17773 RS6000_CONSTRAINT_wu.
17774 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17775 (rs6000_init_hard_regno_mode_ok): Adjust.
17776 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17777 both with "p8v".
17778 (define_mode_attr Fa): Delete.
17779 * config/rs6000/vsx.md: Ditto.
17780 * doc/md.texi (Machine Constraints): Adjust.
17781
17782 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17783
17784 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17785 Delete.
17786 (define_register_constraint "wK"): Delete.
17787 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17788 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17789 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17790 (rs6000_init_hard_regno_mode_ok): Adjust.
17791 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17792 Replace "wK" constraint by "wH" with "p9v".
17793 * config/rs6000/vsx.md: Ditto.
17794 * doc/md.texi (Machine Constraints): Adjust.
17795
17796 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17797
17798 * config/rs6000/constraints.md (define_register_constraint "wb"):
17799 Delete.
17800 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17801 RS6000_CONSTRAINT_wb.
17802 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17803 (rs6000_init_hard_regno_mode_ok): Adjust.
17804 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17805 * config/rs6000/vsx.md: Ditto.
17806 * doc/md.texi (Machine Constraints): Adjust.
17807
17808 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17809
17810 * config/rs6000/constraints.md (define_register_constraint "wo"):
17811 Delete.
17812 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17813 RS6000_CONSTRAINT_wo.
17814 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17815 (rs6000_init_hard_regno_mode_ok): Adjust.
17816 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17817 * config/rs6000/altivec.md: Ditto.
17818 * doc/md.texi (Machine Constraints): Adjust.
17819
17820 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17821
17822 * config/darwin-c.c (darwin_register_objc_includes): Do not
17823 prepend the sysroot when building gnu-runtime header search
17824 paths.
17825
17826 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17827
17828 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17829 instead of direct output of the asm.
17830
17831 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17832
17833 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17834 argument to be type bool (was int before).
17835 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17836 at first use. Use type bool for some variables. Fix a theoretical
17837 eh_return bug for svr4.
17838
17839 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17840
17841 * config/rs6000/rs6000.md (isa): New attribute.
17842 (enabled): New attribute.
17843
17844 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17845
17846 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17847 assemble_start_function and assemble_end_function.
17848
17849 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17850
17851 PR middle-end/89433
17852 * omp-general.c (oacc_verify_routine_clauses): Change formal
17853 parameters. Add checking if already marked with an OpenACC
17854 'routine' directive. Adjust all users.
17855
17856 PR middle-end/89433
17857 * omp-general.c (oacc_build_routine_dims): Move some of its
17858 processing into...
17859 (oacc_verify_routine_clauses): ... this new function.
17860 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17861
17862 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17863
17864 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17865 formating of picbase labels to match other ports.
17866
17867 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17868
17869 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17870 in the generated code.
17871
17872 2019-05-16 Martin Sebor <msebor@redhat.com>
17873
17874 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17875 identifiers, keywords, operators, and types in diagnostics. Correct
17876 quoting, spelling, and sentence capitalization issues.
17877 (expand_builtin_atomic_is_lock_free): Same.
17878 (fold_builtin_next_arg): Same.
17879 * cfgexpand.c (expand_one_var): Same.
17880 (tree_conflicts_with_clobbers_p): Same.
17881 (expand_asm_stmt): Same.
17882 (verify_loop_structure): Same.
17883 * cgraphunit.c (process_function_and_variable_attributes): Same.
17884 * collect-utils.c (collect_execute): Same.
17885 * collect2.c (maybe_run_lto_and_relink): Same.
17886 (is_lto_object_file): Same.
17887 (scan_prog_file): Same.
17888 * convert.c (convert_to_real_1): Same.
17889 * dwarf2out.c (dwarf2out_begin_prologue): Same.
17890 * except.c (verify_eh_tree): Same.
17891 * gcc.c (execute): Same.
17892 (eval_spec_function): Same.
17893 (run_attempt): Same.
17894 (driver::set_up_specs): Same.
17895 (compare_debug_auxbase_opt_spec_function): Same.
17896 * gcov-tool.c (unlink_gcda_file): Same.
17897 (do_merge): Same.
17898 (do_rewrite): Same.
17899 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17900 * gimplify.c (gimplify_asm_expr): Same.
17901 (gimplify_adjust_omp_clauses): Same.
17902 * hsa-gen.c (gen_hsa_addr_insns): Same.
17903 (gen_hsa_insns_for_load): Same.
17904 (gen_hsa_cmp_insn_from_gimple): Same.
17905 (gen_hsa_insns_for_operation_assignment): Same.
17906 (gen_get_level): Same.
17907 (gen_hsa_alloca): Same.
17908 (omp_simple_builtin::generate): Same.
17909 (gen_hsa_atomic_for_builtin): Same.
17910 (gen_hsa_insns_for_call): Same.
17911 * input.c (dump_location_info): Same.
17912 * ipa-devirt.c (compare_virtual_tables): Same.
17913 * ira.c (ira_setup_eliminable_regset): Same.
17914 * lra-assigns.c (lra_assign): Same.
17915 * lra-constraints.c (lra_constraints): Same.
17916 * lto-streamer-in.c (lto_input_mode_table): Same.
17917 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17918 (merge_and_complain): Same.
17919 (compile_offload_image): Same.
17920 (compile_images_for_offload_targets): Same.
17921 (debug_objcopy): Same.
17922 (run_gcc): Same.
17923 (main): Same.
17924 * opts.c (print_specific_help): Same.
17925 (parse_no_sanitize_attribute): Same.
17926 (print_help): Same.
17927 (handle_param): Same.
17928 * plugin.c (add_new_plugin): Same.
17929 (parse_plugin_arg_opt): Same.
17930 (try_init_one_plugin): Same.
17931 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17932 operators, and types in diagnostics. Correct quoting and spelling
17933 issues.
17934 * read-rtl-function.c (parse_edge_flag_token): Same.
17935 (function_reader::parse_enum_value): Same.
17936 * reg-stack.c (check_asm_stack_operands): Same.
17937 * regcprop.c (validate_value_data): Same.
17938 * sched-rgn.c (make_pass_sched_fusion): Same.
17939 * stmt.c (check_unique_operand_names): Same.
17940 * targhooks.c (default_target_option_pragma_parse): Same.
17941 * tlink.c (recompile_files): Same.
17942 * toplev.c (process_options): Same.
17943 (do_compile): Same.
17944 * trans-mem.c (diagnose_tm_1): Same.
17945 (ipa_tm_scan_irr_block): Same.
17946 (ipa_tm_diagnose_transaction): Same.
17947 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
17948 format a tree code name in a diagnostic.
17949 (verify_types_in_gimple_min_lval): Same.
17950 (verify_types_in_gimple_reference): Same.
17951 (verify_gimple_call): Same.
17952 (verify_gimple_assign_unary): Same.
17953 (verify_gimple_assign_binary): Same.
17954 (verify_gimple_assign_ternary): Same.
17955 (verify_gimple_assign_single): Same.
17956 (verify_gimple_switch): Same.
17957 (verify_gimple_label): Same.
17958 (verify_gimple_phi): Same.
17959 (verify_gimple_in_seq): Same.
17960 (verify_eh_throw_stmt_node): Same.
17961 (collect_subblocks): Same.
17962 (gimple_verify_flow_info): Same.
17963 (do_warn_unused_result): Same.
17964 * tree-inline.c (expand_call_inline): Same.
17965 * tree-into-ssa.c (update_ssa): Same.
17966 * tree.c (tree_int_cst_elt_check_failed): Same.
17967 (tree_vec_elt_check_failed): Same.
17968 (omp_clause_operand_check_failed): Same.
17969 (verify_type_variant): Same.
17970 (verify_type): Same.
17971 * value-prof.c (verify_histograms): Same.
17972 * varasm.c (assemble_start_function): Same.
17973
17974 2019-05-16 Martin Sebor <msebor@redhat.com>
17975
17976 * config/i386/i386-expand.c (get_element_number): Quote keywords
17977 and other internal names in diagnostics. Adjust other diagnostic
17978 formatting issues noted by -Wformat-diag.
17979 * config/i386/i386-features.c
17980 (ix86_mangle_function_version_assembler_name): Same.
17981 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17982 * config/i386/i386.c (ix86_function_type_abi): Same.
17983 (ix86_function_ms_hook_prologue): Same.
17984 (classify_argument): Same.
17985 (ix86_expand_prologue): Same.
17986 (ix86_md_asm_adjust): Same.
17987 (ix86_memmodel_check): Same.
17988
17989 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17990
17991 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17992 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17993 and fpxx modes.
17994
17995 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
17996
17997 PR target/90497
17998 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17999 intrinsics without SSE/SSE2/SSSE3.
18000 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18001 check.
18002 (*mmx_uavgv8qi3): Likewise.
18003
18004 2019-05-17 Richard Biener <rguenther@suse.de>
18005
18006 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18007 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18008
18009 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18010
18011 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18012 vec_sldw insn pattern.
18013
18014 2019-05-17 Richard Biener <rguenther@suse.de>
18015
18016 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18017
18018 2019-05-17 Martin Liska <mliska@suse.cz>
18019
18020 PR driver/90496
18021 * toplev.c (output_stack_usage): With LTO and sanitizer it
18022 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18023 has no file location.
18024
18025 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18026
18027 PR c++/90484
18028 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18029 sz0 is equal to sz1, instead return false in that case.
18030
18031 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18032 has non-constant expression, force sctx.lane and use two
18033 argument IFN_GOMP_SIMD_LANE instead of single argument.
18034 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18035 two argument IFN_GOMP_SIMD_LANE without lhs.
18036 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18037 member.
18038 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18039 Define.
18040 (LOOP_REQUIRES_VERSIONING): Or in
18041 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18042 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18043 simd_if_cond.
18044 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18045 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18046 from simd if clause if needed.
18047
18048 2019-05-16 Richard Biener <rguenther@suse.de>
18049
18050 * tree-affine.c (expr_to_aff_combination): New function split
18051 out from...
18052 (tree_to_aff_combination): ... here.
18053 (aff_combination_expand): Avoid building a GENERIC tree.
18054
18055 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18056
18057 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18058 assemble_start_function and assemble_end_function calls.
18059 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18060 assemble_start_function and assemble_end_function.
18061 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18062 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18063 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18064 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18065 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18066 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18067 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18068 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18069 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18070 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18071 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18072 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18073 Likewise.
18074 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18075 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18076 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18077 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18078 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18079 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18080 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18081 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18082 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18083 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18084 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18085 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18086 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18087 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18088 Likewise.
18089 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18090 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18091 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18092
18093 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18094
18095 * tree-ssa-alias.c (alias_stats): Add
18096 aliasing_component_refs_p_may_alias and
18097 aliasing_component_refs_p_no_alias.
18098 (dump_alias_stats): Print aliasing_component_refs_p stats.
18099 (aliasing_component_refs_p): Update stats.
18100
18101 2019-05-16 Martin Liska <mliska@suse.cz>
18102
18103 PR lto/90500
18104 * multiple_target.c (expand_target_clones): Do not allow
18105 target_clones being used with a symbol that is an alias.
18106
18107 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18108
18109 PR tree-optimization/90394
18110 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18111 positives rather than ICE for cases where (code2 == NE_EXPR
18112 && code1 == BIT_AND_EXPR).
18113
18114 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18115
18116 PR fortran/90329
18117 * tree-core.h (struct tree_decl_common): Document
18118 decl_nonshareable_flag for PARM_DECLs.
18119 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18120 * calls.c (expand_call): Don't try tail call if caller
18121 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18122 passed on the stack and callee needs to pass any arguments on the
18123 stack.
18124 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18125 else if instead of series of mutually exclusive ifs. Handle
18126 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18127 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18128
18129 * lto-streamer.h (LTO_major_version): Bump to 9.
18130
18131 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18132
18133 PR tree-optimization/90106
18134 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18135 new parameter as new internal function call, also move it to new
18136 basic block.
18137 (use_internal_fn): Pass internal function call to
18138 shrink_wrap_one_built_in_call_with_conds.
18139
18140 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18141
18142 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18143 max_vf to 1.
18144 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18145 safelen_int and set loop->dont_vectorize.
18146
18147 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18148
18149 PR target/89021
18150 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18151 SSE/SSE2/SSSE3.
18152 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18153 Likewise.
18154 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18155 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18156 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18157 is defined.
18158
18159 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18160
18161 PR target/89021
18162 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18163 define_insn_and_split to support SSE emulation.
18164 (*vec_extractv2sf_0): Likewise.
18165 (*vec_extractv2sf_1): Likewise.
18166 (*vec_extractv2si_0): Likewise.
18167 (*vec_extractv2si_1): Likewise.
18168 (*vec_extractv2si_zext_mem): Likewise.
18169 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18170 (vec_extractv2sf_1 splitter): Likewise.
18171 (vec_extractv2sfsf): Likewise.
18172 (vec_setv2si): Likewise.
18173 (vec_extractv2si_1 splitter): Likewise.
18174 (vec_extractv2sisi): Likewise.
18175 (vec_setv4hi): Likewise.
18176 (vec_extractv4hihi): Likewise.
18177 (vec_setv8qi): Likewise.
18178 (vec_extractv8qiqi): Likewise.
18179 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18180 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18181 (vec_extractv2sisi): Likewise.
18182 (vec_extractv4hihi): Likewise.
18183 (vec_extractv8qiqi): Likewise.
18184 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18185 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18186 (vec_initv2sisi): Likewise.
18187 (vec_initv4hihi): Likewise.
18188 (vec_initv8qiqi): Likewise.
18189 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18190 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18191 (vec_setv4hi): Likewise.
18192 (vec_setv8qi): Likewise.
18193
18194 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18195
18196 PR target/89021
18197 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18198 TARGET_MMX_WITH_SSE.
18199 (MMXMODE:*mov<mode>_internal): Likewise.
18200 (MMXMODE:movmisalign<mode>): Likewise.
18201
18202 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18203
18204 PR target/89021
18205 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18206 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18207 (sse2_cvtpd2pi): Ditto.
18208 (sse2_cvttpd2pi): Ditto.
18209 (*vec_concatv2sf_sse4_1): Ditto.
18210 (*vec_concatv2sf_sse): Ditto.
18211 (*vec_concatv2si_sse4_1): Ditto.
18212 (*vec_concatv2si): Ditto.
18213 (*vec_concatv4si_0): Ditto.
18214 (*vec_concatv2di_0): Ditto.
18215
18216 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18217
18218 PR target/89021
18219 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18220
18221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18222
18223 PR target/89021
18224 * config/i386/sse.md (ssse3_palignrdi): Changed to
18225 define_insn_and_split to support SSE emulation.
18226
18227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18228
18229 PR target/89021
18230 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18231
18232 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18233
18234 PR target/89021
18235 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18236 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18237 SSE emulation.
18238
18239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18240
18241 PR target/89021
18242 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18243 or TARGET_MMX_WITH_SSE.
18244 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18245
18246 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18247
18248 PR target/89021
18249 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18250
18251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18252
18253 PR target/89021
18254 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18255 Changed to define_insn_and_split to support SSE emulation.
18256
18257 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18258
18259 PR target/89021
18260 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18261 Changed to define_insn_and_split to support SSE emulation.
18262
18263 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18264
18265 PR target/89021
18266 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18267 (*mmx_<emms>): This.
18268 (mmx_<emms>): New expander.
18269
18270 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18271
18272 PR target/89021
18273 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18274 support.
18275 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18276
18277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18278
18279 PR target/89021
18280 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18281
18282 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18283
18284 PR target/89021
18285 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18286
18287 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18288
18289 PR target/89021
18290 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18291 TARGET_MMX_WITH_SSE.
18292 (*mmx_uavgv4hi3): Add SSE emulation.
18293
18294 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18295
18296 PR target/89021
18297 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18298 and TARGET_MMX_WITH_SSE.
18299 (*mmx_uavgv8qi3): Add SSE emulation.
18300
18301 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18302
18303 PR target/89021
18304 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18305 maskmovdqu for __MMX_WITH_SSE__.
18306
18307 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18308
18309 PR target/89021
18310 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18311 TARGET_MMX and TARGET_MMX_WITH_SSE.
18312 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18313
18314 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18315
18316 PR target/89021
18317 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18318 define_insn_and_split to support SSE emulation.
18319
18320 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18321
18322 PR target/89021
18323 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18324 and TARGET_MMX_WITH_SSE.
18325 (mmx_<code>v8qi3): Likewise.
18326 (smaxmin:<code>v4hi3): New.
18327 (umaxmin:<code>v8qi3): Likewise.
18328 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18329 (umaxmin:*mmx_<code>v8qi3): Likewise.
18330
18331 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18332
18333 PR target/89021
18334 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18335 TARGET_MMX_WITH_SSE.
18336 (*mmx_pinsrw): Add SSE emulation.
18337
18338 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18339
18340 PR target/89021
18341 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18342
18343 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18344
18345 PR target/89021
18346 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18347 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18348 SSE emulation.
18349
18350 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18351
18352 PR target/89021
18353 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18354 (sse_cvttps2pi): Likewise.
18355
18356 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18357
18358 PR target/89021
18359 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18360 TARGET_MMX_WITH_SSE.
18361 (mmx_pshufw_1): Add SSE emulation.
18362 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18363 TARGET_MMX_WITH_SSE to support SSE emulation.
18364
18365 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18366
18367 PR target/89021
18368 * config/i386/constraints.md (Yw): New constraint.
18369 * config/i386/mmx.md (*vec_dupv2si): Changed to
18370 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18371 support SSE emulation.
18372
18373 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18374
18375 PR target/89021
18376 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18377 TARGET_MMX_WITH_SSE.
18378 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18379 support.
18380 (mmx_gt<mode>3): Likewise.
18381
18382 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18383
18384 PR target/89021
18385 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18386 TARGET_MMX_WITH_SSE. Add SSE support.
18387
18388 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18389
18390 PR target/89021
18391 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18392 TARGET_MMX_WITH_SSE.
18393 (any_logic:<code><mode>3): New.
18394 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18395 Add SSE support.
18396
18397 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18398
18399 PR target/89021
18400 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18401 TARGET_MMX_WITH_SSE. Add SSE emulation.
18402 (mmx_<shift_insn><mode>3): Likewise.
18403 (ashr<mode>3): New.
18404 (<shift_insn><mode>3): Likewise.
18405
18406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18407
18408 PR target/89021
18409 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18410 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18411
18412 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18413
18414 PR target/89021
18415 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18416 TARGET_MMX_WITH_SSE.
18417 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18418 SSE support.
18419
18420 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18421
18422 PR target/89021
18423 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18424 TARGET_MMX_WITH_SSE.
18425 (mulv4hi3): New.
18426 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18427 support.
18428
18429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18430
18431 PR target/89021
18432 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18433 (plusminus:mmx_<plusminus_insn><mode>3): Check
18434 TARGET_MMX_WITH_SSE.
18435 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18436 (<plusminus_insn><mode>3): New.
18437 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18438 (*mmx_<plusminus_insn><mode>3): Likewise.
18439
18440 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18441
18442 PR target/89021
18443 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18444 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18445 prototype.
18446 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18447 define_insn_and_split to support SSE emulation.
18448 (mmx_punpcklbw): Likewise.
18449 (mmx_punpckhwd): Likewise.
18450 (mmx_punpcklwd): Likewise.
18451 (mmx_punpckhdq): Likewise.
18452 (mmx_punpckldq): Likewise.
18453
18454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18455 Uros Bizjak <ubizjak@gmail.com>
18456
18457 PR target/89021
18458 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18459 New function.
18460 (ix86_split_mmx_pack): Likewise.
18461 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18462 New prototype.
18463 (ix86_split_mmx_pack): Likewise.
18464 * config/i386/i386.md (mmx_isa): New.
18465 (enabled): Also check mmx_isa.
18466 * config/i386/mmx.md (any_s_truncate): New code iterator.
18467 (s_trunsuffix): New code attr.
18468 (mmx_packsswb): Removed.
18469 (mmx_packssdw): Likewise.
18470 (mmx_packuswb): Likewise.
18471 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18472 MMX packsswb/packuswb with SSE2.
18473 (mmx_packssdw): Likewise.
18474 * config/i386/predicates.md (register_mmxmem_operand): New.
18475
18476 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18477
18478 PR target/89021
18479 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18480 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18481 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18482 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18483 (ix86_vector_mode_supported_p): Likewise.
18484 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18485
18486 2019-05-15 Martin Liska <mliska@suse.cz>
18487
18488 PR middle-end/90478
18489 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18490 Check for overflow.
18491
18492 2019-05-15 Richard Biener <rguenther@suse.de>
18493
18494 * tree-into-ssa.c (pass_build_ssa::execute): Run
18495 update_address_taken before going into SSA.
18496
18497 2019-05-15 Richard Biener <rguenther@suse.de>
18498
18499 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18500 as __BIT_FIELD_REF with type with -gimple.
18501
18502 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18503
18504 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18505 semantically equivalent branches (left over after prior refactorings).
18506
18507 2019-05-15 Richard Biener <rguenther@suse.de>
18508
18509 PR tree-optimization/88828
18510 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18511 bogus check.
18512
18513 2019-05-14 Richard Biener <rguenther@suse.de>
18514
18515 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18516 as __VIEW_CONVERT with -gimple.
18517
18518 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18519
18520 PR target/82920
18521 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18522 Darwin.
18523
18524 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18525
18526 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18527 define_split to become a define_insn_and_split.
18528
18529 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18530
18531 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18532 arguments.
18533 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18534 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18535 (sibcall_epilogue): Adjust.
18536 (epilogue): Adjust.
18537
18538 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18539
18540 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18541 to unsupported ones.
18542 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18543 * config.host: Likewise.
18544 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18545 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18546 __svr4__]: Remove "brand" fallback.
18547 [!KSTAT_DATA_STRING]: Remove.
18548 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18549 to *-*-solaris2*.
18550 (comdat_group): Likewise.
18551 (set_have_as_tls): Likewise.
18552 (gcc_cv_target_dl_iterate_phdr): Likewise.
18553 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18554 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18555 * configure: Regenerate.
18556 * doc/install.texi: Simplify Solaris target triplets.
18557 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18558 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18559 Remove Solaris 10 references.
18560 Remove obsolete Solaris bug reference.
18561 (Specific, sparc-sun-solaris2.10): Remove.
18562
18563 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18564
18565 * config/i386/i386.md (any_div): New code iterator.
18566 (paired_mod): New code attribute.
18567 (sgnprefix): Handle DIV and UDIV RTXes.
18568 (u): Ditto.
18569 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18570 and udivmod<mode>4 patterns using any_div code iterator.
18571 (divmod splitters): Macroize splitters using any_div code iterator.
18572 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18573 (*udivmodsi4_pow2_zext_2): Ditto.
18574 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18575 and *udivmod<mode>4_noext patterns using any_div code iterator.
18576 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18577 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18578 patterns using any_div code iterator.
18579 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18580 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18581 patterns using any_div code iterator.
18582 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18583 udivmodhiqi3 patterns using any_extend code iterator.
18584
18585 2019-05-14 Richard Biener <rguenther@suse.de>
18586 H.J. Lu <hongjiu.lu@intel.com>
18587
18588 PR tree-optimization/88828
18589 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18590 permuting in a single non-constant element not extracted
18591 from a vector.
18592
18593 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18594
18595 * internal-fn.def (SIGNBIT): New.
18596 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18597 defined.
18598 (signbitv4sf2): Likewise.
18599
18600 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18601
18602 PR target/90357
18603 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18604 next insn when the SRC reg is dead.
18605
18606 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18607
18608 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18609 (alloc_cand_and_find_basis): Ditto.
18610 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18611 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18612 (create_add_imm_cand, slsr_process_cast): Ditto.
18613 (slsr_process_copy, replace_mult_candidate): Ditto.
18614 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18615 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18616 (pass_strength_reduction::execute): Init the first NULL element.
18617
18618 2019-05-13 Nathan Sidwell <nathan@acm.org>
18619
18620 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18621 (run_attempt): Reformat line break.
18622
18623 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18624
18625 PR target/90418
18626 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18627 data registers in sibcall epilogues.
18628 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18629
18630 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18631
18632 PR target/89221
18633 * configure.ac (--enable-frame-pointer):
18634 Disable by default for cygwin and mingw.
18635 * configure: Regenerate.
18636
18637 2019-05-13 Nathan Sidwell <nathan@acm.org>
18638
18639 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18640 piece of code.
18641 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18642 (gen_member_die): Move abstract origin check earlier. Only VARs
18643 can be static_inline_p. Simplify splicing control flow.
18644
18645 2019-05-13 Richard Biener <rguenther@suse.de>
18646
18647 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18648 VIEW_CONVERT_EXPR.
18649 (vect_build_slp_tree_1): Likewise.
18650
18651 2019-05-13 Richard Biener <rguenther@suse.de>
18652
18653 PR tree-optimization/90402
18654 * tree-if-conv.c (tree_if_conversion): Value number only
18655 the loop body by making the latch an exit of the region
18656 as well.
18657 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18658 processing PHIs.
18659 (do_rpo_vn): Deal with multiple edges into the entry block
18660 that are not backedges inside the region by skipping PHIs
18661 of the entry block.
18662
18663 2019-05-13 Richard Biener <rguenther@suse.de>
18664
18665 PR tree-optimization/90316
18666 * tree-ssa-pre.c (insert_aux): Fold into ...
18667 (insert): ... this function. Use a RPO walk to reduce the
18668 number of required iterations.
18669
18670 2019-05-13 Martin Liska <mliska@suse.cz>
18671
18672 PR tree-optimization/90416
18673 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18674 string instead of passing the second part as va_arg argument.
18675
18676 2019-05-13 Martin Liska <mliska@suse.cz>
18677
18678 PR gcov-profile/90380
18679 * gcov.c (handle_cycle): Do not support zero cycle count,
18680 it should not be possible.
18681 (path_contains_zero_cycle_arc): New function.
18682 (circuit): Ignore zero cycle arc counts.
18683
18684 2019-05-13 Martin Liska <mliska@suse.cz>
18685
18686 PR gcov-profile/90380
18687 * gcov.c (enum loop_type): Remove the enum and
18688 the operator.
18689 (handle_cycle): Assert that we should not reach
18690 a negative count.
18691 (circuit): Use loop_found instead of a tri-state loop_type.
18692 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18693 happen.
18694
18695 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18696
18697 PR target/82920
18698 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18699 (ix86_output_indirect_branch_via_reg): Use output mechanism
18700 accounting for __USER_LABEL_PREFIX__.
18701 (ix86_output_indirect_branch_via_push): Likewise.
18702 (ix86_output_function_return): Likewise.
18703 (ix86_output_indirect_function_return): Likewise.
18704
18705 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18706
18707 * doc/md.texi: Document use of code attributes in rtx patterns.
18708 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18709 * read-rtl.c (find_code): Split out search loops into...
18710 (maybe_find_code): ...this new function.
18711 (check_code_iterator): Make the error message more informative.
18712 (check_code_attribute): New function.
18713 (rtx_reader::rtx_alloc_for_name): Likewise.
18714 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18715 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18716 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18717 <max_opp> directly as an rtx code instead of via a match_operator.
18718 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18719 (<su>abd<mode>_3): Update accordingly.
18720
18721 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18722
18723 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18724 is given, print the state of the EH "save world" computation for
18725 Darwin.
18726
18727 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18728
18729 PR c++/59813
18730 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18731 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18732
18733 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18734
18735 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18736 Use pinsrd for TARGET_SSE4_1.
18737 * config/i386/sse.md (movdi_to_sse): Ditto.
18738
18739 2019-05-10 Richard Biener <rguenther@suse.de>
18740
18741 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18742 (do_rpo_vn): Initialize next_value_id.
18743
18744 2019-05-10 Martin Liska <mliska@suse.cz>
18745
18746 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18747 Fix plural form.
18748
18749 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18750
18751 PR tree-optimization/90385
18752 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18753 arguments of the exit phis.
18754
18755 PR c++/90383
18756 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18757 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18758 id->do_not_fold.
18759 (copy_tree_body_r): Likewise.
18760 (copy_fn): Set id.do_not_fold to true.
18761
18762 2019-05-10 Martin Liska <mliska@suse.cz>
18763
18764 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18765 Reapply changes from r269790.
18766
18767 2019-05-10 Martin Liska <mliska@suse.cz>
18768
18769 PR middle-end/90340
18770 * doc/invoke.texi: New params.
18771 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18772 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18773 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18774 Use it.
18775 * tree-switch-conversion.h (struct jump_table_cluster):
18776 Likewise.
18777
18778 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18779
18780 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18781
18782 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18783
18784 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18785
18786 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18787
18788 PR rtl-optimization/88879
18789 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18790
18791 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18792
18793 PR target/90405
18794 * config/arm/arm.c (callee_saved_reg_p): Move before
18795 thumb_find_work_register.
18796 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18797 thumb_find_work_register. Only call df_get_live_out once.
18798 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18799 (thumb_find_work_register): Use
18800 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18801 algorithms to locate a spare call clobbered reg.
18802
18803 2019-05-09 Martin Liska <mliska@suse.cz>
18804
18805 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18806 and MAX_EXPR in GIMPLE FE format.
18807
18808 2019-05-09 Martin Liska <mliska@suse.cz>
18809
18810 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18811 * gimple-pretty-print.c (dump_gimple_bb_header):
18812 Dump BB count.
18813 (pp_cfg_jump): Dump edge probability.
18814 * profile-count.c (profile_quality_as_string): Simplify
18815 with a static array.
18816 (parse_profile_quality): New function.
18817 (profile_count::dump): Simplify with a static array.
18818 (profile_count::from_gcov_type): Add new argument.
18819 * profile-count.h (parse_profile_quality): Likewise.
18820 * predict.h (set_hot_bb_threshold): New.
18821 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18822 New param.
18823 * predict.c (get_hot_bb_threshold): Set from the new param.
18824 (set_hot_bb_threshold): New.
18825
18826 2019-05-09 Richard Biener <rguenther@suse.de>
18827
18828 PR tree-optimization/90395
18829 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18830 rewrite vector stores that throw internally.
18831
18832 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18833
18834 * cif-code.def (CHKP): Remove.
18835
18836 PR target/89221
18837 * configure.ac (--enable-frame-pointer): Disable by default for
18838 GNU systems.
18839 * configure: Regenerate.
18840
18841 2019-05-09 Alan Modra <amodra@gmail.com>
18842
18843 PR target/89271
18844 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18845 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18846 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18847 cost for general <-> vsx when direct moves are available.
18848 Cost union classes at minimal cost for any reg in the class.
18849 Correct calculation for moves between vsx, float, and altivec.
18850 Don't return a low cost for moves between special regs. Don't
18851 use hard coded register numbers.
18852 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18853 (rs6000_ira_change_pseudo_allocno_class): New function.
18854 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18855 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18856 alternatives.
18857 (movsi_internal1): Don't disparage vector alternatives.
18858 (mov<mode>_internal): Likewise, excepting alternative that
18859 will be split.
18860 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18861 we <- b alternative.
18862
18863 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18864
18865 PR c++/59813
18866 PR tree-optimization/89060
18867 * tree-ssa-live.h (live_vars_map): New typedef.
18868 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18869 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18870 (struct compute_live_vars_data): New type.
18871 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18872 live_vars_at_stmt, destroy_live_vars): New functions.
18873 * tree-tailcall.c: Include tree-ssa-live.h.
18874 (live_vars, live_vars_vec): New global variables.
18875 (find_tail_calls): Perform variable life analysis before punting.
18876 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18877 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18878 member.
18879 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18880 Perform variable life analysis to select variables that really need
18881 clobbers added.
18882 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18883 instead set id->eh_landing_pad_dest and assert it is the same.
18884 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18885
18886 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
18887 Richard Earnshaw <rearnsha@arm.com>
18888
18889 PR target/88167
18890 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18891 function.
18892 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18893 (thumb1_compute_save_core_reg_mask): Don't force a spare work
18894 register if both the epilogue and prologue can use call-clobbered
18895 regs.
18896 (thumb1_unexpanded_epilogue): Use
18897 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
18898 picking temporaries for restoring high regs to match that of the
18899 prologue where possible.
18900 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18901 the list of work registers. Detect if the return address is still live
18902 at the end of the prologue and avoid using it for a work register if so.
18903 If the return address is not live, add LR to the list of pushable regs
18904 after the first pass.
18905
18906 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18907
18908 PR tree-optimization/90078
18909 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18910 (INFTY): Increase the value for infinite cost.
18911 (struct comp_cost): Promote type of members to int64_t.
18912 (infinite_cost): Don't set complexity in initialization.
18913 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18914 overflows to infinite_cost.
18915 (adjust_setup_cost): Promote type of parameter and cost computation
18916 to int64_t.
18917 (struct ainc_cost_data, struct iv_ca): Promote type of member to
18918 int64_t.
18919 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18920 cost computation to int64_t.
18921 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18922 int64_t's format specifier in dump.
18923
18924 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
18925
18926 PR tree-optimization/90240
18927 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18928 with respect to scaling factor pre-computed for each basic block.
18929 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18930 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18931 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18932 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
18933 live range for array of loop's basic blocks. Cleanup aux field of
18934 loop's basic blocks.
18935
18936 2019-05-08 Jakub Jelinek <jakub@redhat.com>
18937
18938 PR tree-optimization/90356
18939 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18940
18941 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
18942
18943 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18944 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18945 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18946 (ix86_handle_option): Handle -mavx512bf16.
18947 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18948 to extra_headers.
18949 * config/i386/avx512bf16vlintrin.h: New.
18950 * config/i386/avx512bf16intrin.h: New.
18951 * config/i386/cpuid.h (bit_AVX512BF16): New.
18952 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18953 * config/i386/i386-builtin-types.def: Add new types.
18954 * config/i386/i386-builtin.def: Add new builtins.
18955 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18956 __AVX512BF16__.
18957 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18958 (ix86_option_override_internal): Handle BF16.
18959 (ix86_valid_target_attribute_inner_p): Ditto.
18960 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18961 * config/i386/i386-builtin.c (enum processor_features): Add
18962 F_AVX512BF16.
18963 (static const _isa_names_table isa_names_table): Ditto.
18964 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18965 (PTA_AVX512BF16): Ditto.
18966 * config/i386/i386.opt: Add -mavx512bf16.
18967 * config/i386/immintrin.h: Include avx512bf16intrin.h
18968 and avx512bf16vlintrin.h.
18969 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18970 avx512f_cvtneps2bf16_<mode><mask_name>,
18971 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18972 * config/i386/subst.md (mask_half): Add new subst.
18973 * doc/invoke.texi: Document -mavx512bf16.
18974
18975 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
18976
18977 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18978 Delete declaration.
18979 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18980 (rs6000_debug_legitimize_reload_address): Delete.
18981 (rs6000_legitimize_reload_address_ptr): Delete.
18982 (rs6000_option_override_internal): Adjust.
18983 (mem_operand_gpr): Adjust comment.
18984 (legitimate_lo_sum_address_p): Ditto.
18985 (rs6000_legitimize_reload_address): Delete.
18986 (rs6000_debug_legitimize_reload_address): Delete.
18987 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18988
18989 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
18990
18991 PR target/89765
18992 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18993 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18994 to compute vector element selector for both constant and variable
18995 operands.
18996
18997 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
18998
18999 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19000 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19001 ashrdi3_cvt using SWI48 mode iterator.
19002
19003 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19004
19005 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19006 (aarch64_<su>abd<mode>_3): Likewise.
19007 (*aarch64_<su>abd<mode>_3): New define_insn.
19008 (<sur>sad<vsi2qi>): New define_expand.
19009 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19010 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19011 (build_vect_cond_expr): Likewise.
19012
19013 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19014
19015 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19016 clobbers outside of accessible_reg_set.
19017 * config/i386/i386.c (ix86_conditional_register_usage):
19018 Disable register sets by clearing corresponding bits in
19019 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19020 call_used_regs and don't clear corresponding reg_names array members.
19021
19022 2019-05-07 Richard Biener <rguenther@suse.de>
19023
19024 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19025 not specified still compute a comp_vectype for invariant
19026 compares.
19027
19028 2019-05-07 Richard Biener <rguenther@suse.de>
19029
19030 PR tree-optimization/90316
19031 * tree-ssa-pre.c (translate_vuse_through_block): When
19032 same_valid is NULL do not bother to search for a virtual
19033 PHI continuation.
19034 (phi_translate_1): When operands changed we cannot keep
19035 the same value-number so do not bother to ask whether
19036 that's possible from translate_vuse_through_block.
19037
19038 2019-05-07 Martin Liska <mliska@suse.cz>
19039
19040 * bitmap.c (bitmap_register): Come up with
19041 alloc_descriptor_max_uid and assign it for
19042 a new bitmap.
19043 (register_overhead): Use get_descriptor as
19044 a descriptor.
19045 (release_overhead): New.
19046 (bitmap_elem_to_freelist): Call it.
19047 (bitmap_elt_clear_from): Likewise.
19048 (bitmap_obstack_free): Likewise.
19049 (bitmap_move): Sensitively release memory.
19050 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19051 (bitmap_initialize): Initialize alloc_descriptor to zero.
19052 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19053
19054 2019-05-07 Richard Biener <rguenther@suse.de>
19055
19056 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19057 we build a SLP node. Remove max_size and limiting.
19058 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19059
19060 2019-05-07 Richard Biener <rguenther@suse.de>
19061
19062 PR tree-optimization/90316
19063 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19064 limit by reference.
19065 (walk_non_aliased_vuses): Take walking limit argument.
19066 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19067 walking if it is reached instead of just counting.
19068 (get_continuation_for_phi): Likewise.
19069 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19070 limiting to the callback.
19071 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19072 (vn_reference_lookup_3): Likewise.
19073 (vn_reference_lookup_pieces): Likewise.
19074 (vn_reference_lookup): Likewise.
19075 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19076 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19077 (avail_exprs_stack::lookup_avail_expr): Likewise.
19078
19079 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19080
19081 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19082 for comparaible types in the second direction even if first one
19083 hits incomparable type.
19084
19085 2019-05-07 Richard Biener <rguenther@suse.de>
19086
19087 PR lto/90369
19088 * lto-wrapper.c (debug_objcopy): Use the original filename
19089 including archive offset for the filename used for -save-temps.
19090
19091 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19092
19093 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19094 detection.
19095
19096 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19097 Hongtao Liu <hongtao.liu@intel.com>
19098
19099 PR target/89750
19100 PR target/86444
19101 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19102 Modified, original implementation isn't correct.
19103
19104 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19105
19106 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19107 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19108 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19109 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19110 (FRAME_POINTER_REGNUM): Change numbering.
19111 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19112 (alt_reg_names): Adjust.
19113 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19114 fixed.
19115 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19116 (DWARF_FRAME_REGISTERS): Delete.
19117 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19118 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19119 Adjust.
19120 (REG_ALLOC_ORDER): Adjust.
19121 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19122 (REG_CLASS_CONTENTS): Adjust.
19123 (RETURN_ADDR_RTX): Change comment.
19124 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19125 instead of 67.
19126 (REGISTER_NAMES): Adjust.
19127 (ADDITIONAL_REGISTER_NAMES): Adjust.
19128 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19129
19130 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19131
19132 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19133 Delete.
19134 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19135 (DWARF_FRAME_REGISTERS): Adjust.
19136 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19137 Adjust.
19138 (REG_ALLOC_ORDER): Adjust.
19139 (enum reg_class): Delete SPR_REGS.
19140 (REG_CLASS_NAMES): Delete SPR_REGS.
19141 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19142 (REGISTER_NAMES): Adjust.
19143 (ADDITIONAL_REGISTER_NAMES): Adjust.
19144 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19145 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19146 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19147 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19148 (htm_spr_regno): Delete.
19149 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19150 argument.
19151 (rs6000_dbx_register_number): Adjust.
19152
19153 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19154
19155 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19156
19157 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19158
19159 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19160 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19161
19162 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19163
19164 PR tree-optimization/88709
19165 PR tree-optimization/90271
19166 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19167 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19168 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19169 variable.
19170 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19171 of the store merging group is larger than
19172 PARAM_STORE_MERGING_MAX_SIZE parameter.
19173 (split_group): Add bzero_first argument. If set, always emit first
19174 the first store which must be = {} of the whole area and then for the
19175 rest of the stores consider all zero bytes as paddings.
19176 (imm_store_chain_info::output_merged_store): Check if first store
19177 is = {} of the whole area and if yes, determine which setting of
19178 bzero_first for split_group gives smaller number of stores. Adjust
19179 split_group callers.
19180 (lhs_valid_for_store_merging_p): Allow decls.
19181 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19182 no elts.
19183 (pass_store_merging::process_store): Likewise.
19184
19185 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19186
19187 PR target/89424
19188 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19189 handling of V1TImode.
19190
19191 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19192
19193 PR target/89221
19194 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19195 and enable_frame_pointer ...
19196 * configure.ac: ... here. Update help strings for
19197 --enable-frame-pointer.
19198 * configure: Regenerate.
19199 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19200 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19201 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19202 (USE_X86_64_FRAME_POINTER): Ditto.
19203
19204 2019-05-06 Martin Liska <mliska@suse.cz>
19205
19206 * config.gcc: Append to target_gtfiles and fix indentation.
19207
19208 2019-05-06 Richard Biener <rguenther@suse.de>
19209
19210 PR tree-optimization/90358
19211 * tree-vect-stmts.c (get_group_load_store_type): Properly
19212 detect unused upper half of load.
19213 (vectorizable_load): Likewise.
19214
19215 2019-05-06 Richard Biener <rguenther@suse.de>
19216
19217 PR tree-optimization/88828
19218 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19219 (simplify_vector_constructor): ...here. Handle constants in
19220 the constructor.
19221
19222 2019-05-06 Richard Biener <rguenther@suse.de>
19223
19224 PR tree-optimization/90328
19225 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19226 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19227 is valid in the loop nest before using it.
19228 (initialize_data_dependence_relation): Adjust.
19229 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19230 loop as loop-nest to dr_may_alias_p.
19231
19232 2019-05-06 Richard Biener <rguenther@suse.de>
19233
19234 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19235
19236 2019-05-06 Richard Biener <rguenther@suse.de>
19237
19238 PR tree-optimization/90316
19239 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19240 compute target on demand.
19241 (get_continuation_for_phi): Remove code walking stmts to
19242 get to a target virtual operand which could end up being
19243 quadratic.
19244
19245 2019-05-06 Martin Liska <mliska@suse.cz>
19246
19247 PR sanitizer/90312
19248 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19249 when -mabi is selected to a non-default version.
19250
19251 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19252 Martin Liska <mliska@suse.cz>
19253
19254 * Makefile.in: Add lto-dump.texi.
19255 * cgraph.h: Add new functions get_visibility_string and
19256 get_symtab_type_string.
19257 * doc/gcc.texi: Include lto-dump section.
19258 * doc/lto-dump.texi: New file.
19259 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19260 (parse_dump_option): Factor out this function.
19261 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19262 (parse_dump_option): Export the function.
19263 * symtab.c (symtab_node::get_visibility_string): New function.
19264 (symtab_node::get_symtab_type_string): Likewise.
19265
19266 2019-05-06 Martin Liska <mliska@suse.cz>
19267
19268 * config/i386/i386-builtins.c: New file.
19269 * config/i386/i386-builtins.h: New file.
19270 * config/i386/i386-expand.c: New file.
19271 * config/i386/i386-expand.h: New file.
19272 * config/i386/i386-features.c: New file.
19273 * config/i386/i386-features.h: New file.
19274 * config/i386/i386-options.c: New file.
19275 * config/i386/i386-options.h: New file.
19276 * config.gcc: Add new files into extra_objs and
19277 target_gtfiles.
19278 * config/i386/i386.c: Split content of the file
19279 into newly introduced files.
19280 * config/i386/i386.h: Declare common variables
19281 and macros.
19282 * config/i386/t-i386: Define dependencies for new files.
19283
19284 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19285
19286 PR target/89400
19287 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19288 Restrict 'all' variant to 32-bit configurations.
19289 (unaligned_loadhiu): Likewise.
19290 (unaligned_storehi): Likewise.
19291 (unaligned_storesi): Likewise.
19292 (unaligned_loadhis): Disable when compiling for thumb1.
19293
19294 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19295
19296 PR tree-optimization/90269
19297 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19298 Ignore clobbers.
19299
19300 2019-05-03 Martin Liska <mliska@suse.cz>
19301
19302 * hash-map.h: Add is_empty function.
19303 * hash-set.h: Likewise.
19304 * hash-table.h: Likewise.
19305 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19306 elements () == 0 (and similar usages).
19307 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19308 * gimplify.c (gimplify_bind_expr): Likewise.
19309 (gimplify_switch_expr): Likewise.
19310 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19311 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19312 * postreload-gcse.c (dump_hash_table): Likewise.
19313 (gcse_after_reload_main): Likewise.
19314 * predict.c (combine_predictions_for_bb): Likewise.
19315 * tree-parloops.c (reduction_phi): Likewise.
19316 (separate_decls_in_region): Likewise.
19317 (transform_to_exit_first_loop): Likewise.
19318 (gen_parallel_loop): Likewise.
19319 (gather_scalar_reductions): Likewise.
19320 (try_create_reduction_list): Likewise.
19321 * var-tracking.c (dump_vars): Likewise.
19322 (emit_notes_for_changes): Likewise.
19323 (vt_emit_notes): Likewise.
19324
19325 2019-05-03 Richard Biener <rguenther@suse.de>
19326
19327 PR tree-optimization/90316
19328 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19329 before running VN.
19330
19331 2019-05-03 Richard Biener <rguenther@suse.de>
19332
19333 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19334 peeling for gaps by loading only lower halves of vectors
19335 if possible.
19336 (vectorizable_load): Likewise.
19337
19338 2019-05-03 Richard Biener <rguenther@suse.de>
19339
19340 PR middle-end/89518
19341 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19342
19343 2019-05-03 Richard Biener <rguenther@suse.de>
19344
19345 PR middle-end/87314
19346 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19347 Handle STRING_CST vs DECL or STRING_CST.
19348
19349 2019-05-03 Richard Biener <rguenther@suse.de>
19350
19351 PR tree-optimization/88963
19352 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19353 vector loads feeding only BIT_FIELD_REFs to component
19354 loads. Rewrite stores fed by CONSTRUCTORs to component
19355 stores.
19356
19357 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19358
19359 * opts.h (finish_options): Remove lang_mask argument.
19360 (print_help, help_option_argument): Declare.
19361 * opts.c (print_help): Remove forward declaration, no longer static.
19362 (finish_options): Remove lang_mask argument, don't call print_help
19363 here.
19364 * opts-global.c (decode_options): Adjust finish_option caller, call
19365 print_help here.
19366
19367 PR tree-optimization/90303
19368 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19369 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19370
19371 2019-05-03 Richard Biener <rguenther@suse.de>
19372
19373 PR tree-optimization/89698
19374 * gimple-fold.c (canonicalize_constructor_val): Early out
19375 for constants, handle unfolded INTEGER_CSTs as they appear in
19376 C++ virtual table ctors.
19377
19378 2019-05-03 Richard Biener <rguenther@suse.de>
19379
19380 * passes.c (execute_function_todo): Remove dead code.
19381
19382 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19383
19384 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19385 the internal register number, for any "real" register.
19386
19387 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19388
19389 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19390 correct numbers for TFHAR, TFIAR, TEXASR.
19391
19392 2019-05-02 Richard Biener <rguenther@suse.de>
19393
19394 PR tree-optimization/89653
19395 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19396 update-address-taken before the pass.
19397 * passes.def (pass_tree_loop_init): Put comment before it.
19398
19399 2019-05-02 Richard Biener <rguenther@suse.de>
19400
19401 PR tree-optimization/89509
19402 * tree-ssa-structalias.c (compute_dependence_clique): Look
19403 at the first subvar when determining whether it is restrict.
19404
19405 2019-05-02 Richard Biener <rguenther@suse.de>
19406
19407 PR tree-optimization/90273
19408 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19409 useless debug stmts.
19410
19411 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19412
19413 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19414 ACLE branch.
19415 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19416 SVE ACLE branch.
19417 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19418 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19419 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19420 (vectorizable_reduction): Use the functions above to vectorize in a
19421 fully masked loop codes that don't have a conditional internal
19422 function.
19423
19424 2019-05-02 Martin Liska <mliska@suse.cz>
19425
19426 * cgraphclones.c: Call valid_attribute_p with 1 for
19427 target_clone.
19428 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19429 it's for target attribute.
19430 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19431 Add new boolean argument.
19432 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19433 Likewise.
19434 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19435 to ix86_valid_target_attribute_inner_p.
19436 (ix86_valid_target_attribute_p): Pass flags argument to
19437 ix86_valid_target_attribute_inner_p.
19438 (get_builtin_code_for_version): Use 0 as it's target attribute.
19439
19440 2019-05-02 Martin Liska <mliska@suse.cz>
19441
19442 * gcc.c (process_command): Add dummy file only
19443 if n_infiles == 0.
19444 * opts-global.c (decode_options): Pass lang_mask.
19445 * opts.c (print_help): New function.
19446 (finish_options): Print --help if help_option_argument
19447 is set.
19448 (common_handle_option): Factor out content of OPT__help_
19449 into print_help.
19450 * opts.h (finish_options): Add new argument.
19451
19452 2019-05-02 Martin Liska <mliska@suse.cz>
19453
19454 PR target/88809
19455 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19456 With -minline-all-stringops use inline expansion using 4B loop.
19457 * doc/invoke.texi: Document the change of
19458 -minline-all-stringops.
19459
19460 2019-05-01 Jeff Law <law@redhat.com>
19461
19462 PR tree-optimization/88797
19463 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19464 PHI feeds a conditional on the RHS of an assignment.
19465
19466 2019-04-30 Andrew Waterman <andrew@sifive.com>
19467 Jim Wilson <jimw@sifive.com>
19468
19469 * config/riscv/constraints.md (L): New.
19470 * config/riscv/predicates.md (lui_operand): New.
19471 (sfb_alu_operand): New.
19472 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19473 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19474 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19475 * config/riscv/risc.md (type): Add sfb_alu.
19476 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19477 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19478 (branch_zero<mode>): Delete.
19479 (mov<mode>cc): New.
19480 (mov<GPR:mode><X:mode>cc): Likewise.
19481 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19482
19483 2019-04-30 Nathan Sidwell <nathan@acm.org>
19484
19485 * tree.h (MARK_TS_EXP): New.
19486
19487 2019-04-30 Martin Liska <mliska@suse.cz>
19488
19489 * opts.c (enable_warning_as_error): Provide hints
19490 for unknown options.
19491
19492 2019-04-30 Martin Liska <mliska@suse.cz>
19493
19494 PR debug/90288
19495 * doc/invoke.texi: Add missing dash for gas-locview-support
19496 and gno-as-locview-support.
19497
19498 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19499
19500 PR target/89093
19501 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19502 whitespace at the start of target attribute string.
19503
19504 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19505
19506 PR target/86538
19507 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19508 Define __ARM_FEATURE_ATOMICS.
19509
19510 2019-04-30 Martin Liska <mliska@suse.cz>
19511
19512 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19513 into built_in_function enum. Remove code for endp == 2 and
19514 use BUILT_IN_* constants.
19515 (gimple_fold_builtin): Call the function with fcode.
19516
19517 2019-04-30 Martin Liska <mliska@suse.cz>
19518
19519 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19520 DECL_FUNCTION_CODE into ix86_builtins enum before
19521 the switch statement.
19522
19523 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19524
19525 PR tree-optimization/89475
19526 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19527 calls.
19528
19529 2019-04-30 Martin Liska <mliska@suse.cz>
19530
19531 PR translation/90274
19532 * opts.c (print_filtered_help): Wrap string in _(...).
19533
19534 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19535
19536 PR tree-optimization/90240
19537 Revert:
19538 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19539
19540 PR tree-optimization/90078
19541 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19542 checks for infinite_cost overflow.
19543
19544 2019-04-29 Jeff Law <law@redhat.com>
19545
19546 * passes.def: Move -Wrestrict pass after copy propagation.
19547
19548 2019-04-29 Maya Rashish <coypu@sdf.org>
19549
19550 * config.gcc (default_gnu_indirect_function): Default to yes
19551 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19552 sparc*-*-netbsd*, x86_64-*-netbsd*.
19553
19554 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19555
19556 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19557 where cond2 is NE_EXPR.
19558 (is_value_included_in): Update comment.
19559
19560 2019-04-29 Richard Biener <rguenther@suse.de>
19561
19562 PR tree-optimization/90278
19563 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19564 EH on comparison simplification.
19565
19566 2019-04-29 Jason Merrill <jason@redhat.com>
19567
19568 PR c++/82081 - tail call optimization breaks noexcept
19569 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19570 nothrow function to a might-throw function into a tail call.
19571
19572 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19573
19574 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19575 (DDR_INNER_LOOP): Likewise.
19576 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19577 (initialize_data_dependence_relation): Likewise.
19578 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19579
19580 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19581
19582 PR rtl-optimization/90257
19583 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19584 return value.
19585
19586 Revert the revert:
19587 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19588
19589 PR target/90178
19590 Revert:
19591 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19592
19593 Revert the revert:
19594 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19595
19596 Revert:
19597 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19598
19599 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19600
19601 2019-04-29 Richard Biener <rguenther@suse.de>
19602
19603 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19604 rhs issue a reset.
19605
19606 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19607
19608 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19609 varasm.h, and netbsd-protos.h.
19610
19611 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19612
19613 PR target/89261
19614 * config/i386/i386-protos.h (ix86_data_alignment): Change
19615 the second argument type to unsigned int.
19616 * config/i386/i386.c (ix86_data_alignment): Change "align"
19617 argument type to unsigned int.
19618
19619 2019-04-27 Martin Liska <mliska@suse.cz>
19620
19621 PR middle-end/90258
19622 * opt-suggestions.c (option_proposer::build_option_suggestions):
19623 When get_valid_option_values returns empty values, add the
19624 misspelling candidate.
19625
19626 2019-04-26 Jim Wilson <jimw@sifive.com>
19627
19628 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19629 parameter.
19630 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19631 Pass orig_mode to riscv_build_integer.
19632 (riscv_split_integer): Pass mode to riscv_move_integer.
19633 (riscv_legitimize_const_move): Likewise.
19634 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19635 promoted_mode. Replace force_reg call with code to load constant into
19636 promoted reg and then subreg it for the store.
19637 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19638 riscv_move_integer.
19639
19640 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19641
19642 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19643 corrupt codes.
19644
19645 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19646
19647 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19648 commentary about the encoding of precision.
19649
19650 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19651
19652 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19653 * config/i386/t-freebsd64: New file.
19654 * config.gcc: Add the t-freebsd64 for multilib support.
19655
19656 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19657
19658 * doc/extend.texi (vector_size): Add missing comma after @xref.
19659
19660 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19661
19662 * BASE-VER: Set to 10.0.0.
19663
19664 2019-04-25 Richard Biener <rguenther@suse.de>
19665
19666 PR middle-end/89765
19667 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19668 VIEW_CONVERT_EXPR into one operating on an rvalue.
19669
19670 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19671
19672 PR target/89929
19673 * config/i386/i386.c (feature_priority): Moved to file scope.
19674 (processor_features): Likewise.
19675 (processor_model): Likewise.
19676 (_arch_names_table): Likewise.
19677 (arch_names_table): Likewise.
19678 (_feature_list): Removed.
19679 (feature_list): Likewise.
19680 (_isa_names_table): Moved to file scope. Add priority.
19681 (isa_names_table): Likewise.
19682 (get_builtin_code_for_version): Replace feature_list with
19683 isa_names_table. Update error message for P_ZERO priority.
19684
19685 2019-04-25 Richard Biener <rguenther@suse.de>
19686
19687 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19688 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19689
19690 2019-04-24 Jeff Law <law@redhat.com>
19691
19692 PR tree-optimization/90037
19693 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19694 * passes.def: Replace all instance of phi-only cprop with the
19695 lattice propagator. Move propagation pass from after erroneous
19696 path isolation to before erroneous path isolation.
19697 * tree-ssa-phionlycprop.c: Remove.
19698
19699 2019-04-24 Richard Biener <rguenther@suse.de>
19700
19701 PR middle-end/90213
19702 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19703 by size and BITS_PER_UNIT on poly-wide-ints.
19704
19705 2019-04-25 Richard Biener <rguenther@suse.de>
19706
19707 PR middle-end/90194
19708 * match.pd: Add pattern to simplify view-conversion of an
19709 empty constructor.
19710
19711 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19712
19713 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19714 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19715 for Go on 32 bit AIX.
19716 * config/rs6000/aix72.h: Likewise.
19717
19718 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19719
19720 PR target/90193
19721 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19722 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19723
19724 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19725
19726 PR target/89952
19727 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19728 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19729 for restored hard frame pointer.
19730 (s390_sched_dependencies_evaluation): Implement new target hook.
19731 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19732
19733 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19734
19735 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19736 * config/arc/arc.c (arc_init): Cleanup warning message.
19737 (arc_override_options): Likewise.
19738
19739 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19740
19741 PR target/90187
19742 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19743 a register if both if_true and if_false are MEMs.
19744
19745 PR tree-optimization/90208
19746 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19747 after labels of new_bb, not before them.
19748
19749 PR tree-optimization/90211
19750 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19751 which are not SSA_NAMEs.
19752
19753 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19754
19755 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19756 AArch64.
19757 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19758
19759 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19760
19761 PR rtl-optimization/87979
19762 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19763 not equal zero.
19764
19765 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19766
19767 PR rtl-optimization/84032
19768 * modulo-sched.c (ps_insn_find_column): Change condition so that
19769 branch will always be the last insn in a row inside partial
19770 schedule.
19771
19772 2019-04-23 Richard Biener <rguenther@suse.de>
19773
19774 PR debug/90131
19775 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19776 dest_single_pred_p argument.
19777 (remove_forwarder_block): Adjust.
19778 (remove_forwarder_block_with_phi): Likewise.
19779
19780 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19781 Bernd Edlinger <bernd.edlinger@hotmail.de>
19782 Jakub Jelinek <jakub@redhat.com>
19783
19784 PR target/89093
19785 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19786 if used with general-regs-only.
19787 (arm_conditional_register_usage): Don't add non-general regs if
19788 general-regs-only.
19789 (arm_valid_target_attribute_rec): Handle general-regs-only.
19790 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19791 general-regs-only.
19792 (TARGET_HARD_FLOAT_SUB): Define.
19793 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19794 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19795 (TARGET_REALLY_IWMMXT2): Likewise.
19796 * config/arm/arm.opt: Add -mgeneral-regs-only.
19797 * doc/extend.texi: Document ARM general-regs-only target.
19798 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19799
19800 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19801
19802 PR tree-optimization/90078
19803 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19804 checks for infinite_cost overflow.
19805
19806 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19807
19808 PR tree-optimization/90021
19809 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19810 and check univariate against it.
19811 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19812 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19813
19814 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19815
19816 PR target/90178
19817 Revert:
19818 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19819
19820 Revert the revert:
19821 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19822
19823 Revert:
19824 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19825
19826 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19827
19828 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19829
19830 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19831 names using operand format, rather than hard-wired.
19832 (speculation_barrier): Likewise.
19833
19834 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19835
19836 PR tree-optimization/88055
19837 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19838 (gen_one_condition): Use it if !HONOR_NANS.
19839
19840 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19841
19842 PR middle-end/90139
19843 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19844 assign_temp instead of gen_reg_rtx.
19845
19846 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19847
19848 PR translation/90118
19849 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19850 Add missing space before %<.
19851
19852 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19853
19854 PR rtl-optimization/87871
19855 * ira-lives.c (make_object_dead): Don't add conflicts to
19856 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19857
19858 2019-04-18 Martin Sebor <msebor@redhat.com>
19859
19860 PR middle-end/89797
19861 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19862 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19863 assuming type size fits in SHWI.
19864
19865 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
19866
19867 PR ipa/85051
19868 * ipa-inline.c (flatten_function): New parameter UPDATE.
19869 (ipa_inline, early_inliner): Use it.
19870
19871 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19872
19873 * fold-const.c (int_const_binop): Return early on failure.
19874
19875 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
19876
19877 PR middle-end/85164
19878 * combine.c (force_int_to_mode): Cast the argument rather than
19879 the result of known_alignment.
19880 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19881
19882 2019-04-18 Richard Biener <rguenther@suse.de>
19883
19884 PR debug/90131
19885 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19886 out from ...
19887 (remove_forwarder_block): ... here.
19888 (remove_forwarder_block_with_phi): Also move debug stmts here.
19889
19890 2019-04-18 Jakub Jelinek <jakub@redhat.com>
19891
19892 PR translation/79183
19893 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19894 inform where appropriate.
19895
19896 2019-04-18 Richard Biener <rguenther@suse.de>
19897
19898 * tree.c (get_qualified_type): Put found type variants at the
19899 head of the variant list.
19900
19901 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19902
19903 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19904
19905 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
19906
19907 PR target/90125
19908 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19909 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19910 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19911 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19912 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19913
19914 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
19915
19916 * ira-conflicts.c (print_allocno_conflicts): Always print something,
19917 even for allocno's with no conflicts.
19918 (print_conflicts): Print an extra newline.
19919
19920 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19921
19922 * auto-inc-dec.c (attempt_change): Set the alignment of the
19923 temporary memory to that of the original.
19924
19925 2019-04-17 Joao Moreira <jmoreira@suse.de>
19926
19927 * targhooks.c (default_print_patchable_function_entry): Emit
19928 __patchable_function_entries section with writable flags to allow
19929 relocation resolution.
19930
19931 2019-04-17 Jonny Grant <jg@jguk.org>
19932
19933 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19934
19935 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19936
19937 PR middle-end/90095
19938 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19939 on lowpart SUBREGs.
19940
19941 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
19942
19943 * config/arc/arc.c (arc_init): Format diagnostic string.
19944 (arc_override_options): Likewise.
19945 (check_if_valid_regno_const): Likewise.
19946 (arc_reorg): Likewise.
19947
19948 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
19949
19950 PR target/17108
19951 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19952 name.
19953 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
19954 name.
19955 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19956 (*movdi_update1): Use Pmode.
19957 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19958 (movdi_<mode>_update_stack): Rename to ...
19959 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
19960 use Pmode.
19961 (*movsi_update1): Use Pmode.
19962 (*movsi_update2): Use Pmode.
19963 (movsi_update): Rename to ...
19964 (movsi_<mode>_update): ... this. Use Pmode.
19965 (movsi_update_stack): Fix condition.
19966 (*movhi_update1): Use Pmode. Fix argument to
19967 avoiding_indexed_address_p.
19968 (*movhi_update2): Ditto.
19969 (*movhi_update3): Ditto.
19970 (*movhi_update4): Ditto.
19971 (*movqi_update1): Ditto.
19972 (*movqi_update2): Ditto.
19973 (*movqi_update3): Ditto.
19974 (*movsf_update1, *movdf_update1): Merge, rename to...
19975 (*mov<mode>_update1): This. Use Pmode. Fix argument to
19976 avoiding_indexed_address_p. Add "size" attribute.
19977 (*movsf_update2, *movdf_update2): Merge, rename to...
19978 (*mov<mode>_update2): This. Ditto.
19979 (*movsf_update3): Use Pmode. Fix argument to
19980 avoiding_indexed_address_p.
19981 (*movsf_update4): Ditto.
19982 (allocate_stack): Simplify condition. Adjust pattern names.
19983
19984 2019-04-17 Jakub Jelinek <jakub@redhat.com>
19985
19986 PR target/89093
19987 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19988 whitespace at the start of target attribute string.
19989
19990 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
19991
19992 PR target/84369
19993 * config/rs6000/power9.md: Add store forwarding bypass.
19994
19995 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
19996
19997 PR debug/89528
19998 * valtrack.c (dead_debug_insert_temp): Reset debug references
19999 to the return value of a call being removed.
20000
20001 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20002
20003 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20004 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20005 implement target hook.
20006 (arc_memory_move_cost): New function.
20007 (TARGET_REGISTER_MOVE_COST): Define.
20008 (TARGET_MEMORY_MOVE_COST): Likewise.
20009 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20010 (MEMORY_MOVE_COST): Likewise.
20011
20012 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20013
20014 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20015 (sibcall_value_insn): Likewise.
20016 * config/arc/constraints.md (Rs5): Remove.
20017
20018 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20019
20020 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20021 for last two fake registers.
20022 (arc_conditional_register_usage): Make sure fake frame and arg
20023 pointer regs are in general regs class.
20024 (FRAME_POINTER_MASK): Remove.
20025 (RETURN_ADDR_MASK): Remove.
20026 (arc_must_save_register): Use hard frame regnum.
20027 (frame_restore_reg): Use hard_frame_pointer_rtx.
20028 (arc_save_callee_saves): Likewise.
20029 (arc_restore_callee_saves): Likewise.
20030 (arc_save_callee_enter): Likewise.
20031 (arc_restore_callee_leave): Likewise.
20032 (arc_save_callee_milli): Likewise.
20033 (arc_eh_return_address_location): Likewise.
20034 (arc_check_multi): Use hard frame regnum.
20035 (arc_can_eliminate): Likewise.
20036 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20037 for register allocator.
20038 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20039 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20040 (FRAME_POINTER_REGNUM): Change it to a fake register.
20041 (HARD_FRAME_POINTER_REGNUM): Defined.
20042 (ARG_POINTER_REGNUM): Change it to a new fake register.
20043 (ELIMINABLE_REGS): Update.
20044 (REGISTER_NAMES): Update names.
20045 * config/arc/arc.md (LP_START): Remove.
20046 (LP_END): Likewise.
20047 (shift_si3_loop): Update pattern.
20048
20049 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20050
20051 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20052 to avoid delay slot scheduling.
20053 (arc_must_save_register): Don't save SP.
20054 * config/arc/arc.md (stack_tie): Remove.
20055 (UNSPEC_ARC_STKTIE): Likewise.
20056
20057 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20058 Shiva Chen <shiva0217@gmail.com>
20059
20060 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20061 code gen with large shift amount.
20062
20063 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20064
20065 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20066 subreg.
20067
20068 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20069
20070 PR target/90096
20071 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20072 print -m64/-mx32/-m32 if it is true.
20073 (ix86_debug_options, ix86_function_specific_print): Pass true as
20074 ADD_ABI_P to ix86_target_string.
20075 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20076 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20077 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20078
20079 PR rtl-optimization/90082
20080 * dce.c (can_delete_call): New function.
20081 (deletable_insn_p, mark_insn): Use it.
20082
20083 PR tree-optimization/90090
20084 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20085 throw internally.
20086 (is_division_by_square): Likewise. Formatting fix.
20087
20088 2019-04-16 Richard Biener <rguenther@suse.de>
20089
20090 PR tree-optimization/56049
20091 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20092 equality check if alias-set zero will prevail.
20093
20094 2019-04-15 Jeff Law <law@redhat.com>
20095
20096 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20097 size and alignment as unsigned.
20098
20099 2019-04-15 Richard Biener <rguenther@suse.de>
20100
20101 PR debug/90074
20102 * tree-loop-distribution.c (destroy_loop): Preserve correct
20103 debug info.
20104
20105 2019-04-15 Richard Biener <rguenther@suse.de>
20106
20107 PR tree-optimization/90071
20108 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20109 abnormal operands from def stmts.
20110
20111 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20112
20113 PR rtl-optimization/89794
20114 * combine.c (count_auto_inc): New function.
20115 (try_combine): Count how many auto_inc expressions there were in the
20116 original instructions. Ensure we have the same number in the new
20117 instructions. Remove the code that tried to ensure auto_inc side
20118 effects on i1 and i0 are not lost.
20119
20120 2019-04-15 Richard Biener <rguenther@suse.de>
20121
20122 PR ipa/88936
20123 * tree.h (auto_var_p): Declare.
20124 * tree.c (auto_var_p): New function, split out from ...
20125 (auto_var_in_fn_p): ... here.
20126 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20127 member.
20128 (new_var_info): Initialize it.
20129 (set_uids_in_ptset): Also set the shadow variable uid if required.
20130 (ipa_pta_execute): Postprocess points-to solutions assigning
20131 shadow variable uids for locals that may reach their containing
20132 function recursively.
20133 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20134 assert but instead check whether the points-to solution is
20135 a singleton.
20136
20137 2019-04-15 Martin Jambor <mjambor@suse.cz>
20138
20139 PR ipa/pr89693
20140 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20141 the thunk chain.
20142
20143 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20144
20145 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20146
20147 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20148 Kito Cheng <kito.cheng@gmail.com>
20149 Shiva Chen <shiva0217@gmail.com>
20150
20151 * config/nds32/nds32-md-auxiliary.c
20152 (nds32_legitimize_pic_address): Use new PIC pattern.
20153 (nds32_legitimize_tls_address): Use new TLS pattern.
20154 (nds32_output_symrel): New.
20155 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20156 (nds32_alloc_relax_group_id): Ditto.
20157 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20158 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20159 relax_group_id.
20160 (nds32_group_tls_insn): Ditto.
20161 (nds32_group_float_insns): Ditto.
20162 * config/nds32/nds32.md (tls_le): New.
20163 (sym_got): Ditto.
20164
20165 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20166
20167 * configure: Add nds32 target for dwarf2 debug_line checking.
20168 * configure.ac: Regenerated.
20169
20170 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20171
20172 PR lto/89358
20173 * ipa-devirt.c (skip_in_fields_list_p): New.
20174 (odr_types_equivalent_p): Use it.
20175
20176 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20177
20178 PR target/89093
20179 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20180 instead of strncmp when checking for thumb and arm. Formatting fixes.
20181
20182 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20183
20184 * doc/install.texi: Document --with-target-system-zlib.
20185
20186 2019-04-12 Martin Sebor <msebor@redhat.com>
20187
20188 PR c/88383
20189 PR c/89288
20190 PR c/89798
20191 PR c/89797
20192 * targhooks.c (default_vector_alignment): Avoid assuming
20193 argument fits in SHWI.
20194 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20195 a shift expression.
20196 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20197
20198 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20199
20200 PR rtl-optimization/89965
20201 * dce.c: Include rtl-iter.h.
20202 (struct check_argument_load_data): New type.
20203 (check_argument_load): New function.
20204 (find_call_stack_args): Check for loads from stack slots still tracked
20205 in sp_bytes and punt if any is found.
20206
20207 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20208
20209 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20210
20211 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20212 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20213
20214 2019-04-12 Martin Liska <mliska@suse.cz>
20215
20216 PR middle-end/89970
20217 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20218 in error message.
20219 (separate_attrs): Handle multiple 'default's.
20220 (expand_target_clones): Rework error handling code.
20221
20222 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20223
20224 PR target/87532
20225 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20226 mode of vector rather than mode of destination for move instruction.
20227 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20228 Use QI inner mode with V16QI vector mode.
20229
20230 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20231
20232 PR target/52726
20233 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20234 "invalid %%t operand" in output_operand_lossage message.
20235
20236 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20237
20238 * config/s390/predicates.md (permute_pattern_operand): New
20239 predicate.
20240 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20241 operand for the permute pattern.
20242 ("*vec_perm<mode>"): New insn definition.
20243 ("bswap<mode>"): Generate the permute pattern operand in the
20244 expander and perform the operand reloads for pre arch13 level
20245 already.
20246 ("*bswap<mode>_emu"): Rename to ...
20247 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20248 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20249 Add the USE operand for the permute pattern.
20250 ("*vec_set_bswap_vec<mode>"): Likewise.
20251
20252 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20253
20254 PR c/89946
20255 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20256 and gcc_unreachable if it fails, just call tree_to_uhwi which
20257 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20258 Start warning message with a lower-case letter. Formatting fixes.
20259
20260 PR rtl-optimization/90026
20261 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20262 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20263 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20264 in cfglayout mode, use emit_barrier_after_bb.
20265
20266 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20267
20268 PR rtl-optimization/87763
20269 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20270 New Instruction.
20271
20272 2019-04-11 Tom de Vries <tdevries@suse.de>
20273
20274 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20275 max macro using statement expression.
20276
20277 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20278
20279 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20280 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20281 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20282 read_only_private_data_section using xcoff_private_rodata_section_name.
20283 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20284
20285 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20286
20287 PR target/90016
20288 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20289
20290 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20291
20292 PR rtl-optimization/89965
20293 * dce.c (sp_based_mem_offset): New function.
20294 (find_call_stack_args): Use sp_based_mem_offset.
20295
20296 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20297
20298 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20299
20300 2019-04-11 Richard Biener <rguenther@suse.de>
20301
20302 PR tree-optimization/90020
20303 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20304 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20305 * tree-ssa-pre.c (compute_avail): Use it to not put
20306 possibly trapping references after a call that might not
20307 return into EXP_GEN.
20308 * gcse.c (compute_hash_table_work): Do not elide
20309 marking a block containing a call if the call might not
20310 return.
20311
20312 2019-04-11 Richard Biener <rguenther@suse.de>
20313
20314 PR tree-optimization/90018
20315 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20316 Test both SLP and interleaving variants.
20317
20318 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20319
20320 * config/s390/8561.md: New file.
20321 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20322 Add arch13 cpu model.
20323 * config/s390/s390-opts.h (enum processor_type): Likewise.
20324 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20325 (s390_get_unit_mask): Likewise.
20326 (s390_is_fpd): Likewise.
20327 (s390_is_fxd): Likewise.
20328 * config/s390/s390.h (s390_tune_attr): Likewise.
20329 * config/s390/s390.md: Include arch13 pipeline description.
20330 * config/s390/s390.opt: Add arch13.
20331
20332 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20333
20334 PR rtl-optimization/87763
20335 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20336 New prototype.
20337 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20338 New function.
20339 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20340 New instruction.
20341 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20342 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20343 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20344 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20345
20346 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20347
20348 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20349 "Although" in -fipa-icf documentation.
20350
20351 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20352 of using multiple -g options.
20353
20354 2019-04-10 Martin Liska <mliska@suse.cz>
20355
20356 PR gcov-profile/89959
20357 * doc/gcov.texi: Make documentation of -x option
20358 more precise.
20359
20360 2019-04-10 Richard Biener <rguenther@suse.de>
20361
20362 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20363 member.
20364 (DR_GROUP_SAME_DR_STMT): Remove.
20365 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20366 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20367 replace with assert.
20368 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20369 (vect_record_grouped_load_vectors): Remove unreachable code.
20370
20371 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20372
20373 PR target/90016
20374 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20375 obsolete reference to N.
20376
20377 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20378
20379 PR middle-end/90025
20380 * expr.c (store_expr): Set properly size on the MEM passed to
20381 clear_storage.
20382
20383 PR c++/90010
20384 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20385 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20386 translation is needed, and when translation is needed, only append
20387 ... if the string length is hostsz or more bytes long. Avoid using
20388 strncpy or strcat.
20389
20390 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20391
20392 PR target/90024
20393 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20394 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20395 into three.
20396 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20397 differences directly.
20398 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20399
20400 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20401
20402 PR translation/90011
20403 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20404 from diagnostics.
20405 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20406 diagnostics.
20407 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20408 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20409 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20410 trailing space from -gsplit-dwarf diagnostics.
20411
20412 PR tree-optimization/89998
20413 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20414 instead of integer_type_node if possible, don't add ranges if return
20415 type is not compatible with int.
20416 * gimple-fold.c (gimple_fold_builtin_sprintf,
20417 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20418 integer_type_node.
20419
20420 2019-04-09 Martin Liska <mliska@suse.cz>
20421
20422 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20423 * doc/install.texi: Document the new config.
20424
20425 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20426
20427 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20428 use gimple_expr_type for load and store calls. Skip over the
20429 condition argument in a conditional internal function.
20430 Protect use of TREE_INT_CST_LOW.
20431
20432 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20433
20434 PR target/90015
20435 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20436 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20437 trailing period from it too.
20438
20439 2019-04-08 wu yuan <wuyuan5@huawei.com>
20440
20441 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20442 * config/aarch64/aarch64.md : Add "tsv110.md"
20443 * config/aarch64/tsv110.md: New file.
20444
20445 2019-04-08 Richard Biener <rguenther@suse.de>
20446
20447 PR tree-optimization/90006
20448 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20449 calls like lrint.
20450
20451 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20452
20453 PR target/83033
20454 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20455 construction.
20456 (fma_root_node): Likewise.
20457 (func_fma_steering): Likewise.
20458
20459 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20460
20461 PR rtl-optimization/89865
20462 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20463
20464 PR rtl-optimization/89865
20465 * config/i386/i386.md
20466 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20467 numbers not to clash with the additional operands[4].
20468 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20469 with extra register copy in the middle.
20470
20471 2019-04-08 Martin Liska <mliska@suse.cz>
20472
20473 PR gcov-profile/89961
20474 * doc/gcov.texi: Document data_file.
20475 * gcov.c (generate_results): Add data_info into JSON output.
20476
20477 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20478
20479 PR tree-optimization/89725
20480 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20481 loop's chrec as invariant symbol.
20482 * tree-chrec.h (chrec_contains_symbols): New parameter.
20483 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20484 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20485 function of loops not in DDR's loop_nest.
20486 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20487
20488 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20489
20490 PR target/89623
20491 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20492 Mask.
20493
20494 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20495
20496 PR target/89945
20497 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20498 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20499
20500 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20501
20502 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20503 targetm.fixed_condition_code_regs.
20504
20505 2019-04-05 Richard Biener <rguenther@suse.de>
20506
20507 PR debug/89892
20508 PR debug/89905
20509 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20510 debug bind stmts but reset them if they are not valid at the
20511 destination.
20512
20513 2019-04-05 Martin Liska <mliska@suse.cz>
20514
20515 PR translation/89936
20516 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20517 order to wrap keywords or arguments.
20518 * collect2.c (main): Likewise.
20519 (scan_prog_file): Likewise.
20520 (scan_libraries): Likewise.
20521 * common/config/riscv/riscv-common.c
20522 (riscv_subset_list::parsing_subset_version): Likewise.
20523 (riscv_subset_list::parse_std_ext): Likewise.
20524 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20525 Likewise.
20526 * config/arm/arm.c (arm_option_override): Likewise.
20527 * config/cris/cris.c (cris_print_operand): Likewise.
20528 * config/darwin-c.c (darwin_pragma_options): Likewise.
20529 (darwin_pragma_unused): Likewise.
20530 (darwin_pragma_ms_struct): Likewise.
20531 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20532 * config/i386/i386.c (print_reg): Likewise.
20533 (ix86_print_operand): Likewise.
20534 * config/i386/xm-djgpp.h: Likewise.
20535 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20536 * config/m32c/m32c.c (m32c_option_override): Likewise.
20537 * config/msp430/msp430.c (msp430_option_override): Likewise.
20538 * config/nds32/nds32.c (nds32_option_override): Likewise.
20539 * config/nvptx/mkoffload.c (main): Likewise.
20540 * config/rx/rx.c (rx_print_operand): Likewise.
20541 (valid_psw_flag): Likewise.
20542 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20543 (vms_pragma_nomember_alignment): Likewise.
20544 (vms_pragma_extern_model): Likewise.
20545 * lto-wrapper.c (compile_offload_image): Likewise.
20546 * omp-offload.c (oacc_parse_default_dims): Likewise.
20547 * symtab.c (symtab_node::verify_base): Likewise.
20548 * tlink.c (recompile_files): Likewise.
20549 (start_tweaking): Likewise.
20550 * tree-profile.c (parse_profile_filter): Likewise.
20551
20552 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20553
20554 PR tree-optimization/89956
20555 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20556 multiple negates of the same value.
20557
20558 2019-04-04 Martin Sebor <msebor@redhat.com>
20559
20560 PR middle-end/89957
20561 PR middle-end/89911
20562 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20563 have the same precision since the function crashes otherwise.
20564 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20565 has non-zero arguments.
20566
20567 2019-04-04 Martin Sebor <msebor@redhat.com>
20568
20569 PR middle-end/89934
20570 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20571 out if the number of arguments is less than expected.
20572
20573 2019-04-04 Jeff Law <law@redhat.com>
20574
20575 PR rtl-optimization/89399
20576 * ree.c (combine_set_extension): Use single_set rather than
20577 digging into PATTERN for items on the candidate list.
20578 (combine_reaching_defs): Likewise.
20579
20580 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20581
20582 PR rtl-optimization/46590
20583 * loop-invariant.c (find_defs): Move df_remove_problem and
20584 df_process_deferred_rescans to move_invariants.
20585 Move df_live_add_problem and df_live_set_all_dirty calls
20586 to move_invariants.
20587 (move_invariants): Likewise.
20588 (move_loop_invariants): Likewise, making the df_live calls
20589 conditional on -O. Remove the problem again if we added it
20590 locally.
20591
20592 2019-04-03 qing zhao <qing.zhao@oracle.com>
20593
20594 PR tree-optimization/89730
20595 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20596 -flive-patching=inline-only-static.
20597 (can_inline_edge_by_limits_p): Add the checking for
20598 -flive-patching=inline-only-static and grant always_inline
20599 even when -flive-patching=inline-only-static is specified.
20600
20601 2019-04-03 Jeff Law <law@redhat.com>
20602
20603 PR rtl-optimization/81025
20604 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20605
20606 2019-04-03 Richard Biener <rguenther@suse.de>
20607
20608 PR tree-optimization/84101
20609 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20610 regs.h for hard_regno_nregs.
20611 (cfun_returns): New helper.
20612 (vect_model_store_cost): When vectorizing a store to a decl
20613 we return and the function ABI returns in a multi-reg location
20614 account for the possible spilling that will happen.
20615
20616 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20617
20618 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20619 displacement addresses for vector mode operands.
20620
20621 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20622
20623 * config/arc/arc.c (GMASK_LEN): Define.
20624 (arc_restore_callee_saves): Restore first blink when
20625 !optimize_size.
20626
20627 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20628
20629 * doc/extend.texi: Add deprecated comment on sign-return-address
20630 function attribute and add mbranch-protection.
20631 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20632
20633 2019-04-03 Richard Biener <rguenther@suse.de>
20634
20635 PR lto/89896
20636 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20637 the all target phony.
20638
20639 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20640
20641 PR target/89902
20642 PR target/89903
20643 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20644 Return false for variable DImode shifts.
20645 (dimode_scalar_chain::compute_convert_gain): Do not handle
20646 register count operand in variable DImode shifts.
20647 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20648 count argument of a variable shift instruction to a vector register.
20649 (dimode_scalar_chain::convert_reg): Remove support to convert
20650 count argument of a variable shift instruction.
20651
20652 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20653
20654 PR rtl-optimization/84206
20655 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20656 iterating over loop headers.
20657
20658 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20659
20660 PR rtl-optimization/85876
20661 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20662 beyond the original fence.
20663
20664 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20665
20666 * config.gcc: Mark spu* targets as deprecated/obsolete.
20667
20668 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20669
20670 * config/s390/s390-builtin-types.def: New builtin function type
20671 definitions. Remove unused types.
20672 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20673 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20674 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20675 overloaded builtins.
20676 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20677 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20678 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20679 (vec_double, vec_signed, vec_unsigned): Define to use the new
20680 overloaded builtins.
20681 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20682 Remove expanders.
20683
20684 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20685
20686 * config/s390/s390-builtin-types.def: New builtin function type
20687 definitions.
20688 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20689 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20690 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20691 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20692 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20693 constant definitions.
20694 * config/s390/vecintrin.h (vec_search_string_cc)
20695 (vec_search_string_until_zero_cc): New builtin name definitions.
20696 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20697 expanders.
20698 ("vec_vstrs<mode>"): New insn definition.
20699
20700 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20701
20702 * config/s390/s390-builtin-types.def: Add new builtin function
20703 types.
20704 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20705 New overloaded builtins.
20706 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20707 s390_vsrd.
20708 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20709 (UNSPEC_VEC_SLDBYTE): ... this.
20710 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20711 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20712 definitions.
20713 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20714 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20715 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20716
20717 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20718
20719 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20720 New insn definition.
20721 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20722 * config/s390/vector.md (V_HW_HSD): ... here.
20723
20724 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20725
20726 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20727 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20728 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20729 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20730 New insn definitions.
20731
20732 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20733
20734 * config/s390/s390-builtin-types.def: Add new builtin function type.
20735 * config/s390/s390-builtins.def: Add overloaded builtin
20736 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20737 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20738 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20739 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20740 ("eltswap<mode>"): New expander.
20741 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20742 insn definitions.
20743
20744 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20745
20746 * config/s390/s390-builtin-types.def: Add new builtin function types.
20747 * config/s390/s390-builtins.def: Add overloaded builtin
20748 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20749 instructions.
20750 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20751 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20752 ("bswap<mode>"): New expander.
20753 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20754
20755 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20756
20757 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20758 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20759 vector builtin version number in __VEC__.
20760
20761 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20762
20763 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20764 iterators.
20765 (SFSI): New mode attribute.
20766 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20767 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20768 rename to ...
20769 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20770 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20771 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20772 ("floatsi<mode>2"): Add wcefb instruction.
20773
20774 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20775
20776 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20777 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20778 mode iterators.
20779 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20780 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20781 support 32 bit fp-int conversions. Rename to ...
20782 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20783 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20784 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20785 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20786 ... to these.
20787
20788 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20789
20790 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20791 if-then-else constructs if we can use the select instruction.
20792 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20793
20794 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20795
20796 * config/s390/s390.md ("*popcountdi_arch13_cc")
20797 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20798 definition.
20799 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20800 Append _z196 to make it ...
20801 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20802 ("popcounthi2_z196"): ... this.
20803 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20804 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20805
20806 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20807
20808 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20809 certain compares for arch13 in order to make use of the condition
20810 code result produced by the new instructions.
20811 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20812 nxrk, and nxgrk instruction patterns.
20813 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20814 (inv_no): Add new code iterator together with some attributes.
20815 ("*andc_split_<mode>"): Disable splitter for arch13.
20816 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20817 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20818 ("*<ANDOR:bitops_name>c<GPR:mode>")
20819 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20820 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20821 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20822 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20823
20824 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20825
20826 * common/config/s390/s390-common.c (processor_flags_table): New
20827 entry for arch13.
20828 * config.gcc: Support arch13 with the --with-arch= configure flag.
20829 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20830 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20831 * config/s390/s390.c (s390_get_sched_attrmask)
20832 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20833 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20834 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20835 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20836 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20837 definitions.
20838 * config/s390/s390.opt: Support arch13 as processor type in
20839 command line options.
20840
20841 2019-04-02 Martin Liska <mliska@suse.cz>
20842
20843 PR translation/89912
20844 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20845 Fix param description of graphite-max-arrays-per-scop.
20846
20847 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20848
20849 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20850 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20851 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20852
20853 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20854
20855 PR rtl-optimization/85412
20856 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20857 sel_sched_region_1, not after.
20858
20859 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20860
20861 PR rtl-optimization/86928
20862 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20863 compute_live if necessary.
20864 (sel_redirect_edge_and_branch): Likewise.
20865
20866 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
20867
20868 PR rtl-optimization/89865
20869 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20870 register if it is a part of small class.
20871
20872 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20873
20874 PR rtl-optimization/87273
20875 * sel-sched-ir.c (merge_fences): Remove assert.
20876
20877 2019-04-01 Richard Biener <rguenther@suse.de>
20878
20879 PR tree-optimization/46590
20880 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20881 (dom_walker::m_reachability): Add in place of...
20882 (dom_walker::m_skip_unreachable_blocks): ...this.
20883 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20884 Move complex initialization ...
20885 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
20886 lazily and initialize edge flags on each invocation.
20887 (dom_walker::bb_reachable): Use m_reachability.
20888
20889 2019-04-01 Martin Liska <mliska@suse.cz>
20890
20891 PR driver/89861
20892 * opt-suggestions.c (option_proposer::build_option_suggestions):
20893 Add variant without any argument in order to provide better
20894 hints.
20895
20896 2019-04-01 Richard Biener <rguenther@suse.de>
20897
20898 PR c/71598
20899 * gimple.c: Include langhooks.h.
20900 (gimple_get_alias_set): Treat enumeral types as the underlying
20901 integer type.
20902
20903 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20904 Eric Botcazou <ebotcazou@adacore.com>
20905
20906 PR rtl-optimization/89862
20907 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20908 that operates on the full registers for WORD_REGISTER_OPERATIONS
20909 architectures.
20910
20911 2019-03-29 Jim Wilson <jimw@sifive.com>
20912
20913 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20914 Clear MASK_RVC and then set if C subset supported.
20915
20916 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20917
20918 PR c/89872
20919 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20920 non-addressable complit into its initializer if it is volatile.
20921
20922 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
20923
20924 * opts-common.c (integral_argument): Set errno properly in one case.
20925
20926 2019-03-29 Martin Liska <mliska@suse.cz>
20927
20928 * doc/invoke.texi: Remove -Wchkp from documentation.
20929
20930 2019-03-29 Martin Liska <mliska@suse.cz>
20931
20932 * dbgcnt.c (print_limit_reach): New function.
20933 (dbg_cnt): Use it.
20934
20935 2019-03-29 Martin Liska <mliska@suse.cz>
20936
20937 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20938 (dbg_cnt_process_opt): Parse first tokens aas
20939 dbg_cnt_process_single_pair is also using strtok.
20940
20941 2019-03-29 Jakub Jelinek <jakub@redhat.com>
20942
20943 PR rtl-optimization/87485
20944 * function.c (expand_function_end): Move stack_protect_epilogue
20945 before loading of return value into hard register(s).
20946
20947 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20948
20949 PR middle-end/89621
20950 * tree-inline.h (struct copy_body_data): Add
20951 dont_remap_vla_if_no_change flag.
20952 * tree-inline.c (remap_type_3, remap_type_2): New functions.
20953 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20954 and remap_type_2 returns false.
20955 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20956 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20957 only from where it is copied to nested contexts.
20958
20959 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20960
20961 PR target/89865
20962 * config/i386/i386.md (RMW operation with LEA peephole):
20963 Use LEAMODE mode attribute instead of SWI mode iterator for
20964 LEA pattern.
20965
20966 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
20967
20968 PR target/89848
20969 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20970 Also process XEXP (src, 0) of a shift insn.
20971
20972 2019-03-28 David Malcolm <dmalcolm@redhat.com>
20973
20974 PR middle-end/89725
20975 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20976 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20977
20978 2019-03-28 Jakub Jelinek <jakub@redhat.com>
20979
20980 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20981 test.
20982 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20983 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
20984 immediately after first one with df_analyze in between, but rather
20985 process all bbs, queueing ones that need second pass in a worklist,
20986 df_analyze, process queued debug insn changes and if second pass is
20987 needed, process bbs from worklist, df_analyze, process queued debug
20988 insns again.
20989
20990 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20991 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20992 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20993
20994 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
20995
20996 PR c/79022
20997 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20998 definition.
20999
21000 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21001
21002 PR target/85667
21003 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21004 function for 32-bit MS_ABI.
21005 (function_value_ms_32): New function.
21006
21007 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21008
21009 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21010 (movdi): Call gen_movdi_symbol_save_scc.
21011 (gen_movdi_symbol_save_scc): New insn and split.
21012
21013 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21014
21015 PR rtl-optimization/89313
21016 * function.c (matching_constraint_num): New static function.
21017 (match_asm_constraints_1): Use it. Fixup white space and comment.
21018 Don't replace inputs with non-matching constraints which conflict
21019 with early clobber outputs.
21020
21021 2019-03-27 Jeff Law <law@redhat.com>
21022
21023 PR rtl-optimization/87761
21024 PR rtl-optimization/89826
21025 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21026 slightly later.
21027 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21028 note problem to get REG_DEAD/REG_UNUSED notes updated.
21029
21030 2019-03-27 Richard Biener <rguenther@suse.de>
21031
21032 PR tree-optimization/89463
21033 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21034 queue edges to remove.
21035 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21036 dead stmts. Delay edge removal until PHIs are removed to
21037 make debug-stmt creation not confused by seemingly degenerate
21038 PHIs.
21039
21040 2019-03-27 Alan Modra <amodra@gmail.com>
21041
21042 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21043 throughout file.
21044 * config/rs6000/darwin.h: Likewise.
21045 * config/rs6000/rs6000.c: Likewise.
21046
21047 2019-03-27 Alan Modra <amodra@gmail.com>
21048
21049 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21050 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21051
21052 2019-03-26 Andrew Waterman <andrew@sifive.com>
21053 Jim Wilson <jimw@sifive.com>
21054
21055 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21056 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21057 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21058 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21059 (generic_alu): Add auipc to type list.
21060 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21061 (riscv_microarchitecture): Declare.
21062 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21063 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21064 field.
21065 (riscv_microarchitecture): New.
21066 (sifive_7_tune_info): New.
21067 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21068 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21069 entries.
21070 (riscv_store_data_bypass_p): New.
21071 (riscv_option_override): Set riscv_microarchitecture from
21072 cpu->microarchitecture.
21073 * config/riscv/riscv.md: Include sifive-7.md.
21074 (type): Add auipc.
21075 (tune): New.
21076 (auipc<mode>): Change type to auipc.
21077 (restore_stack_nonlocal): New.
21078 * config/riscv/sifive-7.md: New.
21079 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21080
21081 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21082
21083 PR target/89827
21084 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21085 Also process XEXP (src, 0) of a shift insn.
21086
21087 2019-03-26 Richard Biener <rguenther@suse.de>
21088
21089 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21090 (copy_debug_stmt): Likewise.
21091 (expand_call_inline): Likewise.
21092 (copy_bb): Avoid redundant lookup & set of gimple_block.
21093 * gimple-low.c (lower_gimple_return): Likewise.
21094 (lower_builtin_setjmp): Likewise.
21095
21096 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21097
21098 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21099 is constant 0, turn into static const data member initialized to false.
21100 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21101 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21102
21103 2019-03-26 Jason Merrill <jason@redhat.com>
21104 Jakub Jelinek <jakub@redhat.com>
21105
21106 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21107 method.
21108 (mem_alloc_description::release_object_overhead): Fix comment typos.
21109 * hash-table.h (hash_table::~hash_table): Call
21110 release_instance_overhead only if m_entries is non-NULL, otherwise
21111 call unregister_descriptor.
21112
21113 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21114
21115 PR tree-optimization/81740
21116 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21117 In case of outer loop vectorization, check for backward dependence
21118 at the inner loop if outer loop dependence is reversed.
21119
21120 2019-03-26 Alan Modra <amodra@gmail.com>
21121
21122 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21123 rs6000_vector_mem init. Correct wI and wJ comment.
21124
21125 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21126
21127 PR rtl-optimization/88347
21128 PR rtl-optimization/88423
21129 * sched-deps.c (sched_analyze_insn): Take into account that for
21130 tablejumps the barrier appears after a label and a jump_table_data.
21131
21132 2019-03-25 Martin Sebor <msebor@redhat.com>
21133
21134 PR c/89812
21135 * c-common.c (check_user_alignment): Rename local. Correct maximum
21136 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21137 convert it to UHWI when it fits.
21138
21139 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21140
21141 PR debug/86964
21142 * dwarf2out.c (premark_used_variables): New function.
21143 (prune_unused_types_walk): Do not mark not premarked external
21144 variables.
21145 (prune_unused_types): Call premark_used_variables.
21146
21147 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21148
21149 PR rtl-optimization/89676
21150 * lra-constraints.c (curr_insn_transform): Do match reload for
21151 early clobbers when the match was successful only for different
21152 registers.
21153
21154 2019-03-25 Martin Sebor <msebor@redhat.com>
21155
21156 * doc/extend.texi (Common Type Attributes): Document vector_size.
21157 (Common Variable Attributes): Mention size constraint. Correct
21158 quoting and typos.
21159 (Vector Extensions): Use @dfn when defining bas type. Clarify
21160 base type and size constraints.
21161
21162 2019-03-25 Richard Biener <rguenther@suse.de>
21163
21164 PR tree-optimization/89789
21165 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21166 changes from non-undefined back to undefined.
21167
21168 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21169
21170 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21171 heap string and a gc string, but since this variable is unknown to
21172 ggc the gc string might get reused and corrupted. Fixed by always
21173 using a heap string.
21174
21175 2019-03-25 Richard Biener <rguenther@suse.de>
21176
21177 PR tree-optimization/89779
21178 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21179 to remove IV defs, delay actual removal.
21180 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21181 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21182 very end, properly also reset loop control IV information.
21183
21184 2019-03-25 Richard Biener <rguenther@suse.de>
21185
21186 PR tree-optimization/89802
21187 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21188 move EH data to folded stmt.
21189
21190 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21191
21192 * config/s390/s390-builtin-types.def: Remove few unused types and
21193 fix sort order for others.
21194
21195 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21196
21197 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21198 expected and found types with -mdebug during builtin matching.
21199
21200 2019-03-25 Richard Biener <rguenther@suse.de>
21201
21202 PR middle-end/89790
21203 * fold-const.c (operand_equal_p): Revert last change with
21204 updated comment.
21205
21206 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21207
21208 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21209 notes for the result of the __tls_get_addr calls.
21210 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21211
21212 2019-03-24 Jeff Law <law@redhat.com>
21213
21214 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21215
21216 PR rtl-optimization/87761
21217 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21218 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21219 as needed.
21220 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21221 rescans. Reprocess blocks as needed, calling df_analyze before
21222 reprocessing. Always call df_analyze before fixing up debug bind
21223 insns.
21224
21225 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21226
21227 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21228 big endian.
21229
21230 2019-03-22 Andrew Pinski <apinski@marvell.com>
21231
21232 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21233 attrribute for uxtw.
21234
21235 2019-03-26 Jeff Law <law@redhat.com>
21236
21237 PR rtl-optimization/87761
21238 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21239 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21240 (mips_split_move): Accept new INSN argument. Try to forward SRC
21241 into the next instruction.
21242 (mips_split_move_insn): Pass INSN through to mips_split_move.
21243
21244 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21245
21246 PR rtl-optimization/89676
21247 * lra-constraints.c (curr_insn_transform): Do match reload for
21248 early clobbers even if the match was successful.
21249
21250 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21251
21252 PR c++/87481
21253 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21254
21255 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21256
21257 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21258
21259 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21260
21261 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21262 <avx512>_fmsub_<mode>_mask3<round_name>,
21263 <avx512>_fnmadd_<mode>_mask3<round_name>,
21264 <avx512>_fnmsub_<mode>_mask3<round_name>,
21265 avx512f_vmfmadd_<mode>_mask3<round_name>,
21266 avx512f_vmfmsub_<mode>_mask3<round_name>,
21267 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21268 instead of register_operand and %v instead of v for match_operand 1.
21269 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21270 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21271 <round_nimm_predicate> instead of register_operand and %v instead of v
21272 for match_operand 1.
21273
21274 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21275 <avx512>_fmadd_<mode>_mask3<round_name>,
21276 <avx512>_fmsub_<mode>_mask<round_name>,
21277 <avx512>_fmsub_<mode>_mask3<round_name>,
21278 <avx512>_fnmadd_<mode>_mask<round_name>,
21279 <avx512>_fnmadd_<mode>_mask3<round_name>,
21280 <avx512>_fnmsub_<mode>_mask<round_name>,
21281 <avx512>_fnmsub_<mode>_mask3<round_name>,
21282 <avx512>_fmaddsub_<mode>_mask<round_name>,
21283 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21284 <avx512>_fmsubadd_<mode>_mask<round_name>,
21285 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21286 <round_nimm_predicate> instead of nonimmediate_operand.
21287 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21288 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21289 Use register_operand instead of <round_nimm_predicate> for the
21290 operand that needs to match output.
21291 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21292 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21293 Likewise. Formatting fixes.
21294
21295 PR target/89784
21296 * config/i386/i386.c (enum ix86_builtins): Remove
21297 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21298 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21299 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21300 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21301 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21302 __builtin_ia32_vfmsubss3_mask3): New builtins.
21303 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21304 avx512f_vmfmadd_<mode>_mask3<round_name>,
21305 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21306 *avx512f_vmfmsub_<mode>_mask<round_name>,
21307 avx512f_vmfmsub_<mode>_mask3<round_name>,
21308 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21309 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21310 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21311 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21312 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21313 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21314 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21315 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21316 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21317 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21318 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21319 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21320 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21321 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21322 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21323 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21324 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21325 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21326 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21327 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21328 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21329 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21330 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21331 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21332 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21333 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21334 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21335 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21336
21337 2019-03-21 Martin Sebor <msebor@redhat.com>
21338
21339 PR tree-optimization/89350
21340 * builtins.c (compute_objsize): Also ignore offsets whose upper
21341 bound is negative.
21342 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21343 (builtin_memref::builtin_memref): Initialize new member.
21344 Allow EXPR to be null.
21345 (builtin_memref::extend_offset_range): Replace local with a member.
21346 Avoid assuming pointer offsets are unsigned.
21347 (builtin_memref::set_base_and_offset): Determine base object
21348 before computing offset range.
21349 (builtin_access::builtin_access): Handle memset.
21350 (builtin_access::generic_overlap): Replace local with a member.
21351 (builtin_access::strcat_overlap): Same.
21352 (builtin_access::overlap): Same.
21353 (maybe_diag_overlap): Same.
21354 (maybe_diag_access_bounds): Same.
21355 (wrestrict_dom_walker::check_call): Handle memset.
21356 (check_bounds_or_overlap): Same.
21357
21358 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21359 Jakub Jelinek <jakub@redhat.com>
21360
21361 PR lto/89692
21362 * tree.c (fld_type_variant, fld_incomplete_type_of,
21363 fld_process_array_type): Call fld->pset.add and don't call
21364 add_tree_to_fld_list if it returns true.
21365 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21366 non-marked types from TYPE_NEXT_VARIANT list.
21367 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21368
21369 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21370
21371 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21372 to false, if true, don't alloc_entries during construction, but defer
21373 it to the first method that needs m_entries allocated.
21374 (hash_table::hash_table, hash_table::~hash_table,
21375 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21376 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21377 hash_table::clear_slot, hash_table::traverse_noresize,
21378 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21379 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21380 false.
21381 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21382 NO_INSERT instead of find_with_hash.
21383 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21384 hash_set::m_table): Add Lazy to template params of hash_table.
21385 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21386 * attribs.c (test_attribute_exclusions): Likewise.
21387 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21388 hash_set. Add tests for hash_set with Lazy = true.
21389
21390 2019-03-21 Richard Biener <rguenther@suse.de>
21391
21392 PR tree-optimization/89779
21393 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21394 checks with respect to released SSA names now having error_mark_node
21395 type.
21396 * fold-const.c (operand_equal_p): Likewise.
21397
21398 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21399
21400 PR target/89775
21401 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21402 available to ...
21403 (s390_optimize_register_info): Use global_not_special_regno_p to
21404 check for global regs.
21405
21406 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21407
21408 PR target/89752
21409 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21410 update this_alternative nor this_alternative_set.
21411
21412 2019-03-19 Jim Wilson <jimw@sifive.com>
21413
21414 PR target/89411
21415 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21416 align, size, offset. Use them to handle a BLKmode reference. Update
21417 comment.
21418 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21419
21420 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21421
21422 PR rtl-optimization/89768
21423 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21424 instead of GEN_INT.
21425 (unroll_loop_runtime_iterations): Likewise.
21426
21427 2019-03-19 Martin Sebor <msebor@redhat.com>
21428
21429 PR tree-optimization/89644
21430 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21431 rather than endptr as an indicator of nul-termination.
21432
21433 PR tree-optimization/89644
21434 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21435 arrays in determining sequence sizes in strncpy and stpncpy.
21436
21437 2019-03-19 Martin Liska <mliska@suse.cz>
21438
21439 PR middle-end/89737
21440 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21441 unlikely_edges if there's an edge that belongs to both these sets.
21442
21443 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21444
21445 PR target/89746
21446 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21447 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21448 go via a stack temporary.
21449
21450 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21451
21452 PR target/89378
21453 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21454 instead of gen_rtx_SUBREG.
21455 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21456
21457 2019-03-19 Richard Biener <rguenther@suse.de>
21458
21459 PR debug/88389
21460 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21461
21462 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21463
21464 PR lto/87809
21465 PR lto/89335
21466 * tree.c (free_lang_data_in_decl): Do not free context of C++
21467 destrutors.
21468
21469 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21470
21471 PR target/89506
21472 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21473 subs for the first alternative except when operands[3] is 1.
21474
21475 PR target/89752
21476 * gimplify.c (gimplify_asm_expr): For output argument with
21477 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21478 diagnose error.
21479
21480 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21481
21482 PR rtl-optimization/89753
21483 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21484 explicit unrolling factor even more robust.
21485
21486 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21487
21488 PR target/89726
21489 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21490 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21491 signed zeros, do another copysign after the compensation.
21492
21493 2019-03-18 Martin Sebor <msebor@redhat.com>
21494
21495 PR tree-optimization/89720
21496 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21497 more conservatively, the same as anti-range.
21498
21499 2019-03-18 Richard Biener <rguenther@suse.de>
21500
21501 PR middle-end/88945
21502 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21503 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21504 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21505 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21506
21507 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21508
21509 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21510 Extend queue to 1024 entries.
21511 Add "consumed" field.
21512 (gomp_print_output): Remove print_index parameter.
21513 Add final parameter.
21514 Change limit to unsigned.
21515 Use consumed field to implement circular buffer.
21516 Detect interrupted print in final pass.
21517 Flush output at the end.
21518 (run): Update gomp_print_output usage.
21519 (main): Initialize kernargs->output_data.consumed.
21520
21521 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21522
21523 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21524 calculation of the minimum number of scalar iterations for
21525 fully-predicated loops.
21526
21527 2019-03-18 Martin Jambor <mjambor@suse.cz>
21528
21529 PR tree-optimization/89546
21530 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21531 any propagation to its children took place.
21532
21533 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21534
21535 PR target/89627
21536 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21537 parameter, and make use of it.
21538 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21539
21540 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21541
21542 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21543 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21544 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21545 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21546 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21547 match what the ops is doing.
21548 (push_multi_fp_blink): Likewise.
21549 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21550 compiling for size and elf target.
21551 (arc_save_callee_enter): Adjust note to match what enter/leave
21552 operation does.
21553
21554 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21555
21556 * config/arc/arc.md (tst_movb): Fix constraint.
21557
21558 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21559
21560 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21561
21562 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21563
21564 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21565 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21566 reg_alloc_order references.
21567 (size_alloc_order): Define.
21568 (arc_adjust_reg_alloc_order): New function.
21569 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21570 order.
21571 (ADJUST_REG_ALLOC_ORDER): Define.
21572 (HONOR_REG_ALLOC_ORDER): Likewise.
21573
21574 2019-03-18 Richard Biener <rguenther@suse.de>
21575
21576 PR target/87561
21577 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21578 loads and stores a bit more.
21579
21580 2019-03-18 Richard Biener <rguenther@suse.de>
21581
21582 PR target/87561
21583 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21584 load pessimization to stores as well.
21585
21586 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21587
21588 PR middle-end/86979
21589 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21590 successor, use NULL as its av set.
21591
21592 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21593
21594 PR rtl-optimization/89721
21595 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21596
21597 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21598
21599 PR target/87532
21600 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21601 When handling vec_extract, use modular arithmetic to allow
21602 constant selectors greater than vector length.
21603 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21604 V1TImode vectors to have constant selector values greater than 0.
21605 Use modular arithmetic to compute vector index.
21606 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21607 index for in-memory vectors. Correct code generation for
21608 in-register vectors.
21609 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21610 compute index.
21611
21612 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21613
21614 PR c++/88534
21615 PR c++/88537
21616 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21617 VAR_DECL args.
21618
21619 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21620
21621 PR c++/89709
21622 * tree.c (inchash::add_expr): Strip any location wrappers.
21623 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21624 after hash verification.
21625
21626 PR debug/89704
21627 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21628 SIGN_EXTEND and ZERO_EXTEND.
21629
21630 2019-03-14 Jason Merrill <jason@redhat.com>
21631 Jakub Jelinek <jakub@redhat.com>
21632
21633 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21634 than if is_empty (*slot).
21635 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21636 existing elt and for elt removal.
21637 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21638 of already removed elt.
21639
21640 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21641
21642 PR target/89650
21643 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21644 REG_EH_REGION note.
21645
21646 2019-03-14 Martin Liska <mliska@suse.cz>
21647
21648 PR other/89712
21649 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21650
21651 2019-03-14 Richard Biener <rguenther@suse.de>
21652
21653 PR target/89711
21654 * config/i386/i386.c (make_resolver_func): Properly set
21655 DECL_CONTEXT on the RESULT_DECL.
21656 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21657
21658 2019-03-14 Richard Biener <rguenther@suse.de>
21659
21660 * gimple-pretty-print.c: Include cfgloop.h.
21661 (dump_gimple_phi): Adjust.
21662 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21663 (pp_cfg_jump): Adjust.
21664 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21665 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21666 (lower_phi_internal_fn): Remove.
21667 (verify_gimple_call): Remove IFN_PHI special-casing.
21668 (dump_function_to_file): Dump IL state.
21669 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21670 done to deal with PHI nodes being present in non-SSA state.
21671
21672 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21673
21674 PR ipa/89684
21675 * multiple_target.c (create_dispatcher_calls): Change
21676 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21677 In the node->iterate_referring loop, push *ref rather than ref, call
21678 ref->remove_reference () and always pass 0 to iterate_referring.
21679
21680 PR rtl-optimization/89679
21681 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21682 would contain a paradoxical SUBREG.
21683
21684 2019-03-14 Richard Biener <rguenther@suse.de>
21685
21686 PR tree-optimization/89710
21687 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21688 safe_dyn_cast.
21689
21690 2019-03-14 Martin Liska <mliska@suse.cz>
21691
21692 * coverage.c (coverage_begin_function): Stream also
21693 end_column.
21694 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21695 documentation about function declaration location.
21696 * gcov-dump.c (tag_function): Print whole range
21697 of function declaration.
21698 * gcov.c (struct function_info): Add end_column field.
21699 (function_info::function_info): Initialize it.
21700 (output_json_intermediate_file): Output {start,end}_column
21701 fields.
21702 (read_graph_file): Read end_column.
21703
21704 2019-03-14 Richard Biener <rguenther@suse.de>
21705
21706 PR middle-end/89698
21707 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21708 that the access types are similar.
21709
21710 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21711
21712 PR tree-optimization/89703
21713 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21714 aren't compatible also with builtin_decl_explicit. Check pure
21715 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21716 and BUILT_IN_STPNCPY{,_CHK}.
21717
21718 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21719
21720 PR target/89523
21721 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21722 addr32 prefix to VSIB address for X32.
21723 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21724 "%M2" to opcode.
21725 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21726 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21727 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21728 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21729 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21730 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21731 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21732 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21733 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21734 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21735 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21736 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21737 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21738 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21739 (*avx512f_scatterdi<mode>): Likewise.
21740
21741 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21742
21743 PR target/85860
21744 * lra-constraints.c (inherit_in_ebb): Update
21745 potential_reload_hard_regs along with live_hard_regs.
21746
21747 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21748
21749 PR debug/89498
21750 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21751 DWARF_OFFSET_SIZE.
21752 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21753
21754 2019-03-13 Martin Sebor <msebor@redhat.com>
21755
21756 PR tree-optimization/89662
21757 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21758 has a size.
21759
21760 2019-03-13 Richard Biener <rguenther@suse.de>
21761
21762 PR middle-end/89677
21763 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21764 throw FP expressions at tree-affine.
21765
21766 2019-03-14 Richard Biener <rguenther@suse.de>
21767
21768 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21769 dump negative integer constants using _Literal (type) -num.
21770
21771 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21772
21773 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21774 nonlocal_value member.
21775
21776 PR middle-end/88588
21777 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21778 (ipa_simd_modify_function_body): Handle PHIs.
21779
21780 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21781
21782 * config/s390/s390.c (s390_option_override_internal): Use more
21783 aggressive inlining parameters.
21784
21785 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21786
21787 * config/s390/3906.md: New file.
21788 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21789 (LONGRUNNING_THRESHOLD): Remove.
21790 (MAX_SCHED_MIX_SCORE): Decrease.
21791 (MAX_SCHED_MIX_DISTANCE): Decrease.
21792 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21793 (struct s390_sched_state): New struct to hold scheduling state.
21794 (S390_SCHED_STATE_NORMAL): Remove.
21795 (S390_SCHED_STATE_CRACKED): Remove.
21796 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21797 (s390_get_sched_attrmask): Use new attribute.
21798 (s390_get_unit_mask): Use new units.
21799 (s390_is_fpd): New function.
21800 (s390_is_fxd): New function.
21801 (s390_is_longrunning): New function.
21802 (s390_sched_score): Use new functions.
21803 (s390_sched_reorder): Likewise.
21804 (s390_sched_variable_issue): Rework and use new functions.
21805 (s390_sched_init): Use new functions.
21806 * config/s390/s390.h (s390_tune_attr): Add z14.
21807 * config/s390/s390.md: Add z14.
21808
21809 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21810
21811 * config/s390/2964.md: Update pipeline description.
21812 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21813 (LONGRUNNING_THRESHOLD): Remove.
21814 (LATENCY_FACTOR): Remove.
21815 (s390_get_unit_mask): Add unit.
21816 (s390_sched_score): Use fxd/fpd.
21817 (s390_sched_variable_issue): Use fxd/fpd.
21818
21819 2019-03-12 Martin Liska <mliska@suse.cz>
21820
21821 * config/i386/i386.c: Reword an error message.
21822
21823 2019-03-12 Martin Jambor <mjambor@suse.cz>
21824
21825 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21826 terminate with newline.
21827
21828 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21829
21830 PR target/52726
21831 * config/s390/s390.md (tabort): Use %wd instead of
21832 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21833 letters and periods.
21834 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21835 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21836 's with %< and %>.
21837
21838 PR middle-end/89663
21839 * builtins.c (expand_builtin_int_roundingfn,
21840 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21841 gcc_unreachable if validate_arglist fails.
21842
21843 2019-03-12 Richard Biener <rguenther@suse.de>
21844
21845 PR tree-optimization/89664
21846 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21847 free the occurance tree after the early out.
21848
21849 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21850
21851 PR middle-end/89655
21852 PR bootstrap/89656
21853 * vr-values.c (vr_values::update_value_range): If
21854 old_vr->varying_p (), don't update it, make new_vr also VARYING
21855 and return false.
21856
21857 2019-03-11 Martin Liska <mliska@suse.cz>
21858
21859 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21860 Fix double string quoting.
21861
21862 2019-03-11 Martin Liska <mliska@suse.cz>
21863
21864 * collect-utils.c (collect_wait): Wrap apostrophes
21865 in gcc internal format with %'.
21866 * collect2.c (main): Likewise.
21867 (scan_prog_file): Likewise.
21868 (scan_libraries): Likewise.
21869 * config/i386/i386.c (ix86_expand_call): Likewise.
21870 (ix86_handle_interrupt_attribute): Likewise.
21871 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21872 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21873 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21874 * lto-wrapper.c (find_crtoffloadtable): Likewise.
21875 * symtab.c (symtab_node::verify_base): Likewise.
21876 * tree-cfg.c (verify_gimple_label): Likewise.
21877 * tree.c (verify_type_variant): Likewise.
21878
21879 2019-03-11 Martin Liska <mliska@suse.cz>
21880
21881 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21882 in a string format message and fix GNU coding style.
21883 (expand_builtin_set_thread_pointer): Likewise.
21884 * common/config/aarch64/aarch64-common.c
21885 (aarch64_rewrite_selected_cpu): Likewise.
21886 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21887 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21888 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21889 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21890 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21891 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21892 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21893 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21894 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21895 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21896 Likewise.
21897 * common/config/riscv/riscv-common.c
21898 (riscv_subset_list::parsing_subset_version): Likewise.
21899 (riscv_subset_list::parse_std_ext): Likewise.
21900 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21901 (riscv_subset_list::parse): Likewise.
21902 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21903 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21904 (aarch64_override_options_internal): Likewise.
21905 (aarch64_validate_mcpu): Likewise.
21906 (aarch64_validate_march): Likewise.
21907 (aarch64_validate_mtune): Likewise.
21908 (aarch64_override_options): Likewise.
21909 * config/alpha/alpha.c (alpha_option_override): Likewise.
21910 * config/arc/arc.c (arc_init): Likewise.
21911 (parse_mrgf_banked_regs_option): Likewise.
21912 (arc_override_options): Likewise.
21913 (arc_expand_builtin_aligned): Likewise.
21914 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21915 (arm_expand_builtin): Likewise.
21916 * config/arm/arm.c (arm_option_check_internal): Likewise.
21917 (arm_configure_build_target): Likewise.
21918 (arm_option_override): Likewise.
21919 (arm_options_perform_arch_sanity_checks): Likewise.
21920 (arm_handle_cmse_nonsecure_entry): Likewise.
21921 (arm_handle_cmse_nonsecure_call): Likewise.
21922 (arm_tls_referenced_p): Likewise.
21923 (thumb1_expand_prologue): Likewise.
21924 * config/avr/avr.c (avr_option_override): Likewise.
21925 * config/bfin/bfin.c (bfin_option_override): Likewise.
21926 * config/c6x/c6x.c (c6x_option_override): Likewise.
21927 * config/cr16/cr16.c (cr16_override_options): Likewise.
21928 * config/cris/cris.c (cris_option_override): Likewise.
21929 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21930 * config/darwin-c.c (macosx_version_as_macro): Likewise.
21931 * config/darwin.c (darwin_override_options): Likewise.
21932 * config/frv/frv.c (frv_expand_builtin): Likewise.
21933 * config/h8300/h8300.c (h8300_option_override): Likewise.
21934 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21935 (ix86_option_override_internal): Likewise.
21936 (warn_once_call_ms2sysv_xlogues): Likewise.
21937 (ix86_expand_prologue): Likewise.
21938 (split_stack_prologue_scratch_regno): Likewise.
21939 (ix86_warn_parameter_passing_abi): Likewise.
21940 * config/ia64/ia64.c (fix_range): Likewise.
21941 * config/m68k/m68k.c (m68k_option_override): Likewise.
21942 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21943 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21944 (mips_set_compression_mode): Likewise.
21945 * config/mmix/mmix.c (mmix_option_override): Likewise.
21946 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21947 * config/msp430/msp430.c (msp430_option_override): Likewise.
21948 * config/nds32/nds32.c (nds32_option_override): Likewise.
21949 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21950 (nios2_option_override): Likewise.
21951 (nios2_expand_custom_builtin): Likewise.
21952 * config/nvptx/mkoffload.c (main): Likewise.
21953 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21954 * config/pa/pa.c (fix_range): Likewise.
21955 (pa_option_override): Likewise.
21956 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21957 (riscv_option_override): Likewise.
21958 * config/rl78/rl78.c (rl78_option_override): Likewise.
21959 * config/rs6000/aix61.h: Likewise.
21960 * config/rs6000/aix71.h: Likewise.
21961 * config/rs6000/aix72.h: Likewise.
21962 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21963 * config/rs6000/freebsd64.h: Likewise.
21964 * config/rs6000/linux64.h: Likewise.
21965 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21966 (rs6000_expand_zeroop_builtin): Likewise.
21967 (rs6000_expand_mtfsb_builtin): Likewise.
21968 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21969 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21970 (rs6000_invalid_builtin): Likewise.
21971 (rs6000_expand_split_stack_prologue): Likewise.
21972 * config/rs6000/rtems.h: Likewise.
21973 * config/rx/rx.c (valid_psw_flag): Likewise.
21974 (rx_expand_builtin): Likewise.
21975 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21976 * config/s390/s390.c (s390_expand_builtin): Likewise.
21977 (s390_function_profiler): Likewise.
21978 (s390_option_override_internal): Likewise.
21979 (s390_option_override): Likewise.
21980 * config/sh/sh.c (sh_option_override): Likewise.
21981 (sh_builtin_saveregs): Likewise.
21982 (sh_fix_range): Likewise.
21983 * config/sh/vxworks.h: Likewise.
21984 * config/sparc/sparc.c (sparc_option_override): Likewise.
21985 * config/spu/spu.c (spu_option_override): Likewise.
21986 (fix_range): Likewise.
21987 * config/visium/visium.c (visium_option_override): Likewise.
21988 (visium_handle_interrupt_attr): Likewise.
21989 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21990 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21991 (dbg_cnt_process_opt): Likewise.
21992 * dwarf2out.c (output_dwarf_version): Likewise.
21993 * except.c (expand_eh_return): Likewise.
21994 * gcc.c (defined): Likewise.
21995 (driver_handle_option): Likewise.
21996 (process_command): Likewise.
21997 (compare_files): Likewise.
21998 (driver::prepare_infiles): Likewise.
21999 (driver::do_spec_on_infiles): Likewise.
22000 (driver::maybe_run_linker): Likewise.
22001 * omp-offload.c (oacc_parse_default_dims): Likewise.
22002 * opts-global.c (handle_common_deferred_options): Likewise.
22003 * opts.c (parse_sanitizer_options): Likewise.
22004 (common_handle_option): Likewise.
22005 (enable_warning_as_error): Likewise.
22006 * passes.c (enable_disable_pass): Likewise.
22007 * plugin.c (parse_plugin_arg_opt): Likewise.
22008 (default_plugin_dir_name): Likewise.
22009 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22010 (default_pch_valid_p): Likewise.
22011 * toplev.c (init_asm_output): Likewise.
22012 (process_options): Likewise.
22013 (toplev::run_self_tests): Likewise.
22014 * tree-cfg.c (verify_gimple_call): Likewise.
22015 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22016 (tree_inlinable_function_p): Likewise.
22017 * var-tracking.c (vt_find_locations): Likewise.
22018
22019 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22020
22021 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22022 only on the else branch.
22023
22024 2019-03-11 Martin Liska <mliska@suse.cz>
22025
22026 * gcov.c (output_intermediate_json_line): Print function
22027 name of each line.
22028 (output_json_intermediate_file): Add new argument.
22029 * doc/gcov.texi: Document the change.
22030
22031 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22032
22033 PR rtl-optimization/89588
22034 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22035 explicit unrolling factor more robust.
22036
22037 2019-03-11 Richard Biener <rguenther@suse.de>
22038
22039 PR tree-optimization/89649
22040 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22041 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22042 on the prolog and epilog loops.
22043 (vect_loop_versioning): Return copy of loop.
22044 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22045 on the non-vectorized version of the loop.
22046
22047 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22048
22049 PR target/68924
22050 * config/i386/sse.md (*vec_extractv2di_0_sse):
22051 Add (=r,x) alternative and corresponding splitter.
22052
22053 2019-03-10 Martin Jambor <mjambor@suse.cz>
22054
22055 PR tree-optimization/85762
22056 PR tree-optimization/87008
22057 PR tree-optimization/85459
22058 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22059 it points to if there is a type changing MEM_REF. Adjust all callers.
22060 (build_accesses_from_assign): Disable total scalarization if
22061 contains_vce_or_bfcref_p returns true through the new parameter, for
22062 both rhs and lhs.
22063
22064 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22065
22066 PR c/88568
22067 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22068 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22069
22070 PR target/79645
22071 * common.opt (fdiagnostics-show-labels,
22072 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22073 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22074 gas-locview-support, ginline-points, ginternal-reset-location-views):
22075 Terminate description text with a dot.
22076 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22077 * config/mcore/mcore.opt (m210, m340): Likewise.
22078 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22079 mnops=): Start description text with a capital letter.
22080 * config/arc/arc.opt (msize-level=): Likewise.
22081 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22082 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22083 mnewlib): Likewise.
22084 * config/ft32/ft32.opt (msim): Likewise.
22085 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22086 (mnodiv, mnopm): Terminate description text with a dot.
22087 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22088 a colon.
22089 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22090 Likewise.
22091 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22092 text.
22093
22094 PR rtl-optimization/89634
22095 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22096 are modified in BB_END (e->src) instruction.
22097
22098 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22099
22100 PR target/79926
22101 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22102 messages more amenable to translation, and improve wording.
22103
22104 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22105
22106 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22107 ud- and du-chains between phases.
22108
22109 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22110
22111 PR debug/89631
22112 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22113 instead of POLY_INT_CST.
22114
22115 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22116
22117 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22118 requirement.
22119
22120 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22121
22122 PR target/68924
22123 PR target/78782
22124 PR target/87558
22125 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22126 (_mm_storeu_si64): Ditto.
22127
22128 2019-03-08 Martin Liska <mliska@suse.cz>
22129
22130 PR target/86952
22131 * config/i386/i386.c (ix86_option_override_internal): Disable
22132 jump tables when retpolines are used.
22133
22134 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22135
22136 PR go/63560
22137 * ipa-split.c (execute_split_functions): Do not split
22138 'noinline' or 'section' function.
22139
22140 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22141
22142 PR target/79846
22143 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22144 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22145 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22146
22147 PR ipa/80000
22148 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22149 from diagnostics. Formatting fixes.
22150
22151 PR target/85665
22152 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22153 warn_odr diagnostics.
22154
22155 PR other/80058
22156 * lra-constraints.c (process_alt_operands): Avoid one space before
22157 " at the end of line and another after " on another line in a string
22158 literal.
22159 * attribs.c (handle_dll_attribute): Likewise.
22160 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22161
22162 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22163 warning_at or inform messages in G_() if there is no ?:.
22164
22165 PR tree-optimization/89550
22166 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22167 returned true. Formatting fixes.
22168 (expand_builtin_strnlen): Formatting fixes.
22169 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22170 if warning_at returned true.
22171 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22172
22173 2019-03-08 Richard Biener <rguenther@suse.de>
22174
22175 PR middle-end/89578
22176 * cfgloop.h (struct loop): Add owned_clique field.
22177 * cfgloopmanip.c (copy_loop_info): Copy it.
22178 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22179 cliques.
22180 * tree-inline.c (copy_loops): Remap owned_clique.
22181 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22182 * lto-streamer-out.c (output_cfg): Likewise.
22183
22184 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22185
22186 PR target/80190
22187 * config/darwin.c: Include intl.h.
22188 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22189 composing the message out of two separate parts.
22190
22191 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22192
22193 PR target/80003
22194 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22195 doesn't start with a capital letter and doesn't end with a dot.
22196 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22197 with a capital letter.
22198 (ix86_mangle_function_version_assembler_name): Likewise.
22199 (ix86_generate_version_dispatcher_body): Likewise.
22200 (fold_builtin_cpu): Likewise.
22201 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22202 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22203 translators, wrap full type name in %qs.
22204
22205 PR translation/79999
22206 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22207 depend clause with source (or sink) modifier.
22208 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22209
22210 PR target/89602
22211 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22212 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22213 (avx512f_load<mode>_mask): New define_expand.
22214 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22215 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22216 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22217 __builtin_ia32_movess_mask): New builtins.
22218 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22219 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22220 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22221 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22222
22223 2019-03-07 Martin Jambor <mjambor@suse.cz>
22224
22225 PR lto/87525
22226 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22227 for extern inline functions.
22228
22229 2019-03-07 Martin Jambor <mjambor@suse.cz>
22230
22231 PR ipa/88235
22232 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22233 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22234 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22235 have multiple callees. At the end check if declarations match as
22236 opposed to cgraph_nodes.
22237
22238 2019-03-07 Martin Liska <mliska@suse.cz>
22239
22240 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22241 which is equivalent to searching for this in clones chain.
22242 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22243 names with a neighbour and special case first node in a chain.
22244
22245 2019-01-25 Jason Merrill <jason@redhat.com>
22246
22247 PR c++/80916 - spurious "static but not defined" warning.
22248 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22249 for an internal symbol with DECL_EXTERNAL.
22250
22251 2019-04-07 Richard Biener <rguenther@suse.de>
22252
22253 PR middle-end/89618
22254 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22255 * tree-inline.c (copy_loops): Simplify.
22256
22257 2019-03-07 Martin Liska <mliska@suse.cz>
22258
22259 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22260
22261 2019-03-07 Richard Biener <rguenther@suse.de>
22262
22263 PR tree-optimization/89595
22264 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22265 stmt iterator as reference, take boolean output parameter to
22266 indicate whether the stmt was removed and thus the iterator
22267 already advanced.
22268 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22269 stmts created by folding.
22270
22271 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22272
22273 PR c++/89585
22274 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22275 at toplevel.
22276
22277 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22278
22279 PR rtl-optimization/88845
22280 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22281 LRA.
22282 * lra.c (remove_scratches_1): New function.
22283 (remove_scratches): Use it.
22284 (lra_emit_move): Likewise.
22285
22286 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22287
22288 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22289 unaligned_access variable.
22290 * config/arc/arc.c (arc_override_options): Set unaligned access
22291 default on for HS CPUs.
22292 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22293
22294 2019-03-06 Martin Liska <mliska@suse.cz>
22295
22296 PR gcov-profile/89577
22297 * doc/gcov.texi: Prefer to use --coverage.
22298 * doc/sourcebuild.texi: Likewise.
22299
22300 2019-03-02 Jason Merrill <jason@redhat.com>
22301
22302 PR c++/86485 - -Wmaybe-unused with empty class ?:
22303 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22304
22305 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22306
22307 PR target/89587
22308 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22309 if_multiarch.
22310
22311 PR middle-end/89590
22312 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22313 exactly one argument.
22314
22315 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22316 Richard Sandiford <richard.sandiford@arm.com>
22317
22318 PR tree-optimization/89570
22319 * match.pd (vec_cond into cond_op simplification): Don't use
22320 get_conditional_internal_fn, use as_internal_fn (cond_op).
22321
22322 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22323
22324 PR target/89222
22325 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22326 to decide when to split off a non-zero offset from a symbol.
22327 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22328 in function symbols.
22329
22330 2019-03-05 Richard Biener <rguenther@suse.de>
22331
22332 PR tree-optimization/89594
22333 * tree-if-conv.c (pass_if_conversion::execute): Handle
22334 case where .LOOP_VECTORIZED_FUNCTION was removed.
22335
22336 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22337
22338 PR bootstrap/89560
22339 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22340 instead alloca it only when needed with the needed size.
22341
22342 PR tree-optimization/89570
22343 * match.pd (vec_cond into cond_op simplification): Guard with
22344 vectorized_internal_fn_supported_p test and #if GIMPLE.
22345
22346 PR tree-optimization/89566
22347 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22348 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22349 Punt if get_user_idx_format succeeds, but idx_format argument is
22350 not provided or doesn't have pointer type, or if idx_args is above
22351 number of provided arguments.
22352
22353 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22354
22355 PR tree-optimization/89437
22356 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22357
22358 2019-03-04 Richard Biener <rguenther@suse.de>
22359
22360 PR middle-end/89572
22361 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22362 safe_dyn_cast.
22363
22364 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22365
22366 PR tree-optimization/89487
22367 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22368 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22369 (distribute_loop): Don't do runtime alias check if there is non-
22370 addressable data reference.
22371 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22372 is a register variable.
22373
22374 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22375
22376 PR target/89506
22377 * config/arm/arm.md (cmpsi2_addneg): Use
22378 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22379 If operands[2] is 0 or INT_MIN, force use of subs.
22380 (*compare_scc splitter): Use gen_int_mode.
22381 (*negscc): Likewise.
22382 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22383
22384 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22385 Monk Chiang <sh.chiang04@gmail.com>
22386
22387 * common/config/riscv/riscv-common.c: Include sstream.
22388 (riscv_subset_list::to_string): New.
22389 (riscv_arch_str): Likewise.
22390 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22391 * config.in: Regen.
22392 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22393 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22394 (riscv_emit_attribute): New.
22395 (riscv_file_start): Emit attribute if needed.
22396 (riscv_option_override): Init riscv_emit_attribute_p.
22397 * config/riscv/riscv.opt (mriscv-attribute): New option.
22398 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22399 * configure: Regen.
22400 * doc/install.texi: Document --with-riscv-attribute.
22401 * doc/invoke.texi: Document -mriscv-attribute.
22402
22403 * common/config/riscv/riscv-common.c:
22404 Include config/riscv/riscv-protos.h.
22405 (INCLUDE_STRING): Defined.
22406 (RISCV_DONT_CARE_VERSION): Defined.
22407 (riscv_subset_t): Declare.
22408 (riscv_subset_t::riscv_subset_t): New.
22409 (riscv_subset_list): Declare.
22410 (riscv_subset_list::riscv_subset_list): New.
22411 (riscv_subset_list::~riscv_subset_list): Likewise.
22412 (riscv_subset_list::parsing_subset_version): Likewise.
22413 (riscv_subset_list::parse_std_ext): Likewise.
22414 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22415 (riscv_subset_list::add): Likewise.
22416 (riscv_subset_list::lookup): Likewise.
22417 (riscv_subset_list::xlen): Likewise.
22418 (riscv_subset_list::parse): Likewise.
22419 (riscv_supported_std_ext): Likewise.
22420 (current_subset_list): Likewise.
22421 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22422 parse.
22423
22424 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22425
22426 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22427 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22428 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22429
22430 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22431
22432 PR rtl-optimization/85899
22433 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22434 fallthru edges leading to the exit block.
22435
22436 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22437
22438 PR target/89517
22439 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22440 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22441
22442 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22443
22444 PR tree-optimization/89535
22445 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22446 for each operand. Calculate the fallback choice for mask operands
22447 and pass it to vect_get_vec_def_for_operand.
22448
22449 2019-03-01 Richard Biener <rguenther@suse.de>
22450
22451 PR middle-end/89541
22452 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22453 get virtual operands.
22454 (get_expr_operands): Handle CONST_DECL like other decls.
22455
22456 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22457
22458 PR middle-end/89503
22459 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22460 on DECL_P and EXPR_P.
22461
22462 2019-03-01 Richard Biener <rguenther@suse.de>
22463
22464 PR middle-end/89497
22465 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22466 argument, defaulted to zero.
22467 * passes.c (execute_function_todo): Pass down SSA update flags
22468 to cleanup_tree_cfg.
22469 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22470 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22471 form if requested.
22472 (cleanup_tree_cfg): Get and pass down SSA update flags.
22473
22474 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22475
22476 PR bootstrap/89539
22477 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22478 early_lto_debug argument.
22479
22480 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22481
22482 PR tree-optimization/89536
22483 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22484 only whether bit #0 of the value is 0 instead of the entire value.
22485
22486 2019-02-28 Marek Polacek <polacek@redhat.com>
22487
22488 PR c++/87068 - missing diagnostic with fallthrough statement.
22489 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22490 at the end of a seq, save its location to walk_stmt_info.
22491 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22492 a switch.
22493
22494 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22495
22496 PR lto/88585
22497 * tree.c (find_atomic_core_type): Move ahead in file.
22498 (check_base_type): Correctly compare alignments of atomic types.
22499
22500 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22501
22502 PR target/89455
22503 * config/i386/i386.c (get_builtin_code_for_version): Identify
22504 Westmere from PCLMUL, instead of AES.
22505
22506 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22507
22508 PR target/89434
22509 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22510 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22511 -UINTVAL (...).
22512
22513 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22514
22515 PR target/88530
22516 * config/aarch64/aarch64-option-extensions.def: Document it.
22517 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22518 if empty hwcaps.
22519
22520 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22521
22522 PR c/89520
22523 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22524 builtins if they don't have a single scalar floating point argument.
22525 Formatting fixes.
22526
22527 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22528
22529 PR rtl-optimization/89490
22530 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22531 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22532 block section is not mergeable.
22533
22534 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22535
22536 PR target/70341
22537 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22538 old define_insn to ...
22539 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22540 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22541 Rename old define_insn to ...
22542 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22543 (thumb2_casesi_internal_pic): New define_expand. Rename old
22544 define_insn to ...
22545 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22546 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22547 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22548
22549 2019-02-27 Richard Biener <rguenther@suse.de>
22550
22551 PR debug/88878
22552 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22553
22554 2019-02-27 Richard Biener <rguenther@suse.de>
22555
22556 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22557 building.
22558
22559 2019-02-27 Richard Biener <rguenther@suse.de>
22560
22561 PR debug/88878
22562 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22563 parameter, prefix section name with .gnu.debuglto_ if true.
22564 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22565 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22566
22567 2019-02-27 Richard Biener <rguenther@suse.de>
22568
22569 PR debug/89514
22570 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22571 rather than on use_debug_types, doing what output_die does.
22572 (value_format): Likewise.
22573
22574 2019-02-27 Martin Jambor <mjambor@suse.cz>
22575 Martin Sebor <msebor@redhat.com>
22576
22577 * doc/invoke.texi (Warning Options): Reword description of
22578 -Wno-absolute-value.
22579
22580 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22581
22582 PR tree-optimization/89280
22583 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22584 builtin_setjmp_setup_bb): New functions.
22585 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22586 When visiting __builtin_setjmp_setup block, queue in special
22587 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22588 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22589 from visited after the loop if they don't have any visited successor
22590 blocks.
22591
22592 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22593
22594 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22595 New function.
22596 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22597
22598 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22599
22600 PR c++/89507
22601 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22602 with types other than sizetype/ssizetype.
22603
22604 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22605
22606 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22607 (enum sparc_processor_type): ...this.
22608 (enum sparc_code_model_type): New enumeration type.
22609 (enum sparc_memory_model_type): Tweak comments.
22610 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22611 (mtune): Likewise.
22612 (mcmodel): Use sparc_code_model enumeration and variable.
22613 (sparc_code_model): New enumeration.
22614 (mdebug): Add Undocumented marker.
22615 * config/sparc/sparc.h (enum cmodel): Delete.
22616 (sparc_cmodel): Likewise.
22617 (TARGET_CM_MEDLOW): Adjust to above renaming.
22618 (TARGET_CM_MEDMID): Likewise.
22619 (TARGET_CM_MEDANY): Likewise.
22620 (TARGET_CM_EMBMEDANY): Likewise.
22621 * config/sparc/sparc.c (sparc_cmodel): Delete.
22622 (sparc_option_override): Remove string/value mapping support for the
22623 code model. Move code and memory model support to after the handling
22624 of target flags. Do private machine setup last.
22625 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22626 (sparc_legitimize_reload_address): Likewise.
22627 (sparc_output_mi_thunk): Likewise.
22628 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22629
22630 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22631
22632 PR tree-optimization/89500
22633 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22634 (handle_builtin_strlen): Remove noncst_bound variable. Always
22635 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22636 cst if the first cst bytes starting at x are known to be non-zero,
22637 even if the string is not zero terminated. Don't try to modify
22638 *si for strnlen. Update strlen_to_stridx only for strlen or if
22639 we can prove strnlen returns the same value as strlen would.
22640
22641 2019-02-26 Martin Liska <mliska@suse.cz>
22642
22643 * alloc-pool.h (struct pool_usage): Remove extra
22644 print_dash_line.
22645 * bitmap.h (struct bitmap_usage): Likewise.
22646 * ggc-common.c (struct ggc_usage): Likewise.
22647 * mem-stats.h (struct mem_usage): Likewise.
22648 (mem_alloc_description::dump): Print dash lines
22649 here and repeat header at the end of a table report.
22650 It's then more readable.
22651 * tree-phinodes.c (phinodes_print_statistics): Make
22652 horizontal alignment.
22653 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22654 * vec.c (struct vec_usage): Remove extra print_dash_line.
22655 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22656
22657 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22658
22659 * doc/extend.texi (__builtin_object_size):
22660 Use @pxref instead of @xref inside parenthesis.
22661 (__builtin_has_attribute): Add missing comma after @xref.
22662 (__builtin_object_size): Ditto.
22663 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22664
22665 2019-02-26 Jeff Law <law@redhat.com>
22666
22667 PR rtl-optimization/87761
22668 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22669 detect obviously dead insns and delete them.
22670
22671 2019-02-26 Richard Biener <rguenther@suse.de>
22672
22673 PR tree-optimization/89505
22674 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22675 to handle restrict pointed-to vars with multiple subvars
22676 correctly.
22677
22678 2019-02-26 Richard Biener <rguenther@suse.de>
22679
22680 PR tree-optimization/89489
22681 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22682
22683 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22684
22685 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22686 and move around comment.
22687 <BIT_AND_EXPR>: Likewise.
22688 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22689
22690 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22691
22692 PR target/89474
22693 * config/i386/i386.c (remove_partial_avx_dependency): Call
22694 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22695 after changing possibly many instructions to use that pseudo. Fix up
22696 insertion of v4sf_const0 setter at the start of bb.
22697
22698 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22699
22700 PR c/80409
22701 * doc/extend.texi (Variadic Pointer Args): New section.
22702
22703 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22704 Martin Sebor <msebor@gmail.com>
22705
22706 * common.opt (Wattribute-alias): Likewise.
22707 * doc/invoke.texi (Option Summary): List general form of
22708 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22709 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22710 Add cross-references.
22711 (-Wattribute-alias): Rewrite and correct default. Mention
22712 considered attributes (same as for -Wmissing-attributes).
22713
22714 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22715
22716 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22717 (_mm_cvtpd_ps): Likewise.
22718 (_mm_cvttpd_epi32): Likewise.
22719
22720 PR target/89338
22721 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22722 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22723
22724 PR target/89339
22725 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22726
22727 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22728
22729 PR target/88530
22730 * common/config/aarch64/aarch64-common.c
22731 (struct aarch64_option_extension): Add is_synthetic.
22732 (all_extensions): Use it.
22733 (TARGET_OPTION_INIT_STRUCT): Define hook.
22734 (struct gcc_targetm_common): Moved to end.
22735 (all_extensions_by_on): New.
22736 (opt_ext_cmp, typedef opt_ext): New.
22737 (aarch64_option_init_struct): New.
22738 (aarch64_contains_opt): New.
22739 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22740 * config/aarch64/aarch64-option-extensions.def
22741 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22742 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22743 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22744 Set is_synthetic to false.
22745 (crypto): Set is_synthetic to true.
22746 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22747 SYNTHETIC.
22748
22749 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22750
22751 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22752 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22753 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22754 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22755 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22756 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22757 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22758 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22759 Rename ...
22760 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22761 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22762 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22763 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22764 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22765 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22766 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22767 vfmlsl_laneq_high_f16): ... To this.
22768 * config/arm/neon.md: Update comments.
22769
22770 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22771
22772 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22773 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22774 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22775 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22776 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22777 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22778 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22779 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22780 Rename ...
22781 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22782 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22783 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22784 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22785 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22786 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22787 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22788 vfmlslq_laneq_high_f16): ... To this.
22789
22790 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22791
22792 PR rtl-optimization/86096
22793 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22794 comparing mw_order values.
22795
22796 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22797
22798 PR target/89434
22799 * config/arm/arm.md (*subsi3_carryin_const): Use
22800 arm_neg_immediate_operand predicate instead of
22801 arm_not_immediate_operand, "L" constraint instead of "K" and
22802 print it using %n2 instead of %B2.
22803 (*subsi3_carryin_const0): New define_insn.
22804 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22805 instead of arm_not_operand and "I" constraint instead of "K" and
22806 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22807 another match_operand and in the condition check that it is negation
22808 of operands[2].
22809 (*subsi3_carryin_compare_const0): New define_ins.
22810 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22811 *subsi3_carryin_const.
22812 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22813 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22814
22815 PR target/89438
22816 * config/arm.vfp.md (*negdf2_vfp): Use
22817 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22818 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22819
22820 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22821
22822 PR rtl-optimization/89445
22823 * simplify-rtx.c (simplify_ternary_operation): Don't use
22824 simplify_merge_mask on operands that may trap.
22825 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22826 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22827 second operand is CONST_VECTOR, check if any element could be zero.
22828 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22829 their operands can trap.
22830
22831 2019-02-23 Martin Sebor <msebor@redhat.com>
22832
22833 * gimple-ssa-sprintf.c (target_strtol): Rename...
22834 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22835 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22836 check for range error.
22837
22838 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22839
22840 PR driver/69471
22841 * opts-common.c (prune_options): Also prune joined switches
22842 with Negative and RejectNegative.
22843 * config/i386/i386.opt (march=): Add Negative(march=).
22844 (mtune=): Add Negative(mtune=).
22845 * doc/options.texi: Document Negative used together with Joined
22846 and RejectNegative.
22847
22848 2019-02-22 Martin Sebor <msebor@redhat.com>
22849
22850 * doc/extend.texi (Other Builtins): Add
22851 __builtin_is_constant_evaluated.
22852
22853 2019-02-22 Richard Biener <rguenther@suse.de>
22854
22855 PR tree-optimization/87609
22856 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22857
22858 2019-02-22 Jeff Law <law@redhat.com>
22859
22860 PR rtl-optimization/87761
22861 * config/mips/mips.md: Add new combiner pattern to recognize
22862 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22863
22864 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
22865
22866 PR target/89324
22867 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22868 destination register in peepholes generating patterns for ADDS/SUBS.
22869 (add<mode>3_compare0,
22870 *addsi3_compare0_uxtw, add<mode>3_compareC,
22871 add<mode>3_compareV_imm, add<mode>3_compareV,
22872 *adds_<optab><ALLX:mode>_<GPI:mode>,
22873 *subs_<optab><ALLX:mode>_<GPI:mode>,
22874 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22875 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22876 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22877 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22878 sub<mode>3_compare1): Allow stack pointer for source register.
22879 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22880
22881 2019-02-22 Martin Sebor <msebor@redhat.com>
22882
22883 PR tree-optimization/88993
22884 PR tree-optimization/88853
22885 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22886 New helper.
22887 (sprintf_dom_walker::call_info::is_string_func): New helper.
22888 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22889 for formatted string functions.
22890 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22891
22892 2019-02-22 Martin Sebor <msebor@redhat.com>
22893
22894 PR c/89425
22895 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22896 unreachable subexpressions.
22897
22898 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
22899 Hongtao Liu <hongtao.liu@intel.com>
22900 Sunil K Pandey <sunil.k.pandey@intel.com>
22901
22902 PR target/87007
22903 * config/i386/i386-passes.def: Add
22904 pass_remove_partial_avx_dependency.
22905 * config/i386/i386-protos.h
22906 (make_pass_remove_partial_avx_dependency): New.
22907 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22908 New function.
22909 (pass_data_remove_partial_avx_dependency): New.
22910 (pass_remove_partial_avx_dependency): Likewise.
22911 (make_pass_remove_partial_avx_dependency): Likewise.
22912 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22913 (*extendsfdf2): Add avx_partial_xmm_update.
22914 (truncdfsf2): Likewise.
22915 (*float<SWI48:mode><MODEF:mode>2): Likewise.
22916 (SF/DF conversion splitters): Disabled for TARGET_AVX.
22917
22918 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
22919
22920 PR middle-end/85598
22921 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22922 analysis for pass.
22923
22924 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
22925
22926 PR target/89444
22927 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22928 (PTA_SKYLAKE): Add PTA_AES.
22929 (PTA_GOLDMONT): Likewise.
22930
22931 2019-02-22 Sudakshina Das <sudi.das@arm.com>
22932
22933 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22934 instruction if enabled.
22935 (aarch64_override_options): Remove reference to return address key.
22936
22937 2019-02-22 Richard Biener <rguenther@suse.de>
22938
22939 PR tree-optimization/89440
22940 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22941 not necessary assert.
22942
22943 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
22944
22945 PR fortran/72741
22946 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22947 (oacc_replace_fn_attrib_attr): ... this new function.
22948 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22949 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22950
22951 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22952
22953 * config/arm/arm-cpus.in (ares): Rename to...
22954 (neoverse-n1): ... This. Add ares as alias.
22955 * config/arm/arm-tables.opt: Regenerate.
22956 * config/arm/arm-tune.md: Likewise.
22957 * doc/invoke.txt (ARM Options): Document neoverse-n1.
22958
22959 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22960
22961 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22962 * config/aarch64/aarch64-tune.md: Regenerate.
22963 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22964
22965 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22966
22967 * config/aarch64/aarch64.c (ares_tunings): Rename to...
22968 (neoversen1_tunings): ... This.
22969 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22970 (neoverse-n1): New CPU.
22971 * config/aarch64/aarch64-tune.md: Regenerate.
22972 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22973
22974 2019-02-22 Richard Biener <rguenther@suse.de>
22975
22976 PR middle-end/87609
22977 * cfghooks.h (dependence_hash): New typedef.
22978 (struct copy_bb_data): New type.
22979 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22980 (duplicate_block): Likewise.
22981 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22982 (copy_bbs): Create and pass down copy_bb_data.
22983 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22984 (rtl_duplicate_bb): Likewise.
22985 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22986 remap dependence info.
22987
22988 2019-02-22 Richard Biener <rguenther@suse.de>
22989
22990 PR tree-optimization/87609
22991 * tree-core.h (tree_base): Document special clique values.
22992 * tree-inline.c (remap_dependence_clique): Do not use the
22993 special clique value of one.
22994 (maybe_set_dependence_info): Use clique one.
22995 (clear_dependence_clique): New callback.
22996 (compute_dependence_clique): Clear clique one from all refs
22997 before assigning it (again).
22998
22999 2019-02-21 Martin Sebor <msebor@redhat.com>
23000
23001 * doc/extend.texi (__clear_cache): Correct signature.
23002
23003 2019-02-21 Ian Lance Taylor <iant@golang.org>
23004
23005 PR go/89170
23006 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23007 than output_constant_def.
23008 (add_constant_to_table): New static function.
23009 (output_constant_def): Call add_constant_to_table.
23010 (tree_output_constant_def): Likewise.
23011
23012 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23013
23014 PR c++/89285
23015 * builtins.c (fold_builtin_arith_overflow): If first two args are
23016 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23017 to ifn.
23018
23019 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23020
23021 PR target/87412
23022 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23023 error for -mindirect-branch/-mfunction-return with incompatible
23024 -fcf-protection.
23025
23026 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23027
23028 PR bootstrap/88714
23029 * constraints.md (q): Remove.
23030 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23031 instead of q.
23032
23033 2019-02-21 Martin Jambor <mjambor@suse.cz>
23034
23035 PR hsa/89302
23036 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23037 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23038 (omp_adjust_for_condition): ...here. Added necessary parameters.
23039 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23040 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23041 proper values to new parameters of omp_adjust_for_condition.
23042
23043 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23044
23045 PR middle-end/89412
23046 * expr.c (expand_assignment): If result is a MEM, use change_address
23047 instead of simplify_gen_subreg.
23048
23049 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23050 David Malcolm <dmalcolm@redhat.com>
23051
23052 PR middle-end/89091
23053 * fold-const.c (decode_field_reference): Return NULL_TREE if
23054 lang_hooks.types.type_for_size returns NULL. Check it before
23055 overwriting *exp_. Use return NULL_TREE instead of return 0.
23056
23057 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23058
23059 PR middle-end/88074
23060 PR middle-end/89415
23061 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23062 buggy mpc_norm.
23063
23064 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23065
23066 PR target/89397
23067 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23068 TARGET_SSE in addition to TARGET_SSE_MATH.
23069
23070 (ix86_excess_precision): Ditto.
23071 (ix86_float_exceptions_rounding_supported_p): Ditto.
23072 (use_rsqrt_p): Ditto.
23073 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23074
23075 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23076
23077 PR c/89410
23078 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23079 linenum_arith_t when determining if two adjacent line spans are
23080 close enough to merge.
23081 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23082 lines within each line_span.
23083
23084 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23085
23086 PR target/86487
23087 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23088 paradoxical SUBREGS.
23089
23090 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23091
23092 PR target/88100
23093 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23094 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23095 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23096 range checking it.
23097
23098 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23099
23100 * config/gcn/gcn.c (print_operand): Fix typo.
23101
23102 2019-02-19 Richard Biener <rguenther@suse.de>
23103
23104 PR middle-end/88074
23105 * toplev.c (do_compile): Initialize mpfr's exponent range
23106 based on available float modes.
23107
23108 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23109
23110 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23111 as long as the epilogue isn't completed.
23112
23113 2019-02-18 Martin Sebor <msebor@redhat.com>
23114
23115 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23116 __has_cpp_attribute, and __has_include.
23117
23118 2019-02-18 Martin Sebor <msebor@redhat.com>
23119
23120 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23121
23122 2019-02-18 Martin Sebor <msebor@redhat.com>
23123
23124 PR middle-end/89294
23125 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23126 expression.
23127 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23128
23129 2019-02-18 Richard Biener <rguenther@suse.de>
23130
23131 PR tree-optimization/89296
23132 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23133 of no-warning flag to cases that might emit the bogus warning.
23134
23135 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23136
23137 PR bootstrap/88714
23138 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23139 "q" constraint.
23140 * config/arm/vfp.md (*movdi_vfp): Likewise.
23141 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23142 "q" constraint for operands[0].
23143
23144 PR target/89369
23145 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23146 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23147 pattern in a temporary buffer.
23148 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23149 than 64-operands[2].
23150
23151 PR target/89361
23152 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23153 s390_indirect_branch_settings): Define unconditionally.
23154 (s390_set_current_function): Likewise, but guard the whole body except
23155 the s390_indirect_branch_settings call with
23156 #if S390_USE_TARGET_ATTRIBUTE.
23157 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23158
23159 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23160 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23161 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23162 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23163 HOST_WIDE_INT_1U instead of 1ULL.
23164 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23165 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23166 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23167 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23168 instead of 1UL.
23169 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23170 instead of 1ul.
23171
23172 2019-02-18 Martin Jambor <mjambor@suse.cz>
23173
23174 PR tree-optimization/89209
23175 * tree-sra.c (create_access_replacement): New optional parameter
23176 reg_tree. Use it as a type if non-NULL and access type is not of
23177 a register type.
23178 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23179 to create_access_replacement.
23180 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23181 Check lacc is non-NULL before attempting to re-create it on the RHS.
23182
23183 2019-02-18 Martin Liska <mliska@suse.cz>
23184
23185 PR ipa/89306
23186 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23187 by default.
23188 (symbol_table::free_edge): Recycle m_summary_id.
23189 * cgraph.h (get_summary_id): New.
23190 (symbol_table::release_symbol): Set m_summary_id to -1
23191 by default.
23192 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23193 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23194 function_summary to fast_function_summary.
23195 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23196 * ipa-pure-const.c (class funct_state_summary_t):
23197 Switch from function_summary to fast_function_summary.
23198 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23199 (class ipa_ref_opt_summary_t): Switch from function_summary
23200 to fast_function_summary.
23201 * symbol-summary.h (class function_summary_base): New class
23202 that is created from base of former function_summary.
23203 (function_summary_base::unregister_hooks): New.
23204 (class function_summary): Inherit from function_summary_base.
23205 (class call_summary_base): New class
23206 that is created from base of former call_summary.
23207 (class call_summary): Inherit from call_summary_base.
23208 (struct is_same): New.
23209 (class fast_function_summary): New summary class.
23210 (class fast_call_summary): New summary class.
23211 * vec.h (vec_safe_grow_cleared): New function.
23212
23213 2019-02-18 Martin Liska <mliska@suse.cz>
23214
23215 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23216 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23217 * doc/tm.texi: Document new target hook.
23218 * doc/tm.texi.in: Likewise.
23219 * target.def: Add new target macro.
23220 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23221 suffixes.
23222
23223 2019-02-17 Alan Modra <amodra@gmail.com>
23224
23225 PR target/89271
23226 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23227 output reg on add insn.
23228 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23229
23230 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23231
23232 PR target/89372
23233 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23234 (PMULHRSW): Likewise.
23235 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23236 TARGET_AVX2.
23237 (ssse3_pmulhrswv4hi3): New expander.
23238
23239 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23240
23241 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23242 MMX. Add isa attribute.
23243
23244 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23245
23246 PR rtl-optimization/66152
23247 * builtins.h (c_readstr): Declare.
23248 * builtins.c (c_readstr): Remove forward declaration. Add
23249 null_terminated_p argument, if false, read all bytes from the
23250 string instead of stopping after '\0'.
23251 * expr.c (string_cst_read_str): New function.
23252 (store_expr): Use string_cst_read_str instead of
23253 builtin_strncpy_read_str. Try to store by pieces the whole
23254 exp_len first, and only if that fails, split it up into
23255 store by pieces followed by clear_storage. Formatting fix.
23256
23257 * config/i386/i386.md (*movqi_internal): Remove static from
23258 buf variable. Use output_asm_insn (buf, operands); return "";
23259 instead of return buf;.
23260 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23261 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23262 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23263
23264 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23265
23266 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23267 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23268 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23269 (CC1_SPEC): Likewise.
23270 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23271
23272 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23273
23274 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23275 the base address on 64-bit strict-alignment platforms.
23276
23277 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23278
23279 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23280
23281 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23282
23283 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23284
23285 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23286
23287 PR rtl-optimization/88308
23288 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23289 on copied instruction.
23290
23291 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23292
23293 * final.c (insn_current_reference_address): Replace test on JUMP_P
23294 with test on jump_to_label_p.
23295 * config/visium/visium-passes.def: New file.
23296 * config/visium/t-visium (PASSES_EXTRA): Define.
23297 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23298 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23299 (TRAMPOLINE_ALIGNMENT): Define.
23300 * config/visium/visium.c (visium_option_override): Do not register
23301 the machine-specific reorg pass here.
23302 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23303 for the GR6.
23304 (output_branch): Adjust threshold for long branch instruction.
23305 * config/visium/visium.md (cpu): Move around.
23306 (length): Adjust for the GR6.
23307
23308 2019-02-15 Richard Biener <rguenther@suse.de>
23309 Jakub Jelinek <jakub@redhat.com>
23310
23311 PR tree-optimization/89278
23312 * tree-loop-distribution.c: Include tree-eh.h.
23313 (generate_memset_builtin, generate_memcpy_builtin): Call
23314 rewrite_to_non_trapping_overflow on builtin->size before passing it
23315 to force_gimple_operand_gsi.
23316
23317 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23318
23319 PR other/89342
23320 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23321 optimize_debug.
23322 * opth-gen.awk: Likewise.
23323
23324 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23325
23326 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23327 Enable MMX, SSE and SSE2 by default.
23328 * config/i386/i386.c (ix86_option_override_internal): Do not
23329 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23330
23331 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23332
23333 PR rtl-optimization/89354
23334 * combine.c (make_extraction): Punt if extraction_mode is narrower
23335 than len bits.
23336
23337 2019-02-14 Maya Rashish <coypu@sdf.org>
23338
23339 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23340 * config/netbsd-d.c: New file.
23341 * config/t-netbsd: Add netbsd-d.o
23342
23343 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23344
23345 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23346 affects_type_identity to true for aarch64_vector_pcs.
23347 (aarch64_comp_type_attributes): New function.
23348 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23349
23350 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23351
23352 PR target/88850
23353 * config/arm/iterators.md (ANY64): Add V4HF.
23354
23355 2019-02-14 Martin Liska <mliska@suse.cz>
23356
23357 PR rtl-optimization/89242
23358 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23359 process a transformation.
23360
23361 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23362
23363 PR tree-optimization/89314
23364 * fold-const.c (fold_binary_loc): Cast strlen argument to
23365 const char * before dereferencing it. Formatting fixes.
23366
23367 PR middle-end/89284
23368 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23369
23370 2019-02-13 Ian Lance Taylor <iant@golang.org>
23371
23372 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23373 and set current index for other optimizations.
23374
23375 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23376
23377 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23378 nonimmediate_operand as operand 2 predicate.
23379 (vec_set<VF2_512_256:mode>_0): Ditto.
23380 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23381 (*vec_concatv2si): Remove alternative 2.
23382 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23383 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23384 (vec_concatv2di): Split alternatives 4,5,6 to ...
23385 (*vec_concatv2di_0) ... new pattern.
23386
23387 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23388
23389 PR target/89190
23390 * config/arm/arm.c (ldm_stm_operation_p) Set
23391 addr_reg_in_reglist correctly for first register.
23392 (load_multiple_sequence): Remove dead base check.
23393 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23394
23395 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23396
23397 PR target/88847
23398 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23399 Expose as @aarch64_pred_mov.
23400 * config/aarch64/aarch64.c (aarch64_classify_address):
23401 Use expand_insn which legitimizes operands.
23402
23403 2019-02-13 Martin Liska <mliska@suse.cz>
23404
23405 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23406 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23407 and pointer_offset fields.
23408 (initialize_argument_information): Remove usage of dead
23409 fields.
23410 * cgraph.h (struct cgraph_thunk_info): Remove
23411 add_pointer_bounds_args.
23412 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23413 fields.
23414 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23415 fields.
23416 * config/i386/i386.c (ix86_function_arg_advance): Remove
23417 unrelated comment.
23418 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23419 (def_builtin): Remove usage of dead fields.
23420 (ix86_add_new_builtins): Likewise.
23421 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23422 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23423 (sem_function::init): Likewise.
23424 (sem_variable::merge): Likewise.
23425 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23426 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23427 * lto-cgraph.c (lto_output_node): Likewise.
23428 (lto_output_varpool_node): Likewise.
23429 (input_node): Likewise.
23430 (input_varpool_node): Likewise.
23431 * lto-streamer-out.c (lto_output): Likewise.
23432 * tree-inline.c (expand_call_inline): Remove usage of
23433 assign_stmts.
23434 * tree-inline.h (struct copy_body_data): Likewise.
23435 * varpool.c (varpool_node::dump): Likewise.
23436
23437 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23438
23439 PR middle-end/89303
23440 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23441 into pt->vars_contains_escaped_heap instead of setting
23442 pt->vars_contains_escaped_heap to it.
23443
23444 PR middle-end/89281
23445 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23446 INTVAL (size), compare it to GET_MODE_MASK instead of
23447 1 << GET_MODE_BITSIZE.
23448
23449 PR target/89290
23450 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23451 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23452 -mcmodel=large.
23453
23454 2019-02-13 Martin Liska <mliska@suse.cz>
23455
23456 PR lto/88858
23457 * cfgrtl.c (remove_barriers_from_footer): New function.
23458 (try_redirect_by_replacing_jump): Use it.
23459 (cfg_layout_redirect_edge_and_branch): Likewise.
23460
23461 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23462
23463 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23464 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23465 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23466 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23467 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23468 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23469 New BU_CRYPTO_2.
23470 * config/rs6000/rs6000.c (builtin_function_type)
23471 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23472 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23473 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23474 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23475 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23476
23477 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23478
23479 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23480 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23481
23482 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23483
23484 PR target/89229
23485 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23486 268678 and revision 268657.
23487 (*movti_internal): Likewise.
23488
23489 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23490
23491 PR target/89233
23492 * config/s390/s390.c (s390_decompose_address): Update comment.
23493 (s390_check_qrst_address): Reject invalid address forms after
23494 LRA.
23495
23496 2019-02-12 Martin Liska <mliska@suse.cz>
23497
23498 PR lto/88876
23499 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23500 we need default values of funct_state for a function that
23501 is not optimized.
23502
23503 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23504
23505 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23506 the object to pick the size of stores on strict-alignment platforms.
23507
23508 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23509 (*movdi_insn_sp32): Likewise.
23510 (*movdi_insn_sp64): Likewise.
23511
23512 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23513
23514 PR lto/88677
23515 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23516 types that needs constructiong.
23517 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23518
23519 2019-02-12 Richard Biener <rguenther@suse.de>
23520
23521 PR tree-optimization/89253
23522 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23523 duplicate the loop.
23524
23525 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23526
23527 PR lto/88147
23528 * input.c (selftest::test_line_offset_overflow): New selftest.
23529 (selftest::input_c_tests): Call it.
23530
23531 2019-02-11 Martin Sebor <msebor@redhat.com>
23532
23533 PR tree-optimization/88771
23534 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23535 when -Wstringop-overflow is set.
23536 (builtin_memref::builtin_memref): Adjust excessive upper bound
23537 only when lower bound is not excessive.
23538 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23539 -Wstringop-ovefflow.
23540 (maybe_diag_offset_bounds): Rename...
23541 (maybe_diag_access_bounds): ...to this.
23542 (check_bounds_or_overlap): Adjust for name change above.
23543
23544 2019-02-11 Martin Sebor <msebor@redhat.com>
23545
23546 PR c++/87996
23547 * builtins.c (max_object_size): Move from here...
23548 * builtins.h (max_object_size): ...and here...
23549 * tree.c (max_object_size): ...to here...
23550 * tree.h (max_object_size): ...and here.
23551
23552 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23553
23554 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23555 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23556 for correct semantics.
23557
23558 2019-02-11 Alan Modra <amodra@gmail.com>
23559
23560 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23561 -mlongcall and -mpltseq.
23562 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23563 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23564 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23565 * config/rs6000/sysv4.opt (mpltseq): New option.
23566 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23567 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23568 support is lacking. Don't allow -mpltseq with -mbss-plt.
23569 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23570 -mpltseq given for ELFv1.
23571 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23572 Only use UNSPEC_PLTSEQ for inline PLT calls.
23573 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23574 use UNSPEC_PLTSEQ for inline PLT calls.
23575 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23576 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23577 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23578 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23579 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23580 (pltseq_mtctr_<mode>): Likewise.
23581
23582 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23583
23584 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23585 Solaris ld.
23586 * configure: Regenerate.
23587
23588 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23589
23590 PR bootstrap/88714
23591 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23592 instead of r.
23593
23594 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23595
23596 * function.c (assign_parm_setup_block): Use the stored
23597 size, not the passed size, when allocating stack-space,
23598 also for a parameter with alignment larger than
23599 MAX_SUPPORTED_STACK_ALIGNMENT.
23600
23601 2019-02-11 Martin Liska <mliska@suse.cz>
23602
23603 PR ipa/89009
23604 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23605 * ipa-inline.c (inline_small_functions): Likewise.
23606 * ipa-pure-const.c (propagate_pure_const): Likewise.
23607 (propagate_nothrow): Likewise.
23608 * ipa-reference.c (propagate): Likewise.
23609 * ipa-utils.c (struct searchc_env): Remove unused field.
23610 (searchc): Always search across AVAIL_INTERPOSABLE.
23611 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23612 the only called IPA pure const can properly not propagate
23613 across interposable boundary.
23614 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23615
23616 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23617
23618 * config/nds32/nds32.md (call_internal, call_value_internal,
23619 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23620
23621 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23622
23623 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23624 typo.
23625
23626 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23627
23628 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23629 in comments
23630
23631 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23632
23633 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23634
23635 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23636
23637 PR tree-optimization/89268
23638 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23639 if preds is non-NULL.
23640
23641 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23642
23643 PR lto/89272
23644 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23645 polymorphic types.
23646
23647 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23648
23649 * config/nds32/nds32.md (trap): New pattern.
23650
23651 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23652
23653 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23654 dwarf span.
23655
23656 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23657
23658 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23659 to split POST_INC.
23660
23661 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23662
23663 * ipa-visibility.c (localize_node): Also do not localize
23664 LDPR_PREVAILING_DEF_IRONLY_EXP.
23665
23666 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23667
23668 PR lto/87957
23669 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23670 instead of type_with_linkage.
23671
23672 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23673
23674 PR ipa/88755
23675 * params.def (uninlined-function-insns, uninlined-function-time,
23676 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23677 bound so we don't get overflows.
23678
23679 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23680
23681 * config/rs6000/rs6000-string.c (expand_compare_loop,
23682 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23683 memcmp/strncmp.
23684
23685 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23686
23687 PR middle-end/89246
23688 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23689 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23690 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23691
23692 2019-02-09 Alan Modra <amodra@gmail.com>
23693
23694 PR target/88343
23695 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23696 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23697 setup.
23698
23699 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23700
23701 PR middle-end/88560
23702 * lra-constraints.c (process_alt_operands): Don't increase reject
23703 for memory when offset memory is required.
23704
23705 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23706
23707 * config/s390/vector.md: Implement vector copysign.
23708
23709 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23710
23711 * expr.c (expand_constructor): Correct indentations.
23712
23713 2019-02-08 Richard Biener <rguenther@suse.de>
23714
23715 PR tree-optimization/89247
23716 * tree-if-conv.c: Include tree-cfgcleanup.h.
23717 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23718 (tree_if_conversion): Pass through predicate vector.
23719 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23720 inline, see if any if-converted loops we refrece in
23721 LOOP_VECTORIZED calls vanished and fixup.
23722 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23723
23724 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23725
23726 * config/s390/constraints.md (jdd): New constraint.
23727
23728 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23729
23730 PR target/89229
23731 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23732 upper 16 vector registers without TARGET_AVX512VL.
23733 (*movti_internal): Likewise.
23734
23735 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23736
23737 PR rtl-optimization/89234
23738 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23739 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23740 (copy_reg_eh_region_note_backward): Likewise.
23741
23742 2019-02-08 Richard Biener <rguenther@suse.de>
23743
23744 PR middle-end/89223
23745 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23746 doesn't fit in HWI.
23747 (analyze_subscript_affine_affine): Handle failure from
23748 initialize_matrix_A.
23749
23750 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23751
23752 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23753 cfun everywhere.
23754
23755 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23756
23757 PR tree-optimization/86637
23758 PR tree-optimization/89235
23759 * tree-vect-loop.c (optimize_mask_stores): Add an
23760 auto_purge_vect_location sentinel to ensure that vect_location is
23761 purged on exit.
23762 * tree-vectorizer.c
23763 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23764 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23765 to ensure that vect_location is purged on exit.
23766 (pass_slp_vectorize::execute): Likewise, replacing the manual
23767 reset.
23768 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23769
23770 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23771
23772 * config/aarch64/iterators.md (max_opp): New code_attr.
23773 (USMAX): New code iterator.
23774 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23775 (aarch64_smax): Likewise.
23776 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23777 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23778 MINUS (MAX MIN).
23779
23780 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23781
23782 PR target/89229
23783 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23784 for TARGET_AVX512VL.
23785 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23786
23787 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23788
23789 * config/s390/s390-builtin-types.def: Add new types.
23790 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23791 (s390_vec_xlw4): Make the memory operand into a const pointer.
23792 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23793 float.
23794 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23795 a new vector type with the alignment of the scalar memory operand.
23796
23797 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23798 Jakub Jelinek <jakub@redhat.com>
23799
23800 PR bootstrap/88714
23801 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23802 arm_count_ldrdstrd_insns): New declarations.
23803 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23804 MINUS.
23805 (valid_operands_ldrd_strd): New function.
23806 (arm_count_ldrdstrd_insns): New function.
23807 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23808 sets instead of single DImode set and define new insns to match this.
23809
23810 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23811
23812 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23813 Make it a C initializer.
23814
23815 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23816
23817 PR/target 88850
23818 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23819
23820 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23821
23822 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23823 Use neon_dot<q> for type.
23824 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23825
23826 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23827
23828 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23829 Use neon_dot<q> for type.
23830 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23831 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23832
23833 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23834
23835 PR rtl-optimization/89225
23836 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23837 sizes check.
23838
23839 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23840
23841 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23842 after restoring registers saved to allocate the frame on Windows.
23843
23844 2019-02-06 Richard Biener <rguenther@suse.de>
23845
23846 PR tree-optimization/89182
23847 * graphite.h (cached_scalar_evolution_in_region): Declare.
23848 * graphite.c (struct seir_cache_key): New.
23849 (struct sese_scev_hash): Likewise.
23850 (seir_cache): New global.
23851 (cached_scalar_evolution_in_region): New function.
23852 (graphite_transform_loops): Allocate and release seir_cache.
23853 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23854 cached_scalar_evolution_in_region.
23855 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23856 Simplify.
23857 (scop_detection::graphite_can_represent_expr: Use
23858 cached_scalar_evolution_in_region.
23859 (scop_detection::stmt_simple_for_scop_p): Likewise.
23860 (find_params_in_bb): Likewise.
23861 (gather_bbs::before_dom_children): Likewise.
23862 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23863 (add_loop_constraints): Likewise.
23864
23865 2019-02-06 Jakub Jelinek <jakub@redhat.com>
23866
23867 PR middle-end/89210
23868 * fold-const-call.c (fold_const_vec_convert): Pass true as last
23869 operand to new_unary_operation only if both element types are integral
23870 and it isn't a widening conversion. Return NULL_TREE if
23871 new_unary_operation failed.
23872
23873 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
23874
23875 PR target/88856
23876 * config/s390/s390.md: Remove load and test FP splitter.
23877
23878 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23879
23880 PR target/89112
23881 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23882 expand_compare_loop, expand_block_compare_gpr,
23883 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23884 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23885 #include "profile-count.h" and "predict.h" for types and functions
23886 needed to work with REG_BR_PROB notes.
23887
23888 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
23889
23890 PR target/89112
23891 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23892 for the long branch case.
23893
23894 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23895
23896 PR target/89188
23897 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23898 can throw, non-call exceptions are enabled and we can't delete
23899 dead exceptions or alter cfg. Set must_clean if
23900 delete_insn_and_edges returns true, don't set it blindly for calls.
23901 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23902
23903 PR rtl-optimization/89195
23904 * combine.c (make_extraction): For MEMs, don't extract bytes outside
23905 of the original MEM.
23906
23907 2019-02-05 Martin Liska <mliska@suse.cz>
23908
23909 PR gcov-profile/89000
23910 * gcov.c (function_summary): Remove argument.
23911 (file_summary): New function.
23912 (print_usage): Replace tabs with spaces.
23913 (generate_results): Use new function file_summary.
23914
23915 2019-02-05 Jakub Jelinek <jakub@redhat.com>
23916
23917 PR target/89186
23918 * optabs.c (prepare_cmp_insn): Pass x and y to
23919 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23920
23921 2019-02-05 Richard Biener <rguenther@suse.de>
23922
23923 PR middle-end/89150
23924 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23925 (struct bitmap_element): Drop chain_prev so we properly recurse on
23926 the prev member, supporting tree views.
23927 (struct bitmap_head): GTY skip the obstack member.
23928
23929 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
23930
23931 PR c/88698
23932 * doc/extend.texi (Vector Extensions): Add an example of using vector
23933 types together with x86 intrinsics.
23934
23935 2019-02-04 Alan Modra <amodra@gmail.com>
23936
23937 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23938 str[] size to 160, and comment.
23939
23940 2019-02-04 Alan Modra <amodra@gmail.com>
23941
23942 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23943 (rs6000_pltseq_template): Guard output of TLS markers with
23944 TARGET_TLS_MARKERS.
23945 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23946 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23947 to use inline PLT sequences.
23948 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23949 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23950 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23951
23952 2019-02-04 Martin Liska <mliska@suse.cz>
23953
23954 PR ipa/88985
23955 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23956 out when ipa_fn_summaries does not contain entry for callee.
23957
23958 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
23959
23960 * config/sparc/sparc.h: Remove superfluous blank lines.
23961 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23962 (got_register_rtx): ...this.
23963 (sparc_got): Adjust to above renaming.
23964 (sparc_tls_got): Likewise.
23965 (sparc_delegitimize_address): Likewise.
23966 (sparc_output_mi_thunk): Likewise.
23967 (sparc_init_pic_reg): Likewise.
23968 (save_local_or_in_reg_p): Fix test on the GOT register.
23969 (USE_HIDDEN_LINKONCE): Move around.
23970 (get_pc_thunk_name): Likewise.
23971 (gen_load_pcrel_sym): Likewise.
23972 (load_got_register): Likewise.
23973
23974 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
23975
23976 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23977 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23978
23979 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23980
23981 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23982 into consideration.
23983
23984 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
23985
23986 * config.gcc (with_nds32_lib, glibc):
23987 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23988 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23989 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23990
23991 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
23992
23993 PR target/89071
23994 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23995 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23996 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23997 (*rcpsf2_sse): Ditto.
23998 (*rsqrtsf2_sse): Ditto.
23999 (sse4_1_round<mode<2): Ditto.
24000
24001 2019-02-03 Richard Biener <rguenther@suse.de>
24002
24003 PR debug/87295
24004 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24005 orig.
24006
24007 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24008
24009 PR middle-end/87887
24010 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24011 Punt with warning on aggregate return or argument types. Ignore
24012 type/mode checking for uniform arguments.
24013
24014 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24015
24016 * combine.c (try_combine): Do not print "Can't combine" messages unless
24017 printing failed combination attempts.
24018
24019 2019-02-01 Martin Jambor <mjambor@suse.cz>
24020
24021 PR hsa/87863
24022 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24023 segment and global segment variables before making them static.
24024
24025 2019-02-01 Martin Jambor <mjambor@suse.cz>
24026
24027 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24028 missed optimization dump with dump_enabled_p.
24029
24030 2019-02-01 Richard Biener <rguenther@suse.de>
24031
24032 PR middle-end/88597
24033 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24034 the instantiate cache.
24035 (instantiate_scev_binary): Elide second operand procesing
24036 if equal to the first.
24037 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24038 (chrec_contains_undetermined): Likewise.
24039 (tree_contains_chrecs): Likewise.
24040
24041 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24042
24043 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24044
24045 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24046
24047 PR tree-optimization/89143
24048 * wide-int-range.h (wide_int_range_absu): Declare.
24049 * wide-int-range.cc (wide_int_range_absu): New function.
24050 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24051
24052 PR tree-optimization/88107
24053 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24054 instead of assertion that eh_region_outermost is non-NULL, if it
24055 is NULL, set *ALL to true and return NULL.
24056 (move_sese_region_to_fn): Adjust caller, if all is set, call
24057 duplicate_eh_regions with NULL region.
24058
24059 2019-02-01 Richard Biener <rguenth@suse.de>
24060
24061 PR rtl-optimization/88593
24062 * mode-switching.c (optimize_mode_switching): Free dominators before
24063 calling cleanup_cfg.
24064
24065 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24066
24067 PR tree-optimization/88932
24068 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24069
24070 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24071
24072 PR middle-end/89137
24073 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24074 bogus clang warning.
24075
24076 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24077
24078 PR target/89071
24079 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24080 alternative to avoid partial SSE register stall for TARGET_AVX.
24081 (truncdfsf2): Ditto.
24082 (sse4_1_round<mode>2): Ditto.
24083
24084 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24085
24086 PR tree-optimization/89008
24087 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24088 process anything of the form X * 0.
24089
24090 2019-01-31 Richard Biener <rguenther@suse.de>
24091
24092 PR tree-optimization/89135
24093 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24094 with abnormal preds.
24095
24096 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24097
24098 PR sanitizer/89124
24099 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24100 always_inline callees into no_sanitize_address callers.
24101
24102 2019-01-31 Richard Biener <rguenther@suse.de>
24103
24104 PR rtl-optimization/89115
24105 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24106
24107 2019-01-30 Martin Sebor <msebor@redhat.com>
24108
24109 PR other/89106
24110 * doc/extend.texi (cast to a union): Correct and expand.
24111
24112 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24113
24114 PR rtl-optimization/87246
24115 * lra-constraints.c (simplify_operand_subreg): Reload memory
24116 in subreg if the address became invalid.
24117
24118 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24119
24120 PR target/87064
24121 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24122 Disable for little-endian.
24123
24124 2019-01-30 Richard Biener <rguenther@suse.de>
24125
24126 PR rtl-optimization/89115
24127 * opts.c (default_options_optimization): Reduce
24128 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24129 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24130 to the default.
24131
24132 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24133
24134 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24135 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24136 type of vector element when vec_extract is implemented by direct
24137 move.
24138
24139 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24140
24141 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24142
24143 2019-01-30 Richard Biener <rguenther@suse.de>
24144
24145 PR tree-optimization/89111
24146 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24147 canonicalization to appropriately sized access types.
24148
24149 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24150
24151 PR c++/89105
24152 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24153 for arguments to functions that are TU-local and shouldn't be
24154 referenced by assembly.
24155
24156 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24157
24158 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24159 after '='.
24160
24161 2019-01-29 Martin Sebor <msebor@redhat.com>
24162
24163 PR c/88956
24164 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24165
24166 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24167
24168 PR c++/66676
24169 PR ipa/89104
24170 * omp-simd-clone.c (simd_clone_clauses_extract)
24171 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24172 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24173
24174 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24175
24176 * config.gcc: Force .init_array for ARC.
24177
24178 2019-01-29 Richard Biener <rguenther@suse.de>
24179
24180 PR debug/87295
24181 * dwarf2out.c (collect_skeleton_dies): New helper.
24182 (copy_decls_for_unworthy_types): Call it.
24183 (build_abbrev_table): Assert we do not try to replace
24184 DW_AT_signature refs with local refs.
24185
24186 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24187
24188 PR middle-end/89002
24189 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24190 for lastprivate/linear IV, push gimplify context around gimplify_assign
24191 and, if it needed any temporaries, pop it into a gimple bind around the
24192 sequence.
24193
24194 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24195
24196 * common.opt (-Wattribute-alias): Remove "no-" from name.
24197 Make -Wattribute-alias command line option and
24198 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24199
24200 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24201
24202 PR target/89073
24203 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24204 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24205 x86 ISA options.
24206 (bmi2): Add missing @opindex.
24207 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24208 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24209 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24210 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24211 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24212 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24213 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24214 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24215 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24216 xsavec, xsaveopt and xsaves options.
24217
24218 2019-01-28 Richard Biener <rguenther@suse.de>
24219
24220 PR debug/89076
24221 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24222 support removal.
24223
24224 2019-01-28 Richard Biener <rguenther@suse.de>
24225
24226 PR tree-optimization/88739
24227 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24228 BIT_FIELD_REFs only are applied to mode-precision operands
24229 when they are integral.
24230 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24231 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24232 BIT_FIELD_REFs of non-mode-precision integral operands.
24233
24234 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24235
24236 PR target/87214
24237 * config/i386/sse.md
24238 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24239 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24240 first constants in pairs are multiples of 2. Formatting fixes.
24241 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24242 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24243 first constants in each quadruple are multiples of 4. Formatting fixes.
24244
24245 2019-01-26 Martin Jambor <mjambor@suse.cz>
24246
24247 PR ipa/88933
24248 * tree-inline.c: Include tree-cfgcleanup.h.
24249 (delete_unreachable_blocks_update_callgraph): Move...
24250 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24251 ...here, make externally visible, make second argument bool, adjust
24252 all callers.
24253 * tree-cfgcleanup.c: Include cgraph.h.
24254 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24255 Declare.
24256 * ipa-prop.c: Include tree-cfgcleanup.h.
24257 (ipcp_transform_function): Call
24258 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24259
24260 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24261
24262 PR rtl-optimization/88846
24263 * ira.c (process_set_for_memref_referenced_p): New.
24264 (memref_referenced_p): Add new param. Use
24265 process_set_for_memref_referenced_p. Add new switch cases.
24266 (memref_used_between_p): Pass new arg to memref_referenced_p.
24267
24268 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24269
24270 PR target/88469
24271 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24272 argument ABI_BREAK. Set to true if the calculated alignment has
24273 changed in gcc-9. Check bit-fields for their base type alignment.
24274 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24275 (aarch64_function_arg_boundary): Likewise.
24276 (aarch64_gimplify_va_arg_expr): Likewise.
24277
24278 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24279
24280 PR middle-end/89037
24281 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24282 instead of accessing TREE_INT_CST_ELT directly.
24283
24284 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24285
24286 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24287 fenv_exceptions description.
24288
24289 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24290
24291 PR rtl-optimization/87763
24292 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24293 Allow SUBREG when matching CC_NZmode compare.
24294
24295 2019-01-25 Richard Biener <rguenther@suse.de>
24296
24297 PR tree-optimization/89049
24298 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24299 Look at the pattern stmt to determine if the stmt is vectorized.
24300
24301 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24302
24303 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24304 (pred_mov<mode>): Handle all-register forms using both a new
24305 alternative and a split.
24306
24307 2019-01-25 Richard Biener <rguenther@suse.de>
24308
24309 PR tree-optimization/86865
24310 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24311 Reject non-do-while loops.
24312
24313 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24314
24315 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24316 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24317 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24318 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24319 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24320 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24321 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24322 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24323 vlogical_operand, gpc_reg_operand, int_reg_operand,
24324 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24325 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24326 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24327 (save_world_operation, restore_world_operation, lmw_operation,
24328 stmw_operation): Use MEM_P and REG_P.
24329 (tie_operand): Use MEM_P.
24330 (vrsave_operation, crsave_operation): Use REG_P.
24331 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24332 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24333 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24334 (call_operand): Use HARD_REGISTER_P.
24335 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24336 Use CONST_INT_P.
24337 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24338 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24339 quad_aligned_load_p, replace_swapped_aligned_store,
24340 recombine_lvx_pattern, replace_swapped_aligned_load,
24341 recombine_stvx_pattern): Use MEM_P.
24342 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24343 Use MEM_P and SYMBOL_REF_P.
24344 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24345 (insn_is_swappable_p): Use REG_P and MEM_P.
24346 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24347 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24348 Use CONST_INT_P.
24349 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24350 Use CONST_DOUBLE_P.
24351 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24352 CONST_WIDE_INT_P.
24353 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24354 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24355 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24356 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24357 reg_or_subregno:
24358 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24359 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24360 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24361 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24362 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24363 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24364 rs6000_split_logical_di): Use CONST_INT_P.
24365 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24366 REG_P and SYMBOL_REF_P.
24367 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24368 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24369 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24370 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24371 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24372 (small_data_operand, print_operand_address): Use CONST_INT_P and
24373 SYMBOL_REF_P.
24374 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24375 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24376 Use HARD_REGISTER_NUM_P.
24377 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24378 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24379 SUBREG_P and SYMBOL_REF_P.
24380 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24381 and HARD_REGISTER_NUM_P.
24382 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24383 reg_or_subregno.
24384 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24385 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24386 MEM_P and REG_P.
24387 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24388 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24389 find_addr_reg): Use REG_P.
24390 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24391 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24392 (offsettable_ok_by_alignment, constant_pool_expr_p,
24393 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24394 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24395 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24396 rs6000_assemble_integer, create_TOC_reference,
24397 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24398 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24399 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24400 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24401 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24402 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24403 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24404 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24405 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24406 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24407 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24408 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24409 and cbranch<mode>4): Use CONST_INT_P.
24410 (multiple define_splits): Use REG_P and SUBREG_P.
24411 (define_expands call, call_value): Use MEM_P.
24412 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24413 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24414 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24415 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24416 and HARD_REGISTER_NUM_P.
24417 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24418
24419 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24420
24421 PR rtl-optimization/88948
24422 * rtl.h (prepare_copy_insn): New prototype.
24423 * gcse.c (prepare_copy_insn): New function, split out from
24424 process_insert_insn.
24425 (process_insert_insn): Use prepare_copy_insn.
24426 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24427 instead of gen_move_insn.
24428
24429 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24430
24431 PR debug/89006
24432 * config/i386/i386.c (ix86_pic_register_p): Return true for
24433 UNSPEC_SET_GOT too.
24434
24435 PR tree-optimization/88964
24436 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24437 punt if HONOR_SNANS (chrec).
24438
24439 PR middle-end/89015
24440 * tree-nested.c (convert_nonlocal_reference_stmt,
24441 convert_local_reference_stmt, convert_tramp_reference_stmt,
24442 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24443 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24444 or GIMPLE_OMP_TASK.
24445
24446 PR tree-optimization/89027
24447 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24448 for "omp simd array" variables.
24449
24450 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24451
24452 PR target/88469
24453 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24454 force the alignment of m_val.
24455
24456 2019-01-24 Richard Biener <rguenther@suse.de>
24457
24458 PR lto/87187
24459 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24460 When in "legacy" debug mode make sure to reset self-origins.
24461
24462 2019-01-24 Martin Liska <mliska@suse.cz>
24463
24464 PR gcov-profile/88994
24465 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24466 result will be always smaller or equal to the original.
24467 * gcov.c (mangle_name): Fix else branch where we should
24468 also copy to PTR and shift the pointer.
24469
24470 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24471
24472 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24473 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24474
24475 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24476
24477 * common/config/i386/i386-common.c
24478 (OPTION_MASK_ISA_ENQCMD_SET,
24479 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24480 (ix86_handle_option): Handle -menqcmd.
24481 * config.gcc (enqcmdintrin.h): New header file.
24482 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24483 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24484 -menqcmd.
24485 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24486 function type.
24487 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24488 __builtin_ia32_enqcmds): New builtins.
24489 * config/i386/i386-c.c (__ENQCMD__): New macro.
24490 * config/i386/i386-option.c (ix86_target_string): Add
24491 -menqcmd.
24492 (ix86_valid_target_attribute_inner_p): Likewise.
24493 * config/i386/i386-expand.c
24494 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24495 IX86_BUILTIN_ENQCMDS.
24496 * config/i386/i386.h (TARGET_ENQCMD): New.
24497 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24498 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24499 (movdir64b_<mode>): Parameterize to enable share expansion code
24500 with ENQCMD in function ix86_expand_builtin.
24501 * config/i386/i386.opt: Add -menqcmd.
24502 * config/i386/immintrin.h: Include enqcmdintrin.h.
24503 * config/i386/enqcmdintrin.h: New intrinsic file.
24504 * doc/invoke.texi: Add -menqcmd.
24505
24506 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24507 Steve Ellcey <sellcey@marvell.com>
24508
24509 PR target/85711
24510 * recog.c (address_operand): Return false on wrong mode for address.
24511 (constrain_operands): Check for mode with 'p' constraint.
24512
24513 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24514
24515 PR target/88998
24516 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24517 Disparage MMX alternative.
24518 (sse2_cvtpd2pi): Ditto.
24519 (sse2_cvttpd2pi): Ditto.
24520
24521 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24522
24523 PR driver/89014
24524 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24525 use-after-free of the result of
24526 aarch64_get_extension_string_for_isa_flags.
24527
24528 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24529
24530 PR c/44715
24531 * doc/extend.texi: Document break and continue behavior in
24532 statement expressions.
24533
24534 2019-01-23 Richard Biener <rguenther@suse.de>
24535
24536 PR tree-optimization/89008
24537 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24538 not leave another stray operand.
24539
24540 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24541
24542 * BASE-VER: Bump to 9.0.1.
24543
24544 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24545
24546 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24547 thunk that returns by reference, use the type of the return object
24548 of the thunk instead of that of the alias to build the dereference.
24549
24550 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24551
24552 * config/arc/atomic.md: Add operand to DMB instruction.
24553
24554 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24555
24556 PR tree-optimization/88964
24557 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24558 build_zero_cst instead of build_int_cst. Return false for loop
24559 invariants which honor signed zeros.
24560
24561 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24562
24563 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24564
24565 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24566
24567 PR target/88965
24568 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24569 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24570 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24571
24572 PR middle-end/88968
24573 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24574 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24575
24576 PR target/87064
24577 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24578 Disable for little endian.
24579
24580 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24581
24582 PR target/88469
24583 * config/arm/arm.c (arm_needs_double_word_align): Check
24584 DECL_BIT_FIELD_TYPE.
24585
24586 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24587 H.J. Lu <hongjiu.lu@intel.com>
24588
24589 PR target/88909
24590 * config/i386/i386-builtin.def: Add mask2 to all builtin
24591 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24592 SPECIAL_ARGS.
24593 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24594 (BDESC_FIRST): Likewise.
24595 (define_builtin): Add an argument for mask2. Updated to handle
24596 both ix86_isa_flags and ix86_isa_flags2.
24597 (define_builtin_const): Likewise.
24598 (define_builtin_pure): Likewise.
24599 (define_builtin2): Deleted.
24600 (define_builtin_const2): Likewise.
24601 (builtin_description): Add a member, mask2.
24602 (bdesc_*): Add mask2 to builtin initializations.
24603 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24604 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24605 support.
24606 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24607
24608 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24609
24610 PR target/88954
24611 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24612 noplt attribute.
24613
24614 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24615
24616 PR target/88469
24617 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24618 alignment is dominated by a bitfield with 64-bit aligned base type.
24619 (arm_function_arg): Emit a warning if the alignment has changed since
24620 earlier GCC releases.
24621 (arm_function_arg_boundary): Likewise.
24622 (arm_setup_incoming_varargs): Likewise.
24623
24624 2019-01-22 Richard Biener <rguenther@suse.de>
24625
24626 PR tree-optimization/88862
24627 * graphite-scop-detection.c
24628 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24629
24630 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24631
24632 * doc/extend.tex (AMD GCN Function Attributes): New section.
24633 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24634 * doc/invoke.texi (AMD GCN Options): New section.
24635 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24636
24637 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24638
24639 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24640 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24641
24642 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24643
24644 PR tree-optimization/88044
24645 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24646 is false in the first iteration, but !every_iteration, return false
24647 instead of true with niter->niter zero.
24648
24649 PR rtl-optimization/88904
24650 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24651 any nonequal registers before processing BB_END (b).
24652
24653 PR target/88905
24654 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24655 GET_MODE (op0).
24656 (expand_binop_directly, expand_doubleword_clz,
24657 expand_doubleword_popcount, expand_ctz, expand_ffs,
24658 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24659
24660 PR rtl-optimization/49429
24661 PR target/49454
24662 PR rtl-optimization/86334
24663 PR target/88906
24664 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24665 addressable from here...
24666 (emit_block_op_via_libcall): ... to here.
24667
24668 2019-01-22 Richard Biener <rguenther@suse.de>
24669
24670 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24671 auto_vec for cost vector to fix memleak.
24672 (vectorize_fold_left_reduction): Properly gather SLP defs.
24673 (vectorizable_comparison): Do not swap operands to properly
24674 gather SLP defs.
24675
24676 2019-01-22 Alan Modra <amodra@gmail.com>
24677
24678 PR target/88614
24679 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24680 stays a reg. Allow a const_int.
24681 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24682 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24683 (IS_NOMARK_TLSGETADDR): Define.
24684 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24685 (rs6000_output_tlsargs): New function.
24686 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24687 __tls_get_addr call takes an arg.
24688 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24689 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24690 delete split..
24691 (call_value_nonlocal_sysv): ..or here, delete split.
24692 (tls_gdld_nomark): Delete.
24693 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24694 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24695 (call_value_nonlocal_sysv): Likewise.
24696 (call_value_nonlocal_sysv_secure): Likewise.
24697 (call_value_nonlocal_aix): Likewise.
24698 (call_value_indirect_aix): Likewise.
24699 (call_value_indirect_elfv2): Likewise.
24700 (call_value_local32, call_value_local64): Disable for no-mark tls.
24701 (call_value_local_aix): Likewise.
24702
24703 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24704
24705 PR target/88938
24706 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24707 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24708
24709 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24710
24711 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24712 string contents as hash_map keys.
24713
24714 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24715
24716 PR c/88928
24717 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24718 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24719 instead of TYPE_ALIGN.
24720 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24721 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24722 pointer from TYPE_STUB_DECL.
24723
24724 2019-01-21 Richard Biener <rguenther@suse.de>
24725
24726 PR tree-optimization/88934
24727 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24728 at the possibly non-constant operand.
24729 (vect_get_constant_vectors): Adjust.
24730
24731 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24732
24733 PR target/71659
24734 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24735 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24736 instead of _X86INTRIN_H_INCLUDED.
24737 * onfig/i386/clwbintrin.h: Likewise.
24738 * config/i386/pkuintrin.h: Likewise.
24739 * config/i386/prfchwintrin.h: Likewise.
24740 * config/i386/rdseedintrin.h: Likewise.
24741 * config/i386/wbnoinvdintrin.h: Likewise.
24742 * config/i386/xsavecintrin.h: Likewise.
24743 * config/i386/xsavesintrin.h: Likewise.
24744 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24745 * config/i386/xsaveintrin.h: Likewise.
24746 * config/i386/xsaveoptintrin.h: Likewise.
24747 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24748 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24749 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24750 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24751 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24752 * config/i386/immintrin.h: Here.
24753
24754 2019-01-20 Martin Jambor <mjambor@suse.cz>
24755
24756 PR ipa/87615
24757 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24758 with aa_walk_budget.
24759 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24760 aa_walk_budget_p parameter.
24761 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24762 walk. Updated all callers.
24763 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24764 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24765 unmodified_parm.
24766 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24767 parameter info. Extract info from fbi. Pass fbi to recursive calls
24768 and to unmodified_parm.
24769 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24770 info, updated call to will_be_nonconstant_expr_predicate.
24771 (param_change_prob): New parameter fbi, limit AA walking.
24772 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24773 calls to various above functions.
24774 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24775 parameter. Use it to limit AA walking.
24776 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24777 fbi, limit AA walk.
24778 (detect_type_change): New parameter fbi, pass it on to
24779 detect_type_change_from_memory_writes.
24780 (detect_type_change_ssa): Likewise.
24781 (aa_overwalked): Removed.
24782 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24783 accordingly, adjust to the neew AA limiting scheme.
24784 (parm_ref_data_preserved_p): Likewise.
24785 (ipa_compute_jump_functions_for_edge): Adjust call to
24786 get_dynamic_type.
24787 (ipa_analyze_call_uses): Likewise.
24788 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24789 (ipa_analyze_node): Initialize aa_walk_budget.
24790 (ipcp_transform_function): Likewise.
24791 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24792 to get_dynamic_type.
24793
24794 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24795
24796 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24797 outside of #if CHECKING_P code.
24798
24799 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24800
24801 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24802 New function, split out from...
24803 (loop_versioning::analyze_stride): ...here.
24804 (loop_versioning::find_per_loop_multiplication): Use gassign.
24805 (loop_versioning::analyze_term_using_scevs): Return a success code.
24806 (loop_versioning::analyze_arbitrary_term): New function.
24807 (loop_versioning::analyze_address_fragment): Use
24808 analyze_arbitrary_term if all else fails.
24809
24810 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24811
24812 PR target/88892
24813 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24814 operands.
24815
24816 2019-01-18 Richard Biener <rguenther@suse.de>
24817
24818 PR tree-optimization/88903
24819 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24820 scalar stmts a SLP shift amount is composed of when detecting
24821 shifts by scalars.
24822
24823 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24824
24825 PR target/88799
24826 * config/arm/arm-cpus.in (mp): New feature.
24827 (sec): New feature.
24828 (fgroup ARMv7ve): Add mp and sec features.
24829 (arch armv7-a): Add options to allow mp and sec extensions.
24830 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24831 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24832 extenstions to the base architecture.
24833 (cpu cortex-a8): Add sec extension to the base architecture.
24834 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24835 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24836 variants down to the base v7-a varaint.
24837 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24838 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24839 of permitted extensions for -march=armv7-a and for
24840 -mcpu=generic-armv7-a.
24841
24842 2019-01-18 Martin Liska <mliska@suse.cz>
24843
24844 * params.def: Fix comment.
24845 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24846 name.
24847 (gimple_gen_ic_func_profiler): Likewise.
24848
24849 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24850
24851 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24852 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24853 and put in error checks for stack protector guard options.
24854 (aarch64_stack_protect_guard): New.
24855 (TARGET_STACK_PROTECT_GUARD): Define.
24856 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24857 (reg_stack_protect_address<mode>): New.
24858 (stack_protect_set): Adjust for SSP_GLOBAL.
24859 (stack_protect_test): Likewise.
24860 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24861 (-mstack-protector-guard): Likewise.
24862 (-mstack-protector-guard-offset): Likewise.
24863
24864 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24865
24866 PR tree-optimization/86214
24867 * tree-inline.h (struct copy_body_data): Add
24868 add_clobbers_to_eh_landing_pads member.
24869 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24870 (copy_edges_for_bb): Call it if EH edge destination is <
24871 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
24872 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24873 if flag_stack_reuse != SR_NONE and clear it afterwards.
24874
24875 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
24876
24877 PR target/85596
24878 * doc/install.texi (with-multilib-list): Document for aarch64.
24879
24880 2019-01-18 Jakub Jelinek <jakub@redhat.com>
24881
24882 PR target/88734
24883 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24884 (("..."))) with ("...").
24885
24886 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
24887
24888 * doc/extend.texi (Built-in Functions for Memory Model Aware
24889 Atomic Operations): Document atomic fetch and nand.
24890
24891 2019-01-18 Martin Liska <mliska@suse.cz>
24892 Richard Biener <rguenther@suse.de>
24893
24894 PR middle-end/88587
24895 * cgraph.h (create_version_clone_with_body): Add new argument
24896 with attributes.
24897 * cgraphclones.c (cgraph_node::create_version_clone): Add
24898 DECL_ATTRIBUTES to a newly created decl. And call
24899 valid_attribute_p so that proper cl_target_optimization_node
24900 is set for the newly created declaration.
24901 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24902 for declaration.
24903 (expand_target_clones): Do not call valid_attribute_p, it must
24904 be already done.
24905 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24906 vector types.
24907
24908 2019-01-17 Jakub Jelinek <jakub@redhat.com>
24909
24910 PR target/88734
24911 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24912 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
24913 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24914
24915 2019-01-17 Martin Sebor <msebor@redhat.com>
24916
24917 PR middle-end/88273
24918 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24919 Handle anti-ranges the same as no range at all.
24920
24921 2018-01-17 Steve Ellcey <sellcey@cavium.com>
24922
24923 * config/aarch64/aarch64.c (cgraph.h): New include.
24924 (intl.h): New include.
24925 (supported_simd_type): New function.
24926 (currently_supported_simd_type): Ditto.
24927 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24928 (aarch64_simd_clone_adjust): Ditto.
24929 (aarch64_simd_clone_usable): Ditto.
24930 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24931 (TARGET_SIMD_CLONE_ADJUST): Ditto.
24932 (TARGET_SIMD_CLONE_USABLE): Ditto.
24933 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24934 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24935 call.
24936
24937 2019-01-17 Martin Sebor <msebor@redhat.com>
24938
24939 PR tree-optimization/88800
24940 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24941 NO_WARNING bit here. Avoid folding out-of-bounds calls.
24942 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24943 redundant argument. Add new argument and issue diagnostics under
24944 its control. Detect out-of-bounds access even with warnings
24945 disabled.
24946 (check_bounds_or_overlap): Change return type. Add argument.
24947 (wrestrict_dom_walker::check_call): Adjust.
24948 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24949 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24950 check_bounds_or_overlap's return value.
24951 (handle_builtin_stxncpy): Same.
24952 (handle_builtin_strcat): Same.
24953
24954 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24955 Kwok Cheung Yeung <kcy@codesourcery.com>
24956 Julian Brown <julian@codesourcery.com>
24957 Tom de Vries <tom@codesourcery.com>
24958
24959 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24960
24961 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24962
24963 * doc/sourcebuild.texi: Document dg-require-effective-target
24964 llvm_binutils and offload_gcn.
24965
24966 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24967 Kwok Cheung Yeung <kcy@codesourcery.com>
24968 Julian Brown <julian@codesourcery.com>
24969 Tom de Vries <tom@codesourcery.com>
24970
24971 * doc/sourcebuild.texi: Document dg-required-effective-target
24972 exceptions.
24973
24974 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24975 Kwok Cheung Yeung <kcy@codesourcery.com>
24976 Julian Brown <julian@codesourcery.com>
24977 Tom de Vries <tom@codesourcery.com>
24978 Jan Hubicka <hubicka@ucw.cz>
24979 Martin Jambor <mjambor@suse.cz>
24980
24981 * config.gcc: Add amdgcn*-*-amdhsa configuration.
24982 * configure.ac: Check for dlopen.
24983 * configure: Regenerate.
24984
24985 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
24986 Kwok Cheung Yeung <kcy@codesourcery.com>
24987 Julian Brown <julian@codesourcery.com>
24988 Tom de Vries <tom@codesourcery.com>
24989 Jan Hubicka <hubicka@ucw.cz>
24990 Martin Jambor <mjambor@suse.cz>
24991
24992 * common/config/gcn/gcn-common.c: New file.
24993 * config/gcn/driver-gcn.c: New file.
24994 * config/gcn/gcn-builtins.def: New file.
24995 * config/gcn/gcn-hsa.h: New file.
24996 * config/gcn/gcn-modes.def: New file.
24997 * config/gcn/gcn-opts.h: New file.
24998 * config/gcn/gcn-passes.def: New file.
24999 * config/gcn/gcn-protos.h: New file.
25000 * config/gcn/gcn-run.c: New file.
25001 * config/gcn/gcn-tree.c: New file.
25002 * config/gcn/gcn.c: New file.
25003 * config/gcn/gcn.h: New file.
25004 * config/gcn/gcn.opt: New file.
25005 * config/gcn/t-gcn-hsa: New file.
25006
25007 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25008 Kwok Cheung Yeung <kcy@codesourcery.com>
25009 Julian Brown <julian@codesourcery.com>
25010 Tom de Vries <tom@codesourcery.com>
25011 Jan Hubicka <hubicka@ucw.cz>
25012 Martin Jambor <mjambor@suse.cz>
25013
25014 * config/gcn/constraints.md: New file.
25015 * config/gcn/gcn-valu.md: New file.
25016 * config/gcn/gcn.md: New file.
25017 * config/gcn/predicates.md: New file.
25018
25019 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25020
25021 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25022 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25023 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25024 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25025
25026 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25027
25028 PR target/88851
25029 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25030 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25031 it and document registers.
25032
25033 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25034
25035 * config/aarch64/aarch64.c (ares_tunings): Define.
25036 * config/aarch64/aarch64-cores.def (ares): Use the above.
25037
25038 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25039
25040 PR target/88794
25041 Revert:
25042 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25043
25044 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25045 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25046 (_mm512_maskz_fixupimm_round_pd): Ditto.
25047 (_mm512_fixupimm_round_ps): Ditto.
25048 (_mm512_maskz_fixupimm_round_ps): Ditto.
25049 (_mm_fixupimm_round_sd): Ditto.
25050 (_mm_maskz_fixupimm_round_sd): Ditto.
25051 (_mm_fixupimm_round_ss): Ditto.
25052 (_mm_maskz_fixupimm_round_ss): Ditto.
25053 (_mm512_fixupimm_pd): Ditto.
25054 (_mm512_maskz_fixupimm_pd): Ditto.
25055 (_mm512_fixupimm_ps): Ditto.
25056 (_mm512_maskz_fixupimm_ps): Ditto.
25057 (_mm_fixupimm_sd): Ditto.
25058 (_mm_maskz_fixupimm_sd): Ditto.
25059 (_mm_fixupimm_ss): Ditto.
25060 (_mm_maskz_fixupimm_ss): Ditto.
25061 (_mm512_mask_fixupimm_round_pd): Update builtin.
25062 (_mm512_mask_fixupimm_round_ps): Ditto.
25063 (_mm_mask_fixupimm_round_sd): Ditto.
25064 (_mm_mask_fixupimm_round_ss): Ditto.
25065 (_mm512_mask_fixupimm_pd): Ditto.
25066 (_mm512_mask_fixupimm_ps): Ditto.
25067 (_mm_mask_fixupimm_sd): Ditto.
25068 (_mm_mask_fixupimm_ss): Ditto.
25069 * config/i386/avx512vlintrin.h:
25070 (_mm256_fixupimm_pd): Update parameters and builtin.
25071 (_mm256_maskz_fixupimm_pd): Ditto.
25072 (_mm256_fixupimm_ps): Ditto.
25073 (_mm256_maskz_fixupimm_ps): Ditto.
25074 (_mm_fixupimm_pd): Ditto.
25075 (_mm_maskz_fixupimm_pd): Ditto.
25076 (_mm_fixupimm_ps): Ditto.
25077 (_mm_maskz_fixupimm_ps): Ditto.
25078 (_mm256_mask_fixupimm_pd): Update builtin.
25079 (_mm256_mask_fixupimm_ps): Ditto.
25080 (_mm_mask_fixupimm_pd): Ditto.
25081 (_mm_mask_fixupimm_ps): Ditto.
25082 * config/i386/i386-builtin-types.def: Add new types and remove
25083 useless ones.
25084 * config/i386/i386-builtin.def: Update builtin definitions.
25085 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25086 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25087 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25088 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25089 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25090 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25091 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25092 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25093 * config/i386/subst.md:
25094 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25095 (round_saeonly_sd_mask_op4): Ditto.
25096 (round_saeonly_expand_operand5): Ditto.
25097 (round_saeonly_expand): Update.
25098
25099 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25100
25101 PR target/88794
25102 Revert:
25103 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25104
25105 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25106 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25107 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25108 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25109 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25110 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25111 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25112
25113 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25114
25115 PR target/88794
25116 Revert:
25117 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25118
25119 PR target/88489
25120 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25121 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25122 instead of UNSPEC_FIXUPIMM.
25123
25124 2019-01-17 Richard Biener <rguenther@suse.de>
25125
25126 PR lto/86736
25127 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25128 and friends for the LTO part of debug info.
25129
25130 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25131
25132 PR tree-optimization/86214
25133 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25134 if x == y.
25135
25136 PR rtl-optimization/88870
25137 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25138 throw if we can't alter the cfg or delete dead exceptions.
25139 (mark_insn): Don't call find_call_stack_args for such calls.
25140
25141 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25142
25143 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25144 prototypes for vec_st.
25145 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25146 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25147 mainly on signed/unsigned long long and double.
25148
25149 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25150
25151 PR target/88861
25152 * combine.c (delete_noop_moves): Convert to "bool" return,
25153 returning true if any edges are eliminated.
25154 (combine_instructions): Also return true if delete_noop_moves
25155 returns true.
25156
25157 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25158
25159 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25160 correct max nunits for endian swap.
25161 (aarch64_expand_fcmla_builtin): Correct subreg code.
25162 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25163 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25164 lane endianness.
25165
25166 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25167
25168 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25169 Handle split indirect COMPLEX_TYPE arguments.
25170
25171 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25172
25173 PR target/86891
25174 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25175 bit is set by add and compare.
25176 (CC_ADC): New CC_MODE.
25177 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25178 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25179 comparison. Add detection for CC_ADCmode.
25180 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25181 CC_ADCmode.
25182 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25183 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25184 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25185 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25186 to eliminate the need for zero-extending the operands.
25187 (add<mode>3_compareC_imm): Delete. Merge into ...
25188 (add<mode>3_compareC): ... this. Restructure the comparison to
25189 eliminate the need for zero-extending the operands.
25190 (add<mode>3_carryin): Use LTU for the overflow detection.
25191 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25192 Reexpress comparison for overflow.
25193 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25194 (add<mode>3_carryinC): Likewise.
25195 (add<mode>3_carryinV): Use LTU for carry between partials.
25196 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25197 handling of CC_Cmode and add CC_ADCmode.
25198 (aarch64_borrow_operation): Likewise.
25199
25200 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25201
25202 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25203 Remove patternmode.
25204 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25205 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25206 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25207 Remove endianness conversion.
25208
25209 2019-01-16 Martin Liska <mliska@suse.cz>
25210
25211 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25212 for GCC driver.
25213 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25214 a new argument.
25215 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25216 (path_prefix_reset): Move up in the source file.
25217 (find_fortran_preinclude_file): Make complex search for the
25218 fortran header files.
25219
25220 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25221
25222 * godump.c (go_output_typedef): When outputting a typedef, refer
25223 to the underlying type by its name and not its structure.
25224
25225 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25226
25227 PR c++/88795
25228 * tree.c (build_function_type): Assert that arg_types is not
25229 error_mark_node.
25230
25231 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25232
25233 PR inline-asm/52813
25234 * doc/extend.texi: Document that listing the stack pointer in the
25235 clobber list of an asm is a deprecated feature.
25236 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25237 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25238 warning instead of an error for clobbers of the stack pointer.
25239 Add a note explaining why.
25240
25241 2019-01-15 Richard Biener <rguenther@suse.de>
25242
25243 PR debug/88046
25244 * dwarf2out.c (gen_member_die): Do not generate inheritance
25245 DIEs late.
25246
25247 2019-01-15 Richard Biener <rguenther@suse.de>
25248
25249 PR tree-optimization/88855
25250 * tree-if-conv.c (combine_blocks): Collect
25251 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25252
25253 2019-01-15 Tom de Vries <tdevries@suse.de>
25254
25255 PR target/80547
25256 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25257 lhs == NULL_TREE for gang-level reduction.
25258
25259 2019-01-15 Richard Biener <rguenther@suse.de>
25260 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25261
25262 PR ipa/88788
25263 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25264 return true if SSA_NAME is already marked in visited bitmap.
25265 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25266
25267 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25268
25269 PR tree-optimization/88775
25270 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25271 equal == 0 equality pointer comparisons some more if compared in
25272 integral types and either one points to an automatic var and the
25273 other to a global, or we can prove at least one points to the middle
25274 or both point to start or both point to end.
25275
25276 2019-01-14 Andi Kleen <ak@linux.intel.com>
25277
25278 * Makefile.in: Lower autofdo sampling rate by 10x.
25279 * Makefile.tpl: Dito.
25280
25281 2019-01-14 Tom Honermann <tom@honermann.net>
25282
25283 * defaults.h: Define CHAR8_TYPE.
25284
25285 2019-01-14 Martin Sebor <msebor@redhat.com>
25286
25287 PR target/88638
25288 * doc/extend.texi (Darwin Format Checks): Clarify.
25289
25290 2019-01-14 Richard Biener <rguenther@suse.de>
25291
25292 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25293 whether we are in (simplify ...) or (match ...) context.
25294
25295 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25296
25297 PR rtl-optimization/88796
25298 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25299 * cfgexpand.c (stack_protect_prologue): Initialize
25300 crtl->stack_protect_guard_decl.
25301 * function.c (stack_protect_epilogue): Use it instead of calling
25302 targetm.stack_protect_guard again.
25303 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25304 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25305 crtl->stack_protect_guard_decl.
25306 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25307 on the returned MEM_EXPR.
25308
25309 2019-01-12 Tom de Vries <tdevries@suse.de>
25310
25311 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25312 vector length using -fopenacc-dim.
25313
25314 2019-01-12 Tom de Vries <tdevries@suse.de>
25315
25316 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25317 lengths into account.
25318
25319 2019-01-12 Svante Signell <svante.signell@gmail.com>
25320
25321 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25322 (TARGET_CAN_SPLIT_STACK): Define.
25323 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25324
25325 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25326
25327 * params.def (inline-unit-growth): Set to 40.
25328
25329 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25330
25331 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25332
25333 2019-01-12 Tom de Vries <tdevries@suse.de>
25334
25335 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25336 region calling vector-partitionable routine, set default_vector_length
25337 to WARP_SIZE.
25338
25339 2019-01-12 Tom de Vries <tdevries@suse.de>
25340
25341 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25342 variable default_vector_length.
25343
25344 2019-01-12 Tom de Vries <tdevries@suse.de>
25345
25346 PR middle-end/88703
25347 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25348 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25349 dimensions limits.
25350
25351 2019-01-12 Tom de Vries <tdevries@suse.de>
25352
25353 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25354 (nvptx_goacc_validate_dims): Add used parameter.
25355 * doc/tm.texi: Regenerate.
25356 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25357 argument to call to targetm.goacc.validate_dims.
25358 (default_goacc_validate_dims): Add used
25359 parameter.
25360 * target.def (validate_dims): Add used parameter in DEFHOOK.
25361 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25362
25363 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25364
25365 PR middle-end/85956
25366 PR lto/88733
25367 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25368 field.
25369 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25370 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25371 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25372 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25373
25374 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25375
25376 PR rtl-optimization/87305
25377 * lra-assigns.c
25378 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25379 for little endian pseudos used as paradoxical subreg.
25380
25381 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25382
25383 PR tree-optimization/88693
25384 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25385 for STRING_CSTs that don't contain any NUL characters in the first
25386 TREE_STRING_LENGTH bytes.
25387
25388 2019-01-11 Alan Modra <amodra@gmail.com>
25389
25390 PR 88777
25391 PR 88614
25392 * genattrtab.c (min_fn): Don't translate values.
25393 (min_attr_value): Return INT_MAX when the value can't be calculated.
25394 Return minimum among any values that can be calculated.
25395 (max_attr_value): Adjust.
25396
25397 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25398
25399 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25400
25401 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25402
25403 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25404 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25405 (aarch64_return_call_with_max_clobbers): New function.
25406 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25407 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25408 argument.
25409 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25410 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25411 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25412 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25413 * cselib.c (cselib_process_insn): Add argument to
25414 targetm.hard_regno_call_part_clobbered call.
25415 * ira-conflicts.c (ira_build_conflicts): Ditto.
25416 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25417 * lra-constraints.c (inherit_reload_reg): Ditto.
25418 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25419 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25420 argument. Call targetm.return_call_with_max_clobbers.
25421 Add argument to targetm.hard_regno_call_part_clobbered call.
25422 (calls_have_same_clobbers_p): New function.
25423 (process_bb_lives): Add call_insn and last_call_insn variables.
25424 Pass call_insn to check_pseudos_live_through_calls.
25425 Modify if stmt to check targetm.return_call_with_max_clobbers.
25426 Update setting of flush variable.
25427 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25428 to false.
25429 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25430 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25431 targetm.hard_regno_call_part_clobbered call.
25432 * reginfo.c (choose_hard_reg_mode): Ditto.
25433 * regrename.c (check_new_reg_p): Ditto.
25434 * reload.c (find_equiv_reg): Ditto.
25435 * reload1.c (emit_reload_insns): Ditto.
25436 * sched-deps.c (deps_analyze_insn): Ditto.
25437 * sel-sched.c (init_regs_for_mode): Ditto.
25438 (mark_unavailable_hard_regs): Ditto.
25439 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25440 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25441 (return_call_with_max_clobbers): New target function.
25442 * doc/tm.texi: Regenerate.
25443 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25444 * hooks.c (hook_bool_uint_mode_false): Change to
25445 hook_bool_insn_uint_mode_false.
25446 * hooks.h (hook_bool_uint_mode_false): Ditto.
25447
25448 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25449
25450 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25451 (aarch64_remove_extra_call_preserved_regs): New function.
25452 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25453 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25454 * doc/tm.texi: Regenerate.
25455 * final.c (get_call_reg_set_usage): Call new hook.
25456 * target.def (remove_extra_call_preserved_regs): New hook.
25457 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25458 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25459
25460 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25461
25462 PR bootstrap/88714
25463 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25464 inside of pass_combine_1 dump rather than pass_profile_1.
25465
25466 2019-01-11 Tom de Vries <tdevries@suse.de>
25467
25468 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25469 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25470 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25471 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25472 num_workers 16.
25473
25474 2019-01-11 Tom de Vries <tdevries@suse.de>
25475
25476 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25477
25478 2019-01-11 Jan Beulich <jbeulich@suse.com>
25479
25480 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25481 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25482 sse2_cvtsi2sd): Add {l}.
25483 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25484 syntax.
25485
25486 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25487
25488 PR target/88785
25489 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25490 define_expand.
25491 (*float<floatunssuffix>v2div2sf2): New define_insn.
25492 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25493 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25494 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25495 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25496 match_operands with "const0_operand" "C".
25497
25498 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25499
25500 * config/aarch64/aarch64-builtins.c
25501 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25502 (aarch64_init_simd_builtins): ...Here
25503
25504 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25505
25506 PR rtl-optimization/87305
25507 * lra-assigns.c
25508 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25509 allocation for big endian pseudos used as paradoxical subregs and
25510 spill them if it is wrong.
25511 * lra-constraints.c (lra_constraints): Add a comment.
25512
25513 2019-01-10 Richard Biener <rguenther@suse.de>
25514
25515 PR tree-optimization/88792
25516 * tree-ssa-pre.c (get_representative_for): Do not return a
25517 value-number here.
25518
25519 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25520
25521 PR middle-end/84877
25522 PR bootstrap/88450
25523 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25524 (assign_parm_setup_block): Do the argument slot realignment here
25525 instead.
25526
25527 2019-01-10 Stefan Agner <stefan@agner.ch>
25528
25529 PR target/88648
25530 * config/arm/arm.c (arm_option_override_internal): Force
25531 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25532
25533 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25534
25535 PR c/88568
25536 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25537 DECL_EXTERNAL.
25538
25539 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25540
25541 * config/arm/arm-builtins.c
25542 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25543 (MAC_LANE_PAIR_QUALIFIERS): New.
25544 (arm_expand_builtin_args): Use it.
25545 (arm_expand_builtin_1): Likewise.
25546 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25547 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25548 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25549 * config/arm/arm_neon.h:
25550 (vcadd_rot90_f16): New.
25551 (vcaddq_rot90_f16): New.
25552 (vcadd_rot270_f16): New.
25553 (vcaddq_rot270_f16): New.
25554 (vcmla_f16): New.
25555 (vcmlaq_f16): New.
25556 (vcmla_lane_f16): New.
25557 (vcmla_laneq_f16): New.
25558 (vcmlaq_lane_f16): New.
25559 (vcmlaq_laneq_f16): New.
25560 (vcmla_rot90_f16): New.
25561 (vcmlaq_rot90_f16): New.
25562 (vcmla_rot90_lane_f16): New.
25563 (vcmla_rot90_laneq_f16): New.
25564 (vcmlaq_rot90_lane_f16): New.
25565 (vcmlaq_rot90_laneq_f16): New.
25566 (vcmla_rot180_f16): New.
25567 (vcmlaq_rot180_f16): New.
25568 (vcmla_rot180_lane_f16): New.
25569 (vcmla_rot180_laneq_f16): New.
25570 (vcmlaq_rot180_lane_f16): New.
25571 (vcmlaq_rot180_laneq_f16): New.
25572 (vcmla_rot270_f16): New.
25573 (vcmlaq_rot270_f16): New.
25574 (vcmla_rot270_lane_f16): New.
25575 (vcmla_rot270_laneq_f16): New.
25576 (vcmlaq_rot270_lane_f16): New.
25577 (vcmlaq_rot270_laneq_f16): New.
25578 (vcadd_rot90_f32): New.
25579 (vcaddq_rot90_f32): New.
25580 (vcadd_rot270_f32): New.
25581 (vcaddq_rot270_f32): New.
25582 (vcmla_f32): New.
25583 (vcmlaq_f32): New.
25584 (vcmla_lane_f32): New.
25585 (vcmla_laneq_f32): New.
25586 (vcmlaq_lane_f32): New.
25587 (vcmlaq_laneq_f32): New.
25588 (vcmla_rot90_f32): New.
25589 (vcmlaq_rot90_f32): New.
25590 (vcmla_rot90_lane_f32): New.
25591 (vcmla_rot90_laneq_f32): New.
25592 (vcmlaq_rot90_lane_f32): New.
25593 (vcmlaq_rot90_laneq_f32): New.
25594 (vcmla_rot180_f32): New.
25595 (vcmlaq_rot180_f32): New.
25596 (vcmla_rot180_lane_f32): New.
25597 (vcmla_rot180_laneq_f32): New.
25598 (vcmlaq_rot180_lane_f32): New.
25599 (vcmlaq_rot180_laneq_f32): New.
25600 (vcmla_rot270_f32): New.
25601 (vcmlaq_rot270_f32): New.
25602 (vcmla_rot270_lane_f32): New.
25603 (vcmla_rot270_laneq_f32): New.
25604 (vcmlaq_rot270_lane_f32): New.
25605 (vcmlaq_rot270_laneq_f32): New.
25606 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25607 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25608 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25609 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25610 vcmlaq_lane270): New.
25611 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25612 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25613 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25614 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25615 (arm_option_reconfigure_globals): Use them.
25616 * config/arm/iterators.md (VDF, VQ_HSF): New.
25617 (VCADD, VCMLA): New.
25618 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25619 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25620 New.
25621 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25622 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25623
25624 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25625
25626 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25627 Add qualifier_lane_pair_index.
25628 (emit-rtl.h): Include.
25629 (TYPES_QUADOP_LANE_PAIR): New.
25630 (aarch64_simd_expand_args): Use it.
25631 (aarch64_simd_expand_builtin): Likewise.
25632 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25633 New.
25634 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25635 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25636 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25637 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25638 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25639 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25640 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25641 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25642 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25643 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25644 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25645 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25646 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25647 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25648 Add __ARM_FEATURE_COMPLEX.
25649 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25650 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25651 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25652 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25653 fcmlaq_lane270): New.
25654 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25655 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25656 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25657 * config/aarch64/arm_neon.h:
25658 (vcadd_rot90_f16): New.
25659 (vcaddq_rot90_f16): New.
25660 (vcadd_rot270_f16): New.
25661 (vcaddq_rot270_f16): New.
25662 (vcmla_f16): New.
25663 (vcmlaq_f16): New.
25664 (vcmla_lane_f16): New.
25665 (vcmla_laneq_f16): New.
25666 (vcmlaq_lane_f16): New.
25667 (vcmlaq_rot90_lane_f16): New.
25668 (vcmla_rot90_laneq_f16): New.
25669 (vcmla_rot90_lane_f16): New.
25670 (vcmlaq_rot90_f16): New.
25671 (vcmla_rot90_f16): New.
25672 (vcmlaq_laneq_f16): New.
25673 (vcmla_rot180_laneq_f16): New.
25674 (vcmla_rot180_lane_f16): New.
25675 (vcmlaq_rot180_f16): New.
25676 (vcmla_rot180_f16): New.
25677 (vcmlaq_rot90_laneq_f16): New.
25678 (vcmlaq_rot270_laneq_f16): New.
25679 (vcmlaq_rot270_lane_f16): New.
25680 (vcmla_rot270_laneq_f16): New.
25681 (vcmlaq_rot270_f16): New.
25682 (vcmla_rot270_f16): New.
25683 (vcmlaq_rot180_laneq_f16): New.
25684 (vcmlaq_rot180_lane_f16): New.
25685 (vcmla_rot270_lane_f16): New.
25686 (vcadd_rot90_f32): New.
25687 (vcaddq_rot90_f32): New.
25688 (vcaddq_rot90_f64): New.
25689 (vcadd_rot270_f32): New.
25690 (vcaddq_rot270_f32): New.
25691 (vcaddq_rot270_f64): New.
25692 (vcmla_f32): New.
25693 (vcmlaq_f32): New.
25694 (vcmlaq_f64): New.
25695 (vcmla_lane_f32): New.
25696 (vcmla_laneq_f32): New.
25697 (vcmlaq_lane_f32): New.
25698 (vcmlaq_laneq_f32): New.
25699 (vcmla_rot90_f32): New.
25700 (vcmlaq_rot90_f32): New.
25701 (vcmlaq_rot90_f64): New.
25702 (vcmla_rot90_lane_f32): New.
25703 (vcmla_rot90_laneq_f32): New.
25704 (vcmlaq_rot90_lane_f32): New.
25705 (vcmlaq_rot90_laneq_f32): New.
25706 (vcmla_rot180_f32): New.
25707 (vcmlaq_rot180_f32): New.
25708 (vcmlaq_rot180_f64): New.
25709 (vcmla_rot180_lane_f32): New.
25710 (vcmla_rot180_laneq_f32): New.
25711 (vcmlaq_rot180_lane_f32): New.
25712 (vcmlaq_rot180_laneq_f32): New.
25713 (vcmla_rot270_f32): New.
25714 (vcmlaq_rot270_f32): New.
25715 (vcmlaq_rot270_f64): New.
25716 (vcmla_rot270_lane_f32): New.
25717 (vcmla_rot270_laneq_f32): New.
25718 (vcmlaq_rot270_lane_f32): New.
25719 (vcmlaq_rot270_laneq_f32): New.
25720 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25721 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25722 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25723 (FCADD, FCMLA): New.
25724 (rot): New.
25725 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25726
25727 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25728
25729 PR other/16615
25730
25731 * config/pa/pa.c: Change "can not" to "cannot".
25732 * gimple-ssa-evrp-analyze.c: Likewise.
25733 * ipa-icf.c: Likewise.
25734 * ipa-polymorphic-call.c: Likewise.
25735 * ipa-pure-const.c: Likewise.
25736 * lra-constraints.c: Likewise.
25737 * lra-remat.c: Likewise.
25738 * reload1.c: Likewise.
25739 * reorg.c: Likewise.
25740 * tree-ssa-uninit.c: Likewise.
25741
25742 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25743
25744 PR other/16615
25745
25746 * Makefile.in: Mechanically replace "can not" with "cannot".
25747 * alias.c: Likewise.
25748 * builtins.c: Likewise.
25749 * calls.c: Likewise.
25750 * cgraph.c: Likewise.
25751 * cgraph.h: Likewise.
25752 * cgraphclones.c: Likewise.
25753 * cgraphunit.c: Likewise.
25754 * combine-stack-adj.c: Likewise.
25755 * combine.c: Likewise.
25756 * common/config/i386/i386-common.c: Likewise.
25757 * config/aarch64/aarch64.c: Likewise.
25758 * config/alpha/sync.md: Likewise.
25759 * config/arc/arc.c: Likewise.
25760 * config/arc/predicates.md: Likewise.
25761 * config/arm/arm-c.c: Likewise.
25762 * config/arm/arm.c: Likewise.
25763 * config/arm/arm.h: Likewise.
25764 * config/arm/arm.md: Likewise.
25765 * config/arm/cortex-r4f.md: Likewise.
25766 * config/csky/csky.c: Likewise.
25767 * config/csky/csky.h: Likewise.
25768 * config/darwin-f.c: Likewise.
25769 * config/epiphany/epiphany.md: Likewise.
25770 * config/i386/i386.c: Likewise.
25771 * config/i386/sol2.h: Likewise.
25772 * config/m68k/m68k.c: Likewise.
25773 * config/mcore/mcore.h: Likewise.
25774 * config/microblaze/microblaze.md: Likewise.
25775 * config/mips/20kc.md: Likewise.
25776 * config/mips/sb1.md: Likewise.
25777 * config/nds32/nds32.c: Likewise.
25778 * config/nds32/predicates.md: Likewise.
25779 * config/pa/pa.c: Likewise.
25780 * config/rs6000/e300c2c3.md: Likewise.
25781 * config/rs6000/rs6000.c: Likewise.
25782 * config/s390/s390.h: Likewise.
25783 * config/sh/sh.c: Likewise.
25784 * config/sh/sh.md: Likewise.
25785 * config/spu/vmx2spu.h: Likewise.
25786 * cprop.c: Likewise.
25787 * dbxout.c: Likewise.
25788 * df-scan.c: Likewise.
25789 * doc/cfg.texi: Likewise.
25790 * doc/extend.texi: Likewise.
25791 * doc/fragments.texi: Likewise.
25792 * doc/gty.texi: Likewise.
25793 * doc/invoke.texi: Likewise.
25794 * doc/lto.texi: Likewise.
25795 * doc/md.texi: Likewise.
25796 * doc/objc.texi: Likewise.
25797 * doc/rtl.texi: Likewise.
25798 * doc/tm.texi: Likewise.
25799 * dse.c: Likewise.
25800 * emit-rtl.c: Likewise.
25801 * emit-rtl.h: Likewise.
25802 * except.c: Likewise.
25803 * expmed.c: Likewise.
25804 * expr.c: Likewise.
25805 * fold-const.c: Likewise.
25806 * genautomata.c: Likewise.
25807 * gimple-fold.c: Likewise.
25808 * hard-reg-set.h: Likewise.
25809 * ifcvt.c: Likewise.
25810 * ipa-comdats.c: Likewise.
25811 * ipa-cp.c: Likewise.
25812 * ipa-devirt.c: Likewise.
25813 * ipa-fnsummary.c: Likewise.
25814 * ipa-icf.c: Likewise.
25815 * ipa-inline-transform.c: Likewise.
25816 * ipa-inline.c: Likewise.
25817 * ipa-polymorphic-call.c: Likewise.
25818 * ipa-profile.c: Likewise.
25819 * ipa-prop.c: Likewise.
25820 * ipa-pure-const.c: Likewise.
25821 * ipa-reference.c: Likewise.
25822 * ipa-split.c: Likewise.
25823 * ipa-visibility.c: Likewise.
25824 * ipa.c: Likewise.
25825 * ira-build.c: Likewise.
25826 * ira-color.c: Likewise.
25827 * ira-conflicts.c: Likewise.
25828 * ira-costs.c: Likewise.
25829 * ira-int.h: Likewise.
25830 * ira-lives.c: Likewise.
25831 * ira.c: Likewise.
25832 * ira.h: Likewise.
25833 * loop-invariant.c: Likewise.
25834 * loop-unroll.c: Likewise.
25835 * lower-subreg.c: Likewise.
25836 * lra-assigns.c: Likewise.
25837 * lra-constraints.c: Likewise.
25838 * lra-eliminations.c: Likewise.
25839 * lra-lives.c: Likewise.
25840 * lra-remat.c: Likewise.
25841 * lra-spills.c: Likewise.
25842 * lra.c: Likewise.
25843 * lto-cgraph.c: Likewise.
25844 * lto-streamer-out.c: Likewise.
25845 * postreload-gcse.c: Likewise.
25846 * predict.c: Likewise.
25847 * profile-count.h: Likewise.
25848 * profile.c: Likewise.
25849 * recog.c: Likewise.
25850 * ree.c: Likewise.
25851 * reload.c: Likewise.
25852 * reload1.c: Likewise.
25853 * reorg.c: Likewise.
25854 * resource.c: Likewise.
25855 * rtl.def: Likewise.
25856 * rtl.h: Likewise.
25857 * rtlanal.c: Likewise.
25858 * sched-deps.c: Likewise.
25859 * sched-ebb.c: Likewise.
25860 * sched-rgn.c: Likewise.
25861 * sel-sched-ir.c: Likewise.
25862 * sel-sched.c: Likewise.
25863 * shrink-wrap.c: Likewise.
25864 * simplify-rtx.c: Likewise.
25865 * symtab.c: Likewise.
25866 * target.def: Likewise.
25867 * toplev.c: Likewise.
25868 * tree-call-cdce.c: Likewise.
25869 * tree-cfg.c: Likewise.
25870 * tree-complex.c: Likewise.
25871 * tree-core.h: Likewise.
25872 * tree-eh.c: Likewise.
25873 * tree-inline.c: Likewise.
25874 * tree-loop-distribution.c: Likewise.
25875 * tree-nrv.c: Likewise.
25876 * tree-profile.c: Likewise.
25877 * tree-sra.c: Likewise.
25878 * tree-ssa-alias.c: Likewise.
25879 * tree-ssa-dce.c: Likewise.
25880 * tree-ssa-dom.c: Likewise.
25881 * tree-ssa-forwprop.c: Likewise.
25882 * tree-ssa-loop-im.c: Likewise.
25883 * tree-ssa-loop-ivcanon.c: Likewise.
25884 * tree-ssa-loop-ivopts.c: Likewise.
25885 * tree-ssa-loop-niter.c: Likewise.
25886 * tree-ssa-phionlycprop.c: Likewise.
25887 * tree-ssa-phiopt.c: Likewise.
25888 * tree-ssa-propagate.c: Likewise.
25889 * tree-ssa-threadedge.c: Likewise.
25890 * tree-ssa-threadupdate.c: Likewise.
25891 * tree-ssa-uninit.c: Likewise.
25892 * tree-ssanames.c: Likewise.
25893 * tree-streamer-out.c: Likewise.
25894 * tree.c: Likewise.
25895 * tree.h: Likewise.
25896 * vr-values.c: Likewise.
25897
25898 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
25899
25900 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25901 (ix86_split_xorsign): Ditto.
25902 * config/i386/i386.c (ix86_expand_xorsign): New function.
25903 (ix86_split_xorsign): Ditto.
25904 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25905 (xorsign<mode>3): New expander.
25906 (xorsign<mode>3_1): New insn_and_split pattern.
25907 * config/i386/sse.md (xorsign<mode>3): New expander.
25908
25909 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25910
25911 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25912 (*tablejump_sp64): Likewise.
25913 (*tablejump<P:mode>): ...this.
25914 (*call_address_sp32): Merge into...
25915 (*call_address_sp64): Likewise.
25916 (*call_address<P:mode>): ...this.
25917 (*call_symbolic_sp32): Merge into...
25918 (*call_symbolic_sp64): Likewise.
25919 (*call_symbolic<P:mode>): ...this.
25920 (call_value): Remove constraint and add predicate.
25921 (*call_value_address_sp32): Merge into...
25922 (*call_value_address_sp64): Likewise.
25923 (*call_value_address<P:mode>): ...this.
25924 (*call_value_symbolic_sp32): Merge into...
25925 (*call_value_symbolic_sp64): Likewise.
25926 (*call_value_symbolic<P:mode>): ...this.
25927 (*sibcall_symbolic_sp32): Merge into...
25928 (*sibcall_symbolic_sp64): Likewise.
25929 (*sibcall_symbolic<P:mode>): ...this.
25930 (sibcall_value): Remove constraint and add predicate.
25931 (*sibcall_value_symbolic_sp32): Merge into...
25932 (*sibcall_value_symbolic_sp64): Likewise.
25933 (*sibcall_value_symbolic<P:mode>): ...this.
25934 (window_save): Minor tweak.
25935 (*branch_sp32): Merge into...
25936 (*branch_sp64): Likewise.
25937 (*branch<P:mode>): ...this.
25938
25939 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
25940 James Clarke <jrtc27@jrtc27.com>
25941
25942 PR target/84010
25943 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25944 consistently in TLS address generation and adjust code to the renaming
25945 of patterns. Mark calls to __tls_get_addr as const.
25946 * config/sparc/sparc.md (tgd_hi22): Turn into...
25947 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25948 (tgd_lo10): Turn into...
25949 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25950 (tgd_add32): Merge into...
25951 (tgd_add64): Likewise.
25952 (tgd_add<P:mode>): ...this and use Pmode throughout.
25953 (tldm_hi22): Turn into...
25954 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25955 (tldm_lo10): Turn into...
25956 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25957 (tldm_add32): Merge into...
25958 (tldm_add64): Likewise.
25959 (tldm_add<P:mode>): ...this and use Pmode throughout.
25960 (tldm_call32): Merge into...
25961 (tldm_call64): Likewise.
25962 (tldm_call<P:mode>): ...this and use Pmode throughout.
25963 (tldo_hix22): Turn into...
25964 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25965 (tldo_lox10): Turn into...
25966 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25967 (tldo_add32): Merge into...
25968 (tldo_add64): Likewise.
25969 (tldo_add<P:mode>): ...this and use Pmode throughout.
25970 (tie_hi22): Turn into...
25971 (tie_hi22<P:mode>): ...this and use Pmode throughout.
25972 (tie_lo10): Turn into...
25973 (tie_lo10<P:mode>): ...this and use Pmode throughout.
25974 (tie_ld64): Use DImode throughout.
25975 (tie_add32): Merge into...
25976 (tie_add64): Likewise.
25977 (tie_add<P:mode>): ...this and use Pmode throughout.
25978 (tle_hix22_sp32): Merge into...
25979 (tle_hix22_sp64): Likewise.
25980 (tle_hix22<P:mode>): ...this and use Pmode throughout.
25981 (tle_lox22_sp32): Merge into...
25982 (tle_lox22_sp64): Likewise.
25983 (tle_lox22<P:mode>): ...this and use Pmode throughout.
25984 (*tldo_ldub_sp32): Merge into...
25985 (*tldo_ldub_sp64): Likewise.
25986 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25987 (*tldo_ldub1_sp32): Merge into...
25988 (*tldo_ldub1_sp64): Likewise.
25989 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25990 (*tldo_ldub2_sp32): Merge into...
25991 (*tldo_ldub2_sp64): Likewise.
25992 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25993 (*tldo_ldsb1_sp32): Merge into...
25994 (*tldo_ldsb1_sp64): Likewise.
25995 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25996 (*tldo_ldsb2_sp32): Merge into...
25997 (*tldo_ldsb2_sp64): Likewise.
25998 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25999 (*tldo_ldub3_sp64): Use DImode throughout.
26000 (*tldo_ldsb3_sp64): Likewise.
26001 (*tldo_lduh_sp32): Merge into...
26002 (*tldo_lduh_sp64): Likewise.
26003 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26004 (*tldo_lduh1_sp32): Merge into...
26005 (*tldo_lduh1_sp64): Likewise.
26006 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26007 (*tldo_ldsh1_sp32): Merge into...
26008 (*tldo_ldsh1_sp64): Likewise.
26009 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26010 (*tldo_lduh2_sp64): Use DImode throughout.
26011 (*tldo_ldsh2_sp64): Likewise.
26012 (*tldo_lduw_sp32): Merge into...
26013 (*tldo_lduw_sp64): Likewise.
26014 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26015 (*tldo_lduw1_sp64): Use DImode throughout.
26016 (*tldo_ldsw1_sp64): Likewise.
26017 (*tldo_ldx_sp64): Likewise.
26018 (*tldo_stb_sp32): Merge into...
26019 (*tldo_stb_sp64): Likewise.
26020 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26021 (*tldo_sth_sp32): Merge into...
26022 (*tldo_sth_sp64): Likewise.
26023 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26024 (*tldo_stw_sp32): Merge into...
26025 (*tldo_stw_sp64): Likewise.
26026 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26027 (*tldo_stx_sp64): Use DImode throughout.
26028
26029 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26030
26031 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26032 check configure option to set BTI and Return Address Signing.
26033 * configure.ac: Add --enable-standard-branch-protection and
26034 --disable-standard-branch-protection.
26035 * configure: Regenerated.
26036 * doc/install.texi: Document the same.
26037
26038 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26039 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26040
26041 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26042 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26043 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26044 if bti is enabled.
26045 * config/aarch64/aarch64-bti-insert.c: New file.
26046 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26047 pass.
26048 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26049 new bti pass.
26050 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26051 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26052 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26053 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26054
26055 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26056
26057 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26058 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26059 Disable bti for -mbranch-protection=none.
26060 (aarch64_handle_standard_branch_protection): Enable bti for
26061 -mbranch-protection=standard.
26062 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26063 -mbranch-protection.
26064 (aarch64_bti_enabled): Check if bti is enabled.
26065 * config/aarch64/aarch64.opt: Declare target variable.
26066 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26067
26068 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26069
26070 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26071 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26072 (aarch64_expand_epilogue): Likewise.
26073 (aarch64_output_mi_thunk): Likewise.
26074 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26075 TAILCALL_ADDR_REGS to x16 and x17.
26076 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26077
26078 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26079
26080 * config/aarch64/aarch64-option-extensions.def: Define
26081 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26082 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26083 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26084 (AARCH64_FL_PREDRES): New.
26085 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26086 AARCH64_FL_PREDRES by default.
26087 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26088
26089 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26090
26091 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26092 ARMv8.5-A.
26093 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26094 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26095 * doc/invoke.texi: Document ARMv8.5-A.
26096
26097 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26098
26099 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26100 (xorsign<mode>3): Likewise.
26101
26102 2019-01-09 Jelinek <jakub@redhat.com>
26103
26104 PR middle-end/88758
26105 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26106 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26107
26108 PR rtl-optimization/88331
26109 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26110 not currently_expanding_to_rtl.
26111
26112 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26113
26114 * doc/invoke.texi (-Os): Remove trailing spaces.
26115 (-finline-functions): Remove reference to -O2.
26116
26117 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26118
26119 PR rtl-optimization/79593
26120 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26121
26122 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26123 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26124
26125 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26126
26127 PR bootstrap/88721
26128 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26129 to -1 on entry.
26130
26131 PR debug/88723
26132 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26133 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26134
26135 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26136
26137 PR target/88717
26138 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26139 ix86_avx_u128_mode_entry.
26140
26141 2019-01-08 Martin Liska <mliska@suse.cz>
26142
26143 PR tree-optimization/88753
26144 * tree-switch-conversion.c (switch_conversion::build_one_array):
26145 Come up with local variable constructor. Convert first to
26146 type of constructor values.
26147
26148 2019-01-08 Richard Biener <rguenther@suse.de>
26149
26150 PR tree-optimization/86554
26151 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26152 rpo_avail): Move earlier.
26153 (visit_nary_op): When value-numbering to expressions
26154 with different overflow behavior make sure there's an
26155 available expression on the path.
26156
26157 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26158
26159 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26160 aarch64_parse_branch_protection,
26161 struct aarch64_branch_protect_type,
26162 aarch64_handle_no_branch_protection,
26163 aarch64_handle_standard_branch_protection,
26164 aarch64_validate_mbranch_protection,
26165 aarch64_handle_pac_ret_protection,
26166 aarch64_handle_attr_branch_protection,
26167 accepted_branch_protection_string,
26168 aarch64_pac_ret_subtypes,
26169 aarch64_branch_protect_types,
26170 aarch64_handle_pac_ret_leaf): Define.
26171 (aarch64_override_options_after_change_1, aarch64_override_options):
26172 Add check for accepted_branch_protection_string.
26173 (aarch64_option_save): Save accepted_branch_protection_string.
26174 (aarch64_option_restore): Save accepted_branch_protection_string.
26175 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26176 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26177 msign-return-address.
26178 * doc/invoke.texi: Add mbranch-protection.
26179
26180 2019-01-08 Alan Modra <amodra@gmail.com>
26181
26182 PR target/88614
26183 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26184 Delete "unknownp" parameter. Adjust callers. Handle
26185 CONST_INT, PLUS, MINUS, and MULT.
26186 (attr_value_aligned): Renamed from or_attr_value.
26187 (min_attr_value): Return INT_MIN for unhandled rtl case..
26188 (min_fn): ..and translate to INT_MAX here.
26189 (write_length_unit_log): Modify to cope without "unknown".
26190 (write_attr_value): Handle IF_THEN_ELSE.
26191
26192 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26193
26194 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26195 optimization for masked stores.
26196
26197 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26198
26199 PR middle-end/88567
26200 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26201 output vector directly to duplicate_and_interleave instead of
26202 going through a temporary. Postpone insertion of ctor_seq to
26203 the end of the loop.
26204
26205 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26206
26207 PR target/86891
26208 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26209 unsigned_p. Handle signed and unsigned overflow correction as
26210 required.
26211 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26212 prototype.
26213 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26214 for operand 2.
26215 (add<mode>3_compareV_imm): Make this callable for expanding.
26216 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26217 aarch64_plus_operand for operand 2.
26218 (subv<GPI:mode>_insn): New insn pattern.
26219 (subv<GPI:mode>_imm): Likewise.
26220 (negv<GPI:mode>3): New expand pattern.
26221 (negv<GPI:mode>_insn): New insn pattern.
26222 (negv<GPI:mode>_cmp_only): Likewise.
26223 (cmpv<GPI:mode>_insn): Likewise.
26224 (subvti4): Use register_operand for operand 1. Update call to
26225 aarch64_expand_subvti.
26226 (usubvti4): Likewise.
26227 (negvti3): New expand pattern.
26228 (negdi_carryout): New insn pattern.
26229 (negvdi_carryinV): New insn pattern.
26230 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26231 version the named version.
26232 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26233 operands.
26234 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26235 patterns.
26236 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26237 patterns.
26238 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26239 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26240 (sub<mode>3_carryinCV): Delete.
26241 (sub<GPI:mode>3_carryinV): New expand pattern.
26242 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26243
26244 2019-01-07 Richard Biener <rguenther@suse.de>
26245
26246 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26247 of tree_operand_hash.
26248
26249 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26250
26251 PR tree-optimization/88598
26252 * tree.h (single_nonzero_element): Declare.
26253 * tree.c (single_nonzero_element): New function.
26254 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26255 if I is the only nonzero element of CST.
26256
26257 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26258
26259 PR tree-optimization/88598
26260 * tree.h (initializer_each_zero_or_onep): Declare.
26261 * tree.c (initializer_each_zero_or_onep): New function.
26262 (signed_or_unsigned_type_for): Handle float types too.
26263 (unsigned_type_for, signed_type_for): Update comments accordingly.
26264 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26265 x & { 0 or -1, 0 or -1, ... }.
26266
26267 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26268
26269 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26270 with x86_64-pc-linux-gnu.
26271
26272 2019-01-07 Tom de Vries <tdevries@suse.de>
26273
26274 PR target/85486
26275 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26276 function.
26277 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26278 routines.
26279
26280 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26281
26282 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26283 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26284 TARGET_AVX512F as condition.
26285
26286 PR debug/88723
26287 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26288 const_not_ok_for_debug_p target hook.
26289 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26290 on UNSPEC and subexpressions thereof if all subexpressions of the
26291 UNSPEC are CONSTANT_P.
26292
26293 PR tree-optimization/88676
26294 * tree-ssa-phiopt.c (two_value_replacement): New function.
26295 (tree_ssa_phiopt_worker): Call it.
26296
26297 PR sanitizer/88619
26298 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26299 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26300
26301 PR c++/85052
26302 * tree-vect-generic.c: Include insn-config.h and recog.h.
26303 (expand_vector_piecewise): Add defaulted ret_type argument,
26304 if non-NULL, use that in preference to type for the result type.
26305 (expand_vector_parallel): Formatting fix.
26306 (do_vec_conversion, do_vec_narrowing_conversion,
26307 expand_vector_conversion): New functions.
26308 (expand_vector_operations_1): Call expand_vector_conversion
26309 for VEC_CONVERT ifn calls.
26310 * internal-fn.def (VEC_CONVERT): New internal function.
26311 * internal-fn.c (expand_VEC_CONVERT): New function.
26312 * fold-const-call.c (fold_const_vec_convert): New function.
26313 (fold_const_call): Use it for CFN_VEC_CONVERT.
26314 * doc/extend.texi (__builtin_convertvector): Document.
26315
26316 2019-01-07 Tom de Vries <tdevries@suse.de>
26317
26318 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26319 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26320 vector_red_partition, vector_red_sym): New global variables.
26321 (nvptx_option_override): Initialize vector_red_sym.
26322 (nvptx_declare_function_name): Restore red_partition register.
26323 (nvptx_file_end): Emit code to declare the vector reduction variables.
26324 (nvptx_output_red_partition): New function.
26325 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26326 large vector reductions.
26327 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26328 (nvptx_init_builtins): Add VECTOR_ADDR.
26329 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26330 Handle nvptx_expand_shared_addr.
26331 (nvptx_get_shared_red_addr): Add vector argument and handle large
26332 vectors.
26333 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26334 large vectors.
26335 (nvptx_goacc_reduction_init): Likewise.
26336 (nvptx_goacc_reduction_fini): Likewise.
26337 (nvptx_goacc_reduction_teardown): Likewise.
26338 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26339 init,fini,teardown}.
26340 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26341 (nvptx_set_current_function): Init vector_red_partition.
26342 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26343 (nvptx_red_partition): New insn.
26344 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26345
26346 2019-01-07 Tom de Vries <tdevries@suse.de>
26347
26348 PR target/85381
26349 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26350 empty loops.
26351
26352 2019-01-07 Tom de Vries <tdevries@suse.de>
26353
26354 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26355 (nvptx_option_override): Init oacc_bcast_partition.
26356 (nvptx_init_oacc_workers): New function.
26357 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26358 (nvptx_needs_shared_bcast): New function.
26359 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26360 to propagate state.
26361 (nvptx_shared_propagate): Initialize vector bcast partition and
26362 synchronization state.
26363 (nvptx_single): Generalize to enable vectors to use shared-memory
26364 to propagate state.
26365 (nvptx_process_pars): Likewise.
26366 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26367 * config/nvptx/nvptx.h (struct machine_function): Add
26368 bcast_partition and sync_bar members.
26369
26370 2019-01-07 Tom de Vries <tdevries@suse.de>
26371
26372 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26373 (nvptx_apply_dim_limits): New function.
26374 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26375 PTX_WARP_SIZE.
26376
26377 2019-01-07 Tom de Vries <tdevries@suse.de>
26378
26379 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26380 as late as possible.
26381
26382 2019-01-07 Tom de Vries <tdevries@suse.de>
26383
26384 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26385 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26386 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26387 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26388 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26389
26390 2019-01-07 Tom de Vries <tdevries@suse.de>
26391
26392 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26393
26394 2019-01-07 Tom de Vries <tdevries@suse.de>
26395
26396 * omp-offload.c (oacc_get_min_dim): New function.
26397 * omp-offload.h (oacc_get_min_dim): Declare.
26398
26399 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26400
26401 PR target/88521
26402 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26403 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26404
26405 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26406
26407 PR tree-opt/86020
26408 Revert:
26409 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26410
26411 * ipa-inline.c (edge_badness): Use inlined_time instead of
26412 inline_summaries->get.
26413
26414 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26415
26416 * opts.c (enable_fdo_optimizations): Enable
26417 version-loops-for-strides, loop-interchange, unrol-and-jam
26418 and tree-loop-distribution.
26419 * invoke.texi: Document newly enabled options.
26420
26421 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26422
26423 * doc/invoke.texi (max-inline-insns-small): New parameters.
26424 * ipa-inline.c (want_early_inline_function_p): simplify.
26425 (want_inline_small_function_p): Fix pasto from previous patch;
26426 use max-inline-insns-small bound.
26427 * params.def (max-inline-insns-small): New param.
26428 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26429 variables correctly.
26430
26431 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26432
26433 * doc/invoke.texi: Document max-inline-insns-size,
26434 uninlined-function-insns, uninlined-function-time,
26435 uninlined-thunk-insns and uninlined-thunk-time.
26436 * params.def: Add max-inline-insns-size,
26437 uninlined-function-insns, uninlined-function-time,
26438 uninlined-thunk-insns and uninlined-thunk-time.
26439 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26440 new parameters.
26441 * ipa-inline.c (can_inline_edge_by_limits_p,
26442 want_inline_small_function_p): Use new parameters.
26443
26444 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26445
26446 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26447
26448 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26449
26450 PR middle-end/82564
26451 PR target/88620
26452 * expr.c (expand_assignment): For calls returning VLA structures
26453 if to_rtx is not a MEM, force it into a stack temporary.
26454
26455 PR debug/88635
26456 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26457 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26458 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26459 subexpressions of both operands.
26460 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26461 subrtxes are CONSTANT_P.
26462 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26463 2018-11-09 changes.
26464
26465 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26466
26467 * params.def (hot-bb-count-ws-permille): Set to 990.
26468
26469 2019-01-04 Martin Sebor <msebor@redhat.com>
26470
26471 PR c/88546
26472 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26473 leaf.
26474
26475 2019-01-04 Martin Sebor <msebor@redhat.com>
26476
26477 PR c/88363
26478 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26479
26480 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26481
26482 * gdbinit.in: Turn off pagination for the skip commands, restore
26483 it to previous state afterwards.
26484
26485 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26486
26487 PR target/88594
26488 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26489 of GET_MODE (opN) as modes of the libcall arguments.
26490
26491 2019-01-04 Jan Beulich <jbeulich@suse.com>
26492
26493 * config/i386/sse.md
26494 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26495 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26496 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26497 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26498 avx512f_vmcmp<mode>3<round_saeonly_name>,
26499 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26500 avx512f_maskcmp<mode>3,
26501 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26502 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26503 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26504 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26505 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26506 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26507 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26508 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26509 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26510 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26511 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26512 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26513 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26514 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26515 avx512cd_maskb_vec_dup<mode>,
26516 avx512cd_maskw_vec_dup<mode>,
26517 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26518 avx512dq_vmfpclass<mode>,
26519 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26520 instead of =Yk.
26521
26522 2019-01-03 Martin Sebor <msebor@redhat.com>
26523
26524 PR tree-optimization/88659
26525 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26526
26527 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26528
26529 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26530 unaligned vsx and avoid lxvd2x/stxvd2x.
26531 (gen_lvx_v4si_move): New function.
26532
26533 2019-01-03 Tom de Vries <tdevries@suse.de>
26534
26535 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26536 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26537 function.
26538 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26539
26540 2019-01-03 Tom de Vries <tdevries@suse.de>
26541
26542 * config/nvptx/nvptx.c (struct offload_attrs): New.
26543 (populate_offload_attrs): New function. Factor mask extraction out of
26544 nvptx_reorg. Add extraction of dimensions.
26545 (nvptx_reorg): Use populate_offload_attrs.
26546
26547 2019-01-03 Tom de Vries <tdevries@suse.de>
26548
26549 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26550 cases for oacc_min_dims_p and routine_p. Add asserts for
26551 oacc_default_dims_p and offload_region_p.
26552
26553 2019-01-03 Tom de Vries <tdevries@suse.de>
26554
26555 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26556 factored out of ...
26557 (nvptx_goacc_validate_dims): ... here.
26558
26559 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26560
26561 PR tree-optimization/85574
26562 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26563 structure.
26564 (struct ssa_equip_hash_traits): Declare.
26565 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26566
26567 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26568
26569 PR debug/88644
26570 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26571 change it to qualified_type.
26572
26573 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26574
26575 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26576 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26577
26578 2019-01-02 Martin Sebor <msebor@redhat.com>
26579 Jeff Law <law@redhat.com>
26580
26581 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26582 (get_range_strlen_tree): Update appropriately.
26583 (get_range_strlen)
26584 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26585
26586 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26587 rather than set_range_info.
26588 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26589 maybe_set_strlen_range. Handle potentially boundary crossing
26590 cases more conservatively.
26591 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26592 Call set_strlen_range.
26593 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26594
26595 PR middle-end/88663
26596 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26597 need the flexp argument.
26598 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26599 from calls to get_range_strlen. Update comments. Just update
26600 VAL for an unterminated const char array and let the reset of the
26601 code handle it normally. No longer try to set *flexp. Adjust
26602 return value.
26603 (get_range_strlen): Update for the new get_range_strlen API.
26604 (get_maxval_strlen): Similarly.
26605 (gimple_fold_builtin_strlen): Handle update meaning of return value
26606 from get_range_strlen.
26607 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26608 get_range_strlen API.
26609
26610 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26611
26612 PR lto/88130
26613 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26614 false at WPA time when body was removed.
26615
26616 2019-01-02 Martin Liska <mliska@suse.cz>
26617
26618 PR tree-optimization/88650
26619 * predict.c (set_even_probabilities): Calculate probability
26620 remainer only when really used.
26621
26622 2019-01-02 Richard Biener <rguenther@suse.de>
26623
26624 PR middle-end/88651
26625 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26626 widest_ints when mangling max_stmt_execution results.
26627
26628 2019-01-02 Richard Biener <rguenther@suse.de>
26629
26630 PR tree-optimization/88621
26631 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26632 bitfields when canoncalizing.
26633
26634 2019-01-02 Richard Biener <rguenther@suse.de>
26635
26636 PR target/87545
26637 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26638 cost of cheap SSE instruction.
26639
26640 2019-01-02 Richard Biener <rguenther@suse.de>
26641
26642 PR ipa/85574
26643 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26644 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26645 function.
26646 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26647 set after UIDs before splitting them.
26648
26649 2019-01-01 Martin Sebor <msebor@redhat.com>
26650 Jeff Law <law@redhat.com>
26651
26652 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26653 length is optimistic. If it is, then arrange to compute the
26654 conservative length as well.
26655
26656 * gimple-fold.h (get_range_strlen): Update prototype.
26657 * builtins.c (check_access): Update call to get_range_strlen to use
26658 c_strlen_data pointer. Change various variable accesses to instead
26659 pull data from the c_strlen_data structure.
26660 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26661 * calls.c (maybe_warn_nonstring_arg): Likewise.
26662 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26663 minimum length if maximum lengh is unknown.
26664 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26665 that used c_strlen, it's no longer needed. Restructure slightly.
26666 (format_string): Set unlikely range appropriately.
26667 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26668 formatting issues.
26669 (get_range_strlen): Accept c_strlen_data pointer for external
26670 call sites as well. Pass through to call to internal get_range_strlen.
26671 Adjust minlen, maxlen and maxbound as needed.
26672 (get_maxval_strlen): Update comments.
26673 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26674 to use c_strlen_data pointer. Change variable accesses to instead
26675 use c_strlen_data data members.
26676
26677 * gimple-fold.c (get_range_strlen): Update prototype.
26678 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26679 local variables. Use pdata to return information to caller.
26680 Update calls to get_range_strlen. Update pdata->maxbound.
26681 (get_range_strlen -- static version): Similarly.
26682 (get_range_strlen -- extern version): Update for internal
26683 get_range_strlen API change. Convert to external data format.
26684 (get_maxval_strlen): Similarly.
26685
26686 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26687
26688 * coverage.c (get_coverage_counts): Use current_function_decl.
26689 * profile.c (read_thunk_profile): New function.
26690 (branch_prob): Add THUNK parameter.
26691 * tree-profile.c (tree_profiling): Handle thunks.
26692 * value-prof.c (init_node_map): Handle thunks.
26693 * value-prof.h (branch_prob): Upate prototype.
26694 (read_thunk_profile): Declare.
26695
26696 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26697
26698 Update copyright years.
26699
26700 * gcc.c (process_command): Update copyright notice dates.
26701 * gcov-dump.c (print_version): Ditto.
26702 * gcov.c (print_version): Ditto.
26703 * gcov-tool.c (print_version): Ditto.
26704 * gengtype.c (create_file): Ditto.
26705 * doc/cpp.texi: Bump @copying's copyright year.
26706 * doc/cppinternals.texi: Ditto.
26707 * doc/gcc.texi: Ditto.
26708 * doc/gccint.texi: Ditto.
26709 * doc/gcov.texi: Ditto.
26710 * doc/install.texi: Ditto.
26711 * doc/invoke.texi: Ditto.
26712 \f
26713 Copyright (C) 2019 Free Software Foundation, Inc.
26714
26715 Copying and distribution of this file, with or without modification,
26716 are permitted in any medium without royalty provided the copyright
26717 notice and this notice are preserved.