dbdf07c88890891ba2f803689f51590e941315aa
[gcc.git] / gcc / ChangeLog
1 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
4 "frame" reference instead of always referring directly to
5 "cfun->machine->frame".
6
7 2019-10-16 Richard Biener <rguenther@suse.de>
8
9 PR tree-optimization/92119
10 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
11 against missing bswap lhs.
12
13 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
14
15 PR middle-end/92033
16 * poly-int.h (constant_lower_bound_with_limit): New function.
17 (constant_upper_bound_with_limit): Likewise.
18 * doc/poly-int.texi: Document them.
19 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
20 into the worst-case INTEGER_CST bounds.
21
22 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
23
24 PR ipa/91088
25 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
26 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
27 * ipa-predicat.h (struct expr_eval_op): New struct.
28 (expr_eval_ops): New typedef.
29 (struct condition): Add type and param_ops fields, remove size field.
30 (add_condition): Replace size parameter with type parameter, add
31 param_ops parameter.
32 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
33 (predicate::add_clause): Add comparisons on type and param_ops.
34 (dump_condition): Add debug dump for param_ops.
35 (remap_after_inlining): Adjust call arguments to add_condition.
36 (add_condition): Replace size parameter with type parameter, add
37 param_ops parameter. Unshare constant value used in conditions.
38 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
39 parameter expressions using param_ops.
40 (decompose_param_expr): New function.
41 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
42 to replace call to unmodified_parm_or_parm_agg_item.
43 (set_switch_stmt_execution_predicate): Likewise.
44 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
45 with type.
46 (inline_read_section): Read param_ops from summary stream.
47 (ipa_fn_summary_write): Write param_ops to summary stream.
48
49 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
50
51 PR rtl-optimization/92107
52 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
53 expression written.
54
55 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
56
57 * config/darwin.c: Update description of fix and continue.
58
59 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
60
61 * config/darwin.c (darwin_binds_local_p): Update to call
62 default_binds_local_p_3 () directly. amend comments.
63
64 2019-10-15 Richard Biener <rguenther@suse.de>
65
66 * lto-streamer-out.c (lto_variably_modified_type_p): New.
67 (tree_is_indexable): Use it.
68 * tree-streamer-out.c (pack_ts_type_common_value_fields):
69 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
70 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
71
72 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
73
74 * config/msp430/msp430.md (zero_extendqipsi2): New.
75 (zero_extendqisi2): Optimize case where src register and base dst
76 register are the same.
77 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
78 (zero_extendpsisi2): Optimize r->m case.
79 Add unnamed insn patterns to catch insns combine searches for when
80 optimizing pointer manipulation.
81
82 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
83
84 * config/msp430/msp430.md: Group zero_extend* insns together.
85
86 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
87
88 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
89 constraint.
90 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
91 POST_INC.
92 (msp430_subreg): Likewise.
93 (msp430_split_addsi): Likewise.
94 (msp430_print_operand_addr): Likewise.
95 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
96 (USE_STORE_POST_INCREMENT): Define.
97 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
98 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
99 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
100 (msp430_general_dst_operand): New.
101 (msp430_general_dst_nonv_operand): New.
102 (msp430_nonsubreg_operand): Remove.
103 (msp430_nonsubreg_dst_operand): New.
104 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
105 of defunct msp430_nonsubreg_operand.
106 (msp430_nonsubregnonpostinc_or_imm_operand): New.
107
108 2019-10-15 Richard Biener <rguenther@suse.de>
109
110 PR tree-optimization/91929
111 * tree-ssa-pre.c (pre_expr_d::loc): New member.
112 (get_or_alloc_expr_for_name): Initialize it.
113 (get_or_alloc_expr_for_constant): Likewise.
114 (phi_translate_1): Copy it.
115 (create_expression_by_pieces): Use the original location
116 of the expression for the inserted stmt.
117 (compute_avail): Record the location of the stmt for the
118 expressions created.
119
120 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
121
122 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
123 before using tree_to_uhwi.
124
125 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
126
127 * config/s390/s390.md: Run %a0:DI splitters only after reload.
128
129 2019-10-15 Richard Biener <rguenther@suse.de>
130
131 PR tree-optimization/92094
132 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
133 do not adjust the reduction definition def type.
134 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
135 defines the latch argument of the PHI.
136
137 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
138
139 PR target/92035
140 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
141 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
142 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
143 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
144 _mm_maskz_roundscale_round_sd): New intrinsics.
145 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
146 __builtin_ia32_rndscales?_mask_round builtins instead of
147 __builtin_ia32_rndscales?_round.
148 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
149 __builtin_ia32_rndscalesd_round): Remove.
150 (__builtin_ia32_rndscaless_mask_round,
151 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
152 * config/i386/sse.md
153 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
154 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
155 ... this, adjust and add subst atrributes to make it maskable.
156
157 2019-10-15 Richard Biener <rguenther@suse.de>
158
159 PR middle-end/92046
160 * common.opt (fallow-store-data-races): New.
161 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
162 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
163 * doc/invoke.texi (fallow-store-data-races): Document.
164 (--param allow-store-data-races): Remove docs.
165 * opts.c (default_options_table): Enable -fallow-store-data-races
166 at -Ofast.
167 (default_options_optimization): Do not enable --param
168 allow-store-data-races at -Ofast.
169 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
170 instead of PARAM_ALLOW_STORE_DATA_RACES.
171 * tree-ssa-loop-im.c (execute_sm): Likewise.
172
173 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
174
175 PR tree-optimization/92085
176 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
177 instead of calling it unconditionally after
178 delete_dead_or_redundant_assignment and fix indentation.
179
180 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
181
182 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
183 TARGET_VFP_DOUBLE.
184 (*fmsub<SDF:mode>4): Likewise.
185 *fnmsub<SDF:mode>4): Likewise.
186 (*fnmadd<SDF:mode>4): Likewise.
187
188 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
189
190 * doc/tree-ssa.texi: Update renamed macro name.
191
192 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
193
194 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
195 vector constants.
196
197 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
198
199 * config/darwin.c: Use unsigned ints for the picbase label
200 counters, initialise the vars explicitly.
201 (update_pic_label_number_if_needed): Move a variable declaration
202 to where it's needed.
203 (machopic_output_function_base_name): Use a more strict checking
204 assert, and and unsigned int for the picbase label counter.
205 (machopic_get_function_picbase): Likewise.
206
207 2019-10-14 Richard Biener <rguenther@suse.de>
208
209 PR middle-end/92046
210 * dse.c (scan_insn): Use param max_active_local_stores.
211 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
212 based on optimization level.
213 * loop-invariant.c (move_loop_invariants): Adjust
214 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
215 * opts.c (default_options_optimization): Do not adjust
216 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
217 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
218
219 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
220
221 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
222
223 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
224
225 * config/arm/arm.c (arm_option_override): Don't override sched
226 pressure algorithm.
227
228 2019-10-14 Richard Biener <rguenther@suse.de>
229
230 PR tree-optimization/92069
231 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
232 cycles do not set vect_nested_cycle on the latch definition.
233
234 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
235
236 * function-abi.h (expr_callee_abi): Declare.
237 * function-abi.cc (expr_callee_abi): New function.
238
239 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
240
241 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
242 into [1,MAX].
243 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
244 non-zero being represented as [1,MAX].
245
246 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
247
248 * tree-sra.c (dump_access): Add missing braces.
249
250 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
251
252 * config/darwin.c (machopic_indirection_name): Rework the
253 function to emit linker-visible symbols only for indirections
254 in the data section. Clean up the code and update comments.
255
256 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
257
258 * config/darwin.c (machopic_indirect_data_reference): Remove
259 redundant code.
260
261 2019-10-13 Nathan Sidwell <nathan@acm.org>
262
263 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
264
265 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
266
267 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
268 c99_runtime.
269
270 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
271
272 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
273 so non-virutal are before virutals.
274 (output_function): Avoid body modifications.
275
276 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
277
278 * config/pa/pa.c (pa_output_call): Load descriptor address to register
279 %r22. Load function address before global pointer.
280 (pa_attr_length_indirect_call): Adjust length of inline versions of
281 $$dyncall.
282 (pa_output_indirect_call): Remove fast inline version of $$dyncall
283 before normal cases. Update inline $$dyncall sequences to preserve
284 function descriptor address in register %r22.
285 (TRAMPOLINE_CODE_SIZE): Adjust.
286 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
287 register %r22 contains trampoline address.
288 (pa_trampoline_init): Adjust offsets.
289 (pa_trampoline_adjust_address): Likewise.
290 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
291
292 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
293
294 PR target/67183
295 * config/darwin.c (machopic_indirection): New field to flag
296 non-lazy-symbol-pointers in the data section.
297 (machopic_indirection_name): Compute if an indirection should
298 appear in the data section.
299 (machopic_output_data_section_indirection): New callback split
300 from machopic_output_indirection.
301 (machopic_output_stub_indirection): Likewise.
302 (machopic_output_indirection): Retain the code for non-lazy
303 symbol pointers in their regular section.
304 (machopic_finish): Use the new callbacks to order the indirection
305 output.
306
307 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
308
309 * config/darwin-protos.h (machopic_finish): Delete.
310 * config/darwin.c (machopic_finish): Make static.
311
312 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
313
314 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
315 sections when building kernel extension code.
316
317 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
318
319 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
320 later standard."
321
322 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
323
324 * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
325 from warning.
326
327 2019-10-12 Jakub Jelinek <jakub@redhat.com>
328
329 PR middle-end/92063
330 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
331 <case VEC_COND_EXPR>: Return false with *handled = false.
332 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
333 recursing on the first operand.
334 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
335 instead of tree_could_trap_p.
336 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
337
338 2019-10-11 Jim Wilson <jimw@sifive.com>
339
340 PR rtl-optimization/91860
341 * combine.c (subst): If new_rtx is a constant, also check for
342 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
343
344 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
345
346 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
347 INTVAL when calling store_bit_field.
348
349 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
350
351 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
352 size.
353
354 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
355
356 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
357 vectorizable_live_operation.
358 (vectorizable_live_operation): Adjust parameters.
359 * tree-vect-stmts.c (vect_init_vector,
360 vect_gen_widened_results_half): Fix typo in function comment.
361 (can_vectorize_live_stmts): Adjust function comment.
362 Adjust parameters. Adjust call to vectorizable_live_operation.
363 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
364 (vect_transform_stmt): Adjust function comment. Adjust call to
365 can_vectorize_live_stmts.
366 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
367
368 2019-10-11 Richard Biener <rguenther@suse.de>
369
370 PR tree-optimization/90883
371 PR tree-optimization/91091
372 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
373 alias-sets both for recording VN table entries and continuing
374 walking after translating through copies. Handle same-sized
375 reads from SSA names by returning the plain SSA name.
376 (eliminate_dom_walker::eliminate_stmt): Properly handle
377 non-size precision stores in redundant store elimination.
378
379 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
380
381 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
382 (ggc_collect): Dump later to not interfere with release_page dump.
383 (ggc_trim): New function.
384 * ggc-none.c (ggc_trim): New.
385 * ggc.h (ggc_trim): Declare.
386
387 2019-10-11 Richard Biener <rguenther@suse.de>
388
389 PR tree-optimization/92066
390 PR tree-optimization/92046
391 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
392 Fix bogus cost model check.
393
394 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
395
396 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
397 (LANG_HOOKS_DECLS): Add it.
398 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
399 update comment for omp_is_optional_argument.
400 * omp-general.c (omp_is_allocatable_or_ptr): New.
401 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
402 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
403 Fortran's optional arguments and allocatable/pointer scalars
404 with use_device_addr.
405
406 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
407
408 PR target/77918
409 * config/s390/2827.md: Add new opcodes.
410 * config/s390/2964.md: Likewise.
411 * config/s390/3906.md: Likewise.
412 * config/s390/8561.md: Likewise.
413 * config/s390/s390-builtins.def (s390_vfchesb): Use
414 the new vec_cmpgev4sf_quiet_nocc.
415 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
416 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
417 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
418 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
419 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
420 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
421 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
422 * config/s390/s390-modes.def (CCSFPS): New mode.
423 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
424 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
425 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
426 (s390_expand_vec_compare): Use non-signaling patterns where
427 necessary.
428 (s390_reverse_condition): Support CCSFPS.
429 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
430 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
431 (asm_fcmp_op): Likewise.
432 (*smaxv2df3_vx): Use pattern for quiet comparison.
433 (*sminv2df3_vx): Likewise.
434 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
435 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
436 (vec_cmpgt<mode>_quiet_nocc): Likewise.
437 (vec_cmplt<mode>_quiet_nocc): New expander.
438 (vec_cmpge<mode>_quiet_nocc): New pattern.
439 (vec_cmple<mode>_quiet_nocc): New expander.
440 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
441 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
442 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
443 (*vec_cmpge<mode>_signaling_nocc): Likewise.
444 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
445 (vec_cmpungt<mode>): New expander.
446 (vec_cmpunge<mode>): Likewise.
447 (vec_cmpuneq<mode>): Use quiet patterns.
448 (vec_cmpltgt<mode>): Allow only on z14+.
449 (vec_cmpordered<mode>): Use quiet patterns.
450 (vec_cmpunordered<mode>): Likewise.
451 (VEC_CMP_EXPAND): Add ungt and unge.
452
453 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
454
455 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
456 parameter.
457 * lto-streamer-out.c: Include tree-dfa.h.
458 (output_cfg): Do not use cfun.
459 (lto_prepare_function_for_streaming): New.
460 (output_function): Do not push cfun; do not initialize loop optimizer.
461 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
462 * passes.c (ipa_write_summaries): Use it.
463 (ipa_write_optimization_summaries): Do not modify bodies.
464 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
465 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
466 * tree-ssa-dse.c (pass_dse::execute): Update use of
467 renumber_gimple_stmt_uids.
468 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
469
470 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
471
472 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
473 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
474
475 2019-10-10 Joseph Myers <joseph@codesourcery.com>
476
477 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
478 macros.
479 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
480 Also define DFP macros for these conditions.
481 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
482 DEC128_SUBNORMAL_MIN): Do not define.
483 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
484 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
485
486 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
487 Sandra Loosemore <sandra@codesourcery.com>
488
489 PR middle-end/26241
490 * doc/lto.texi (IPA): Reference to the IPA passes.
491 * doc/passes.texi (Pass manager): Add node IPA passes and
492 description for each IPA pass.
493
494 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
495
496 * ipa-reference.c: Do not include splay-tree.h
497 (reference_vars_to_consider): Turn to hash map.
498 (get_static_name, ipa_init, analyze_function, propagate,
499 stream_out_bitmap, ipa_reference_write_optimization_summary,
500 ipa_reference_write_optimization_summary): Update.
501
502 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
503
504 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
505
506 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
507
508 * config/darwin.c: Lookup Objective C metadata and force indirection
509 for IVAR refs.
510
511 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
512
513 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
514 addresses.
515 (mem_operand_gpr): Add check for prefixed addresses.
516 (mem_operand_ds_form): Add check for prefixed addresses.
517 (rs6000_legitimate_offset_address_p): If we support prefixed
518 addresses, check for a 34-bit offset instead of 16-bit.
519 (rs6000_legitimate_address_p): Add check for prefixed addresses.
520 Do not allow load/store with update if the address is prefixed.
521 (rs6000_mode_dependent_address): If we support prefixed
522 addresses, check for a 34-bit offset instead of 16-bit.
523
524 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
525
526 PR target/77918
527 * config/s390/vector.md (vcond_comparison_operator): New
528 predicate.
529 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
530
531 2019-10-10 David Malcolm <dmalcolm@redhat.com>
532
533 PR 87488
534 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
535 -D.
536 * configure.ac (--with-documentation-root-url): New option.
537 * configure: Regenerate.
538 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
539 option URL, add it as a new string field of the diagnostic option.
540 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
541 (print_option_information): If get_option_url is non-NULL, call
542 it, and if the result is non-NULL, potentially emit an escape
543 sequence to markup the option text with the resulting URL.
544 * diagnostic.h (diagnostic_context::get_option_url): New callback.
545 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
546 example of JSON output.
547 * opts-diagnostic.h (get_option_url): New decl.
548 * opts.c (get_option_url): New function.
549 * toplev.c (general_init): Initialize the get_option_url callback.
550
551 2019-10-10 David Malcolm <dmalcolm@redhat.com>
552
553 PR 87488
554 * common.opt (fdiagnostics-urls=): New option.
555 (diagnostic-url.h): Add SourceInclude.
556 (diagnostic_url_rule): New enum.
557 * diagnostic-color.c: Include "diagnostic-url.h".
558 (diagnostic_urls_enabled_p): New function.
559 * diagnostic-url.h: New file.
560 * diagnostic.c: Include "diagnostic-url.h".
561 (diagnostic_urls_init): New function.
562 * diagnostic.h (diagnostic_urls_init): New decl.
563 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
564 -fdiagnostics-urls to the list.
565 (-fdiagnostics-urls): New option.
566 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
567 (driver::global_initializations): Call diagnostic_urls_init.
568 * opts-global.c (init_options_once): Likewise.
569 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
570 * pretty-print.c (pretty_printer::pretty_printer): Initialize
571 show_urls.
572 (pp_begin_url): New function.
573 (pp_end_url): New function.
574 (selftest::test_urls): New selftest.
575 (selftest::pretty_print_c_tests): Call it.
576 * pretty-print.h (pretty_printer::show_urls): New field.
577 (pp_begin_url): New decl.
578 (pp_end_url): New decl.
579
580 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
581
582 PR target/92022
583 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
584
585 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
586
587 PR target/88630
588 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
589 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
590 also for TARGET_FPU_SH4_300.
591 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
592 TARGET_SH4_300.
593 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
594 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
595 (*negsf2_i): Split into ...
596 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
597 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
598 (**abssf2_i): Split into ...
599 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
600 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
601 (*negdf2_i): Split into ...
602 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
603 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
604 (**abssf2_i): Split into ...
605 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
606
607 2019-10-10 Richard Biener <rguenther@suse.de>
608
609 PR middle-end/92046
610 * opts.c (finish_options): Do not influence global --params
611 from options that are adjustable per function.
612 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
613 Apply --param adjustment based on active cost-model.
614 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
615 further store-sinking when vectorization or if-conversion
616 are not enabled.
617
618 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
619
620 PR middle-end/92037
621 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
622 rather than ggc_alloc_cleared to alloc symbol table.
623 * toplev.c (general_init): Likewise.
624 * cgraph.h (symbol_table): Explicitly construct every field.
625
626 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
627
628 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
629 (PF_Z15): ... this.
630 * config.gcc: Add z15 as option for --with-arch and --with-tune
631 configure switches.
632 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
633 error reporting for unsupported builtins.
634 * config/s390/s390-opts.h (enum processor_type): Rename
635 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
636 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
637 * config/s390/driver-native.c (s390_host_detect_local_cpu):
638 Likewise.
639 * config/s390/s390-builtins.def: Likewise.
640 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
641 (s390_expand_builtin): Add missing check for unsupported builtins.
642 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
643 (s390_rtx_costs): Likewise.
644 (s390_get_sched_attrmask): Rename arch13 to z15.
645 (s390_get_unit_mask): Likewise.
646 (s390_is_fpd): Likewise.
647 (s390_is_fxd): Likewise.
648 * config/s390/s390.h (enum processor_flags): Likewise.
649 * config/s390/s390.md: Likewise.
650 * config/s390/vector.md: Likewise.
651 * config/s390/vx-builtins.md: Likewise.
652 * config/s390/s390.opt: Add z15 to processor_type value.
653
654 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
655
656 PR target/91035
657 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
658 prototype.
659 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
660 ("split_stack_data", "split_stack_call")
661 ("split_stack_call_<mode>", "split_stack_cond_call")
662 ("split_stack_cond_call_<mode>"): Remove.
663 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
664 insn definition.
665 * config/s390/s390.c (s390_output_split_stack_data): New function.
666 (s390_expand_split_stack_prologue): Use the merged expander.
667
668 2019-10-09 Martin Sebor <msebor@redhat.com>
669
670 PR tree-optimization/90879
671 * builtins.c (check_access): Avoid using maxbound when null.
672 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
673 * doc/invoke.texi (-Wstring-compare): Document new warning option.
674 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
675 conditional.
676 (get_range_strlen): Overwrite initial maxbound when non-null.
677 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
678 changes.
679 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
680 (used_only_for_zero_equality): New function.
681 (handle_builtin_memcmp): Call it.
682 (determine_min_objsize): Return an integer instead of tree.
683 (get_len_or_size, strxcmp_eqz_result): New functions.
684 (maybe_warn_pointless_strcmp): New function.
685 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
686 between a longer string and a smaller array.
687 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
688
689 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
690
691 * config/darwin.c (darwin_override_options): Make the check for
692 Objective-C ABI version more specific for 64bit code.
693
694 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
695
696 * config/darwin.c (machopic_indirect_data_reference): Set flag to
697 indicate that the new symbol is an indirection.
698 (machopic_indirect_call_target): Likewise.
699 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
700 (MACHO_SYMBOL_INDIRECTION_P): New.
701 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
702
703 2019-10-08 Jason Merrill <jason@redhat.com>
704
705 * doc/invoke.texi: Document -fconcepts-ts.
706
707 2019-10-09 Richard Biener <rguenther@suse.de>
708
709 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
710 allow stmts other than GIMPLE_ASSIGN in nested cycles.
711
712 2019-10-08 Richard Biener <rguenther@suse.de>
713
714 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
715 (_stmt_vec_info::force_single_cycle): Likewise.
716 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
717 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
718 * tree-vect-loop.c (vectorizable_reduction): Set
719 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
720 (vect_transform_reduction): Use them to remove redundant code.
721 (vect_transform_cycle_phi): Likewise.
722
723 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
724
725 PR tree-optimization/90836
726 * gcc/match.pd (popcount): New pattern.
727
728 2019-10-08 Martin Sebor <msebor@redhat.com>
729
730 PR middle-end/92026
731 PR middle-end/92014
732 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
733 again once nbytes has been set. Set the access size when not yet set.
734
735 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
736
737 * config/darwin.c (machopic_select_section): Remove dead code for
738 old Objective-C section selection method, replace with unreachable.
739
740 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
741
742 * config/darwin.c (machopic_indirect_data_reference): Check for
743 required indirections before making direct access to defined
744 values.
745 (machopic_output_indirection): Place the indirected pointes for
746 required indirections into the non-lazy symbol pointers section.
747 (darwin_encode_section_info):
748 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
749 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
750
751 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
752
753 PR target/91994
754 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
755 instead of ALL_SSE_REG to check if function call preserves some
756 256-bit SSE registers.
757
758 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
759
760 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
761 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
762 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
763
764 2019-10-08 Richard Biener <rguenther@suse.de>
765
766 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
767 (_stmt_vec_info::is_reduc_info): Add.
768 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
769 (vectorizable_condition): Remove.
770 (vectorizable_shift): Likewise.
771 (vectorizable_reduction): Adjust.
772 (info_for_reduction): New.
773 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
774 (vect_analyze_scalar_cycles_1): ... here.
775 (vect_analyze_loop_operations): Adjust.
776 (needs_fold_left_reduction_p): Simplify for single caller.
777 (vect_is_simple_reduction): Likewise. Remove stmt restriction
778 for nested cycles not part of double reductions.
779 (vect_model_reduction_cost): Pass in the reduction type.
780 (info_for_reduction): New function.
781 (vect_create_epilog_for_reduction): Use it, access reduction
782 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
783 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
784 (vectorize_fold_left_reduction): Remove pointless assert.
785 (vectorizable_reduction): Analyze the full reduction when
786 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
787 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
788 stmt code-generation to vectorizable_* in most cases. Verify
789 code-generation only for cases handled by
790 vect_transform_reductuon.
791 (vect_transform_reduction): Use info_for_reduction to get at
792 reduction meta. Simplify.
793 (vect_transform_cycle_phi): Likewise.
794 (vectorizable_live_operation): Likewise.
795 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
796 at the PHI node for STMT_VINFO_REDUC_TYPE.
797 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
798 longer necessary code.
799 * tree-vect-stmts.c (vectorizable_shift): Make static again.
800 (vectorizable_condition): Likewise. Get at reduction related
801 info via info_for_reduction.
802 (vect_analyze_stmt): Adjust.
803 (vect_transform_stmt): Likewise.
804 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
805 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
806
807 2019-10-08 Joseph Myers <joseph@codesourcery.com>
808
809 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
810 -fno-fp-int-builtin-inexact default for C2X.
811
812 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
813 Richard Biener <rguenther@suse.de>
814
815 PR tree-optimization/91532
816 * tree-if-conv.c: Include tree-ssa-dse.h.
817 (ifcvt_local_dce): Change param from bb to loop,
818 and call dse_classify_store.
819 (tree_if_conversion): Pass loop instead of loop->header as arg
820 to ifcvt_local_dce.
821 * tree-ssa-dse.c: Include tree-ssa-dse.h.
822 (delete_dead_or_redundant_assignment): Remove static qualifier from
823 declaration, and add prototype in tree-ssa-dse.h.
824 (dse_store_status): Move to tree-ssa-dse.h.
825 (dse_classify_store): Remove static qualifier and add new tree param
826 stop_at_vuse, and add prototype in tree-ssa-dse.h.
827 * tree-ssa-dse.h: New header.
828
829 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
830
831 * config/darwin.c (machopic_output_indirection): Don't put
832 hidden symbol indirections into the .data section, use the
833 non-lazy symbol pointers section as normal.
834 (darwin_encode_section_info): Record if a symbol is hidden.
835 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
836 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
837
838 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
839
840 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
841 predicates instead of accessing bits directly.
842 (machopic_indirect_call_target): Likewise.
843 (machopic_output_indirection): Likewise.
844 (darwin_encode_section_info): Improve description. Use renamed
845 symbol flags. Use predicate macros for variables and functions.
846 * config/darwin.h:
847 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
848 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
849 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
850 (MACHO_SYMBOL_VARIABLE_P): New.
851 (MACHO_SYMBOL_DEFINED_P):New.
852 (MACHO_SYMBOL_STATIC_P): New.
853 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
854 (SYMBOL_FLAG_SUBT_DEP): New.
855 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
856
857 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
858
859 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
860 (msp430_expand_epilogue): Likewise.
861 * config/msp430/predicates.md: Likewise.
862 * config/msp430/msp430.md: Likewise.
863 Replace blocks of 8 spaces with tabs.
864
865 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
866
867 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
868 * config/msp430/msp430.c (msp430_split_addsi): New.
869 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
870 a block of C code for splitting addsi.
871
872 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
873
874 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
875 ix86_expand_rounddf_32): Reorder functions.
876 * config/i386/i386-protos.h: Update.
877
878 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
879
880 * config.in: Regenerate.
881 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
882 Add new "Yx" constraint.
883 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
884 function.
885 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
886 prototype.
887 * config/msp430/msp430.c (msp430_option_override): Allow the lower
888 code/data region to be selected in the small memory model.
889 (msp430_section_attr): Don't warn if the "section" and "lower"
890 attributes are used together.
891 (msp430_handle_generic_attribute): Likewise.
892 (msp430_var_in_low_mem): New function.
893 (TARGET_ENCODE_SECTION_INFO): Define.
894 (msp430_encode_section_info): New function.
895 (gen_prefix): Return early in the small memory model.
896 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
897 ".lower" prefix if -m{code,data}-region=lower have been passed.
898 (msp430_output_aligned_decl_common): Emit common symbols when
899 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
900 set.
901 (TARGET_ASM_FILE_END): Define.
902 (msp430_file_end): New function.
903 (msp430_do_not_relax_short_jumps): Allow relaxation when
904 function will be in the lower region.
905 (msp430_op_not_in_high_mem): New function.
906 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
907 the 'X' operand selector.
908 Clarify comment for 'x' operand selector.
909 * config/msp430/msp430.h (LINK_SPEC): Propagate
910 -m{code,data}-region to the linker via spec function
911 msp430_propagate_region_opt.
912 (msp430_propagate_region_opt): New prototype.
913 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
914 (SYMBOL_FLAG_LOW_MEM): Define.
915 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
916 selector.
917 (zero_extendqihi2): Fix operand number used by "%X" selector.
918 (zero_extendqisi2): Likewise.
919 (zero_extendhisi2): Likewise.
920 (movqi): Use "Yx" constraint in place of "%X" operand selector.
921 (movhi): Likewise.
922 (addqi3): Likewise.
923 (addhi3): Likewise.
924 (addsi3): Likewise.
925 (addhi3_cy): Likewise.
926 (addchi4_cy): Likewise.
927 (subqi3): Likewise.
928 (subhi3): Likewise.
929 (subsi3): Likewise.
930 (bic<mode>3): Likewise.
931 (and<mode>3): Likewise.
932 (ior<mode>3): Likewise.
933 (xor<mode>3): Likewise.
934 (slli_1): Add missing "%X" operand selector.
935 (slll_1): Likewise.
936 (slll_2): Likewise.
937 (srai_1): Likewise.
938 (sral_1): Likewise.
939 (sral_2): Likewise.
940 (srli_1): Likewise.
941 (srll_1): Likewise.
942 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
943 selector.
944 (cbranchhi4_real): Likewise.
945 (cbranchqi4_reversed): Likewise.
946 (cbranchhi4_reversed): Likewise.
947 (*bitbranch<mode>4): Likewise.
948 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
949 * config/msp430/msp430.opt (mcode-region=): Set default to
950 MSP430_REGION_LOWER. Improve docstring.
951 (mdata-region=): Likewise.
952 (muse-lower-region-prefix): New option.
953 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
954 mdata-region=none multilib.
955 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
956 mdata-region=none multilib.
957 MULTILIB_EXCEPTIONS: Remove.
958 MULTILIB_REQUIRED: Define.
959 * configure: Regenerate.
960 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
961 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
962 * doc/extend.texi: Clarify comment for {upper,lower,either}
963 function attributes.
964 Add separate description for "lower" variable attribute.
965
966 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
967
968 PR target/77918
969 * optabs-tree.c (vcond_icode_p): New function.
970 (vcond_eq_icode_p): Likewise.
971 (expand_vec_cond_expr_p): Use vcond_icode_p and
972 vcond_eq_icode_p.
973 * optabs.c (can_vcond_compare_p): New function.
974 * optabs.h (can_vcond_compare_p): Likewise.
975
976 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
977
978 PR target/77918
979 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
980 caller passes a non-trapping condition.
981 (is_gimple_condexpr): Allow trapping conditions.
982 (is_gimple_condexpr_1): New helper function.
983 (is_gimple_condexpr_for_cond): New function, acts like old
984 is_gimple_condexpr.
985 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
986 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
987 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
988 * gimplify.c (gimplify_cond_expr): Use
989 is_gimple_condexpr_for_cond.
990 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
991 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
992 VEC_COND_EXPR.
993 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
994 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
995 is_gimple_condexpr_for_cond, remove pointless tmp check
996 (forward_propagate_into_cond): Remove pointless tmp check.
997
998 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
999
1000 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
1001 match that of other gsi_next_* functions. Adjust the comment.
1002 (gsi_start_nonvirtual_phis): New function.
1003 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
1004 gsi_next_nonvirtual_phi accordingly. (No functional change.)
1005
1006 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
1007
1008 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
1009 setjmp situation here. Fix a verb's ending: "the exact variables or
1010 elements for which there are warnings depends" -> "... depend".
1011
1012 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1013
1014 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
1015
1016 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1017
1018 * ipa-prop.c (ipa_vr::nonzero_p): New.
1019 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
1020 non-zero range.
1021 * ipa-prop.h (class ipa_vr): Add nonzero_p.
1022 * tree-vrp.c (range_has_numeric_bounds_p): New.
1023 (range_int_cst_p): Use range_has_numeric_bounds_p.
1024 (get_range_op_handler): New.
1025 (supported_types_p): New.
1026 (defined_ranges_p): New.
1027 (drop_undefines_to_varying): New.
1028 (range_fold_binary_symbolics_p): New.
1029 (range_fold_unary_symbolics_p): New.
1030 (range_fold_unary_expr): Extract out into above functions.
1031 (range_fold_binary_expr): Same.
1032 (value_range_base::normalize_addresses): New.
1033 (value_range_base::normalize_symbolics): Normalize addresses.
1034 * tree-vrp.h (class value_range_base): Add normalize_addresses.
1035
1036 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
1037
1038 * tree-vrp.c (value_range_base::singleton_p): Use
1039 value_range_base::num_pairs instead of vrp_val_is* to check
1040 if a range has one sub-range.
1041
1042 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1043
1044 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
1045 DEF is not a true earlyclobber but is tied to a specific input
1046 operand, and so is effectively earlyclobber wrt inputs that have
1047 different values.
1048 (make_early_clobber_and_input_conflicts): Pass this case to the above.
1049
1050 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1051
1052 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
1053 (pod_mode): Mark operators likewise.
1054 (scalar_int_mode): Mark non-default constructors and
1055 operators with CONSTEXPR.
1056 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
1057 (fixed_size_mode): Likewise.
1058
1059 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
1060
1061 PR target/91994
1062 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
1063 and wrap the unspec_volatile in a parallel.
1064 (*avx_vzeroupper): New define_insn. Use a match_parallel around
1065 the unspec_volatile.
1066 * config/i386/predicates.md (vzeroupper_pattern): Expect the
1067 unspec_volatile to be wrapped in a parallel.
1068 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
1069 (ix86_add_reg_usage_to_vzerouppers): New functions.
1070 (rest_of_handle_insert_vzeroupper): Use them to add register
1071 usage information to the vzeroupper instructions.
1072
1073 2019-10-07 Richard Biener <rguenther@suse.de>
1074
1075 PR tree-optimization/91975
1076 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
1077 handle invariants.
1078
1079 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
1080
1081 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
1082 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
1083
1084 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
1085
1086 * config/darwin.c (darwin_override_options): Adjust objective-c
1087 ABI version error messages to avoid punctuation and contracted
1088 negations.
1089
1090 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
1091
1092 * ipa-inline.c: Fix type; compute size rather than self_size
1093 for size of caller function.
1094
1095 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
1096
1097 PR target/59888
1098 * config/darwin.c (darwin_rodata_section): Add relocation flag,
1099 choose const_data section for constants with relocations.
1100 (machopic_select_section): Pass relocation flag to
1101 darwin_rodata_section ().
1102
1103 2019-10-05 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR tree-optimization/91734
1106 * generic-match-head.c: Include fold-const-call.h.
1107 * match.pd (sqrt(x) cmp c): Check the boundary value and
1108 in case inexact computation of c*c affects comparison of the boundary,
1109 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
1110 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
1111 for -frounding-math. For c2, try the next smaller or larger floating
1112 point constant depending on comparison code and if it has the same
1113 sqrt as c2, use it instead of c2.
1114
1115 2019-10-04 Martin Sebor <msebor@redhat.com>
1116
1117 PR middle-end/91977
1118 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
1119 MEM_REF right operand. Avoid failing for MEM_REF assignments from
1120 uninitialized objects.
1121
1122 2019-10-04 Martin Sebor <msebor@redhat.com>
1123
1124 * builtins.c (compute_objsize): Add an argument.
1125 * tree-object-size.c (addr_object_size): Same.
1126 (compute_builtin_object_size): Same.
1127 * tree-object-size.h (compute_builtin_object): Same.
1128
1129 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
1130
1131 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
1132
1133 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
1134
1135 * match.pd (sinh (x) / cosh (x)): New simplification rule.
1136
1137 2019-10-04 Martin Jambor <mjambor@suse.cz>
1138
1139 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
1140 fntype when switching to calling memcpy instead of memset.
1141
1142 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1143
1144 * hash-table.h (hash_table::empty_slow): Don't assign
1145 size_t values to int variables.
1146
1147 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1148
1149 * expr.c (convert_mode_scalar): Remove shadowing local var.
1150 (emit_block_move): Rename local vars.
1151 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
1152 (emit_push_insn): Rename local vars.
1153 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
1154 shadowing local vars.
1155 (store_constructor): Remove shadowing local vars. Rename local var.
1156 (store_field, expand_cond_expr_using_cmove,
1157 expand_expr_real_2): Remove shadowing local vars.
1158 (expand_expr_real_1,
1159 do_store_flag): Remove shadowing local vars. Rename local vars.
1160
1161 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1162
1163 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
1164
1165 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1166
1167 * genmatch.c (commutate): Rename local var.
1168 (lower_cond): Reuse local var.
1169 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
1170 dt_operand::gen, dt_operand::gen_gimple_expr,
1171 dt_simplify::gen): Add a param. Rename generated vars.
1172 (decision_tree::insert_operand,
1173 (capture_info::walk_match, capture_info::walk_result,
1174 capture_info::walk_c_expr): Rename local vars.
1175 (expr::gen_transform): Rename generated vars.
1176 Use snprintf. Rename local vars.
1177 (capture::gen_transform, dt_operand::get_name,
1178 dt_operand::gen_opname): Rename generated vars.
1179 (write_predicate): Adjust call to gen_kids.
1180 (parser::get_internal_capture_id): Rename generated vars.
1181 (parser::parse_expr): Rename local vars.
1182 (parser::parse_if): Remove local var.
1183 (parser::parse_pattern, add_operator): Rename local vars.
1184
1185 2019-10-04 Joseph Myers <joseph@codesourcery.com>
1186
1187 * builtins.def (DEF_C2X_BUILTIN): New macro.
1188 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1189 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1190 (strndup): Use DEF_C2X_BUILTIN.
1191 * coretypes.h (enum function_class): Add function_c2x_misc.
1192
1193 2019-10-04 Maya Rashish <coypu@sdf.org>
1194
1195 * ira-color.c (update_costs_from_allocno): Call
1196 ira_init_register_move_cost_if_necessary.
1197
1198 2019-10-04 Jeff Law <law@redhat.com>
1199
1200 * config/h8300/h8300.md (cpymemsi): Disable.
1201 (movmd, movmd_internal_<mode>, movstr, movsd):
1202 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1203 (movmd splitter, movsd splitter): Likewise.
1204
1205 * range-op.cc (range_tests): Avoid two tests when ints and
1206 shorts are the same size.
1207
1208 2019-10-04 Richard Biener <rguenther@suse.de>
1209
1210 PR lto/91968
1211 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1212 BLOCK_VARS.
1213
1214 2019-10-04 Richard Biener <rguenther@suse.de>
1215
1216 PR tree-optimization/91982
1217 * tree-vect-loop.c (vectorizable_live_operation): Also guard
1218 against EXTRACT_LAST_REDUCTION.
1219 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1220
1221 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
1222
1223 * range-op.o (value_range_from_overflowed_bounds): Rename from
1224 adjust_overflow_bound.
1225 (value_range_with_overflow): Rename from
1226 create_range_with_overflow.
1227 (create_possibly_reversed_range): Adjusted for above renames.
1228 (operator_*::wi_fold): Same.
1229 (cross_product_operator::wi_cross_productor): Same.
1230
1231 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
1232
1233 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1234 -Wshadow=compatible-local): Fix description.
1235 Add an example where -Wshadow=compatible-local does not
1236 warn.
1237
1238 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
1239
1240 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1241
1242 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1243 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1244
1245 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
1246
1247 * expr.c (emit_block_move_hints): Slightly cleaner fix to
1248 can_move_by_pieces issue.
1249
1250 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
1251
1252 PR target/87243
1253 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1254 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1255 is available and the user has not set one on the command line.
1256
1257 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1258
1259 PR target/91769
1260 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1261 instead of REGNO equality check on addr.reg.
1262
1263 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
1264
1265 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1266 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1267 * doc/invoke.texi (inline-heuristics-hint-percent,
1268 inline-heuristics-hint-percent-O2): Document.
1269 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1270 hint attribute.
1271 (can_inline_edge_by_limits_p): Use it.
1272
1273 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
1274
1275 * config/arm/arm.c (arm_print_value): Use real_to_decimal
1276 to print CONST_DOUBLEs.
1277
1278 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
1279
1280 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1281 * ipa-prop.c (ipcp_free_transformation_sum): New function.
1282 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1283
1284 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
1285
1286 * Makefile.in (OBJS): Add range.o and range-op.o.
1287 Remove wide-int-range.o.
1288 * function-tests.c (test_ranges): New.
1289 (function_tests_c_tests): Call test_ranges.
1290 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1291 range_fold_unary_expr instead of extract_range_from_unary_expr.
1292 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1293 * range-op.cc: New file.
1294 * range-op.h: New file.
1295 * range.cc: New file.
1296 * range.h: New file.
1297 * selftest.h (range_tests): New prototype.
1298 * ssa.h: Include range.h.
1299 * tree-vrp.c (value_range_base::value_range_base): New
1300 constructors.
1301 (value_range_base::singleton_p): Do not call
1302 ranges_from_anti_range until sure we will need to.
1303 (value_range_base::type): Rename gcc_assert to
1304 gcc_checking_assert.
1305 (vrp_val_is_max): New argument.
1306 (vrp_val_is_min): Same.
1307 (wide_int_range_set_zero_nonzero_bits): Move from
1308 wide-int-range.cc.
1309 (extract_range_into_wide_ints): Remove.
1310 (extract_range_from_multiplicative_op): Remove.
1311 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1312 from extract_range_from_binary_expr.
1313 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1314 from extract_range_from_binary_expr.
1315 (extract_range_from_binary_expr): Remove.
1316 (normalize_for_range_ops): New.
1317 (range_fold_binary_expr): New.
1318 (range_fold_unary_expr): New.
1319 (value_range_base::num_pairs): New.
1320 (value_range_base::lower_bound): New.
1321 (value_range_base::upper_bound): New.
1322 (value_range_base::upper_bound): New.
1323 (value_range_base::contains_p): New.
1324 (value_range_base::invert): New.
1325 (value_range_base::union_): New.
1326 (value_range_base::intersect): New.
1327 (range_compatible_p): New.
1328 (value_range_base::operator==): New.
1329 (determine_value_range_1): Call range_fold_*expr instead of
1330 extract_range_from_*expr.
1331 * tree-vrp.h (class value_range_base): Add new constructors.
1332 Add methods for union_, intersect, operator==, contains_p,
1333 num_pairs, lower_bound, upper_bound, invert.
1334 (vrp_val_is_min): Add handle_pointers argument.
1335 (vrp_val_is_max): Same.
1336 (extract_range_from_unary_expr): Remove.
1337 (extract_range_from_binary_expr): Remove.
1338 (range_fold_unary_expr): New.
1339 (range_fold_binary_expr): New.
1340 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1341 range_fold_binary_expr instead of extract_range_from_binary_expr.
1342 (vr_values::extract_range_basic): Same.
1343 (vr_values::extract_range_from_unary_expr): Call
1344 range_fold_unary_expr instead of extract_range_from_unary_expr.
1345 * wide-int-range.cc: Remove.
1346 * wide-int-range.h: Remove.
1347
1348 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
1349
1350 * config/rs6000/rs6000.c (mem_operand_gpr): Use
1351 SIGNED_16BIT_OFFSET_EXTRA_P macro.
1352 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1353 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1354 macro.
1355
1356 2019-10-02 Joseph Myers <joseph@codesourcery.com>
1357
1358 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1359 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1360 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1361 * glimits.h: Likewise.
1362
1363 2019-10-03 Jakub Jelinek <jakub@redhat.com>
1364
1365 PR rtl-optimization/91976
1366 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1367 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
1368 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
1369
1370 2019-10-02 Martin Sebor <msebor@redhat.com>
1371
1372 PR tree-optimization/80936
1373 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1374
1375 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1376
1377 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1378 instead of reg_class_contents[ALL_REGS].
1379
1380 2019-09-30 Jason Merrill <jason@redhat.com>
1381
1382 Add some hash_map_safe_* functions like vec_safe_*.
1383 * hash-map.h (default_hash_map_size): New variable.
1384 (create_ggc): Use it as default argument.
1385 (hash_map_maybe_create, hash_map_safe_get)
1386 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1387
1388 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
1389
1390 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1391 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1392 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1393 (can_inline_edge_by_limits_p): Use it.
1394 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1395 (want_inline_small_function_p): Use O2 bounds.
1396 (edge_badness): LIkewise.
1397 * opts.c (default_options): Add OPT_finline_functions.
1398 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1399 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1400 New parameters.
1401 * doc/invoke.texi (-finline-functions): Update documentation.
1402 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1403 inline-min-speedup-O2): Document.
1404 (early-inlining-insns-O2): Simplify docs.
1405
1406 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
1407
1408 PR rtl-optimization/87047
1409 * ifcvt.c (average_cost): New static function. Use it...
1410 (noce_process_if_block): ... here.
1411
1412 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1413
1414 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1415 * config/rs6000/rs6000-string.c (expand_block_move): Add
1416 might_overlap parm.
1417 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1418 (cpymemsi): Add might_overlap parm to expand_block_move() call.
1419
1420 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
1421
1422 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1423 (expand_builtin_memcpy): Use might_overlap parm.
1424 (expand_builtin_mempcpy_args): Use might_overlap parm.
1425 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1426 (expand_builtin_memory_copy_args): Add might_overlap parm.
1427 * expr.c (emit_block_move_via_cpymem): Rename to
1428 emit_block_move_via_pattern, add might_overlap parm, use cpymem
1429 or movmem optab as appropriate.
1430 (emit_block_move_hints): Add might_overlap parm, do the right
1431 thing for might_overlap==true.
1432 * expr.h (emit_block_move_hints): Update prototype.
1433
1434 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
1435
1436 * tree-eh.h (unsplit_eh_edges): Declare.
1437 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1438 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1439 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1440 (struct store_immediate_info): Add lp_nr field.
1441 (store_immediate_info::store_immediate_info): Add NR2 parameter and
1442 initialize lp_nr with it.
1443 (struct merged_store_group): Add lp_nr and only_constants fields.
1444 (merged_store_group::merged_store_group): Initialize them.
1445 (merged_store_group::can_be_merged_into): Deal with them.
1446 (pass_store_merging): Rename terminate_and_release_chain into
1447 terminate_and_process_chain.
1448 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1449 renaming and remove useless assertions.
1450 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1451 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1452 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1453 instead of always recomputing it and compare lp_nr.
1454 (imm_store_chain_info::output_merged_store): If the group is in an
1455 active EH region, register new stores if they can throw. Moreover,
1456 if the insertion has created new basic blocks, adjust the PHI nodes
1457 of the post landing pad.
1458 (imm_store_chain_info::output_merged_stores): If the original stores
1459 are in an active EH region, deregister them.
1460 (lhs_valid_for_store_merging_p): Prettify.
1461 (adjust_bit_pos): New function extracted from...
1462 (mem_valid_for_store_merging): ...here. Use it for the base address
1463 and also for the offset if it is the addition of a constant.
1464 (lp_nr_for_store): New function.
1465 (pass_store_merging::process_store): Change return type to bool.
1466 Call lp_nr_for_store to initialize the store info. Propagate the
1467 return status of various called functions to the return value.
1468 (store_valid_for_store_merging_p): New predicate.
1469 (enum basic_block_status): New enumeration.
1470 (get_status_for_store_merging): New function.
1471 (pass_store_merging::execute): If the function can throw and catch
1472 non-call exceptions, unsplit the EH edges on entry and clean up the
1473 CFG on exit if something changed. Call get_status_for_store_merging
1474 for every basic block and keep the chains open across basic blocks
1475 when possible. Terminate and process open chains at the end, if any.
1476
1477 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1478
1479 * reginfo.c (globalize_reg): Fix shadowed variable in
1480 function_abis walk.
1481
1482 2019-10-02 Martin Jambor <mjambor@suse.cz>
1483
1484 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1485 do not compute some stuff when set.
1486 (cgraph_node::create_edge): Likewise.
1487 (cgraph_node::create_indirect_edge): Renamed last parameter to
1488 coning_p and flipped its meaning, don't even calculate
1489 inline_failed when set.
1490 * cgraph.h (cgraph_node::create_edge): Add new parameter.
1491 (symbol_table::::create_edge): Likewise.
1492 (cgraph_node::create_indirect_edge): Rename last parameter, flip
1493 the default value.
1494 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1495 call graph edge creating functions.
1496
1497 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1498
1499 PR c++/91222
1500 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1501 namespace types.
1502
1503 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
1504
1505 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1506
1507 2019-10-02 Richard Biener <rguenther@suse.de>
1508
1509 * tree-vectorizer.h (vect_transform_reduction): Declare.
1510 * tree-vect-stmts.c (vect_transform_stmt): Use it.
1511 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1512 stmt transform to ...
1513 (vect_transform_reduction): ... this.
1514
1515 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
1516
1517 * omp-low.c (lower_omp_target): Dereference optional argument
1518 to work with the right pointer.
1519
1520 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
1521
1522 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1523 false.
1524 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1525 * langhooks.h (omp_is_optional_argument): New hook.
1526 * omp-general.c (omp_is_optional_argument): New.
1527 * omp-general.h (omp_is_optional_argument): New declaration.
1528 * omp-low.c (lower_omp_target): Create temporary for received value
1529 and take the address for new_var if the original variable was a
1530 DECL_BY_REFERENCE. Use size of referenced object when a
1531 pass-by-reference optional argument used as argument to firstprivate.
1532
1533 2019-10-02 Jakub Jelinek <jakub@redhat.com>
1534
1535 PR tree-optimization/91940
1536 * tree-vect-patterns.c: Include tree-vector-builder.h and
1537 vec-perm-indices.h.
1538 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1539 unpromoting the argument back to uint16_t, or by converting into a
1540 rotate, or into shifts plus ior.
1541
1542 2019-10-02 Richard Biener <rguenther@suse.de>
1543
1544 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1545 New.
1546 (vect_transform_cycle_phi): Declare.
1547 * tree-vect-stmts.c (vect_transform_stmt): Call
1548 vect_transform_cycle_phi.
1549 * tree-vect-loop.c (vectorizable_reduction): Split out
1550 PHI transformation stage to ...
1551 (vect_transform_cycle_phi): ... here.
1552
1553 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
1554
1555 PR middle-end/91957
1556 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1557 eliminable registers.
1558 (make_hard_regno_live): Likewise, and don't make them live.
1559
1560 2019-10-01 David Malcolm <dmalcolm@redhat.com>
1561
1562 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1563 Call pp_emit_prefix.
1564 (layout::print_source_line): Likewise.
1565 (layout::start_annotation_line): Likewise.
1566 (diagnostic_show_locus): Remove call to temporarily clear the
1567 prefix.
1568 (selftest::test_one_liner_fixit_remove): Add test coverage for the
1569 interaction of pp_set_prefix with rulers and fix-it hints.
1570 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1571 prefix when calling diagnostic_show_locus, rather than destroying
1572 it afterwards.
1573 (print_parseable_fixits): Temporarily clear prefix.
1574 * pretty-print.c (pp_format): Save and restore line_length, rather
1575 than assuming it is zero.
1576 (pp_output_formatted_text): Remove assertion that line_length is
1577 zero.
1578
1579 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1580
1581 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1582 Rename to ...
1583 (nonoverlapping_refs_since_match_p): ... this; handle also
1584 ARRAY_REFs.
1585 (alias_stats): Update stats.
1586 (dump_alias_stats): Likewise.
1587 (cheap_array_ref_low_bound): New function.
1588 (aliasing_matching_component_refs_p): Add partial_overlap
1589 argument;
1590 pass it to nonoverlapping_refs_since_match_p.
1591 (aliasing_component_refs_walk): Update call of
1592 aliasing_matching_component_refs_p
1593 (nonoverlapping_array_refs_p): New function.
1594 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1595 indirect_refs_may_alias_p): Update calls of
1596 nonoverlapping_refs_since_match_p.
1597
1598 2019-10-01 Maya Rashish <coypu@sdf.org>
1599
1600 PR target/85401
1601 * ira-color.c (allocno_copy_cost_saving): Call
1602 ira_init_register_move_cost_if_necessary.
1603
1604 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
1605
1606 * Makefile.in (gnat_install_lib): New variable.
1607 * configure.ac: Substitute it.
1608 * configure: Regenerate.
1609
1610 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1611
1612 PR lto/91222
1613 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1614 is matched with non-C++ type
1615
1616 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1617
1618 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1619 after local CSE.
1620
1621 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
1622
1623 * doc/invoke.texi (early-inlining-insns-O2): Document.
1624 (early-inlining-insns): Update.
1625 * params.def (early-inlining-insns-O2): New bound.
1626 (early-inlining-insns): Update docs.
1627 * ipa-inline.c (want_early_inline_function_p): Use new bound.
1628
1629 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
1630
1631 PR target/88562
1632 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1633 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1634 a memory access insn.
1635
1636 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
1637
1638 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1639 vpmsumd.
1640
1641 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1642
1643 PR target/77918
1644 * config/s390/s390.c (s390_expand_vec_compare): Use
1645 gen_vec_cmpordered and gen_vec_cmpunordered.
1646 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1647 vec_unordered): Delete.
1648 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1649 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1650 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1651 (vec_cmp<code>): Generic dispatcher.
1652
1653 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
1654
1655 PR target/77918
1656 * config/s390/vector.md (V_HW): Add V1TI in order to make
1657 vcond$a$b generate vcondv1tiv1tf.
1658
1659 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1660
1661 PR rtl-optimization/91948
1662 * ira-build.c (ira_create_allocno): Initialize
1663 ALLOCNO_CROSSED_CALLS_ABIS.
1664 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1665 than regno to ira_need_caller_save_p.
1666
1667 2019-10-01 Alexandre Oliva <oliva@adacore.com>
1668
1669 * config/i386/i386-options.c
1670 (ix86_recompute_optlev_based_flags): New, moved out of...
1671 (ix86_option_override_internal): ... this. Call it.
1672 (ix86_override_options_after_change): Call it here too.
1673
1674 PR debug/91507
1675 * dwarf2out.c (override_type_for_decl_p): New.
1676 (gen_variable_die): Use it.
1677
1678 2019-10-01 Richard Biener <rguenther@suse.de>
1679
1680 * tree-vect-loop.c (vectorizable_reduction): Move variables
1681 to where they are used.
1682
1683 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1684
1685 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1686 (build_def_use): Use PC instead of CC0 in a comment.
1687
1688 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1689
1690 * rtl.def (CLOBBER_HIGH): Delete.
1691 * doc/rtl.texi (clobber_high): Remove documentation.
1692 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1693 (reg_is_clobbered_by_clobber_high): Delete.
1694 (gen_hard_reg_clobber_high): Likewise.
1695 * alias.c (record_set): Remove CLOBBER_HIGH handling.
1696 * cfgexpand.c (expand_gimple_stmt): Likewise.
1697 * combine-stack-adj.c (single_set_for_csa): Likewise.
1698 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1699 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1700 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1701 * cse.c (invalidate_reg): Remove clobber_high parameter.
1702 (invalidate): Update call accordingly.
1703 (canonicalize_insn): Remove CLOBBER_HIGH handling.
1704 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1705 (count_reg_usage, insn_live_p): Likewise.
1706 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1707 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1708 (cselib_invalidate_rtx_note_stores): Update call accordingly.
1709 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1710 (cselib_invalidate_regno, cselib_process_insn): Likewise.
1711 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1712 (mark_nonreg_stores_2): Likewise.
1713 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1714 (df_get_call_refs): Likewise.
1715 * dwarf2out.c (mem_loc_descriptor): Likewise.
1716 * emit-rtl.c (verify_rtx_sharing): Likewise.
1717 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1718 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1719 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1720 * genemit.c (gen_exp, gen_insn): Likewise.
1721 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1722 * haifa-sched.c (haifa_classify_rtx): Likewise.
1723 * ira-build.c (create_insn_allocnos): Likewise.
1724 * ira-costs.c (scan_one_insn): Likewise.
1725 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1726 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1727 * jump.c (mark_jump_label_1): Likewise.
1728 * lra-int.h (lra_insn_reg::clobber_high): Delete.
1729 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1730 handling.
1731 (mark_not_eliminable): Likewise.
1732 * lra-lives.c (process_bb_lives): Likewise.
1733 * lra.c (new_insn_reg): Remove clobber_high parameter.
1734 (collect_non_operand_hard_regs): Likewise. Update call to new
1735 insn_reg. Remove CLOBBER_HIGH handling.
1736 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
1737 to collect_non_operand_hard_regs.
1738 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1739 Update call to new_insn_reg.
1740 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1741 * postreload.c (reload_cse_simplify, reload_combine_note_use)
1742 (move2add_note_store): Likewise.
1743 * print-rtl.c (print_pattern): Likewise.
1744 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1745 (if_test_bypass_p): Likewise.
1746 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1747 * reginfo.c (reg_scan_mark_refs): Likewise.
1748 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1749 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1750 (forget_old_reloads_1): Likewise.
1751 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1752 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1753 (dbr_schedule): Likewise.
1754 * resource.c (update_live_status, mark_referenced_resources)
1755 (mark_set_resources): Likewise.
1756 * rtl.c (copy_rtx): Likewise.
1757 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1758 (note_pattern_stores): Likewise.
1759 (reg_is_clobbered_by_clobber_high): Delete.
1760 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1761 CLOBBER_HIGH handling.
1762
1763 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1764
1765 PR target/91452
1766 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1767 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1768 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1769 Handle ARM_PCS_TLSDESC.
1770 (aarch64_tlsdesc_abi_id): New function.
1771 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1772 rtx instead of a list of clobbers and clobber_highs.
1773 (tlsdesc_small_<mode>): Update accordingly.
1774
1775 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1776
1777 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1778 extra callee_abi argument.
1779 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1780 Insert a CALLEE_ABI unspec into the call pattern as the second
1781 element in the PARALLEL.
1782 (aarch64_simd_call_p): Delete.
1783 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1784 the new CALLEE_ABI element of the PARALLEL.
1785 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1786 from the function type, if given.
1787 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1788 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
1789 when passed the function_arg_info end marker.
1790 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1791 final argument of gen_sibcall.
1792 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1793 (call): Make operand 2 a const_int_operand and pass it to expand_call.
1794 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1795 pattern.
1796 (call_value): Likewise operand 3.
1797 (sibcall): Likewise operand 2. Place the unspec before rather than
1798 after the return.
1799 (sibcall_value): Likewise operand 3.
1800 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1801 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1802 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
1803 constraint strings.
1804 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1805
1806 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
1807
1808 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1809 choose_hard_reg_mode.
1810 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1811
1812 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
1813
1814 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1815 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1816 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1817
1818 2019-09-30 David Malcolm <dmalcolm@redhat.com>
1819
1820 * diagnostic-show-locus.c (line_label::line_label): Initialize
1821 m_has_vbar.
1822 (line_label::comparator): Reverse the sort order by m_state_idx,
1823 so that when the list is walked backwards the labels appear in
1824 order of insertion into the rich_location.
1825 (line_label::m_has_vbar): New field.
1826 (layout::print_any_labels): When dealing with multiple labels at
1827 the same line and column, only print vertical bars for the one
1828 with the highest label_line.
1829 (selftest::test_one_liner_labels): Update test for multiple labels
1830 to expect the labels to be in the order of insertion into the
1831 rich_location. Add a test for many such labels, where the column
1832 numbers are out-of-order relative to the insertion order.
1833
1834 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1835
1836 * config/i386/i386.h (ix86_frame::expensive_p): New field.
1837 (ix86_frame::expensive_count): Likewise.
1838 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1839 of use_fast_prologue_epilogue robust against incidental changes
1840 in function size.
1841
1842 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
1843
1844 PR target/77918
1845 * config/s390/vector.md (vec_unordered<mode>): Call
1846 gen_vec_ordered<mode>.
1847
1848 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
1849
1850 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1851 New pattern for ASRD.
1852 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1853 * internal-fn.def (IFN_DIV_POW2): New internal function.
1854 * optabs.def (sdiv_pow2_optab): New optab.
1855 * tree-vect-patterns.c (vect_recog_divmod_pattern):
1856 Modify pattern to support new operation.
1857 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1858 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1859 Document new target selector.
1860
1861 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1862
1863 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1864 to test whether we're compiling a vector PCS function and to test
1865 whether the function needs to save a particular register.
1866 Remove the vector PCS handling of df_set_regs_ever_live.
1867 (aarch64_components_for_bb): Use crtl->abi to test whether
1868 the function needs to save a particular register.
1869 (aarch64_process_components): Use crtl->abi to test whether
1870 we're compiling a vector PCS function.
1871 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1872 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1873
1874 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1875
1876 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1877 Delete.
1878 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1879 whether the block calls a function that clobbers more registers
1880 than the current function is allowed to.
1881 (aarch64_use_simple_return_insn_p): Delete.
1882 * config/aarch64/aarch64.md (simple_return): Remove condition.
1883
1884 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1885
1886 * function-abi.h (function_abi_aggregator): New class.
1887 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1888 function.
1889 * ira.c (update_equiv_regs_prescan): New function. Call
1890 set_paradoxical_subreg here rather than...
1891 (update_equiv_regs): ...here.
1892 (ira): Call update_equiv_regs_prescan.
1893
1894 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1895
1896 * hard-reg-set.h (regs_invalidated_by_call): Only define if
1897 IN_TARGET_CODE.
1898 (call_used_or_fixed_regs): Likewise.
1899 (call_used_or_fixed_reg_p): Likewise.
1900 * reginfo.c (regs_invalidated_by_call): New macro.
1901
1902 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1903
1904 * shrink-wrap.c: Include function-abi.h.
1905 (requires_stack_frame_p): Use crtl->abi to test whether the
1906 current function can use a register without saving it first.
1907
1908 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1909
1910 * sel-sched-ir.h (_def::crosses_call): Replace with...
1911 (_def::crossed_call_abis): ..this new field.
1912 (def_list_add): Take a mask of ABIs instead of a crosses_call
1913 boolean.
1914 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
1915 of _def accordingly.
1916 * sel-sched.c: Include function-abi.h.
1917 (hard_regs_data::regs_for_call_clobbered): Delete.
1918 (reg_rename::crosses_call): Replace with...
1919 (reg_rename::crossed_call_abis): ...this new field.
1920 (fur_static_params::crosses_call): Replace with...
1921 (fur_static_params::crossed_call_abis): ...this new field.
1922 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1923 (init_hard_regs_data): Use crtl->abi to test which registers the
1924 current function would need to save before it uses them.
1925 (mark_unavailable_hard_regs): Update handling of call-clobbered
1926 registers, using call_clobbers_in_region to find out which registers
1927 might be call-clobbered (but without taking -fipa-ra into account
1928 for now). Remove separate handling of partially call-clobbered
1929 registers.
1930 (verify_target_availability): Use crossed_call_abis instead of
1931 crosses_call.
1932 (get_spec_check_type_for_insn, find_used_regs): Likewise.
1933 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1934
1935 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1936
1937 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1938 function to test whether a register is fully or partly clobbered.
1939
1940 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1941
1942 * rtlanal.c: Include function-abi.h.
1943 (reg_set_p): Use insn_callee_abi to get the ABI of the called
1944 function and clobbers_reg_p to test whether the register
1945 is call-clobbered.
1946 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1947 to get the ABI of the called function and full_reg_clobbers to
1948 get the set of fully call-clobbered registers. Warn about the
1949 pitfalls of using this mode.
1950
1951 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1952
1953 * reload.c: Include function-abi.h.
1954 (find_equiv_reg): Use clobbers_reg_p to test whether either
1955 of the equivalent registers is clobbered by a call.
1956 * reload1.c: Include function-abi.h.
1957 (reg_reloaded_call_part_clobbered): Delete.
1958 (reload): Use crtl->abi to test which registers would need
1959 saving in the prologue before use.
1960 (find_reg): Likewise.
1961 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1962 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
1963 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1964
1965 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1966
1967 * regrename.h (du_head::call_clobber_mask): New field.
1968 (du_head::need_caller_save_reg): Replace with...
1969 (du_head::call_abis): ...this new field.
1970 * regrename.c: Include function-abi.h.
1971 (call_clobbered_in_chain_p): New function.
1972 (check_new_reg_p): Use crtl->abi when deciding whether a register
1973 is free for use after RA. Use call_clobbered_in_chain_p to test
1974 whether a candidate register would be clobbered by a call.
1975 (find_rename_reg): Don't add call-clobber conflicts here.
1976 (rename_chains): Check call_abis instead of need_caller_save_reg.
1977 (merge_chains): Update for changes to du_head.
1978 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1979 target. Record the ABI identifier in call_abis and the set of
1980 fully or partially clobbered registers in call_clobber_mask.
1981 Add fully-clobbered registers to hard_conflicts here rather
1982 than in find_rename_reg.
1983 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1984 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1985 * config/aarch64/falkor-tag-collision-avoidance.c: Include
1986 function-abi.h.
1987 * config/c6x/c6x.c: Likewise.
1988
1989 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1990
1991 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1992 mode of the register when deciding whether it is no longer
1993 available after a call.
1994
1995 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
1996
1997 * recog.c: Include function-abi.h.
1998 (peep2_find_free_register): Use crtl->abi when deciding whether
1999 a register is free for use after RA.
2000
2001 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2002
2003 * postreload-gcse.c: Include regs.h and function-abi.h.
2004 (record_opr_changes): Use insn_callee_abi to get the ABI of the
2005 call insn target. Conservatively assume that partially-clobbered
2006 registers are altered.
2007
2008 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2009
2010 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
2011 when deciding whether a register is free for use after RA.
2012 (reload_combine): Remove unnecessary use of fixed_reg_set.
2013 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
2014 call insn target. Use reg_mode when testing whether a register
2015 is no longer available.
2016
2017 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2018
2019 * target.def (return_call_with_max_clobbers): Delete.
2020 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2021 * doc/tm.texi: Regenerate.
2022 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
2023 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
2024 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
2025 (lra_reg::call_insn): Delete.
2026 * lra.c: Include function-abi.h.
2027 (initialize_lra_reg_info_element): Don't initialize the fields above.
2028 (lra): Use crtl->abi to test whether the current function needs to
2029 save a register in the prologue. Remove special pre-inheritance
2030 lra_create_live_ranges pass for flag_ipa_ra.
2031 * lra-assigns.c: Include function-abi.h
2032 (find_hard_regno_for_1): Use crtl->abi to test whether the current
2033 function needs to save a register in the prologue.
2034 (lra_assign): Assert that registers aren't allocated to a
2035 conflicting register, rather than checking only for overlaps
2036 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
2037 and for registers that are not live across a call.
2038 * lra-constraints.c (last_call_for_abi): New variable.
2039 (full_and_partial_call_clobbers): Likewise.
2040 (setup_next_usage_insn): Remove the register from
2041 full_and_partial_call_clobbers.
2042 (need_for_call_save_p): Use call_clobbered_in_region_p to test
2043 whether the register needs a caller save.
2044 (need_for_split_p): Use full_and_partial_reg_clobbers instead
2045 of call_used_or_fixed_regs.
2046 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
2047 full_and_partial_call_clobbers.
2048 * lra-lives.c (check_pseudos_live_through_calls): Replace
2049 last_call_used_reg_set and call_insn arguments with an abi argument.
2050 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
2051 as the set of conflicting registers.
2052 (calls_have_same_clobbers_p): Delete.
2053 (process_bb_lives): Track the ABI of the last call instead of an
2054 insn/HARD_REG_SET pair. Update calls to
2055 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
2056 the set of registers that could be clobbered by an EH edge.
2057 Include partially-clobbered as well as fully-clobbered registers.
2058 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
2059 * lra-remat.c: Include function-abi.h.
2060 (call_used_regs_arr_len, call_used_regs_arr): Delete.
2061 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
2062 registers and bitmap_view to combine them into dead_regs.
2063 (call_used_input_regno_present_p): Take a function_abi argument
2064 and use it to test whether a register is call-clobbered.
2065 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
2066 call insn target. Update tje call to call_used_input_regno_present_p.
2067 (do_remat): Likewise.
2068 (lra_remat): Remove the initialization of call_used_regs_arr_len
2069 and call_used_regs_arr.
2070
2071 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2072
2073 * loop-iv.c: Include regs.h and function-abi.h.
2074 (simplify_using_initial_values): Use insn_callee_abi to get the
2075 ABI of the call insn target. Conservatively assume that
2076 partially-clobbered registers are altered.
2077
2078 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2079
2080 * function-abi.h (call_clobbers_in_region): Declare.
2081 (call_clobbered_in_region_p): New function.
2082 * function-abi.cc (call_clobbers_in_region): Likewise.
2083 * ira-int.h: Include function-abi.h.
2084 (ira_allocno::crossed_calls_abis): New field.
2085 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
2086 (ira_need_caller_save_regs): New function.
2087 (ira_need_caller_save_p): Likewise.
2088 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
2089 of call_used_or_fixed_regs.
2090 (do_reload): Use crtl->abi to test whether the current function
2091 needs to save a register in the prologue. Count registers that
2092 need to be saved rather than registers that don't.
2093 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
2094 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2095 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
2096 (propagate_some_info_from_allocno): Likewise.
2097 (copy_info_to_removed_store_destinations): Likewise.
2098 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
2099 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
2100 (ira_build): Use ira_need_caller_save_regs instead of
2101 call_used_or_fixed_regs.
2102 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
2103 whether the current function would need to save a register
2104 before using it.
2105 (calculate_spill_cost): Likewise.
2106 (allocno_reload_assign): Use ira_need_caller_save_regs and
2107 ira_need_caller_save_p instead of call_used_or_fixed_regs.
2108 * ira-conflicts.c (ira_build_conflicts): Use
2109 ira_need_caller_save_regs rather than call_used_or_fixed_regs
2110 as the set of call-clobbered registers. Remove the
2111 call_used_or_fixed_regs mask from the calculation of
2112 temp_hard_reg_set and mask its use instead. Remove special
2113 handling of partially-clobbered registers.
2114 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
2115 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
2116 calculate the set of conflicting registers for calls that
2117 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
2118 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
2119 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2120 Use eh_edge_abi to calculate the set of registers that could
2121 be clobbered by an EH edge. Include partially-clobbered as
2122 well as fully-clobbered registers.
2123
2124 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2125
2126 * haifa-sched.c: Include function-abi.h.
2127 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
2128 the function would need to save a register before using it.
2129
2130 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2131
2132 * gcse.c: Include function-abi.h.
2133 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
2134 the call insn target. Invalidate partially call-clobbered
2135 registers as well as fully call-clobbered ones.
2136
2137 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2138
2139 * function.c (aggregate_value_p): Work out which ABI the
2140 function is using before testing which registers are at least
2141 partly preserved by a call.
2142
2143 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2144
2145 * early-remat.c: Include regs.h and function-abi.h.
2146 (early_remat::maybe_add_candidate): Don't check for call-clobbered
2147 registers here.
2148 (early_remat::restrict_remat_for_unavail_regs): New function.
2149 (early_remat::restrict_remat_for_call): Likewise.
2150 (early_remat::process_block): Before calling emit_remat_insns
2151 for a previous call in the block, invalidate any candidates
2152 that would clobber call-preserved registers.
2153 (early_remat::emit_remat_insns_for_block): Likewise for the
2154 final call in a block. Do the same thing for live-in registers
2155 when calling emit_remat_insns at the head of a block.
2156
2157 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2158
2159 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
2160 whether the current function needs to save at least part of a
2161 register before using it.
2162 (df_get_exit_block_use_set): Likewise for epilogue restores.
2163
2164 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2165
2166 * df-problems.c: Include regs.h and function-abi.h.
2167 (df_rd_problem_data): Rename sparse_invalidated_by_call to
2168 sparse_invalidated_by_eh and dense_invalidated_by_call to
2169 dense_invalidated_by_eh.
2170 (df_print_bb_index): Update accordingly.
2171 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2172 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2173 that are clobbered by an EH edge. Clobber partially-clobbered
2174 registers as well as fully-clobbered ones.
2175 (df_md_confluence_n): Likewise.
2176 (df_rd_local_compute): Likewise. Update for changes to
2177 df_rd_problem_data.
2178 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2179 of registers that are clobbered by an EH edge. Includde partially-
2180 clobbered registers as well as fully-clobbered ones.
2181
2182 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2183
2184 * cselib.c (cselib_process_insn): If we know what mode a
2185 register was set in, check whether it is clobbered in that
2186 mode by a call. Only fall back to reg_raw_mode if that fails.
2187
2188 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2189
2190 * cse.c: Include regs.h and function-abi.h.
2191 (invalidate_for_call): Take the call insn as an argument.
2192 Use insn_callee_abi to get the ABI of the call and invalidate
2193 partially clobbered registers as well as fully clobbered ones.
2194 (cse_insn): Update call accordingly.
2195
2196 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2197
2198 * combine.c: Include function-abi.h.
2199 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2200 of the target of call insns. Invalidate partially-clobbered
2201 registers as well as fully-clobbered ones.
2202
2203 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2204
2205 * cfgloopanal.c: Include regs.h and function-abi.h.
2206 (init_set_costs): Use default_function_abi to test whether
2207 a general register is call-clobbered.
2208
2209 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2210
2211 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2212 instead of the call-clobbered sets.
2213
2214 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2215
2216 * caller-save.c (setup_save_areas): Remove redundant |s of
2217 fixed_reg_set.
2218 (save_call_clobbered_regs): Likewise. Use the call ABI rather
2219 than call_used_or_fixed_regs to decide whether a REG_RETURNED
2220 value is useful.
2221
2222 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2223
2224 * rtl.h (predefined_function_abi): Declare.
2225 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2226 instead of a boolean call_save flag.
2227 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2228 accordingly.
2229 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2230 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2231 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2232 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2233 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2234 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2235 * reginfo.c (init_reg_modes_target): Likewise.
2236 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2237 instead of a boolean call_save flag.
2238 * targhooks.c: Include function-abi.h.
2239 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2240 using eh_edge_abi to choose the mode.
2241
2242 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2243
2244 * target.def (hard_regno_call_part_clobbered): Take an ABI
2245 identifier instead of an rtx_insn.
2246 * doc/tm.texi: Regenerate.
2247 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2248 (hook_bool_uint_uint_mode_false): New function.
2249 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2250 (hook_bool_uint_uint_mode_false): New function.
2251 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2252 Take an ABI identifier instead of an rtx_insn.
2253 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2254 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2255 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2256 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2257 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2258 Likewise.
2259 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2260 * cselib.c: Include function-abi.h.
2261 (cselib_process_insn): Update call to
2262 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2263 to get the appropriate ABI identifier.
2264 * function-abi.cc (predefined_function_abi::initialize): Update call
2265 to targetm.hard_regno_call_part_clobbered.
2266 * ira-conflicts.c (ira_build_conflicts): Likewise.
2267 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2268 * lra-constraints.c: Include function-abi.h.
2269 (need_for_call_save_p): Update call to
2270 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2271 to get the appropriate ABI identifier.
2272 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2273 * regcprop.c (copyprop_hardreg_forward_1): Update call
2274 to targetm.hard_regno_call_part_clobbered.
2275 * reginfo.c (choose_hard_reg_mode): Likewise.
2276 * regrename.c (check_new_reg_p): Likewise.
2277 * reload.c (find_equiv_reg): Likewise.
2278 * reload1.c (emit_reload_insns): Likewise.
2279 * sched-deps.c: Include function-abi.h.
2280 (deps_analyze_insn): Update call to
2281 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2282 to get the appropriate ABI identifier.
2283 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2284 call to targetm.hard_regno_call_part_clobbered.
2285 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2286
2287 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2288
2289 * config/i386/i386.c: Include function-abi.h.
2290 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2291 if they preserve some 256-bit or 512-bit SSE registers.
2292
2293 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2294
2295 * target.def (insn_callee_abi): New hook.
2296 (remove_extra_call_preserved_regs): Delete.
2297 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2298 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2299 * doc/tm.texi: Regenerate.
2300 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2301 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2302 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2303 insn argument.
2304 (aarch64_remove_extra_call_preserved_regs): Delete.
2305 (aarch64_insn_callee_abi): New function.
2306 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2307 (TARGET_INSN_CALLEE_ABI): New macro.
2308 * rtl.h (get_call_fndecl): Declare.
2309 (cgraph_rtl_info): Fix formatting. Tweak comment for
2310 function_used_regs. Remove function_used_regs_valid.
2311 * rtlanal.c (get_call_fndecl): Moved from final.c
2312 * function-abi.h (insn_callee_abi): Declare.
2313 (target_function_abi_info): Mention insn_callee_abi.
2314 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2315 way to get_call_reg_set_usage did.
2316 (insn_callee_abi): New function.
2317 * regs.h (get_call_reg_set_usage): Delete.
2318 * final.c: Include function-abi.h.
2319 (collect_fn_hard_reg_usage): Add fixed and stack registers to
2320 function_used_regs before the main loop rather than afterwards.
2321 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
2322 if function_used_regs ends up not being useful.
2323 (get_call_fndecl): Move to rtlanal.c
2324 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2325 * caller-save.c: Include function-abi.h.
2326 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2327 instead of get_call_reg_set_usage.
2328 * cfgcleanup.c: Include function-abi.h.
2329 (old_insns_match_p): Use insn_callee_abi instead of
2330 get_call_reg_set_usage.
2331 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2332 a tree.
2333 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
2334 function_used_regs.
2335 * df-scan.c: Include function-abi.h.
2336 (df_get_call_refs): Use insn_callee_abi instead of
2337 get_call_reg_set_usage.
2338 * ira-lives.c: Include function-abi.h.
2339 (process_bb_node_lives): Use insn_callee_abi instead of
2340 get_call_reg_set_usage.
2341 * lra-lives.c: Include function-abi.h.
2342 (process_bb_lives): Use insn_callee_abi instead of
2343 get_call_reg_set_usage.
2344 * postreload.c: Include function-abi.h.
2345 (reload_combine): Use insn_callee_abi instead of
2346 get_call_reg_set_usage.
2347 * regcprop.c: Include function-abi.h.
2348 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2349 get_call_reg_set_usage.
2350 * resource.c: Include function-abi.h.
2351 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2352 instead of get_call_reg_set_usage.
2353 * var-tracking.c: Include function-abi.h.
2354 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2355 get_call_reg_set_usage.
2356
2357 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2358
2359 * target.def (fntype_abi): New target hook.
2360 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2361 * doc/tm.texi: Regenerate.
2362 * target.h (predefined_function_abi): Declare.
2363 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2364 if defined.
2365 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2366 * config/aarch64/aarch64.c: Include function-abi.h.
2367 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2368 (TARGET_FNTYPE_ABI): Define.
2369
2370 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2371
2372 * Makefile.in (OBJS): Add function-abi.o.
2373 (GTFILES): Add function-abi.h.
2374 * function-abi.cc: New file.
2375 * function-abi.h: Likewise.
2376 * emit-rtl.h (rtl_data::abi): New field.
2377 * function.c: Include function-abi.h.
2378 (prepare_function_start): Initialize crtl->abi.
2379 * read-rtl-function.c: Include regs.h and function-abi.h.
2380 (read_rtl_function_body): Initialize crtl->abi.
2381 (read_rtl_function_body_from_file_range): Likewise.
2382 * reginfo.c: Include function-abi.h.
2383 (init_reg_sets_1): Initialize default_function_abi.
2384 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2385 when making a register global.
2386 * target-globals.h (this_target_function_abi_info): Declare.
2387 (target_globals::function_abi_info): New field.
2388 (restore_target_globals): Copy it.
2389 * target-globals.c: Include function-abi.h.
2390 (default_target_globals): Initialize the function_abi_info field.
2391 (target_globals): Allocate it.
2392 (save_target_globals): Free it.
2393
2394 2019-09-30 Nick Clifton <nickc@redhat.com>
2395
2396 PR target/85978
2397 * config/frv/frv.c (frv_register_move_cost): Add break statements
2398 to avoid falling through to the wrong cases. Tidy code.
2399
2400 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
2401
2402 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2403 For multi-registers modes, test how big each register part is.
2404
2405 2019-09-30 Nick Clifton <nickc@redhat.com>
2406
2407 PR target/59205
2408 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2409 (TARGET_ASM_SELECT_SECTION): Remove definition.
2410 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2411
2412 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
2413
2414 * emit-rtl.c (init_raw_REG): New function.
2415 (gen_raw_REG): Use init_raw_REG.
2416 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2417 macros.
2418 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2419 * rtl.h (rtx_init): New function.
2420 (rtx_alloca): New function.
2421 (init_raw_REG): New function.
2422 (alloca_raw_REG): New macro.
2423
2424 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
2425
2426 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2427 (pcrel_local_address): Replace pcrel_address predicate, use the
2428 new function address_to_insn_form.
2429 (pcrel_external_address): Replace with new implementation using
2430 address_to_insn_form..
2431 (prefixed_mem_operand): Delete predicate which is now unused.
2432 (pcrel_external_mem_operand): Delete predicate which is now
2433 unused.
2434 * config/rs6000/rs6000-protos.h (enum insn_form): New
2435 enumeration.
2436 (enum non_prefixed_form): New enumeration.
2437 (address_to_insn_form): New declaration.
2438 (prefixed_load_p): New declaration.
2439 (prefixed_store_p): New declaration.
2440 (prefixed_paddi_p): New declaration.
2441 (rs6000_asm_output_opcode): New declaration.
2442 (rs6000_final_prescan_insn): Move declaration and update calling
2443 signature.
2444 (address_is_prefixed): New helper inline function.
2445 * config/rs6000/rs6000.c(print_operand_address): Check for either
2446 PC-relative local symbols or PC-relative external symbols.
2447 (rs6000_emit_move): Support loading PC-relative addresses.
2448 (mode_supports_prefixed_address_p): Delete, no longer used.
2449 (rs6000_prefixed_address_mode_p): Delete, no longer used.
2450 (address_to_insn_form): New function to decode an address format.
2451 (reg_to_non_prefixed): New function to identify what the
2452 non-prefixed memory instruction format is for a register.
2453 (prefixed_load_p): New function to identify prefixed loads.
2454 (prefixed_store_p): New function to identify prefixed stores.
2455 (prefixed_paddi_p): New function to identify prefixed load
2456 immediates.
2457 (next_insn_prefixed_p): New static state variable.
2458 (rs6000_final_prescan_insn): New function to determine if an insn
2459 uses a prefixed instruction.
2460 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2461 prefixed instruction.
2462 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2463 (ASM_OUTPUT_OPCODE): New target hook.
2464 * config/rs6000/rs6000.md (prefixed): New insn attribute for
2465 prefixed instructions.
2466 (prefixed_length): New insn attribute for the size of prefixed
2467 instructions.
2468 (non_prefixed_length): New insn attribute for the size of
2469 non-prefixed instructions.
2470 (pcrel_local_addr): New insn to load up a local PC-relative
2471 address.
2472 (pcrel_extern_addr): New insn to load up an external PC-relative
2473 address.
2474 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2475 GPR and loading a 128-bit floating point type to a GPR.
2476
2477 2019-09-30 Richard Biener <rguenther@suse.de>
2478
2479 * gimple.c (gimple_get_lhs): For PHIs return the result.
2480 * tree-vectorizer.h (vectorizable_live_operation): Also get the
2481 SLP instance as argument.
2482 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2483 double-reduction PHIs with vectorizable_lc_phi.
2484 (vect_analyze_loop_operations): Adjust.
2485 (vect_create_epilog_for_reduction): Remove all code not dealing
2486 with reduction LC PHI or epilogue generation.
2487 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2488 for live stmts of reductions.
2489 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2490 do not handle defs that are not vect_internal_def.
2491 (can_vectorize_live_stmts): Adjust.
2492 (vect_analyze_stmt): When the vectorized stmt defined a value
2493 used on backedges adjust the backedge uses of vectorized PHIs.
2494
2495 2019-09-30 Martin Jambor <mjambor@suse.cz>
2496
2497 PR ipa/91853
2498 * tree-inline.c (force_value_to_type): New function.
2499 (setup_one_parameter): Use force_value_to_type to convert type.
2500 * tree-inline.c (force_value_to_type): Declare.
2501 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2502 with register type mismatches.
2503
2504 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
2505
2506 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2507 32-bit PowerPC.
2508 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2509 * config/rs6000/t-freebsd64: Make use of the above define and build
2510 the 32-bit libraries with secure-plt.
2511
2512 2019-09-30 Jakub Jelinek <jakub@redhat.com>
2513
2514 PR target/91931
2515 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2516 gen_int_mode instead of GEN_INT.
2517
2518 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
2519
2520 * config/darwin.c (gen_macho_low): Amend to include the mode
2521 argument.
2522 (machopic_indirect_data_reference): Amend gen_macho_low call
2523 to include mode argument
2524 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2525 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2526 the macho_high expander and two define_insn entries.
2527
2528 2019-09-29 Jakub Jelinek <jakub@redhat.com>
2529
2530 PR bootstrap/90543
2531 * optc-save-gen.awk: Fix up printing string option differences.
2532
2533 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2534
2535 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2536 vec_perm cost to 1 for non-Power7 VSX architectures.
2537
2538 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
2539
2540 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2541 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2542 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2543
2544 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
2545
2546 * config/darwin.c (gen_macho_high): Amend to include the mode
2547 argument.
2548 (machopic_indirect_data_reference): Amend gen_macho_high call
2549 to include mode argument.
2550 (machopic_legitimize_pic_address): Likewise.
2551 * config/rs6000/rs6000.c (rs6000_legitimize_address):
2552 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2553 the macho_high expander and two define_insn entries.
2554
2555 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2556
2557 PR target/86805
2558 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2559
2560 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
2561
2562 PR target/80672
2563 * config/sh/sh.c (parse_validate_atomic_model_option): Use
2564 std::string::compare instead of std::string::find.
2565
2566 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
2567
2568 * configure: Regenerate.
2569
2570 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2571
2572 PR middle-end/91920
2573 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2574 variables as shared.
2575
2576 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
2577
2578 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2579 replaces the expander and two define_insn entries.
2580 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2581 call.
2582 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2583
2584 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2585
2586 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2587 (fibonacci_heap::nodes): Likewise.
2588 (fibonacci_heap::min_key): Likewise.
2589 (fibonacci_heap::min): Likewise.
2590
2591 2019-09-27 David Malcolm <dmalcolm@redhat.com>
2592
2593 * cgraph.c (cgraph_node::get_fun): Make const.
2594 * cgraph.h (cgraph_node::get_fun): Likewise.
2595
2596 2019-09-27 Jakub Jelinek <jakub@redhat.com>
2597
2598 PR target/91919
2599 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2600 of SImode MULT.
2601
2602 2019-09-27 Richard Biener <rguenther@suse.de>
2603
2604 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2605 (STMT_VINFO_REDUC_FN): Likewise.
2606 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2607 STMT_VINFO_REDUC_FN.
2608 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2609 for condition reductions.
2610 (vect_create_epilog_for_reduction): Compute all required state
2611 from the stmt to be vectorized.
2612 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2613 invocation and remove then dead code. For single def-use chains
2614 record only a single vector stmt.
2615
2616 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2617
2618 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2619 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2620 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2621 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2622 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2623 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2624 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2625 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2626 (aarch64_general_builtin_rsqrt): Declare.
2627 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2628 New function.
2629 (aarch64_mangle_builtin_type): Rename to...
2630 (aarch64_general_mangle_builtin_type): ...this.
2631 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2632 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2633 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2634 aarch64_general_add_builtin instead of add_builtin_function.
2635 (aarch64_init_builtins): Rename to...
2636 (aarch64_general_init_builtins): ...this. Use
2637 aarch64_general_add_builtin instead of add_builtin_function.
2638 (aarch64_builtin_decl): Rename to...
2639 (aarch64_general_builtin_decl): ...this and remove the unused
2640 arguments.
2641 (aarch64_expand_builtin): Rename to...
2642 (aarch64_general_expand_builtin): ...this and remove the unused
2643 arguments.
2644 (aarch64_builtin_rsqrt): Rename to...
2645 (aarch64_general_builtin_rsqrt): ...this.
2646 (aarch64_fold_builtin): Rename to...
2647 (aarch64_general_fold_builtin): ...this. Take the function subcode
2648 and return type as arguments. Remove the "ignored" argument.
2649 (aarch64_gimple_fold_builtin): Rename to...
2650 (aarch64_general_gimple_fold_builtin): ...this. Take the function
2651 subcode and gcall as arguments, and return the new function call.
2652 * config/aarch64/aarch64.c (aarch64_init_builtins)
2653 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2654 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2655 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2656 instead of aarch64_builtin_rsqrt.
2657 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2658 instead of aarch64_mangle_builtin_type.
2659
2660 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2661
2662 * target.def (check_builtin_call): New target hook.
2663 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2664 * doc/tm.texi: Regenerate.
2665
2666 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
2667
2668 PR tree-optimization/91909
2669 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2670 reduc_index parameter. When handling COND_REDUCTION, make sure
2671 that the reduction phi operand is in the correct arm of the
2672 VEC_COND_EXPR.
2673 (vectorizable_reduction): Pass reduc_index to the above.
2674
2675 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
2676
2677 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2678 New combine pattern.
2679
2680 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
2681
2682 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2683 loop instruction into new basic block before the loop when basic
2684 block that precedes the loop is empty.
2685
2686 2019-09-26 Jakub Jelinek <jakub@redhat.com>
2687
2688 * function.c (gimplify_parameters): Use build_clobber function.
2689 * tree-ssa.c (execute_update_addresses_taken): Likewise.
2690 * tree-inline.c (expand_call_inline): Likewise.
2691 * tree-sra.c (clobber_subtree): Likewise.
2692 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2693 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2694 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2695 lower_omp_target): Likewise.
2696 * omp-expand.c (expand_omp_for_generic): Likewise.
2697 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2698
2699 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
2700
2701 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2702 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2703 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2704 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2705 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2706 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2707 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2708 LD_ELEMREV_V16QI): Use the PURE attribute.
2709
2710 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
2711
2712 * config/rs6000/darwin.md: Replace the expanders for
2713 load_macho_picbase and reload_macho_picbase with use of '@'
2714 and <mode> in their respective define_insns.
2715 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2716 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2717 Pmode to gen_load_macho_picbase.
2718 * config/rs6000/rs6000.md: Likewise.
2719
2720 2019-09-25 Richard Biener <rguenther@suse.de>
2721
2722 PR tree-optimization/91896
2723 * tree-vect-loop.c (vectorizable_reduction): The single
2724 def-use cycle optimization cannot apply when there's more
2725 than one pattern stmt involved.
2726
2727 2019-09-26 Richard Biener <rguenther@suse.de>
2728
2729 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2730 loop-closed PHIs that are vect_internal_def.
2731 (vect_create_epilog_for_reduction): Exit early for nested cycles.
2732 Simplify.
2733 (vectorizable_lc_phi): New.
2734 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2735 (vect_transform_stmt): Likewise.
2736 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2737 (vectorizable_lc_phi): Declare.
2738
2739 2019-09-26 Richard Biener <rguenther@suse.de>
2740
2741 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2742 vectorizable_reduction for vect_double_reduction_def.
2743 (vect_transform_loop): Likewise.
2744 (vect_create_epilog_for_reduction): Move double-reduction
2745 PHI creation and preheader argument setting of PHIs ...
2746 (vectorizable_reduction): ... here. Also process
2747 vect_double_reduction_def PHIs, creating the vectorized
2748 PHI nodes, remembering the scalar adjustment computed for
2749 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2750 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2751 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2752 Initialize STMT_VINFO_REDUC_CODE.
2753 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2754 (_stmt_vec_info::reduc_code): Likewise.
2755 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2756 (STMT_VINFO_REDUC_CODE): Likewise.
2757
2758 2019-09-26 Matt Turner <mattst88@gmail.com>
2759
2760 PR driver/69471
2761 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2762 (mtune=): Add Negative(mtune=).
2763 (mcpu=): Add Negative(mcpu=).
2764 * config/arm/arm.opt: Likewise.
2765
2766 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2767
2768 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2769 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2770 Define.
2771 * config/arm/arm_acle.h: Define builtins for the above.
2772 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2773 (simd32_op): Handle the above.
2774 * config/arm/unspecs.md: Define unspecs for the above.
2775
2776 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2777
2778 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2779 (arm_<sup>xtb16): Likewise.
2780 (arm_usada8): Likewise.
2781 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2782 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2783 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2784 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2785 __sxtb16, __uxtab16, __uxtb16): Define.
2786 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2787 * config/arm/unspecs.md: Define unspecs for the above.
2788 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2789 (USXTB16): Likewise.
2790 (simd32_op): New int_attribute.
2791 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2792 * doc/sourcebuild.exp (arm_simd32_ok): Document.
2793
2794 2019-09-26 Martin Jambor <mjambor@suse.cz>
2795
2796 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2797 internal_error.
2798
2799 2019-09-26 Martin Jambor <mjambor@suse.cz>
2800
2801 * ipa-sra.c (process_scan_results): Fix continue condition.
2802
2803 2019-09-26 Martin Liska <mliska@suse.cz>
2804
2805 PR tree-optimization/91885
2806 * tree-vectorizer.c (try_vectorize_loop_1): Add
2807 TODO_update_ssa_only_virtuals similarly to what slp pass does.
2808
2809 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
2810
2811 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2812 aarch64_plus_immediate rather than aarch64_uimm12_shift
2813 to test for valid PLUS immediates.
2814
2815 2019-09-25 Martin Jambor <mjambor@suse.cz>
2816
2817 * tree-sra.c (no_accesses_p): Remove.
2818 (no_accesses_representant): Likewise.
2819
2820 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2821
2822 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2823 consistenly.
2824 (vaba_s16): Likewise.
2825 (vaba_s32): Likewise.
2826 (vaba_u8): Likewise.
2827 (vaba_u16): Likewise.
2828 (vaba_u32): Likewise.
2829 (vabal_high_s8): Likewise.
2830 (vabal_high_s16): Likewise.
2831 (vabal_high_s32): Likewise.
2832 (vabal_high_u8): Likewise.
2833 (vabal_high_u16): Likewise.
2834 (vabal_high_u32): Likewise.
2835 (vabal_s8): Likewise.
2836 (vabal_s16): Likewise.
2837 (vabal_s32): Likewise.
2838 (vabal_u8): Likewise.
2839 (vabal_u16): Likewise.
2840 (vabal_u32): Likewise.
2841 (vabaq_s8): Likewise.
2842 (vabaq_s16): Likewise.
2843 (vabaq_s32): Likewise.
2844 (vabaq_u8): Likewise.
2845 (vabaq_u16): Likewise.
2846 (vabaq_u32): Likewise.
2847 (vabd_s8): Likewise.
2848 (vabd_s16): Likewise.
2849 (vabd_s32): Likewise.
2850 (vabd_u8): Likewise.
2851 (vabd_u16): Likewise.
2852 (vabd_u32): Likewise.
2853 (vabdl_high_s8): Likewise.
2854 (vabdl_high_s16): Likewise.
2855 (vabdl_high_s32): Likewise.
2856 (vabdl_high_u8): Likewise.
2857 (vabdl_high_u16): Likewise.
2858 (vabdl_high_u32): Likewise.
2859 (vabdl_s8): Likewise.
2860 (vabdl_s16): Likewise.
2861 (vabdl_s32): Likewise.
2862 (vabdl_u8): Likewise.
2863 (vabdl_u16): Likewise.
2864 (vabdl_u32): Likewise.
2865 (vabdq_s8): Likewise.
2866 (vabdq_s16): Likewise.
2867 (vabdq_s32): Likewise.
2868 (vabdq_u8): Likewise.
2869 (vabdq_u16): Likewise.
2870 (vabdq_u32): Likewise.
2871 (vaddlv_s8): Likewise.
2872 (vaddlv_s16): Likewise.
2873 (vaddlv_u8): Likewise.
2874 (vaddlv_u16): Likewise.
2875 (vaddlvq_s8): Likewise.
2876 (vaddlvq_s16): Likewise.
2877 (vaddlvq_s32): Likewise.
2878 (vaddlvq_u8): Likewise.
2879 (vaddlvq_u16): Likewise.
2880 (vaddlvq_u32): Likewise.
2881 (vcvtx_f32_f64): Likewise.
2882 (vcvtx_high_f32_f64): Likewise.
2883 (vcvtxd_f32_f64): Likewise.
2884 (vmla_n_f32): Likewise.
2885 (vmla_n_s16): Likewise.
2886 (vmla_n_s32): Likewise.
2887 (vmla_n_u16): Likewise.
2888 (vmla_n_u32): Likewise.
2889 (vmla_s8): Likewise.
2890 (vmla_s16): Likewise.
2891 (vmla_s32): Likewise.
2892 (vmla_u8): Likewise.
2893 (vmla_u16): Likewise.
2894 (vmla_u32): Likewise.
2895 (vmlal_high_n_s16): Likewise.
2896 (vmlal_high_n_s32): Likewise.
2897 (vmlal_high_n_u16): Likewise.
2898 (vmlal_high_n_u32): Likewise.
2899 (vmlal_high_s8): Likewise.
2900 (vmlal_high_s16): Likewise.
2901 (vmlal_high_s32): Likewise.
2902 (vmlal_high_u8): Likewise.
2903 (vmlal_high_u16): Likewise.
2904 (vmlal_high_u32): Likewise.
2905 (vmlal_n_s16): Likewise.
2906 (vmlal_n_s32): Likewise.
2907 (vmlal_n_u16): Likewise.
2908 (vmlal_n_u32): Likewise.
2909 (vmlal_s8): Likewise.
2910 (vmlal_s16): Likewise.
2911 (vmlal_s32): Likewise.
2912 (vmlal_u8): Likewise.
2913 (vmlal_u16): Likewise.
2914 (vmlal_u32): Likewise.
2915 (vmlaq_n_f32): Likewise.
2916 (vmlaq_n_s16): Likewise.
2917 (vmlaq_n_s32): Likewise.
2918 (vmlaq_n_u16): Likewise.
2919 (vmlaq_n_u32): Likewise.
2920 (vmlaq_s8): Likewise.
2921 (vmlaq_s16): Likewise.
2922 (vmlaq_s32): Likewise.
2923 (vmlaq_u8): Likewise.
2924 (vmlaq_u16): Likewise.
2925 (vmlaq_u32): Likewise.
2926 (vmls_n_f32): Likewise.
2927 (vmls_n_s16): Likewise.
2928 (vmls_n_s32): Likewise.
2929 (vmls_n_u16): Likewise.
2930 (vmls_n_u32): Likewise.
2931 (vmls_s8): Likewise.
2932 (vmls_s16): Likewise.
2933 (vmls_s32): Likewise.
2934 (vmls_u8): Likewise.
2935 (vmls_u16): Likewise.
2936 (vmls_u32): Likewise.
2937 (vmlsl_high_n_s16): Likewise.
2938 (vmlsl_high_n_s32): Likewise.
2939 (vmlsl_high_n_u16): Likewise.
2940 (vmlsl_high_n_u32): Likewise.
2941 (vmlsl_high_s8): Likewise.
2942 (vmlsl_high_s16): Likewise.
2943 (vmlsl_high_s32): Likewise.
2944 (vmlsl_high_u8): Likewise.
2945 (vmlsl_high_u16): Likewise.
2946 (vmlsl_high_u32): Likewise.
2947 (vmlsl_n_s16): Likewise.
2948 (vmlsl_n_s32): Likewise.
2949 (vmlsl_n_u16): Likewise.
2950 (vmlsl_n_u32): Likewise.
2951 (vmlsl_s8): Likewise.
2952 (vmlsl_s16): Likewise.
2953 (vmlsl_s32): Likewise.
2954 (vmlsl_u8): Likewise.
2955 (vmlsl_u16): Likewise.
2956 (vmlsl_u32): Likewise.
2957 (vmlsq_n_f32): Likewise.
2958 (vmlsq_n_s16): Likewise.
2959 (vmlsq_n_s32): Likewise.
2960 (vmlsq_n_u16): Likewise.
2961 (vmlsq_n_u32): Likewise.
2962 (vmlsq_s8): Likewise.
2963 (vmlsq_s16): Likewise.
2964 (vmlsq_s32): Likewise.
2965 (vmlsq_u8): Likewise.
2966 (vmlsq_u16): Likewise.
2967 (vmlsq_u32): Likewise.
2968 (vmovl_high_s8): Likewise.
2969 (vmovl_high_s16): Likewise.
2970 (vmovl_high_s32): Likewise.
2971 (vmovl_high_u8): Likewise.
2972 (vmovl_high_u16): Likewise.
2973 (vmovl_high_u32): Likewise.
2974 (vmovl_s8): Likewise.
2975 (vmovl_s16): Likewise.
2976 (vmovl_s32): Likewise.
2977 (vmovl_u8): Likewise.
2978 (vmovl_u16): Likewise.
2979 (vmovl_u32): Likewise.
2980 (vmovn_high_s16): Likewise.
2981 (vmovn_high_s32): Likewise.
2982 (vmovn_high_s64): Likewise.
2983 (vmovn_high_u16): Likewise.
2984 (vmovn_high_u32): Likewise.
2985 (vmovn_high_u64): Likewise.
2986 (vmovn_s16): Likewise.
2987 (vmovn_s32): Likewise.
2988 (vmovn_s64): Likewise.
2989 (vmovn_u16): Likewise.
2990 (vmovn_u32): Likewise.
2991 (vmovn_u64): Likewise.
2992 (vmull_high_n_s16): Likewise.
2993 (vmull_high_n_s32): Likewise.
2994 (vmull_high_n_u16): Likewise.
2995 (vmull_high_n_u32): Likewise.
2996 (vmull_high_p8): Likewise.
2997 (vmull_high_s8): Likewise.
2998 (vmull_high_s16): Likewise.
2999 (vmull_high_s32): Likewise.
3000 (vmull_high_u8): Likewise.
3001 (vmull_high_u16): Likewise.
3002 (vmull_high_u32): Likewise.
3003 (vmull_n_s16): Likewise.
3004 (vmull_n_s32): Likewise.
3005 (vmull_n_u16): Likewise.
3006 (vmull_n_u32): Likewise.
3007 (vmull_p8): Likewise.
3008 (vmull_s8): Likewise.
3009 (vmull_s16): Likewise.
3010 (vmull_s32): Likewise.
3011 (vmull_u8): Likewise.
3012 (vmull_u16): Likewise.
3013 (vmull_u32): Likewise.
3014 (vpadal_s8): Likewise.
3015 (vpadal_s16): Likewise.
3016 (vpadal_s32): Likewise.
3017 (vpadal_u8): Likewise.
3018 (vpadal_u16): Likewise.
3019 (vpadal_u32): Likewise.
3020 (vpadalq_s8): Likewise.
3021 (vpadalq_s16): Likewise.
3022 (vpadalq_s32): Likewise.
3023 (vpadalq_u8): Likewise.
3024 (vpadalq_u16): Likewise.
3025 (vpadalq_u32): Likewise.
3026 (vpaddl_s8): Likewise.
3027 (vpaddl_s16): Likewise.
3028 (vpaddl_s32): Likewise.
3029 (vpaddl_u8): Likewise.
3030 (vpaddl_u16): Likewise.
3031 (vpaddl_u32): Likewise.
3032 (vpaddlq_s8): Likewise.
3033 (vpaddlq_s16): Likewise.
3034 (vpaddlq_s32): Likewise.
3035 (vpaddlq_u8): Likewise.
3036 (vpaddlq_u16): Likewise.
3037 (vpaddlq_u32): Likewise.
3038 (vpaddq_s8): Likewise.
3039 (vpaddq_s16): Likewise.
3040 (vpaddq_s32): Likewise.
3041 (vpaddq_s64): Likewise.
3042 (vpaddq_u8): Likewise.
3043 (vpaddq_u16): Likewise.
3044 (vpaddq_u32): Likewise.
3045 (vpaddq_u64): Likewise.
3046 (vqdmulh_n_s16): Likewise.
3047 (vqdmulh_n_s32): Likewise.
3048 (vqdmulhq_n_s16): Likewise.
3049 (vqdmulhq_n_s32): Likewise.
3050 (vqmovn_high_s16): Likewise.
3051 (vqmovn_high_s32): Likewise.
3052 (vqmovn_high_s64): Likewise.
3053 (vqmovn_high_u16): Likewise.
3054 (vqmovn_high_u32): Likewise.
3055 (vqmovn_high_u64): Likewise.
3056 (vqmovun_high_s16): Likewise.
3057 (vqmovun_high_s32): Likewise.
3058 (vqmovun_high_s64): Likewise.
3059 (vqrdmulh_n_s16): Likewise.
3060 (vqrdmulh_n_s32): Likewise.
3061 (vqrdmulhq_n_s16): Likewise.
3062 (vqrdmulhq_n_s32): Likewise.
3063 (vrsqrte_u32): Likewise.
3064 (vrsqrteq_u32): Likewise.
3065 (vtst_p8): Likewise.
3066 (vtst_p16): Likewise.
3067 (vtst_p64): Likewise.
3068 (vtstq_p8): Likewise.
3069 (vtstq_p16): Likewise.
3070 (vtstq_p64): Likewise.
3071 (vaddlv_s32): Likewise.
3072 (vaddlv_u32): Likewise.
3073 (vqtbl1_p8): Likewise.
3074 (vqtbl1_s8): Likewise.
3075 (vqtbl1_u8): Likewise.
3076 (vqtbl1q_p8): Likewise.
3077 (vqtbl1q_s8): Likewise.
3078 (vqtbl1q_u8): Likewise.
3079 (vqtbx1_s8): Likewise.
3080 (vqtbx1_u8): Likewise.
3081 (vqtbx1_p8): Likewise.
3082 (vqtbx1q_s8): Likewise.
3083 (vqtbx1q_u8): Likewise.
3084 (vqtbx1q_p8): Likewise.
3085 (vtbl1_s8): Likewise.
3086 (vtbl1_u8): Likewise.
3087 (vtbl1_p8): Likewise.
3088 (vtbl2_s8): Likewise.
3089 (vtbl2_u8): Likewise.
3090 (vtbl2_p8): Likewise.
3091 (vtbl3_s8): Likewise.
3092 (vtbl3_u8): Likewise.
3093 (vtbl3_p8): Likewise.
3094 (vtbl4_s8): Likewise.
3095 (vtbl4_u8): Likewise.
3096 (vtbl4_p8): Likewise.
3097 (vtbx2_s8): Likewise.
3098 (vtbx2_u8): Likewise.
3099 (vtbx2_p8): Likewise.
3100 (vld1_f32): Likewise.
3101 (vld1_f64): Likewise.
3102 (vld1_p8): Likewise.
3103 (vld1_p16): Likewise.
3104 (vld1_p64): Likewise.
3105 (vld1_s8): Likewise.
3106 (vld1_s16): Likewise.
3107 (vld1_s32): Likewise.
3108 (vld1_s64): Likewise.
3109 (vld1_u8): Likewise.
3110 (vld1_u16): Likewise.
3111 (vld1_u32): Likewise.
3112 (vld1_u64): Likewise.
3113 (vld1q_f32): Likewise.
3114 (vld1q_f64): Likewise.
3115 (vld1q_p8): Likewise.
3116 (vld1q_p16): Likewise.
3117 (vld1q_p64): Likewise.
3118 (vld1q_s8): Likewise.
3119 (vld1q_s16): Likewise.
3120 (vld1q_s32): Likewise.
3121 (vld1q_s64): Likewise.
3122 (vld1q_u8): Likewise.
3123 (vld1q_u16): Likewise.
3124 (vld1q_u32): Likewise.
3125 (vld1q_u64): Likewise.
3126 (vpmax_s8): Likewise.
3127 (vpmax_s16): Likewise.
3128 (vpmax_s32): Likewise.
3129 (vpmax_u8): Likewise.
3130 (vpmax_u16): Likewise.
3131 (vpmax_u32): Likewise.
3132 (vpmaxq_s8): Likewise.
3133 (vpmaxq_s16): Likewise.
3134 (vpmaxq_s32): Likewise.
3135 (vpmaxq_u8): Likewise.
3136 (vpmaxq_u16): Likewise.
3137 (vpmaxq_u32): Likewise.
3138 (vpmax_f32): Likewise.
3139 (vpmaxq_f32): Likewise.
3140 (vpmaxq_f64): Likewise.
3141 (vpmaxqd_f64): Likewise.
3142 (vpmaxs_f32): Likewise.
3143 (vpmaxnm_f32): Likewise.
3144 (vpmaxnmq_f32): Likewise.
3145 (vpmaxnmq_f64): Likewise.
3146 (vpmaxnmqd_f64): Likewise.
3147 (vpmaxnms_f32): Likewise.
3148 (vpmin_s8): Likewise.
3149 (vpmin_s16): Likewise.
3150 (vpmin_s32): Likewise.
3151 (vpmin_u8): Likewise.
3152 (vpmin_u16): Likewise.
3153 (vpmin_u32): Likewise.
3154 (vpminq_s8): Likewise.
3155 (vpminq_s16): Likewise.
3156 (vpminq_s32): Likewise.
3157 (vpminq_u8): Likewise.
3158 (vpminq_u16): Likewise.
3159 (vpminq_u32): Likewise.
3160 (vpmin_f32): Likewise.
3161 (vpminq_f32): Likewise.
3162 (vpminq_f64): Likewise.
3163 (vpminqd_f64): Likewise.
3164 (vpmins_f32): Likewise.
3165 (vpminnm_f32): Likewise.
3166 (vpminnmq_f32): Likewise.
3167 (vpminnmq_f64): Likewise.
3168 (vpminnmqd_f64): Likewise.
3169 (vpminnms_f32): Likewise.
3170 (vmla_f32): Likewise.
3171 (vmlaq_f32): Likewise.
3172 (vmlaq_f64): Likewise.
3173 (vmls_f32): Likewise.
3174 (vmlsq_f32): Likewise.
3175 (vmlsq_f64): Likewise.
3176 (vqtbl2_s8): Likewise.
3177 (vqtbl2_u8): Likewise.
3178 (vqtbl2_p8): Likewise.
3179 (vqtbl2q_s8): Likewise.
3180 (vqtbl2q_u8): Likewise.
3181 (vqtbl2q_p8): Likewise.
3182 (vqtbl3_s8): Likewise.
3183 (vqtbl3_u8): Likewise.
3184 (vqtbl3_p8): Likewise.
3185 (vqtbl3q_s8): Likewise.
3186 (vqtbl3q_u8): Likewise.
3187 (vqtbl3q_p8): Likewise.
3188 (vqtbl4_s8): Likewise.
3189 (vqtbl4_u8): Likewise.
3190 (vqtbl4_p8): Likewise.
3191 (vqtbl4q_s8): Likewise.
3192 (vqtbl4q_u8): Likewise.
3193 (vqtbl4q_p8): Likewise.
3194 (vqtbx2_s8): Likewise.
3195 (vqtbx2_u8): Likewise.
3196 (vqtbx2_p8): Likewise.
3197 (vqtbx2q_s8): Likewise.
3198 (vqtbx2q_u8): Likewise.
3199 (vqtbx2q_p8): Likewise.
3200 (vqtbx3_s8): Likewise.
3201 (vqtbx3_u8): Likewise.
3202 (vqtbx3_p8): Likewise.
3203 (vqtbx3q_s8): Likewise.
3204 (vqtbx3q_u8): Likewise.
3205 (vqtbx3q_p8): Likewise.
3206 (vqtbx4_s8): Likewise.
3207 (vqtbx4_u8): Likewise.
3208 (vqtbx4_p8): Likewise.
3209 (vqtbx4q_s8): Likewise.
3210 (vqtbx4q_u8): Likewise.
3211 (vqtbx4q_p8): Likewise.
3212 (vrev16_p8): Likewise.
3213 (vrev16_s8): Likewise.
3214 (vrev16_u8): Likewise.
3215 (vrev16q_p8): Likewise.
3216 (vrev16q_s8): Likewise.
3217 (vrev16q_u8): Likewise.
3218 (vrev32_p8): Likewise.
3219 (vrev32_p16): Likewise.
3220 (vrev32_s8): Likewise.
3221 (vrev32_s16): Likewise.
3222 (vrev32_u8): Likewise.
3223 (vrev32_u16): Likewise.
3224 (vrev32q_p8): Likewise.
3225 (vrev32q_p16): Likewise.
3226 (vrev32q_s8): Likewise.
3227 (vrev32q_s16): Likewise.
3228 (vrev32q_u8): Likewise.
3229 (vrev32q_u16): Likewise.
3230 (vrev64_f32): Likewise.
3231 (vrev64_p8): Likewise.
3232 (vrev64_p16): Likewise.
3233 (vrev64_s8): Likewise.
3234 (vrev64_s16): Likewise.
3235 (vrev64_s32): Likewise.
3236 (vrev64_u8): Likewise.
3237 (vrev64_u16): Likewise.
3238 (vrev64_u32): Likewise.
3239 (vrev64q_f32): Likewise.
3240 (vrev64q_p8): Likewise.
3241 (vrev64q_p16): Likewise.
3242 (vrev64q_s8): Likewise.
3243 (vrev64q_s16): Likewise.
3244 (vrev64q_s32): Likewise.
3245 (vrev64q_u8): Likewise.
3246 (vrev64q_u16): Likewise.
3247 (vrev64q_u32): Likewise.
3248 (vsha1cq_u32): Likewise.
3249 (vsha1mq_u32): Likewise.
3250 (vsha1pq_u32): Likewise.
3251 (vsha1h_u32): Likewise.
3252 (vsha1su0q_u32): Likewise.
3253 (vsha1su1q_u32): Likewise.
3254 (vsha256hq_u32): Likewise.
3255 (vsha256h2q_u32): Likewise.
3256 (vsha256su0q_u32): Likewise.
3257 (vsha256su1q_u32): Likewise.
3258 (vmull_p64): Likewise.
3259 (vmull_high_p64): Likewise.
3260 (vsqrt_f32): Likewise.
3261 (vsqrtq_f32): Likewise.
3262 (vsqrt_f64): Likewise.
3263 (vsqrtq_f64): Likewise.
3264 (vst1_f32): Likewise.
3265 (vst1_f64): Likewise.
3266 (vst1_p8): Likewise.
3267 (vst1_p16): Likewise.
3268 (vst1_p64): Likewise.
3269 (vst1_s8): Likewise.
3270 (vst1_s16): Likewise.
3271 (vst1_s32): Likewise.
3272 (vst1_s64): Likewise.
3273 (vst1_u8): Likewise.
3274 (vst1_u16): Likewise.
3275 (vst1_u32): Likewise.
3276 (vst1_u64): Likewise.
3277 (vst1q_f32): Likewise.
3278 (vst1q_f64): Likewise.
3279 (vst1q_p8): Likewise.
3280 (vst1q_p16): Likewise.
3281 (vst1q_p64): Likewise.
3282 (vst1q_s8): Likewise.
3283 (vst1q_s16): Likewise.
3284 (vst1q_s32): Likewise.
3285 (vst1q_s64): Likewise.
3286 (vst1q_u8): Likewise.
3287 (vst1q_u16): Likewise.
3288 (vst1q_u32): Likewise.
3289 (vst1q_u64): Likewise.
3290 (vst1_s64_x2): Likewise.
3291 (vst1_u64_x2): Likewise.
3292 (vst1_f64_x2): Likewise.
3293 (vst1_s8_x2): Likewise.
3294 (vst1_p8_x2): Likewise.
3295 (vst1_s16_x2): Likewise.
3296 (vst1_p16_x2): Likewise.
3297 (vst1_s32_x2): Likewise.
3298 (vst1_u8_x2): Likewise.
3299 (vst1_u16_x2): Likewise.
3300 (vst1_u32_x2): Likewise.
3301 (vst1_f16_x2): Likewise.
3302 (vst1_f32_x2): Likewise.
3303 (vst1_p64_x2): Likewise.
3304 (vst1q_s8_x2): Likewise.
3305 (vst1q_p8_x2): Likewise.
3306 (vst1q_s16_x2): Likewise.
3307 (vst1q_p16_x2): Likewise.
3308 (vst1q_s32_x2): Likewise.
3309 (vst1q_s64_x2): Likewise.
3310 (vst1q_u8_x2): Likewise.
3311 (vst1q_u16_x2): Likewise.
3312 (vst1q_u32_x2): Likewise.
3313 (vst1q_u64_x2): Likewise.
3314 (vst1q_f16_x2): Likewise.
3315 (vst1q_f32_x2): Likewise.
3316 (vst1q_f64_x2): Likewise.
3317 (vst1q_p64_x2): Likewise.
3318 (vst1_s64_x3): Likewise.
3319 (vst1_u64_x3): Likewise.
3320 (vst1_f64_x3): Likewise.
3321 (vst1_s8_x3): Likewise.
3322 (vst1_p8_x3): Likewise.
3323 (vst1_s16_x3): Likewise.
3324 (vst1_p16_x3): Likewise.
3325 (vst1_s32_x3): Likewise.
3326 (vst1_u8_x3): Likewise.
3327 (vst1_u16_x3): Likewise.
3328 (vst1_u32_x3): Likewise.
3329 (vst1_f16_x3): Likewise.
3330 (vst1_f32_x3): Likewise.
3331 (vst1_p64_x3): Likewise.
3332 (vst1q_s8_x3): Likewise.
3333 (vst1q_p8_x3): Likewise.
3334 (vst1q_s16_x3): Likewise.
3335 (vst1q_p16_x3): Likewise.
3336 (vst1q_s32_x3): Likewise.
3337 (vst1q_s64_x3): Likewise.
3338 (vst1q_u8_x3): Likewise.
3339 (vst1q_u16_x3): Likewise.
3340 (vst1q_u32_x3): Likewise.
3341 (vst1q_u64_x3): Likewise.
3342 (vst1q_f16_x3): Likewise.
3343 (vst1q_f32_x3): Likewise.
3344 (vst1q_f64_x3): Likewise.
3345 (vst1q_p64_x3): Likewise.
3346 (vst2_s64): Likewise.
3347 (vst2_u64): Likewise.
3348 (vst2_f64): Likewise.
3349 (vst2_s8): Likewise.
3350 (vst2_p8): Likewise.
3351 (vst2_s16): Likewise.
3352 (vst2_p16): Likewise.
3353 (vst2_s32): Likewise.
3354 (vst2_u8): Likewise.
3355 (vst2_u16): Likewise.
3356 (vst2_u32): Likewise.
3357 (vst2_f16): Likewise.
3358 (vst2_f32): Likewise.
3359 (vst2_p64): Likewise.
3360 (vst2q_s8): Likewise.
3361 (vst2q_p8): Likewise.
3362 (vst2q_s16): Likewise.
3363 (vst2q_p16): Likewise.
3364 (vst2q_s32): Likewise.
3365 (vst2q_s64): Likewise.
3366 (vst2q_u8): Likewise.
3367 (vst2q_u16): Likewise.
3368 (vst2q_u32): Likewise.
3369 (vst2q_u64): Likewise.
3370 (vst2q_f16): Likewise.
3371 (vst2q_f32): Likewise.
3372 (vst2q_f64): Likewise.
3373 (vst2q_p64): Likewise.
3374 (vst3_s64): Likewise.
3375 (vst3_u64): Likewise.
3376 (vst3_f64): Likewise.
3377 (vst3_s8): Likewise.
3378 (vst3_p8): Likewise.
3379 (vst3_s16): Likewise.
3380 (vst3_p16): Likewise.
3381 (vst3_s32): Likewise.
3382 (vst3_u8): Likewise.
3383 (vst3_u16): Likewise.
3384 (vst3_u32): Likewise.
3385 (vst3_f16): Likewise.
3386 (vst3_f32): Likewise.
3387 (vst3_p64): Likewise.
3388 (vst3q_s8): Likewise.
3389 (vst3q_p8): Likewise.
3390 (vst3q_s16): Likewise.
3391 (vst3q_p16): Likewise.
3392 (vst3q_s32): Likewise.
3393 (vst3q_s64): Likewise.
3394 (vst3q_u8): Likewise.
3395 (vst3q_u16): Likewise.
3396 (vst3q_u32): Likewise.
3397 (vst3q_u64): Likewise.
3398 (vst3q_f16): Likewise.
3399 (vst3q_f32): Likewise.
3400 (vst3q_f64): Likewise.
3401 (vst3q_p64): Likewise.
3402 (vst4_s64): Likewise.
3403 (vst4_u64): Likewise.
3404 (vst4_f64): Likewise.
3405 (vst4_s8): Likewise.
3406 (vst4_p8): Likewise.
3407 (vst4_s16): Likewise.
3408 (vst4_p16): Likewise.
3409 (vst4_s32): Likewise.
3410 (vst4_u8): Likewise.
3411 (vst4_u16): Likewise.
3412 (vst4_u32): Likewise.
3413 (vst4_f16): Likewise.
3414 (vst4_f32): Likewise.
3415 (vst4_p64): Likewise.
3416 (vst4q_s8): Likewise.
3417 (vst4q_p8): Likewise.
3418 (vst4q_s16): Likewise.
3419 (vst4q_p16): Likewise.
3420 (vst4q_s32): Likewise.
3421 (vst4q_s64): Likewise.
3422 (vst4q_u8): Likewise.
3423 (vst4q_u16): Likewise.
3424 (vst4q_u32): Likewise.
3425 (vst4q_u64): Likewise.
3426 (vst4q_f16): Likewise.
3427 (vst4q_f32): Likewise.
3428 (vst4q_f64): Likewise.
3429 (vst4q_p64): Likewise.
3430 (vtbx4_s8): Likewise.
3431 (vtbx4_u8): Likewise.
3432 (vtbx4_p8): Likewise.
3433 (vtrn_f32): Likewise.
3434 (vtrn_p8): Likewise.
3435 (vtrn_p16): Likewise.
3436 (vtrn_s8): Likewise.
3437 (vtrn_s16): Likewise.
3438 (vtrn_s32): Likewise.
3439 (vtrn_u8): Likewise.
3440 (vtrn_u16): Likewise.
3441 (vtrn_u32): Likewise.
3442 (vtrnq_f32): Likewise.
3443 (vtrnq_p8): Likewise.
3444 (vtrnq_p16): Likewise.
3445 (vtrnq_s8): Likewise.
3446 (vtrnq_s16): Likewise.
3447 (vtrnq_s32): Likewise.
3448 (vtrnq_u8): Likewise.
3449 (vtrnq_u16): Likewise.
3450 (vtrnq_u32): Likewise.
3451 (vrsqrte_f16): Likewise.
3452 (vrsqrteq_f16): Likewise.
3453 (vsqrt_f16): Likewise.
3454 (vsqrtq_f16): Likewise.
3455 (vabd_f16): Likewise.
3456 (vabdq_f16): Likewise.
3457 (vpadd_f16): Likewise.
3458 (vpaddq_f16): Likewise.
3459 (vpmax_f16): Likewise.
3460 (vpmaxq_f16): Likewise.
3461 (vpmaxnm_f16): Likewise.
3462 (vpmaxnmq_f16): Likewise.
3463 (vpmin_f16): Likewise.
3464 (vpminq_f16): Likewise.
3465 (vpminnm_f16): Likewise.
3466 (vpminnmq_f16): Likewise.
3467 (vrsqrts_f16): Likewise.
3468 (vrsqrtsq_f16): Likewise.
3469
3470 2019-09-25 Richard Biener <rguenther@suse.de>
3471
3472 PR tree-optimization/91896
3473 * tree-vect-loop.c (vectorizable_reduction): The single
3474 def-use cycle optimization cannot apply when there's more
3475 than one pattern stmt involved.
3476
3477 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3478
3479 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3480 the 'P' mode iterator, replacing the (removed) SI and DI variants.
3481 (reload_macho_picbase_<mode>): Likewise.
3482
3483 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
3484
3485 * config/rs6000/rs6000.md: Move darwin.md include until
3486 after the definition of the mode iterators.
3487
3488 2019-09-23 Martin Sebor <msebor@redhat.com>
3489
3490 PR tree-optimization/91570
3491 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3492 non-constant minlen, maxlen and maxbound.
3493
3494 2019-09-24 Richard Biener <rguenther@suse.de>
3495
3496 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3497 Rename to...
3498 (_stmt_vec_info::cond_reduc_code): ... this.
3499 (_stmt_vec_info::induc_cond_initial_val): Add.
3500 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3501 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3502 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3503 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3504 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3505 the reduction code.
3506 (vect_create_epilog_for_reduction): Drop special
3507 induction condition reduction params, pass in reduction code
3508 and simplify.
3509 (vectorizable_reduction): Perform condition reduction kind
3510 selection only at analysis time. Adjust passing on state.
3511
3512 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3513
3514 * config/aarch64/aarch64.md (mov<mode>): Don't call
3515 aarch64_split_dimode_const_store on volatile MEM.
3516
3517 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
3518
3519 * config/aarch64/aarch64-option-extensions.def (fp16fml):
3520 Update hwcap string for fp16fml.
3521
3522 2019-09-24 Jakub Jelinek <jakub@redhat.com>
3523
3524 PR middle-end/91866
3525 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3526 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3527
3528 2019-09-24 Martin Liska <mliska@suse.cz>
3529
3530 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3531 instead of if-elseif-elseif-...
3532 * gimple-expr.c (extract_ops_from_tree): Likewise.
3533 * gimple.c (get_gimple_rhs_num_ops): Likewise.
3534 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3535
3536 2019-09-24 Martin Jambor <mjambor@suse.cz>
3537
3538 PR ipa/91831
3539 * ipa-param-manipulation.c (carry_over_param): Make a method of
3540 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
3541 in case of a context mismatch.
3542 (ipa_param_body_adjustments::common_initialization): Adjust call to
3543 carry_over_param.
3544 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3545 private method carry_over_param.
3546
3547 2019-09-24 Martin Jambor <mjambor@suse.cz>
3548
3549 PR ipa/91832
3550 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3551
3552 2019-09-24 Richard Biener <rguenther@suse.de>
3553
3554 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3555 base.
3556
3557 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3558
3559 * config/arm/t-arm (arm-builtins.o): Add dependency on
3560 arm_acle_builtins.def.
3561
3562 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3563
3564 PR target/91823
3565 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3566 canonical CONST_INTs. Use gen_rtvec.
3567
3568 2019-09-23 Richard Biener <rguenther@suse.de>
3569
3570 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3571 avoid adjusting by + 0 or * 1.
3572 (vect_create_epilog_for_reduction): Get reduction code only
3573 when necessary. Deal with adjustment_def only when necessary.
3574
3575 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
3576
3577 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3578 memmodel index.
3579
3580 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3581
3582 PR ipa/91835
3583 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3584 "ipa-sra".
3585
3586 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
3587
3588 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3589 code. Merge code blocks with common conditionals. Use declared
3590 macro instead of a magic number for PIC level.
3591
3592 2019-09-21 Martin Sebor <msebor@redhat.com>
3593
3594 PR middle-end/91830
3595 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3596 Simplify computation of the offset of the referenced subobject.
3597
3598 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
3599
3600 * config/darwin.c (machopic_legitimize_pic_address): Check
3601 for lra not reload.
3602
3603 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3604
3605 * ira-conflicts.c (can_use_same_reg_p): New function.
3606 (process_reg_shuffles): Take an insn parameter. Ignore cases
3607 in which input operand op_num could seemingly never be allocated
3608 to the same register as the destination.
3609 (add_insn_allocno_copies): Update call to process_reg_shuffles.
3610
3611 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
3612
3613 * simplify-rtx.c (neg_const_int): Replace with...
3614 (neg_poly_int_rtx): ...this new function.
3615 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3616 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3617 (simplify_plus_minus): Likewise for constant terms here.
3618
3619 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
3620
3621 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3622 HOST_WIDE_PRINT_UNSIGNED.
3623
3624 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
3625
3626 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3627 character.
3628
3629 2019-09-20 Maya Rashish <coypu@sdf.org>
3630
3631 PR target/86811
3632 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3633 Define to speculation_safe_value_not_needed.
3634
3635 2019-09-20 Richard Biener <rguenther@suse.de>
3636 Uros Bizjak <ubizjak@gmail.com>
3637
3638 PR target/91814
3639 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3640 previous change.
3641 (general_scalar_chain::convert_op): Force not suitable memory
3642 operands to a register.
3643
3644 2019-09-20 Richard Biener <rguenther@suse.de>
3645
3646 PR tree-optimization/91821
3647 * tree-vect-loop.c (check_reduction_path): Check we can compute
3648 reduc_idx.
3649 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3650 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3651 operands in canonical order.
3652 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3653 STMT_VINFO_REDUC_IDX.
3654 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3655 (STMT_VINFO_REDUC_IDX): Likewise.
3656
3657 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
3658
3659 PR target/91269
3660 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3661
3662 2019-09-20 Richard Biener <rguenther@suse.de>
3663
3664 PR tree-optimization/91822
3665 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3666 parameter.
3667 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3668 for reduc_index in nested cycles, adjust vectorizable_condition
3669 calls.
3670 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3671 parameter.
3672 (vect_analyze_stmt): Adjust.
3673 (vect_transform_stmt): Likewise.
3674
3675 2019-09-20 Richard Biener <rguenther@suse.de>
3676
3677 PR target/91767
3678 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3679 Ensure there's a sequence point between allocating the new register
3680 and passing a reference to a reg via regno_reg_rtx.
3681
3682 2019-09-20 Martin Jambor <mjambor@suse.cz>
3683
3684 * coretypes.h (cgraph_edge): Declare.
3685 * ipa-param-manipulation.c: Rewrite.
3686 * ipa-param-manipulation.h: Likewise.
3687 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3688 (OBJS): Added ipa-sra.o.
3689 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3690 and ref_p, added fields param_adjustments and performed_splits.
3691 (struct cgraph_clone_info): Remove ags_to_skip and
3692 combined_args_to_skip, new field param_adjustments.
3693 (cgraph_node::create_clone): Changed parameters to use
3694 ipa_param_adjustments.
3695 (cgraph_node::create_virtual_clone): Likewise.
3696 (cgraph_node::create_virtual_clone_with_body): Likewise.
3697 (tree_function_versioning): Likewise.
3698 (cgraph_build_function_type_skip_args): Removed.
3699 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3700 using ipa_param_adjustments.
3701 (clone_of_p): Likewise.
3702 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3703 (build_function_decl_skip_args): Likewise.
3704 (duplicate_thunk_for_node): Adjust parameters using
3705 ipa_param_body_adjustments, copy param_adjustments instead of
3706 args_to_skip.
3707 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3708 (cgraph_node::create_virtual_clone): Likewise.
3709 (cgraph_node::create_version_clone_with_body): Likewise.
3710 (cgraph_materialize_clone): Likewise.
3711 (symbol_table::materialize_all_clones): Likewise.
3712 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3713 ipa_replace_map check.
3714 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3715 (initialize_node_lattices): Make aware that some parameters might have
3716 already been removed.
3717 (want_remove_some_param_p): New function.
3718 (create_specialized_node): Convert to using ipa_param_adjustments and
3719 deal with possibly pre-existing adjustments.
3720 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3721 (output_node_opt_summary): Do not stream removed fields. Stream
3722 parameter adjustments instead of argumetns to skip.
3723 (input_node_opt_summary): Likewise.
3724 (input_node_opt_summary): Likewise.
3725 * lto-section-in.c (lto_section_name): Added ipa-sra section.
3726 * lto-streamer.h (lto_section_type): Likewise.
3727 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3728 param_body_adjs.
3729 (copy_decl_to_var): Declare.
3730 * tree-inline.c (update_clone_info): Do not remap old_tree.
3731 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3732 statements, walk all extra generated statements and remap their
3733 operands.
3734 (redirect_all_calls): Add killed SSA names to a hash set.
3735 (remap_ssa_name): Do not remap killed SSA names.
3736 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3737 half of functionality moved to ipa_param_body_adjustments.
3738 (copy_decl_to_var): Make exported.
3739 (copy_body): Destroy killed_new_ssa_names hash set.
3740 (expand_call_inline): Remap performed splits.
3741 (update_clone_info): Likewise.
3742 (tree_function_versioning): Simplify tree_map processing. Updated to
3743 accept ipa_param_adjustments and use ipa_param_body_adjustments.
3744 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3745 for the new interface.
3746 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3747 (simd_clone_compute_base_data_type): Likewise.
3748 (simd_clone_init_simd_arrays): Adjust for the new interface.
3749 (simd_clone_adjust_argument_types): Likewise.
3750 (struct modify_stmt_info): Likewise.
3751 (ipa_simd_modify_stmt_ops): Likewise.
3752 (ipa_simd_modify_function_body): Likewise.
3753 (simd_clone_adjust): Likewise.
3754 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
3755 (type_internals_preclude_sra_p): Make public.
3756 * tree-sra.h: New file.
3757 * ipa-inline-transform.c (save_inline_function_body): Update to
3758 refelct new tree_function_versioning signature.
3759 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3760 ipa_param_adjustments to get current parameter indices.
3761 (ipcp_modif_dom_walker::before_dom_children): Likewise.
3762 (ipcp_update_bits): Likewise.
3763 (ipcp_update_vr): Likewise.
3764 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3765 * ipa-sra.c: New file.
3766 * multiple_target.c (create_target_clone): Update to reflet new type
3767 of create_version_clone_with_body.
3768 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3769 tree_function_versioning.
3770 (modify_function): Update to reflect new type of
3771 tree_function_versioning.
3772 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3773 * passes.def: Remove old IPA-SRA and add new one.
3774 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3775 (make_pass_ipa_sra): Declare.
3776 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
3777 ipa_sra_retvalues.
3778 * doc/invoke.texi (ipa-sra-max-replacements): New.
3779
3780 2019-09-19 Martin Sebor <msebor@redhat.com>
3781
3782 PR middle-end/91631
3783 * builtins.c (component_size): Correct trailing array computation,
3784 rename to component_ref_size and move...
3785 (compute_objsize): Adjust.
3786 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3787 (builtin_access::strict): Do not consider memmove.
3788 (builtin_access::write_off): New function.
3789 (builtin_memref::builtin_memref): Initialize refsize.
3790 (builtin_memref::set_base_and_offset): Adjust refoff and compute
3791 refsize.
3792 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3793 Handle refsize.
3794 (builtin_access::builtin_access): Initialize dstoff to destination
3795 refeence offset here instead of in maybe_diag_overlap. Adjust
3796 referencess even to unrelated objects. Adjust sizrange of bounded
3797 string functions to reflect bound. For strcat, adjust destination
3798 sizrange by that of source.
3799 (builtin_access::strcat_overlap): Adjust offsets and sizes
3800 to reflect the increase in destination sizrange above.
3801 (builtin_access::overlap): Do not set dstoff here but instead
3802 in builtin_access::builtin_access.
3803 (check_bounds_or_overlap): Use builtin_access::write_off.
3804 (maybe_diag_access_bounds): Add argument. Add informational notes.
3805 (dump_builtin_memref, dump_builtin_access): New functions.
3806 * tree.c (component_ref_size): ...to here.
3807 * tree.h (component_ref_size): Declare.
3808 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3809 nul in the size of the source string.
3810
3811 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
3812
3813 PR c/67224
3814 * doc/cpp.texi: Document support for extended characters in
3815 identifiers.
3816 * doc/cppopts.texi: Likewise.
3817
3818 2019-09-19 Richard Biener <rguenther@suse.de>
3819
3820 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3821 (check_reduction_path): New overload having the path as result.
3822 (vect_is_simple_reduction): From the detected reduction
3823 path build a SLP reduction chain if possible.
3824
3825 2019-09-19 Richard Biener <rguenther@suse.de>
3826
3827 PR target/91814
3828 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3829 Force operand to a register if it isn't nonimmediate_operand.
3830
3831 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3832
3833 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3834 * config/arm/iterators.md (optab): Add and, ior, xor entries.
3835 (logical_op): Remove code attribute.
3836 (logical_OP): Likewise.
3837
3838 2019-09-19 Martin Liska <mliska@suse.cz>
3839
3840 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3841 Use proper casting.
3842
3843 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
3844
3845 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3846 registers with %R.
3847
3848 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3849 for NE comparison of TImode values.
3850 (aarch64_emit_load_exclusive): Add support for TImode.
3851 (aarch64_emit_store_exclusive): Likewise.
3852 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3853 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3854 Change iterator from ALLI to ALLI_TI.
3855 (@atomic_compare_and_swap<JUST_TI>): New.
3856 (@atomic_compare_and_swap<JUST_TI>_lse): New.
3857 (aarch64_load_exclusive_pair): New.
3858 (aarch64_store_exclusive_pair): New.
3859 * config/aarch64/iterators.md (JUST_TI): New.
3860
3861 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3862 strong_zero_p for aarch64_track_speculation; unify some code paths;
3863 use aarch64_gen_compare_reg instead of open-coding.
3864
3865 * config/aarch64/aarch64.opt (-moutline-atomics): New.
3866 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3867 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3868 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3869 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3870 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3871 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3872 (atomic_<atomic_op><ALLI>): Likewise.
3873 (atomic_fetch_<atomic_op><ALLI>): Likewise.
3874 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3875 * doc/invoke.texi: Document -moutline-atomics.
3876
3877 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
3878
3879 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3880 trivial predicate for condition branch.
3881 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3882 for switch case.
3883 (compute_bb_predicates): Update predicate based on post-dominating
3884 relationship.
3885 (analyze_function_body): Calculate post-dominating information.
3886
3887 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3888
3889 * tree-vectorizer.h (vectorizable_condition): Take an int
3890 reduction index instead of a boolean flag.
3891 * tree-vect-stmts.c (vectorizable_condition): Likewise.
3892 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3893 reductions if the reduction accumulator is the "then" rather
3894 than the "else" value.
3895 (vect_analyze_stmt): Update call accordingly.
3896 (vect_transform_stmt): Likewise.
3897 * tree-vect-loop.c (vectorizable_reduction): Likewise,
3898 asserting that the index is > 0.
3899
3900 2019-09-19 Martin Liska <mliska@suse.cz>
3901
3902 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3903 (sort_congruence_classes_by_decl_uid): Likewise.
3904 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3905 easier sorting.
3906 (sem_item_optimizer::merge_classes): Likewise.
3907
3908 2019-09-19 Richard Biener <rguenther@suse.de>
3909
3910 PR tree-optimization/91812
3911 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3912 volatile loads.
3913
3914 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
3915
3916 * defaults.h (TARGET_UNIT): New macro.
3917 (target_unit): New type.
3918 * rtl.h (native_encode_rtx, native_decode_rtx)
3919 (native_decode_vector_rtx, subreg_size_lsb): Declare.
3920 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3921 * rtlanal.c (subreg_lsb_1): Delete.
3922 (subreg_size_lsb): New function.
3923 * simplify-rtx.c: Include rtx-vector-builder.h
3924 (simplify_immed_subreg): Delete.
3925 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3926 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3927 functions.
3928 (simplify_subreg): Use them.
3929 (test_vector_subregs_modes, test_vector_subregs_repeating)
3930 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3931 (test_vector_subregs): New functions.
3932 (test_vector_ops): Call test_vector_subregs for integer vector
3933 modes with at least 2 elements.
3934
3935 2019-09-19 Richard Biener <rguenther@suse.de>
3936
3937 * tree-parloops.c (parloops_is_slp_reduction): Do not set
3938 LOOP_VINFO_OPERANDS_SWAPPED.
3939 (parloops_is_simple_reduction): Likewise.
3940 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3941 initialize operands_swapped.
3942 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3943 (vect_is_slp_reduction): Do not swap operands.
3944 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3945 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3946
3947 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
3948
3949 PR target/87007
3950 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3951 Add avx_partial_xmm_update.
3952
3953 2019-09-18 Jim Wilson <jimw@sifive.com>
3954
3955 PR target/91683
3956 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3957 (riscv_move_integer): Likewise.
3958 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3959 riscv_move_integer arg.
3960 (riscv_legitimize_move): Likewise.
3961 (riscv_force_temporary): New parameter in_splitter. Don't call
3962 force_reg if true.
3963 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3964 arg.
3965 (riscv_add_offset): Likewise.
3966 (riscv_split_symbol): New parameter in_splitter. Pass to
3967 riscv_force_temporary.
3968 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3969 arg.
3970 (riscv_move_integer): New parameter in_splitter. New local
3971 can_create_psuedo. Don't call riscv_split_integer or force_reg when
3972 in_splitter TRUE.
3973 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3974 riscv_split_symbol, and riscv_force_temporary args.
3975 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3976 riscv_move_integer arg.
3977 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3978
3979 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3980
3981 PR target/90878
3982 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3983 hard register store cost to 6.
3984
3985 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
3986
3987 PR target/91446
3988 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3989 pseudo register store cost from 3 to 6 to make it the same as
3990 QImode and HImode.
3991
3992 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
3993
3994 PR target/91738
3995 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3996 (one_cmpldi2): Likewise.
3997 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3998 of the constant parts is simple.
3999 * config/arm/iterators.md (LOGICAL): Add new code iterator.
4000 (logical_op): Add new code attribute.
4001 (logical_OP): Likewise.
4002 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
4003 (arm_iordi_operand): Add predicate.
4004 (arm_xordi_operand): Add predicate.
4005
4006 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4007
4008 * config/arm/arm.md (maddsidi4): Remove expander.
4009 (mulsidi3adddi): Remove pattern.
4010 (mulsidi3adddi_v6): Likewise.
4011 (mulsidi3_nov6): Likewise.
4012 (mulsidi3_v6): Likewise.
4013 (umulsidi3): Remove expander.
4014 (umulsidi3_nov6): Remove pattern.
4015 (umulsidi3_v6): Likewise.
4016 (umulsidi3adddi): Likewise.
4017 (umulsidi3adddi_v6): Likewise.
4018 (<Us>mulsidi3): Add combined expander.
4019 (<Us>maddsidi4): Likewise.
4020 (<US>mull): Add combined umull and smull pattern.
4021 (<US>mlal): Likewise.
4022 * config/arm/iterators.md (Us): Add new iterator.
4023
4024 2019-09-18 Richard Biener <rguenther@suse.de>
4025
4026 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
4027 swapping.
4028 (vectorize_fold_left_reduction): Remove assert.
4029 (vectorizable_reduction): Also expect COND_EXPR non-reduction
4030 operand in position 2. Remove assert.
4031
4032 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4033
4034 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
4035 (smulsi3_highpart_nov6): Remove pattern.
4036 (smulsi3_highpart_v6): Likewise.
4037 (umulsi3_highpart): Likewise.
4038 (umulsi3_highpart_nov6): Likewise.
4039 (umulsi3_highpart_v6): Likewise.
4040 (<US>mull_high): Add new combined multiply pattern.
4041
4042 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
4043
4044 * config/arm/arm.md (arm_mulsi3): Remove pattern.
4045 (arm_mulsi3_v6): Likewise.
4046 (mulsi3addsi_v6): Likewise.
4047 (mulsi3subsi): Likewise.
4048 (mul): Add new multiply pattern.
4049 (mla): Likewise.
4050 (mls): Likewise.
4051
4052 2019-09-18 Richard Biener <rguenther@suse.de>
4053
4054 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
4055 (parloops_valid_reduction_input_p): Copy from
4056 valid_reduction_input_p.
4057 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
4058 (parloops_needs_fold_left_reduction_p): Copy from
4059 needs_fold_left_reduction_p.
4060 (parloops_is_simple_reduction): Copy from
4061 vect_is_simple_reduction.
4062 (parloops_force_simple_reduction): Copy from
4063 vect_force_simple_reduction.
4064 (gather_scalar_reductions): Adjust.
4065 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
4066 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
4067
4068 2019-09-18 Richard Biener <rguenther@suse.de>
4069
4070 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
4071 * tree-vect-loop.c (get_initial_def_for_reduction): Make
4072 static.
4073 (vect_create_epilog_for_reduction): Remove dead code.
4074
4075 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4076
4077 * varasm.c (assemble_real): Generate canonical const_ints.
4078
4079 2019-09-18 Richard Biener <rguenther@suse.de>
4080
4081 PR lto/91763
4082 * lto-streamer-in.c (input_eh_regions): Move EH init to
4083 lto_materialize_function.
4084 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4085 Likewise.
4086
4087 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4088
4089 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
4090 are INTEGER_CSTs.
4091
4092 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4093
4094 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
4095 of checking specifically for INTEGER_CST.
4096
4097 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4098
4099 * stor-layout.c (compute_record_mode): Operate on poly_uint64
4100 sizes instead of uhwi sizes.
4101
4102 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
4103
4104 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
4105 (add_const_value_attribute): Handle CONST_POLY_INT.
4106
4107 2019-09-18 Martin Liska <mliska@suse.cz>
4108
4109 * dbgcnt.def (store_merging): New counter.
4110 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
4111 Use it in store merging.
4112
4113 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4114
4115 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
4116 function.
4117 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4118 * config/arm/arm.c (arm_sched_variable_issue): New function.
4119 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
4120
4121 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4122
4123 * config/arm/types.md (no_reservation): New reservation.
4124 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
4125 no_insn here.
4126 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
4127 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
4128 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
4129 * config/arm/arm1020e.md (1020alu_op): Likewise.
4130 * config/arm/arm1026ejs.md (alu_op): Likewise.
4131 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
4132 * config/arm/arm926ejs.md (9_alu_op): Likewise.
4133 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
4134 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
4135 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
4136 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
4137 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
4138 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
4139 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
4140 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
4141 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
4142 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
4143 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
4144 * config/arm/fa526.md (526_alu_op): Likewise.
4145 * config/arm/fa606te.md (606te_alu_op): Likewise.
4146 * config/arm/fa626te.md (626te_alu_op): Likewise.
4147 * config/arm/fa726te.md (726te_alu_op): Likewise.
4148 * config/arm/xgene1.md (xgene1_nop): Likewise.
4149
4150 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4151
4152 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
4153 "no_insn" to "branch".
4154
4155 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
4156
4157 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
4158
4159 2019-09-17 Richard Biener <rguenther@suse.de>
4160
4161 PR debug/91772
4162 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
4163 was missing generate locations only once.
4164
4165 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
4166
4167 PR ipa/91089
4168 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
4169 option.
4170 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
4171 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4172 for switch default case using range analysis information.
4173
4174 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
4175
4176 PR target/91749
4177 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4178 mode attributed is supported by FDPIC.
4179
4180 2019-09-17 Richard Biener <rguenther@suse.de>
4181
4182 PR tree-optimization/91790
4183 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4184 use the correct DR for setting up realignment.
4185
4186 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
4187
4188 PR target/91719
4189 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4190 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4191 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4192 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4193
4194 2019-09-16 Jason Merrill <jason@redhat.com>
4195
4196 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4197
4198 2019-09-16 Martin Liska <mliska@suse.cz>
4199
4200 * gimple-fold.c (or_comparisons_1): Remove rules moved
4201 to ...
4202 * match.pd: ... here.
4203
4204 2019-09-16 Martin Liska <mliska@suse.cz>
4205
4206 * gimple-fold.c (or_comparisons_1): Remove rules
4207 moved to ...
4208 * match.pd: ... here.
4209
4210 2019-09-16 Martin Liska <mliska@suse.cz>
4211
4212 * genmatch.c (dt_node::append_simplify): Do not print
4213 warning when we have duplicate patterns belonging
4214 to a same simplify rule.
4215 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4216 (maybe_fold_comparisons_from_match_pd): Handle
4217 tcc_comparison as a results.
4218 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4219
4220 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4221 Qi Feng <ffengqi@linux.ibm.com>
4222
4223 PR middle-end/88784
4224 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
4225 (x > y && x == XXX_MIN): Optimize into 'false'.
4226 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4227 (x < y && x != XXX_MAX): Optimize into 'x < y'.
4228 (x < y && x == XXX_MAX): Optimize into 'false'.
4229 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4230 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4231 (x <= y || x != XXX_MIN): Optimize into 'true'.
4232 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
4233 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4234 (x >= y || x != XXX_MAX): Optimize into 'true'.
4235 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
4236
4237 2019-09-16 Li Jia He <helijia@linux.ibm.com>
4238 Martin Liska <mliska@suse.cz>
4239
4240 * gimple-fold.c (and_comparisons_1): Add type as first
4241 argument.
4242 (and_var_with_comparison): Likewise.
4243 (and_var_with_comparison_1): Likewise.
4244 (or_comparisons_1): Likewise.
4245 (or_var_with_comparison): Likewise.
4246 (or_var_with_comparison_1): Likewise.
4247 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4248 (maybe_fold_or_comparisons): Likewise.
4249 (maybe_fold_comparisons_from_match_pd): New.
4250 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4251 (maybe_fold_or_comparisons): Likewise.
4252 * gimple.c (gimple_size): Make it public and add num_ops argument.
4253 (gimple_init): New function.
4254 (gimple_alloc): Call gimple_init.
4255 * gimple.h (gimple_size): New.
4256 (gimple_init): Likewise.
4257 * tree-if-conv.c (fold_or_predicates): Pass type.
4258 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4259 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4260 (optimize_vec_cond_expr): Likewise.
4261 (ovce_extract_ops): Return type of conditional expression.
4262 * tree-ssanames.c (init_ssa_name_imm_use): New.
4263 (make_ssa_name_fn): Use init_ssa_name_imm_use.
4264 * tree-ssanames.h (init_ssa_name_imm_use): New.
4265
4266 2019-09-16 Richard Biener <rguenther@suse.de>
4267
4268 PR tree-optimization/91756
4269 PR tree-optimization/87132
4270 * tree-ssa-alias.h (enum translate_flags): New.
4271 (get_continuation_for_phi): Use it instead of simple bool flag.
4272 (walk_non_aliased_vuses): Likewise.
4273 * tree-ssa-alias.c (maybe_skip_until): Adjust.
4274 (get_continuation_for_phi): When looking across backedges only
4275 disallow valueization.
4276 (walk_non_aliased_vuses): Adjust.
4277 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4278 if requested.
4279
4280 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
4281
4282 PR middle-end/80791
4283 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4284 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4285 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4286 * target.def (have_count_reg_decr_p): New hook.
4287 (doloop_cost_for_generic): Likewise.
4288 (doloop_cost_for_address): Likewise.
4289 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4290 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4291 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4292 * doc/tm.texi: Regenerate.
4293 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4294 addend.
4295 (record_group): Init doloop_p.
4296 (add_candidate_1): Add optional argument doloop, change the handlings
4297 accordingly.
4298 (add_candidate): Likewise.
4299 (generic_predict_doloop_p): Update attribute.
4300 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4301 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4302 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4303 MIN_EXPR.
4304 (get_computation_cost): Update for doloop IV cand extra cost.
4305 (determine_group_iv_cost_cond): Update for doloop IV cand.
4306 (determine_iv_cost): Likewise.
4307 (ivopts_estimate_reg_pressure): Likewise.
4308 (may_eliminate_iv): Update handlings for doloop IV cand.
4309 (add_iv_candidate_for_doloop): New function.
4310 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4311 (iv_ca_set_no_cp): Update for doloop IV cand.
4312 (iv_ca_set_cp): Likewise.
4313 (iv_ca_dump): Dump register cost.
4314 (find_doloop_use): New function.
4315 (analyze_and_mark_doloop_use): Likewise.
4316 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4317
4318 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4319
4320 PR middle-end/91708
4321 * cse.c (cse_insn): Do not replace anything with a
4322 MEM.
4323
4324 2019-09-13 Ian Lance Taylor <iant@golang.org>
4325
4326 * doc/invoke.texi (Optimize Options): Fix typo.
4327
4328 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
4329
4330 PR tree-optimization/89386
4331 * config/i386/sse.md (smulhrs<mode>3): New expander.
4332 (smulhrsv4hi3): Ditto.
4333
4334 2019-09-12 Richard Biener <rguenther@suse.de>
4335
4336 PR tree-optimization/91750
4337 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4338 in the type of the evolution.
4339
4340 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
4341
4342 PR tree-optimization/89386
4343 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4344 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4345 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4346 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4347 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4348 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4349 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4350 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4351 (su, r): Handle the unspecs above.
4352 (bt): New int attribute.
4353 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4354 * internal-fn.c (first_commutative_argument): Commutativity info for
4355 above.
4356 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4357 (umulhrs_optab): New optabs.
4358 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4359 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4360 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4361 function.
4362 (vect_vect_recog_func_ptrs): Add it.
4363
4364 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
4365
4366 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4367 code.
4368
4369 2019-09-11 Nathan Sidwell <nathan@acm.org>
4370
4371 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4372 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4373
4374 2019-09-11 Richard Biener <rguenther@suse.de>
4375
4376 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4377 * lto-wrapper.c (merge_and_complain): Pick up -g.
4378 (append_compiler_options): Likewise.
4379 (run_gcc): Re-instantiate handling -g0 at link-time.
4380 * doc/invoke.texi (flto): Document debug info generation.
4381
4382 2019-09-11 Richard Biener <rguenther@suse.de>
4383
4384 PR tree-optimization/90387
4385 * vr-values.c (vr_values::extract_range_basic): After inlining
4386 simplify non-constant __builtin_constant_p to false.
4387
4388 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
4389
4390 PR rtl-optimization/89795
4391 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4392 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4393
4394 2019-09-11 Jakub Jelinek <jakub@redhat.com>
4395
4396 PR tree-optimization/91723
4397 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4398 instead of pointer equality when checking if argument vectypes are
4399 the same.
4400
4401 PR middle-end/91725
4402 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4403 of get_nonzero_bits, only call it for integral types.
4404
4405 2019-09-11 Richard Biener <rguenther@suse.de>
4406
4407 Revert
4408 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
4409
4410 * match.pd: Add flag_unsafe_math_optimizations check
4411 before deciding on the widest type in a binary math operation.
4412
4413 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4414
4415 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4416 and CALL_REALLY_USED_REGISTERS must be defined, and that
4417 CALL_REALLY_USED_REGISTERS is preferred.
4418 * doc/tm.texi: Regenerate.
4419 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4420 (call_really_used_regs): Likewise.
4421 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4422 CALL_REALLY_USED_REGISTERS are defined.
4423 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4424 initial value if defined.
4425 (initial_call_really_used_regs): Delete.
4426 (saved_call_really_used_regs): Likewise.
4427 (CALL_REALLY_USED_REGNO_P): Likewise.
4428 (init_reg_sets): Remove handling of call_really_used_regs.
4429 (save_register_info, restore_register_info, globalize_reg): Likewise.
4430 (init_reg_sets_1): Likewise. Use call_used_regs instead of
4431 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
4432 outside operand_reg_set.
4433 (fix_register): Don't change call_used_regs if
4434 CALL_REALLY_USED_REGISTERS is defined.
4435 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4436 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4437 instead of call_really_used_regs.
4438 (csky_conditional_register_usage): Remove the old handling of
4439 call_used_regs and change the handling of call_really_used_regs
4440 to use call_used_regs instead.
4441 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4442 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4443 making a register fixed.
4444 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4445 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4446 instead of call_really_used_regs.
4447 (m32r_conditional_register_usage): Don't set call_used_regs when
4448 making a register fixed.
4449 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4450 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4451 instead of call_really_used_regs.
4452 (mips_interrupt_extra_call_saved_reg_p): Likewise.
4453 (mips_cfun_call_saved_reg_p): Likewise.
4454 (mips_swap_registers): Remove the old handling of call_used_regs
4455 and change the handling of call_really_used_regs to use call_used_regs
4456 instead.
4457 (mips_conditional_register_usage): Likewise.
4458 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4459 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4460 instead of call_really_used_regs.
4461 (mn10300_get_live_callee_saved_regs): Likewise.
4462 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4463 (mn10300_conditional_register_usage): Don't set call_used_regs when
4464 making a register fixed.
4465 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4466 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4467 Remove the old handling of call_used_regs and change the handling
4468 of call_really_used_regs to use call_used_regs instead.
4469 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4470 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4471 instead of call_really_used_regs.
4472 (s390_register_info_gprtofpr, s390_register_info): Likewise.
4473 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4474 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4475 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4476 (s390_conditional_register_usage): Remove the old handling of
4477 call_used_regs and change the handling of call_really_used_regs
4478 to use call_used_regs instead.
4479 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4480 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4481 (sh_fix_range, reg_unused_after): Likewise.
4482 (sh_conditional_register_usage): Remove the old handling of
4483 call_used_regs and change the handling of call_really_used_regs
4484 to use call_used_regs instead.
4485 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4486 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4487 call_used_regs when making a register fixed.
4488 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4489 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4490 call_used_regs when making a register fixed.
4491 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4492 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4493 set call_used_regs when making a register fixed.
4494 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4495 * config/visium/visium.c (visium_conditional_register_usage): Remove
4496 the old handling of call_used_regs and change the handling of
4497 call_really_used_regs to use call_used_regs instead.
4498
4499 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4500
4501 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4502 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4503 * reginfo.c (call_used_regs): New macro.
4504
4505 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4506
4507 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4508 fixed_regs test.
4509 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4510 (bpf_expand_epilogue): Likewise.
4511 * config/c6x/c6x.c (c6x_save_reg): Likewise.
4512 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4513 (ft32_expand_epilogue): Likewise.
4514 * config/i386/i386.c (ix86_save_reg): Likewise.
4515 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4516 (moxie_expand_epilogue): Likewise.
4517 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4518 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4519 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4520
4521 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4522
4523 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4524 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4525 instead of testing call_used_regs directly.
4526 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4527 (aarch64_components_for_bb): Likewise.
4528 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4529 * config/arc/arc.c (arc_must_save_register): Likewise.
4530 (arc_epilogue_uses): Likewise.
4531 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4532 (legitimize_pic_address, callee_saved_reg_p): Likewise.
4533 (arm_compute_save_reg0_reg12_mask): Likewise.
4534 (arm_compute_save_core_reg_mask): Likewise.
4535 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4536 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4537 (cmse_nonsecure_entry_clear_before_return): Likewise.
4538 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4539 (arm_expand_epilogue): Likewise.
4540 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4541 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4542 (_reg_unused_after): Likewise.
4543 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4544 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4545 (add_to_reg, hwloop_optimize): Likewise.
4546 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4547 (bpf_expand_epilogue): Likewise.
4548 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4549 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4550 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4551 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4552 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4553 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4554 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4555 * config/frv/frv.c (frv_stack_info): Likewise.
4556 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4557 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4558 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4559 (move_callee_saved_registers): Likewise.
4560 * config/h8300/h8300.c (byte_reg): Likewise.
4561 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4562 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4563 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4564 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4565 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4566 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4567 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4568 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4569 * config/m32c/m32c.c (need_to_save): Likewise.
4570 * config/m68k/m68k.c (m68k_save_reg): Likewise.
4571 * config/mcore/mcore.c (calc_live_regs): Likewise.
4572 * config/microblaze/microblaze.c (microblaze_must_save_register):
4573 Likewise.
4574 * config/mmix/mmix.c (mmix_local_regno): Likewise.
4575 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4576 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4577 (mmix_expand_epilogue): Likewise.
4578 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4579 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4580 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4581 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4582 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4583 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4584 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4585 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4586 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4587 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4588 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4589 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4590 * config/rl78/rl78.c (need_to_save): Likewise.
4591 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4592 (rs6000_stack_info, generate_set_vrsave): Likewise.
4593 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4594 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4595 * config/rx/rx.c (rx_get_stack_layout): Likewise.
4596 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4597 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4598 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4599 (save_local_or_in_reg_p): Likewise.
4600 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4601 (xstormy16_epilogue_uses): Likewise.
4602 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4603 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4604 * config/v850/v850.c (compute_register_save_size): Likewise.
4605 * config/vax/vax.c (vax_expand_prologue): Likewise.
4606 * config/visium/visium.c (visium_save_reg_p): Likewise.
4607 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4608 * cselib.c (cselib_process_insn): Likewise.
4609 * df-scan.c (df_get_entry_block_def_set): Likewise.
4610 * function.c (aggregate_value_p): Likewise.
4611 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4612 * ira-lives.c (process_bb_node_lives): Likewise.
4613 * ira.c (do_reload): Likewise.
4614 * lra-lives.c (process_bb_lives): Likewise.
4615 * lra-remat.c (lra_remat): Likewise.
4616 * lra.c (lra): Likewise.
4617 * postreload.c (reload_combine_recognize_pattern): Likewise.
4618 (reload_cse_move2add): Likewise.
4619 * recog.c (peep2_find_free_register): Likewise.
4620 * regrename.c (check_new_reg_p): Likewise.
4621 * reload.c (find_equiv_reg): Likewise.
4622 * reload1.c (reload, find_reg): Likewise.
4623 * sel-sched.c (init_hard_regs_data): Likewise.
4624
4625 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4626
4627 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4628 regs_invalidated_by_call & ~fixed_reg_set instead of
4629 call_used_or_fixed_regs & ~fixed_reg_set.
4630 * config/sh/sh.c (output_stack_adjust): Likewise.
4631
4632 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4633
4634 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4635 (call_used_reg_set): Delete.
4636 (call_used_or_fixed_regs): New macro.
4637 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4638 of call_used_reg_set.
4639 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4640 instead of call_used_regs.
4641 (save_call_clobbered_regs): Likewise.
4642 * cfgcleanup.c (old_insns_match_p): Likewise.
4643 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4644 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4645 Likewise.
4646 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4647 * config/sh/sh.c (output_stack_adjust): Likewise.
4648 * final.c (collect_fn_hard_reg_usage): Likewise.
4649 * ira-build.c (ira_build): Likewise.
4650 * ira-color.c (calculate_saved_nregs): Likewise.
4651 (allocno_reload_assign, calculate_spill_cost): Likewise.
4652 * ira-conflicts.c (ira_build_conflicts): Likewise.
4653 * ira-costs.c (ira_tune_allocno_costs): Likewise.
4654 * ira-lives.c (process_bb_node_lives): Likewise.
4655 * ira.c (setup_reg_renumber): Likewise.
4656 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4657 * lra-constraints.c (need_for_call_save_p): Likewise.
4658 (need_for_split_p, inherit_in_ebb): Likewise.
4659 * lra-lives.c (process_bb_lives): Likewise.
4660 * lra-remat.c (call_used_input_regno_present_p): Likewise.
4661 * postreload.c (reload_combine): Likewise.
4662 * regrename.c (find_rename_reg): Likewise.
4663 * reload1.c (reload_as_needed): Likewise.
4664 * rtlanal.c (find_all_hard_reg_sets): Likewise.
4665 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4666 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4667
4668 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4669
4670 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4671 (no_caller_save_reg_set): Delete.
4672 * caller-save.c (init_caller_save): Don't initialize it.
4673 * ira-conflicts.c (ira_build_conflicts): Calculate
4674 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4675
4676 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4677
4678 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4679 (target_hard_regs::x_savable_regs): New field.
4680 (call_fixed_reg_set): Delete.
4681 (savable_regs): New macro,
4682 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4683 (init_reg_sets_1): Likewise. Initialize savable_regs.
4684 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4685 for all registers. Set savable_regs instead of call_fixed_reg_set.
4686 (setup_save_areas, save_call_clobbered_regs): Replace uses of
4687 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4688 * config/sh/sh.c (output_stack_adjust): Likewise.
4689
4690 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4691
4692 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4693 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4694 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4695
4696 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
4697
4698 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4699 * rtlanal.c (get_call_rtx_from): Likewise.
4700 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4701 than the pattern to get_call_rtx_from.
4702 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4703 an rtx_insn * instead of an rtx.
4704 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4705
4706 2019-09-10 Martin Liska <mliska@suse.cz>
4707
4708 * common.opt: Use newly added WarnRemoved.
4709 * config/aarch64/aarch64.opt: Likewise.
4710 * config/arm/arm.opt: Likewise.
4711 * config/i386/i386.opt: Likewise.
4712 * config/ia64/ia64.opt: Likewise.
4713 * config/rs6000/rs6000.opt: Likewise.
4714 * doc/options.texi: Document WarnRemoved properly.
4715 * dwarf2out.c (gen_producer_string): Handle renamed
4716 OPT_SPECIAL_warn_removed.
4717 * lto-opts.c (lto_write_options): Likewise.
4718 * lto-wrapper.c (merge_and_complain): Likewise.
4719 * opts-common.c (decode_cmdline_option): Likewise.
4720 (prune_options): Likewise.
4721 (read_cmdline_option): Likewise.
4722 (control_warning_option): Likewise.
4723 * opts.c (print_filtered_help): Likewise.
4724 * optc-gen.awk: Parse for WarnRemoved and make usage
4725 of Deprecated an error.
4726 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4727
4728 2019-09-10 Arnaud Charlet <charlet@adacore.com>
4729
4730 * doc/install.texi: Fix syntax for html generation.
4731
4732 2019-09-10 Jakub Jelinek <jakub@redhat.com>
4733
4734 PR middle-end/91680
4735 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4736 the shift type to type.
4737
4738 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4739
4740 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4741 FDPIC mode.
4742 (stack_protect_combined_test_insn): Likewise.
4743
4744 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4745 Mickaël Guêné <mickael.guene@st.com>
4746
4747 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4748 * config/arm/arm.md (FDPIC_REGNUM): New constant.
4749 (load_tp_soft_fdpic): New pattern.
4750 (load_tp_soft): Disable in FDPIC mode.
4751
4752 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4753 Mickaël Guêné <mickael.guene@st.com>
4754
4755 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4756 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4757 (arm_call_tls_get_addr): Add FDPIC support.
4758 (legitimize_tls_address): Likewise.
4759 (arm_emit_tls_decoration): Likewise.
4760
4761 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4762 Mickaël Guêné <mickael.guene@st.com>
4763
4764 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4765 support.
4766 (arm_trampoline_init): Likewise.
4767 (arm_trampoline_adjust_address): Likewise.
4768 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4769
4770 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4771 Mickaël Guêné <mickael.guene@st.com>
4772
4773 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4774 (legitimize_pic_address): Enforce binding rules on function
4775 pointers in FDPIC mode.
4776 (arm_assemble_integer): Likewise.
4777
4778 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4779 Mickaël Guêné <mickael.guene@st.com>
4780
4781 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4782 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4783 FDPIC.
4784
4785 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4786 Mickaël Guêné <mickael.guene@st.com>
4787
4788 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4789 field.
4790
4791 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4792 Mickaël Guêné <mickael.guene@st.com>
4793
4794 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4795 in FDPIC mode.
4796 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4797 new function.
4798 * config/arm/arm.c (arm_option_override): Define pic register to
4799 FDPIC_REGNUM.
4800 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4801 have no decl or go through PLT.
4802 (calculate_pic_address_constant): New function.
4803 (legitimize_pic_address): Call calculate_pic_address_constant.
4804 (arm_load_pic_register): Handle TARGET_FDPIC.
4805 (arm_is_segment_info_known): New function.
4806 (arm_pic_static_addr): Add support for FDPIC.
4807 (arm_load_function_descriptor): New function.
4808 (arm_emit_call_insn): Add support for FDPIC.
4809 (arm_assemble_integer): Add support for FDPIC.
4810 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4811 Define. (FDPIC_REGNUM): New define.
4812 * config/arm/arm.md (call): Add support for FDPIC.
4813 (call_value): Likewise.
4814 (restore_pic_register_after_call): New pattern.
4815 (untyped_call): Disable if FDPIC.
4816 (untyped_return): Likewise.
4817 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4818
4819 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4820 Mickaël Guêné <mickael.guene@st.com>
4821
4822 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4823 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4824 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4825 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4826 (CC1_SPEC): Use FDPIC_CC1_SPEC.
4827 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4828 * config/arm/uclinuxfdpiceabi.h: New file.
4829
4830 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4831
4832 * config.gcc: Handle *-*-uclinuxfdpiceabi.
4833
4834 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
4835 Mickaël Guêné <mickael.guene@st.com>
4836
4837 * config/arm/arm.opt: Add -mfdpic option.
4838 * doc/invoke.texi: Add documentation for -mfdpic.
4839
4840 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4841
4842 * expmed.c (extract_bit_field): Update function comment
4843 regarding alt_rtl.
4844 * expr.c (expand_expr_real): Update function comment
4845 regarding alt_rtl.
4846 (expand_misaligned_mem_ref): New helper function.
4847 (expand_expr_real_2): Use expand_misaligned_mem_ref.
4848 Remove duplicate assignment to "base" at case MEM_REF.
4849 Remove a shadowed variable "unsignedp" at case VCE.
4850
4851 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4852
4853 * regset.h (regs_invalidated_by_call_regset): Delete.
4854 (fixed_reg_set_regset): Likewise.
4855 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4856 (fixed_reg_set_regset, persistent_obstack): Likewise.
4857 (init_reg_sets_1, globalize_reg): Update accordingly.
4858 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4859 instead of a bitmap.
4860 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4861 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4862 instead of regs_invalidated_by_call_regset.
4863 (df_lr_confluence_n, df_md_confluence_n): Likewise.
4864 * df-scan.c (df_scan_start_dump): Likewise.
4865 * dse.c (copy_fixed_regs): Likewise.
4866 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4867
4868 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4869
4870 * array-traits.h: New file.
4871 * coretypes.h (array_traits, bitmap_view): New types.
4872 * bitmap.h: Include "array-traits.h"
4873 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4874 (base_bitmap_view, bitmap_view): New classes.
4875 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4876 * hard-reg-set.h: Include array-traits.h.
4877 (array_traits<HARD_REG_SET>): New struct.
4878 * regset.h (IOR_REG_SET_HRS): New macro.
4879 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4880 rather than iterating over each hard register.
4881 * sched-deps.c (sched_analyze_insn): Likewise.
4882 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4883
4884 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4885
4886 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4887 instead of a HARD_REG_SET *.
4888 * ira-build.c (ior_hard_reg_conflicts): Likewise.
4889 (ira_build): Update call accordingly.
4890 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4891
4892 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4893
4894 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4895 (HARD_REG_SET::operator!=): Likewise.
4896 (hard_reg_set_equal_p): Delete.
4897 * cfgcleanup.c (old_insns_match_p): Use == instead of
4898 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4899 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4900 (add_allocno_hard_regs_to_forest): Likewise.
4901 (setup_allocno_available_regs_num): Likewise.
4902 * ira.c (setup_pressure_classes): Likewise.
4903 (setup_allocno_and_important_classes): Likewise.
4904 (setup_reg_class_relations): Likewise.
4905 * lra-lives.c (process_bb_lives): Likewise.
4906 * reg-stack.c (change_stack, convert_regs_1): Likewise.
4907
4908 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4909
4910 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4911 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4912 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4913 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4914 Likewise.
4915 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4916 * ira.c (setup_reg_renumber): Likewise.
4917 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4918 * regrename.c (regrename_find_superclass): Likewise.
4919 * reload1.c (find_reg): Likewise.
4920
4921 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4922
4923 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4924 * caller-save.c (setup_save_areas): Use "&~" instead of
4925 AND_COMPL_HARD_REG_SET.
4926 (save_call_clobbered_regs): Likewise.
4927 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4928 Likewise.
4929 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4930 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4931 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4932 * config/mips/mips.c (mips_class_max_nregs): Likewise.
4933 (mips_conditional_register_usage): Likewise.
4934 * config/sh/sh.c (output_stack_adjust): Likewise.
4935 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4936 (setup_profitable_hard_regs): Likewise.
4937 (get_conflict_and_start_profitable_regs): Likewise.
4938 * ira-conflicts.c (print_allocno_conflicts): Likewise.
4939 (ira_build_conflicts): Likewise.
4940 * ira-costs.c (restrict_cost_classes): Likewise.
4941 (setup_regno_cost_classes_by_aclass): Likewise.
4942 * ira-lives.c (process_bb_node_lives): Likewise.
4943 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4944 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4945 (setup_allocno_and_important_classes, setup_class_translate_array)
4946 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4947 Likewise.
4948 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4949 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4950 (process_alt_operands, inherit_in_ebb): Likewise.
4951 * lra-eliminations.c (update_reg_eliminate): Likewise.
4952 * lra-lives.c (process_bb_lives): Likewise.
4953 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4954 * resource.c (find_dead_or_set_registers): Likewise.
4955 (mark_target_live_regs): Likewise.
4956 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4957 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4958 (implicit_clobber_conflict_p): Likewise.
4959 * shrink-wrap.c (requires_stack_frame_p): Likewise.
4960 (try_shrink_wrapping): Likewise.
4961
4962 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
4963
4964 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4965 (HARD_REG_SET::operator|=): Likewise.
4966 (IOR_HARD_REG_SET): Delete.
4967 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4968 IOR_HARD_REG_SET.
4969 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4970 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4971 * final.c (collect_fn_hard_reg_usage): Likewise.
4972 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4973 * ira-build.c (merge_hard_reg_conflicts): Likewise.
4974 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4975 (propagate_some_info_from_allocno): Likewise.
4976 (copy_info_to_removed_store_destinations): Likewise.
4977 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4978 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4979 (fast_allocation): Likewise.
4980 * ira-conflicts.c (ira_build_conflicts): Likewise.
4981 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4982 (process_bb_node_lives): Likewise.
4983 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4984 * lra-assigns.c (find_hard_regno_for_1): Likewise.
4985 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4986 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4987 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4988 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4989 (process_bb_lives): Likewise.
4990 * lra-spills.c (assign_spill_hard_regs): Likewise.
4991 * postreload.c (reload_combine): Likewise.
4992 * reginfo.c (init_reg_sets_1): Likewise.
4993 * regrename.c (merge_overlapping_regs, find_rename_reg)
4994 (merge_chains): Likewise.
4995 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4996 (find_reload_regs, finish_spills, choose_reload_regs_init)
4997 (emit_reload_insns): Likewise.
4998 * reorg.c (redundant_insn): Likewise.
4999 * resource.c (find_dead_or_set_registers, mark_set_resources)
5000 (mark_target_live_regs): Likewise.
5001 * rtlanal.c (find_all_hard_reg_sets): Likewise.
5002 * sched-deps.c (sched_analyze_insn): Likewise.
5003 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5004 (find_best_reg_for_expr): Likewise.
5005 * shrink-wrap.c (try_shrink_wrapping): Likewise.
5006
5007 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5008
5009 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
5010 (HARD_REG_SET::operator&): Likewise.
5011 (AND_HARD_REG_SET): Delete.
5012 * caller-save.c (setup_save_areas): Use "&" instead of
5013 AND_HARD_REG_SET.
5014 (save_call_clobbered_regs): Likewise.
5015 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5016 * config/m32c/m32c.c (reduce_class): Likewise.
5017 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5018 * final.c (get_call_reg_set_usage): Likewise.
5019 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
5020 (setup_left_conflict_sizes_p): Likewise.
5021 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5022 (ira_build_conflicts): Likewise.
5023 * ira-costs.c (restrict_cost_classes): Likewise.
5024 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
5025 (setup_reg_class_relations): Likewise.
5026 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
5027 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
5028 * resource.c (find_dead_or_set_registers): Likewise.
5029 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5030
5031 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5032
5033 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
5034 (COMPL_HARD_REG_SET): Delete.
5035 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
5036 of COMPL_HARD_REG_SET.
5037 (try_rename_operands): Likewise.
5038 * config/sh/sh.c (push_regs): Likewise.
5039 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5040 * lra-constraints.c (contains_reg_p): Likewise.
5041 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
5042
5043 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5044
5045 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
5046 * caller-save.c (save_call_clobbered_regs): Use assignment instead
5047 of COPY_HARD_REG_SET.
5048 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
5049 (epiphany_conditional_register_usage): Likewise.
5050 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5051 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5052 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
5053 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
5054 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
5055 * config/mips/mips.c (mips_class_max_nregs): Likewise.
5056 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
5057 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
5058 * config/sh/sh.c (output_stack_adjust): Likewise.
5059 * final.c (collect_fn_hard_reg_usage): Likewise.
5060 (get_call_reg_set_usage): Likewise.
5061 * ira-build.c (ira_create_object, remove_low_level_allocnos)
5062 (ira_flattening): Likewise.
5063 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
5064 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
5065 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
5066 (ira_reassign_pseudos): Likewise.
5067 * ira-conflicts.c (print_allocno_conflicts): Likewise.
5068 (ira_build_conflicts): Likewise.
5069 * ira-costs.c (restrict_cost_classes): Likewise.
5070 (setup_regno_cost_classes_by_aclass): Likewise.
5071 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
5072 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
5073 (setup_stack_reg_pressure_class, setup_pressure_classes)
5074 (setup_allocno_and_important_classes, setup_class_translate_array)
5075 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
5076 (ira_setup_eliminable_regset): Likewise.
5077 * lra-assigns.c (find_hard_regno_for_1): Likewise.
5078 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
5079 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
5080 (process_alt_operands, inherit_in_ebb): Likewise.
5081 * lra-lives.c (process_bb_lives): Likewise.
5082 * lra-spills.c (assign_spill_hard_regs): Likewise.
5083 * lra.c (lra): Likewise.
5084 * mode-switching.c (new_seginfo): Likewise.
5085 * postreload.c (reload_combine): Likewise.
5086 * reg-stack.c (straighten_stack): Likewise.
5087 * reginfo.c (save_register_info, restore_register_info): Likewise.
5088 (init_reg_sets_1, record_subregs_of_mode): Likewise
5089 * regrename.c (create_new_chain, rename_chains): Likewise.
5090 * reload1.c (order_regs_for_reload, find_reg): Likewise.
5091 (find_reload_regs): Likewise.
5092 * resource.c (find_dead_or_set_registers): Likewise.
5093 (mark_target_live_regs): Likewise.
5094 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5095
5096 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5097
5098 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
5099 (note_pattern_stores): Declare.
5100 (note_stores): Take an rtx_insn *.
5101 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
5102 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
5103 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
5104 (note_stores): Take an rtx_insn * as argument and process
5105 CALL_INSN_FUNCTION_USAGE. Rename old function to...
5106 (note_pattern_stores): ...this.
5107 (find_first_parameter_load): Pass the insn rather than
5108 its pattern to note_stores.
5109 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
5110 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
5111 (insert_one_insn): Likewise.
5112 * combine.c (combine_instructions): Likewise.
5113 (likely_spilled_retval_p): Likewise.
5114 (try_combine): Use note_pattern_stores instead of note_stores.
5115 (record_dead_and_set_regs): Pass the insn rather than its pattern
5116 to note_stores.
5117 (reg_dead_at_p): Likewise.
5118 * config/bfin/bfin.c (workaround_speculation): Likewise.
5119 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
5120 rather than an rtx.
5121 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
5122 instead of note_stores.
5123 (frv_optimize_membar_local): Pass the insn rather than its pattern
5124 to note_stores.
5125 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
5126 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
5127 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
5128 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
5129 (mips_reorg_process_insns): Likewise.
5130 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
5131 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
5132 rather than rtxes.
5133 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
5134 its pattern to note_stores.
5135 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
5136 of note_stores.
5137 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
5138 the insn to note_stores.
5139 (prescan_insns_for_dce): Update call accordingly.
5140 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
5141 to note_stores.
5142 * df-problems.c (can_move_insns_across): Likewise.
5143 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
5144 * function.c (assign_parm_setup_reg): Likewise.
5145 * gcse-common.c (record_last_mem_set_info_common): Likewise.
5146 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
5147 (single_set_gcse): Likewise.
5148 * ira.c (validate_equiv_mem): Likewise.
5149 (update_equiv_regs): Use note_pattern_stores rather than note_stores
5150 for no_equiv.
5151 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
5152 pattern to note_stores.
5153 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5154 * loop-iv.c (simplify_using_initial_values): Likewise.
5155 * mode-switching.c (optimize_mode_switching): Likewise.
5156 * optabs.c (emit_libcall_block_1): Likewise.
5157 (expand_atomic_compare_and_swap): Likewise.
5158 * postreload-gcse.c (load_killed_in_block_p): Likewise.
5159 (record_opr_changes): Likewise. Remove explicit handling of
5160 CALL_INSN_FUNCTION_USAGE.
5161 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
5162 * regcprop.c (kill_clobbered_values): Likewise.
5163 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
5164 to note_stores.
5165 * regrename.c (build_def_use): Likewise.
5166 * reload1.c (reload): Use note_pattern_stores instead of note_stores
5167 for mark_not_eliminable.
5168 (reload_as_needed): Pass the insn rather than its pattern
5169 to note_stores.
5170 (emit_output_reload_insns): Likewise.
5171 * resource.c (mark_target_live_regs): Likewise.
5172 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5173 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5174 instead of note_stores.
5175 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5176 its pattern to note_stores.
5177 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5178 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5179
5180 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5181
5182 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5183 than a #define. Use a structure rather than an array as the
5184 fallback definition. Remove special cases for low array sizes.
5185 (const_hard_reg_set): New typedef.
5186 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5187 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5188 (hard_reg_set_empty_p): Likewise.
5189 (SET_HARD_REG_BIT): Use a function rather than a macro to
5190 handle the case in which HARD_REG_SET is a structure.
5191 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5192 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5193 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5194 (IOR_COMPL_HARD_REG_SET): Likewise.
5195 (hard_reg_set_iterator::pset): Constify the pointer target.
5196 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5197 of a "const HARD_REG_SET". Update the handling of non-integer
5198 HARD_REG_SETs.
5199 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5200 * reload.h: Likewise.
5201 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5202 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5203 of a "const HARD_REG_SET".
5204 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5205 (range_in_hard_reg_set_p): Likewise.
5206 * ira-costs.c (restrict_cost_classes): Likewise.
5207 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5208 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5209 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5210 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5211 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5212 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5213 take an unsigned int and open-code the HARD_REG_SET operations.
5214
5215 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
5216
5217 * Makefile.in (OBJS): Remove bt-load.o.
5218 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5219 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5220 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5221 document that the option no longer does anything.
5222 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5223 * target.def (branch_target_register_class): Delete.
5224 (branch_target_register_callee_saved): Likewise.
5225 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5226 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5227 * doc/tm.texi: Regenerate.
5228 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5229 (make_pass_branch_target_load_optimize2): Likewise.
5230 * passes.def (pass_branch_target_load_optimize1): Likewise.
5231 (pass_branch_target_load_optimize2): Likewise.
5232 * targhooks.h (default_branch_target_register_class): Likewise.
5233 * targhooks.c (default_branch_target_register_class): Likewise.
5234 * opt-suggestions.c (test_completion_valid_options): Remove
5235 -fbtr-bb-exclusive from the list of test options.
5236 * bt-load.c: Remove.
5237
5238 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
5239
5240 * match.pd: Add flag_unsafe_math_optimizations check
5241 before deciding on the widest type in a binary math operation.
5242
5243 2019-09-09 Martin Liska <mliska@suse.cz>
5244
5245 * config/i386/i386.opt: Update comment of removed
5246 options that are preserved only for backward
5247 compatibility.
5248
5249 2019-09-09 Jakub Jelinek <jakub@redhat.com>
5250
5251 PR target/87853
5252 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5253 instead of __v16qs.
5254
5255 PR target/91704
5256 * config/i386/avxintrin.h (__v32qs): New typedef.
5257 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5258 instead of __v32qi.
5259
5260 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5261
5262 * doc/invoke.texi (Option Summary): Cover eBPF.
5263 (eBPF Options): New section.
5264 * doc/extend.texi (BPF Built-in Functions): Likewise.
5265 (BPF Kernel Helpers): Likewise.
5266
5267 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5268
5269 * config.gcc: Support for bpf-*-* targets.
5270 * common/config/bpf/bpf-common.c: New file.
5271 * config/bpf/t-bpf: Likewise.
5272 * config/bpf/predicates.md: Likewise.
5273 * config/bpf/constraints.md: Likewise.
5274 * config/bpf/bpf.opt: Likewise.
5275 * config/bpf/bpf.md: Likewise.
5276 * config/bpf/bpf.h: Likewise.
5277 * config/bpf/bpf.c: Likewise.
5278 * config/bpf/bpf-protos.h: Likewise.
5279 * config/bpf/bpf-opts.h: Likewise.
5280 * config/bpf/bpf-helpers.h: Likewise.
5281 * config/bpf/bpf-helpers.def: Likewise.
5282
5283 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5284
5285 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5286 indirect_calls.
5287
5288 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
5289
5290 * opt-functions.awk (integer_range_info): Make sure values are in
5291 numeric context before operating with them.
5292
5293 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
5294
5295 * genemit.c (gen_split): Print the filename and line number where the
5296 splitter (or peephole2) was defined, to the dump file.
5297
5298 2019-09-07 Jakub Jelinek <jakub@redhat.com>
5299
5300 PR tree-optimization/91665
5301 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5302 incompatible with the type of PHI result.
5303
5304 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
5305
5306 PR target/91684
5307 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5308 gen_unaligned_storedi for 4-byte aligned addresses.
5309
5310 2019-09-06 Jim Wilson <jimw@sifive.com>
5311
5312 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5313 change.
5314
5315 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5316
5317 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5318
5319 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
5320
5321 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5322 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5323
5324 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
5325
5326 PR target/91654
5327 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5328 cost of SSE->integer and integer->SSE moves from 2 to 6.
5329 (core_cost): Ditto.
5330
5331 2019-09-06 Jakub Jelinek <jakub@redhat.com>
5332
5333 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5334 before testing TYPE_TRANSPARENT_AGGR.
5335 * calls.c (initialize_argument_information, load_register_parameters):
5336 Likewise.
5337
5338 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
5339
5340 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5341 high regs.
5342 (cmp_ior): Likewise.
5343
5344 2019-09-06 Martin Liska <mliska@suse.cz>
5345
5346 * doc/match-and-simplify.texi: Separate tuples with ;.
5347
5348 2019-09-06 Martin Liska <mliska@suse.cz>
5349
5350 PR c++/91125
5351 * Makefile.in: Remove tlink.o.
5352 * collect2.c (do_link): New function isolated
5353 from do_tlink.
5354 (main): Use.
5355 * collect2.h (do_tlink): Remove declaration of do_tlink.
5356 * doc/extend.texi: Remove documentation of -frepo.
5357 * doc/invoke.texi: Likewise.
5358 * doc/sourcebuild.texi: Remove cleanup-repo-files.
5359 * tlink.c: Remove.
5360
5361 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5362 Jim Wilson <jimw@sifive.com>
5363
5364 PR target/91635
5365 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5366 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5367 paradoxical_subreg_p (operands[0]).
5368 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5369 use as intermediate value.
5370
5371 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
5372
5373 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5374 (sync_compare_and_swap<mode>_insn): Likewise.
5375
5376 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
5377
5378 PR middle-end/91615
5379 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5380 without movmisalign optab.
5381
5382 2019-09-05 Jakub Jelinek <jakub@redhat.com>
5383
5384 PR middle-end/91001
5385 PR middle-end/91105
5386 PR middle-end/91106
5387 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5388 types, use type of their first field instead of type of
5389 args[i].tree_value.
5390
5391 2019-09-05 Richard Biener <rguenther@suse.de>
5392
5393 PR rtl-optimization/91656
5394 * postreload-gcse.c (record_last_mem_set_info): Revert addition
5395 of early out.
5396
5397 2019-09-05 Richard Biener <rguenther@suse.de>
5398
5399 PR middle-end/90501
5400 * tree-inline.c (declare_return_variable): Mark the return
5401 slot as addressable after building an address of it.
5402
5403 2019-09-05 Arnaud Charlet <charlet@adacore.com>
5404
5405 * doc/install.texi: Update and clarify requirements to build GNAT.
5406
5407 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
5408
5409 PR middle-end/91577
5410 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5411 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5412 call to be in memory.
5413 (pass_expand::execute): Call discover_nonconstant_array_refs before
5414 setting currently_expanding_to_rtl.
5415
5416 2019-09-04 Caroline Tice <cmtice@google.com>
5417
5418 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5419 specified together.
5420
5421 2019-09-04 Marek Polacek <polacek@redhat.com>
5422
5423 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5424
5425 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
5426
5427 PR target/32413
5428 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5429 for QI and HImode moves between SSE and general registers.
5430
5431 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5432
5433 PR c/78736
5434 * doc/invoke.texi: Document -Wenum-conversion.
5435
5436 2019-09-04 Richard Biener <rguenther@suse.de>
5437
5438 PR rtl-optimization/36262
5439 * postreload-gcse.c: Include intl.h and gcse.h.
5440 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5441 to avoid linear list walk.
5442 (record_last_mem_set_info): Gate off if not computing transparentness.
5443 (get_bb_avail_insn): If transparentness isn't computed give up
5444 early.
5445 (gcse_after_reload_main): Skip compute_transp and extended PRE
5446 if gcse_or_cprop_is_too_expensive says so.
5447
5448 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5449
5450 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5451 noinit section.
5452 (msp430_select_section): Handle decls with the "noinit" attribute with
5453 default_elf_select_section.
5454 Handle SECCAT_RODATA_MERGE_* section types with
5455 default_elf_select_section.
5456 Add comments about handling of unsupported section types.
5457 (msp430_section_type_flags): Remove handling of the noinit section.
5458
5459 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5460
5461 * config/msp430/msp430.c (msp430_attr): Remove warnings about
5462 conflicting msp430-specific attributes.
5463 (msp430_section_attr): Likewise.
5464 Add warnings about conflicts with generic "noinit" and "section"
5465 attributes.
5466 Fix grammar in -mlarge error message.
5467 (msp430_data_attr): Rename to msp430_persist_attr.
5468 Add warnings about conflicts with generic "noinit" and "section"
5469 attributes.
5470 Add warning for when variable is not initialized.
5471 Chain conditionals which prevent the attribute being added.
5472 (ATTR_EXCL): New helper.
5473 (attr_reent_exclusions): New exclusion table.
5474 (attr_naked_exclusions): Likewise.
5475 (attr_crit_exclusions): Likewise.
5476 (attr_lower_exclusions): Likewise.
5477 (attr_upper_exclusions): Likewise.
5478 (attr_either_exclusions): Likewise.
5479 (attr_persist_exclusions): Likewise.
5480 (msp430_attribute_table): Update with exclusion rules.
5481 (msp430_output_aligned_decl_common): Don't output common symbol if decl
5482 has a section.
5483
5484 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5485
5486 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5487 (msp430_handle_generic_attribute): New function.
5488 * doc/tm.texi: Regenerate.
5489 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5490 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5491 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5492 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5493
5494 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
5495
5496 PR tree-optimization/91504
5497 * match.pd: Add ((~a & b) ^a) --> (a | b).
5498
5499 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5500
5501 PR target/91604
5502 * config/i386/i386-expand.c (split_double_mode): If there is more than
5503 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5504 already split matching MEM operand instead of calling adjust_address
5505 again.
5506
5507 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
5508
5509 * config.gcc: Obsolete spu target. Remove references to spu.
5510 * configure.ac: Remove references to spu.
5511 * configure: Regenerate.
5512 * config/spu/: Remove directory.
5513 * common/config/spu/: Remove directory.
5514
5515 * doc/extend.texi: Remove references to spu.
5516 * doc/invoke.texi: Likewise.
5517 * doc/md.texi: Likewise.
5518 * doc/sourcebuild.texi: Likewise.
5519
5520 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5521
5522 PR middle-end/91603
5523 PR middle-end/91612
5524 PR middle-end/91613
5525 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5526 and SSA_NAME referring to CONSTANT_P correctly.
5527
5528 2019-09-03 Richard Biener <rguenther@suse.de>
5529
5530 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5531 (vn_nary_op_insert): Likewise.
5532 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5533 (vn_nary_op_lookup): Likewise.
5534 (vn_nary_op_insert): Likewise.
5535
5536 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
5537
5538 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5539 (*op0, 1) instead of XEXP (*op1, 0).
5540
5541 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5542
5543 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5544 (aarch64_fjcvtzs): New define_insn.
5545 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5546 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5547 Add AARCH64_JSCVT.
5548 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5549 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5550 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5551 __ARM_FEATURE_JCVT where appropriate.
5552 * config/aarch64/arm_acle.h (__jcvt): Define.
5553
5554 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5555
5556 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5557 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5558 (aarch64_<frintnzs_op><mode>): New define_insn.
5559 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5560 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5561 __ARM_FEATURE_FRINT when appropriate.
5562 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5563 frint32x, frint64z, frint64x.
5564 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5565 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5566 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5567 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5568 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5569 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5570 * config/aarch64/iterators.md (VSFDF): Define.
5571 (FRINTNZX): Likewise.
5572 (frintnzs_op): Likewise.
5573
5574 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
5575
5576 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5577 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5578 Cortex-A34.
5579 * config/aarch64/aarch64-tune.md: Regenerated.
5580 * doc/invoke.texi: Document the new processors.
5581
5582 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5583
5584 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5585 string.
5586 (ssbs): Likewise.
5587 (sve2): Likewise.
5588 (sve2-sm4): Likewise.
5589 (sveaes): Likewise.
5590 (svesha3): Likewise.
5591 (svebitperm): Likewise.
5592
5593 2019-09-03 Jakub Jelinek <jakub@redhat.com>
5594 Richard Biener <rguenther@suse.de>
5595
5596 PR tree-optimization/91597
5597 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5598 BIT_AND_EXPR optimization for pointers, even if both operand
5599 ranges don't include NULL, the result can be NULL.
5600
5601 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
5602
5603 PR middle-end/91605
5604 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5605 (non_mem_decl_p): ...this.
5606 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5607 (expand_assignment): Call mem_ref_referes_to_non_mem_p
5608 unconditionally as before.
5609
5610 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5611
5612 PR target/91323
5613 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5614 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
5615 * tree.def (LTGT_EXPR): Likewise.
5616 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5617
5618 2019-09-02 Jakub Jelinek <jakub@redhat.com>
5619
5620 PR go/91617
5621 * fold-const.c (range_check_type): For enumeral and boolean
5622 type, pass 1 to type_for_size langhook instead of
5623 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
5624 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5625 (build_range_check): Don't call unsigned_type_for for pointer types.
5626 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5627 range_check_type result.
5628
5629 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
5630
5631 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5632 (replace_ref): Do not replace a chain of only two candidates which are
5633 valid memory references.
5634
5635 2019-09-02 Martin Liska <mliska@suse.cz>
5636
5637 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5638 Bail out when we'll end up with the same number of clusters as
5639 at the beginning.
5640 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5641 (jump_table_cluster::can_be_handled): Remove the guard
5642 as it's already handled in ::is_enabled. Allocate output
5643 after early bail out.
5644
5645 2019-09-02 Martin Liska <mliska@suse.cz>
5646
5647 PR gcov-profile/91601
5648 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5649 (path_contains_zero_or_negative_cycle_arc): ... this and handle
5650 also negative edges.
5651 (circuit): Handle also negative edges as they can happen
5652 in some situations.
5653
5654 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
5655
5656 PR target/91472
5657 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5658 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5659 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5660
5661 2019-09-01 Jakub Jelinek <jakub@redhat.com>
5662
5663 PR middle-end/91623
5664 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5665 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5666 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5667 zero vector.
5668
5669 PR lto/91572
5670 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5671 GIMPLE_ASM TREE_LIST operands.
5672
5673 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
5674
5675 * doc/generic.texi (Unary and Binary Expressions): Mark up
5676 an instance of TYPE_MIN.
5677
5678 2019-08-31 Stafford Horne <shorne@gmail.com>
5679
5680 * config/or1k/constraints.md (t): New constraint.
5681 * config/or1k/or1k.h (GOT_REGS): New register class.
5682 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5683
5684 2019-08-30 Jim Wilson <jimw@sifive.com>
5685
5686 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5687 and -fpic and -mplt then disable -msave-restore and warn.
5688
5689 2019-08-30 Martin Sebor <msebor@redhat.com>
5690
5691 PR middle-end/91599
5692 * tree-ssa-strlen.c (handle_store): Use a fallback location if
5693 the statement doesn't have one.
5694 * gimple-pretty-print.c (percent_G_format): Same.
5695
5696 PR middle-end/91584
5697 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5698 before using them to validate MEM_REF offset.
5699
5700 2019-08-30 Marek Polacek <polacek@redhat.com>
5701
5702 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5703
5704 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5705
5706 * config/arm/arm.md (unaligned_loaddi,
5707 unaligned_storedi): New unspec insn patterns.
5708 * config/arm/neon.md (unaligned_storev8qi): Likewise.
5709 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5710 and unaligned_storedi for 4-byte aligned memory.
5711 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5712 4-byte aligned memory.
5713
5714 2019-08-30 Martin Jambor <mjambor@suse.cz>
5715
5716 tree-optimization/91579
5717 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5718 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5719 appropriate.
5720 (arg_needs_copy_p): Removed.
5721 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5722 arg_needs_copy_p.
5723 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
5724
5725 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5726
5727 * config/i386/i386-features.c
5728 (general_scalar_chain::compute_convert_gain):
5729 Correct cost for double-word shifts.
5730 (general_scalar_to_vector_candidate_p): Reject count operands
5731 greater or equal to mode bitsize.
5732
5733 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
5734
5735 * config/i386/i386.c (inline_secondary_memory_needed): Return true
5736 for moves between SSE and non-general registers and between
5737 mask and non-general registers.
5738 (ix86_register_move_cost): Remove stalled comment.
5739
5740 2019-08-29 Richard Biener <rguenther@suse.de>
5741
5742 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5743 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5744
5745 2019-08-29 Richard Biener <rguenther@suse.de>
5746
5747 PR bootstrap/91580
5748 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5749 Do not emit scalar copies for debug-insns, instead replace
5750 their uses with the reg copy used in the chain or reset them
5751 if there is a reaching definition outside of the chain as well.
5752
5753 2019-08-29 Jakub Jelinek <jakub@redhat.com>
5754
5755 PR target/91560
5756 * config/i386/i386-expand.c (expand_vec_perm_movs,
5757 expand_vec_perm_blend, expand_vec_perm_vpermil,
5758 expand_vec_perm_pshufb, expand_vec_perm_1,
5759 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5760 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5761 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5762 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5763 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5764 comments - replace ix86_expand_vec_perm_builtin_1 with
5765 ix86_expand_vec_perm_const_1.
5766 (expand_vec_perm2_vperm2f128_vblend): New function.
5767 (ix86_expand_vec_perm_const_1): New forward declaration. Call
5768 expand_vec_perm2_vperm2f128_vblend as last resort.
5769 (canonicalize_perm): Formatting fix.
5770
5771 PR tree-optimization/91351
5772 * tree-cfg.c (generate_range_test): Use range_check_type instead of
5773 unsigned_type_for.
5774 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5775 range_check_type returns NULL.
5776 * tree-switch-conversion.c (switch_conversion::build_one_array):
5777 Use range_check_type instead of unsigned_type_for, don't perform
5778 linear opt if it returns NULL.
5779 (bit_test_cluster::find_bit_tests): Formatting fix.
5780 (bit_test_cluster::emit): Use range_check_type instead of
5781 unsigned_type_for.
5782 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5783 returns NULL.
5784
5785 2019-08-29 Richard Biener <rguenther@suse.de>
5786
5787 PR tree-optimization/91568
5788 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5789 (vect_update_max_nunits): Add overload for poly_uint64.
5790 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5791 (vect_build_slp_tree): Record max_nunits into the subtree
5792 and merge it upwards.
5793 (vect_print_slp_tree): Print max_nunits.
5794
5795 2019-08-28 Marek Polacek <polacek@redhat.com>
5796
5797 Implement P1152R4: Deprecating some uses of volatile.
5798 PR c++/91361
5799 * doc/invoke.texi: Document -Wvolatile.
5800
5801 2019-08-28 Marek Polacek <polacek@redhat.com>
5802
5803 PR c++/91360 - Implement C++20 P1143R2: constinit.
5804 * doc/invoke.texi: Document -Wc++20-compat.
5805
5806 2019-08-28 Martin Sebor <msebor@redhat.com>
5807
5808 PR tree-optimization/91457
5809 * builtins.c (component_size): New function.
5810 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5811 * builtins.h (compute_objsize): Add argument.
5812 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5813 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5814 (vrp_prop::check_mem_ref): Same.
5815 (vrp_prop::search_for_addr_array): Set no-warning bit.
5816 (check_array_bounds): Same.
5817
5818 2019-08-28 Martin Sebor <msebor@redhat.com>
5819
5820 PR driver/80545
5821 * opts-common.c (option_enabled): Correct checking for language
5822 options.
5823
5824 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
5825
5826 * config/i386/i386.c (ix86_register_move_cost): Do not
5827 limit the cost of moves to/from XMM register to minimum 8.
5828
5829 2019-08-28 Martin Jambor <mjambor@suse.cz>
5830
5831 PR ipa/91468
5832 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5833 checking assert a normal assert to test it really is redundant.
5834 * ipa-prop.c (compute_complex_assign_jump_func): Removed
5835 redundant test.
5836 (update_jump_functions_after_inlining): Removed combining unary
5837 arithmetic operations with an ancestor jump function.
5838 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5839 instead of t.
5840
5841 2019-08-28 Richard Biener <rguenther@suse.de>
5842
5843 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5844 add the MD problem.
5845
5846 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
5847 Richard Biener <rguenther@suse.de>
5848
5849 * expr.c (expand_assignment): Handle misaligned DECLs.
5850 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5851 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5852 too.
5853 (assign_parm_setup_stack): Allocate properly aligned stack slots.
5854 * varasm.c (build_constant_desc): Align constants of misaligned types.
5855 * config/arm/predicates.md (aligned_operand): New predicate.
5856 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5857 aligned_operand to check restrictions on memory addresses.
5858 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5859 * config/arm/vec-common.md (mov<VALL>): Likewise.
5860
5861 2019-08-28 Jakub Jelinek <jakub@redhat.com>
5862
5863 PR libgomp/91530
5864 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5865 V_128 iterator instead of VI_128.
5866
5867 2019-08-28 Martin Liska <mliska@suse.cz>
5868
5869 PR tree-optimization/90970
5870 * builtins.c (check_access): Remove assignment to maxread
5871 as it hasn't been used since when it was introduced in r255755.
5872
5873 2019-08-27 Martin Sebor <msebor@redhat.com>
5874
5875 PR tree-optimization/91567
5876 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5877 of unknown strings.
5878 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5879 to PTRDIFF_MAX - 2.
5880
5881 2019-08-27 Jeff Law <law@redhat.com>
5882
5883 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5884 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5885
5886 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
5887
5888 PR target/91528
5889 * config/i386/i386-features.c (convert_scalars_to_vector):
5890 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5891 crtl->stack_realign_processed. Update crtl->drap_reg by calling
5892 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
5893 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5894
5895 2019-08-27 Richard Biener <rguenther@suse.de>
5896
5897 * config/i386/i386-features.h
5898 (general_scalar_chain::~general_scalar_chain): Add.
5899 (general_scalar_chain::insns_conv): New bitmap.
5900 (general_scalar_chain::n_sse_to_integer): New.
5901 (general_scalar_chain::n_integer_to_sse): Likewise.
5902 (general_scalar_chain::make_vector_copies): Adjust signature.
5903 * config/i386/i386-features.c
5904 (general_scalar_chain::general_scalar_chain): Outline,
5905 initialize new members.
5906 (general_scalar_chain::~general_scalar_chain): New.
5907 (general_scalar_chain::mark_dual_mode_def): Record insns
5908 we need to insert conversions at and count them.
5909 (general_scalar_chain::compute_convert_gain): Account
5910 for conversion instructions at chain boundary.
5911 (general_scalar_chain::make_vector_copies): Generate a single
5912 copy for a def by a specific insn.
5913 (general_scalar_chain::convert_registers): First populate
5914 defs_map, then make copies at out-of chain insns.
5915
5916 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
5917
5918 * config/arm/arm.md (stack_protect_set_insn): Add security-related
5919 comment.
5920 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5921
5922 2019-08-27 Martin Liska <mliska@suse.cz>
5923
5924 * cgraph.c (cgraph_node::remove): Remove dead assignment before
5925 loop.
5926 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5927 Enclose in anonymous namespace.
5928 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5929 hard_register initialization in braces.
5930 * tree-vrp.h (value_range_base::supports_type_p): Return false
5931 for function with boolean return type.
5932
5933 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
5934
5935 * config/i386/i386.c (emit_i387_cw_initialization)
5936 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5937
5938 2019-08-26 Martin Sebor <msebor@redhat.com>
5939
5940 PR c++/83431
5941 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5942 (sprintf_dom_walker): Remove class.
5943 (get_int_range): Make argument const.
5944 (directive::fmtfunc, directive::set_precision): Same.
5945 (format_none): Same.
5946 (build_intmax_type_nodes): Same.
5947 (adjust_range_for_overflow): Same.
5948 (format_floating): Same.
5949 (format_character): Same.
5950 (format_string): Same.
5951 (format_plain): Same.
5952 (get_int_range): Cast away constness.
5953 (format_integer): Same.
5954 (get_string_length): Call get_range_strlen_dynamic. Handle
5955 null lendata.maxbound.
5956 (should_warn_p): Adjust argument scope qualifier.
5957 (maybe_warn): Same.
5958 (format_directive): Same.
5959 (parse_directive): Same.
5960 (is_call_safe): Same.
5961 (try_substitute_return_value): Same.
5962 (sprintf_dom_walker::handle_printf_call): Rename...
5963 (handle_printf_call): ...to this. Initialize target to host charmap
5964 here instead of in pass_sprintf_length::execute.
5965 (struct call_info): Make global.
5966 (sprintf_dom_walker::compute_format_length): Make global.
5967 (sprintf_dom_walker::handle_gimple_call): Same.
5968 * passes.def (pass_sprintf_length): Replace with pass_strlen.
5969 * print-rtl.c (print_pattern): Reduce the number of spaces to
5970 avoid -Wformat-truncation.
5971 * tree-pass.h (make_pass_warn_printf): New function.
5972 * tree-ssa-strlen.c (strlen_optimize): New variable.
5973 (get_string_length): Add comments.
5974 (get_range_strlen_dynamic): New function.
5975 (check_and_optimize_call): New function.
5976 (handle_integral_assign): New function.
5977 (strlen_check_and_optimize_stmt): Factor code out into
5978 strlen_check_and_optimize_call and handle_integral_assign.
5979 (strlen_dom_walker::evrp): New member.
5980 (strlen_dom_walker::before_dom_children): Use evrp member.
5981 (strlen_dom_walker::after_dom_children): Use evrp member.
5982 (printf_strlen_execute): New function.
5983 (pass_strlen::gate): Update to handle printf calls.
5984 (dump_strlen_info): New function.
5985 (pass_data_warn_printf): New variable.
5986 (pass_warn_printf): New class.
5987 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5988 (handle_printf_call): Same.
5989 * tree-vrp.c (value_range_base::type): Adjust assertion.
5990 * vr-values.c (vr_values::update_value_range): Use type of the first
5991 argument rather than the second.
5992
5993 2019-08-26 Richard Biener <rguenther@suse.de>
5994
5995 * config/i386/i386-features.c (general_remove_non_convertible_regs):
5996 Remove.
5997 (convert_scalars_to_vector): Do not call it.
5998
5999 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6000 Uros Bizjak <ubizjak@gmail.com>
6001
6002 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
6003 CASE_MATHFN_FLOATN for roundeven.
6004 * config/i386/i386.c (ix86_i387_mode_needed): Add case
6005 I387_ROUNDEVEN.
6006 (ix86_mode_needed): Likewise.
6007 (ix86_mode_after): Likewise.
6008 (ix86_mode_entry): Likewise.
6009 (ix86_mode_exit): Likewise.
6010 (ix86_emit_mode_set): Likewise.
6011 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
6012 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
6013 (ix86_entity): Add I387_ROUNDEVEN.
6014 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
6015 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
6016 (define_int_iterator): Likewise.
6017 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
6018 (define_constant): Define ROUND_ROUNDEVEN mode.
6019 (define_attr): Add roundeven mode for i387_cw.
6020 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
6021 * internal-fn.def (ROUNDEVEN): New builtin function.
6022 * optabs.def (roundeven_optab): New optab.
6023
6024 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
6025
6026 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
6027 for ROUNDEVEN.
6028 * builtins.def: Added function definitions for roundeven function
6029 variants.
6030 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
6031 function call. Adjust condition for floor, ceil, trunc and round.
6032 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
6033 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
6034 (integer_valued_real_call_p): Added case for roundeven function.
6035 * real.c (is_even): New function. Returns true if real number is even,
6036 otherwise returns false.
6037 (is_halfway_below): New function. Returns true if real number is
6038 halfway between two integers, else return false.
6039 (real_roundeven): New function. Round real number to nearest integer,
6040 rounding halfway cases towards even.
6041 * real.h (real_value): Added descriptive comments. Added function
6042 declaration for roundeven function.
6043 * doc/extend.texi (Other Builtins): List roundeven variants among
6044 functions which can be handled as builtins.
6045
6046 2019-08-26 Richard Biener <rguenther@suse.de>
6047
6048 PR target/91522
6049 PR target/91527
6050 * config/i386/i386-features.h (general_scalar_chain::defs_map):
6051 New member.
6052 (general_scalar_chain::replace_with_subreg): Remove.
6053 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6054 (general_scalar_chain::convert_reg): Adjust signature.
6055 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
6056 iterate over all defs of a reg.
6057 (general_scalar_chain::replace_with_subreg): Remove.
6058 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
6059 (general_scalar_chain::make_vector_copies): Populate defs_map,
6060 place copy only after defs that are used as vectors in the chain.
6061 (general_scalar_chain::convert_reg): Emit a copy for a specific
6062 def in a specific instruction.
6063 (general_scalar_chain::convert_op): All reg uses are converted here.
6064 (general_scalar_chain::convert_insn): Emit copies for scalar
6065 uses of defs here. Replace uses with the copies we created.
6066 Replace and convert the def. Adjust REG_DEAD notes, remove
6067 REG_EQUIV/EQUAL notes.
6068 (general_scalar_chain::convert_registers): Only handle copies
6069 into the chain here.
6070
6071 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6072
6073 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
6074
6075 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
6076
6077 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
6078 Add nop_convert case.
6079 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6080 Fold all statements if requested.
6081 * tree-ssa-propagate.h (class substitute_and_fold_engine):
6082 Allow to fold all statements.
6083 * tree-vrp.c (class vrp_folder):
6084 Let substitute_and_fold_engine fold all statements.
6085
6086 2019-08-26 Richard Biener <rguenther@suse.de>
6087
6088 PR tree-optimization/91526
6089 * passes.def: Note that after late FRE we do TODO_update_address_taken.
6090 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
6091 TODO_update_address_taken.
6092
6093 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
6094
6095 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
6096 __STDC_HOSTED__.
6097
6098 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6099
6100 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
6101 machine mode for unspec_volatile operand.
6102
6103 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
6104
6105 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
6106 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
6107 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
6108 (prefer_neon_for_64bits): Remove.
6109 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
6110 (tune_params): Remove PREF_NEON_64_FALSE uses.
6111 (arm_option_override): Remove prefer_neon selection code.
6112 (arm_print_tune_info): Remove prefer_neon_for_64bits.
6113 * gcc/config/arm/arm-protos.h (tune_params): Remove
6114 prefer_neon_for_64bits.
6115 (prefer_neon_for_64bits): Remove.
6116
6117 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
6118
6119 PR pch/61250
6120 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
6121 and issue any diagnostics needed before collecting the pre-PCH
6122 state.
6123
6124 2019-08-23 Jakub Jelinek <jakub@redhat.com>
6125
6126 PR middle-end/91283
6127 * common.opt (fexcess-precision=): Add Optimization flag. Use
6128 flag_excess_precision variable instead of
6129 flag_excess_precision_cmdline.
6130 * flags.h (class target_flag_state): Remove x_flag_excess_precision
6131 member.
6132 (flag_excess_precision): Don't define.
6133 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
6134 flag_excess_precision_cmdline. Remove comment.
6135 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
6136 and x_flag_excess_precision instead of
6137 frontend_set_flag_excess_precision_cmdline and
6138 x_flag_excess_precision_cmdline.
6139 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
6140 x_flag_excess_precision_cmdline.
6141 * toplev.c (init_excess_precision): Remove.
6142 (lang_dependent_init_target): Don't call it.
6143
6144 2019-08-23 Martin Liska <mliska@suse.cz>
6145
6146 * lto-wrapper.c (run_gcc): When setting jobserver
6147 set also parallel to 1. This was done so before r273908.
6148
6149 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
6150
6151 * config/arm/arm-cpus.in (cortex-m35p): New entry.
6152 (cortex-a76ae): Likewise.
6153 (cortex-a77): Likewise
6154 * config/arm/arm-tables.opt: Regenerate.
6155 * config/arm/arm-tune.md: Likewise.
6156 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
6157 cortex-a77 CPU options.
6158
6159 2019-08-23 Martin Liska <mliska@suse.cz>
6160
6161 * profile.c (instrument_values): Do not set
6162 0 as last argument.
6163 * tree-profile.c (gimple_gen_interval_profiler): Remove
6164 last argument.
6165 (gimple_gen_pow2_profiler): Likewise.
6166 (gimple_gen_topn_values_profiler): Likewise.
6167 (gimple_gen_ic_profiler): Likewise.
6168 (gimple_gen_time_profiler): Likewise.
6169 (gimple_gen_average_profiler): Likewise.
6170 (gimple_gen_ior_profiler): Likewise.
6171 * value-prof.c (dump_histogram_value): Use default
6172 in switch statement instead of HIST_TYPE_MAX.
6173 (stream_in_histogram_value): Likewise.
6174 (gimple_duplicate_stmt_histograms): Do not
6175 use NULL for implicitly set arguments.
6176 (gimple_divmod_values_to_profile): Do not use
6177 reserve+quick_push.
6178 (gimple_indirect_call_to_profile): Likewise.
6179 (gimple_find_values_to_profile): Use implicit
6180 function call arguments.
6181 * value-prof.h (gimple_alloc_histogram_value):
6182 Set default values.
6183 (gimple_gen_interval_profiler): Remove last argument.
6184 (gimple_gen_pow2_profiler): Likewise.
6185 (gimple_gen_topn_values_profiler): Likewise.
6186 (gimple_gen_ic_profiler): Likewise.
6187 (gimple_gen_time_profiler): Likewise.
6188 (gimple_gen_average_profiler): Likewise.
6189 (gimple_gen_ior_profiler): Likewise.
6190
6191 2019-08-22 Martin Sebor <msebor@redhat.com>
6192
6193 PR middle-end/91490
6194 * builtins.c (c_strlen): Rename argument and introduce new local.
6195 Set no-warning bit on original argument.
6196 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6197 Fold empty and zero constructors into empty strings.
6198 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6199 for missing initializers.
6200 * tree.c (build_string_literal): Handle optional argument.
6201 * tree.h (build_string_literal): Add defaulted argument.
6202 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6203 no-warning bit on original expression.
6204
6205 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6206
6207 PR target/91481
6208 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6209 and UNSPEC_DARN_RAW.
6210 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6211 UNSPECV_DARN_RAW.
6212 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6213 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6214 (darn): Use an unspec_volatile, and UNSPECV_DARN.
6215
6216 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
6217
6218 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6219 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6220 * config/rs6000/rs6000.md (unspec): ... here.
6221 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6222 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6223 cmpeqb, *cmpeqb_internal): Delete, move to...
6224 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6225 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6226 cmpeqb, *cmpeqb_internal): ... here.
6227
6228 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6229
6230 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6231 intrinsics if __ARM_FP.
6232 Use __ARM_FEATURE_CRC32 ifdef guard.
6233
6234 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6235
6236 * config/arm/arm.md (neon_for_64bits): Remove.
6237 (avoid_neon_for_64bits): Remove.
6238 (arm_adddi3): Always split early.
6239 (arm_subdi3): Always split early.
6240 (negdi2): Remove Neon expansion.
6241 (split zero_extend): Split before reload.
6242 (split sign_extend): Split before reload.
6243
6244 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6245
6246 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6247 (qhs_extenddi_cstr): Likewise.
6248 * config/arm/arm.md (ashldi3): Always expand early.
6249 (ashlsi3): Likewise.
6250 (ashrsi3): Likewise.
6251 (zero_extend<mode>di2): Remove Neon variants.
6252 (extend<mode>di2): Likewise.
6253 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6254 (signed_shift_di3_neon): Likewise.
6255 (unsigned_shift_di3_neon): Likewise.
6256 (ashrdi3_neon_imm_noclobber): Likewise.
6257 (lshrdi3_neon_imm_noclobber): Likewise.
6258 (<shift>di3_neon): Likewise.
6259 (split extend): Remove DI extend split patterns.
6260
6261 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
6262
6263 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6264 (split not): Add DImode not splitter.
6265 (anddi3): Remove pattern.
6266 (anddi3_insn): Likewise.
6267 (anddi_zesidi_di): Likewise.
6268 (anddi_sesdi_di): Likewise.
6269 (anddi_notdi_di): Likewise.
6270 (anddi_notzesidi_di): Likewise.
6271 (anddi_notsesidi_di): Likewise.
6272 (iordi3): Likewise.
6273 (iordi3_insn): Likewise.
6274 (iordi_zesidi_di): Likewise.
6275 (iordi_sesidi_di): Likewise.
6276 (xordi3): Likewise.
6277 (xordi3_insn): Likewise.
6278 (xordi_sesidi_di): Likewise.
6279 (xordi_zesidi_di): Likewise.
6280 (one_cmpldi2): Likewise.
6281 (one_cmpldi2_insn): Likewise.
6282 * config/arm/constraints.md: Remove De, Df, Dg constraints.
6283 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6284 alternative.
6285 (iwmmxt_xordi3): Likewise.
6286 (iwmmxt_anddi3): Likewise.
6287 * config/arm/neon.md (orndi3_neon): Remove pattern.
6288 (anddi_notdi_di): Likewise.
6289 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6290 (arm_iordi_operand_neon): Likewise.
6291 (arm_xordi_operand_neon): Likewise.
6292 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6293 (iordi_notzesidi_di): Likewise.
6294 (iordi_notdi_zesidi): Likewise.
6295 (iordi_notsesidi_di): Likewise.
6296
6297 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
6298
6299 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6300 insn.
6301 (iorsi3_compare0_scratch): Likewise.
6302
6303 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
6304
6305 * config/aarch64/aarch64-simd-builtins.def:
6306 (ld1x4): New.
6307 (st1x4): Likewise.
6308 * config/aarch64/aarch64-simd.md:
6309 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6310 (aarch64_st1x4<VALLDIF:mode>): Likewise.
6311 (aarch64_ld1_x4_<mode>): Likewise.
6312 (aarch64_st1_x4_<mode>): Likewise.
6313 * config/aarch64/arm_neon.h:
6314 (vld1_s8_x4): New function.
6315 (vld1q_s8_x4): Likewise.
6316 (vld1_s16_x4): Likewise.
6317 (vld1q_s16_x4): Likewise.
6318 (vld1_s32_x4): Likewise.
6319 (vld1q_s32_x4): Likewise.
6320 (vld1_u8_x4): Likewise.
6321 (vld1q_u8_x4): Likewise.
6322 (vld1_u16_x4): Likewise.
6323 (vld1q_u16_x4): Likewise.
6324 (vld1_u32_x4): Likewise.
6325 (vld1q_u32_x4): Likewise.
6326 (vld1_f16_x4): Likewise.
6327 (vld1q_f16_x4): Likewise.
6328 (vld1_f32_x4): Likewise.
6329 (vld1q_f32_x4): Likewise.
6330 (vld1_p8_x4): Likewise.
6331 (vld1q_p8_x4): Likewise.
6332 (vld1_p16_x4): Likewise.
6333 (vld1q_p16_x4): Likewise.
6334 (vld1_s64_x4): Likewise.
6335 (vld1_u64_x4): Likewise.
6336 (vld1_p64_x4): Likewise.
6337 (vld1q_s64_x4): Likewise.
6338 (vld1q_u64_x4): Likewise.
6339 (vld1q_p64_x4): Likewise.
6340 (vld1_f64_x4): Likewise.
6341 (vld1q_f64_x4): Likewise.
6342 (vst1_s8_x4): Likewise.
6343 (vst1q_s8_x4): Likewise.
6344 (vst1_s16_x4): Likewise.
6345 (vst1q_s16_x4): Likewise.
6346 (vst1_s32_x4): Likewise.
6347 (vst1q_s32_x4): Likewise.
6348 (vst1_u8_x4): Likewise.
6349 (vst1q_u8_x4): Likewise.
6350 (vst1_u16_x4): Likewise.
6351 (vst1q_u16_x4): Likewise.
6352 (vst1_u32_x4): Likewise.
6353 (vst1q_u32_x4): Likewise.
6354 (vst1_f16_x4): Likewise.
6355 (vst1q_f16_x4): Likewise.
6356 (vst1_f32_x4): Likewise.
6357 (vst1q_f32_x4): Likewise.
6358 (vst1_p8_x4): Likewise.
6359 (vst1q_p8_x4): Likewise.
6360 (vst1_p16_x4): Likewise.
6361 (vst1q_p16_x4): Likewise.
6362 (vst1_s64_x4): Likewise.
6363 (vst1_u64_x4): Likewise.
6364 (vst1_p64_x4): Likewise.
6365 (vst1q_s64_x4): Likewise.
6366 (vst1q_u64_x4): Likewise.
6367 (vst1q_p64_x4): Likewise.
6368 (vst1_f64_x4): Likewise.
6369 (vst1q_f64_x4): Likewise.
6370
6371 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6372
6373 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6374
6375 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6376 Richard Sandiford <richard.sandiford@arm.com>
6377
6378 PR target/88839
6379 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6380 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6381
6382 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6383
6384 PR target/90724
6385 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6386 in reg if it fails aarch64_plus_operand predicate.
6387
6388 2019-08-21 Richard Biener <rguenther@suse.de>
6389
6390 PR tree-optimization/91482
6391 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6392 BUILT_IN_ASSUME_ALIGNED calls.
6393
6394 2019-08-21 Richard Biener <rguenther@suse.de>
6395
6396 PR target/91498
6397 PR target/91503
6398 * config/i386/i386-features.c
6399 (general_scalar_chain::make_vector_copies): Copy stack temporary
6400 rtx when using it multiple times.
6401 (general_scalar_chain::convert_reg): Likewise.
6402
6403 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6404
6405 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6406
6407 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
6408
6409 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6410 catch more redundant zero initialization cases.
6411 (dse_dom_walker::dse_optimize_stmt): Likewise.
6412
6413 2019-08-20 Richard Biener <rguenther@suse.de>
6414
6415 PR lto/91307
6416 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6417 by collect2 when targetm.have_ctors_dtors which avoids dragging
6418 in temporary filenames from LTO input objects.
6419
6420 2019-08-20 Richard Biener <rguenther@suse.de>
6421
6422 PR tree-optimization/37242
6423 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6424 to (T)a + (T)b if we know that a + b does not overflow.
6425
6426 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
6427
6428 PR rtl-optimization/91347
6429 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6430 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6431
6432 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6433
6434 * calls.h (function_arg_info): Add a pass_by_reference field,
6435 defaulting to false.
6436 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6437 when applying pass-by-reference semantics.
6438 (initialize_argument_information): Likewise.
6439 (emit_library_call_value_1): Likewise.
6440 * function.c (assign_parm_data_one): Remove passed_pointer field.
6441 (assign_parm_find_data_types): Don't set it.
6442 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6443 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6444 arg.pass_by_reference instead of passed_pointer.
6445
6446 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6447
6448 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6449 into a single function_arg_info, updating its fields when we
6450 apply pass-by-reference and promotion semantics. Use the
6451 function_arg_info to track the mode rather than keeping it in
6452 a separate local variable.
6453 (initialize_argument_information): Likewise. Base the final
6454 arg_to_skip on this new function_arg_info rather than creating
6455 a new one from scratch.
6456
6457 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6458
6459 * function.c (assign_parm_data_one): Replace passed_type,
6460 promoted_mode and named_arg with a function_arg_info field.
6461 (assign_parm_find_data_types): Remove local variables and
6462 assign directly to "data". Make data->passed_mode shadow
6463 data->arg.mode until promotion, then assign the promoted
6464 mode to data->arg.mode.
6465 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6466 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6467 (assign_parm_remove_parallels, assign_parm_setup_block_p)
6468 (assign_parm_setup_block, assign_parm_setup_reg)
6469 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6470 arg.mode instead of promoted_mode, arg.type instead of passed_type
6471 and arg.named instead of named_arg. Use data->arg for
6472 function_arg_info structures that had the field values passed_type,
6473 promoted_mode and named_arg. Base other function_arg_infos on
6474 data->arg, changing the necessary properties.
6475
6476 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6477
6478 * calls.h (apply_pass_by_reference_rules): Declare.
6479 * calls.c (apply_pass_by_reference_rules): New function.
6480 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6481 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6482 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6483 * function.c (assign_parm_find_data_types): Likewise.
6484 * var-tracking.c (prepare_call_arguments): Likewise.
6485
6486 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6487
6488 * target.def (must_pass_in_stack): Take a function_arg_info instead
6489 of a mode and a type.
6490 * doc/tm.texi: Regenerate.
6491 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6492 instead of a mode and a type.
6493 (must_pass_in_stack_var_size_or_pad): Likewise.
6494 * calls.c (must_pass_in_stack_var_size): Likewise.
6495 (must_pass_in_stack_var_size_or_pad): Likewise.
6496 (initialize_argument_information): Update call to
6497 targetm.calls.must_pass_in_stack.
6498 (must_pass_va_arg_on_stack): Likewise.
6499 * function.c (assign_parm_find_entry_rtl): Likewise.
6500 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6501 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6502 (alpha_function_arg_advance): Likewise.
6503 * config/cr16/cr16.c (cr16_function_arg): Likewise.
6504 (cr16_function_arg_advance): Likewise.
6505 * config/cris/cris.c (cris_pass_by_reference): Likewise.
6506 (cris_arg_partial_bytes): Likewise.
6507 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6508 * config/lm32/lm32.c (lm32_function_arg): Likewise.
6509 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6510 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6511 * config/mips/mips.c (mips_pass_by_reference): Likewise.
6512 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6513 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6514 * config/sh/sh.c (sh_pass_by_reference): Likewise.
6515 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6516 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6517 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6518 instead of a mode and a type.
6519 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6520 (fr30_num_arg_regs): Likewise.
6521 (fr30_setup_incoming_varargs): Update calls accordingly.
6522 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6523 (fr30_function_arg_advance): Likewise.
6524 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6525 instead of a mode and a type.
6526 * config/gcn/gcn.c (num_arg_regs): Likewise.
6527 (gcn_function_arg, gcn_function_arg_advance): Update calls to
6528 num_arg_regs and targetm.calls.must_pass_in_stack.
6529 (gcn_arg_partial_bytes): Likewise.
6530 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6531 function_arg_info instead of a mode and a type.
6532 (classify_argument): Update call accordingly.
6533 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6534 function_arg_info instead of a mode and a type.
6535 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6536 Likewise.
6537 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6538 (rs6000_parm_needs_stack): Update call accordingly.
6539 (setup_incoming_varargs): Likewise.
6540
6541 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6542
6543 * target.def (callee_copies): Take a function_arg_info instead
6544 of a mode, type and named flag.
6545 * doc/tm.texi: Regenerate.
6546 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6547 instead of a mode, type and named flag.
6548 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6549 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6550 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6551 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6552 instead of a mode, type and named flag.
6553 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6554 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6555 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6556 * calls.h (reference_callee_copied): Take a function_arg_info
6557 instead of a mode, type and named flag.
6558 * calls.c (reference_callee_copied): Likewise.
6559 (initialize_argument_information): Update call accordingly.
6560 (emit_library_call_value_1): Likewise.
6561 * function.c (gimplify_parameters): Likewise.
6562 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6563 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6564 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6565 * config/c6x/c6x.c (c6x_callee_copies): Delete.
6566 (TARGET_CALLEE_COPIES): Define to
6567 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6568 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6569 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6570 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6571 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6572 instead of a mode, type and named flag.
6573 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6574 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6575 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6576 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6577 * config/msp430/msp430.c (msp430_callee_copies): Delete.
6578 (TARGET_CALLEE_COPIES): Define to
6579 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6580 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6581 instead of a mode, type and named flag.
6582 * config/sh/sh.c (sh_callee_copies): Likewise.
6583 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6584 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6585 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6586
6587 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6588
6589 * target.def (function_arg_advance): Take a function_arg_info instead
6590 of a mode, type and named flag.
6591 * doc/tm.texi: Regenerate.
6592 * targhooks.h (default_function_arg_advance): Take a function_arg_info
6593 instead of a mode, type and named flag.
6594 * targhooks.c (default_function_arg_advance): Likewise.
6595 * calls.c (initialize_argument_information): Update call to
6596 targetm.calls.function_arg_advance.
6597 (emit_library_call_value_1): Likewise.
6598 * dse.c (get_call_args): Likewise.
6599 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6600 * function.c (assign_parms, gimplify_parameters): Likewise.
6601 * var-tracking.c (prepare_call_arguments): Likewise.
6602 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6603 function_arg_info instead of a mode, type and named flag.
6604 (aarch64_setup_incoming_varargs): Update call accordingly.
6605 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6606 function_arg_info instead of a mode, type and named flag.
6607 (alpha_setup_incoming_varargs): Update call accordingly.
6608 * config/arc/arc.c (arc_function_arg_advance): Take a
6609 function_arg_info instead of a mode, type and named flag.
6610 (arc_setup_incoming_varargs): Update call accordingly.
6611 * config/arm/arm.c (arm_function_arg_advance): Take a
6612 function_arg_info instead of a mode, type and named flag.
6613 (cmse_func_args_or_return_in_stack): Update call accordingly.
6614 (arm_function_ok_for_sibcall): Likewise.
6615 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6616 * config/avr/avr.c (avr_function_arg_advance): Take a
6617 function_arg_info instead of a mode, type and named flag.
6618 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6619 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6620 (c6x_call_saved_register_used): Update call accordingly.
6621 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6622 function_arg_info instead of a mode, type and named flag.
6623 * config/cris/cris.c (cris_function_arg_advance): Likewise.
6624 * config/csky/csky.c (csky_function_arg_advance): Likewise.
6625 (csky_setup_incoming_varargs): Update call accordingly.
6626 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6627 function_arg_info instead of a mode, type and named flag.
6628 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6629 * config/frv/frv.c (frv_function_arg_advance): Likewise.
6630 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6631 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6632 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6633 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6634 (ix86_setup_incoming_varargs): Update call accordingly.
6635 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6636 function_arg_info instead of a mode, type and named flag.
6637 (ia64_setup_incoming_varargs): Update call accordingly.
6638 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6639 function_arg_info instead of a mode, type and named flag.
6640 (iq2000_expand_prologue): Update call accordingly.
6641 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6642 function_arg_info instead of a mode, type and named flag.
6643 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6644 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6645 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6646 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6647 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6648 Likewise.
6649 (microblaze_expand_prologue): Update call accordingly.
6650 * config/mips/mips.c (mips_function_arg_advance): Take a
6651 function_arg_info instead of a mode, type and named flag.
6652 (mips_setup_incoming_varargs): Update call accordingly.
6653 (mips_output_args_xfer): Likewise.
6654 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6655 function_arg_info instead of a mode, type and named flag.
6656 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6657 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6658 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6659 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6660 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6661 (nios2_setup_incoming_varargs): Update call accordingly.
6662 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6663 function_arg_info instead of a mode, type and named flag.
6664 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6665 * config/pa/pa.c (pa_function_arg_advance): Likewise.
6666 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6667 * config/pru/pru.c (pru_function_arg_advance): Likewise.
6668 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6669 (riscv_setup_incoming_varargs): Update call accordingly.
6670 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6671 function_arg_info instead of a mode, type and named flag.
6672 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6673 Likewise.
6674 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6675 (rs6000_parm_needs_stack): Update call accordingly.
6676 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6677 instead of a mode, type and named flag.
6678 * config/s390/s390.c (s390_function_arg_advance): Likewise.
6679 (s390_call_saved_register_used): Update call accordingly.
6680 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6681 instead of a mode, type and named flag.
6682 (sh_output_mi_thunk): Update call accordingly.
6683 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6684 function_arg_info instead of a mode, type and named flag.
6685 * config/spu/spu.c (spu_function_arg_advance): Likewise.
6686 (spu_setup_incoming_varargs): Update call accordingly.
6687 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6688 function_arg_info instead of a mode, type and named flag.
6689 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6690 (tilegx_setup_incoming_varargs): Update call accordingly.
6691 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6692 function_arg_info instead of a mode, type and named flag.
6693 (tilegx_setup_incoming_varargs): Update call accordingly.
6694 * config/v850/v850.c (v850_function_arg_advance): Take a
6695 function_arg_info instead of a mode, type and named flag.
6696 * config/vax/vax.c (vax_function_arg_advance): Likewise.
6697 * config/visium/visium.c (visium_function_arg_advance): Likewise.
6698 (visium_setup_incoming_varargs): Update call accordingly.
6699 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6700 function_arg_info instead of a mode, type and named flag.
6701
6702 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6703
6704 * target.def (function_arg, function_incoming_arg): Take a
6705 function_arg_info instead of a mode, tree and named flag.
6706 * doc/tm.texi: Regenerate.
6707 * targhooks.h (default_function_arg): Take a function_arg_info
6708 instead of a mode, tree and named flag.
6709 (default_function_incoming_arg): Likewise.
6710 * targhooks.c (default_function_arg): Likewise.
6711 (default_function_incoming_arg): Likewise.
6712 * calls.h (function_arg_info::end_marker_p): New function.
6713 (function_arg_info::end_marker): Likewise.
6714 * calls.c (prepare_call_address, initialize_argument_information)
6715 (expand_call, emit_library_call_value_1): Update calls to
6716 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6717 * dse.c: Include calls.h.
6718 (get_call_args): Update call to targetm.calls.function_arg.
6719 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6720 * var-tracking.c (prepare_call_arguments): Likewise.
6721 * function.c (assign_parm_find_entry_rtl): Update call to
6722 targetm.calls.function_incoming_arg.
6723 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6724 function_arg_info instead of a mode, tree and named flag.
6725 * config/alpha/alpha.c (alpha_function_arg): Likewise.
6726 * config/arc/arc.c (arc_function_arg): Likewise.
6727 * config/arm/arm.c (arm_function_arg): Likewise.
6728 (cmse_func_args_or_return_in_stack): Update call accordingly.
6729 (arm_function_ok_for_sibcall): Likewise.
6730 (cmse_nonsecure_call_clear_caller_saved): Likewise.
6731 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6732 instead of a mode, tree and named flag.
6733 * config/bfin/bfin.c (bfin_function_arg): Likewise.
6734 * config/c6x/c6x.c (c6x_function_arg): Likewise.
6735 (c6x_call_saved_register_used): Update call accordingly.
6736 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6737 instead of a mode, tree and named flag.
6738 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6739 (cris_function_arg_1): Likewise.
6740 * config/csky/csky.c (csky_function_arg): Likewise.
6741 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6742 * config/fr30/fr30.c (fr30_function_arg): Likewise.
6743 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6744 (frv_function_arg_1): Likewise.
6745 * config/ft32/ft32.c (ft32_function_arg): Likewise.
6746 * config/gcn/gcn.c (gcn_function_arg): Likewise.
6747 * config/h8300/h8300.c (h8300_function_arg): Likewise.
6748 * config/i386/i386.c (ix86_function_arg): Likewise.
6749 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6750 (ia64_function_arg_1): Likewise.
6751 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6752 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6753 accordingly.
6754 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6755 instead of a mode, tree and named flag.
6756 * config/m32c/m32c.c (m32c_function_arg): Likewise.
6757 * config/m32r/m32r.c (m32r_function_arg): Likewise.
6758 * config/m68k/m68k.c (m68k_function_arg): Likewise.
6759 * config/mcore/mcore.c (mcore_function_arg): Likewise.
6760 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6761 (microblaze_expand_prologue): Update call accordingly.
6762 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6763 instead of a mode, tree and named flag.
6764 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6765 (mmix_function_arg_1): Likewise.
6766 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6767 * config/moxie/moxie.c (moxie_function_arg): Likewise.
6768 * config/msp430/msp430.c (msp430_function_arg): Likewise.
6769 * config/nds32/nds32.c (nds32_function_arg): Likewise.
6770 * config/nios2/nios2.c (nios2_function_arg): Likewise.
6771 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6772 (nvptx_function_incoming_arg): Likewise.
6773 * config/or1k/or1k.c (or1k_function_arg): Likewise.
6774 * config/pa/pa.c (pa_function_arg): Likewise.
6775 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6776 * config/pru/pru.c (pru_function_arg): Likewise.
6777 * config/riscv/riscv.c (riscv_function_arg): Likewise.
6778 * config/rl78/rl78.c (rl78_function_arg): Likewise.
6779 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6780 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6781 (rs6000_parm_needs_stack): Update call accordingly.
6782 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6783 instead of a mode, tree and named flag.
6784 * config/s390/s390.c (s390_function_arg): Likewise.
6785 (s390_call_saved_register_used): Update call accordingly.
6786 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6787 instead of a mode, tree and named flag.
6788 (sh_output_mi_thunk): Update call accordingly.
6789 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6790 (sparc_function_incoming_arg): Take a function_arg_info instead of
6791 a mode, tree and named flag.
6792 * config/spu/spu.c (spu_function_arg): Likewise.
6793 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6794 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6795 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6796 * config/v850/v850.c (v850_function_arg): Likewise.
6797 * config/vax/vax.c (vax_function_arg): Likewise.
6798 * config/visium/visium.c (visium_function_arg): Likewise.
6799 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6800 (xtensa_function_incoming_arg): Likewise.
6801
6802 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6803
6804 * target.def (setup_incoming_varargs): Take a function_arg_info
6805 instead of a mode and tree.
6806 * doc/tm.texi: Regenerate.
6807 * targhooks.h (default_setup_incoming_varargs): Take a
6808 function_arg_info instead of a mode and tree.
6809 * targhooks.c (default_setup_incoming_varargs): Likewise.
6810 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6811 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6812 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6813 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6814 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6815 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6816 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6817 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6818 Likewise.
6819 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6820 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6821 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6822 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6823 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6824 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6825 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6826 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6827 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6828 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6829 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6830 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6831 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6832 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6833 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6834 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6835 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6836 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6837 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6838 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6839 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6840 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6841 * function.c (assign_parms_setup_varargs): Update call to
6842 targetm.calls.setup_incoming_varargs.
6843
6844 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6845
6846 * target.def (pass_by_reference): Take a function_arg_info instead
6847 of a mode, type and named flag.
6848 * doc/tm.texi: Regenerate.
6849 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6850 accordingly.
6851 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6852 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6853 function_arg_info instead of a mode, type and named flag.
6854 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6855 * calls.h (pass_by_reference): Take a function_arg_info instead of a
6856 mode, type and named flag.
6857 * calls.c (pass_by_reference): Likewise.
6858 (pass_va_arg_by_reference): Update call accordingly.
6859 (initialize_argument_information): Likewise.
6860 (emit_library_call_value_1): Likewise.
6861 * function.c (assign_parm_find_data_types): Likewise.
6862 * var-tracking.c (prepare_call_arguments): Likewise.
6863 * stor-layout.c: Include calls.h.
6864 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6865 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6866 function_arg_info instead of a mode, type and named flag.
6867 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6868 * config/arc/arc.c (arc_pass_by_reference): Likewise.
6869 * config/arm/arm.c (arm_pass_by_reference): Likewise.
6870 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6871 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6872 (c6x_call_saved_register_used): Update call to pass_by_reference.
6873 * config/cris/cris.c (cris_pass_by_reference): Take a
6874 function_arg_info instead of a mode, type and named flag.
6875 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6876 function_arg_info instead of a mode, type and named flag.
6877 (epiphany_arg_partial_bytes): Update call accordingly.
6878 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6879 function_arg_info instead of a mode, type and named flag.
6880 (ft32_arg_partial_bytes): Update call accordingly.
6881 * config/i386/i386.c (ix86_pass_by_reference): Take a
6882 function_arg_info instead of a mode, type and named flag.
6883 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6884 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6885 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6886 (m32r_return_in_memory): Update call accordingly.
6887 * config/mips/mips.c (mips_pass_by_reference): Take a
6888 function_arg_info instead of a mode, type and named flag.
6889 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6890 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6891 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6892 (moxie_arg_partial_bytes): Update call accordingly.
6893 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6894 function_arg_info instead of a mode, type and named flag.
6895 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6896 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6897 * config/pa/pa.c (pa_pass_by_reference): Likewise.
6898 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6899 (riscv_return_in_memory): Update call accordingly.
6900 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6901 function_arg_info instead of a mode, type and named flag.
6902 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6903 (rs6000_parm_needs_stack): Update call to pass_by_reference.
6904 * config/s390/s390.c (s390_pass_by_reference): Take a
6905 function_arg_info instead of a mode, type and named flag.
6906 (s390_call_saved_register_used): Update call accordingly.
6907 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6908 instead of a mode, type and named flag.
6909 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6910 * config/spu/spu.c (spu_pass_by_reference): Likewise.
6911 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6912 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6913 * config/v850/v850.c (v850_pass_by_reference): Likewise.
6914 * config/visium/visium.c (visium_pass_by_reference): Likewise.
6915
6916 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6917
6918 * target.def (arg_partial_bytes): Take a function_arg_info instead
6919 of a mode, type and named flag.
6920 * doc/tm.texi: Regenerate.
6921 * target.h (function_arg_info): Declare.
6922 * calls.h (function_arg_info): New class.
6923 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6924 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6925 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6926 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6927 * calls.c (initialize_argument_information): Update call to
6928 targetm.calls.partial_bytes.
6929 (emit_library_call_value_1): Likewise.
6930 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6931 * function.c (assign_parm_find_entry_rtl): Likewise.
6932 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6933 function_arg_info instead of a mode, type and named flag.
6934 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6935 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6936 (cmse_func_args_or_return_in_stack): Update accordingly.
6937 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6938 function_arg_info instead of a mode, type and named flag.
6939 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6940 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6941 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6942 * config/fr30/fr30.c: Include calls.h.
6943 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6944 type and named flag.
6945 * config/frv/frv.c: Include calls.h.
6946 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6947 type and named flag.
6948 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6949 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6950 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6951 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6952 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6953 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6954 * config/microblaze/microblaze.c (function_arg_partial_bytes):
6955 Likewise.
6956 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6957 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6958 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6959 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6960 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6961 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6962 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6963 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6964 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6965 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6966 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6967 (rs6000_parm_needs_stack): Update call accordingly.
6968 * config/sh/sh.c (sh_arg_partial_bytes): Take a
6969 function_arg_info instead of a mode, type and named flag.
6970 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6971 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6972
6973 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6974
6975 * calls.h (must_pass_va_arg_in_stack): Declare.
6976 * calls.c (must_pass_va_arg_in_stack): New function.
6977 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6978 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6979 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6980 Likewise.
6981 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6982
6983 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
6984
6985 * calls.h (pass_va_arg_by_reference): Declare.
6986 * calls.c (pass_va_arg_by_reference): New function.
6987 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6988 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6989 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6990 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6991 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6992 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6993 (mips_gimplify_va_arg_expr): Likewise.
6994 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6995 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6996 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6997 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6998 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6999 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
7000 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
7001 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
7002 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
7003 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
7004 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
7005
7006 2019-08-20 Richard Biener <rguenther@suse.de>
7007
7008 PR target/91498
7009 * config/i386/i386-features.c (general_scalar_chain::convert_op):
7010 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
7011 (convert_scalars_to_vector): Add timode_p parameter and use it
7012 to guard TImode-only operation.
7013 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
7014 (pass_stv::execute): Pass down timode_p.
7015
7016 2019-08-20 Lili Cui <lili.cui@intel.com>
7017
7018 * common/config/i386/i386-common.c
7019 (processor_names): Add tigerlake and cooperlake.
7020 (processor_alias_table): Add tigerlake and cooperlake.
7021 * config.gcc: Add -march=tigerlake and cooperlake.
7022 * config/i386/driver-i386.c
7023 (host_detect_local_cpu): Detect tigerlake and cooperlake.
7024 Add "has_avx" to classify processor.
7025 * config/i386/i386-builtins.c (processor_model) :
7026 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
7027 (arch_names_table): Add tigerlake and cooperlake.
7028 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
7029 and PROCESSOR_COOPERLAKE.
7030 * config/i386/i386-c.c
7031 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
7032 * config/i386/i386-options.c
7033 (m_TIGERLAKE) : Define.
7034 (m_COOPERLAKE) : Ditto.
7035 (m_CORE_AVX512): Ditto.
7036 (processor_cost_table): Add cascadelake.
7037 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
7038 * config/i386/i386.h
7039 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
7040 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7041 (PTA_MOVDIRI): Ditto.
7042 (PTA_MOVDIR64B): Ditto.
7043 (PTA_COOPERLAKE) : Ditto.
7044 (PTA_TIGERLAKE) : Ditto.
7045 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
7046 * doc/extend.texi: Add tigerlake and cooperlake.
7047 * doc/invoke.texi: Add tigerlake and cooperlake.
7048
7049 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
7050
7051 * doc/install.texi (Specific, alpha): Remove note to use
7052 binutils 2.11.2 or later.
7053
7054 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7055
7056 PR middle-end/89544
7057 * function.c (assign_parm_find_stack_rtl): Use larger alignment
7058 when possible.
7059
7060 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
7061
7062 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
7063 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
7064 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
7065 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
7066 * config/aarch64/constraints.md (Dt): New constraint
7067 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
7068
7069 2019-08-19 Richard Biener <rguenther@suse.de>
7070
7071 PR tree-optimization/91403
7072 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
7073 cases we can handle with tail-recursion...
7074 (follow_ssa_edge_expr): ... here. Do so.
7075
7076 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
7077
7078 PR target/91441
7079 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
7080 implemented for -fsanitize=kernel-address, and merge check logic
7081 with -fsanitize=address.
7082
7083 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
7084
7085 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
7086 for cpu and machine. Factor 64/32b builtins.
7087
7088 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
7089
7090 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
7091 gone, point to sourceforge.net.
7092
7093 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7094
7095 * doc/ux.texi (User Experience Guidelines): Update reference.
7096
7097 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
7098
7099 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
7100 not LGPL".
7101
7102 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
7103
7104 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
7105 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
7106
7107 2019-08-16 Martin Sebor <msebor@redhat.com>
7108
7109 * tree.def (TYPE_SIZE): Clarify.
7110 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
7111
7112 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
7113
7114 PR tree-optimization/91109
7115 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
7116 * lra.c (lra): Use lra_need_for_scratch_reg_p.
7117 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
7118
7119 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
7120
7121 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
7122 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
7123 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
7124 (uavg<mode>3_ceil): New expander.
7125 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
7126 mode iterator when creating CONST1_RTX.
7127 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
7128 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
7129 mode iterator for const1_operand predicate.
7130
7131 2019-08-16 Richard Biener <rguenther@suse.de>
7132
7133 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
7134 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
7135 follow_ssa_edge.
7136 (follow_ssa_edge_in_condition_phi_branch): Likewise.
7137 (analyze_evolution_in_loop): Likewise.
7138 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
7139 (follow_ssa_edge_expr): ... here. Refactor code.
7140
7141 2019-08-16 Richard Biener <rguenther@suse.de>
7142
7143 PR target/91469
7144 * config/i386/i386-features.c
7145 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
7146
7147 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7148
7149 PR other/91255
7150 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
7151 only if subst_name matches curr_attr string.
7152
7153 2019-08-16 Richard Biener <rguenther@suse.de>
7154
7155 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
7156 stmt at gsi_p, instead replace it with a NOP removed later.
7157 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
7158 that became dead because of that.
7159
7160 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
7161
7162 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
7163 for which we can't represent a range.
7164 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
7165 set_varying.
7166 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
7167 Set VR_UNDEFINED if type is not supported.
7168 * tree-ssanames.c (get_range_info): Pass type to set_varying.
7169 * tree-vrp.c (value_range_base::check): Assert that a varying has
7170 min/max set.
7171 (value_range_base::equal_p): Early bail for undefines.
7172 (value_range_base::set_varying): Accept a type.
7173 (value_range::set_varying): Same.
7174 (value_range_base::type): VARYING can have a type, while UNDEFINE
7175 is typeless.
7176 (value_range_base::dump): Print type for VARYING nodes.
7177 (value_range_base::set): Add type to VARYING.
7178 (extract_range_from_multiplicative_op): Pass type to set_varying.
7179 (extract_range_from_binary_expr): Same.
7180 (value_range_base::intersect_helper): Same.
7181 (value_range_base::union_helper): Same.
7182 (value_range_base::normalize_symbolics): Same.
7183 (determine_value_range_1): Same.
7184 * tree-vrp.h (class value_range_base): Add type to set_varying.
7185 Add prototype for dump(void).
7186 Add prototype for supports_type_p.
7187 (class value_range): Add type to set_varying.
7188 Add prototype for dump(void).
7189 * vr-values.c (set_value_range_to_truthvalue): Pass type to
7190 set_varying.
7191 (vr_values::get_lattice_entry): Set varying even if propagation
7192 finished.
7193 Pass type to set_varying.
7194 (vr_values::get_value_range): Remove vr_const_varying.
7195 Reallocate the lattice if needed.
7196 (vr_values::update_value_range): Pass type to set_varying.
7197 (vr_values::extract_range_for_var_from_comparison_expr): Same.
7198 (vr_values::extract_range_from_binary_expr): Same.
7199 (vr_values::extract_range_from_unary_expr): Same.
7200 (vr_values::extract_range_from_cond_expr): Same.
7201 (vr_values::check_for_binary_op_overflow): Same.
7202 (vr_values::extract_range_basic): Same.
7203 (vr_values::extract_range_from_assignment): Same.
7204 (vr_values::vr_values): Increase size of num_vr_values.
7205 (vr_values::extract_range_from_phi_node): Pass type to
7206 set_varying.
7207
7208 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 PR target/90878
7211 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7212 for costs of hard register moves.
7213 (ix86_register_move_cost): Likewise.
7214 * config/i386/i386.h (processor_costs): Move costs of hard
7215 register moves to hard_register. Add int_load, int_store,
7216 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7217 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7218 for costs of RTL expressions.
7219 * config/i386/x86-tune-costs.h: Move costs of hard register
7220 moves to hard_register. Duplicate int_load, int_store,
7221 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7222 sse_load, sse_store for costs of RTL expressions.
7223
7224 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7225
7226 * target.def (setup_incoming_vararg_bounds): Remove.
7227 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7228 * doc/tm.texi: Regenerate.
7229 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7230 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7231 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7232 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7233
7234 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7235
7236 MSP430: Fix lines over 80 characters long in
7237 config/msp430/*.{c,h} files
7238
7239 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7240 specifier in string.
7241 (msp430_select_hwmult_lib): Split line more than 80 characters long.
7242 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7243 redundant old comment.
7244 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7245 Split line more than 80 characters long.
7246 * config/msp430/msp430.c (msp430_option_override): Likewise.
7247 (msp430_return_in_memory): Likewise.
7248 (msp430_gimplify_va_arg_expr): Likewise.
7249 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7250 (msp430_legitimate_constant): Likewise.
7251 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7252 (msp430_attr): Likewise.
7253 (msp430_data_attr): Likewise.
7254 (msp430_start_function): Likewise.
7255 (gen_prefix): Likewise.
7256 (msp430_init_sections): Likewise.
7257 (msp430_select_section): Likewise.
7258 (msp430_function_section): Likewise.
7259 (msp430_unique_section): Likewise.
7260 (msp430_output_aligned_decl_common): Likewise.
7261 (msp430_do_not_relax_short_jumps): Likewise.
7262 (msp430_init_builtins): Likewise.
7263 (msp430_expand_delay_cycles): Likewise.
7264 (msp430_expand_prologue): Likewise.
7265 (msp430_expand_epilogue): Likewise.
7266 (msp430_expand_helper): Likewise.
7267 (msp430_split_movsi): Likewise.
7268 (msp430_print_operand): Likewise.
7269 (msp430_return_addr_rtx): Likewise.
7270 (msp430x_extendhisi): Likewise.
7271 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7272 (ASM_SPEC): Likewise.
7273 Remove very obvious comments.
7274 (LIB_SPEC): Split line more than 80 characters long.
7275 (EH_RETURN_HANDLER_RTX): Likewise.
7276 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7277
7278 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7279
7280 MSP430: Fix whitespace errors and incorrect indentation in
7281 config/msp430/*.{c,h} files
7282
7283 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7284 (msp430_select_hwmult_lib): Likewise.
7285 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7286 (msp430_extract_mcu_data): Likewise.
7287 (struct t_msp430_mcu_data): Likewise.
7288 * config/msp430/msp430.c (struct machine_function): Remove whitespace
7289 before left square bracket.
7290 (msp430_option_override): Fix indentation.
7291 (msp430_hard_regno_nregs_with_padding): Likewise.
7292 (msp430_initial_elimination_offset): Likewise.
7293 (msp430_special_register_convention_p): Remove whitespace before left
7294 square bracket and after exclamation mark.
7295 (msp430_evaluate_arg): Likewise.
7296 (msp430_callee_copies): Fix indentation.
7297 (msp430_gimplify_va_arg_expr): Likewise.
7298 (msp430_function_arg_advance): Remove whitespace before left square
7299 bracket.
7300 (reg_ok_for_addr): Likewise.
7301 (msp430_preserve_reg_p): Likewise.
7302 (msp430_compute_frame_info): Likewise.
7303 (msp430_asm_output_addr_const_extra): Add space between function name
7304 and open parenthesis.
7305 (has_section_name): Fix indentation.
7306 (msp430_attr): Remove trailing whitespace.
7307 (msp430_section_attr): Likewise.
7308 (msp430_data_attr): Likewise.
7309 (struct msp430_attribute_table): Fix comment and whitespace.
7310 (msp430_start_function): Remove whitespace before left square bracket.
7311 Add space between function name and open parenthesis.
7312 (msp430_select_section): Remove trailing whitespace.
7313 (msp430_section_type_flags): Remove trailing whitespace.
7314 (msp430_unique_section): Remove space before closing parenthesis.
7315 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7316 (msp430_builtins): Remove whitespace before left square bracket.
7317 (msp430_init_builtins): Fix indentation.
7318 (msp430_expand_prologue): Remove whitespace before left square bracket.
7319 Remove space before closing parenthesis.
7320 (msp430_expand_epilogue): Remove whitespace before left square bracket.
7321 (msp430_split_movsi): Remove space before closing parenthesis.
7322 (helper_function_name_mappings): Fix indentation.
7323 (msp430_use_f5_series_hwmult): Fix whitespace.
7324 (use_32bit_hwmult): Likewise.
7325 (msp430_no_hwmult): Likewise.
7326 (msp430_output_labelref): Remove whitespace before left square bracket.
7327 (msp430_print_operand_raw): Likewise.
7328 (msp430_print_operand_addr): Likewise.
7329 (msp430_print_operand): Add two spaces after '.' in comment.
7330 Fix trailing whitespace.
7331 (msp430x_extendhisi): Fix indentation.
7332 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7333 tab.
7334 (PC_REGNUM): Likewise.
7335 (STACK_POINTER_REGNUM): Likewise.
7336 (CC_REGNUM): Likewise.
7337
7338 2019-08-15 Richard Biener <rguenther@suse.de>
7339
7340 PR target/91454
7341 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7342 helper.
7343 (general_scalar_chain::make_vector_copies): Use it.
7344
7345 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
7346
7347 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7348
7349 2019-08-15 Martin Liska <mliska@suse.cz>
7350
7351 * tree-ssa-dce.c (propagate_necessity): We can't reach now
7352 operators with no arguments.
7353 (eliminate_unnecessary_stmts): Likewise here.
7354
7355 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
7356
7357 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7358 <case COMPARE>: Revert 2019-08-14 change.
7359 (convertible_comparison_p): Revert 2019-08-14 change. Return false
7360 for (TARGET_64BIT || mode != DImode).
7361
7362 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
7363
7364 * tree-vrp.c (value_range_base::set): Merge in code from
7365 value_range_base::set_and_canonicalize.
7366 Enforce canonicalization at set time.
7367 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7368 (value_range_base::set_undefined): Inline call to set().
7369 (value_range_base::set_varying): Same.
7370 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7371 (vrp_val_max): New argument handle_pointers.
7372 (vrp_val_min): Same.
7373 (ranges_from_anti_range): Same.
7374 (extract_range_into_wide_ints): Use tree argument instead of sign
7375 and precision.
7376 (extract_range_from_multiplicative_op): Take in tree type instead
7377 of precision and sign. Adapt function for canonicalized ranges.
7378 (extract_range_from_binary_expr): Pass type to
7379 extract_range_from_multiplicative_op.
7380 Adapt for canonicalized ranges.
7381 (extract_range_from_unary_expr): Same.
7382 (value_range_base::intersect_helper): Adjust for canonicalized
7383 ranges.
7384 (value_range_base::union_helper): Same.
7385 (value_range_base::normalize_symbolics): New.
7386 * tree-vrp.h (class value_range_base): Remove
7387 set_and_canonicalize.
7388 New prototype for normalize_symbolics.
7389 (class value_range): Remove set_and_canonicalize.
7390 (vrp_val_min): Adjust prototype.
7391 (vrp_val_max): Same.
7392 * vr-values.c
7393 (vr_values::extract_range_for_var_from_comparison_expr): Call set
7394 instead of set_and_canonicalize.
7395
7396 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7397
7398 PR middle-end/91444
7399 * tree-vect-stmts.c (vectorizable_call): Check that the function
7400 is a BUILT_IN_MD function before passing it to
7401 targetm.vectorize.builtin_md_vectorized_function.
7402
7403 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7404
7405 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7406 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7407 (aarch64_select_early_remat_modes): Use it.
7408
7409 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7410
7411 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7412 16 for SVE predicates even if they are fixed-length.
7413
7414 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7415
7416 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7417 operand order match the MOV /Z alias.
7418
7419 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7420
7421 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7422 the vector pattern as an aarch64_svpattern argument. Update the
7423 overloaded caller accordingly.
7424 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7425 (aarch64_output_sve_vector_inc_dec): Likewise.
7426
7427 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7428
7429 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7430 multiplication case, try to compute VG * (lowest set bit) directly
7431 rather than always basing the multiplication on VG. Use
7432 expand_mult for the multiplication if we can.
7433
7434 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7435
7436 * config/aarch64/aarch64-protos.h
7437 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7438 (aarch64_sve_inc_dec_immediate_p): Rename to...
7439 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7440 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7441 (aarch64_output_sve_scalar_inc_dec): Declare.
7442 (aarch64_output_sve_inc_dec_immediate): Rename to...
7443 (aarch64_output_sve_vector_inc_dec): ...this.
7444 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7445 (aarch64_output_sve_scalar_inc_dec): New functions.
7446 (aarch64_output_sve_addvl_addpl): Remove the base and offset
7447 arguments. Only handle true ADDVL and ADDPL instructions;
7448 don't emit an INC or DEC.
7449 (aarch64_sve_inc_dec_immediate_p): Rename to...
7450 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7451 (aarch64_output_sve_inc_dec_immediate): Rename to...
7452 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
7453 aarch64_sve_vector_inc_dec_immediate_p.
7454 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7455 (aarch64_sve_plus_immediate): New predicates.
7456 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7457 rather than aarch64_sve_addvl_addpl_immediate.
7458 (aarch64_sve_inc_dec_immediate): Rename to...
7459 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
7460 aarch64_sve_vector_inc_dec_immediate_p.
7461 (aarch64_sve_add_operand): Update accordingly.
7462 * config/aarch64/constraints.md (Uai): New constraint.
7463 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7464 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7465 operand into a register if it satisfies aarch64_sve_plus_immediate.
7466 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7467 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
7468 * config/aarch64/aarch64-sve.md (add<mode>3): Call
7469 aarch64_output_sve_vector_inc_dec instead of
7470 aarch64_output_sve_inc_dec_immediate.
7471
7472 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7473
7474 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7475 (UNSPEC_REVW): New constants.
7476 (elem_bits): New mode attribute.
7477 (SVE_INT_UNARY): New int iterator.
7478 (optab): Handle UNSPEC_REV[BHW].
7479 (sve_int_op): New int attribute.
7480 (min_elem_bits): Handle VNx16QI and the predicate modes.
7481 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7482 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7483 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7484 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7485 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7486 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7487 unspecs based on the total width of the reversed data.
7488 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
7489 reinterpret followed by a subreg on big-endian targets.
7490
7491 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7492 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7493
7494 * config/aarch64/aarch64-sve.md
7495 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7496 alternatives in which one of the inputs is in the same register
7497 as the output.
7498
7499 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7500
7501 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7502 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7503
7504 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7505
7506 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7507 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
7508
7509 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7510 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7511
7512 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7513 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7514 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7515
7516 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7517 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7518
7519 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7520 Add an alternative that uses reversed shifts.
7521
7522 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7523
7524 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7525 struct.
7526
7527 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7528
7529 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7530 a commutativity marker.
7531
7532 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7533 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7534
7535 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7536 (aarch64_prepare_sve_cond_int_fma): Declare.
7537 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7538 (aarch64_prepare_sve_int_fma): New functions.
7539 (aarch64_prepare_sve_cond_int_fma): Likewise.
7540 * config/aarch64/aarch64-sve.md
7541 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7542 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7543 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7544 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7545 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7546 (*madd<mode>): Rename to...
7547 (*fma<mode>4): ...this.
7548 (*msub<mode>): Rename to...
7549 (*fnma<mode>4): ...this.
7550
7551 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7552 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7553
7554 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7555 Print 2.0 naturally.
7556 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7557 * config/aarch64/predicates.md
7558 (aarch64_sve_float_negated_arith_immediate): New predicate,
7559 renamed from aarch64_sve_float_arith_with_sub_immediate.
7560 (aarch64_sve_float_arith_with_sub_immediate): Test for both
7561 positive and negative constants.
7562 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7563 or an aarch64_sve_float_arith_with_sub_immediate.
7564 * config/aarch64/constraints.md (vsN): Use
7565 aarch64_sve_float_negated_arith_immediate.
7566 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7567 iterator.
7568 (sve_pred_fp_rhs2_immediate): New int attribute.
7569 * config/aarch64/aarch64-sve.md
7570 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7571 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7572 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7573 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7574 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7575 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7576
7577 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7578 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7579
7580 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7581 (*aarch64_cond_abd<SVE_F:mode>_3)
7582 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7583
7584 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7585 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7586
7587 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7588 (*aarch64_cond_<su>abd<mode>_any): New patterns.
7589
7590 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
7591 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7592
7593 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7594 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7595 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7596 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7597 optabs.
7598 * optabs.h (create_convert_operand_from): Expand comment.
7599 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7600 when mapping scalar rtxes to vector operands.
7601 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7602 ashiftrt and lshiftrt.
7603 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7604 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7605 (*cond_<optab><mode>_any_const): New patterns.
7606
7607 2019-08-15 Martin Liska <mliska@suse.cz>
7608
7609 PR ipa/91438
7610 * cgraph.c (cgraph_node::remove): When setting
7611 n->origin = NULL for all nested functions, reset
7612 also next_nested.
7613
7614 2019-08-15 Martin Liska <mliska@suse.cz>
7615
7616 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7617 and next_nested.
7618
7619 2019-08-15 Martin Liska <mliska@suse.cz>
7620
7621 PR ipa/91404
7622 * passes.c (order): Remove.
7623 (uid_hash_t): Likewise).
7624 (remove_cgraph_node_from_order): Remove from set
7625 of pointers (cgraph_node *).
7626 (insert_cgraph_node_to_order): New.
7627 (duplicate_cgraph_node_to_order): New.
7628 (do_per_function_toporder): Register all 3 cgraph hooks.
7629 Skip removed_nodes now as we know about all of them.
7630
7631 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
7632
7633 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7634 <case E_V8QImode>: Use vector_set path for
7635 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7636 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7637 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7638
7639 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7640
7641 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7642
7643 2019-08-14 Martin Sebor <msebor@redhat.com>
7644
7645 PR tree-optimization/91294
7646 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7647 source length as exact.
7648
7649 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
7650
7651 * doc/extend.texi: Add "noinit" attribute documentation.
7652 * doc/sourcebuild.texi: Add noinit effective target documentation.
7653 * varasm.c (default_section_type_flags): Add support for "noinit"
7654 section.
7655 (default_elf_select_section): Add support for "noinit" attribute.
7656 * config/msp430/msp430.c (msp430_attribute_table): Remove
7657 "noinit" entry.
7658
7659 2019-08-14 Richard Biener <rguenther@suse.de>
7660 Uroš Bizjak <ubizjak@gmail.com>
7661
7662 PR target/91154
7663 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7664 mode arguments.
7665 (scalar_chain::smode): New member.
7666 (scalar_chain::vmode): Likewise.
7667 (dimode_scalar_chain): Rename to...
7668 (general_scalar_chain): ... this.
7669 (general_scalar_chain::general_scalar_chain): Take mode arguments.
7670 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7671 base with TImode and V1TImode.
7672 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7673 (general_scalar_chain::vector_const_cost): Adjust for SImode
7674 chains.
7675 (general_scalar_chain::compute_convert_gain): Likewise. Add
7676 {S,U}{MIN,MAX} support.
7677 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7678 (general_scalar_chain::make_vector_copies): Likewise. Handle
7679 non-DImode chains appropriately.
7680 (general_scalar_chain::convert_reg): Likewise.
7681 (general_scalar_chain::convert_op): Likewise.
7682 (general_scalar_chain::convert_insn): Likewise. Add
7683 fatal_insn_not_found if the result is not recognized.
7684 (convertible_comparison_p): Pass in the scalar mode and use that.
7685 (general_scalar_to_vector_candidate_p): Likewise. Rename from
7686 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
7687 (scalar_to_vector_candidate_p): Remove by inlining into single
7688 caller.
7689 (general_remove_non_convertible_regs): Rename from
7690 dimode_remove_non_convertible_regs.
7691 (remove_non_convertible_regs): Remove by inlining into single caller.
7692 (convert_scalars_to_vector): Handle SImode and DImode chains
7693 in addition to TImode chains.
7694 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7695 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7696 (*<maxmin>di3_doubleword): Likewise.
7697
7698 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7699 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7700
7701 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7702 (*cond_bic<mode>_any): New patterns.
7703
7704 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7705
7706 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7707 take the equivalent mask, as well as a bit count.
7708 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7709 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7710 (aarch64_sve_pred_and_operand): New predicates.
7711 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7712 code attribute.
7713 * config/aarch64/aarch64-sve.md
7714 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7715 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7716
7717 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7718
7719 * config/aarch64/aarch64-sve.md
7720 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7721 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7722 New patterns.
7723
7724 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7725 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7726
7727 * config/aarch64/aarch64-sve.md
7728 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7729 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7730
7731 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7732 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7733
7734 * config/aarch64/aarch64-sve.md
7735 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7736 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7737
7738 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7739
7740 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7741 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7742 New pattern.
7743
7744 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7745 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7746
7747 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7748
7749 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7750 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7751
7752 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7753 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7754 (aarch64_print_operand): Add support for %I.
7755 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7756 Bitcast floating-point constants to the corresponding integer constant.
7757 (aarch64_float_const_representable_p): Handle vectors as well
7758 as scalars.
7759 (aarch64_expand_sve_vcond): Make sure that the operands are valid
7760 for the new vcond_mask_<mode><vpred> expander.
7761 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7762 test aarch64_float_const_representable_p.
7763 (aarch64_sve_reg_or_dup_imm): New predicate.
7764 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7765 gen_vcond_mask_<mode><vpred> instead of
7766 gen_aarch64_sve_dup<mode>_const.
7767 (vcond_mask_<mode><vpred>): Turn into a define_expand that
7768 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7769 for operands 1 and 2 respectively. Force operand 2 into a
7770 register if operand 1 is a register. Fold old define_insn...
7771 (aarch64_sve_dup<mode>_const): ...and this define_insn...
7772 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
7773 floating-point constants that can be moved as integers. Add
7774 alternatives for MOV /M and FMOV /M.
7775 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7776 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7777 1 and 2 respectively.
7778 * config/aarch64/constraints.md (Ufc): Handle vectors as well
7779 as scalars.
7780 (vss): New constraint.
7781
7782 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7783
7784 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7785 (aarch64_sve_float_maxmin_operand): New predicates.
7786 * config/aarch64/constraints.md (vsB): New constraint.
7787 (vsM): Fix typo.
7788 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7789 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7790 UNSPEC_COND_FMINNM.
7791 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7792 Use aarch64_sve_float_maxmin_operand for operand 2.
7793 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7794 Add alternatives for the constant forms.
7795
7796 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7797
7798 * config/aarch64/constraints.md (vsb): New constraint.
7799 (vsm): Generalize description.
7800 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7801 iterator.
7802 (sve_imm_con): Handle smax, smin, umax and umin.
7803 (sve_imm_prefix): New code attribute.
7804 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7805 (aarch64_sve_vsb_operand): New predicates.
7806 (aarch64_sve_mul_immediate): Rename to...
7807 (aarch64_sve_vsm_immediate): ...this.
7808 (aarch64_sve_mul_operand): Rename to...
7809 (aarch64_sve_vsm_operand): ...this.
7810 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7811 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7812 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7813 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7814 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7815 add movprfx support for the immediate alternatives.
7816 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7817 of the above.
7818 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7819 for operand 3.
7820
7821 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7822
7823 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7824 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7825 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7826
7827 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7828
7829 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7830 (optab, sve_int_op): Handle them.
7831 * config/aarch64/aarch64-sve.md: Expand comment.
7832
7833 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7834
7835 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7836 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7837 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7838
7839 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7840
7841 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7842 (aarch64_expand_sve_const_pred_trn): New functions.
7843 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7844 use the above functions when the parameter is true.
7845 (aarch64_expand_sve_const_pred): Update call accordingly.
7846 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7847 Rename to...
7848 (@aarch64_sve_<perm_insn><mode>): ...this.
7849
7850 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7851
7852 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7853 Declare.
7854 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7855 (aarch64_sve_emit_int_cmp): New functions.
7856 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7857 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7858 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7859 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7860 (UNSPEC_PRED_Z): New unspec.
7861 (set_clobber_cc_nzc): Delete.
7862 * config/aarch64/aarch64-sve.md: Add a block comment about
7863 UNSPEC_PRED_Z.
7864 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7865 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7866 the old pattern with that name. Use UNSPEC_PRED_Z instead of
7867 UNSPEC_MERGE_PTRUE.
7868 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7869 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
7870 check for compatible predicates.
7871 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7872 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7873 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
7874 comparisons above.
7875
7876 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7877
7878 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7879 * config/aarch64/aarch64-sve.md: Add a section describing it.
7880 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7881 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7882 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7883 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7884 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7885 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7886 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7887 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7888 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7889 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7890 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7891 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7892 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7893 (aarch64_evpc_rev_local): Update accordingly.
7894
7895 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7896
7897 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7898 iterators.
7899 (SVE_BHSI, SVE_SDI): Tweak comment.
7900 (SVE_HSDI): Likewise. Fix definition.
7901 (SVE_SDF): New mode iterator.
7902 (elem_bits): New mode attribute.
7903 (SVE_COND_FCVT): New int iterator.
7904 * config/aarch64/aarch64-sve.md
7905 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7906 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7907 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7908 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7909 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7910 ...these new patterns.
7911 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7912 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7913 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7914 Merge into...
7915 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7916 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7917 ...these new patterns.
7918 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7919 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7920 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7921 ...this new pattern.
7922 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7923 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7924 ...this new pattern.
7925 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7926
7927 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7928
7929 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7930 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7931 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7932 unspecs.
7933 (optab, su): Handle them.
7934 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7935 * config/aarch64/aarch64-sve.md
7936 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7937 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7938 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7939 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7940 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7941 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7942 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7943 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7944 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7945 FIXUORS.
7946 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7947 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7948 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7949 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7950 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7951 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7952 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7953 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7954 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7955 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7956 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7957 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7958 of UNSPEC_FLOAT_CONVERT.
7959 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7960 aarch64_sve_extend<mode><Vwide>2.
7961
7962 2019-08-14 Richard Biener <rguenther@suse.de>
7963
7964 PR target/91154
7965 * config/i386/i386-features.c
7966 (dimode_scalar_chain::compute_convert_gain): Compute and dump
7967 individual instruction gain. Fix reg-reg copy GRP cost. Use
7968 ix86_cost->sse_op for vector instruction costs.
7969
7970 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7971
7972 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7973 (cmp_op): Handle it.
7974 (SVE_COND_FP_CMP): Rename to...
7975 (SVE_COND_FP_CMP_I0): ...this.
7976 (SVE_FP_CMP): Remove.
7977 * config/aarch64/aarch64-sve.md
7978 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7979 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7980 using unspecs to represent the comparison.
7981 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7982 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7983 accordingly.
7984 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7985 (aarch64_unspec_cond_code): Move after integer code. Handle
7986 UNORDERED.
7987 (aarch64_emit_sve_predicated_cond): Replace with...
7988 (aarch64_emit_sve_fp_cond): ...this new function.
7989 (aarch64_emit_sve_or_conds): Replace with...
7990 (aarch64_emit_sve_or_fp_conds): ...this new function.
7991 (aarch64_emit_sve_inverted_cond): Replace with...
7992 (aarch64_emit_sve_invert_fp_cond): ...this new function.
7993 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7994
7995 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
7996
7997 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7998 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7999 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
8000 SVE_HSD instead of SVE_SD.
8001
8002 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8003 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8004
8005 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
8006 iterator.
8007 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
8008 attributes.
8009 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
8010 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
8011 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
8012 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
8013 (*div<SVE_F:mode>3): Generalize to...
8014 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
8015
8016 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8017 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8018
8019 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
8020 constants.
8021 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
8022 predicate.
8023 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8024 Declare.
8025 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
8026 function.
8027 * config/aarch64/aarch64-sve.md: Add a block comment about the
8028 handling of predicated FP operations.
8029 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
8030 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
8031 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8032 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
8033 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
8034 operand.
8035 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
8036 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
8037 operand.
8038 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
8039 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
8040 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
8041 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
8042 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
8043 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
8044 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8045 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
8046 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
8047 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
8048 strictness operands. Use aarch64_sve_pred_dominates_p to check
8049 whether the predicate on the conditional operation is suitable
8050 for merging. Split patterns into the canonical equal-predicate form.
8051 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
8052 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
8053
8054 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8055 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8056
8057 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
8058 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
8059 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
8060 rtx codes.
8061 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
8062 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
8063 unspecs.
8064
8065 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8066 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8067
8068 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
8069 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
8070 actually has, rather than relying on REG_EQUAL notes.
8071 Make the insn operand order match the SVE operand order.
8072 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
8073 the SVE operand order.
8074
8075 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8076
8077 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
8078 (aarch64_emit_set_immediate): Likewise.
8079 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
8080 (aarch64_pfalse_reg): Likewise.
8081 (aarch64_convert_sve_data_to_pred): New function.
8082 (aarch64_sve_move_pred_via_while): Take an optional target register
8083 and the required register mode.
8084 (aarch64_expand_sve_const_pred_1): New function.
8085 (aarch64_expand_sve_const_pred): Likewise.
8086 (aarch64_expand_mov_immediate): Build an all-true predicate
8087 if the significant bits of the immediate are all true. Use
8088 aarch64_expand_sve_const_pred for all compile-time predicate constants.
8089 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
8090 before register allocation.
8091 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
8092 a VNx16BI PTRUE when splitting the memory alternative.
8093 (vec_duplicate<mode>): Update accordingly.
8094 (*pred_cmp<cmp_op><mode>): Rename to...
8095 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
8096
8097 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
8098
8099 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
8100 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
8101 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
8102 (UNSPEC_PTEST): New unspec.
8103 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
8104 * config/aarch64/iterators.md (data_bytes): New mode attribute.
8105 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
8106 * config/aarch64/aarch64-sve.md: Add a new section describing the
8107 handling of UNSPEC_PTEST.
8108 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
8109 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
8110 (ptest_ptrue<mode>): Replace with...
8111 (aarch64_ptest<mode>): ...this new pattern.
8112 (cbranch<mode>4): Update after above changes.
8113 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
8114 UNSPEC_PTEST_PTRUE.
8115 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
8116 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
8117 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
8118
8119 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8120
8121 PR lto/91287
8122 * builtins.c (builtin_with_linkage_p): New function.
8123 * builtins.h (builtin_with_linkage_p): New function.
8124 * symtab.c (write_symbol): Remove redundant assert.
8125 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
8126 Remove FIXME and use builtin_with_linkage_p.
8127
8128 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8129
8130 PR middle-end/91421
8131 * tree-core.h (function_decl::function_code): Change type to
8132 unsigned int.
8133 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
8134 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
8135 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
8136 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
8137 is BUILT_IN_NORMAL.
8138 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
8139 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
8140 (fndecl_built_in_p): Change the type of the "name" argument to
8141 unsigned int.
8142 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
8143 after check for DECL_BUILT_IN_CLASS.
8144 * cgraphclones.c (build_function_decl_skip_args): Use
8145 set_decl_built_in_function.
8146 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
8147 * ipa-split.c (split_function): Likewise.
8148 * langhooks.c (add_builtin_function_common): Likewise.
8149 * omp-simd-clone.c (simd_clone_create): Likewise.
8150 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8151 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
8152 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
8153 DECL_FUNCTION_CODE.
8154 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
8155 instead of DECL_FUNCTION_CODE.
8156 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
8157 instead of DECL_FUNCTION_CODE.
8158 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8159 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
8160 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
8161 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
8162 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
8163 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
8164 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
8165 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
8166 (alpha_gimple_fold_builtin): Likewise.
8167 * config/arc/arc.c (arc_expand_builtin): Likewise.
8168 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
8169 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
8170 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
8171 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8172 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8173 * config/frv/frv.c (frv_expand_builtin): Likewise.
8174 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8175 (gcn_expand_builtin): Likewise.
8176 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8177 (fold_builtin_cpu): Likewise.
8178 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8179 * config/i386/i386.c (ix86_fold_builtin): Likewise.
8180 (ix86_gimple_fold_builtin): Likewise.
8181 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8182 (ia64_expand_builtin): Likewise.
8183 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8184 * config/mips/mips.c (mips_expand_builtin): Likewise.
8185 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8186 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8187 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8188 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8189 * config/pa/pa.c (pa_expand_builtin): Likewise.
8190 * config/pru/pru.c (pru_expand_builtin): Likewise.
8191 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8192 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8193 Likewise.
8194 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8195 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8196 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8197 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8198 (rs6000_builtin_reciprocal): Likewise.
8199 * config/rx/rx.c (rx_expand_builtin): Likewise.
8200 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8201 * config/s390/s390.c (s390_expand_builtin): Likewise.
8202 * config/sh/sh.c (sh_expand_builtin): Likewise.
8203 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8204 (sparc_fold_builtin): Likewise.
8205 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8206 * config/spu/spu.c (spu_expand_builtin): Likewise.
8207 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8208 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8209 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8210 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8211 (xtensa_expand_builtin): Likewise.
8212
8213 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8214
8215 PR middle-end/91421
8216 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8217 before the DECL_FUNCTION_CODE.
8218 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8219 to check for a BUILT_IN_ALLOCA call.
8220 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8221 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
8222 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8223 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8224 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8225 for BUILT_IN_NORMAL functions.
8226 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8227 test for BUILT_IN_TM_ABORT.
8228 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8229 to check for a BUILT_IN_STACK_RESTORE call.
8230 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8231 * tree-ssa-threadedge.c
8232 (record_temporary_equivalences_from_stmts_at_dest): Check for a
8233 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8234 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8235 test for a BUILT_IN_NORMAL call instead of a negative test for
8236 an internal function call.
8237
8238 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8239
8240 * tree.h (build_vector_a_then_b): Declare.
8241 * tree.c (build_vector_a_then_b): New function.
8242 * fold-const-call.c (fold_while_ult): Likewise.
8243 (fold_const_call): Use it to handle IFN_WHILE_ULT.
8244 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8245 (aarch64_svpattern): New enum.
8246 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8247 constants through aarch64_expand_mov_immediate.
8248 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8249 than general_operand as the predicate for operand 1.
8250 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8251 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8252 insn_type.
8253 (simd_immediate_info::simd_immediate_info): New overload that
8254 takes a scalar_int_mode and an svpattern.
8255 (simd_immediate_info::u): Add a "pattern" field.
8256 (svpattern_token): New function.
8257 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8258 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8259 (aarch64_sve_move_pred_via_while): New functions.
8260 (aarch64_expand_mov_immediate): Try using
8261 aarch64_sve_move_pred_via_while for predicates that contain N ones
8262 followed by M zeros but that do not correspond to a VLnnn pattern.
8263 (aarch64_sve_pred_valid_immediate): New function.
8264 (aarch64_simd_valid_immediate): Use it instead of dealing directly
8265 with PTRUE and PFALSE.
8266 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8267 forms.
8268
8269 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8270
8271 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8272 flag.
8273 (darwin_override_options): Likewise.
8274 * config/darwin.h: Likewise.
8275 * config/darwin.opt: Likewise.
8276 * config/i386/i386.c (output_pic_addr_const): Likewise.
8277 * config/rs6000/darwin.h: Likewise.
8278 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8279 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8280 ... this TARGET_MACHO_SYMBOL_STUBS.
8281 (FUNCTION_PROFILER):Likewise.
8282 * config/i386/i386.h: Likewise.
8283
8284 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8285
8286 * config/i386/i386-expand.c (ix86_expand_vector_extract)
8287 <case E_V2SImode>: Use vec_extr path for
8288 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8289 <case E_V8QImode>: Ditto.
8290 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8291 Use SWI48 mode iterator. Use %k to output operand 0.
8292 (*mmx_pextrw): New insn pattern.
8293 (*mmx_pextrb): Ditto.
8294 (*mmx_pextrb_zext): Ditto.
8295
8296 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
8297
8298 * target.def (libc_has_function, libc_has_fast_function): Improve
8299 documentation strings.
8300 * doc/tm.texi: Regenerate.
8301
8302 2019-08-13 Caroline Tice <cmtice@google.com>
8303
8304 PR other/91396
8305 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8306 vtv_end.o or vtv_end_preinit.o files if !static.
8307
8308 2019-08-13 Olivier Hainque <hainque@adacore.com>
8309
8310 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8311
8312 2019-08-13 Olivier Hainque <hainque@adacore.com>
8313
8314 * rtlanal.c (tablejump_casesi_pattern): New function, to
8315 determine if a tablejump insn is a casesi dispatcher. Extracted
8316 from patch_jump_insn.
8317 * rtl.h (tablejump_casesi_pattern): Declare.
8318 * cfgrtl.c (patch_jump_insn): Use it.
8319 * dwarf2cfi.c (create_trace_edges): Use it.
8320
8321 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8322
8323 PR target/81800
8324 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8325 operand is larger than a long int.
8326
8327 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8328
8329 * machmode.h (opt_mode::else_mode): New function.
8330 (opt_mode::else_blk): Use it.
8331 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8332 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8333 (aarch64_gen_stepped_int_parallel): Likewise.
8334 (aarch64_stepped_int_parallel_p): Likewise.
8335 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8336 argument.
8337 * config/aarch64/aarch64.c
8338 (aarch64_expand_sve_widened_duplicate): Delete.
8339 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8340 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8341 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8342 argument. Use early returns in the !CONST_INT_P handling.
8343 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8344 than handling some inline.
8345 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8346 from...
8347 (aarch64_simd_container_mode): ...here.
8348 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8349 (aarch64_sve_ld1rq_operand_p): New functions.
8350 * config/aarch64/predicates.md (descending_int_parallel)
8351 (aarch64_sve_ld1rq_operand): New predicates.
8352 * config/aarch64/constraints.md (UtQ): New constraint.
8353 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8354 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8355 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8356 (@aarch64_sve_reinterpret<mode>): New expander.
8357 (*aarch64_sve_reinterpret<mode>): New pattern.
8358 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8359 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8360 (*sve_ld1rq<Vesize>): Replace with...
8361 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8362
8363 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
8364
8365 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8366 16:12.
8367
8368 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8369
8370 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8371 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8372 (msp430_check_path_for_devices): New.
8373 (parse_devices_csv_1): New.
8374 (parse_devices_csv): New.
8375 (msp430_extract_mcu_data): Try to find devices.csv and search for the
8376 MCU data in devices.csv before using the hard-coded data.
8377 Warn if devices.csv isn't found and the MCU wasn't found in the
8378 hard-coded data either.
8379 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8380 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8381 Search for devices.csv on -I and -L paths.
8382 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8383 msp430_set_driver_var.
8384 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8385 -mdevices-csv-loc=.
8386 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8387 searched for devices.csv.
8388 (mwarn-devices-csv): Document option.
8389
8390 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8391
8392 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8393 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8394 Use a single Dn alternative instead of separate Dz and Dm
8395 alternatives. Use aarch64_output_sve_move_immediate.
8396 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8397 function.
8398 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8399 for predicates too.
8400 (aarch64_output_sve_mov_immediate): Handle predicate modes.
8401 (aarch64_output_ptrue): Delete.
8402
8403 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8404
8405 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8406 INDEX.
8407 (simd_immediate_info::value, simd_immediate_info::step)
8408 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8409 with...
8410 (simd_immediate_info::u): ...this new union.
8411 (simd_immediate_info::simd_immediate_info): Update accordingly.
8412 (aarch64_output_simd_mov_immediate): Likewise.
8413 (aarch64_output_sve_mov_immediate): Likewise.
8414
8415 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8416
8417 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8418 extra_gcc_objs.
8419 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8420 (msp430_select_cpu): New spec function.
8421 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8422 MCU data.
8423 * config/msp430/msp430-devices.c: New file.
8424 * config/msp430/msp430-devices.h: New file.
8425 * config/msp430/msp430.c: Remove msp430_mcu_data.
8426 (msp430_option_override): Use msp430_extract_mcu_data to extract
8427 MCU data.
8428 (msp430_use_f5_series_hwmult): Likewise.
8429 (use_32bit_hwmult): Likewise.
8430 (msp430_no_hwmult): Likewise.
8431 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8432 assembler.
8433 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8434 and -mcpu option.
8435 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8436 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8437 Remove hard-coded MCU multilib data.
8438
8439 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8440
8441 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8442 based on the mode instead of testing properties of it.
8443
8444 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8445
8446 * doc/md.texi: Document the x and y constraints for AArch64.
8447 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8448 (FP_LO8_REGS): New reg_class.
8449 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8450 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8451 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8452 * config/aarch64/predicates.md (aarch64_simd_register): Use
8453 FP_REGNUM_P instead of checking the classes manually.
8454 * config/aarch64/constraints.md (y): New constraint.
8455
8456 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
8457
8458 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8459 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8460 * config/aarch64/aarch64-simd.md
8461 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8462 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8463 from the asm template.
8464 * config/aarch64/aarch64-sve.md
8465 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8466 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8467 from the asm template.
8468 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8469 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8470 from the asm template.
8471 * config/aarch64/aarch64-simd-builtins.def: Update comment.
8472
8473 2019-08-13 Martin Liska <mliska@suse.cz>
8474
8475 * value-prof.c (gimple_ic_transform): Add new line.
8476 Print details with MSG_NOTE.
8477
8478 2019-08-13 Martin Liska <mliska@suse.cz>
8479
8480 * doc/invoke.texi: Document automatic detection of jobserver.
8481 * lto-wrapper.c (run_gcc): Detect jobserver always.
8482
8483 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
8484
8485 * config/i386/i386-expand.c (ix86_expand_vector_set)
8486 <case E_V2SImode>: Use vec_merge path for
8487 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8488 <case E_V8QImode>: Ditto.
8489 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8490 (*mmx_pinsrb): Ditto.
8491
8492 2019-08-12 Jakub Jelinek <jakub@redhat.com>
8493
8494 PR target/83250
8495 PR target/91340
8496 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8497 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8498 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8499 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8500 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8501
8502 2019-08-12 Richard Biener <rguenther@suse.de>
8503
8504 PR lto/91375
8505 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8506 flag_devirtualize.
8507
8508 2019-08-12 Richard Biener <rguenther@suse.de>
8509
8510 PR driver/91130
8511 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8512 lang_mask option, always use CL_DRIVER.
8513 (get_options_from_collect_gcc_options): Adjust.
8514 (find_and_merge_options): Likewise.
8515 (run_gcc): Likewise.
8516
8517 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8518
8519 * ipa-predicate.c (add_condition): Restore inverted test.
8520
8521 2019-08-10 Jakub Jelinek <jakub@redhat.com>
8522
8523 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8524 (enum omp_clause_device_type_kind): New enum.
8525 (struct tree_omp_clause): Add subcode.device_type_kind.
8526 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8527 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8528 for device_type clause.
8529 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8530 * tree-pretty-print.c (dump_omp_clause): Likewise.
8531
8532 PR target/91408
8533 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8534 vector_operand.
8535
8536 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
8537
8538 * reload1.c (finish_spills): Do not check ira_conflicts_p when
8539 handling spilled pseudos.
8540
8541 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8542
8543 PR target/91386
8544 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8545 to preserve the contents of the original insns.
8546
8547 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
8548
8549 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8550 (addsi3_compare_op2): Likewise.
8551
8552 2019-08-09 Martin Liska <mliska@suse.cz>
8553
8554 * alias.c (alias_ptr_types_compatible_p): Strengten
8555 type comparison in LTO mode.
8556
8557 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
8558
8559 PR middle-end/90313
8560 * tree-tailcall.c (find_tail_calls): Reject calls that might
8561 read from an escaped RESULT_DECL.
8562
8563 2019-08-09 Martin Liska <mliska@suse.cz>
8564
8565 * doc/invoke.texi: Document the option value.
8566 * lto-wrapper.c (run_gcc): Set auto_parallel
8567 only with -flto=auto.
8568
8569 2019-08-09 Martin Liska <mliska@suse.cz>
8570
8571 * opts.c (common_handle_option): Error for an invalid argument
8572 to -flto=.
8573
8574 2019-08-09 Martin Liska <mliska@suse.cz>
8575
8576 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8577 use dump_printf to report optimization.
8578 (sem_variable::merge): Likwise.
8579 (sem_item_optimizer::merge_classes): Use dump_printf to report
8580 ICF hits.
8581
8582 2019-08-09 Martin Liska <mliska@suse.cz>
8583
8584 * value-prof.c (gimple_divmod_fixed_value_transform):
8585 Use dump_printf_loc.
8586 (gimple_mod_pow2_value_transform): Likewise.
8587 (gimple_mod_subtract_transform): Likewise.
8588 (init_node_map): Likewise.
8589 (gimple_ic_transform): Likewise.
8590 (gimple_stringops_transform): Likewise.
8591
8592 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8593
8594 * doc/extend.texi: Add const qualifier to ld intrinsics.
8595
8596 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8597
8598 * config/rs6000/dfp.md (D64_D128): Rename to ...
8599 (DDTD): ... this, throughout.
8600 (dfp_suffix): Rename to ...
8601 (q): ... this, throughout.
8602
8603 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8604
8605 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8606 (dfp_suffix): Ditto.
8607 (adddd3, addtd3): Merge to ...
8608 (add<mode>3 for D64_D128): ... this.
8609 (subdd3, subtd3): Merge to ...
8610 (sub<mode>3 for D64_D128): ... this.
8611 (muldd3, multd3): Merge to ...
8612 (mul<mode>3 for D64_D128): ... this.
8613 (divdd3, divtd3): Merge to ...
8614 (div<mode>3 for D64_D128): ... this.
8615 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8616 (*cmp<mode>_internal1 for D64_D128): ... this.
8617 (ftruncdd2, ftrunctd2): Merge to ...
8618 (ftrunc<mode>2 for D64_D128): ... this.
8619 (fixdddi2, fixtddi2): Merge to ...
8620 (fix<mode>di2 for D64_D128): ... this.
8621
8622 2019-08-08 Jim Wilson <jimw@sifive.com>
8623
8624 PR target/91229
8625 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8626 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
8627 Pass into recursive call.
8628 (riscv_flatten_aggregate_argument): New arg. Pass to
8629 riscv_flatten_aggregate_field.
8630 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
8631 riscv_flatten_aggregate_argument twice, with false and true as last
8632 arg. Process result twice. Compare results and warn if different.
8633 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8634
8635 2019-08-08 Martin Liska <mliska@suse.cz>
8636
8637 PR bootstrap/91352
8638 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8639 * lto-wrapper.c (jobserver_active_p): Likewise.
8640
8641 2019-08-08 Martin Liska <mliska@suse.cz>
8642
8643 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8644 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8645 (create_version_clone_with_body): Likewise.
8646
8647 2019-08-08 Jakub Jelinek <jakub@redhat.com>
8648
8649 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8650 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8651 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8652 GOVD_EXPLICIT flags.
8653 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8654 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8655 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8656 call install_var_field with mask 11 instead of 3.
8657 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8658 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8659
8660 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8661
8662 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8663 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8664
8665 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8666
8667 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8668 MOVPRFX alternatives. Make the GPR alternatives more expensive
8669 than the FPR ones.
8670
8671 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8672
8673 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8674 Disparage the GPR alternative relative to the FPR one.
8675 Fix handling of 8-bit and 16-bit FPR values.
8676
8677 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8678
8679 * config/aarch64/iterators.md (BITWISEV): Delete.
8680 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8681 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8682 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8683 UNSPEC_FMINNMV, UNSPEC_FMINV.
8684 (bit_reduc_op): Delete.
8685 (sve_int_op): New int attribute.
8686 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8687 UNSPEC_FMINNMV, UNSPEC_FMINV.
8688 * config/aarch64/aarch64-sve.md
8689 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8690 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8691 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8692 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8693 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8694 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8695 new patterns.
8696 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8697 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8698 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8699 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8700 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8701 new patterns.
8702
8703 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8704
8705 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8706 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8707 (fms<mode>4, *fms<mode>4): Replace with...
8708 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8709 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8710 Use unspecs instead of rtx codes.
8711 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8712 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8713
8714 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8715
8716 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8717 int iterator.
8718 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8719 * config/aarch64/aarch64-sve.md
8720 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8721 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8722 use a single unspec for the rhs.
8723 (*<su><maxmin><mode>3): Delete.
8724 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8725
8726 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8727
8728 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8729 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8730 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8731 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8732 (optab, sve_fp_op): Handle them.
8733 (SVE_FP_UNARY): Delete.
8734 (optab): Remove sqrt entry.
8735 (sve_fp_op): Remove neg, abs and sqrt entries.
8736 (SVE_COND_FP_UNARY): New int iterator.
8737 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8738 (*<frint_pattern><mode>2): Delete.
8739 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8740 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8741 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8742 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8743
8744 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8745
8746 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8747
8748 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8749
8750 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8751 (UNSPEC_COND_FADD): ...this.
8752 (UNSPEC_COND_SUB): Rename to...
8753 (UNSPEC_COND_FSUB): ...this.
8754 (UNSPEC_COND_MUL): Rename to...
8755 (UNSPEC_COND_FMUL): ...this.
8756 (UNSPEC_COND_DIV): Rename to...
8757 (UNSPEC_COND_FDIV): ...this.
8758 (UNSPEC_COND_MAX): Rename to...
8759 (UNSPEC_COND_FMAXNM): ...this.
8760 (UNSPEC_COND_MIN): Rename to...
8761 (UNSPEC_COND_FMINNM): ...this.
8762 (UNSPEC_COND_LT): Rename to...
8763 (UNSPEC_COND_FCMLT): ...this.
8764 (UNSPEC_COND_LE): Rename to...
8765 (UNSPEC_COND_FCMLE): ...this.
8766 (UNSPEC_COND_EQ): Rename to...
8767 (UNSPEC_COND_FCMEQ): ...this.
8768 (UNSPEC_COND_NE): Rename to...
8769 (UNSPEC_COND_FCMNE): ...this.
8770 (UNSPEC_COND_GE): Rename to...
8771 (UNSPEC_COND_FCMGE): ...this.
8772 (UNSPEC_COND_GT): Rename to...
8773 (UNSPEC_COND_FCMGT): ...this.
8774 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8775 (sve_fp_op_rev): Update accordingly.
8776 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8777
8778 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8779
8780 * config/aarch64/aarch64-sve.md: Reorganize contents and add
8781 banner comments.
8782 * config/aarch64/check-sve-md.awk: New file.
8783 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8784 (insn-conditions.md): Depend on it.
8785
8786 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
8787
8788 PR target/91385
8789 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8790 (*negsi2_cmpz_zext): Ditto.
8791
8792 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8793
8794 * config/aarch64/iterators.md (commutative): Remove.
8795
8796 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
8797
8798 PR driver/91130
8799 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8800 processing COLLECT_GCC_OPTIONS.
8801 (run_gcc): Likewise.
8802
8803 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
8804
8805 PR tree-optimization/91109
8806 * lra-remat.c (update_scratch_ops): Remove assignment of the
8807 hard register.
8808
8809 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
8810
8811 * data-streamer.h (streamer_write_poly_uint64): Declare.
8812 (streamer_read_poly_uint64): Likewise.
8813 * data-streamer-in.c (streamer_read_poly_uint64): New function.
8814 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8815 * ipa-predicate.h (condition::size): Turn into a poly_int64.
8816 (add_condition): Take a poly_int64 size.
8817 * ipa-predicate.c (add_condition): Likewise.
8818 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8819 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8820 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8821 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8822 condition::size as a poly_int64.
8823 (unmodified_parm_1): Take a poly_int64 size pointer.
8824 (unmodified_parm): Likewise.
8825 (unmodified_parm_or_parm_agg_item): Likewise.
8826 (set_cond_stmt_execution_predicate): Update accordingly.
8827 (set_switch_stmt_execution_predicate): Likewise.
8828 (will_be_nonconstant_expr_predicate): Likewise.
8829 (will_be_nonconstant_predicate): Likewise.
8830 (inline_read_section): Stream condition::size as a poly_int.
8831 (ipa_fn_summary_write): Likewise.
8832
8833 2019-08-07 Martin Liska <mliska@suse.cz>
8834
8835 * fold-const.c (twoval_comparison_p): Replace int
8836 with bool as a return type.
8837 (simple_operand_p): Likewise.
8838 (operand_equal_p): Replace int with bool as a return type.
8839 * fold-const.h (operand_equal_p): Likewise.
8840
8841 2019-08-07 Jakub Jelinek <jakub@redhat.com>
8842
8843 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8844 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8845 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8846 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8847 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8848 * tree-pretty-print.c (dump_omp_clause): Likewise.
8849 * tree-nested.c (convert_nonlocal_omp_clauses,
8850 convert_local_omp_clauses): Likewise.
8851 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8852 Likewise.
8853 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8854 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8855 clause with array or reference to array types, no matter what type
8856 except for reference it has.
8857
8858 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
8859
8860 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8861
8862 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
8863
8864 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8865 (arch_canonicalize): Support rv32g and rv64g and fix error
8866 handling.
8867
8868 2019-08-06 Martin Liska <mliska@suse.cz>
8869
8870 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8871 and DECL_IS_OPERATOR_DELETE_P.
8872
8873 2019-08-06 Jakub Jelinek <jakub@redhat.com>
8874
8875 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8876 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
8877 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8878 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8879 (gimplify_omp_for): Don't do C++ random access iterator clause
8880 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
8881 don't predetermine the artificial iterator in case of C++ random
8882 access iterators as lastprivate, but private. For OMP_LOOP, force
8883 bind expr around simd body and force for_pre_body before the
8884 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8885 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8886 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8887 diff var of C++ random access iterators. Handle
8888 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8889 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8890 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8891 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8892 * omp-low.c (lower_rec_input_clauses): For
8893 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8894 variables instead of default constructing them.
8895 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8896 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8897 is_taskloop_ctx check from the assert to the guarding condition.
8898
8899 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
8900
8901 * config/riscv/multilib-generator: (canonical_order): New.
8902 (arch_canonicalize): Dito.
8903 Apply arch_canonicalize for alts.
8904
8905 2019-08-05 Martin Sebor <msebor@redhat.com>
8906
8907 * doc/extend.texi (Common Variable Attributes): Document alias
8908 attribute.
8909
8910 2019-08-05 Marek Polacek <polacek@redhat.com>
8911
8912 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8913 * doc/invoke.texi: Document -Wcomma-subscript.
8914
8915 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8916
8917 * tree-core.h (tree_function_decl): Make function_code an
8918 independent field. Group the remaining bitfields into bytes
8919 and move decl_type so that it contines to be at a byte boundary.
8920 Leave 12 bits for future expansion.
8921
8922 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8923
8924 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8925 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8926 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8927 IFN_MASK_STORE.
8928
8929 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
8930
8931 * gimple.h (gimple_move_vops): Declare.
8932 * gimple.c (gimple_move_vops): New function
8933 * gimple-fold.c (replace_call_with_call_and_fold)
8934 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8935 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8936 (gimple_fold_call): Use it.
8937 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8938 * tree-call-cdce.c (use_internal_fn): Likewise.
8939 * tree-if-conv.c (predicate_load_or_store): Likewise.
8940 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8941 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8942 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8943 (update_call_from_tree): Likewise.
8944 * tree-vect-stmts.c (vectorizable_load): Likewise.
8945 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8946
8947 2019-08-05 Martin Liska <mliska@suse.cz>
8948
8949 PR c++/91334
8950 * tree-ssa-dce.c (propagate_necessity): Handle new operators
8951 with not arguments.
8952 (eliminate_unnecessary_stmts): Likewise.
8953
8954 2019-08-05 Richard Biener <rguenther@suse.de>
8955
8956 PR middle-end/91169
8957 * fold-const.c (get_array_ctor_element_at_index): Create
8958 offset_ints according to the sign of the index type and treat
8959 that as signed if it is obviously so.
8960
8961 2019-08-05 Jakub Jelinek <jakub@redhat.com>
8962
8963 PR target/91341
8964 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8965 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8966 _mm256_storeu2_m128i): New function.
8967
8968 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
8969
8970 * config/riscv/riscv.c (riscv_promote_function_mode): New.
8971 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8972
8973 2019-08-05 Alan Modra <amodra@gmail.com>
8974
8975 PR target/91349
8976 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8977 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8978
8979 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
8980
8981 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8982 bug that was fixed in Tcl 8.6.1.
8983
8984 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
8985
8986 * config/rs6000/future.md: New file.
8987 * config/rs6000/rs6000.md: Include future.md.
8988 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8989
8990 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
8991
8992 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8993 check to use targetm.slow_unaligned_access instead.
8994
8995 * function.c (assign_param_data_one): Remove unused data members.
8996
8997 2019-08-02 Steve Ellcey <sellcey@marvell.com>
8998
8999 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
9000 build_distinct_type_copy.
9001 (simd_clone_adjust_argument_types): Ditto.
9002 (simd_clone_adjust): Call build_distinct_type_copy here.
9003 (expand_simd_clones): Ditto.
9004
9005 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9006
9007 PR target/91201
9008 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
9009
9010 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
9011
9012 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
9013 from 'const void *'.
9014 (sort_locs_in_loop_postorder_cmp): Likewise.
9015
9016 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
9017
9018 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
9019 (hot-bb-count-ws-permille): Likewise.
9020 (hot-bb-frequency-fraction): Likewise.
9021 (unlikely-bb-count-fraction): Likewise.
9022 * params.def (hot-bb-count-fraction): Rework description.
9023 (hot-bb-count-ws-permille): Likewise.
9024 (hot-bb-frequency-fraction): Likewise.
9025 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
9026 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
9027
9028 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
9029
9030 PR target/91323
9031 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
9032 Return false.
9033
9034 2019-08-02 Richard Biener <rguenther@suse.de>
9035
9036 * vec.h (vec::sort): Add gcc_qsort_r support.
9037 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
9038 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
9039 to gcc_qsort_r style callback.
9040 (sort_locs_in_loop_postorder_cmp): Likewise.
9041 (analyze_memory_references): Use gcc_sort_r interfaces.
9042 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
9043
9044 2019-08-02 Martin Liska <mliska@suse.cz>
9045
9046 PR lto/91313
9047 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
9048 to detect working job server.
9049 (driver::detect_jobserver): Test whether jobserver
9050 is active from GCC driver. That will prevent situation where
9051 GCC is invoked from a LD plugin and the linker already uses
9052 file descriptors suggested by make. That leads to a wrong
9053 detection.
9054 * gcc.h (driver): Add detect_jobserver.
9055 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
9056 not scanning for --jobserver-auth prefix.
9057
9058 2019-08-02 Jakub Jelinek <jakub@redhat.com>
9059
9060 PR tree-optimization/91201
9061 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
9062 V16QImode extraction without sse4.1 try to use V4SImode lowpart
9063 extraction.
9064
9065 2019-08-01 Martin Sebor <msebor@redhat.com>
9066
9067 PR c++/90947
9068 * tree.c (type_initializer_zero_p): Define.
9069 * tree.h (type_initializer_zero_p): New function.
9070
9071 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9072
9073 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
9074
9075 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
9076
9077 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
9078 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
9079 * predict.c (maybe_hot_count_p): Likewise.
9080 (maybe_hot_bb_p): Tweak comment.
9081 (maybe_hot_edge_p): Likewise.
9082 (probably_never_executed): Likewise. Minor tweak.
9083 (probably_never_executed_bb_p): Likewise.
9084 (unlikely_executed_edge_p): Likewise.
9085 (probably_never_executed_edge_p): Likewise.
9086 (optimize_function_for_size_p): Likewise.
9087 (optimize_function_for_speed_p): Likewise.
9088 (function_optimization_type): Likewise.
9089 (optimize_bb_for_size_p): Likewise.
9090 (optimize_bb_for_speed_p): Likewise.
9091 (bb_optimization_type): Likewise.
9092 (optimize_edge_for_size_p): Likewise.
9093 (optimize_edge_for_speed_p): Likewise.
9094 (optimize_insn_for_size_p): Likewise.
9095 (optimize_insn_for_speed_p): Likewise.
9096 (optimize_loop_for_size_p): Likewise.
9097 (optimize_loop_for_speed_p): Likewise.
9098 (optimize_loop_nest_for_speed_p): Likewise.
9099 (optimize_loop_nest_for_size_p): Likewise.
9100 (predictable_edge_p): Likewise.
9101 (handle_missing_profiles): Minor tweak.
9102
9103 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
9104
9105 * config/rs6000/predicates.md (pcrel_external_address): Update
9106 comment.
9107
9108 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9109
9110 PR target/85693
9111 * config/i386/mmx.md (usadv8qi): New expander.
9112
9113 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
9114
9115 PR c++/90590
9116 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
9117 with reserved names that are in a system header.
9118
9119 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
9120
9121 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
9122 (*vec_extractv2si_0_zext_sse4): New insn pattern.
9123 (*vec_extractv2si_0_zext): Ditto.
9124 (*vec_extractv2si_1): Add (rm,x) alternative.
9125 (*vec_extractv2si_1_zext): New insn pattern.
9126 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
9127 insn constraint.
9128
9129 2019-08-01 Richard Biener <rguenther@suse.de>
9130
9131 * domwalk.c (bb_postorder): Remove static variable.
9132 (cmp_bb_postorder): Adjust.
9133 (sort_bbs_postorder): Adjust and use gcc_sort_r.
9134 (dom_walker::walk): Adjust.
9135
9136 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
9137
9138 * sort.cc (sort_r_ctx): New struct.
9139 (reorder23): Make templated on context type.
9140 (reorder45): Ditto.
9141 (cmp1): Ditto. Adjust signature.
9142 (netsort): Ditto.
9143 (mergesort): Ditto.
9144 [CHECKING_P] (cmp2to3): New static function. Use it...
9145 (gcc_qsort) [CHECKING_P]: ...here.
9146 (gcc_sort_r): New function.
9147 * system.h (sort_r_cmp_fn): New function typedef.
9148 (qsort_chk): Adjust signature.
9149 (gcc_sort_r): Declare.
9150 * vec.c (qsort_chk_error): Adjust.
9151 (qsort_chk): Adjust.
9152
9153 2019-08-01 Richard Biener <rguenther@suse.de>
9154
9155 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
9156 (compute_antic): Localize it here.
9157
9158 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
9159
9160 * common/config/riscv/riscv-common.c: Check -march string ends
9161 with null.
9162
9163 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
9164
9165 * ipa-devirt.c (type_warning_cmp): Make static.
9166 (decl_warning_cmp): Ditto.
9167
9168 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
9169
9170 PR target/91050
9171 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9172 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9173 use of deleted rs6000_dejagnu_cpu_index variable.
9174 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9175 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9176 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9177 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9178 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9179 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9180
9181 2019-07-31 Richard Biener <rguenther@suse.de>
9182
9183 PR tree-optimization/91280
9184 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9185 Decompose MEM_REF manually for offset handling.
9186
9187 2019-07-31 Richard Biener <rguenther@suse.de>
9188
9189 PR tree-optimization/91293
9190 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9191 of reduction stmts.
9192
9193 2019-07-31 Matt Thomas <matt@3am-software.com>
9194 Nick Hudson <nick@nthcliff.demon.co.uk>
9195 Matthew Green <mrg@eterna.com.au>
9196 Maya Rashish <coypu@sdf.org>
9197
9198 * config.gcc (hppa*-*-netbsd*): New target.
9199 * config/pa/pa-netbsd.h: New file.
9200 * config/pa/pa32-netbsd.h: New file.
9201
9202 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9203
9204 PR tree-optimization/91201
9205 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9206
9207 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
9208
9209 * config/gcn/gcn-valu.md
9210 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9211 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9212 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9213 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9214 struct ilist. Add nops for delayeduse insns.
9215 * config/gcn/gcn.md (delayeduse): New attribute.
9216 (*movbi): Remove s_waitcnt from stores.
9217 (*mov<mode>_insn): Likewise.
9218 (*movti_insn): Likewise. Add delayeduse attribute.
9219 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9220 (atomic_store<mode>): Remove or adjust s_waitcnt.
9221
9222 2019-07-31 Richard Biener <rguenther@suse.de>
9223
9224 * vr-values.h (vr_values::swap_vr_value): New.
9225 (vr_values::free_value_range): likewise.
9226 * vr-values.c (vr_values::swap_vr_value): Implement.
9227 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9228 Do not return a range or take a var.
9229 (evrp_range_analyzer::stack): Change back to recording a non-const
9230 value_range *.
9231 * gimple-ssa-evrp-analyze.c
9232 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9233 value-range.
9234 (evrp_range_analyzer::pop_to_marker): Adjust.
9235 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9236 (evrp_range_analyzer::pop_value_range): Likewise. Free the
9237 no longer needed value-range.
9238
9239 2019-07-31 Martin Liska <mliska@suse.cz>
9240
9241 * tree-ssa-dce.c (propagate_necessity): Delete operator can
9242 have size and (or) alignment as 2nd and later arguments.
9243 Mark all of them as necessary.
9244
9245 2019-07-31 Richard Biener <rguenther@suse.de>
9246
9247 PR tree-optimization/91178
9248 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9249 Use tail-recursion.
9250
9251 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9252
9253 PR tree-optimization/91201
9254 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9255 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9256 TARGET_AVX512F.
9257 (reduc_plus_scal_<mode>): Improve formatting by introducing
9258 a temporary.
9259
9260 2019-07-31 Sudakshina Das <sudi.das@arm.com>
9261
9262 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9263 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9264 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9265 (aarch64_init_tme_builtins): New.
9266 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9267 (aarch64_expand_builtin_tme): New.
9268 (aarch64_expand_builtin): Handle TME builtins.
9269 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9270 __ARM_FEATURE_TME when enabled.
9271 * config/aarch64/aarch64-option-extensions.def: Add "tme".
9272 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9273 (TARGET_TME): New.
9274 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9275 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9276 UNSPECV_TCANCEL.
9277 (tstart, ttest, tcommit, tcancel): New instructions.
9278 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9279 (__tcancel, __ttest): New.
9280 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9281 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9282 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9283 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9284 * config/arm/types.md: Add new tme type attr.
9285 * doc/invoke.texi: Document "tme".
9286
9287 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
9288
9289 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9290 warn_unused_result attribute.
9291 (cmse_check_address_range): Add warn_unused_result attribute.
9292
9293 2019-07-31 Richard Biener <rguenther@suse.de>
9294
9295 PR tree-optimization/91257
9296 * tree-vrp.c (union_ranges): Unify equality and less tests
9297 by using compare_values. Re-order cheap tests first.
9298
9299 2019-07-31 Jakub Jelinek <jakub@redhat.com>
9300
9301 PR middle-end/91301
9302 * gimplify.c (gimplify_omp_for): If for class iterator on
9303 distribute parallel for there is no data sharing clause
9304 on inner_for_stmt, look for private clause on combined
9305 parallel too and if found, move it to inner_for_stmt.
9306
9307 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
9308
9309 * lra-int.h (lra_operand_data): Remove early_clobber field.
9310 (lra_insn_reg): Likewise.
9311 * lra.c (debug_operand_data): Update accordingly.
9312 (setup_operand_alternative): Likewise.
9313 (new_insn_reg): Likewise. Remove early_clobber parameter.
9314 (collect_non_operand_hard_regs): Update call accordingly.
9315 Don't assign to lra_insn_reg::early_clobber.
9316 (add_regs_to_insn_regno_info): Remove early_clobber parameter
9317 and update calls to new_insn_reg.
9318 (lra_update_insn_regno_info): Update calls accordingly.
9319 * lra-constraints.c (update_and_check_small_class_inputs): Take the
9320 alternative number as a parameter and test whether the operand
9321 is earlyclobbered in that particular alternative.
9322 (process_alt_operands): Update call accordingly. Use per-alternative
9323 checks for earyclobber here too.
9324 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9325 against zero for IRA_UNKNOWN_ALT.
9326
9327 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9328
9329 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9330
9331 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
9332
9333 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9334 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9335
9336 2019-07-30 Martin Liska <mliska@suse.cz>
9337
9338 PR ipa/89330
9339 * cgraph.c (cgraph_edge::make_direct): Use
9340 edge->indirect_unknown_callee as edge->resolve_speculation can
9341 deallocate edge which is this pointer.
9342
9343 2019-07-30 Richard Biener <rguenther@suse.de>
9344
9345 PR tree-optimization/91257
9346 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9347
9348 2019-07-30 Martin Liska <mliska@suse.cz>
9349
9350 * doc/invoke.texi: Document new behavior.
9351 * lto-wrapper.c (cpuset_popcount): New function
9352 is a copy of libgomp/config/linux/proc.c.
9353 (init_num_threads): Likewise.
9354 (run_gcc): Automatically detect core count for -flto.
9355 (jobserver_active_p): New function.
9356
9357 2019-07-30 Richard Biener <rguenther@suse.de>
9358
9359 PR tree-optimization/91257
9360 * bitmap.h (bitmap_ior_into_and_free): Declare.
9361 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9362 whether to add the unliked element to the freelist.
9363 (bitmap_list_insert_element_after): Add defaulted param for
9364 an already allocated element.
9365 (bitmap_ior_into_and_free): New function.
9366 * tree-ssa-structalias.c (condense_visit): Reduce the
9367 ponts-to and edge bitmaps of the SCC members in a
9368 logarithmic fashion rather than all to one.
9369
9370 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
9371
9372 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9373 parameter. When nonnull, make sure that the addition or subtraction
9374 has the same condition.
9375 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9376 for CFN_COND_MUL too.
9377
9378 2019-07-30 Richard Biener <rguenther@suse.de>
9379
9380 PR tree-optimization/91291
9381 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9382 constant values.
9383
9384 2019-07-30 Jakub Jelinek <jakub@redhat.com>
9385
9386 PR middle-end/91216
9387 * omp-low.c (global_nonaddressable_vars): New variable.
9388 (use_pointer_for_field): For global decls, if they are non-addressable,
9389 remember it in the global_nonaddressable_vars bitmap, if they are
9390 addressable and in the global_nonaddressable_vars bitmap, ignore their
9391 TREE_ADDRESSABLE bit.
9392 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9393 vars in global_nonaddressable_vars bitmap.
9394 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9395
9396 PR target/91150
9397 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9398 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
9399 comparison to unsigned HOST_WIDE_INT before shifting it left.
9400
9401 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
9402
9403 * config/i386/i386.md (movstrict<mode>): Use register_operand
9404 predicate for operand 0. Add expander condition. Assert that
9405 operand 0 is a SUBREG RTX.
9406 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9407 Update operand constraints and insn condition.
9408 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9409 (zero_extendqihi2_and): Do not call gen_movstrictqi.
9410 (*setcc_qi_slp): Use register_operand predicate for operand 0.
9411 Update operand 0 constraints.
9412 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9413
9414 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9415
9416 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9417 when -m{code,data}-region are used without -mlarge.
9418 * config/msp430/msp430.c (msp430_option_override): Error when a
9419 non-default code or data region is used without -mlarge.
9420 (msp430_section_attr): Emit a warning and do not add upper/lower/either
9421 attributes when they are used without -mlarge.
9422
9423 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9424
9425 PR target/70320
9426 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9427
9428 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9429
9430 PR middle-end/91242
9431 * wide-int.h (generic_wide_int::sext_elt): New function.
9432 * inchash.h (hash::add_wide_int): Use it instead of elt.
9433
9434 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9435
9436 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9437 CODE_FOR_arm_##.
9438 * config/arm/arm.md (<crc_variant>): Rename to...
9439 (arm_<crc_variant>): ... This.
9440 (<cdp>): Rename to...
9441 (arm_<cdp>): ... This.
9442 (<ldc>): Rename to...
9443 (arm_<ldc>): ... This.
9444 (<stc>): Rename to...
9445 (arm_<stc>): ... This.
9446 (<mcr>): Rename to...
9447 (arm_<mcr>): ... This.
9448 (<mrc>): Rename to...
9449 (arm_<mrc>): ... This.
9450 (<mcrr>): Rename to...
9451 (arm_<mcrr>): ... This.
9452 (<mrrc>): Rename to...
9453 (arm_<mrrc>): ... This.
9454
9455 2019-07-29 Richard Biener <rguenther@suse.de>
9456
9457 PR tree-optimization/91257
9458 * tree-ssa-sccvn.h (struct vn_avail): New.
9459 (struct vn_ssa_aux): Add avail member.
9460 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9461 member, add m_avail_freelist one.
9462 (rpo_elim::~rpo_elim): Remove.
9463 (rpo_elim::eliminate_avail): Adjust to new avail tracking
9464 data structure.
9465 (rpo_elim::eliminate_push_avail): Likewise.
9466 (do_unwind): Likewise.
9467 (do_rpo_vn): Likewise.
9468
9469 2019-07-29 Richard Biener <rguenther@suse.de>
9470
9471 PR tree-optimization/91257
9472 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9473 most cases, instead call compare_values which handles the
9474 symbolic ranges we handle specially.
9475 (compare_values_warnv): Do not call operand_less_p but open-code
9476 the effective fold calls. Avoid converting so much.
9477
9478 2019-07-29 Martin Liska <mliska@suse.cz>
9479
9480 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9481 remove LHS of operator new call. It's handled latter.
9482
9483 2019-07-29 Richard Biener <rguenther@suse.de>
9484
9485 PR tree-optimization/91267
9486 * vr-values.c (vr_values::update_value_range): Add early return
9487 for effectively VARYING lattice entry.
9488
9489 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9490
9491 PR debug/86638
9492 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9493 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9494 necessary if keep_all_vdefs_p is true.
9495 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9496 that keep_all_vdefs_p is false.
9497 (mark_all_reaching_defs_necessary): Likewise.
9498 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9499
9500 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9501
9502 * common.opt (Og): Change the initial value of flag_dse to 0.
9503 * opts.c (default_options_table): Move OPT_ftree_dse from
9504 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
9505 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
9506 entry before the OPT_ftree_sra entry.
9507 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9508 of flags disabled by Og.
9509
9510 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9511
9512 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9513 variables for -Og.
9514
9515 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9516
9517 * doc/sourcebuild.texi (check-function-bodies): Document.
9518
9519 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9520
9521 * simplify-rtx.c (simplify_const_unary_operation): Fold a
9522 VEC_DUPLICATE of a fixed-length vector even if the result
9523 is variable-length. Likewise fold a duplicate of a
9524 variable-length vector if the variable-length vector is
9525 itself a duplicate of a fixed-length sequence.
9526 (test_vector_ops_duplicate): Test more cases.
9527
9528 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
9529
9530 * vector-builder.h (vector_builder): Add a shape template parameter.
9531 (vector_builder::new_unary_operation): New function, generalizing
9532 the old tree_vector_builder function.
9533 (vector_builder::new_binary_operation): Likewise.
9534 (vector_builder::binary_encoded_nelts): Likewise.
9535 * int-vector-builder.h (int_vector_builder): Update template
9536 parameters to vector_builder.
9537 (int_vector_builder::shape_nelts): New function.
9538 * rtx-vector-builder.h (rtx_vector_builder): Update template
9539 parameters to vector_builder.
9540 (rtx_vector_builder::shape_nelts): New function.
9541 (rtx_vector_builder::nelts_of): Likewise.
9542 (rtx_vector_builder::npatterns_of): Likewise.
9543 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9544 * tree-vector-builder.h (tree_vector_builder): Update template
9545 parameters to vector_builder.
9546 (tree_vector_builder::shape_nelts): New function.
9547 (tree_vector_builder::nelts_of): Likewise.
9548 (tree_vector_builder::npatterns_of): Likewise.
9549 (tree_vector_builder::nelts_per_pattern_of): Likewise.
9550 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9551 (tree_vector_builder::new_binary_operation): Delete.
9552 (tree_vector_builder::binary_encoded_nelts): Likewise.
9553 * simplify-rtx.c: Include rtx-vector-builder.h.
9554 (distributes_over_addition_p): New function.
9555 (simplify_const_unary_operation)
9556 (simplify_const_binary_operation): Generalize handling of vector
9557 constants to include variable-length vectors.
9558 (test_vector_ops_series): Add more tests.
9559
9560 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
9561
9562 PR lto/91222
9563 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9564 than INDENTIFIER_POINTER.
9565
9566 2019-07-28 Martin Liska <mliska@suse.cz>
9567
9568 PR ipa/89330
9569 * cgraph.c (symbol_table::create_edge): Always allocate
9570 a cgraph_edge.
9571 (symbol_table::free_edge): Store summary_id to
9572 edge_released_summary_ids if != -1;
9573 * cgraph.h (NEXT_FREE_NODE): Remove.
9574 (SET_NEXT_FREE_NODE): Likewise.
9575 (NEXT_FREE_EDGE): Likewise.
9576 (symbol_table::release_symbol): Store summary_id to
9577 cgraph_released_summary_ids if != -1;
9578 (symbol_table::allocate_cgraph_symbol): Always allocate
9579 a cgraph_node.
9580
9581 2019-07-28 Alan Modra <amodra@gmail.com>
9582
9583 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9584 gen_sibcall.
9585
9586 2019-07-28 Alan Modra <amodra@gmail.com>
9587
9588 PR target/91135
9589 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9590 define.
9591 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9592 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9593 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9594
9595 2019-07-28 Alan Modra <amodra@gmail.com>
9596
9597 PR target/91050
9598 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9599 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9600 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9601 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9602 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9603 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9604 in asm_default spec.
9605 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9606 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9607
9608 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
9609
9610 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9611
9612 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9613
9614 PR target/89517
9615 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9616 * config/aarch64/aarch64-option-extensions.def: Add new comments
9617 and restore easier to read options.
9618
9619 2019-07-26 Tamar Christina <tamar.christina@arm.com>
9620
9621 * convert.c (convert_to_real_1): Move part of conversion code...
9622 * match.pd: ...To here.
9623
9624 2019-07-26 Martin Jambor <mjambor@suse.cz>
9625
9626 PR ipa/89330
9627 * ipa-inline-transform.c (check_speculations_1): New function.
9628 (push_all_edges_in_set_to_vec): Likewise.
9629 (check_speculations): Use check_speculations_1, new parameter
9630 new_edges.
9631 (inline_call): Pass new_edges to check_speculations.
9632 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9633 NULL.
9634 (speculation_useful_p): Early return true if edge is inlined, remove
9635 later checks for inline_failed.
9636
9637 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
9638
9639 PR rtl-optimization/91223
9640 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9641 matching with INOUT operand.
9642
9643 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9644
9645 * stmt.c (expand_case): Try to narrow the index type if it's larger
9646 than a word. Tidy up.
9647
9648 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
9649
9650 * cif-code.def (NEVER_CALL): New code.
9651 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9652 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9653
9654 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
9655
9656 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9657 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9658
9659 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
9660
9661 * ipa-devirt.c (add_type_duplicate): Fix return value.
9662
9663 2019-07-25 Richard Biener <rguenther@suse.de>
9664
9665 * tree-vrp.c (extract_range_from_multiplicative_op): Add
9666 type parameter and use it instead of guessing expression
9667 type from the first operand.
9668 (extract_range_from_binary_expr): Pass expr_type down.
9669
9670 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9671
9672 * config/arm/arm.md (SATrev): Change to code attribute.
9673 (*satsi_<SAT:code>): Adjust for the above.
9674 (*satsi_<SAT:code>_shift): Likewise.
9675
9676 2019-07-25 Richard Biener <rguenther@suse.de>
9677
9678 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9679 Make value_range * temporary const.
9680 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9681 Likewise.
9682 (evrp_range_analyzer::record_ranges_from_): Likewise.
9683 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9684 deal with having recorded a const one.
9685 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9686 Return a const value_range *.
9687 (evrp_range_analyzer::pop_value_range): Likewise.
9688 (evrp_range_analyzer::stack): Record const value_range *s.
9689 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9690 Adjust.
9691 * gimple-ssa-sprintf.c (get_int_range): Likewise.
9692 (format_integer): Likewise.
9693 (sprintf_dom_walker::handle_gimple_call): Likewise.
9694 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9695 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9696 (vrp_prop::get_value_range): Adjust.
9697 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9698 modifying the lattice in-place.
9699 (vrp_prop::visit_stmt): Likewise.
9700 * vr-values.c (vr_values::get_lattice_entry): New private method.
9701 (vr_values::get_value_range): Wrap it and return a const
9702 value_range *.
9703 (vr_values::set_def_to_varying): New.
9704 (vr_values::set_defs_to_varying): Use it.
9705 (vr_values::update_value_range): Likewise.
9706 (vr_values::vrp_stmt_computes_nonzero): Adjust.
9707 (values::op_with_constant_singleton_va): Likewise.
9708 (vr_values::extract_range_for_var_from_co): Likewise.
9709 (vr_values::extract_range_from_ssa_name): Likewise.
9710 (vr_values::extract_range_from_cond_expr): Likewise.
9711 (vr_values::extract_range_basic): Likewise.
9712 (compare_ranges): Take const value_range *, adjust.
9713 (compare_range_with_value): Likewise.
9714 (vrp_valueize): Adjust.
9715 (vrp_valueize_1): Likewise.
9716 (vr_values::get_vr_for_comparison): Return a const value_range *.
9717 (vr_values::compare_name_with_value): Adjust.
9718 (vr_values::compare_names): Likewise.
9719 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9720 Likewise.
9721 (vr_values::vrp_evaluate_conditional): Likewise.
9722 (find_case_label_ranges): Take a const value_range *.
9723 (vr_values::vrp_visit_switch_stmt): Adjust.
9724 (vr_values::extract_range_from_phi_node): Likewise.
9725 (vr_values::simplify_div_or_mod_using_ran): Likewise.
9726 (vr_values::simplify_abs_using_ranges): Likewise.
9727 (test_for_singularity): Take a const value_range *.
9728 (range_fits_type_p): Likewise.
9729 (vr_values::simplify_cond_using_ranges_1): Adjust.
9730 (vr_values::simplify_cond_using_ranges_2): Likewise.
9731 (vr_values::simplify_switch_using_ranges): Likewise.
9732 (vr_values::simplify_float_conversion_usi): Likewise.
9733 (vr_values::two_valued_val_range_p): Likewise.
9734 * vr-values.h (vr_values::get_value_range): Return a const
9735 value_range *.
9736 (vr_values::set_def_to_varying): New.
9737 (vr_values::get_lattice_entry): New private method.
9738 (vr_values::get_vr_for_comparison): Return a const value_range *.
9739
9740 2019-07-25 Martin Liska <mliska@suse.cz>
9741 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
9742
9743 PR c++/23383
9744 * common.opt: Add -fallocation-dce
9745 * gimple.c (gimple_call_operator_delete_p): New.
9746 * gimple.h (gimple_call_operator_delete_p): Likewise.
9747 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9748 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9749 DECL_IS_OPERATOR_DELETE_P.
9750 (mark_all_reaching_defs_necessary_1): Likewise.
9751 (propagate_necessity): Likewise.
9752 (eliminate_unnecessary_stmts): Handle
9753 gimple_call_operator_delete_p.
9754 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9755 Add packing of OPERATOR_DELETE.
9756 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9757 Similarly here.
9758 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9759 (DECL_SET_IS_OPERATOR_DELETE): New.
9760 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9761
9762 2019-07-25 Martin Liska <mliska@suse.cz>
9763
9764 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9765 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9766 * coverage.c (coverage_begin_function): Likewise.
9767 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9768 * gimple.c (gimple_call_nonnull_result_p): Likewise.
9769 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9770 (sem_item::hash_referenced_symbol_properties): Likewise.
9771 * lto-streamer-out.c (hash_tree): Likewise.
9772 * predict.c (expr_expected_value_1): Likewise.
9773 * tree-inline.c (expand_call_inline): Likewise.
9774 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9775 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9776 * tree-core.h (enum function_decl_type): New enum.
9777 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9778 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9779 (set_function_decl_type): Likewise.
9780 (DECL_IS_OPERATOR_NEW_P): New.
9781 (DECL_SET_IS_OPERATOR_NEW): Likewise.
9782 (DECL_LAMBDA_FUNCTION): Likewise.
9783 (DECL_LAMBDA_FUNCTION_P): Likewise.
9784 (DECL_IS_OPERATOR_NEW): Remove.
9785 (DECL_SET_LAMBDA_FUNCTION): Likewise.
9786
9787 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
9788
9789 * ipa-profile.c (get_most_common_single_value): Use
9790 get_nth_most_common_value.
9791 * profile.c (sort_hist_value): New function.
9792 (compute_value_histograms): Call sort_hist_value to sort the
9793 values after loading from disk.
9794 * value-prof.c (get_most_common_single_value): Rename to ...
9795 get_nth_most_common_value. Add input params n, return
9796 the n_th value and count.
9797 (gimple_divmod_fixed_value_transform): Use
9798 get_nth_most_common_value.
9799 (gimple_ic_transform): Likewise.
9800 (gimple_stringops_transform): Likewise.
9801 * value-prof.h (get_most_common_single_value): Add input params
9802 n, default to 0.
9803
9804 2019-07-25 Richard Biener <rguenther@suse.de>
9805
9806 PR tree-optimization/91236
9807 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9808 size of CONSTRUCTOR write. Fix buffer size we pass to
9809 native_encode_expr.
9810
9811 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9812
9813 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9814 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9815 r273773.
9816
9817 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9818
9819 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9820 explicitly disabled with --disable-initfini-array.
9821
9822 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9823
9824 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9825 if-exists.
9826
9827 2019-07-24 Martin Sebor <msebor@redhat.com>
9828
9829 PR tree-optimization/91183
9830 PR tree-optimization/86688
9831 * builtins.c (compute_objsize): Handle MEM_REF.
9832 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9833 (get_min_string_length): Remove.
9834 (count_nonzero_bytes): New function.
9835 (handle_char_store): Rename...
9836 (handle_store): to this. Handle multibyte stores via integer types.
9837 (strlen_check_and_optimize_stmt): Adjust conditional and the called
9838 function name.
9839
9840 2019-07-24 Martin Sebor <msebor@redhat.com>
9841
9842 PR driver/80545
9843 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9844 (diagnostic_report_diagnostic): Same.
9845 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9846 (diagnostic_context::lang_mask): New data member.
9847 * ipa-pure-const.c (suggest_attribute): Use
9848 lang_hooks.option_lang_mask ().
9849 * opts-common.c (option_enabled): Handle new argument.
9850 (get_option_state): Pass an additional argument.
9851 * opts.c (print_filtered_help): Print supported languages for
9852 unsupported options. Adjust printing of current state.
9853 * opts.h (option_enabled): Add argument.
9854 * toplev.c (print_switch_values): Use lang_mask.
9855 (general_init): Set global_dc->lang_mask.
9856
9857 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9858
9859 PR bootstrap/87030
9860 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9861
9862 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
9863
9864 * cgraphunit.c (symbol_table::compile): Start and stop
9865 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9866 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9867
9868 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
9869
9870 * gimplify.c (flag_instrument_functions_exclude_p): Include
9871 namespace/class information in the printable name.
9872 * opts.c (add_comma_separated_to_vector): Add NUL terminator
9873 to tokens entered into the vector.
9874
9875 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
9876
9877 * tree-nested.c (build_simple_mem_ref_notrap): New function.
9878 (get_static_chain): Call it instead of build_simple_mem_ref.
9879 (get_frame_field): Likewise.
9880 (get_nonlocal_debug_decl): Likewise.
9881 (convert_nonlocal_reference_op): Likewise.
9882
9883 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
9884
9885 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9886 declaration.
9887 (arc_compute_frame_size): Millicode is disabled when compiling
9888 ISR.
9889 (arc_return_address_register): Likewise.
9890 (arc_compute_function_type): Likewise.
9891 (arc_compute_frame_size): Likewise.
9892 (secondary_reload_info): Likewise.
9893 (arc_get_unalign): Likewise.
9894 (arc_can_use_return_insn): Declare.
9895 * config/arc/arc.c (AUX_LP_START): Define
9896 (AUX_LP_END): Likewise.
9897 (arc_frame_info): Update gmask member to 64-bit datum.
9898 (GMASK_LEN): Update.
9899 (arc_compute_function_type): Make it static, move it forward.
9900 (arc_must_save_register): Update, consider the extra regs.
9901 (arc_compute_millicode_save_restore_regs): Update to use the 64
9902 bit gmask.
9903 (arc_compute_frame_size): Likewise.
9904 (arc_enter_leave_p): Likewise.
9905 (arc_save_callee_saves): Likewise.
9906 (arc_restore_callee_saves): Likewise.
9907 (arc_save_callee_enter): Likewise.
9908 (arc_restore_callee_leave): Likewise.
9909 (arc_save_callee_milli): Likewise.
9910 (arc_restore_callee_milli): Likewise.
9911 (arc_expand_prologue): Add new interrupt handling.
9912 (arc_return_address_register): Make it static, move it forward.
9913 (arc_expand_epilogue): Add new interrupt handling.
9914 (arc_get_unalign): Delete.
9915 (arc_epilogue_uses): Make sure we do not remove the extra
9916 saved/restored registers when interrupt.
9917 (arc_can_use_return_insn): New function.
9918 (push_reg): Likewise.
9919 (pop_reg): Likewise.
9920 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9921 procedures.
9922 (arc_restore_callee_saves): Likewise, but restoring.
9923 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9924 (R33_REG): Likewise.
9925 (R34_REG): Likewise.
9926 (R35_REG): Likewise.
9927 (R36_REG): Likewise.
9928 (R37_REG): Likewise.
9929 (R38_REG): Likewise.
9930 (R39_REG): Likewise.
9931 (R45_REG): Likewise.
9932 (R46_REG): Likewise.
9933 (R47_REG): Likewise.
9934 (R48_REG): Likewise.
9935 (R49_REG): Likewise.
9936 (R50_REG): Likewise.
9937 (R51_REG): Likewise.
9938 (R52_REG): Likewise.
9939 (R53_REG): Likewise.
9940 (R54_REG): Likewise.
9941 (R55_REG): Likewise.
9942 (R56_REG): Likewise.
9943 (R58_REG): Likewise.
9944 (type): Add rtie attribute.
9945 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9946 (movsi_insn): Accept moves to lp_count.
9947 (rtie): Update pattern.
9948 (simple_return): Simplify it, don't use this pattern as a return
9949 from an interrupt.
9950 (arc600_rtie): New pattern.
9951 (p_return_i): Clean up.
9952 (return): Likewise.
9953 * config/arc/builtins.def (rtie): Only available for non ARC6xx
9954 family CPUs.
9955 * config/arc/predicates.md (move_src_operand): Consider lp_count
9956 as a register.
9957
9958 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
9959
9960 * config/s390/predicates.md (addv_const_operand): New predicate.
9961 * config/s390/s390-modes.def (CCO): New condition code mode.
9962 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9963 (s390_branch_condition_mask): Likewise.
9964 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9965 ("mulv<mode>4"): New expanders.
9966 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9967 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9968 pattern definitions.
9969
9970 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9971
9972 PR middle-end/91166
9973 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9974 (define_predicates): Add entry for uniform_vector_p.
9975 (vec_same_elem_p): New match pattern.
9976
9977 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
9978
9979 PR bootstrap/87030
9980 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9981 * config/i386/darwin32-biarch.h .. to here.
9982 * config/i386/darwin64-biarch.h: Adjust comments.
9983 * config/rs6000/darwin32-biarch.h: Likewise.
9984 * config/rs6000/darwin64-biarch.h: Likewise.
9985 * config.gcc: Missed commit from r273746
9986 (*-*-darwin*): Don't include CPU t-darwin here.
9987 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9988 an error message if i686-darwin configuration is attempted for
9989 Darwin >= 18.
9990
9991 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
9992
9993 PR bootstrap/87030
9994 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9995 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9996 an error message if i686-darwin configuration is attempted for
9997 Darwin >= 18.
9998 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9999 (powerpc-*-darwin*): Use biarch files where needed.
10000 (powerpc64-*-darwin*): Likewise.
10001 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
10002 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10003 arch case.
10004 * config/i386/darwin32-biarch.h: New.
10005 * config/i386/darwin64.h: Rename.
10006 * config/i386/darwin64-biarch.h: To this.
10007 * config/i386/t-darwin: Rename.
10008 * config/i386/t-darwin32-biarch: To this.
10009 * config/i386/t-darwin64: Rename.
10010 * config/i386/t-darwin64-biarch: To this.
10011 * config/rs6000/darwin32-biarch.h: New.
10012 * config/rs6000/darwin64.h: Rename.
10013 * config/rs6000/darwin64-biarch.h: To this.
10014 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
10015 arch case.
10016 * config/rs6000/t-darwin8: Rename.
10017 * config/rs6000/t-darwin32-biarch: To this.
10018 * config/rs6000/t-darwin64 Rename.
10019 * config/rs6000/t-darwin64-biarch: To this.
10020
10021 2019-07-23 Martin Sebor <msebor@redhat.com>
10022
10023 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
10024
10025 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10026
10027 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
10028 (rh): New alias for it.
10029
10030 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
10031
10032 * gdbhooks.py: Pass replace=True to
10033 gdb.printing.register_pretty_printer.
10034
10035 2019-07-23 Richard Biener <rguenther@suse.de>
10036
10037 PR debug/91231
10038 * lto-streamer-in.c (input_function): Drop inline-entry markers
10039 that ended up with an unknown location block.
10040
10041 2019-07-23 Richard Biener <rguenther@suse.de>
10042
10043 PR tree-optimization/83518
10044 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
10045 init from a constant even when partial defs are already recorded.
10046
10047 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10048
10049 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
10050 * config/i386/znver1.md: Enable patterns for znver2 and add store
10051 variants which use extra AGU unit.
10052
10053 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10054
10055 * config/i386/i386-options.c (ix86_option_override_internal): Default
10056 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
10057 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
10058 for ZNVER2.
10059
10060 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
10061
10062 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
10063 (znver2_costs): Update 256 bit SSE costs and multiplication.
10064
10065 2019-07-23 Jan Beulich <jbeulich@suse.com>
10066
10067 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
10068 Require only AVX512F.
10069 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
10070 alternative expanding to vpternlog.
10071
10072 2019-07-23 Martin Liska <mliska@suse.cz>
10073
10074 * dwarf2out.c (gen_producer_string): Canonize -flto=N
10075 to -flto in dwarf producer string.
10076
10077 2019-07-23 Richard Biener <rguenther@suse.de>
10078
10079 * tree-cfg.c (label_for_bb): Remove global var.
10080 (main_block_label): Take label_for_bb as argument.
10081 (cleanup_dead_labels_eh): Likewise, adjust.
10082 (cleanup_dead_labels): Adjust.
10083
10084 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10085
10086 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
10087 Configurations): Add documentation for __builtin_mtfsf.
10088
10089 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
10090
10091 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
10092 * config/riscv/riscv.c (riscv_constant_alignment): Use
10093 riscv_align_data_type.
10094 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
10095 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10096 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
10097 * config/riscv/riscv.opt (malign-data): New.
10098 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
10099
10100 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
10101
10102 * cgraph.c (dump_graphviz): New function.
10103 * cgraph.h (dump_graphviz): New function.
10104 * symtab.c (dump_graphviz): New function.
10105
10106 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
10107
10108 * config/aarch64/aarch64-simd.md
10109 (*aarch64_simd_sra<mode>): New.
10110 * config/aarch64/iterators.md
10111 (SHIFTRT): New iterator.
10112 (sra_op): New attribute.
10113
10114 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10115
10116 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
10117 callee-saved regs R4->R10 in an interrupt function that calls another
10118 function.
10119
10120 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
10121
10122 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
10123 (_mm_blendv_epi8): New.
10124
10125 2019-07-22 Richard Biener <rguenther@suse.de>
10126
10127 PR tree-optimization/91221
10128 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
10129 restrict partial-def handling of empty constructors and
10130 memset to refs with known offset.
10131
10132 2019-07-22 Jan Beulich <jbeulich@suse.com>
10133
10134 * config/i386/sse.md (ternlogsuffix): New.
10135 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
10136 AVX512F is in use.
10137 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
10138
10139 2019-07-22 Martin Liska <mliska@suse.cz>
10140
10141 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
10142 comment.
10143 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
10144
10145 2019-07-22 Martin Liska <mliska@suse.cz>
10146
10147 * lto-section-in.c (lto_get_section_data):
10148 Use new function get_compression.
10149 * lto-streamer-out.c (produce_lto_section): Use
10150 set_compression to encode compression algorithm.
10151 * lto-streamer.h (struct lto_section): Do not
10152 use bitfields in the format.
10153
10154 2019-07-22 Martin Liska <mliska@suse.cz>
10155
10156 PR driver/91172
10157 * opts-common.c (decode_cmdline_option): Decode
10158 argument of -Werror and check it for a wrong language.
10159 * opts-global.c (complain_wrong_lang): Remove such case.
10160
10161 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
10162
10163 * config/arc/arc.c (prepare_move_operands): Always use an
10164 intermediate register when storing a TLS symbols.
10165
10166 2019-07-22 Stafford Horne <shorne@gmail.com>
10167
10168 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
10169 force_reg.
10170
10171 2019-07-22 Stafford Horne <shorne@gmail.com>
10172
10173 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10174 and munordered-float validations.
10175 * config/or1k/constraints.md (d): New register constraint.
10176 * config/or1k/predicates.md (fp_comparison_operator): New.
10177 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10178 operands.
10179 (or1k_expand_compare): Normalize unordered comparisons.
10180 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10181 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10182 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10183 * config/or1k/or1k.md (type): Add fpu.
10184 (fpu): New instruction reservation.
10185 (F, f, fr, fi, FI, FOP, fop): New.
10186 (<fop><F:mode>3): New ALU instruction definition.
10187 (float<fi><F:mode>2): New conversion instruction definition.
10188 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10189 (fpcmpcc): New code iterator.
10190 (*sf_fp_insn): New instruction definition.
10191 (cstore<F:mode>4): New expand definition.
10192 (cbranch<F:mode>4): New expand definition.
10193 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10194 munordered-float): New options.
10195 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10196 munordered-float.
10197
10198 2019-07-22 Stafford Horne <shorne@gmail.com>
10199
10200 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10201 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10202 documenation to be more clear.
10203 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10204 more clear.
10205 * config/or1k/or1k.opt (mrori): New option.
10206 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10207 msfimm, mshftimm): Rewrite documentation to be more clear.
10208 * config/or1k/or1k.md (insn_support): Add ror and rori.
10209 (enabled): Add conditions for ror and rori.
10210 (rotrsi3): Replace condition for shftimm with ror and rori.
10211
10212 2019-07-22 Stafford Horne <shorne@gmail.com>
10213
10214 PR target/90363
10215 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10216 (extend<mode>si2): Update predicate.
10217 * config/or1k/predicates.md (volatile_mem_operand): New.
10218 (reg_or_mem_operand): New.
10219
10220 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
10221
10222 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10223 * config/rs6000/rs6000-call.c: ... to here.
10224
10225 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10226
10227 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10228 memory.
10229
10230 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10231
10232 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10233
10234 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10235
10236 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10237
10238 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
10239
10240 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10241 (any_memory_operand): New predicate.
10242 (reg_or_mem_operand): Use it.
10243
10244 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10245
10246 PR target/91204
10247 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10248
10249 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
10250
10251 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10252 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10253
10254 2019-07-20 Jakub Jelinek <jakub@redhat.com>
10255
10256 * tree.def (OMP_LOOP): New tree code.
10257 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10258 (enum omp_clause_bind_kind): New enum.
10259 (struct tree_omp_clause): Add subcode.bind_kind.
10260 * tree.h (OMP_LOOP_CHECK): Rename to ...
10261 (OMP_LOOPING_CHECK): ... this.
10262 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10263 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10264 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10265 (OMP_CLAUSE_BIND_KIND): Define.
10266 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10267 bind clause entries.
10268 (walk_tree_1): Handle OMP_CLAUSE_BIND.
10269 * tree-pretty-print.c (dump_omp_clause): Likewise.
10270 (dump_generic_node): Handle OMP_LOOP.
10271 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10272 (in_omp_construct): New variable.
10273 (is_gimple_stmt): Handle OMP_LOOP.
10274 (gimplify_scan_omp_clauses): For lastprivate don't set
10275 check_non_private if code == OMP_LOOP. For reduction clause
10276 on OMP_LOOP combined with parallel or teams propagate as shared
10277 on the combined construct. Handle OMP_CLAUSE_BIND.
10278 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10279 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10280 for constructs from a loop construct to gimplify_scan_omp_clauses.
10281 Don't predetermine iterator linear on OMP_SIMD from loop construct.
10282 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10283 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10284 to match the implicit ORT_TARGET construct around whole body.
10285 Temporarily clear in_omp_construct when processing body.
10286 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
10287 etc. temporarily set in_omp_construct when processing body.
10288 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10289 * omp-low.c (struct omp_context): Add loop_p.
10290 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10291 in that the original var might be private.
10292 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10293 (check_omp_nesting_restrictions): Adjust nesting restrictions for
10294 addition of loop construct.
10295 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10296
10297 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10298 lastprivate non-addressable iterator of a collapse(1) simd.
10299
10300 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
10301
10302 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10303 as in rs6000.c.
10304
10305 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
10306
10307 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10308 refer to default conditions. Warn for the 'y' spec which is ignored
10309 by current linkers.
10310
10311 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
10312
10313 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10314 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10315 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10316 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10317 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10318 init_cumulative_args, rs6000_promote_function_mode,
10319 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10320 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10321 rs6000_function_arg_boundary, rs6000_parm_offset,
10322 rs6000_parm_start, rs6000_arg_size,
10323 rs6000_darwin64_record_arg_advance_flush,
10324 rs6000_darwin64_record_arg_advance_recurse,
10325 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10326 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10327 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10328 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10329 rs6000_finish_function_arg, rs6000_function_arg,
10330 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10331 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10332 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10333 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10334 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10335 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10336 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10337 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10338 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10339 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10340 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10341 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10342 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10343 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10344 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10345 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10346 get_element_number, altivec_expand_vec_set_builtin,
10347 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10348 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10349 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10350 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10351 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10352 rs6000_expand_builtin, rs6000_vector_type,
10353 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10354 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10355 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10356 to rs6000-call.c.
10357 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10358 cpu_supports_info, builtin_hash_struct, builtin_hasher,
10359 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10360 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10361 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10362 init_cumulative_args, rs6000_promote_function_mode,
10363 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10364 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10365 rs6000_function_arg_boundary, rs6000_parm_offset,
10366 rs6000_parm_start, rs6000_arg_size,
10367 rs6000_darwin64_record_arg_advance_flush,
10368 rs6000_darwin64_record_arg_advance_recurse,
10369 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10370 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10371 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10372 rs6000_mixed_function_arg, rs6000_psave_function_arg,
10373 rs6000_finish_function_arg, rs6000_function_arg,
10374 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10375 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10376 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10377 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10378 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10379 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10380 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10381 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10382 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10383 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10384 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10385 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10386 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10387 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10388 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10389 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10390 get_element_number, altivec_expand_vec_set_builtin,
10391 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10392 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10393 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10394 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10395 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10396 rs6000_expand_builtin, rs6000_vector_type,
10397 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10398 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10399 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10400 to here from rs6000.c.
10401 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10402 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10403 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10404 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10405 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10406 rs6000_return_in_memory, rs6000_return_in_msb,
10407 rs6000_pass_by_reference, setup_incoming_varargs,
10408 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10409 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10410 rs6000_function_arg_padding, rs6000_function_arg,
10411 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10412 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10413 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10414 rs6000_passes_long_double, rs6000_passes_vector,
10415 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10416 altivec_builtin_mask_for_load) Add declarations.
10417 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10418 * config/config.gcc: Add new source file rs6000-call.c to garbage
10419 collector and extra_objs.
10420
10421 2019-07-19 Jeff Law <law@redhat.com>
10422
10423 PR tree-optimization/86061
10424 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10425 strncpy. Drop some trivial dead code.
10426 (maybe_trim_memstar_call): Handle strncpy.
10427
10428 2019-07-19 Richard Biener <rguenther@suse.de>
10429
10430 PR tree-optimization/91211
10431 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10432 memset encoding size.
10433
10434 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
10435
10436 PR target/91204
10437 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10438
10439 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
10440
10441 PR ipa/91194
10442 * ipa-inline.c (recursive_inlining): Fix limits check.
10443
10444 2019-07-19 Richard Biener <rguenther@suse.de>
10445
10446 PR tree-optimization/91200
10447 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10448 no PHI nodes in middle-bb.
10449
10450 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
10451
10452 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10453 to +sve-bitperm.
10454 * config/aarch64/aarch64-option-extensions.def: Likewise.
10455
10456 2019-07-19 Jakub Jelinek <jakub@redhat.com>
10457
10458 PR middle-end/91190
10459 * function.c (insert_temp_slot_address): Store into the hash table
10460 a copy of address to avoid RTL sharing issues.
10461
10462 2019-07-19 Richard Biener <rguenther@suse.de>
10463
10464 PR tree-optimization/91207
10465 Revert
10466 2019-07-17 Richard Biener <rguenther@suse.de>
10467
10468 PR tree-optimization/91178
10469 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10470 loads with a gap larger than the vector size always use
10471 VMAT_STRIDED_SLP.
10472 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10473 avoid loading vectors that are only contained in the gap
10474 and thus are not needed.
10475
10476 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10477
10478 * config/i386/i386.md (*addqi_2_slp): Remove.
10479 (*<code>qi_2_slp): Ditto.
10480
10481 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
10482
10483 * config/rs6000/predicates.md (prefixed_mem_operand): Call
10484 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10485 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10486 Rename function from rs6000_prefixed_address.
10487 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10488 TARGET_HAS_TOC.
10489 (TARGET_TOC): Likewise.
10490 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10491 rs6000.h.
10492 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10493 TARGET_HAS_TOC.
10494 (TARGET_TOC): Likewise.
10495 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10496 rs6000.h.
10497 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10498 TARGET_HAS_TOC.
10499 (TARGET_TOC): Likewise.
10500 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10501 check to require -mcmodel=medium for pc-relative addressing.
10502 (create_TOC_reference): Add assertion for TARGET_TOC.
10503 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10504 TARGET_NO_TOC.
10505 (rs6000_emit_move): Likewise.
10506 (TOC_alias_set): Rename TOC alias set static variable from 'set'
10507 to 'TOC_alias_set'.
10508 (get_TOC_alias_set): Likewise.
10509 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10510 TARGET_NO_TOC.
10511 (rs6000_can_eliminate): Likewise.
10512 (rs6000_prefixed_address_mode_p): Rename function from
10513 rs6000_prefixed_address.
10514 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10515 TARGET_HAS_TOC and not pc-relative.
10516 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10517 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10518 TARGET_HAS_TOC.
10519 (TARGET_TOC): Likewise.
10520 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10521 rs6000.h.
10522
10523 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
10524
10525 PR target/91188
10526 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10527 for operand 0. Do not use (match_dup) to match operand 1 with
10528 operand 0. Add check in insn constraint that either input operand
10529 matches operand 0. Use SWI12 mode iterator to also handle
10530 HImode operands.
10531 (*and<mode>_1_slp): Ditto.
10532 (*<code>qi_1_slp): Ditto.
10533 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10534 Do not use (match_dup) to match operand 1 with operand 0. Add
10535 check in insn constraint that operand 1 matches operand 0.
10536 Use SWI12 mode iterator to also handle HImode operands.
10537 (*ashl<mode>3_1_slp): Ditto.
10538 (*<shift_insn><mode>3_1_slp): Ditto.
10539 (*<rotate_insn><mode>3_1_slp): Ditto.
10540
10541 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10542
10543 * config/arm/arm-builtins.c
10544 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10545 (arm_expand_unop_builtin): Likewise.
10546 * config/arm/crypto.md
10547 (crypto_sha1h): Convert from define_insn to define_expand.
10548 (crypto_<crypto_pattern>): Likewise.
10549 (crypto_sha1h_lb): New define_insn.
10550 (crypto_<crypto_pattern>_lb): Likewise.
10551
10552 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
10553
10554 PR target/90317
10555 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10556 (vsha1cq_u32): Likewise.
10557 (vsha1pq_u32): Likewise.
10558 (vsha1mq_u32): Likewise.
10559 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10560 vec select.
10561 (crypto_sha1c): Correct vec select.
10562 (crypto_sha1m): Likewise.
10563 (crypto_sha1p): Likewise.
10564
10565 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
10566
10567 * config/arm/predicates.md (arm_borrow_operation): New predicate.
10568 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10569 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10570 (subdi_zesidi_zesidi): Likewise.
10571 (negdi2_compare, negdi2_insn): Likewise.
10572 (negdi_extensidi): Likewise.
10573 (negdi_zero_extendsidi): Likewise.
10574 (arm_cmpdi_insn): Likewise.
10575 (subsi3_carryin): Use arm_borrow_operation.
10576 (subsi3_carryin_const): Likewise.
10577 (subsi3_carryin_const0): Likewise.
10578 (subsi3_carryin_compare): Likewise.
10579 (subsi3_carryin_compare_const): Likewise.
10580 (subsi3_carryin_compare_const0): Likewise.
10581 (subsi3_carryin_shift): Likewise.
10582 (rsbsi3_carryin_shift): Likewise.
10583 (negsi2_carryin_compare): Likewise.
10584
10585 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
10586
10587 PR tree-optimization/91137
10588 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10589 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10590 Init, use and fini the above new field.
10591 (determine_base_object_1): New function.
10592 (determine_base_object): Reimplement using walk_tree.
10593
10594 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
10595
10596 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10597 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10598 CLEANUP_FORCE_FAST_DCE is set.
10599 * ifcvt.c (rest_of_handle_if_conversion): Pass
10600 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10601 if-conversion succeeded.
10602
10603 2019-07-18 Richard Biener <rguenther@suse.de>
10604
10605 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10606 branches to make code less indented.
10607
10608 2019-07-17 Alexandre Oliva <oliva@adacore.com>
10609
10610 PR middle-end/81824
10611 * attribs.c (decls_mismatched_attributes): Simplify the logic
10612 that avoids duplicates and false positives.
10613
10614 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
10615
10616 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10617 data into data section when generating PIC code.
10618 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10619 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10620 generating code for SOM targets earlier than HP-UX 11. Otherwise,
10621 return 2 for SOM and 0 for other targets.
10622
10623 2019-07-17 Jeff Law <law@redhat.com>
10624
10625 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10626 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
10627 avoid unexpected switch statement fallthru.
10628
10629 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10630
10631 * config/i386/i386.md (*add<dwi>3_doubleword):
10632 Remove redundant constraints.
10633 (*add<mode>_1): Ditto.
10634 (*addhi_1): Ditto.
10635 (*addqi_1): Ditto.
10636 (*addqi_1_slp): Ditto.
10637 (*add<mode>_2): Ditto.
10638 (*addv<mode>4): Ditto.
10639 (*sub<dwi>3_doubleword): Ditto.
10640 (*sub<mode>_1): Ditto.
10641 (*subqi_1_slp): Ditto.
10642 (*sub<mode>_2): Ditto.
10643 (*subv<mode>4): Ditto.
10644 (*sub<mode>_3): Ditto.
10645 (@add<mode>3_carry): Ditto.
10646 (@sub<mode>3_carry): Ditto.
10647 (*add<mode>3_cc_overflow_1): Ditto.
10648 (*add<mode>3_zext_cc_overflow_2): Ditto.
10649 (*anddi_1): Ditto.
10650 (*and<mode>_1): Ditto.
10651 (*andqi_1): Ditto.
10652 (*andqi_1_slp): Ditto.
10653 (*anddi_2): Ditto.
10654 (*andqi_2_maybe_si): Ditto.
10655 (*and<mode>_2): Ditto.
10656 (*andqi_2_slp): Ditto.
10657 (*<code><mode>_1): Ditto.
10658 (*<code>qi_1): Ditto.
10659 (*<code>qi_1_slp): Ditto.
10660 (*<code><mode>_2): Ditto.
10661 (*<code>qi_2_slp): Ditto.
10662
10663 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
10664
10665 * alias.c (record_component_aliases): Do not simplify pointed-to
10666 types of ODR types.
10667
10668 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
10669
10670 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10671 partial reg stall on alternative 2.
10672
10673 2019-07-17 Richard Biener <rguenther@suse.de>
10674
10675 PR tree-optimization/91178
10676 * tree-ssa.c (release_defs_bitset): Iterate from higher to
10677 lower SSA names to avoid quadratic behavior in the common case.
10678 * tree-data-ref.c (split_constant_offset): Add limit argument
10679 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10680 (split_constant_offset_1): Add limit argument and use it to
10681 limit SSA def walking. Optimize the common plus/minus case.
10682
10683 2019-07-17 Richard Biener <rguenther@suse.de>
10684
10685 PR tree-optimization/91178
10686 * tree-vect-stmts.c (get_group_load_store_type): For SLP
10687 loads with a gap larger than the vector size always use
10688 VMAT_STRIDED_SLP.
10689 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10690 avoid loading vectors that are only contained in the gap
10691 and thus are not needed.
10692
10693 2019-07-17 Richard Biener <rguenther@suse.de>
10694
10695 PR tree-optimization/91180
10696 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10697 computation for memset partial defs.
10698
10699 2019-07-17 Jakub Jelinek <jakub@redhat.com>
10700
10701 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10702 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10703 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10704 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10705 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10706 * omp-grid.c (grid_process_grid_body,
10707 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10708 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10709 == GF_OMP_FOR_KIND_SIMD.
10710 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10711 check_omp_nesting_restrictions, scan_omp_1_stmt,
10712 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10713 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10714 omp_find_scan): Likewise.
10715 * omp-expand.c (expand_omp_for): Likewise.
10716 * omp-general.c (omp_extract_for_data): Likewise.
10717
10718 PR tree-optimization/91157
10719 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10720 a vector boolean with scalar mode.
10721 (expand_vector_condition): Handle first operand being a vector boolean
10722 with scalar mode.
10723 (expand_vector_operations_1): For comparisons, don't bail out early
10724 if the return type is vector boolean with scalar mode, but comparison
10725 operand type is not.
10726
10727 2019-07-17 Richard Biener <rguenther@suse.de>
10728
10729 PR tree-optimization/91181
10730 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10731 IFN_LOADs as calls.
10732
10733 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
10734
10735 * config/i386/i386.md (*testdi_1): Match CCZmode for
10736 constants that might have the SImode sign bit set.
10737 (*testqi_1_maybe_si): Remove "!" constraint modifier.
10738 Use correct constraints for pentium pairing.
10739 (*test<mode>_1): Ditto.
10740
10741 2019-07-16 Jeff Law <law@redhat.com>
10742
10743 PR rtl-optimization/91173
10744 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10745 SSA_NAME with a constant value, fold its value into the offset
10746 and clear the base before calling gen_addr_rtx.
10747
10748 2019-07-16 Jakub Jelinek <jakub@redhat.com>
10749
10750 PR rtl-optimization/91164
10751 * dse.c (rest_of_handle_dse): If dead edges have been purged,
10752 invalidate dominance info.
10753
10754 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10755
10756 * read-md.h (md_reader::record_potential_iterator_use): Add a
10757 file_location parameter.
10758 * read-rtl.c (attribute_use::loc): New field.
10759 (map_attr_string): Take a file_location parameter. Report cases
10760 in which attributes map to multiple distinct values.
10761 (apply_attribute_uses): Update call accordingly.
10762 (md_reader::handle_overloaded_name): Likewise.
10763 (md_reader::apply_iterator_to_string): Likewise. Skip empty
10764 nonnull strings.
10765 (record_attribute_use): Take a file_location parameter.
10766 Initialize attribute_use::loc.
10767 (md_reader::record_potential_iterator_use): Take a file_location
10768 parameter. Update call to record_attribute_use.
10769 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10770 (rtx_reader::read_rtx_code): Likewise.
10771 (rtx_reader::read_rtx_operand): Likewise. Record a location
10772 for implicitly-expanded empty strings.
10773
10774 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10775
10776 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10777 Use file_location instead of separate fields.
10778 (md_reader::set_md_ptr_loc): Take a file_location instead of a
10779 separate filename and line number.
10780 * read-md.c (ptr_loc): As above.
10781 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10782 (md_reader::fprint_md_ptr_loc): Likewise.
10783 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
10784 instead of a separate filename and line number.
10785 (md_reader::read_string): Update call accordingly.
10786
10787 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10788
10789 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10790 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10791 leaving the choice between SFDF and P implicit.
10792 (*mov<mode>_update2): Likewise.
10793 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10794 rather than leaving the choice betweem IBM128 and GPR implicit.
10795 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10796 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10797 QHSI implicit.
10798 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10799 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10800 * config/rs6000/vsx.md
10801 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10802 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10803 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10804 and VSX_EXTRACT_I implicit.
10805
10806 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
10807
10808 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10809 Explicitly use <MOVEP1:MODE> for the mode attribute.
10810
10811 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
10812
10813 PR bootstrap/91176
10814 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10815
10816 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
10817
10818 PR target/91050
10819 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10820 .machine directive.
10821
10822 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
10823
10824 * config/i386/i386.md (@test<mode>_ccno_1):
10825 Rename from test<mode>_ccno_1.
10826 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
10827 (*testqi_1_maybe_si): Remove modrm attribute.
10828 (*test<mode>_1): Ditto.
10829 * config/i386/i386-expand.c (ix86_split_idivmod): Use
10830 gen_test_ccno_1 and gen_extend_insn.
10831
10832 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
10833
10834 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10835 to 0.
10836
10837 2019-07-15 Richard Biener <rguenther@suse.de>
10838
10839 PR middle-end/91162
10840 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10841 node make sure to replace all uses with something valid.
10842
10843 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
10844
10845 PR tree-optimization/88497
10846 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10847 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10848 function undistribute_bitref_for_vector.
10849 (undistribute_bitref_for_vector): New function.
10850 (cleanup_vinfo_map): Likewise.
10851 (sort_by_mach_mode): Likewise.
10852
10853 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
10854
10855 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10856 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10857 and testdi_ccno_1 using SWI48 mode attribute.
10858 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10859 x86_64_szext_general_operand.
10860 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10861 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10862 instead of genera_operand mode attribute.
10863
10864 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
10865
10866 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10867 fopen and fclose to their respective types.
10868 (DotFn.invoke): Ditto.
10869
10870 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
10871
10872 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10873 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10874 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10875 (array_index_predicate): Remove.
10876 (analyze_function_body): Account cost for variable ofsetted array
10877 indexing.
10878 (estimate_node_size_and_time): Do not compute array index hint.
10879 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10880 (inline_read_section): Do not read array index hint.
10881 (ipa_fn_summary_write): Do not write array index hint.
10882 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10883 * ipa-cp.c (hint_time_bonus): Remove.
10884 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10885 (ipa_fnsummary): Remove array_index.
10886 * ipa-inline.c (want_inline_small_function_p): Do not use
10887 array_index.
10888 (edge_badness): Likewise.
10889 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10890
10891 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
10892
10893 PR target/91148
10894 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10895 superfluous "builtin function" phrasing.
10896
10897 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
10898
10899 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10900 Break out from ...
10901 (aliasing_component_refs_walk): Break out from ...
10902 (aliasing_component_refs_p): ... here.
10903
10904 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
10905
10906 PR target/91148
10907 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10908 "builtin function" phrasing.
10909
10910 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10911
10912 PR target/90723
10913 * recog.h (temporary_volatile_ok): New class.
10914 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10915 volatile_ok temporarily to true using temporary_volatile_ok.
10916 * expr.c (emit_block_move_via_cpymem): Likewise.
10917 * optabs.c (maybe_legitimize_operand): Likewise.
10918
10919 2019-07-13 Jakub Jelinek <jakub@redhat.com>
10920
10921 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10922 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10923 uses inside of order(concurrent) constructs.
10924 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10925 OMP_CLAUSE_ORDER is seen.
10926 * omp-low.c (struct omp_context): Add order_concurrent member.
10927 (scan_sharing_clauses): Set ctx->order_concurrent if
10928 OMP_CLAUSE_ORDER is seen.
10929 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10930 of simd order(concurrent). Diagnose constructs not allowed inside of
10931 for order(concurrent).
10932 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10933 complaining about static double setjmp (double); or class static
10934 methods or non-global namespace setjmps.
10935 (omp_runtime_api_call): New function.
10936 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10937 order(concurrent) loops.
10938
10939 2019-07-12 Martin Sebor <msebor@redhat.com>
10940
10941 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10942 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10943 * tree-vrp.c (vrp_prop::check_mem_ref): Use
10944 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10945
10946 2019-07-12 Jan Hubicka <jh@suse.cz>
10947
10948 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10949 (indirect_refs_may_alias_p): ... here.
10950 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10951 mem refs in the access paths.
10952
10953 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
10954
10955 PR tree-optimization/89430
10956 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10957 store elimination for local variable without address escape.
10958
10959 2019-07-12 Jeff Law <law@redhat.com>
10960
10961 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10962 for the ".far" section.
10963
10964 2019-07-12 Richard Biener <rguenther@suse.de>
10965
10966 PR tree-optimization/91145
10967 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10968 chain check.
10969
10970 2019-07-12 Alexandre Oliva <oliva@adacore.com>
10971
10972 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10973 rather than this_state as the lowering context for the ELSE
10974 seq in a GIMPLE_EH_ELSE.
10975
10976 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
10977
10978 * vector-builder.h (vector_builder::elt): Allow already-supplied
10979 elements to be read back before building is complete.
10980
10981 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10982
10983 PR rtl-optimization/91136
10984 * df-core.c (ACCESSING REFS): Fix typos in comment.
10985 * resource.c (mark_target_live_reg): Add artificial defs that occur at
10986 the beginning of the block to the initial set of live registers.
10987
10988 2019-07-12 Richard Biener <rguenther@suse.de>
10989
10990 * fold-const.h (get_array_ctor_element_at_index): Adjust.
10991 * fold-const.c (get_array_ctor_element_at_index): Add
10992 ctor_idx output parameter informing the caller where in
10993 the constructor the element was (not) found. Add early exit
10994 for when the ctor is sorted.
10995 * gimple-fold.c (fold_array_ctor_reference): Support constant
10996 folding across multiple array elements.
10997
10998 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
10999
11000 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
11001 doesn't have location, set the current location to the function's end.
11002
11003 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11004
11005 * config/aarch64/aarch64.md (*compare_condjump<mode>)
11006 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
11007 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
11008 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
11009 * config/aarch64/aarch64-simd.md
11010 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
11011 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
11012 * config/aarch64/aarch64-sve.md
11013 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
11014 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
11015
11016 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
11017
11018 * doc/md.texi: Document that @ patterns can have different
11019 numbers of operands.
11020 * genemit.c (handle_overloaded_gen): Handle this case.
11021 * genopinit.c (handle_overloaded_gen): Likewise.
11022 * gensupport.c (replace_operands_with_dups): Iterate over
11023 the new rtx's format rather than the old one's.
11024
11025 2019-07-12 Jakub Jelinek <jakub@redhat.com>
11026
11027 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
11028 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11029 order clause entries.
11030 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
11031 * tree-pretty-print.c (dump_omp_clause): Likewise.
11032 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
11033 Likewise.
11034 * omp-low.c (scan_sharing_clauses): Likewise.
11035 * tree-nested.c (convert_nonlocal_omp_clauses,
11036 convert_local_omp_clauses): Likewise.
11037
11038 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
11039
11040 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
11041 fallthrough target of current basic block isn't the placed
11042 right next.
11043
11044 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
11045
11046 PR target/90980
11047 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
11048 (_mm512_storeu_epi64): Likewise.
11049 (_mm512_loadu_epi32): Likewise.
11050 (_mm512_storeu_epi32): Likewise.
11051 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
11052 (_mm_storeu_epi64): Likewise.
11053 (_mm256_storeu_epi32): Likewise.
11054 (_mm_storeu_epi32): Likewise.
11055
11056 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11057
11058 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
11059
11060 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
11061
11062 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
11063 Handle Modula-2.
11064
11065 2019-07-11 Jakub Jelinek <jakub@redhat.com>
11066
11067 PR target/91124
11068 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
11069 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11070 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
11071 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
11072 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
11073 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
11074 define_insns.
11075 (ufix_truncv2dfv2si2<mask_name>): Change into ...
11076 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
11077 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
11078 define_insns.
11079 (sse2_cvttpd2dq<mask_name>): Change into ...
11080 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
11081 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
11082 (*sse2_cvtpd2dq<mask_name>): Change into ...
11083 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
11084 Add "C" constraint to const0_operand.
11085 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
11086 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
11087 changes.
11088
11089 PR target/91124
11090 * config/i386/i386-builtin-types.def
11091 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
11092 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
11093 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
11094 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
11095 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
11096 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
11097 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
11098 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
11099 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
11100 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
11101 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
11102 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
11103 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
11104 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
11105 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
11106 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
11107 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
11108 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
11109 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
11110 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
11111 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
11112 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
11113 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
11114 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
11115 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
11116 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
11117 __builtin_ia32_vpdpbusd_v4si_maskz,
11118 __builtin_ia32_vpdpbusds_v16si_mask,
11119 __builtin_ia32_vpdpbusds_v16si_maskz,
11120 __builtin_ia32_vpdpbusds_v8si_mask,
11121 __builtin_ia32_vpdpbusds_v8si_maskz,
11122 __builtin_ia32_vpdpbusds_v4si_mask,
11123 __builtin_ia32_vpdpbusds_v4si_maskz,
11124 __builtin_ia32_vpdpwssd_v16si_mask,
11125 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
11126 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
11127 __builtin_ia32_vpdpwssd_v4si_maskz,
11128 __builtin_ia32_vpdpwssds_v16si_mask,
11129 __builtin_ia32_vpdpwssds_v16si_maskz,
11130 __builtin_ia32_vpdpwssds_v8si_mask,
11131 __builtin_ia32_vpdpwssds_v8si_maskz,
11132 __builtin_ia32_vpdpwssds_v4si_mask,
11133 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
11134 suffixed types rather than *_INT.
11135 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
11136 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
11137 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
11138 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
11139 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
11140 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
11141
11142 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
11143
11144 * tree-vrp.c (intersect_ranges): If we know the intersection is
11145 empty, there is no need to conservatively add anything else to
11146 the set.
11147
11148 2019-07-11 Richard Biener <rguenther@suse.de>
11149
11150 PR middle-end/91131
11151 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
11152 when the object is volatile and we have not cleared it even though
11153 there are no nonzero elements.
11154
11155 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
11156
11157 * config/rs6000/predicates.md (cint34_operand): Update
11158 SIGNED_34BIT_OFFSET_P call.
11159 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
11160 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
11161 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
11162 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
11163 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
11164 argument.
11165 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
11166 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
11167 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
11168 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
11169 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
11170
11171 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
11172
11173 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11174 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11175 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11176 (DEF_MIN_OSX_VERSION): New.
11177
11178 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11179
11180 * fold-const.c (fold_relational_const): Fix folding of
11181 vector-to-scalar NE_EXPRs.
11182 (test_vector_folding): Add more tests.
11183
11184 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
11185
11186 PR target/91060
11187 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11188 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11189 (vec_setv2di_internal): Reexpress as...
11190 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11191 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11192 rather than gen_neon_vset_lane<mode>.
11193
11194 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
11195
11196 PR target/91102
11197 * lra-constraints.c (process_alt_operands): Don't match user
11198 defined regs only if they are early clobbers.
11199
11200 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
11201
11202 * wide-int.h (wi::lshift): Reject negative values for the fast path.
11203
11204 2019-07-10 Richard Biener <rguenther@suse.de>
11205
11206 PR tree-optimization/91126
11207 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11208 native encoding offset for BYTES_BIG_ENDIAN.
11209 (vn_reference_lookup_3): Likewise.
11210
11211 2019-07-10 Richard Biener <rguenther@suse.de>
11212
11213 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11214 LHS whenever possible.
11215
11216 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
11217
11218 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11219 from ...; work also on duplicated types.
11220 (nonoverlapping_component_refs_since_match): ... here
11221 (ncr_type_uid): Break out from ...
11222 (ncr_compar): ... here; look for TYPE_UID of canonical type if
11223 available.
11224 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11225 the types and nonoverlapping_component_refs_p_1 to disambiguate.
11226
11227 2019-07-09 Martin Sebor <msebor@redhat.com>
11228
11229 PR tree-optimization/90989
11230 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11231 optimization to just single character stores.
11232
11233 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
11234
11235 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11236 Swap operands only once.
11237
11238 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11239
11240 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11241 for both call instructions.
11242
11243 2019-07-09 John Darrington <john@darrington.wattle.id.au>
11244
11245 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11246 rather than GET_MODE_BITSIZE to better handle partial integer modes.
11247
11248 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
11249
11250 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11251 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11252 function from rs6000-logue.c back to rs6000.c.
11253 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11254
11255 2019-07-09 Martin Sebor <msebor@redhat.com>
11256
11257 PR c++/61339
11258 * auto-profile.c: Change class-key of PODs to struct and others
11259 to class.
11260 * basic-block.h: Same.
11261 * bitmap.c (bitmap_alloc): Same.
11262 * bitmap.h: Same.
11263 * builtins.c (expand_builtin_prefetch): Same.
11264 (expand_builtin_interclass_mathfn): Same.
11265 (expand_builtin_strlen): Same.
11266 (expand_builtin_mempcpy_args): Same.
11267 (expand_cmpstr): Same.
11268 (expand_builtin___clear_cache): Same.
11269 (expand_ifn_atomic_bit_test_and): Same.
11270 (expand_builtin_thread_pointer): Same.
11271 (expand_builtin_set_thread_pointer): Same.
11272 * caller-save.c (setup_save_areas): Same.
11273 (replace_reg_with_saved_mem): Same.
11274 (insert_restore): Same.
11275 (insert_save): Same.
11276 (add_used_regs): Same.
11277 * cfg.c (get_bb_copy): Same.
11278 (set_loop_copy): Same.
11279 * cfg.h: Same.
11280 * cfganal.h: Same.
11281 * cfgexpand.c (alloc_stack_frame_space): Same.
11282 (add_stack_var): Same.
11283 (add_stack_var_conflict): Same.
11284 (add_scope_conflicts_1): Same.
11285 (update_alias_info_with_stack_vars): Same.
11286 (expand_used_vars): Same.
11287 * cfghooks.c (redirect_edge_and_branch_force): Same.
11288 (delete_basic_block): Same.
11289 (split_edge): Same.
11290 (make_forwarder_block): Same.
11291 (force_nonfallthru): Same.
11292 (duplicate_block): Same.
11293 (lv_flush_pending_stmts): Same.
11294 * cfghooks.h: Same.
11295 * cfgloop.c (flow_loops_cfg_dump): Same.
11296 (flow_loop_nested_p): Same.
11297 (superloop_at_depth): Same.
11298 (get_loop_latch_edges): Same.
11299 (flow_loop_dump): Same.
11300 (flow_loops_dump): Same.
11301 (flow_loops_free): Same.
11302 (flow_loop_nodes_find): Same.
11303 (establish_preds): Same.
11304 (flow_loop_tree_node_add): Same.
11305 (flow_loop_tree_node_remove): Same.
11306 (flow_loops_find): Same.
11307 (find_subloop_latch_edge_by_profile): Same.
11308 (find_subloop_latch_edge_by_ivs): Same.
11309 (mfb_redirect_edges_in_set): Same.
11310 (form_subloop): Same.
11311 (merge_latch_edges): Same.
11312 (disambiguate_multiple_latches): Same.
11313 (disambiguate_loops_with_multiple_latches): Same.
11314 (flow_bb_inside_loop_p): Same.
11315 (glb_enum_p): Same.
11316 (get_loop_body_with_size): Same.
11317 (get_loop_body): Same.
11318 (fill_sons_in_loop): Same.
11319 (get_loop_body_in_dom_order): Same.
11320 (get_loop_body_in_custom_order): Same.
11321 (release_recorded_exits): Same.
11322 (get_loop_exit_edges): Same.
11323 (num_loop_branches): Same.
11324 (remove_bb_from_loops): Same.
11325 (find_common_loop): Same.
11326 (delete_loop): Same.
11327 (cancel_loop): Same.
11328 (verify_loop_structure): Same.
11329 (loop_preheader_edge): Same.
11330 (loop_exit_edge_p): Same.
11331 (single_exit): Same.
11332 (loop_exits_to_bb_p): Same.
11333 (loop_exits_from_bb_p): Same.
11334 (get_loop_location): Same.
11335 (record_niter_bound): Same.
11336 (get_estimated_loop_iterations_int): Same.
11337 (max_stmt_executions_int): Same.
11338 (likely_max_stmt_executions_int): Same.
11339 (get_estimated_loop_iterations): Same.
11340 (get_max_loop_iterations): Same.
11341 (get_max_loop_iterations_int): Same.
11342 (get_likely_max_loop_iterations): Same.
11343 * cfgloop.h (simple_loop_desc): Same.
11344 (get_loop): Same.
11345 (loop_depth): Same.
11346 (loop_outer): Same.
11347 (loop_iterator::next): Same.
11348 (loop_outermost): Same.
11349 * cfgloopanal.c (mark_irreducible_loops): Same.
11350 (num_loop_insns): Same.
11351 (average_num_loop_insns): Same.
11352 (expected_loop_iterations_unbounded): Same.
11353 (expected_loop_iterations): Same.
11354 (mark_loop_exit_edges): Same.
11355 (single_likely_exit): Same.
11356 * cfgloopmanip.c (fix_bb_placement): Same.
11357 (fix_bb_placements): Same.
11358 (remove_path): Same.
11359 (place_new_loop): Same.
11360 (add_loop): Same.
11361 (scale_loop_frequencies): Same.
11362 (scale_loop_profile): Same.
11363 (create_empty_if_region_on_edge): Same.
11364 (create_empty_loop_on_edge): Same.
11365 (loopify): Same.
11366 (unloop): Same.
11367 (fix_loop_placements): Same.
11368 (copy_loop_info): Same.
11369 (duplicate_loop): Same.
11370 (duplicate_subloops): Same.
11371 (loop_redirect_edge): Same.
11372 (can_duplicate_loop_p): Same.
11373 (duplicate_loop_to_header_edge): Same.
11374 (mfb_keep_just): Same.
11375 (has_preds_from_loop): Same.
11376 (create_preheader): Same.
11377 (create_preheaders): Same.
11378 (lv_adjust_loop_entry_edge): Same.
11379 (loop_version): Same.
11380 * cfgloopmanip.h: Same.
11381 * cgraph.h: Same.
11382 * cgraphbuild.c: Same.
11383 * combine.c (make_extraction): Same.
11384 * config/i386/i386-features.c: Same.
11385 * config/i386/i386-features.h: Same.
11386 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11387 (ix86_emit_outlined_ms2sysv_restore): Same.
11388 (ix86_noce_conversion_profitable_p): Same.
11389 (ix86_init_cost): Same.
11390 (ix86_simd_clone_usable): Same.
11391 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11392 Wstruct-not-pod.
11393 * coretypes.h: Same.
11394 * data-streamer-in.c (string_for_index): Change class-key of PODs
11395 to struct and others to class.
11396 (streamer_read_indexed_string): Same.
11397 (streamer_read_string): Same.
11398 (bp_unpack_indexed_string): Same.
11399 (bp_unpack_string): Same.
11400 (streamer_read_uhwi): Same.
11401 (streamer_read_hwi): Same.
11402 (streamer_read_gcov_count): Same.
11403 (streamer_read_wide_int): Same.
11404 * data-streamer.h (streamer_write_bitpack): Same.
11405 (bp_unpack_value): Same.
11406 (streamer_write_char_stream): Same.
11407 (streamer_write_hwi_in_range): Same.
11408 (streamer_write_record_start): Same.
11409 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11410 (add_cross_iteration_register_deps): Same.
11411 (build_intra_loop_deps): Same.
11412 * df-core.c (df_analyze): Same.
11413 (loop_post_order_compute): Same.
11414 (loop_inverted_post_order_compute): Same.
11415 * df-problems.c (df_rd_alloc): Same.
11416 (df_rd_simulate_one_insn): Same.
11417 (df_rd_local_compute): Same.
11418 (df_rd_init_solution): Same.
11419 (df_rd_confluence_n): Same.
11420 (df_rd_transfer_function): Same.
11421 (df_rd_free): Same.
11422 (df_rd_dump_defs_set): Same.
11423 (df_rd_top_dump): Same.
11424 (df_lr_alloc): Same.
11425 (df_lr_reset): Same.
11426 (df_lr_local_compute): Same.
11427 (df_lr_init): Same.
11428 (df_lr_confluence_n): Same.
11429 (df_lr_free): Same.
11430 (df_lr_top_dump): Same.
11431 (df_lr_verify_transfer_functions): Same.
11432 (df_live_alloc): Same.
11433 (df_live_reset): Same.
11434 (df_live_init): Same.
11435 (df_live_confluence_n): Same.
11436 (df_live_finalize): Same.
11437 (df_live_free): Same.
11438 (df_live_top_dump): Same.
11439 (df_live_verify_transfer_functions): Same.
11440 (df_mir_alloc): Same.
11441 (df_mir_reset): Same.
11442 (df_mir_init): Same.
11443 (df_mir_confluence_n): Same.
11444 (df_mir_free): Same.
11445 (df_mir_top_dump): Same.
11446 (df_word_lr_alloc): Same.
11447 (df_word_lr_reset): Same.
11448 (df_word_lr_init): Same.
11449 (df_word_lr_confluence_n): Same.
11450 (df_word_lr_free): Same.
11451 (df_word_lr_top_dump): Same.
11452 (df_md_alloc): Same.
11453 (df_md_simulate_one_insn): Same.
11454 (df_md_reset): Same.
11455 (df_md_init): Same.
11456 (df_md_free): Same.
11457 (df_md_top_dump): Same.
11458 * df-scan.c (df_insn_delete): Same.
11459 (df_insn_rescan): Same.
11460 (df_notes_rescan): Same.
11461 (df_sort_and_compress_mws): Same.
11462 (df_install_mws): Same.
11463 (df_refs_add_to_chains): Same.
11464 (df_ref_create_structure): Same.
11465 (df_ref_record): Same.
11466 (df_def_record_1): Same.
11467 (df_find_hard_reg_defs): Same.
11468 (df_uses_record): Same.
11469 (df_get_conditional_uses): Same.
11470 (df_get_call_refs): Same.
11471 (df_recompute_luids): Same.
11472 (df_get_entry_block_def_set): Same.
11473 (df_entry_block_defs_collect): Same.
11474 (df_get_exit_block_use_set): Same.
11475 (df_exit_block_uses_collect): Same.
11476 (df_mws_verify): Same.
11477 (df_bb_verify): Same.
11478 * df.h (df_scan_get_bb_info): Same.
11479 * doc/tm.texi: Same.
11480 * dse.c (record_store): Same.
11481 * dumpfile.h: Same.
11482 * emit-rtl.c (const_fixed_hasher::equal): Same.
11483 (set_mem_attributes_minus_bitpos): Same.
11484 (change_address): Same.
11485 (adjust_address_1): Same.
11486 (offset_address): Same.
11487 * emit-rtl.h: Same.
11488 * except.c (dw2_build_landing_pads): Same.
11489 (sjlj_emit_dispatch_table): Same.
11490 * explow.c (allocate_dynamic_stack_space): Same.
11491 (emit_stack_probe): Same.
11492 (probe_stack_range): Same.
11493 * expmed.c (store_bit_field_using_insv): Same.
11494 (store_bit_field_1): Same.
11495 (store_integral_bit_field): Same.
11496 (extract_bit_field_using_extv): Same.
11497 (extract_bit_field_1): Same.
11498 (emit_cstore): Same.
11499 * expr.c (emit_block_move_via_cpymem): Same.
11500 (expand_cmpstrn_or_cmpmem): Same.
11501 (set_storage_via_setmem): Same.
11502 (emit_single_push_insn_1): Same.
11503 (expand_assignment): Same.
11504 (store_constructor): Same.
11505 (expand_expr_real_2): Same.
11506 (expand_expr_real_1): Same.
11507 (try_casesi): Same.
11508 * flags.h: Same.
11509 * function.c (try_fit_stack_local): Same.
11510 (assign_stack_local_1): Same.
11511 (assign_stack_local): Same.
11512 (cut_slot_from_list): Same.
11513 (insert_slot_to_list): Same.
11514 (max_slot_level): Same.
11515 (move_slot_to_level): Same.
11516 (temp_address_hasher::equal): Same.
11517 (remove_unused_temp_slot_addresses): Same.
11518 (assign_temp): Same.
11519 (combine_temp_slots): Same.
11520 (update_temp_slot_address): Same.
11521 (preserve_temp_slots): Same.
11522 * function.h: Same.
11523 * fwprop.c: Same.
11524 * gcc-rich-location.h: Same.
11525 * gcov.c: Same.
11526 * genattrtab.c (check_attr_test): Same.
11527 (check_attr_value): Same.
11528 (convert_set_attr_alternative): Same.
11529 (convert_set_attr): Same.
11530 (check_defs): Same.
11531 (copy_boolean): Same.
11532 (get_attr_value): Same.
11533 (expand_delays): Same.
11534 (make_length_attrs): Same.
11535 (min_fn): Same.
11536 (make_alternative_compare): Same.
11537 (simplify_test_exp): Same.
11538 (tests_attr_p): Same.
11539 (get_attr_order): Same.
11540 (clear_struct_flag): Same.
11541 (gen_attr): Same.
11542 (compares_alternatives_p): Same.
11543 (gen_insn): Same.
11544 (gen_delay): Same.
11545 (find_attrs_to_cache): Same.
11546 (write_test_expr): Same.
11547 (walk_attr_value): Same.
11548 (write_attr_get): Same.
11549 (eliminate_known_true): Same.
11550 (write_insn_cases): Same.
11551 (write_attr_case): Same.
11552 (write_attr_valueq): Same.
11553 (write_attr_value): Same.
11554 (write_dummy_eligible_delay): Same.
11555 (next_comma_elt): Same.
11556 (find_attr): Same.
11557 (make_internal_attr): Same.
11558 (copy_rtx_unchanging): Same.
11559 (gen_insn_reserv): Same.
11560 (check_tune_attr): Same.
11561 (make_automaton_attrs): Same.
11562 (handle_arg): Same.
11563 * genextract.c (gen_insn): Same.
11564 (VEC_char_to_string): Same.
11565 * genmatch.c (print_operand): Same.
11566 (lower): Same.
11567 (parser::parse_operation): Same.
11568 (parser::parse_capture): Same.
11569 (parser::parse_c_expr): Same.
11570 (parser::parse_simplify): Same.
11571 (main): Same.
11572 * genoutput.c (output_operand_data): Same.
11573 (output_get_insn_name): Same.
11574 (compare_operands): Same.
11575 (place_operands): Same.
11576 (process_template): Same.
11577 (validate_insn_alternatives): Same.
11578 (validate_insn_operands): Same.
11579 (gen_expand): Same.
11580 (note_constraint): Same.
11581 * genpreds.c (write_one_predicate_function): Same.
11582 (add_constraint): Same.
11583 (process_define_register_constraint): Same.
11584 (write_lookup_constraint_1): Same.
11585 (write_lookup_constraint_array): Same.
11586 (write_insn_constraint_len): Same.
11587 (write_reg_class_for_constraint_1): Same.
11588 (write_constraint_satisfied_p_array): Same.
11589 * genrecog.c (optimize_subroutine_group): Same.
11590 * gensupport.c (process_define_predicate): Same.
11591 (queue_pattern): Same.
11592 (remove_from_queue): Same.
11593 (process_rtx): Same.
11594 (is_predicable): Same.
11595 (change_subst_attribute): Same.
11596 (subst_pattern_match): Same.
11597 (alter_constraints): Same.
11598 (alter_attrs_for_insn): Same.
11599 (shift_output_template): Same.
11600 (alter_output_for_subst_insn): Same.
11601 (process_one_cond_exec): Same.
11602 (subst_dup): Same.
11603 (process_define_cond_exec): Same.
11604 (mnemonic_htab_callback): Same.
11605 (gen_mnemonic_attr): Same.
11606 (read_md_rtx): Same.
11607 * ggc-page.c: Same.
11608 * gimple-loop-interchange.cc (dump_reduction): Same.
11609 (dump_induction): Same.
11610 (loop_cand::~loop_cand): Same.
11611 (free_data_refs_with_aux): Same.
11612 (tree_loop_interchange::interchange_loops): Same.
11613 (tree_loop_interchange::map_inductions_to_loop): Same.
11614 (tree_loop_interchange::move_code_to_inner_loop): Same.
11615 (compute_access_stride): Same.
11616 (compute_access_strides): Same.
11617 (proper_loop_form_for_interchange): Same.
11618 (tree_loop_interchange_compute_ddrs): Same.
11619 (prune_datarefs_not_in_loop): Same.
11620 (prepare_data_references): Same.
11621 (pass_linterchange::execute): Same.
11622 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11623 (unroll_jam_possible_p): Same.
11624 (fuse_loops): Same.
11625 (adjust_unroll_factor): Same.
11626 (tree_loop_unroll_and_jam): Same.
11627 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11628 (loop_versioning::expensive_stmt_p): Same.
11629 (loop_versioning::version_for_unity): Same.
11630 (loop_versioning::dump_inner_likelihood): Same.
11631 (loop_versioning::find_per_loop_multiplication): Same.
11632 (loop_versioning::analyze_term_using_scevs): Same.
11633 (loop_versioning::record_address_fragment): Same.
11634 (loop_versioning::analyze_expr): Same.
11635 (loop_versioning::analyze_blocks): Same.
11636 (loop_versioning::prune_conditions): Same.
11637 (loop_versioning::merge_loop_info): Same.
11638 (loop_versioning::add_loop_to_queue): Same.
11639 (loop_versioning::decide_whether_loop_is_versionable): Same.
11640 (loop_versioning::make_versioning_decisions): Same.
11641 (loop_versioning::implement_versioning_decisions): Same.
11642 * gimple-ssa-evrp-analyze.c
11643 (evrp_range_analyzer::record_ranges_from_phis): Same.
11644 * gimple-ssa-store-merging.c (split_store::split_store): Same.
11645 (count_multiple_uses): Same.
11646 (split_group): Same.
11647 (imm_store_chain_info::output_merged_store): Same.
11648 (pass_store_merging::process_store): Same.
11649 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11650 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11651 (is_max): Same.
11652 (alloca_call_type): Same.
11653 (pass_walloca::execute): Same.
11654 * gimple-streamer-in.c (input_phi): Same.
11655 (input_gimple_stmt): Same.
11656 * gimple-streamer.h: Same.
11657 * godump.c (go_force_record_alignment): Same.
11658 (go_format_type): Same.
11659 (go_output_type): Same.
11660 (go_output_fndecl): Same.
11661 (go_output_typedef): Same.
11662 (keyword_hash_init): Same.
11663 (find_dummy_types): Same.
11664 * graph.c (draw_cfg_nodes_no_loops): Same.
11665 (draw_cfg_nodes_for_loop): Same.
11666 * hard-reg-set.h (hard_reg_set_iter_next): Same.
11667 * hsa-brig.c: Same.
11668 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11669 * hsa-dump.c (dump_hsa_cfun): Same.
11670 * hsa-gen.c (gen_function_def_parameters): Same.
11671 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11672 * input.c (dump_line_table_statistics): Same.
11673 (test_lexer): Same.
11674 * input.h: Same.
11675 * internal-fn.c (get_multi_vector_move): Same.
11676 (expand_load_lanes_optab_fn): Same.
11677 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11678 (expand_GOMP_SIMT_EXIT): Same.
11679 (expand_GOMP_SIMT_LAST_LANE): Same.
11680 (expand_GOMP_SIMT_ORDERED_PRED): Same.
11681 (expand_GOMP_SIMT_VOTE_ANY): Same.
11682 (expand_GOMP_SIMT_XCHG_BFLY): Same.
11683 (expand_GOMP_SIMT_XCHG_IDX): Same.
11684 (expand_addsub_overflow): Same.
11685 (expand_neg_overflow): Same.
11686 (expand_mul_overflow): Same.
11687 (expand_call_mem_ref): Same.
11688 (expand_mask_load_optab_fn): Same.
11689 (expand_scatter_store_optab_fn): Same.
11690 (expand_gather_load_optab_fn): Same.
11691 * ipa-cp.c (ipa_get_parm_lattices): Same.
11692 (print_all_lattices): Same.
11693 (ignore_edge_p): Same.
11694 (build_toporder_info): Same.
11695 (free_toporder_info): Same.
11696 (push_node_to_stack): Same.
11697 (ipcp_lattice<valtype>::set_contains_variable): Same.
11698 (set_agg_lats_to_bottom): Same.
11699 (ipcp_bits_lattice::meet_with): Same.
11700 (set_single_call_flag): Same.
11701 (initialize_node_lattices): Same.
11702 (ipa_get_jf_ancestor_result): Same.
11703 (ipcp_verify_propagated_values): Same.
11704 (propagate_scalar_across_jump_function): Same.
11705 (propagate_context_across_jump_function): Same.
11706 (propagate_bits_across_jump_function): Same.
11707 (ipa_vr_operation_and_type_effects): Same.
11708 (propagate_vr_across_jump_function): Same.
11709 (set_check_aggs_by_ref): Same.
11710 (set_chain_of_aglats_contains_variable): Same.
11711 (merge_aggregate_lattices): Same.
11712 (agg_pass_through_permissible_p): Same.
11713 (propagate_aggs_across_jump_function): Same.
11714 (call_passes_through_thunk_p): Same.
11715 (propagate_constants_across_call): Same.
11716 (devirtualization_time_bonus): Same.
11717 (good_cloning_opportunity_p): Same.
11718 (context_independent_aggregate_values): Same.
11719 (gather_context_independent_values): Same.
11720 (perform_estimation_of_a_value): Same.
11721 (estimate_local_effects): Same.
11722 (value_topo_info<valtype>::add_val): Same.
11723 (add_all_node_vals_to_toposort): Same.
11724 (value_topo_info<valtype>::propagate_effects): Same.
11725 (ipcp_propagate_stage): Same.
11726 (ipcp_discover_new_direct_edges): Same.
11727 (same_node_or_its_all_contexts_clone_p): Same.
11728 (cgraph_edge_brings_value_p): Same.
11729 (gather_edges_for_value): Same.
11730 (create_specialized_node): Same.
11731 (find_more_scalar_values_for_callers_subset): Same.
11732 (find_more_contexts_for_caller_subset): Same.
11733 (copy_plats_to_inter): Same.
11734 (intersect_aggregates_with_edge): Same.
11735 (find_aggregate_values_for_callers_subset): Same.
11736 (cgraph_edge_brings_all_agg_vals_for_node): Same.
11737 (decide_about_value): Same.
11738 (decide_whether_version_node): Same.
11739 (spread_undeadness): Same.
11740 (identify_dead_nodes): Same.
11741 (ipcp_store_vr_results): Same.
11742 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11743 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11744 (redirect_to_unreachable): Same.
11745 (edge_set_predicate): Same.
11746 (evaluate_conditions_for_known_args): Same.
11747 (evaluate_properties_for_edge): Same.
11748 (ipa_fn_summary_t::duplicate): Same.
11749 (ipa_call_summary_t::duplicate): Same.
11750 (dump_ipa_call_summary): Same.
11751 (ipa_dump_fn_summary): Same.
11752 (eliminated_by_inlining_prob): Same.
11753 (set_cond_stmt_execution_predicate): Same.
11754 (set_switch_stmt_execution_predicate): Same.
11755 (compute_bb_predicates): Same.
11756 (will_be_nonconstant_expr_predicate): Same.
11757 (phi_result_unknown_predicate): Same.
11758 (analyze_function_body): Same.
11759 (compute_fn_summary): Same.
11760 (estimate_edge_devirt_benefit): Same.
11761 (estimate_edge_size_and_time): Same.
11762 (estimate_calls_size_and_time): Same.
11763 (estimate_node_size_and_time): Same.
11764 (remap_edge_change_prob): Same.
11765 (remap_edge_summaries): Same.
11766 (ipa_merge_fn_summary_after_inlining): Same.
11767 (ipa_fn_summary_generate): Same.
11768 (inline_read_section): Same.
11769 (ipa_fn_summary_read): Same.
11770 (ipa_fn_summary_write): Same.
11771 * ipa-fnsummary.h: Same.
11772 * ipa-hsa.c (ipa_hsa_read_section): Same.
11773 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11774 * ipa-icf.c (sem_function::param_used_p): Same.
11775 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11776 * ipa-inline.c (edge_badness): Same.
11777 (inline_small_functions): Same.
11778 * ipa-polymorphic-call.c
11779 (ipa_polymorphic_call_context::stream_out): Same.
11780 * ipa-predicate.c (predicate::remap_after_duplication): Same.
11781 (predicate::remap_after_inlining): Same.
11782 (predicate::stream_out): Same.
11783 * ipa-predicate.h: Same.
11784 * ipa-profile.c (ipa_profile_read_summary): Same.
11785 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11786 (count_formal_params): Same.
11787 (ipa_dump_param): Same.
11788 (ipa_alloc_node_params): Same.
11789 (ipa_print_node_jump_functions_for_edge): Same.
11790 (ipa_print_node_jump_functions): Same.
11791 (ipa_load_from_parm_agg): Same.
11792 (get_ancestor_addr_info): Same.
11793 (ipa_compute_jump_functions_for_edge): Same.
11794 (ipa_analyze_virtual_call_uses): Same.
11795 (ipa_analyze_stmt_uses): Same.
11796 (ipa_analyze_params_uses_in_bb): Same.
11797 (update_jump_functions_after_inlining): Same.
11798 (try_decrement_rdesc_refcount): Same.
11799 (ipa_impossible_devirt_target): Same.
11800 (update_indirect_edges_after_inlining): Same.
11801 (combine_controlled_uses_counters): Same.
11802 (ipa_edge_args_sum_t::duplicate): Same.
11803 (ipa_write_jump_function): Same.
11804 (ipa_write_indirect_edge_info): Same.
11805 (ipa_write_node_info): Same.
11806 (ipa_read_edge_info): Same.
11807 (ipa_prop_read_section): Same.
11808 (read_replacements_section): Same.
11809 * ipa-prop.h (ipa_get_param_count): Same.
11810 (ipa_get_param): Same.
11811 (ipa_get_type): Same.
11812 (ipa_get_param_move_cost): Same.
11813 (ipa_set_param_used): Same.
11814 (ipa_get_controlled_uses): Same.
11815 (ipa_set_controlled_uses): Same.
11816 (ipa_get_cs_argument_count): Same.
11817 * ipa-pure-const.c (analyze_function): Same.
11818 (pure_const_read_summary): Same.
11819 * ipa-ref.h: Same.
11820 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11821 * ipa-split.c (test_nonssa_use): Same.
11822 (dump_split_point): Same.
11823 (dominated_by_forbidden): Same.
11824 (split_part_set_ssa_name_p): Same.
11825 (find_split_points): Same.
11826 * ira-build.c (finish_loop_tree_nodes): Same.
11827 (low_pressure_loop_node_p): Same.
11828 * ira-color.c (ira_reuse_stack_slot): Same.
11829 * ira-int.h: Same.
11830 * ira.c (setup_reg_equiv): Same.
11831 (print_insn_chain): Same.
11832 (ira): Same.
11833 * loop-doloop.c (doloop_condition_get): Same.
11834 (add_test): Same.
11835 (record_reg_sets): Same.
11836 (doloop_optimize): Same.
11837 * loop-init.c (loop_optimizer_init): Same.
11838 (fix_loop_structure): Same.
11839 * loop-invariant.c (merge_identical_invariants): Same.
11840 (compute_always_reached): Same.
11841 (find_exits): Same.
11842 (may_assign_reg_p): Same.
11843 (find_invariants_bb): Same.
11844 (find_invariants_body): Same.
11845 (replace_uses): Same.
11846 (can_move_invariant_reg): Same.
11847 (free_inv_motion_data): Same.
11848 (move_single_loop_invariants): Same.
11849 (change_pressure): Same.
11850 (mark_ref_regs): Same.
11851 (calculate_loop_reg_pressure): Same.
11852 * loop-iv.c (biv_entry_hasher::equal): Same.
11853 (iv_extend_to_rtx_code): Same.
11854 (check_iv_ref_table_size): Same.
11855 (clear_iv_info): Same.
11856 (latch_dominating_def): Same.
11857 (iv_get_reaching_def): Same.
11858 (iv_constant): Same.
11859 (iv_subreg): Same.
11860 (iv_extend): Same.
11861 (iv_neg): Same.
11862 (iv_add): Same.
11863 (iv_mult): Same.
11864 (get_biv_step): Same.
11865 (record_iv): Same.
11866 (analyzed_for_bivness_p): Same.
11867 (record_biv): Same.
11868 (iv_analyze_biv): Same.
11869 (iv_analyze_expr): Same.
11870 (iv_analyze_def): Same.
11871 (iv_analyze_op): Same.
11872 (iv_analyze): Same.
11873 (iv_analyze_result): Same.
11874 (biv_p): Same.
11875 (eliminate_implied_conditions): Same.
11876 (simplify_using_initial_values): Same.
11877 (shorten_into_mode): Same.
11878 (canonicalize_iv_subregs): Same.
11879 (determine_max_iter): Same.
11880 (check_simple_exit): Same.
11881 (find_simple_exit): Same.
11882 (get_simple_loop_desc): Same.
11883 * loop-unroll.c (report_unroll): Same.
11884 (decide_unrolling): Same.
11885 (unroll_loops): Same.
11886 (loop_exit_at_end_p): Same.
11887 (decide_unroll_constant_iterations): Same.
11888 (unroll_loop_constant_iterations): Same.
11889 (compare_and_jump_seq): Same.
11890 (unroll_loop_runtime_iterations): Same.
11891 (decide_unroll_stupid): Same.
11892 (unroll_loop_stupid): Same.
11893 (referenced_in_one_insn_in_loop_p): Same.
11894 (reset_debug_uses_in_loop): Same.
11895 (analyze_iv_to_split_insn): Same.
11896 * lra-eliminations.c (lra_debug_elim_table): Same.
11897 (setup_can_eliminate): Same.
11898 (form_sum): Same.
11899 (lra_get_elimination_hard_regno): Same.
11900 (lra_eliminate_regs_1): Same.
11901 (eliminate_regs_in_insn): Same.
11902 (update_reg_eliminate): Same.
11903 (init_elimination): Same.
11904 (lra_eliminate): Same.
11905 * lra-int.h: Same.
11906 * lra-lives.c (initiate_live_solver): Same.
11907 * lra-remat.c (create_remat_bb_data): Same.
11908 * lra-spills.c (lra_spill): Same.
11909 * lra.c (lra_set_insn_recog_data): Same.
11910 (lra_set_used_insn_alternative_by_uid): Same.
11911 (init_reg_info): Same.
11912 (expand_reg_info): Same.
11913 * lto-cgraph.c (output_symtab): Same.
11914 (read_identifier): Same.
11915 (get_alias_symbol): Same.
11916 (input_node): Same.
11917 (input_varpool_node): Same.
11918 (input_ref): Same.
11919 (input_edge): Same.
11920 (input_cgraph_1): Same.
11921 (input_refs): Same.
11922 (input_symtab): Same.
11923 (input_offload_tables): Same.
11924 (output_cgraph_opt_summary): Same.
11925 (input_edge_opt_summary): Same.
11926 (input_cgraph_opt_section): Same.
11927 * lto-section-in.c (lto_free_raw_section_data): Same.
11928 (lto_create_simple_input_block): Same.
11929 (lto_free_function_in_decl_state_for_node): Same.
11930 * lto-streamer-in.c (lto_tag_check_set): Same.
11931 (lto_location_cache::revert_location_cache): Same.
11932 (lto_location_cache::input_location): Same.
11933 (lto_input_location): Same.
11934 (stream_input_location_now): Same.
11935 (lto_input_tree_ref): Same.
11936 (lto_input_eh_catch_list): Same.
11937 (input_eh_region): Same.
11938 (lto_init_eh): Same.
11939 (make_new_block): Same.
11940 (input_cfg): Same.
11941 (fixup_call_stmt_edges): Same.
11942 (input_struct_function_base): Same.
11943 (input_function): Same.
11944 (lto_read_body_or_constructor): Same.
11945 (lto_read_tree_1): Same.
11946 (lto_read_tree): Same.
11947 (lto_input_scc): Same.
11948 (lto_input_tree_1): Same.
11949 (lto_input_toplevel_asms): Same.
11950 (lto_input_mode_table): Same.
11951 (lto_reader_init): Same.
11952 (lto_data_in_create): Same.
11953 * lto-streamer-out.c (output_cfg): Same.
11954 * lto-streamer.h: Same.
11955 * modulo-sched.c (duplicate_insns_of_cycles): Same.
11956 (generate_prolog_epilog): Same.
11957 (mark_loop_unsched): Same.
11958 (dump_insn_location): Same.
11959 (loop_canon_p): Same.
11960 (sms_schedule): Same.
11961 * omp-expand.c (expand_omp_for_ordered_loops): Same.
11962 (expand_omp_for_generic): Same.
11963 (expand_omp_for_static_nochunk): Same.
11964 (expand_omp_for_static_chunk): Same.
11965 (expand_omp_simd): Same.
11966 (expand_omp_taskloop_for_inner): Same.
11967 (expand_oacc_for): Same.
11968 (expand_omp_atomic_pipeline): Same.
11969 (mark_loops_in_oacc_kernels_region): Same.
11970 * omp-offload.c (oacc_xform_loop): Same.
11971 * omp-simd-clone.c (simd_clone_adjust): Same.
11972 * optabs-query.c (get_traditional_extraction_insn): Same.
11973 * optabs.c (expand_vector_broadcast): Same.
11974 (expand_binop_directly): Same.
11975 (expand_twoval_unop): Same.
11976 (expand_twoval_binop): Same.
11977 (expand_unop_direct): Same.
11978 (emit_indirect_jump): Same.
11979 (emit_conditional_move): Same.
11980 (emit_conditional_neg_or_complement): Same.
11981 (emit_conditional_add): Same.
11982 (vector_compare_rtx): Same.
11983 (expand_vec_perm_1): Same.
11984 (expand_vec_perm_const): Same.
11985 (expand_vec_cond_expr): Same.
11986 (expand_vec_series_expr): Same.
11987 (maybe_emit_atomic_exchange): Same.
11988 (maybe_emit_sync_lock_test_and_set): Same.
11989 (expand_atomic_compare_and_swap): Same.
11990 (expand_atomic_load): Same.
11991 (expand_atomic_store): Same.
11992 (maybe_emit_op): Same.
11993 (valid_multiword_target_p): Same.
11994 (create_integer_operand): Same.
11995 (maybe_legitimize_operand_same_code): Same.
11996 (maybe_legitimize_operand): Same.
11997 (create_convert_operand_from_type): Same.
11998 (can_reuse_operands_p): Same.
11999 (maybe_legitimize_operands): Same.
12000 (maybe_gen_insn): Same.
12001 (maybe_expand_insn): Same.
12002 (maybe_expand_jump_insn): Same.
12003 (expand_insn): Same.
12004 * optabs.h (create_expand_operand): Same.
12005 (create_fixed_operand): Same.
12006 (create_output_operand): Same.
12007 (create_input_operand): Same.
12008 (create_convert_operand_to): Same.
12009 (create_convert_operand_from): Same.
12010 * optinfo.h: Same.
12011 * poly-int.h: Same.
12012 * predict.c (optimize_insn_for_speed_p): Same.
12013 (optimize_loop_for_size_p): Same.
12014 (optimize_loop_for_speed_p): Same.
12015 (optimize_loop_nest_for_speed_p): Same.
12016 (get_base_value): Same.
12017 (predicted_by_loop_heuristics_p): Same.
12018 (predict_extra_loop_exits): Same.
12019 (predict_loops): Same.
12020 (predict_paths_for_bb): Same.
12021 (predict_paths_leading_to): Same.
12022 (propagate_freq): Same.
12023 (pass_profile::execute): Same.
12024 * predict.h: Same.
12025 * profile-count.c (profile_count::differs_from_p): Same.
12026 (profile_probability::differs_lot_from_p): Same.
12027 * profile-count.h: Same.
12028 * profile.c (branch_prob): Same.
12029 * regrename.c (free_chain_data): Same.
12030 (mark_conflict): Same.
12031 (create_new_chain): Same.
12032 (merge_overlapping_regs): Same.
12033 (init_rename_info): Same.
12034 (merge_chains): Same.
12035 (regrename_analyze): Same.
12036 (regrename_do_replace): Same.
12037 (scan_rtx_reg): Same.
12038 (record_out_operands): Same.
12039 (build_def_use): Same.
12040 * regrename.h: Same.
12041 * reload.h: Same.
12042 * reload1.c (init_reload): Same.
12043 (maybe_fix_stack_asms): Same.
12044 (copy_reloads): Same.
12045 (count_pseudo): Same.
12046 (count_spilled_pseudo): Same.
12047 (find_reg): Same.
12048 (find_reload_regs): Same.
12049 (select_reload_regs): Same.
12050 (spill_hard_reg): Same.
12051 (fixup_eh_region_note): Same.
12052 (set_reload_reg): Same.
12053 (allocate_reload_reg): Same.
12054 (compute_reload_subreg_offset): Same.
12055 (reload_adjust_reg_for_icode): Same.
12056 (emit_input_reload_insns): Same.
12057 (emit_output_reload_insns): Same.
12058 (do_input_reload): Same.
12059 (inherit_piecemeal_p): Same.
12060 * rtl.h: Same.
12061 * sanopt.c (maybe_get_dominating_check): Same.
12062 (maybe_optimize_ubsan_ptr_ifn): Same.
12063 (can_remove_asan_check): Same.
12064 (maybe_optimize_asan_check_ifn): Same.
12065 (sanopt_optimize_walker): Same.
12066 * sched-deps.c (add_dependence_list): Same.
12067 (chain_to_prev_insn): Same.
12068 (add_insn_mem_dependence): Same.
12069 (create_insn_reg_set): Same.
12070 (maybe_extend_reg_info_p): Same.
12071 (sched_analyze_reg): Same.
12072 (sched_analyze_1): Same.
12073 (get_implicit_reg_pending_clobbers): Same.
12074 (chain_to_prev_insn_p): Same.
12075 (deps_analyze_insn): Same.
12076 (deps_start_bb): Same.
12077 (sched_free_deps): Same.
12078 (init_deps): Same.
12079 (init_deps_reg_last): Same.
12080 (free_deps): Same.
12081 * sched-ebb.c: Same.
12082 * sched-int.h: Same.
12083 * sched-rgn.c (add_branch_dependences): Same.
12084 (concat_insn_mem_list): Same.
12085 (deps_join): Same.
12086 (sched_rgn_compute_dependencies): Same.
12087 * sel-sched-ir.c (reset_target_context): Same.
12088 (copy_deps_context): Same.
12089 (init_id_from_df): Same.
12090 (has_dependence_p): Same.
12091 (change_loops_latches): Same.
12092 (bb_top_order_comparator): Same.
12093 (make_region_from_loop_preheader): Same.
12094 (sel_init_pipelining): Same.
12095 (get_loop_nest_for_rgn): Same.
12096 (make_regions_from_the_rest): Same.
12097 (sel_is_loop_preheader_p): Same.
12098 * sel-sched-ir.h (inner_loop_header_p): Same.
12099 (get_all_loop_exits): Same.
12100 * selftest.h: Same.
12101 * sese.c (sese_build_liveouts): Same.
12102 (sese_insert_phis_for_liveouts): Same.
12103 * sese.h (defined_in_sese_p): Same.
12104 * sreal.c (sreal::stream_out): Same.
12105 * sreal.h: Same.
12106 * streamer-hooks.h: Same.
12107 * target-globals.c (save_target_globals): Same.
12108 * target-globals.h: Same.
12109 * target.def: Same.
12110 * target.h: Same.
12111 * targhooks.c (default_has_ifunc_p): Same.
12112 (default_empty_mask_is_expensive): Same.
12113 (default_init_cost): Same.
12114 * targhooks.h: Same.
12115 * toplev.c: Same.
12116 * tree-affine.c (aff_combination_mult): Same.
12117 (aff_combination_expand): Same.
12118 (aff_combination_constant_multiple_p): Same.
12119 * tree-affine.h: Same.
12120 * tree-cfg.c (build_gimple_cfg): Same.
12121 (replace_loop_annotate_in_block): Same.
12122 (replace_uses_by): Same.
12123 (remove_bb): Same.
12124 (dump_cfg_stats): Same.
12125 (gimple_duplicate_sese_region): Same.
12126 (gimple_duplicate_sese_tail): Same.
12127 (move_block_to_fn): Same.
12128 (replace_block_vars_by_duplicates): Same.
12129 (move_sese_region_to_fn): Same.
12130 (print_loops_bb): Same.
12131 (print_loop): Same.
12132 (print_loops): Same.
12133 (debug): Same.
12134 (debug_loops): Same.
12135 * tree-cfg.h: Same.
12136 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
12137 (chrec_fold_multiply_poly_poly): Same.
12138 (chrec_evaluate): Same.
12139 (chrec_component_in_loop_num): Same.
12140 (reset_evolution_in_loop): Same.
12141 (is_multivariate_chrec): Same.
12142 (chrec_contains_symbols): Same.
12143 (nb_vars_in_chrec): Same.
12144 (chrec_convert_1): Same.
12145 (chrec_convert_aggressive): Same.
12146 * tree-chrec.h: Same.
12147 * tree-core.h: Same.
12148 * tree-data-ref.c (dump_data_dependence_relation): Same.
12149 (canonicalize_base_object_address): Same.
12150 (data_ref_compare_tree): Same.
12151 (prune_runtime_alias_test_list): Same.
12152 (get_segment_min_max): Same.
12153 (create_intersect_range_checks): Same.
12154 (conflict_fn_no_dependence): Same.
12155 (object_address_invariant_in_loop_p): Same.
12156 (analyze_ziv_subscript): Same.
12157 (analyze_siv_subscript_cst_affine): Same.
12158 (analyze_miv_subscript): Same.
12159 (analyze_overlapping_iterations): Same.
12160 (build_classic_dist_vector_1): Same.
12161 (add_other_self_distances): Same.
12162 (same_access_functions): Same.
12163 (build_classic_dir_vector): Same.
12164 (subscript_dependence_tester_1): Same.
12165 (subscript_dependence_tester): Same.
12166 (access_functions_are_affine_or_constant_p): Same.
12167 (get_references_in_stmt): Same.
12168 (loop_nest_has_data_refs): Same.
12169 (graphite_find_data_references_in_stmt): Same.
12170 (find_data_references_in_bb): Same.
12171 (get_base_for_alignment): Same.
12172 (find_loop_nest_1): Same.
12173 (find_loop_nest): Same.
12174 * tree-data-ref.h (dr_alignment): Same.
12175 (ddr_dependence_level): Same.
12176 * tree-if-conv.c (fold_build_cond_expr): Same.
12177 (add_to_predicate_list): Same.
12178 (add_to_dst_predicate_list): Same.
12179 (phi_convertible_by_degenerating_args): Same.
12180 (idx_within_array_bound): Same.
12181 (all_preds_critical_p): Same.
12182 (pred_blocks_visited_p): Same.
12183 (predicate_bbs): Same.
12184 (build_region): Same.
12185 (if_convertible_loop_p_1): Same.
12186 (is_cond_scalar_reduction): Same.
12187 (predicate_scalar_phi): Same.
12188 (remove_conditions_and_labels): Same.
12189 (combine_blocks): Same.
12190 (version_loop_for_if_conversion): Same.
12191 (versionable_outer_loop_p): Same.
12192 (ifcvt_local_dce): Same.
12193 (tree_if_conversion): Same.
12194 (pass_if_conversion::gate): Same.
12195 * tree-if-conv.h: Same.
12196 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12197 * tree-loop-distribution.c (bb_top_order_cmp): Same.
12198 (free_rdg): Same.
12199 (stmt_has_scalar_dependences_outside_loop): Same.
12200 (copy_loop_before): Same.
12201 (create_bb_after_loop): Same.
12202 (const_with_all_bytes_same): Same.
12203 (generate_memset_builtin): Same.
12204 (generate_memcpy_builtin): Same.
12205 (destroy_loop): Same.
12206 (build_rdg_partition_for_vertex): Same.
12207 (compute_access_range): Same.
12208 (data_ref_segment_size): Same.
12209 (latch_dominated_by_data_ref): Same.
12210 (compute_alias_check_pairs): Same.
12211 (fuse_memset_builtins): Same.
12212 (finalize_partitions): Same.
12213 (find_seed_stmts_for_distribution): Same.
12214 (prepare_perfect_loop_nest): Same.
12215 * tree-parloops.c (lambda_transform_legal_p): Same.
12216 (loop_parallel_p): Same.
12217 (reduc_stmt_res): Same.
12218 (add_field_for_name): Same.
12219 (create_call_for_reduction_1): Same.
12220 (replace_uses_in_bb_by): Same.
12221 (transform_to_exit_first_loop_alt): Same.
12222 (try_transform_to_exit_first_loop_alt): Same.
12223 (transform_to_exit_first_loop): Same.
12224 (num_phis): Same.
12225 (gen_parallel_loop): Same.
12226 (gather_scalar_reductions): Same.
12227 (get_omp_data_i_param): Same.
12228 (try_create_reduction_list): Same.
12229 (oacc_entry_exit_single_gang): Same.
12230 (parallelize_loops): Same.
12231 * tree-pass.h: Same.
12232 * tree-predcom.c (determine_offset): Same.
12233 (last_always_executed_block): Same.
12234 (split_data_refs_to_components): Same.
12235 (suitable_component_p): Same.
12236 (valid_initializer_p): Same.
12237 (find_looparound_phi): Same.
12238 (insert_looparound_copy): Same.
12239 (add_looparound_copies): Same.
12240 (determine_roots_comp): Same.
12241 (predcom_tmp_var): Same.
12242 (initialize_root_vars): Same.
12243 (initialize_root_vars_store_elim_1): Same.
12244 (initialize_root_vars_store_elim_2): Same.
12245 (finalize_eliminated_stores): Same.
12246 (initialize_root_vars_lm): Same.
12247 (remove_stmt): Same.
12248 (determine_unroll_factor): Same.
12249 (execute_pred_commoning_cbck): Same.
12250 (base_names_in_chain_on): Same.
12251 (combine_chains): Same.
12252 (pcom_stmt_dominates_stmt_p): Same.
12253 (try_combine_chains): Same.
12254 (prepare_initializers_chain_store_elim): Same.
12255 (prepare_initializers_chain): Same.
12256 (prepare_initializers): Same.
12257 (prepare_finalizers_chain): Same.
12258 (prepare_finalizers): Same.
12259 (insert_init_seqs): Same.
12260 * tree-scalar-evolution.c (loop_phi_node_p): Same.
12261 (compute_overall_effect_of_inner_loop): Same.
12262 (add_to_evolution_1): Same.
12263 (add_to_evolution): Same.
12264 (follow_ssa_edge_binary): Same.
12265 (follow_ssa_edge_expr): Same.
12266 (backedge_phi_arg_p): Same.
12267 (follow_ssa_edge_in_condition_phi_branch): Same.
12268 (follow_ssa_edge_in_condition_phi): Same.
12269 (follow_ssa_edge_inner_loop_phi): Same.
12270 (follow_ssa_edge): Same.
12271 (analyze_evolution_in_loop): Same.
12272 (analyze_initial_condition): Same.
12273 (interpret_loop_phi): Same.
12274 (interpret_condition_phi): Same.
12275 (interpret_rhs_expr): Same.
12276 (interpret_expr): Same.
12277 (interpret_gimple_assign): Same.
12278 (analyze_scalar_evolution_1): Same.
12279 (analyze_scalar_evolution): Same.
12280 (analyze_scalar_evolution_for_address_of): Same.
12281 (get_instantiated_value_entry): Same.
12282 (loop_closed_phi_def): Same.
12283 (instantiate_scev_name): Same.
12284 (instantiate_scev_poly): Same.
12285 (instantiate_scev_binary): Same.
12286 (instantiate_scev_convert): Same.
12287 (instantiate_scev_not): Same.
12288 (instantiate_scev_r): Same.
12289 (instantiate_scev): Same.
12290 (resolve_mixers): Same.
12291 (initialize_scalar_evolutions_analyzer): Same.
12292 (scev_reset_htab): Same.
12293 (scev_reset): Same.
12294 (derive_simple_iv_with_niters): Same.
12295 (simple_iv_with_niters): Same.
12296 (expression_expensive_p): Same.
12297 (final_value_replacement_loop): Same.
12298 * tree-scalar-evolution.h (block_before_loop): Same.
12299 * tree-ssa-address.h: Same.
12300 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12301 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12302 (record_edge_info): Same.
12303 * tree-ssa-live.c (var_map_base_fini): Same.
12304 (remove_unused_locals): Same.
12305 * tree-ssa-live.h: Same.
12306 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12307 (pass_ch_vect::execute): Same.
12308 (pass_ch::process_loop_p): Same.
12309 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12310 (movement_possibility): Same.
12311 (outermost_invariant_loop): Same.
12312 (stmt_cost): Same.
12313 (determine_max_movement): Same.
12314 (invariantness_dom_walker::before_dom_children): Same.
12315 (move_computations): Same.
12316 (may_move_till): Same.
12317 (force_move_till_op): Same.
12318 (force_move_till): Same.
12319 (memref_free): Same.
12320 (record_mem_ref_loc): Same.
12321 (set_ref_stored_in_loop): Same.
12322 (mark_ref_stored): Same.
12323 (sort_bbs_in_loop_postorder_cmp): Same.
12324 (sort_locs_in_loop_postorder_cmp): Same.
12325 (analyze_memory_references): Same.
12326 (mem_refs_may_alias_p): Same.
12327 (find_ref_loc_in_loop_cmp): Same.
12328 (rewrite_mem_ref_loc::operator): Same.
12329 (first_mem_ref_loc_1::operator): Same.
12330 (sm_set_flag_if_changed::operator): Same.
12331 (execute_sm_if_changed_flag_set): Same.
12332 (execute_sm): Same.
12333 (hoist_memory_references): Same.
12334 (ref_always_accessed::operator): Same.
12335 (refs_independent_p): Same.
12336 (record_dep_loop): Same.
12337 (ref_indep_loop_p_1): Same.
12338 (ref_indep_loop_p): Same.
12339 (can_sm_ref_p): Same.
12340 (find_refs_for_sm): Same.
12341 (loop_suitable_for_sm): Same.
12342 (store_motion_loop): Same.
12343 (store_motion): Same.
12344 (fill_always_executed_in): Same.
12345 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12346 (estimated_unrolled_size): Same.
12347 (loop_edge_to_cancel): Same.
12348 (remove_exits_and_undefined_stmts): Same.
12349 (remove_redundant_iv_tests): Same.
12350 (unloop_loops): Same.
12351 (estimated_peeled_sequence_size): Same.
12352 (try_peel_loop): Same.
12353 (canonicalize_loop_induction_variables): Same.
12354 (canonicalize_induction_variables): Same.
12355 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12356 (name_info): Same.
12357 (stmt_after_inc_pos): Same.
12358 (contains_abnormal_ssa_name_p): Same.
12359 (niter_for_exit): Same.
12360 (find_bivs): Same.
12361 (mark_bivs): Same.
12362 (find_givs_in_bb): Same.
12363 (find_induction_variables): Same.
12364 (find_interesting_uses_cond): Same.
12365 (outermost_invariant_loop_for_expr): Same.
12366 (idx_find_step): Same.
12367 (add_candidate_1): Same.
12368 (add_iv_candidate_derived_from_uses): Same.
12369 (alloc_use_cost_map): Same.
12370 (prepare_decl_rtl): Same.
12371 (generic_predict_doloop_p): Same.
12372 (computation_cost): Same.
12373 (determine_common_wider_type): Same.
12374 (get_computation_aff_1): Same.
12375 (get_use_type): Same.
12376 (determine_group_iv_cost_address): Same.
12377 (iv_period): Same.
12378 (difference_cannot_overflow_p): Same.
12379 (may_eliminate_iv): Same.
12380 (determine_set_costs): Same.
12381 (cheaper_cost_pair): Same.
12382 (compare_cost_pair): Same.
12383 (iv_ca_cand_for_group): Same.
12384 (iv_ca_recount_cost): Same.
12385 (iv_ca_set_remove_invs): Same.
12386 (iv_ca_set_no_cp): Same.
12387 (iv_ca_set_add_invs): Same.
12388 (iv_ca_set_cp): Same.
12389 (iv_ca_add_group): Same.
12390 (iv_ca_cost): Same.
12391 (iv_ca_compare_deps): Same.
12392 (iv_ca_delta_reverse): Same.
12393 (iv_ca_delta_commit): Same.
12394 (iv_ca_cand_used_p): Same.
12395 (iv_ca_delta_free): Same.
12396 (iv_ca_new): Same.
12397 (iv_ca_free): Same.
12398 (iv_ca_dump): Same.
12399 (iv_ca_extend): Same.
12400 (iv_ca_narrow): Same.
12401 (iv_ca_prune): Same.
12402 (cheaper_cost_with_cand): Same.
12403 (iv_ca_replace): Same.
12404 (try_add_cand_for): Same.
12405 (get_initial_solution): Same.
12406 (try_improve_iv_set): Same.
12407 (find_optimal_iv_set_1): Same.
12408 (create_new_iv): Same.
12409 (rewrite_use_compare): Same.
12410 (remove_unused_ivs): Same.
12411 (determine_scaling_factor): Same.
12412 * tree-ssa-loop-ivopts.h: Same.
12413 * tree-ssa-loop-manip.c (create_iv): Same.
12414 (compute_live_loop_exits): Same.
12415 (add_exit_phi): Same.
12416 (add_exit_phis): Same.
12417 (find_uses_to_rename_use): Same.
12418 (find_uses_to_rename_def): Same.
12419 (find_uses_to_rename_in_loop): Same.
12420 (rewrite_into_loop_closed_ssa): Same.
12421 (check_loop_closed_ssa_bb): Same.
12422 (split_loop_exit_edge): Same.
12423 (ip_end_pos): Same.
12424 (ip_normal_pos): Same.
12425 (copy_phi_node_args): Same.
12426 (gimple_duplicate_loop_to_header_edge): Same.
12427 (can_unroll_loop_p): Same.
12428 (determine_exit_conditions): Same.
12429 (scale_dominated_blocks_in_loop): Same.
12430 (niter_for_unrolled_loop): Same.
12431 (tree_transform_and_unroll_loop): Same.
12432 (rewrite_all_phi_nodes_with_iv): Same.
12433 * tree-ssa-loop-manip.h: Same.
12434 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12435 (number_of_iterations_ne): Same.
12436 (assert_no_overflow_lt): Same.
12437 (assert_loop_rolls_lt): Same.
12438 (number_of_iterations_lt): Same.
12439 (adjust_cond_for_loop_until_wrap): Same.
12440 (tree_simplify_using_condition): Same.
12441 (simplify_using_initial_conditions): Same.
12442 (simplify_using_outer_evolutions): Same.
12443 (loop_only_exit_p): Same.
12444 (ssa_defined_by_minus_one_stmt_p): Same.
12445 (number_of_iterations_popcount): Same.
12446 (number_of_iterations_exit): Same.
12447 (find_loop_niter): Same.
12448 (finite_loop_p): Same.
12449 (chain_of_csts_start): Same.
12450 (get_val_for): Same.
12451 (loop_niter_by_eval): Same.
12452 (derive_constant_upper_bound_ops): Same.
12453 (do_warn_aggressive_loop_optimizations): Same.
12454 (record_estimate): Same.
12455 (get_cst_init_from_scev): Same.
12456 (record_nonwrapping_iv): Same.
12457 (idx_infer_loop_bounds): Same.
12458 (infer_loop_bounds_from_ref): Same.
12459 (infer_loop_bounds_from_array): Same.
12460 (infer_loop_bounds_from_pointer_arith): Same.
12461 (infer_loop_bounds_from_signedness): Same.
12462 (bound_index): Same.
12463 (discover_iteration_bound_by_body_walk): Same.
12464 (maybe_lower_iteration_bound): Same.
12465 (estimate_numbers_of_iterations): Same.
12466 (estimated_loop_iterations): Same.
12467 (estimated_loop_iterations_int): Same.
12468 (max_loop_iterations): Same.
12469 (max_loop_iterations_int): Same.
12470 (likely_max_loop_iterations): Same.
12471 (likely_max_loop_iterations_int): Same.
12472 (estimated_stmt_executions_int): Same.
12473 (max_stmt_executions): Same.
12474 (likely_max_stmt_executions): Same.
12475 (estimated_stmt_executions): Same.
12476 (stmt_dominates_stmt_p): Same.
12477 (nowrap_type_p): Same.
12478 (loop_exits_before_overflow): Same.
12479 (scev_var_range_cant_overflow): Same.
12480 (scev_probably_wraps_p): Same.
12481 (free_numbers_of_iterations_estimates): Same.
12482 * tree-ssa-loop-niter.h: Same.
12483 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12484 (idx_analyze_ref): Same.
12485 (analyze_ref): Same.
12486 (gather_memory_references_ref): Same.
12487 (mark_nontemporal_store): Same.
12488 (emit_mfence_after_loop): Same.
12489 (may_use_storent_in_loop_p): Same.
12490 (mark_nontemporal_stores): Same.
12491 (should_unroll_loop_p): Same.
12492 (volume_of_dist_vector): Same.
12493 (add_subscript_strides): Same.
12494 (self_reuse_distance): Same.
12495 (insn_to_prefetch_ratio_too_small_p): Same.
12496 * tree-ssa-loop-split.c (split_at_bb_p): Same.
12497 (patch_loop_exit): Same.
12498 (find_or_create_guard_phi): Same.
12499 (easy_exit_values): Same.
12500 (connect_loop_phis): Same.
12501 (connect_loops): Same.
12502 (compute_new_first_bound): Same.
12503 (split_loop): Same.
12504 (tree_ssa_split_loops): Same.
12505 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12506 (is_maybe_undefined): Same.
12507 (tree_may_unswitch_on): Same.
12508 (simplify_using_entry_checks): Same.
12509 (tree_unswitch_single_loop): Same.
12510 (tree_unswitch_loop): Same.
12511 (tree_unswitch_outer_loop): Same.
12512 (empty_bb_without_guard_p): Same.
12513 (used_outside_loop_p): Same.
12514 (get_vop_from_header): Same.
12515 (hoist_guard): Same.
12516 * tree-ssa-loop.c (gate_oacc_kernels): Same.
12517 (get_lsm_tmp_name): Same.
12518 * tree-ssa-loop.h: Same.
12519 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12520 (build_and_add_sum): Same.
12521 (no_side_effect_bb): Same.
12522 (get_ops): Same.
12523 (linearize_expr): Same.
12524 (should_break_up_subtract): Same.
12525 (linearize_expr_tree): Same.
12526 * tree-ssa-scopedtables.c: Same.
12527 * tree-ssa-scopedtables.h: Same.
12528 * tree-ssa-structalias.c (condense_visit): Same.
12529 (label_visit): Same.
12530 (dump_pred_graph): Same.
12531 (perform_var_substitution): Same.
12532 (move_complex_constraints): Same.
12533 (remove_preds_and_fake_succs): Same.
12534 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12535 (determine_bb_domination_status): Same.
12536 (duplicate_thread_path): Same.
12537 (thread_through_all_blocks): Same.
12538 * tree-ssa-threadupdate.h: Same.
12539 * tree-streamer-in.c (streamer_read_string_cst): Same.
12540 (input_identifier): Same.
12541 (unpack_ts_type_common_value_fields): Same.
12542 (unpack_ts_block_value_fields): Same.
12543 (unpack_ts_translation_unit_decl_value_fields): Same.
12544 (unpack_ts_omp_clause_value_fields): Same.
12545 (streamer_read_tree_bitfields): Same.
12546 (streamer_alloc_tree): Same.
12547 (lto_input_ts_common_tree_pointers): Same.
12548 (lto_input_ts_vector_tree_pointers): Same.
12549 (lto_input_ts_poly_tree_pointers): Same.
12550 (lto_input_ts_complex_tree_pointers): Same.
12551 (lto_input_ts_decl_minimal_tree_pointers): Same.
12552 (lto_input_ts_decl_common_tree_pointers): Same.
12553 (lto_input_ts_decl_non_common_tree_pointers): Same.
12554 (lto_input_ts_decl_with_vis_tree_pointers): Same.
12555 (lto_input_ts_field_decl_tree_pointers): Same.
12556 (lto_input_ts_function_decl_tree_pointers): Same.
12557 (lto_input_ts_type_common_tree_pointers): Same.
12558 (lto_input_ts_type_non_common_tree_pointers): Same.
12559 (lto_input_ts_list_tree_pointers): Same.
12560 (lto_input_ts_vec_tree_pointers): Same.
12561 (lto_input_ts_exp_tree_pointers): Same.
12562 (lto_input_ts_block_tree_pointers): Same.
12563 (lto_input_ts_binfo_tree_pointers): Same.
12564 (lto_input_ts_constructor_tree_pointers): Same.
12565 (lto_input_ts_omp_clause_tree_pointers): Same.
12566 (streamer_read_tree_body): Same.
12567 * tree-streamer.h: Same.
12568 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12569 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12570 (vect_analyze_possibly_independent_ddr): Same.
12571 (vect_analyze_data_ref_dependence): Same.
12572 (vect_compute_data_ref_alignment): Same.
12573 (vect_enhance_data_refs_alignment): Same.
12574 (vect_analyze_data_ref_access): Same.
12575 (vect_check_gather_scatter): Same.
12576 (vect_find_stmt_data_reference): Same.
12577 (vect_create_addr_base_for_vector_ref): Same.
12578 (vect_setup_realignment): Same.
12579 (vect_supportable_dr_alignment): Same.
12580 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12581 (adjust_phi_and_debug_stmts): Same.
12582 (vect_set_loop_mask): Same.
12583 (add_preheader_seq): Same.
12584 (vect_maybe_permute_loop_masks): Same.
12585 (vect_set_loop_masks_directly): Same.
12586 (vect_set_loop_condition_masked): Same.
12587 (vect_set_loop_condition_unmasked): Same.
12588 (slpeel_duplicate_current_defs_from_edges): Same.
12589 (slpeel_add_loop_guard): Same.
12590 (slpeel_can_duplicate_loop_p): Same.
12591 (create_lcssa_for_virtual_phi): Same.
12592 (iv_phi_p): Same.
12593 (vect_update_ivs_after_vectorizer): Same.
12594 (vect_gen_vector_loop_niters_mult_vf): Same.
12595 (slpeel_update_phi_nodes_for_loops): Same.
12596 (slpeel_update_phi_nodes_for_guard1): Same.
12597 (find_guard_arg): Same.
12598 (slpeel_update_phi_nodes_for_guard2): Same.
12599 (slpeel_update_phi_nodes_for_lcssa): Same.
12600 (vect_do_peeling): Same.
12601 (vect_create_cond_for_alias_checks): Same.
12602 (vect_loop_versioning): Same.
12603 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12604 (vect_inner_phi_in_double_reduction_p): Same.
12605 (vect_analyze_scalar_cycles_1): Same.
12606 (vect_fixup_scalar_cycles_with_patterns): Same.
12607 (vect_get_loop_niters): Same.
12608 (bb_in_loop_p): Same.
12609 (vect_get_max_nscalars_per_iter): Same.
12610 (vect_verify_full_masking): Same.
12611 (vect_compute_single_scalar_iteration_cost): Same.
12612 (vect_analyze_loop_form_1): Same.
12613 (vect_analyze_loop_form): Same.
12614 (vect_active_double_reduction_p): Same.
12615 (vect_analyze_loop_operations): Same.
12616 (neutral_op_for_slp_reduction): Same.
12617 (vect_is_simple_reduction): Same.
12618 (vect_model_reduction_cost): Same.
12619 (get_initial_def_for_reduction): Same.
12620 (get_initial_defs_for_reduction): Same.
12621 (vect_create_epilog_for_reduction): Same.
12622 (vectorize_fold_left_reduction): Same.
12623 (vectorizable_reduction): Same.
12624 (vectorizable_induction): Same.
12625 (vectorizable_live_operation): Same.
12626 (loop_niters_no_overflow): Same.
12627 (vect_get_loop_mask): Same.
12628 (vect_transform_loop_stmt): Same.
12629 (vect_transform_loop): Same.
12630 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12631 (vect_determine_precisions): Same.
12632 (vect_pattern_recog_1): Same.
12633 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12634 * tree-vect-stmts.c (stmt_vectype): Same.
12635 (process_use): Same.
12636 (vect_init_vector_1): Same.
12637 (vect_truncate_gather_scatter_offset): Same.
12638 (get_group_load_store_type): Same.
12639 (vect_build_gather_load_calls): Same.
12640 (vect_get_strided_load_store_ops): Same.
12641 (vectorizable_simd_clone_call): Same.
12642 (vectorizable_store): Same.
12643 (permute_vec_elements): Same.
12644 (vectorizable_load): Same.
12645 (vect_transform_stmt): Same.
12646 (supportable_widening_operation): Same.
12647 * tree-vectorizer.c (vec_info::replace_stmt): Same.
12648 (vec_info::free_stmt_vec_info): Same.
12649 (vect_free_loop_info_assumptions): Same.
12650 (vect_loop_vectorized_call): Same.
12651 (set_uid_loop_bbs): Same.
12652 (vectorize_loops): Same.
12653 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12654 * tree.c (add_tree_to_fld_list): Same.
12655 (fld_type_variant_equal_p): Same.
12656 (fld_decl_context): Same.
12657 (fld_incomplete_type_of): Same.
12658 (free_lang_data_in_binfo): Same.
12659 (need_assembler_name_p): Same.
12660 (find_decls_types_r): Same.
12661 (get_eh_types_for_runtime): Same.
12662 (find_decls_types_in_eh_region): Same.
12663 (find_decls_types_in_node): Same.
12664 (assign_assembler_name_if_needed): Same.
12665 * value-prof.c (stream_out_histogram_value): Same.
12666 * value-prof.h: Same.
12667 * var-tracking.c (use_narrower_mode): Same.
12668 (prepare_call_arguments): Same.
12669 (vt_expand_loc_callback): Same.
12670 (resolve_expansions_pending_recursion): Same.
12671 (vt_expand_loc): Same.
12672 * varasm.c (const_hash_1): Same.
12673 (compare_constant): Same.
12674 (tree_output_constant_def): Same.
12675 (simplify_subtraction): Same.
12676 (get_pool_constant): Same.
12677 (output_constant_pool_2): Same.
12678 (output_constant_pool_1): Same.
12679 (mark_constants_in_pattern): Same.
12680 (mark_constant_pool): Same.
12681 (get_section_anchor): Same.
12682 * vr-values.c (compare_range_with_value): Same.
12683 (vr_values::extract_range_from_phi_node): Same.
12684 * vr-values.h: Same.
12685 * web.c (unionfind_union): Same.
12686 * wide-int.h: Same.
12687
12688 2019-07-09 Martin Sebor <msebor@redhat.com>
12689
12690 PR c++/61339
12691 * align.h: Change class-key from class to struct and vice versa
12692 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12693 * alloc-pool.h: Same.
12694 * asan.c (shadow_mem_size): Same.
12695 * auto-profile.c: Same.
12696 * basic-block.h: Same.
12697 * bitmap.h: Same.
12698 * cfgexpand.c (set_rtl): Same.
12699 (expand_one_stack_var_at): Same.
12700 * cfghooks.h: Same.
12701 * cfgloop.h: Same.
12702 * cgraph.h: Same.
12703 * config/i386/i386.h: Same.
12704 * df-problems.c (df_print_bb_index): Same.
12705 * df-scan.c: Same.
12706 * df.h (df_single_use): Same.
12707 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12708 (layout::annotation_line_showed_range_p): Same.
12709 (get_printed_columns): Same.
12710 (correction::ensure_terminated): Same.
12711 (line_corrections::~line_corrections): Same.
12712 * dojump.h: Same.
12713 * dse.c: Same.
12714 * dump-context.h: Same.
12715 * dumpfile.h: Same.
12716 * dwarf2out.c: Same.
12717 * edit-context.c: Same.
12718 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12719 * flags.h: Same.
12720 * function.c (assign_stack_local): Same.
12721 * function.h: Same.
12722 * gcc.c: Same.
12723 * gcov.c (block_info::block_info): Same.
12724 * genattrtab.c: Same.
12725 * genextract.c: Same.
12726 * genmatch.c (comparison_code_p): Same.
12727 (id_base::id_base): Same.
12728 (decision_tree::print): Same.
12729 * genoutput.c: Same.
12730 * genpreds.c (write_one_predicate_function): Same.
12731 * genrecog.c (validate_pattern): Same.
12732 (find_operand_positions): Same.
12733 (optimize_subroutine_group): Same.
12734 (merge_pattern_transition::merge_pattern_transition): Same.
12735 (merge_pattern_info::merge_pattern_info): Same.
12736 (merge_state_result::merge_state_result): Same.
12737 (merge_into_state): Same.
12738 * gensupport.c: Same.
12739 * gensupport.h: Same.
12740 * ggc-common.c (init_ggc_heuristics): Same.
12741 * ggc-tests.c (test_union): Same.
12742 * gimple-loop-interchange.cc (dump_induction): Same.
12743 * gimple-loop-versioning.cc: Same.
12744 * gimple-match.h (gimple_match_cond::any_else): Same.
12745 * gimple-ssa-backprop.c: Same.
12746 * gimple-ssa-sprintf.c: Same.
12747 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12748 Same.
12749 (store_immediate_info::store_immediate_info): Same.
12750 (merged_store_group::apply_stores): Same.
12751 (get_location_for_stmts): Same.
12752 * gimple-ssa-strength-reduction.c: Same.
12753 * gimple-ssa-warn-alloca.c: Same.
12754 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12755 * godump.c (go_type_decl): Same.
12756 * hash-map-tests.c (test_map_of_strings_to_int): Same.
12757 * hash-map.h: Same.
12758 * hash-set-tests.c (test_set_of_strings): Same.
12759 * hsa-brig.c: Same.
12760 * hsa-common.h: Same.
12761 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12762 * input.c (assert_loceq): Same.
12763 * input.h: Same.
12764 * ipa-cp.c: Same.
12765 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12766 * ipa-fnsummary.h: Same.
12767 * ipa-inline.h: Same.
12768 * ipa-prop.h: Same.
12769 * ipa-split.c (visit_bb): Same.
12770 * ira-int.h (minmax_set_iter_next): Same.
12771 * loop-invariant.c: Same.
12772 * loop-iv.c: Same.
12773 * lra-eliminations.c: Same.
12774 * lra-int.h: Same.
12775 * lra-lives.c (mark_regno_dead): Same.
12776 * lra-remat.c: Same.
12777 * lra-spills.c: Same.
12778 * lto-streamer.h: Same.
12779 * mem-stats.h: Same.
12780 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12781 * omp-low.c (omp_clause_aligned_alignment): Same.
12782 * optabs-query.h (get_vcond_eq_icode): Same.
12783 * optabs.h: Same.
12784 * opts.c (wrap_help): Same.
12785 * poly-int.h: Same.
12786 * predict.c (predict_paths_leading_to_edge): Same.
12787 * pretty-print.h: Same.
12788 * profile-count.h: Same.
12789 * read-md.h: Same.
12790 * read-rtl-function.c: Same.
12791 * ree.c: Same.
12792 * reginfo.c: Same.
12793 * regrename.c: Same.
12794 * regrename.h: Same.
12795 * reload.h: Same.
12796 * rtl-iter.h: Same.
12797 * rtl.h (costs_add_n_insns): Same.
12798 * sanopt.c: Same.
12799 * sched-int.h: Same.
12800 * sel-sched-ir.h: Same.
12801 * selftest.h: Same.
12802 * sese.h (vec_find): Same.
12803 * stmt.c: Same.
12804 * target-globals.h: Same.
12805 * tree-affine.c (aff_combination_find_elt): Same.
12806 * tree-affine.h: Same.
12807 * tree-data-ref.h: Same.
12808 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12809 * tree-predcom.c: Same.
12810 * tree-scalar-evolution.c (find_var_scev_info): Same.
12811 * tree-ssa-alias.h: Same.
12812 * tree-ssa-ccp.c: Same.
12813 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12814 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12815 (rewrite_mem_refs): Same.
12816 (execute_sm_if_changed): Same.
12817 (hoist_memory_references): Same.
12818 * tree-ssa-loop-ivopts.c (operator<=): Same.
12819 * tree-ssa-loop.h: Same.
12820 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12821 * tree-ssa-structalias.c: Same.
12822 * tree-switch-conversion.h (cluster::cluster): Same.
12823 (simple_cluster::simple_cluster): Same.
12824 * tree-vect-patterns.c (type_conversion_p): Same.
12825 * tree-vectorizer.c (dump_stmt_cost): Same.
12826 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12827 * tree.c (protected_set_expr_location): Same.
12828 * tree.h (desired_pro_or_demotion_p): Same.
12829 (fndecl_built_in_p): Same.
12830 * unique-ptr-tests.cc: Same.
12831 * var-tracking.c (delete_variable_part): Same.
12832 * varasm.c (assemble_real): Same.
12833 (tree_output_constant_def): Same.
12834 * vec.c: Same.
12835 * wide-int-bitmask.h: Same.
12836 * wide-int.h (decompose): Same.
12837
12838 2019-07-09 Richard Biener <rguenther@suse.de>
12839
12840 PR tree-optimization/91114
12841 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12842 find a vector type isn't fatal.
12843
12844 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12845
12846 * config/aarch64/aarch64-simd.md
12847 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12848 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12849 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12850 (*aarch64_crypto_aese_fused,
12851 *aarch64_crypto_aesd_fused): Update to new definition.
12852 * config/aarch64/aarch64.c
12853 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12854
12855 2019-07-09 Richard Biener <rguenther@suse.de>
12856
12857 * gimple-match.h (gimple_match_op::resimplify): New.
12858 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12859 gimple_resimplify4, gimple_resimplify5): Remove.
12860 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12861 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12862 Make static.
12863 (gimple_match_op::resimplify): New.
12864 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12865 according to availability. Use gimple_match_op::resimplify.
12866
12867 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
12868
12869 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12870
12871 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
12872
12873 * config/arm/crypto.md:
12874 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12875 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12876 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12877 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12878 * config/arm/arm.c
12879 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12880 * config/arm/aarch-common-protos.h
12881 (aarch_crypto_can_dual_issue): Remove.
12882 * config/arm/aarch-common.c
12883 (aarch_crypto_can_dual_issue): Likewise.
12884 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12885 * config/arm/cortex-a53.md: Likewise.
12886 * config/arm/cortex-a57.md: Likewise.
12887 * config/arm/iterators.md:
12888 (CRYPTO_BINARY): Redefine.
12889 (CRYPTO_UNARY): Removed.
12890 (CRYPTO_AES, CRYPTO_AESMC): New.
12891
12892 2019-07-09 Richard Biener <rguenther@suse.de>
12893
12894 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12895 (vn_reference_lookup_3): If the main ref has no access path recorded
12896 but orig_ref has use it to do access-path based disambiguation.
12897 (vn_reference_lookup_pieces): Adjust.
12898 (vn_reference_lookup): Pass down original ref if we valueized.
12899
12900 2019-07-09 Martin Liska <mliska@suse.cz>
12901
12902 * doc/extend.texi: Document influence on loop
12903 optimizers.
12904
12905 2019-07-09 Martin Liska <mliska@suse.cz>
12906
12907 * lto-compress.c (lto_normalized_zstd_level): Do not use
12908 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12909 of libzstd. One can use 0 as a default compression level.
12910
12911 2019-07-09 Martin Liska <mliska@suse.cz>
12912
12913 * doc/invoke.texi: Add link from -fprofile-dir option.
12914 Use better wording for 'gcno filename'.
12915
12916 2019-07-08 Martin Sebor <msebor@redhat.com>
12917
12918 PR middle-end/71924
12919 PR middle-end/90549
12920 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
12921 comment.
12922 (args_loc_t): New type.
12923 (args_loc_t, locmap_t): same.
12924 (diag_returned_locals): New function.
12925 (is_addr_local): Same.
12926 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12927 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12928 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12929
12930 2019-07-08 Jakub Jelinek <jakub@redhat.com>
12931
12932 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12933 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
12934 and casts in offset when different, both through gimple stmts
12935 and through trees. Rewritten using loops to minimize code duplication
12936 for each operand.
12937
12938 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
12939
12940 * emit-rtl.c (set_insn_locations): New function moved from...
12941 * function.c (set_insn_locations): ...here.
12942 * ira-emit.c (emit_moves): Propagate location of the first instruction
12943 to the inserted move instructions.
12944 * reg-stack.c (compensate_edge): Set the location if the sequence is
12945 inserted on the edge.
12946 * rtl.h (set_insn_locations): Declare.
12947
12948 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12949
12950 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12951 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12952 .machine string.
12953
12954 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
12955
12956 PR rtl-optimization/88233
12957 * common.opt (fsplit-wide-types-early): New option.
12958 * common/config/rs6000/rs6000-common.c
12959 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12960 OPT_LEVELS_ALL.
12961 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12962 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12963 flag_split_wide_types_early.
12964 (pass_data_lower_subreg3): New.
12965 (pass_lower_subreg3): New.
12966 (make_pass_lower_subreg3): New.
12967 * passes.def (pass_lower_subreg2): Move after the loop passes.
12968 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12969 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12970 the pass pipeline; its previous place is taken by ...
12971 (make_pass_lower_subreg3): ... this.
12972
12973 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12974
12975 * config/s390/s390.c (s390_shift_truncation_mask): Define.
12976 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12977
12978 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
12979
12980 * config/s390/constraints.md: Add new jsc constraint.
12981 * config/s390/predicates.md: New predicates.
12982 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12983 * config/s390/s390.c (s390_valid_shift_count): New function.
12984 (print_shift_count_operand): Use s390_valid_shift_count.
12985 (print_operand): Likewise.
12986 * config/s390/s390.md: Use new predicate.
12987 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12988 * config/s390/vector.md: Use new predicate.
12989
12990 2019-07-08 Andrew Waterman <andrew@sifive.com>
12991 Jim Wilson <jimw@sifive.com>
12992
12993 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12994 bitsize instead of BITS_PER_WORD.
12995
12996 2019-07-08 Martin Liska <mliska@suse.cz>
12997
12998 * collect2.c (defined): Revert to before r254460.
12999 (scan_prog_file): Revert to before r254460.
13000
13001 2019-07-08 Richard Biener <rguenther@suse.de>
13002
13003 PR tree-optimization/83518
13004 * tree-ssa-sccvn.c: Include splay-tree.h.
13005 (struct pd_range, struct pd_data): New.
13006 (struct vn_walk_cb_data): Add data to track partial definitions.
13007 (vn_walk_cb_data::~vn_walk_cb_data): New.
13008 (vn_walk_cb_data::push_partial_def): New.
13009 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
13010 (vn_reference_lookup_2): When partial defs are registered give up.
13011 (vn_reference_lookup_3): Track partial defs for memset and
13012 constructor zeroing and for defs from constants.
13013
13014 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13015
13016 * doc/install.texi (bootstrap-Og): Document.
13017
13018 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
13019
13020 * config/riscv/pic.md (*local_pic_load_s<mode>)
13021 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
13022 referenced by <mode>, giving...
13023 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
13024 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
13025 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
13026 use <X:MODE> for the mode attribute.
13027
13028 2019-07-07 Jeff Law <law@redhat.com>
13029
13030 PR tree-optimization/91090
13031 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
13032 in handling of ranges to simplify switch statements.
13033
13034 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13035
13036 * config/darwin.c (darwin_override_options): Make a final check on PIC
13037 options.
13038
13039 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
13040
13041 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
13042 on for kernel code.
13043
13044 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13045
13046 PR target/91068
13047 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
13048 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
13049 instead of matching them to "l" output operands.
13050
13051 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
13052
13053 * config/mips/mips.c (mips_split_move): Zero-initialize addr
13054 and check whether addr.reg is nonnull before using it.
13055
13056 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13057
13058 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
13059 ctx->for_simd_scan_phase simd copy the outer var to the privatized
13060 variable(s). For conditional lastprivate look through outer
13061 GIMPLE_OMP_SCAN context.
13062 (lower_omp_1): For conditional lastprivate look through outer
13063 GIMPLE_OMP_SCAN context.
13064
13065 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
13066 member to combined_into_simd_safelen1.
13067 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
13068 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
13069 clauses if ctx->combined_into_simd_safelen1 put statements after the
13070 predicate conditionalized block rather than into it.
13071
13072 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13073
13074 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
13075 operand 1.
13076 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
13077 Make the choice of <mode> explicit, giving...
13078 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
13079
13080 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13081
13082 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
13083 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
13084 of .md attributes.
13085 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
13086 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
13087 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
13088 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
13089 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
13090 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
13091 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
13092 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
13093 (*avx512f_scatterdi<mode>): Likewise.
13094 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
13095
13096 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13097
13098 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
13099 specify the mode iterator referenced by <mode>, giving...
13100 (*push1_h8300hs_<QHI:mode>): ...this.
13101
13102 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13103
13104 * config/gcn/gcn-valu.md
13105 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
13106 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
13107 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
13108 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
13109 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
13110 but using the _exec comparison patterns.
13111 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
13112 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
13113 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
13114 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
13115 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
13116 but using the _exec comparison patterns.
13117
13118 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
13119
13120 * config/arm/sync.md
13121 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
13122 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
13123 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
13124 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
13125 <SIDI:cas_cmp_str>.
13126
13127 2019-07-06 Jakub Jelinek <jakub@redhat.com>
13128
13129 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
13130 (maybe_lookup_ctx): Add forward declaration.
13131 (omp_find_scan): Likewise. Walk into body of simd if composited
13132 with worksharing loop.
13133 (scan_omp_simd_scan): New function.
13134 (scan_omp_1_stmt): Call it.
13135 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
13136 ctx->for_simd_scan_phase.
13137 (lower_rec_input_clauses): Do much less work for inscan reductions
13138 in ctx->for_simd_scan_phase is_simd regions.
13139 (lower_omp_scan): Set is_simd also on simd constructs composited
13140 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
13141 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
13142 emit their body after in simd constructs composited with worksharing
13143 loop.
13144 (lower_omp_for_scan): Handle worksharing loop composited with simd.
13145
13146 * omp-low.c (omp_find_scan): Make static.
13147 (lower_omp_for_scan): Fix order of merge arguments in input phase of
13148 the second loop, var2 represents the first partial sum and so needs
13149 to go before rprivb[ivar].
13150
13151 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
13152
13153 * config/rs6000/rs6000-logue.c: Remove unused code.
13154
13155 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13156
13157 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
13158
13159 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
13160
13161 PR target/90712
13162 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
13163 check with a frame laid out check.
13164
13165 2019-07-05 Richard Biener <rguenther@suse.de>
13166
13167 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
13168 when comparing against a store with possibly the same value.
13169
13170 2019-07-05 Richard Biener <rguenther@suse.de>
13171
13172 PR tree-optimization/91091
13173 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13174 (walk_non_aliased_vuses): Likewise.
13175 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13176 (get_continuation_for_phi): New tbaa_p parameter and pass
13177 it down.
13178 (walk_non_aliased_vuses): Likewise.
13179 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13180 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13181 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13182 Likewise.
13183 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13184 (adjust_offsets_for_equal_base_address): New function.
13185 (vn_reference_lookup_3): Use it to catch more base equivalences.
13186 Handle and pass down tbaa_p flag.
13187 (vn_reference_lookup_pieces): Adjust.
13188 (vn_reference_lookup): Remove alias-set altering, instead pass
13189 down false as tbaa_p.
13190
13191 2019-07-05 Richard Biener <rguenther@suse.de>
13192
13193 PR tree-optimization/91091
13194 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13195 accesses can happen with -fno-strict-aliasing.
13196
13197 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
13198
13199 * tree-ssa-alias.c (alias_stats): Add
13200 nonoverlapping_component_refs_since_match_p_must_overlap.
13201 (dump_alias_stats): Print it.
13202 (nonoverlapping_component_refs_since_match_p): Add early exit.
13203 (nonoverlapping_component_refs_p): Do not account early exit.
13204
13205 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13206
13207 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13208 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13209 (emit_eh_dispatch): Delete.
13210 (lower_catch): Emit the eh_dispatch manually and set the location of
13211 the first catch statement onto it.
13212 (lower_eh_filter): Emit the eh_dispatch manually and set location.
13213 (lower_eh_dispatch): Propagate location.
13214 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13215 (eliminate_build): Likewise.
13216
13217 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
13218
13219 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13220 phi nodes if possible.
13221 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13222 location info on the newly created statement.
13223 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13224 newly created increment if needed.
13225
13226 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13227
13228 PR middle-end/78884
13229 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13230 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13231 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13232 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13233 ctx->add_safelen1 is set.
13234
13235 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13236 GOMP_loop_start at the start of second worksharing loop in a scan.
13237 For nowait, don't emit GOMP_loop_end_nowait at the end of first
13238 worksharing loop in a scan even if there are conditional lastprivates,
13239 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13240
13241 2019-07-04 Jan Hubicka <jh@suse.cz>
13242
13243 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13244 Fix check for match in the ref walk.
13245
13246 2019-07-04 Martin Liska <mliska@suse.cz>
13247
13248 * tree-ssa-loop-niter.c
13249 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13250 (estimate_numbers_of_iterations):
13251 Support __builtin_expect_with_probability for analysis
13252 of # of loop iterations.
13253
13254 2019-07-04 Alexandre Oliva <oliva@adacore.com>
13255
13256 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13257 * except.c: Likewise.
13258 * expr.c (expand_expr_real_1): Reject it.
13259 * gimplify.c (gimplify_expr): Gimplify it, within
13260 TRY_FINALLY_EXPR.
13261 * tree-dump.c (dequeue_and_dump): Dump it.
13262 * tree-pretty-print.c (dump_generic_node): Likewise.
13263 * tree.c (block_may_fallthru): Handle it.
13264 * tree.def (EH_ELSE_EXPR): Introduce it.
13265 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13266 with GIMPLE_EH_ELSE as try/finally/else.
13267
13268 2019-07-04 Richard Biener <rguenther@suse.de>
13269
13270 PR ipa/91062
13271 * tree-pass.h (execute_all_ipa_transforms): Add a flag
13272 parameter whether to disable GC collection.
13273 * passes.c (execute_one_ipa_transform_pass): Likewise, and
13274 honor it.
13275 (execute_all_ipa_transforms): Likewise and pass it down.
13276 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13277 collection from applying IPA transforms.
13278 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13279 from applying IPA transforms.
13280
13281 2019-07-04 Richard Biener <rguenther@suse.de>
13282
13283 PR tree-optimization/90911
13284 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13285 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13286 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13287 scalar_loop_scaling.
13288 (vect_transform_loop): Scale scalar loop profile if needed.
13289 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13290 the loop copy from if-conversion adjust edge probabilities
13291 and scale the vectorized loop body profile, queue the scalar
13292 profile for updating after peeling.
13293
13294 2019-07-04 Jan Hubicka <jh@suse.cz>
13295
13296 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13297 parameters; return early for must-alias.
13298 (indirect_ref_may_alias_decl_p): Likewise; when establishing
13299 outer types match, try nonoverlapping_component_refs
13300 if must-alias is not obvious.
13301 (indirect_refs_may_alias_p): Likewise.
13302 (refs_may_alias_p_2): Likewise.
13303
13304 2019-07-04 Richard Biener <rguenther@suse.de>
13305
13306 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13307 argument.
13308 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13309 globals into...
13310 (struct vn_walk_cb_data): New callback data struct.
13311 (vn_reference_lookup_2): Adjust.
13312 (vn_reference_lookup_3): Likewise.
13313 (vn_reference_lookup_pieces): Likewise.
13314 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13315 (visit_reference_op_load): Adjust.
13316
13317 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13318
13319 PR tree-optimization/91063
13320 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13321 stmt from stmts sequence before calling vect_init_vector_1.
13322 Formatting fix.
13323
13324 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13325
13326 PR target/88833
13327 * fwprop.c (reg_single_def_p): New function.
13328 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13329 (forward_propagate_into): New parameter reg_prop_only
13330 with default value false.
13331 Propagate def's src into loop only if SET_SRC and SET_DEST
13332 of def_set have single definitions.
13333 Likewise if reg_prop_only is set to true.
13334 (fwprop): New param fwprop_addr_p.
13335 Integrate fwprop_addr into fwprop.
13336 (fwprop_addr): Remove.
13337 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13338 to true.
13339 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13340 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13341 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13342
13343 2019-07-04 Jakub Jelinek <jakub@redhat.com>
13344
13345 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13346 in worksharing loop scans.
13347
13348 PR tree-optimization/91074
13349 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13350 temporary.
13351
13352 PR rtl-optimization/90756
13353 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13354 for VECTOR_TYPE_P.
13355
13356 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
13357
13358 * config/aarch64/aarch64.md: Remove redundant constraints from
13359 define_expand but keep some patterns untouched if they are
13360 specially selected by TARGET_SECONDARY_RELOAD hook.
13361 * config/aarch64/aarch64-sve.md: Likewise.
13362 * config/aarch64/atomics.md: Remove redundant constraints from
13363 define_expand.
13364 * config/aarch64/aarch64-simd.md: Likewise.
13365
13366 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13367
13368 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13369 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13370 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13371 clauses.
13372 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13373 DARWIN_NOPIE_SPEC.
13374
13375 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
13376
13377 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13378 (STARTFILE_SPEC): Split crt3 into a separate spec.
13379 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13380 (DARWIN_CRT2_SPEC): New.
13381 (DARWIN_CRT3_SPEC): New.
13382 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13383 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13384 (DARWIN_CRT3_SPEC): New.
13385
13386 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
13387
13388 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13389 Change the RTL attribute "length" from "4" to "*" to allow the
13390 length attribute to be adjusted automatically for prefixed load,
13391 store, and add immediate instructions.
13392 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13393 Likewise.
13394 (extendsi<mode>2, EXTSI iterator): Likewise.
13395 (movsi_internal1): Likewise.
13396 (movsi_from_sf): Likewise.
13397 (movdi_from_sf_zero_ext): Likewise.
13398 (mov<mode>_internal): Likewise.
13399 (movcc_internal1, QHI iterator): Likewise.
13400 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13401 (movsf_from_si): Likewise.
13402 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13403 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13404 (mov<mode>, FMOVE128 iterator): Likewise.
13405 (movdi_internal64): Likewise.
13406 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13407 Likewise.
13408 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13409 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13410 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13411 (vsx_splat_v4sf): Likewise.
13412
13413 2019-07-03 Mark Wielaard <mark@klomp.org>
13414
13415 PR debug/90981
13416 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13417 DW_AT_addr_base if there is actually a .debug_addr section with
13418 addresses.
13419 (output_addr_table): Add DWARF5 table header generation here after
13420 checking there are actually any addresses from...
13421 (dwarf2out_finish): ...here.
13422
13423 2019-07-03 Richard Biener <rguenther@suse.de>
13424
13425 PR middle-end/91069
13426 * match.pd (vec_perm -> bit_insert): Fix element read from
13427 first vector.
13428
13429 2019-07-03 Martin Liska <mliska@suse.cz>
13430
13431 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13432 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13433 condition.
13434 * generic-match-head.c: Include dbgcnt.h.
13435 * gimple-match-head.c: Likewise.
13436
13437 2019-07-03 Martin Liska <mliska@suse.cz>
13438
13439 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13440 (GCOV_COUNTER_V_TOPN): New.
13441 (GCOV_COUNTER_V_INDIR): Use _topn.
13442 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13443 (GCOV_TOPN_VALUES): New.
13444 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13445 (GCOV_TOPN_VALUES_COUNTERS): New.
13446 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13447 * tree-profile.c:
13448 (gimple_init_gcov_profiler): Rename variables from one_value
13449 to topn_values.
13450 (gimple_gen_one_value_profiler): Remove.
13451 (gimple_gen_topn_values_profiler): New function.
13452 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13453 names instead of SINGLE_VALUE.
13454 (stream_out_histogram_value): Likewise.
13455 (stream_in_histogram_value): Likewise.
13456 (get_most_common_single_value): Likewise.
13457 (gimple_divmod_fixed_value_transform): Likewise.
13458 (gimple_stringops_transform): Likewise.
13459 (gimple_divmod_values_to_profile): Likewise.
13460 (gimple_stringops_values_to_profile): Likewise.
13461 (gimple_find_values_to_profile): Likewise.
13462 * value-prof.h (enum hist_type): Rename to TOPN.
13463 (gimple_gen_one_value_profiler): Remove.
13464 (gimple_gen_topn_values_profiler): New.
13465
13466 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
13467
13468 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13469 if it has the DW_AT_data_member_location attribute.
13470
13471 2019-07-03 Richard Biener <rguenther@suse.de>
13472
13473 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13474 dumping.
13475
13476 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
13477
13478 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13479 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13480 (tlsdesc_small_sve_<mode>): Likewise.
13481
13482 2019-07-03 Martin Liska <mliska@suse.cz>
13483
13484 * Makefile.in: Define ZSTD_LIB.
13485 * common.opt: Adjust compression level
13486 to support also zstd levels.
13487 * config.in: Regenerate.
13488 * configure: Likewise.
13489 * configure.ac: Add --with-zstd and --with-zstd-include options
13490 and detect ZSTD.
13491 * doc/install.texi: Mention zstd dependency.
13492 * gcc.c: Print supported LTO compression algorithms.
13493 * lto-compress.c (lto_normalized_zstd_level): Likewise.
13494 (lto_compression_zstd): Likewise.
13495 (lto_uncompression_zstd): Likewise.
13496 (lto_end_compression): Dispatch in between zlib and zstd.
13497 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13498 (lto_uncompression_zlib): Make it static.
13499 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13500 * lto-section-in.c (lto_get_section_data): Pass info
13501 about used compression.
13502 * lto-streamer-out.c: By default use zstd when possible.
13503 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13504 (TV_IPA_LTO_COMPRESS): Likewise for compression.
13505
13506 2019-07-03 Martin Liska <mliska@suse.cz>
13507
13508 * lto-section-in.c (lto_get_section_data): Add "lto" section.
13509 * lto-section-out.c (lto_destroy_simple_output_block): Never
13510 compress LTO_section_lto section.
13511 * lto-streamer-out.c (produce_asm): Do not set major_version
13512 and minor_version.
13513 (lto_output_toplevel_asms): Likewise.
13514 (produce_lto_section): New function.
13515 (lto_output): Call produce_lto_section.
13516 (lto_write_mode_table): Do not set major_version and
13517 minor_version.
13518 (produce_asm_for_decls): Likewise.
13519 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13520 type.
13521 (struct lto_header): Remove.
13522 (struct lto_section): New struct.
13523 (struct lto_simple_header): Do not inherit from lto_header.
13524 (struct lto_file_decl_data): Add lto_section_header field.
13525
13526 2019-07-03 Martin Liska <mliska@suse.cz>
13527
13528 * lra-eliminations.c (eliminate_regs_in_insn): Remove
13529 dead assignemts.
13530 * reg-stack.c (check_asm_stack_operands): Likewise.
13531 * tree-ssa-structalias.c (create_function_info_for): Likewise.
13532 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13533 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13534 force_expand_binop.
13535
13536 2019-07-03 Martin Liska <mliska@suse.cz>
13537
13538 PR tree-optimization/90892
13539 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13540 in string constants.
13541
13542 2019-07-03 Martin Liska <mliska@suse.cz>
13543
13544 PR middle-end/90899
13545 * multiple_target.c (create_dispatcher_calls): Add to comdat
13546 group only if set for ifunc.
13547
13548 2019-07-03 Martin Liska <mliska@suse.cz>
13549
13550 PR target/88056
13551 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13552 Define local_object_name in outer scope in order to handle
13553 use-after-scope issue.
13554
13555 2019-07-03 Martin Liska <mliska@suse.cz>
13556
13557 * common.opt: Add fprofile-note.
13558 * coverage.c (coverage_init): Append the option
13559 to bbg_file_name.
13560 * doc/invoke.texi: Document -fprofile-note.
13561
13562 2019-07-03 Jakub Jelinek <jakub@redhat.com>
13563
13564 PR tree-optimization/91033
13565 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13566 vect_analyze_data_refs): Add bool * arguments.
13567 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13568 if failure is due to scatter/gather, set *fatal to false if non-NULL.
13569 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13570 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13571 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13572 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13573 vect_analyze_data_refs caller.
13574
13575 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13576 clause.
13577 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13578 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13579 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13580 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13581 OMP_CLAUSE__SCANTEMP_ entry.
13582 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13583 * tree-pretty-print.c (dump_omp_clause): Likewise.
13584 * tree-nested.c (convert_nonlocal_omp_clauses,
13585 convert_local_omp_clauses): Likewise.
13586 * omp-general.h (struct omp_for_data): Add have_scantemp and
13587 have_nonctrl_scantemp members.
13588 * omp-general.c (omp_extract_for_data): Initialize them.
13589 * omp-low.c (struct omp_context): Add scan_exclusive member.
13590 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13591 result again with GF_OMP_FOR_KIND_MASK. Initialize also
13592 ctx->scan_exclusive.
13593 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13594 of !ctx->scan_inclusive.
13595 (lower_rec_input_clauses): Simplify gimplification of dtors using
13596 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13597 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13598 loops. Don't add barrier for reduction_omp_orig_ref if
13599 ctx->scan_??xclusive.
13600 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13601 (lower_omp_scan): Use ctx->scan_exclusive instead
13602 of !ctx->scan_inclusive. Handle worksharing loops with inscan
13603 reductions. Use new_vard != new_var instead of repeated
13604 omp_is_reference calls.
13605 (omp_find_scan, lower_omp_for_scan): New functions.
13606 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13607 inscan reductions.
13608 * omp-expand.c (expand_omp_scantemp_alloc): New function.
13609 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13610 and fd->have_scantemp.
13611
13612 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13613 on worksharing loop propagate it as shared clause to containing
13614 combined parallel.
13615
13616 * omp-expand.c (expand_omp_for_static_nochunk,
13617 expand_omp_for_static_chunk): For nowait worksharing loop with
13618 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13619 at the end.
13620
13621 2019-07-02 qing zhao <qing.zhao@oracle.com>
13622
13623 PR preprocessor/90581
13624 * doc/cppopts.texi: Add document for -fmax-include-depth.
13625 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13626
13627 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
13628
13629 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13630 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13631 (mmx_packssdw): Ditto.
13632 (mmx_punpckhbw): Ditto.
13633 (mmx_punpcklbw): Ditto.
13634 (mmx_punpckhwd): Ditto.
13635 (mmx_punpcklwd): Ditto.
13636 (mmx_punpckhdq): Ditto.
13637 (mmx_punpckldq): Ditto.
13638 (*vec_dupv4hi): Ditto.
13639 (*vec_dupv2si): Ditto.
13640 (mmx_pmovmskb): Ditto.
13641 * config/i386/sse.md (sse_cvtpi2ps): Use
13642 TARGET_SSE2 && SSE_REG_P in split condition.
13643 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13644 TARGET_SSSE3 && SSE_REGNO_P in split condition.
13645 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13646 (ssse3_pshufbv8qi3): Ditto.
13647 (ssse3_palignrdi): Ditto.
13648
13649 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
13650
13651 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13652 with inlined save and restore.
13653
13654 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
13655
13656 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13657 to be inserted on single successor edge of the entry block. Then call
13658 commit_edge_insertions instead of inserting the instructions manually.
13659 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13660 RTL expansion and rebuild jump labels chain.
13661
13662 2019-07-02 Richard Biener <rguenther@suse.de>
13663
13664 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13665 TI_CHREC_KNOWN.
13666 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13667 Define here.
13668 * tree.c (build_common_tree_nodes): Initialize them.
13669 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13670 Make declarations comments.
13671 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13672 chrec_known): Remove definitions.
13673 (initialize_scalar_evolutions_analyzer): Remove.
13674 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13675 * tree-streamer.c (preload_common_nodes): Do not preload
13676 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13677
13678 2019-07-02 Jan Hubicka <jh@suse.cz>
13679
13680 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13681 sanity check.
13682
13683 2019-07-02 Jan Hubicka <jh@suse.cz>
13684
13685 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13686 to ..
13687 (nonoverlapping_component_refs_since_match_p): ... this one;
13688 handle also non-decl bases; return -1 if search gave up.
13689 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13690 nonoverlapping_component_refs_of_decl_p_no_alias to
13691 nonoverlapping_component_refs_since_match_p_may_alias,
13692 nonoverlapping_component_refs_since_match_p_no_alias.
13693 (dump_alias_stats): Update dumping.
13694 (aliasing_matching_component_refs_p): Break out from ...;
13695 dispatch to nonoverlapping_component_refs_for_decl_p
13696 and nonoverlapping_component_refs_since_match_p.
13697 (aliasing_component_refs_p): ... here; call
13698 nonoverlapping_component_refs_p in scenarios where we can not
13699 precisely determine base match.
13700 (decl_refs_may_alias_p): Use
13701 nonoverlapping_component_refs_since_match_p.
13702 (indirect_ref_may_alias_decl_p): Do not call
13703 nonoverlapping_component_refs_p.
13704 (indirect_refs_may_alias_p): Likewise.
13705
13706 2019-07-02 Jan Hubicka <jh@suse.cz>
13707
13708 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13709 to clobber of return value.
13710
13711 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13712
13713 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13714 for is_neon_type instructions that have not already been categorized.
13715
13716 2019-07-02 Richard Biener <rguenther@suse.de>
13717
13718 PR tree-optimization/58483
13719 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13720 for MEM_REF base hashing.
13721 (equal_mem_array_ref_p): Likewise for base comparison.
13722
13723 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13724
13725 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13726 parameterized name.
13727 (signbit<mode>2): Use that name. Simplify.
13728
13729 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
13730
13731 PR middle-end/66726
13732 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13733 Tune heuristic from PR71016 to allow MIN / MAX.
13734
13735 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13736
13737 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13738 parameterized name.
13739 (abs<mode>2): Use that name. Simplify.
13740
13741 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13742
13743 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13744 parameterized name.
13745 (neg<mode>2): Use that name. Simplify.
13746
13747 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13748
13749 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13750 name.
13751 (abs<mode>2): Use that name. Simplify.
13752
13753 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13754
13755 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13756 name.
13757 (neg<mode>2): Use that name. Simplify.
13758
13759 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
13760
13761 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13762 ("enabled" attribute): Handle sse_noavx isa attribute.
13763 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13764 Use TARGET_SSE && SSE_REGNO_P in split condition.
13765 (*vec_dupv2sf): Ditto.
13766
13767 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13768
13769 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13770 name.
13771 (floatsi<mode>2): Use that name. Simplify.
13772
13773 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13774
13775 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13776 parameterized name.
13777 (extenddf<mode>2_vsx): Make this a parameterized name.
13778 (extenddf<mode>2): Use those names. Simplify.
13779
13780 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13781
13782 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13783 name.
13784 (eh_return): Use that name. Simplify.
13785
13786 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13787
13788 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13789 (doloop_end): Use that name. Simplify.
13790
13791 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13792
13793 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13794 parameterized name.
13795 (indirect_jump): Use that name. Simplify.
13796
13797 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13798
13799 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13800 parameterized name.
13801 (abs<mode>2): Use that name. Simplify.
13802
13803 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13804
13805 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13806 parameterized name.
13807 (fix_trunc<mode>si2): Use that name. Simplify.
13808
13809 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13810
13811 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13812 (allocate_stack): Use that name. Simplify.
13813
13814 2019-07-01 Martin Sebor <msebor@redhat.com>
13815
13816 PR middle-end/90923
13817 * hash-map.h (hash_map::put): On insertion invoke element ctor.
13818 (hash_map::get_or_insert): Same. Reformat comment.
13819 * hash-set.h (hash_set::add): On insertion invoke element ctor.
13820 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13821 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13822 * hash-table.h (hash_table::operator=): Prevent copy assignment.
13823 (hash_table::hash_table (const hash_table&)): Use copy ctor
13824 instead of assignment to copy elements.
13825
13826 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
13827 John David Anglin <danglin@gcc.gnu.org>
13828
13829 PR target/90963
13830 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13831 using saved frame pointer.
13832
13833 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
13834
13835 PR middle-end/64242
13836 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13837 Add frame clobber and schedule blockage.
13838
13839 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
13840
13841 * doc/invoke.texi (Link Options): Further editorial changes to
13842 -flinker-output docs.
13843
13844 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
13845
13846 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13847 Load both operands of a PLUS into registers separately.
13848
13849 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
13850
13851 * config/s390/vector.md: Fix shift count operand printing.
13852
13853 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13854
13855 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13856
13857 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13858
13859 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13860 Use recog_data to test for an output operand.
13861
13862 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13863
13864 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13865 exclude any others that are disparaged or that are bound to need
13866 a reload or spill.
13867 (ira_get_dup_out_num): Expand comment.
13868
13869 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13870
13871 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13872 constraint string for each operand/alternative combo. Only handle
13873 '%' at the start of constraint strings, and look for it outside
13874 the main loop.
13875
13876 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
13877
13878 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13879 alternative_mask instead of HARD_REG_SET to represent a
13880 bitmask of alternatives.
13881 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13882 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13883
13884 2019-07-01 Martin Liska <mliska@suse.cz>
13885
13886 * edit-context.c (test_applying_fixits_unreadable_file): Do not
13887 use () for a constructor call.
13888 (test_applying_fixits_line_out_of_range): Likewise.
13889 * ggc-page.c (alloc_page): Use (void *) for %p printf format
13890 argument.
13891 (free_page): Likewise.
13892
13893 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
13894
13895 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13896 parameter names to match usage (no functional change).
13897 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13898
13899 2019-07-01 Richard Biener <rguenther@suse.de>
13900
13901 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13902 pass parameter.
13903 (pass_fre::execute): Honor it.
13904 * passes.def: Adjust pass_fre invocations to allow iterating,
13905 add non-iterating pass_fre before late threading/dom.
13906
13907 2019-07-01 Richard Biener <rguenther@suse.de>
13908
13909 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13910 TARGET_MEM_REF handling to also handle address-taken ones.
13911
13912 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
13913
13914 * doc/sourcebuild.texi (Effective-Target Keywords, Other
13915 hardware attributes): Document avx512vp2intersect.
13916
13917 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13918
13919 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13920 (abs<mode>2): New expander.
13921 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13922 Use CODE_FOR_ssse3_absv8qi2.
13923 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13924 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13925
13926 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13927
13928 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13929 to sse, sse_noavx and avx. Update all uses.
13930
13931 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
13932
13933 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13934 (*mmx_<plusminus_insn><mode>3): Ditto.
13935 (*mmx_mulv4hi3"): Ditto.
13936 (*mmx_smulv4hi3_highpart): Ditto.
13937 (*mmx_umulv4hi3_highpart): Ditto.
13938 (*mmx_pmaddwd): Ditto.
13939 (*sse2_umulv1siv1di3): Ditto.
13940 (*mmx_<code>v4hi3): Ditto.
13941 (*mmx_<code>v8qi3): Ditto.
13942 (mmx_ashr<mode>3): Ditto.
13943 ("mmx_<shift_insn><mode>3): Ditto.
13944 (*mmx_eq<mode>3): Ditto.
13945 (mmx_gt<mode>3): Ditto.
13946 (mmx_andnot<mode>3): Ditto.
13947 (*mmx_<code><mode>3): Ditto.
13948 (*mmx_pinsrw): Ditto.
13949 (*mmx_pextrw): Ditto.
13950 (mmx_pshufw_1): Ditto.
13951 (*mmx_uavgv8qi3): Ditto.
13952 (*mmx_uavgv4hi3): Ditto.
13953 ("mmx_psadbw): Ditto.
13954 * config/i386/sse.md (sse_cvtps2pi): Ditto.
13955 (sse_cvttps2pi): Ditto.
13956 (ssse3_pmaddubsw): Ditto.
13957 (*ssse3_pmulhrswv4hi3): Ditto.
13958 (ssse3_psign<mode>3): Ditto.
13959
13960 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
13961
13962 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13963 adjustment for bit-fields to all aggregate types.
13964
13965 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
13966
13967 * config/rs6000/predicates.md (pcrel_address): Use
13968 SYMBOL_REF_LOCAL_P to determine if a label is local.
13969 (pcrel_external_address): New predicate.
13970 (non_prefixed_mem_operand): Delete, predicate not used.
13971 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13972 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13973 addressing.
13974 (SYMBOL_REF_PCREL_P): Likewise.
13975
13976 PR target/91009
13977 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13978 alternative.
13979 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13980 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13981 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13982
13983 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13984
13985 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13986 override on extra_headers.
13987
13988 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
13989
13990 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13991 * config/darwin-driver.c (darwin_default_min_version): Remove newline
13992 from warning.
13993 (darwin_driver_init): Likewise.
13994
13995 2019-06-28 Jan Beulich <jbeulich@suse.com>
13996
13997 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13998 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13999 Eliminate redundant alternative.
14000
14001 2019-06-28 Jan Beulich <jbeulich@suse.com>
14002
14003 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
14004 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
14005 Use vector_operand.
14006
14007 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
14008
14009 * config/arc/arc.c (arc_rtx_costs): All short instructions are
14010 having a lower cost regardless of the speed option.
14011
14012 2019-06-28 Jan Beulich <jbeulich@suse.com>
14013
14014 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
14015 vector_operand plus, on both alternatives, "Bm" constraint.
14016
14017 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
14018
14019 * config/arm/arm.md: Remove redundant constraints from
14020 define_expand but leave reload_inm and reload_outm patterns
14021 untouched since they need special constraints to work.
14022 * config/arm/arm-fixed.md: Remove redundant constraints from
14023 define_expand.
14024 * config/arm/iwmmxt.md: Likewise.
14025 * config/arm/neon.md: Likewise.
14026 * config/arm/sync.md: Likewise.
14027 * config/arm/thumb1.md: Likewise.
14028 * config/arm/vec-common.md: Likewise.
14029
14030 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
14031
14032 * doc/install.texi: Document --disable-tm-clone-registry.
14033
14034 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14035
14036 PR c++/91024
14037 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
14038 statements.
14039
14040 PR tree-optimization/91010
14041 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
14042 return true. Otherwise, don't call operand_equal_p if offset1 or
14043 offset2 is NULL and just return false.
14044
14045 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14046
14047 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
14048 user-specified float mode choice for kernel mode code.
14049
14050 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14051
14052 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
14053 spec.
14054
14055 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
14056
14057 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
14058 use longcall for 64b code.
14059
14060 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
14061
14062 * builtins.c (get_memory_rtx): Fix comment.
14063 * optabs.def (movmem_optab): Change to cpymem_optab.
14064 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
14065 (emit_block_move_hints): Change movmem to cpymem.
14066 * defaults.h: Change movmem to cpymem.
14067 * targhooks.c (get_move_ratio): Change movmem to cpymem.
14068 (default_use_by_pieces_infrastructure_p): Ditto.
14069 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
14070 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
14071 to cpymem.
14072 * config/aarch64/aarch64.h: Change movmem to cpymem.
14073 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
14074 * config/alpha/alpha.h: Change movmem to cpymem in comment.
14075 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
14076 movmem to cpymem.
14077 * config/arc/arc-protos.h: Change movmem to cpymem.
14078 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
14079 * config/arc/arc.h: Change movmem to cpymem in comment.
14080 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
14081 * config/arm/arm-protos.h: Change movmem to cpymem in names.
14082 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
14083 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
14084 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
14085 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
14086 * config/avr/avr-protos.h: Change movmem to cpymem.
14087 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
14088 avr_out_movmem): Change movmem to cpymem.
14089 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
14090 Change movmem to cpymem.
14091 * config/bfin/bfin-protos.h: Change movmem to cpymem.
14092 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
14093 Change movmem to cpymem.
14094 * config/bfin/bfin.h: Change movmem to cpymem in comment.
14095 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
14096 * config/c6x/c6x-protos.h: Change movmem to cpymem.
14097 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
14098 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
14099 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
14100 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
14101 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
14102 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
14103 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
14104 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
14105 expand_small_cpymem_or_setmem,
14106 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
14107 expand_set_or_cpymem_constant_prologue,
14108 ix86_expand_set_or_cpymem): Change movmem to cpymem.
14109 * config/i386/i386-protos.h: Change movmem to cpymem.
14110 * config/i386/i386.h: Change movmem to cpymem in comment.
14111 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
14112 (setmem<mode>): Change expansion function name.
14113 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
14114 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
14115 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
14116 * config/m32c/m32c-protos.h: Change movmem to cpymem.
14117 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
14118 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
14119 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
14120 to cpymem.
14121 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
14122 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
14123 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
14124 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
14125 Change movmem to cpymem.
14126 * config/mips/mips.h: Change movmem to cpymem.
14127 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
14128 * config/nds32/nds32-memory-manipulation.c
14129 (nds32_expand_movmemsi_loop_unknown_size,
14130 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
14131 nds32_expand_movmemsi_unroll,
14132 nds32_expand_movmemsi): Change movmem to cpymem.
14133 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
14134 * config/nds32/nds32-protos.h: Change movmem to cpymem.
14135 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
14136 (pa_adjust_insn_length): Change call to compute_movmem_length.
14137 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
14138 movmemdi, movmemdi_prereload,
14139 movmemdi_postreload): Change movmem to cpymem.
14140 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
14141 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
14142 * config/riscv/riscv.c: Change movmem to cpymem in comment.
14143 * config/riscv/riscv.h: Change movmem to cpymem.
14144 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
14145 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
14146 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
14147 movmem to cpymem.
14148 * config/s390/s390-protos.h: Change movmem to cpymem.
14149 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
14150 s390_expand_insv): Change movmem to cpymem.
14151 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
14152 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
14153 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
14154 * config/sparc/sparc.h: Change movmem to cpymem in comment.
14155 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
14156 for nonexistent function.
14157 * config/vax/vax.h: Change movmem to cpymem in comment.
14158 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
14159 * config/visium/visium.h: Change movmem to cpymem in comment.
14160 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
14161 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
14162 * doc/md.texi: Change movmem to cpymem and update description to match.
14163 * doc/rtl.texi: Change movmem to cpymem.
14164 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
14165 * doc/tm.texi: Regenerate.
14166
14167 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
14168
14169 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
14170 -fvariable-expansion-in-unroller by default.
14171 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14172 default for Power.
14173
14174 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
14175
14176 Revert
14177 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14178 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14179
14180 * config.gcc(rs6000-*-*): Define target_gtfiles.
14181
14182 2019-06-27 Jan Hubicka <jh@suse.cz>
14183
14184 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14185 (add_type_duplicate): When odr hash is not allocated, to nothing.
14186 (odr_based_tbaa_p): New function.
14187 (set_type_canonical_for_odr_type): New function.
14188 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14189 set_type_canonical_for_odr_type): New.
14190 * tree.c (gimple_canonical_types_compatible_p): ODR types with
14191 ODR based TBAA are not equivalent to non-ODR types.
14192
14193 2019-06-27 Martin Liska <mliska@suse.cz>
14194
14195 PR tree-optimization/90974
14196 PR rtl-optimization/90975
14197 PR rtl-optimization/90976
14198 PR target/91016
14199 PR tree-optimization/91017
14200 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14201 unused tmp.
14202 * lra.c (lra_set_insn_recog_data): Remove a leftover from
14203 initial commit of IRA.
14204 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14205 of op0 and op1.
14206 * tree-vect-loop.c (vect_create_epilog_for_reduction):
14207 Remove unused mode1.
14208 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14209 to new_stmt_info.
14210
14211 2019-06-27 Jakub Jelinek <jakub@redhat.com>
14212
14213 PR target/90991
14214 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14215 instead of register_operand for operands[1], add m to its constraints
14216 if operands[2] uses "C" constraint. Ensure in condition that if
14217 operands[2] is not 0, then operands[1] is not a MEM. For last two
14218 alternatives, use unaligned loads instead of aligned if operands[1] is
14219 misaligned_operand.
14220
14221 2019-06-27 Martin Liska <mliska@suse.cz>
14222
14223 * asan.c (asan_emit_allocas_unpoison): Remove obviously
14224 dead assignments.
14225 * bt-load.c (move_btr_def): Likewise.
14226 * builtins.c (expand_builtin_apply_args_1): Likewise.
14227 (expand_builtin_apply): Likewise.
14228 * cfgexpand.c (expand_asm_stmt): Likewise.
14229 (construct_init_block): Likewise.
14230 * cfghooks.c (verify_flow_info): Likewise.
14231 * cfgloopmanip.c (remove_path): Likewise.
14232 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14233 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14234 * combine.c (simplify_if_then_else): Likewise.
14235 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14236 (choose_basereg): Likewise.
14237 (ix86_expand_prologue): Likewise.
14238 (ix86_preferred_output_reload_class): Likewise.
14239 * cselib.c (cselib_record_sets): Likewise.
14240 * df-scan.c (df_scan_alloc): Likewise.
14241 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14242 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14243 * emit-rtl.c (try_split): Likewise.
14244 * graphite-scop-detection.c (assign_parameter_index_in_region):
14245 Likewise.
14246 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14247 * ira-color.c (setup_profitable_hard_regs): Likewise.
14248 * ira.c (rtx_moveable_p): Likewise.
14249 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14250 * read-rtl.c (read_subst_mapping): Likewise.
14251 * regrename.c (scan_rtx): Likewise.
14252 * reorg.c (fill_slots_from_thread): Likewise.
14253 * tree-inline.c (tree_function_versioning): Likewise.
14254 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14255 * tree-ssa-sink.c (statement_sink_location): Likewise.
14256 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14257 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14258 (vect_create_epilog_for_reduction): Likewise.
14259 * tree.c (build_nonstandard_integer_type): Likewise.
14260
14261 2019-06-27 Richard Biener <rguenther@suse.de>
14262
14263 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14264
14265 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
14266
14267 PR tree-optimization/89772
14268 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14269 out-of-bound accesses checking.
14270
14271 2019-06-27 Martin Liska <mliska@suse.cz>
14272
14273 PR tree-optimization/91014
14274 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14275 when LHS is NULL_TREE.
14276
14277 2019-06-27 Martin Liska <mliska@suse.cz>
14278
14279 * symbol-summary.h (traverse): Pass
14280 argument a to the call of callback.
14281 (gt_ggc_mx): Mark arguments as unused.
14282 (gt_pch_nx): Likewise.
14283
14284 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
14285
14286 PR target/62147
14287 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14288 finiteness.
14289
14290 2019-06-26 Jeff Law <law@redhat.com>
14291
14292 PR tree-optimization/90883
14293 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14294 (delete_dead_or_redundant_assignment): Likewise.
14295
14296 PR tree-optimization/90883
14297 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14298 * tree-ssa-dse.c: Update various comments to distinguish between
14299 dead and redundant stores.
14300 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14301 (dse_optimize_redundant_stores): New function.
14302 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14303 Distinguish between dead and redundant calls in dump output. All
14304 callers updated.
14305 (delete_dead_or_redundant_assignment): Similarly for assignments.
14306 (dse_optimize_stmt): Handle _CHK variants. For statements which
14307 store 0 into multiple memory locations, try to prove a subsequent
14308 store is redundant.
14309
14310 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
14311
14312 PR target/89021
14313 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14314 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14315
14316 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14317
14318 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14319 (branch_islands): New extern.
14320 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14321 * config/rs6000/rs6000.c: .. here.
14322
14323 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
14324
14325 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14326 (powerpc*-*-*) ... to here.
14327
14328 2019-06-26 Jeff Law <law@redhat.com>
14329
14330 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14331 memcpy, memmove and memset builtins.
14332 (maybe_trim_memstar_call): Likewise.
14333
14334 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14335
14336 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14337
14338 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
14339
14340 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14341
14342 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14343
14344 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14345 declaration.
14346 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14347 "static".
14348 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14349 declaration.
14350
14351 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14352
14353 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14354
14355 2019-06-26 Richard Biener <rguenther@suse.de>
14356
14357 PR ipa/90982
14358 * tree-inline.c (remap_ssa_name): Copy SSA range info.
14359
14360 2019-06-26 Richard Biener <rguenther@suse.de>
14361
14362 * lto-streamer.h (lto_bitmap_alloc): Remove.
14363 (lto_bitmap_free): Likewise.
14364 * lto-streamer.c (lto_bitmap_alloc): Remove.
14365 (lto_bitmap_free): Likewise.
14366 (lto_obstack): Likewise.
14367 (lto_obstack_initialized): Likewise.
14368 * lto-streamer-out.c (lto_output): Use own obstack for local
14369 bitmap, free it consistently.
14370
14371 2019-06-26 Jakub Jelinek <jakub@redhat.com>
14372
14373 PR target/90991
14374 * config/i386/sse.md
14375 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14376 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14377 insns if operands[2] is misaligned_operand.
14378
14379 2019-06-26 Li Jia He <helijia@linux.ibm.com>
14380
14381 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14382 TARGET_POWERPC64.
14383 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14384 to GPR.
14385
14386 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
14387
14388 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14389
14390 2019-06-26 Martin Liska <mliska@suse.cz>
14391
14392 PR tree-optimization/90973
14393 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14394 epilogue_cost_vec instead of prologue_cost_vec for
14395 a epilogue cost.
14396
14397 2019-06-26 Martin Liska <mliska@suse.cz>
14398
14399 * bb-reorder.c (connect_better_edge_p): Add missing else
14400 statement in the middle of if-else statements.
14401
14402 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
14403 H.J. Lu <hongjiu.lu@intel.com>
14404 Olga Makhotina <olga.makhotina@intel.com>
14405
14406 * common/config/i386/i386-common.c
14407 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14408 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14409 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14410 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14411 (ix86_handle_option): Handle -mavx512vp2intersect.
14412 * config/i386/avx512vp2intersectintrin.h: New.
14413 * config/i386/avx512vp2intersectvlintrin.h: New.
14414 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14415 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14416 AVX512VP2INTERSECT.
14417 * config/i386/i386-builtin-types.def: Add new types.
14418 * config/i386/i386-builtin.def: Add new builtins.
14419 * config/i386/i386-builtins.c: (enum processor_features): Add
14420 F_AVX512VP2INTERSECT.
14421 (static const _isa_names_table isa_names_table): Ditto.
14422 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14423 __AVX512VP2INTERSECT__.
14424 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14425 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14426 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14427 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14428 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14429 * config/i386/i386-options.c (ix86_target_string): Add
14430 -mavx512vp2intersect.
14431 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14432 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14433 P2HImode and P2QImode.
14434 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14435 number for P2QImode and P2HImode.
14436 (ix86_regmode_natural_size): New function.
14437 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14438 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14439 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14440 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14441 * config/i386/i386.opt: Add -mavx512vp2intersect.
14442 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14443 avx512vp2intersectvlintrin.h.
14444 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14445 (define_mode_iterator VI48_AVX512VP2VL): New.
14446 (avx512vp2intersect_2intersect<mode>,
14447 avx512vp2intersect_2intersectv16si): New define_insn patterns.
14448 * config.gcc: Add avx512vp2intersectvlintrin.h and
14449 avx512vp2intersectintrin.h to extra_headers.
14450 * doc/invoke.texi: Document -mavx512vp2intersect.
14451
14452 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
14453
14454 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14455
14456 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
14457
14458 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14459 savres_routine_syms, savres_routine_name, morestack_ref,
14460 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14461 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14462 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14463 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14464 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14465 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14466 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14467 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14468 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14469 get_stack_clash_protection_probe_interval,
14470 get_stack_clash_protection_guard_size,
14471 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14472 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14473 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14474 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14475 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14476 gen_frame_mem_offset, rs6000_savres_routine_name,
14477 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14478 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14479 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14480 rs6000_global_entry_point_prologue_needed_p,
14481 rs6000_get_separate_components, rs6000_components_for_bb,
14482 rs6000_disqualify_components, rs6000_emit_prologue_components,
14483 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14484 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14485 rs6000_output_savres_externs, rs6000_output_function_prologue,
14486 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14487 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14488 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14489 rs6000_output_function_epilogue, gen_add3_const,
14490 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14491 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14492 to rs6000-logue.c.
14493 (machine_function): Moved to rs6000.h.
14494 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14495 rs6000-internal.h.
14496 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14497 savres_routine_syms, savres_routine_name, morestack_ref,
14498 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14499 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14500 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14501 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14502 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14503 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14504 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14505 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14506 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14507 get_stack_clash_protection_probe_interval,
14508 get_stack_clash_protection_guard_size,
14509 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14510 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14511 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14512 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14513 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14514 gen_frame_mem_offset, rs6000_savres_routine_name,
14515 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14516 ptr_regno_for_savres, rs6000_emit_savres_rtx,
14517 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14518 rs6000_global_entry_point_prologue_needed_p,
14519 rs6000_get_separate_components, rs6000_components_for_bb,
14520 rs6000_disqualify_components, rs6000_emit_prologue_components,
14521 rs6000_emit_epilogue_components, rs6000_set_handled_components,
14522 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14523 rs6000_output_savres_externs, rs6000_output_function_prologue,
14524 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14525 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14526 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14527 rs6000_output_function_epilogue, gen_add3_const,
14528 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14529 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14530 to here from rs6000.c.
14531 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14532 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14533 quad_address_offset_p) Moved to here from rs6000.c.
14534 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14535 * config/config.gcc: Add new source file rs6000-logue.c to garbage
14536 collector.
14537
14538 2019-06-25 Martin Liska <mliska@suse.cz>
14539
14540 * hash-table.c (hashtab_chk_error): Move here from ...
14541 * hash-table.h (hashtab_chk_error): ... here.
14542
14543 2019-06-25 Martin Liska <mliska@suse.cz>
14544
14545 PR tree-optimization/90978
14546 * df-scan.c (df_update_entry_block_defs): Remove dead else
14547 branch.
14548 (df_update_exit_block_uses): Likewise.
14549
14550 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
14551 Andrew Stubbs <ams@codesourcery.com>
14552
14553 * config.gcc (thread_file): Set to gcn for AMD GCN.
14554 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14555 (TARGET_EMUTLS_VAR_INIT): New hook.
14556
14557 2019-06-25 Martin Jambor <mjambor@suse.cz>
14558
14559 PR ipa/90939
14560 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14561
14562 2019-06-25 Richard Biener <rguenther@suse.de>
14563
14564 PR tree-optimization/90930
14565 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14566 into parallel form in the last pass instance.
14567
14568 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
14569
14570 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14571 (arc_legitimize_pic_address): Simplify and cleanup the function.
14572 (SYMBOLIC_CONST): Remove.
14573 (prepare_pic_move): Likewise.
14574 (prepare_move_operands): Handle complex mov cases here.
14575 (arc_legitimize_address_0): Remove call to
14576 arc_legitimize_pic_address.
14577 (arc_legitimize_address): Remove call to
14578 arc_legitimize_tls_address.
14579 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14580 (movhi_insn): Likewise.
14581
14582 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14583
14584 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14585 PTRDIFF_TYPE.
14586 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14587 format of "__intN" types for UINTMAX_TYPE.
14588 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14589 format of "__intN" types for SIZETYPE.
14590 * tree.c (build_common_tree_nodes): Accept "__intN__"
14591 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14592 * doc/invoke.texi: Document that __intN__ disables pedantic
14593 warnings.
14594
14595 2019-06-25 Jan Hubicka <jh@suse.cz>
14596
14597 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14598 base2_alias_set is non-zero before doing TBAA based disambiguation.
14599
14600 2019-06-25 Martin Liska <mliska@suse.cz>
14601
14602 PR tree-optimization/90973
14603 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14604 of prologue and epilogue.
14605
14606 2019-06-24 Jan Hubicka <jh@suse.cz>
14607
14608 * ipa-utils.h (type_with_linkage_p): Verify that type is
14609 CXX_ODR_P.
14610 (odr_type_p): Remove extra return.
14611 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14612 hash STRING_FLAG only for arrays and integers.
14613 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14614 Update analogously.
14615 * tree-streamer-out.c (pack_ts_type_common_value_fields):
14616 Likewise.
14617 * print-tree.c (print_node): Print cxx-odr-p
14618 and string-flag.
14619 * tree.c (need_assembler_name_p): Also check that type
14620 is CXX_ODR_TYPE_P
14621 (verify_type_variant): Update verification of SRING_FLAG;
14622 also check CXX_ODR_P.
14623 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14624 (TYPE_STRING_FLAG): Use it.
14625 (TYPE_CXX_ODR_P): New macro.
14626 * dwarf2out.c (gen_array_type_die): First check that type
14627 is an array and then test string flag.
14628
14629 2019-06-24 Richard Biener <rguenther@suse.de>
14630
14631 PR tree-optimization/90972
14632 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14633 in common code, dealing with STRING_CST properly.
14634
14635 2019-06-24 Richard Biener <rguenther@suse.de>
14636
14637 PR tree-optimization/90930
14638 PR tree-optimization/90316
14639 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14640 decrement of limit.
14641
14642 2019-06-24 Martin Sebor <msebor@redhat.com>
14643
14644 * tree-pretty-print.h: Remove unnecessary punctuation characters
14645 from a diagnostic.
14646 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14647
14648 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
14649
14650 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14651 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14652 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14653
14654 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14655
14656 * config/rs6000/darwin.h: Handle GCC target pragma.
14657
14658 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
14659
14660 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14661
14662 2019-06-22 Jeff Law <law@redhat.com>
14663
14664 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14665
14666 2019-06-22 Jan Hubicka <jh@suse.cz>
14667
14668 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14669 give up on bitfields; continue searching for different refs
14670 appearing later.
14671
14672 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14673
14674 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14675 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14676 containing the offset as possible simd lane access. Look through
14677 widening conversion. Move the
14678 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14679
14680 2019-06-21 Richard Biener <rguenther@suse.de>
14681
14682 PR tree-optimization/90930
14683 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14684 flag on new stmts to avoid re-processing them.
14685
14686 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
14687
14688 PR c++/90875 - added -Wswitch-outside-range option
14689 * doc/invoke.texi (Wswitch-outside-range): Document.
14690
14691 2019-06-21 Jeff Law <law@redhat.com>
14692
14693 PR tree-optimization/90949
14694 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14695 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14696
14697 2019-06-21 Richard Biener <rguenther@suse.de>
14698
14699 PR debug/90914
14700 * dwarf2out.c (prune_unused_types_walk): Always consider
14701 function-local extern declarations as used.
14702
14703 2019-06-21 Richard Biener <rguenther@suse.de>
14704
14705 PR tree-optimization/90913
14706 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14707 the scalar variant of if-conversion versioning.
14708
14709 2019-06-21 Jakub Jelinek <jakub@redhat.com>
14710
14711 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14712 create another "omp scan inscan exclusive" array if
14713 !ctx->scan_inclusive.
14714 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14715 (lower_omp_scan): Likewise.
14716 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14717 2-bit bitfield for simd_lane_access_p member.
14718 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14719 aux == (void *)-4 as simd lane access.
14720 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
14721 comment with permutations to show the canonical permutation order.
14722 (vectorizable_scan_store): Handle exclusive scan.
14723 (vectorizable_store): Call vectorizable_scan_store even for
14724 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14725
14726 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14727 "omp simd array" arrays with one byte elements.
14728
14729 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
14730
14731 * config/alpha/alpha.md (@unaligned_store<mode>):
14732 Rename from unaligned_store<mode>.
14733 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14734 * config/alpha/sync.md (@load_locked_<mode>): Rename
14735 from load_locked_<mode>.
14736 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14737 (@atomic_compare_and_swap<mode>_1): Rename
14738 from atomic_compare_and_swap<mode>_1.
14739 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14740 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14741 Use gen_reload_in_aligned and gen_unaligned_store.
14742 (emit_load_locked): Remove.
14743 (emit_store_conditional): Ditto.
14744 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14745 (alpha_split_compare_and_swap): Ditto.
14746 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14747 (alpha_split_compare_and_swap_12): Use gen_load_locked
14748 and gen_store_conditional.
14749 (alpha_split_atomic_exchange): Ditto.
14750 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14751 (alpha_split_atomic_exchange_12): Use gen_load_locked
14752 and gen_store_conditional.
14753
14754 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
14755
14756 * config/aarch64/aarch64-errata.h: New file.
14757 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14758 (CA53_ERR_843419_SPEC): Delete.
14759 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14760 * config/aarch64/aarch64-linux.h: Likewise.
14761 * config/aarch64/aarch64-netbsd.h: Likewise.
14762 * config/aarch64/aarch64-freebsd.h: Likewise.
14763
14764 2019-06-20 Marek Polacek <polacek@redhat.com>
14765
14766 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14767
14768 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
14769
14770 * config/rs6000/rs6000.md (isa attribute): Add support for
14771 for a future processor.
14772
14773 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
14774
14775 PR target/54855
14776 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14777 standard scalar operation pattern for V2DF.
14778 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14779 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14780 (*ieee_<ieee_maxmin><mode>3): Likewise.
14781 (vec_setv2df_0): Likewise.
14782
14783 2019-06-20 Jan Hubicka <jh@suse.cz>
14784
14785 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14786 parameter; it has no use in gimple memory model.
14787 (indirect_ref_may_alias_decl_p): Update.
14788
14789 2019-06-20 Martin Liska <mliska@suse.cz>
14790
14791 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14792 to 10.
14793
14794 2019-06-20 Jakub Jelinek <jakub@redhat.com>
14795
14796 * tree-vect-stmts.c (enum scan_store_kind): New type.
14797 (scan_store_can_perm_p): Change last argument from int * to
14798 vec<enum scan_store_kind> *, record precisely which permutations
14799 need whole vector left shift or that plus VEC_COND_EXPR.
14800 (vectorizable_scan_store): Adjust caller, use whole vector left shift
14801 and additional VEC_COND_EXPR only for those iterations that need it.
14802
14803 2019-06-20 Alexandre Oliva <oliva@adacore.com>
14804
14805 * config.gcc: Fix ARM --with-fpu checking and error message.
14806
14807 2019-06-19 Marek Polacek <polacek@redhat.com>
14808
14809 PR c++/60364 - noreturn after first decl not diagnosed.
14810 * attribs.c (get_attribute_namespace): No longer static.
14811 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
14812 attributes.
14813 (attr_noreturn_exclusions): Make it extern.
14814 * attribs.h (get_attribute_namespace): Declare.
14815 * tree-inline.c (function_attribute_inlinable_p): Use
14816 get_attribute_name.
14817
14818 2019-06-19 Martin Sebor <msebor@redhat.com>
14819
14820 PR tree-optimization/90626
14821 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14822
14823 PR tree-optimization/90626
14824 * tree-ssa-strlen.c (strxcmp_unequal): New function.
14825 (handle_builtin_string_cmp): Call it.
14826
14827 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14828
14829 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14830 and DARWIN_NOPIE_SPEC.
14831 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14832 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14833 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14834 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14835 (DARWIN_EXPORT_DYNAMIC): Delete.
14836 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14837 and pie options processing to darwin.h.
14838 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14839
14840 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
14841
14842 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14843 in computing the number of options to be moved.
14844
14845 2019-06-19 Maya Rashish <coypu@sdf.org>
14846
14847 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14848 (CLEAR_INSN_CACHE) Use it.
14849
14850 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
14851
14852 * config/i386/i386.md (cmpstrnsi): Remove dead code.
14853
14854 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
14855
14856 PR middle-end/84521
14857 * builtins.c (expand_builtin_setjmp_setup): Save
14858 hard_frame_pointer_rtx.
14859 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14860 restore fp.
14861 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14862 non-local goto.
14863 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14864 elimination code.
14865 (remove_reg_equal_offset_note): Remove unused function.
14866 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14867 code.
14868 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14869 (arc_builtin_setjmp_frame_value): Remove function.
14870 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14871 (avr_builtin_setjmp_frame_value): Remove function.
14872 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14873 (ix86_builtin_setjmp_frame_value): Remove function.
14874 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14875 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14876 (sparc_builtin_setjmp_frame_value): Remove function.
14877 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14878 (vax_builtin_setjmp_frame_value): Remove function.
14879 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14880 pointer if has_nonlocal_label.
14881
14882 2019-06-19 Jakub Jelinek <jakub@redhat.com>
14883
14884 * doc/md.texi: Document vec_shl_<mode> pattern.
14885 * optabs.def (vec_shl_optab): New optab.
14886 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14887 argument, if == vec_shl_optab, check for left whole vector shift
14888 pattern rather than right shift.
14889 (expand_vec_perm_const): Add vec_shl_optab support.
14890 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14891 in the comment.
14892 * tree-vect-generic.c (lower_vec_perm): Support permutations which
14893 can be handled by vec_shl_optab.
14894 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14895 (check_scan_store): Use it.
14896 (vectorizable_scan_store): If target can't do normal permutations,
14897 try to use whole vector left shifts and if needed a VEC_COND_EXPR
14898 after it.
14899 * config/i386/sse.md (vec_shl_<mode>): New expander.
14900
14901 * omp-low.c (lower_rec_input_clauses): Handle references properly
14902 in inscan clauses.
14903 (lower_omp_scan): Likewise.
14904
14905 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14906
14907 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14908 mem_mode is BLKmode.
14909
14910 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
14911
14912 PR target/90922
14913 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14914 pointer adjustment for the case of no callee-saved registers and
14915 stack frame bigger than 128 bytes.
14916
14917 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
14918
14919 PR middle-end/90862
14920 * omp-low.c (check_omp_nesting_restrictions): Handle
14921 GF_OMP_TARGET_KIND_OACC_DECLARE.
14922
14923 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
14924
14925 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14926 (@add<mode>3_carry): Rename from add<mode>3_carry.
14927 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14928 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14929 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14930 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14931 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14932 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14933 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14934 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14935 (cmpstrnsi): Use gen_cmp_1.
14936 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14937 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14938 (@umonitor_<mode>): Rename from umonitor_<mode>.
14939 * config/i386/i386-expand.c (ix86_expand_copysign):
14940 Use gen_copysign3_const and gen_copysign3_var.
14941 (ix86_expand_xorsign): Use gen_xorsign3_1.
14942 (ix86_expand_branch): Use gen_sub3_carry_ccc,
14943 gen_sub3_carry_ccgz and gen_cmp1.
14944 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14945 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14946 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14947 (ix86_split_lshr): Ditto.
14948 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14949
14950 2019-06-18 Jason Merrill <jason@redhat.com>
14951
14952 * tree.c (build_constructor): Add MEM_STAT_DECL.
14953
14954 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14955
14956 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14957 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14958 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14959 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14960 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14961 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14962 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14963 Use CC_NZC instead of CC.
14964 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14965 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14966 (aarch64_print_operand): Handle E_CC_NZCmode.
14967 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14968 of gen_set_clobber_cc.
14969
14970 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14971
14972 * config/aarch64/aarch64-sve.md: Tabify file.
14973
14974 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14975
14976 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14977 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14978 * config/aarch64/aarch64-sve.md: Use it.
14979
14980 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14981
14982 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14983 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14984 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14985 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14986 (aarch64_expand_sve_vec_cmp_int): Use it.
14987 (aarch64_expand_sve_vec_cmp_float): Likewise.
14988 * config/aarch64/aarch64-sve.md: Likewise throughout.
14989
14990 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
14991 Kugan Vivekanandarajah <kuganv@linaro.org>
14992
14993 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14994 (*cond_<optab><mode>_z): Fold into...
14995 (*cond_<optab><mode>_any): ...here. Also handle cases in which
14996 operand 4 can be tied to operand 0 (either inherently or via RA).
14997
14998 2019-06-18 Richard Biener <rguenther@suse.de>
14999
15000 PR debug/90900
15001 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
15002 as if optimized away.
15003
15004 2019-06-18 Tom de Vries <tdevries@suse.de>
15005
15006 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
15007 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
15008 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
15009 Rename to ...
15010 (define_insn "@set_softstack_<mode>"): ... this.
15011 (define_insn "omp_simt_enter_<mode>"): Rename to ...
15012 (define_insn "@omp_simt_enter_<mode>"): ... this.
15013 (define_insn "omp_simt_exit_<mode>"): Rename to ...
15014 (define_insn "@omp_simt_exit_<mode>"): ... this.
15015
15016 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
15017
15018 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
15019 vf parameter. Restore the previous iv step of nscalars_step,
15020 but give it iv_type rather than compare_type. Tweak code order
15021 to match the comments.
15022 (vect_set_loop_condition_masked): Update accordingly.
15023 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
15024 for iv_precision. Tweak comment formatting.
15025
15026 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15027
15028 * config/darwin.c: Strip trailing whitespace.
15029
15030 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
15031
15032 * config/darwin.c (darwin_emit_unwind_label): New default to false.
15033 (darwin_override_options): Set darwin_emit_unwind_label as needed.
15034
15035 2019-06-18 Martin Jambor <mjambor@suse.cz>
15036
15037 PR ipa/90889
15038 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
15039 caller does not have flag_ipa_cp set.
15040
15041 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15042
15043 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
15044 from "*fold_left_plus_<mode>", updated operands order.
15045 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
15046 * internal-fn.c (mask_fold_left_direct): New define.
15047 (expand_mask_fold_left_optab_fn): Likewise.
15048 (direct_mask_fold_left_optab_supported_p): Likewise.
15049 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
15050 * optabs.def (mask_fold_left_plus_optab): New optab.
15051 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
15052 masked internal_fn for a reduction ifn.
15053 (vectorize_fold_left_reduction): Add support for masking reductions.
15054
15055 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
15056
15057 PR middle-end/80791
15058 * target.def (predict_doloop_p): New hook.
15059 * targhooks.h (default_predict_doloop_p): New declaration.
15060 * targhooks.c (default_predict_doloop_p): New function.
15061 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
15062 * doc/tm.texi: Regenerate.
15063 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
15064 (TARGET_PREDICT_DOLOOP_P): New macro.
15065 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
15066
15067 2019-06-17 Jakub Jelinek <jakub@redhat.com>
15068
15069 * omp-low.c (struct omp_context): Add scan_inclusive field.
15070 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
15071 if inclusive scan.
15072 (struct omplow_simd_context): Add lastlane member.
15073 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
15074 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
15075 1 or 2 argument.
15076 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
15077 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
15078 (lower_omp_scan): New function.
15079 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
15080 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
15081 check 3rd argument if present rather than 2nd.
15082 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
15083 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
15084 2-bit bitfield.
15085 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
15086 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
15087 than 2nd.
15088 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
15089 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
15090 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
15091 init.
15092 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
15093 IFN_GOMP_SIMD_LANE argument.
15094 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
15095 encoded ->aux value.
15096 * tree-vect-stmts.c: Include attribs.h.
15097 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
15098 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
15099 functions.
15100 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
15101 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
15102
15103 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
15104
15105 PR target/62055
15106 * config/i386/i386.md (*nabstf2_1): New insn pattern.
15107 (*nabs<mode>2_1): Ditto.
15108 (nabs sse-reg splitter): New splitter.
15109 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
15110
15111 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15112
15113 PR bootstrap/90873.
15114 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
15115 TMR index check.
15116
15117 2019-06-17 Tom de Vries <tdevries@suse.de>
15118
15119 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
15120 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
15121 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
15122 ...
15123 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
15124 match_operand 0.
15125 (define_insn "omp_simt_enter_insn"): Rename to ...
15126 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
15127 match_operand 0, 1 and 2, as well as the unspec_volatile result.
15128 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
15129 gen_omp_simt_enter_si.
15130 (define_expand "omp_simt_exit"): New.
15131 (define_insn "omp_simt_exit"): Rename to ...
15132 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
15133 match_operand 0.
15134
15135 2019-06-17 Matthew Green <mrg@eterna.com.au>
15136 Maya Rashish <coypu@sdf.org>
15137
15138 * config.gcc (aarch64*-*-netbsd*): New target.
15139 * config/aarch64/aarch64-netbsd.h: New file.
15140 * config/aarch64/t-aarch64-netbsd: Likewise.
15141
15142 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15143
15144 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
15145 the access path from base to first VIEW_CONVERT_EXPR or
15146 BIT_FIELD_REF.
15147
15148 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
15149
15150 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
15151 access path on BIT_FIELD_REFs.
15152
15153 2019-06-17 Martin Liska <mliska@suse.cz>
15154
15155 PR ipa/90874
15156 * ipa-utils.h (odr_type_p): Remove dead code.
15157
15158 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15159
15160 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
15161 alternative Solaris 11.4 format.
15162 * configure: Regenerate.
15163
15164 2019-06-17 Tom de Vries <tdevries@suse.de>
15165
15166 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
15167 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
15168 match_operand 0.
15169 (define_insn "call_value_insn"): Rename to ...
15170 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
15171 match_operand 0.
15172 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15173 DI.
15174
15175 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
15176
15177 PR middle-end/64242
15178 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
15179 frame clobbers and schedule block.
15180 (builtin_longjmp): Likewise.
15181
15182 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15183
15184 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15185 describe how to perform MSPABI compliant 64-bit shift.
15186 * config/msp430/msp430.md (ashldi3): New define_expand.
15187 (ashrdi3): New define_expand.
15188 (lshrdi3): New define_expand.
15189
15190 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15191
15192 * doc/sourcebuild.texi: Document new effective target keyword
15193 longlong64.
15194
15195 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15196
15197 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15198 indirect_refs_may_alias_p): Revert accidental commits.
15199
15200 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15201 at the end of structures.
15202
15203 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15204
15205 * config/darwin.c (machopic_indirect_call_target): Use renamed
15206 darwin_picsymbol_stubs to decide on output.
15207 (darwin_override_options): Handle darwin_picsymbol_stubs.
15208 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15209 (LD64_VERSION): Revise default.
15210 * config/darwin.opt: (mpic-symbol-stubs): New option.
15211 (darwin_picsymbol_stubs): New variable.
15212 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15213 rename to TARGET_MACHO_PICSYM_STUBS.
15214 * config/i386/i386.c (output_pic_addr_const): Likewise.
15215 * config/i386/i386.h Likewise.
15216 * config/rs6000/darwin.h: Likewise.
15217 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15218 darwin_picsymbol_stubs.
15219
15220 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
15221
15222 * config/darwin.opt (prebind, noprebind, seglinkedit,
15223 noseglinkedit): Add RejectNegative.
15224
15225 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
15226
15227 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15228 in my previous patch.
15229
15230 2019-06-16 Tom de Vries <tdevries@suse.de>
15231
15232 PR tree-optimization/89376
15233 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15234
15235 2019-06-15 Maya Rashish <coypu@sdf.org>
15236
15237 * doc/invoke.texi (Spec Files): Update location of the
15238 Fortran spec file.
15239
15240 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
15241
15242 * doc/extend.texi (Common Function Attributes): Clarify
15243 no_sanitize. Fix grammar.
15244
15245 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
15246
15247 * tree-ssa-alias.c (alias_stats): Add
15248 nonoverlapping_component_refs_p_may_alias,
15249 nonoverlapping_component_refs_p_no_alias,
15250 nonoverlapping_component_refs_of_decl_p_may_alias,
15251 nonoverlapping_component_refs_of_decl_p_no_alias.
15252 (dump_alias_stats): Dump them.
15253 (nonoverlapping_component_refs_of_decl_p): Add stats.
15254 (nonoverlapping_component_refs_p): Add stats; do not stop on first
15255 ARRAY_REF.
15256
15257 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
15258
15259 * config/i386/i386.md (and<mode>3): Generate zero-extends for
15260 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15261 only.
15262 (*anddi3_doubleword): Split before reload. Merge with
15263 anddi->zext pre-reload splitter.
15264 (*andndi3_doubleword): Split before reload.
15265 (*<code>di3_doubleword): Ditto.
15266 (*one_cmpldi2_doubleword): Ditto.
15267
15268 2019-06-15 Jakub Jelinek <jakub@redhat.com>
15269
15270 PR middle-end/90779
15271 * gimplify.c: Include omp-offload.h and context.h.
15272 (gimplify_bind_expr): Add "omp declare target" attributes
15273 to static block scope variables inside of target region or target
15274 functions.
15275
15276 2019-06-15 Tom de Vries <tdevries@suse.de>
15277
15278 PR tree-optimization/90009
15279 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15280 Return NULL if bb contains IFN_UNIQUE.
15281
15282 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
15283
15284 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15285 (un): New define_mode_attr.
15286 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15287 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
15288 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15289 merge into ...
15290 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
15291
15292 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
15293
15294 * config/darwin.opt: Add RejectNegative where needed, reorder
15295 and add minimal functional descriptions.
15296
15297 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15298
15299 PR rtl-optimization/90765
15300 * calls.c (update_stack_alignment_for_call): New function.
15301 (expand_call): Call update_stack_alignment_for_call when
15302 outgoing parameter is passed in the stack.
15303 (emit_library_call_value_1): Likewise.
15304 * function.c (locate_and_pad_parm): Don't update
15305 stack_alignment_needed and preferred_stack_boundary.
15306
15307 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
15308
15309 PR target/90877
15310 * config/i386/i386-features.c
15311 (dimode_scalar_chain::compute_convert_gain): Replace
15312 mmxsse_to_integer with sse_to_integer.
15313 * config/i386/i386.c (ix86_register_move_cost): Verify that
15314 moves between MMX and non-MMX units require secondary memory.
15315 Correct costs of moves between SSE and integer units.
15316 * config/i386/i386.h (processor_costs): Rename cost of moving
15317 SSE register to integer to sse_to_integer. Rename cost of
15318
15319 2019-06-14 Matt Thomas <matt@3am-software.com>
15320 Matthew Green <mrg@eterna.com.au>
15321 Nick Hudson <skrll@netbsd.org>
15322 Maya Rashish <coypu@sdf.org>
15323 Richard Earnshaw <rearnsha@arm.com>
15324
15325 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15326 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15327 * config/arm/netbsd-eabi.h: New file.
15328 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15329 redefining.
15330 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15331 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15332 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15333 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15334
15335 2019-06-14 Richard Biener <rguenther@suse.de>
15336
15337 * tree-loop-distribution.c (classify_partition): Return
15338 whether a reduction appeared in all partitions and do not
15339 stop builtin detection because of this.
15340 (distribute_loop): Sort a non-builtin partition last if
15341 there's a reduction in all partitions and make sure the
15342 partition prevailing as last is not a builtin.
15343
15344 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
15345
15346 PR ipa/90401
15347 * ipa-prop.c (add_to_agg_contents_list): New function.
15348 (clobber_by_agg_contents_list_p): Likewise.
15349 (extract_mem_content): Likewise.
15350 (get_place_in_agg_contents_list): Delete.
15351 (determine_known_aggregate_parts): Renamed from
15352 determine_locally_known_aggregate_parts. New parameter
15353 aa_walk_budget_p.
15354
15355 2019-06-13 Martin Sebor <msebor@redhat.com>
15356
15357 PR tree-optimization/90662
15358 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15359 to the same type.
15360
15361 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15362
15363 PR bootstrap/90873
15364 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15365 dbase is not TARGET_MEM_REF.
15366
15367 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15368
15369 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15370 Update all uses.
15371 (and<mode>3): Use gen_extend_insn instead of indirect functions.
15372 Do not generate DImode extends for 32bit targets.
15373 (and->zext post-reload splitter): Use gen_extend_insn
15374 instead of indirect functions.
15375 (anddi->zext pre-reload splitter): New.
15376 (*zext<mode>_doubleword_and): Remove.
15377 (*zext<mode>_doubleword): Ditto.
15378 (*zextsi_doubleword): Dittto.
15379
15380 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
15381
15382 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15383 Use gen_sub3_insn instead of indirect function.
15384 (ix86_expand_ashl_const): Use gen_add2_insn instead of
15385 indirect function.
15386 (ix86_adjust_counter): Ditto.
15387
15388 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
15389 Lijia He <helijia@linux.ibm.com>
15390
15391 PR tree-optimization/77820
15392 * tree-ssa-threadedge.c
15393 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15394 function.
15395 (thread_across_edge): Add call to
15396 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15397
15398 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
15399
15400 * config/darwin-driver.c (validate_macosx_version_min): New.
15401 (darwin_default_min_version): Cleanup and validate supplied version.
15402 (darwin_driver_init): Likewise and push cleaned version into opts.
15403
15404 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
15405
15406 PR tree-optimization/90869
15407 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15408 converts in MEM_REF referencing decl rather than view converts
15409 from decl type to MEM_REF type.
15410
15411 2019-06-13 Richard Biener <rguenther@suse.de>
15412
15413 PR tree-optimization/90856
15414 * tree-sra.c (build_ref_for_model): Only use
15415 build_reconstructed_reference when address-spaces are the same.
15416
15417 2019-06-13 Jakub Jelinek <jakub@redhat.com>
15418
15419 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15420 wrap ei variable name in the declaration in ()s.
15421 (nvptx_single): Actually use mode_label variable. Formatting fix.
15422
15423 2019-06-13 Richard Biener <rguenther@suse.de>
15424
15425 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15426 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15427 also return the condition stmt.
15428 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15429 loop we can version and version that, reusing the loop version
15430 created by if-conversion instead of versioning again.
15431
15432 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
15433
15434 * gimple-loop-versioning.cc (prune_loop_conditions): Use
15435 may_contain_p.
15436 * tree-vrp (value_range_base::may_contain_p): Call into
15437 value_inside_range.
15438 (value_inside_range): Make private inside value_range_base class.
15439 Take min/max from *this.
15440 (range_includes_p): Remove.
15441 * tree-vrp.h (value_range_base): Add value_inside_range.
15442 (range_includes_p): Remove.
15443 (range_includes_zero_p): Call may_contain_p.
15444 * vr-values.c (compare_range_with_value): Same.
15445
15446 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
15447
15448 * doc/extend.texi (ARC Function Attributes): Update info.
15449
15450 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
15451
15452 PR tree-optimization/89713
15453 * doc/invoke.texi (-ffinite-loops): Document new option.
15454 * common.opt (-ffinite-loops): New option.
15455 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15456 IFN_GOACC_LOOP calls as necessary.
15457 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15458 is finite.
15459 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15460 IFN_GOACC_LOOP call is not used.
15461 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15462
15463 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15464
15465 PR target/88838
15466 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15467 compare_type is not with Pmode size, we will create an IV with
15468 Pmode size with truncated use (i.e. converted to the correct type).
15469 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15470 (vect_iv_limit_for_full_masking): New. Factored out of
15471 vect_set_loop_condition_masked.
15472 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15473 (vect_iv_limit_for_full_masking): Declare.
15474
15475 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15476
15477 PR target/88834
15478 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15479 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15480 (get_alias_ptr_type_for_ptr_address): Likewise.
15481 (add_iv_candidate_for_use): Add scaled index candidate if useful.
15482 * tree-ssa-address.c (preferred_mem_scale_factor): New.
15483 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15484 allow_reg_index_p.
15485
15486 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15487
15488 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15489
15490 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
15491
15492 * common/config/pru/pru-common.c: New file.
15493 * config.gcc: Add PRU target.
15494 * config/pru/alu-zext.md: New file.
15495 * config/pru/constraints.md: New file.
15496 * config/pru/predicates.md: New file.
15497 * config/pru/pru-opts.h: New file.
15498 * config/pru/pru-passes.c: New file.
15499 * config/pru/pru-pragma.c: New file.
15500 * config/pru/pru-protos.h: New file.
15501 * config/pru/pru.c: New file.
15502 * config/pru/pru.h: New file.
15503 * config/pru/pru.md: New file.
15504 * config/pru/pru.opt: New file.
15505 * config/pru/t-pru: New file.
15506 * doc/extend.texi: Document PRU pragmas.
15507 * doc/invoke.texi: Document PRU-specific options.
15508 * doc/md.texi: Document PRU asm constraints.
15509
15510 2019-06-12 Martin Sebor <msebor@redhat.com>
15511
15512 PR middle-end/90676
15513 * tree-pretty-print.c (dump_mem_ref): New function. Include
15514 MEM_REF type in output when different size than operand.
15515 (dump_generic_node): Move code to dump_mem_ref and call it.
15516
15517 2019-06-12 Martin Sebor <msebor@redhat.com>
15518
15519 PR tree-optimization/90662
15520 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15521 to arrays.
15522
15523 2019-06-12 Tom de Vries <tdevries@suse.de>
15524
15525 PR tree-optimization/90009
15526 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15527
15528 2019-06-12 Martin Liska <mliska@suse.cz>
15529
15530 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15531 the created map.
15532 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15533 * mem-stats.h (mem_alloc_description::mem_alloc_description):
15534 Do not sanitize created maps.
15535
15536 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
15537
15538 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15539 value_range::singleton_p.
15540 * tree-vrp.c (value_range_constant_singleton): Remove.
15541 * tree-vrp.h (value_range_constant_singleton): Remove.
15542 * vr-values.c (vr_values::singleton): Use
15543 value_range::singleton_p.
15544
15545 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15546
15547 PR target/90811
15548 * cfgexpand.c (align_local_variable): Add really_expand argument,
15549 don't SET_DECL_ALIGN if it is false.
15550 (add_stack_var): Add really_expand argument, pass it through to
15551 align_local_variable.
15552 (expand_one_stack_var_1): Pass true as really_expand to
15553 align_local_variable.
15554 (expand_one_ssa_partition): Pass true as really_expand to
15555 add_stack_var.
15556 (expand_one_var): Pass really_expand through to add_stack_var.
15557
15558 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
15559
15560 * config/arm/iterators.md (VABAL): New int iterator.
15561 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15562 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15563 UNSPEC_VABAL_U values.
15564
15565 2019-06-12 Martin Liska <mliska@suse.cz>
15566
15567 * value-prof.c (stream_out_histogram_value): Only first value
15568 can't be negative.
15569
15570 2019-06-12 Jakub Jelinek <jakub@redhat.com>
15571
15572 PR c/90760
15573 * symtab.c (symtab_node::set_section): Allow being called on aliases
15574 as long as they aren't analyzed yet.
15575
15576 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
15577
15578 * config/mips/mips.c (mips_final_postscan_insn): Modify call
15579 to `mips_set_text_contents_type' to indicate whether a
15580 non-debug insn follows.
15581
15582 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
15583
15584 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15585 enabling -mpcrel by default.
15586 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15587 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15588 that the test against -mcpu=future is done first. Then test if
15589 -mprefixed-addr is on for -mpcrel.
15590 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15591
15592 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15593
15594 PR target/90811
15595 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15596 instead of and.u%d.
15597
15598 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15599
15600 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15601
15602 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
15603
15604 PR c++/90449 - add -Winaccessible-base option.
15605 * doc/invoke.texi (Winaccessible-base): Document.
15606
15607 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
15608
15609 PR tree-optimization/62041
15610 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15611
15612 2019-06-11 Jason Merrill <jason@redhat.com>
15613
15614 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15615 * tree.c (get_tree_code_name): Likewise.
15616 * print-tree.c (print_node): Only briefly print a node with an
15617 invalid code.
15618
15619 2019-06-11 Jakub Jelinek <jakub@redhat.com>
15620
15621 PR bootstrap/90819
15622 * trans-mem.c (tm_memopt_compute_available): Add assertion
15623 that blocks is not empty. Formatting fix.
15624
15625 2019-06-11 Martin Liska <mliska@suse.cz>
15626
15627 PR c++/87847
15628 * hash-table.h: Extend create_gcc, add one parameter
15629 that is passed into hash_table::hash_table.
15630
15631 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
15632
15633 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15634 New prototype.
15635 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15636 Emit clobber also for non-sse operations.
15637 (ix86_split_fp_absneg_operator): New function.
15638 * config/i386/i386.md (SSEMODEF): New mode iterator.
15639 (ssevecmodef): New mode attribute.
15640 (<code>tf2): Use absneg code iterator.
15641 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15642 Add three-operand AVX alternatives.
15643 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15644 Use absneg code iterator and X87MODEF mode iterator.
15645 (absneg fp_reg non-sse splitter): Call absneg code iterator
15646 and X87MODEF mode iterator.
15647 (absneg general_reg non-sse splitter): Use absneg code iterator
15648 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
15649 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
15650 code iterator. Add three-operand AVX alternative.
15651 (absneg sse_reg splitter): Use absneg code iterator
15652 and SSEMODEF mode iterator. Handle AVX operands.
15653 (absneg fp_reg splitter): Use absneg code iterator
15654 and MODEF mode iterator.
15655 (absneg general_reg splitter): Merge splitters using MODEF mode
15656 iterator. Use absneg code iterator. Call
15657 ix86_split_fp_absneg_operator.
15658 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15659 Do not enable for non-sse modes before reload.
15660 (CSGNMODE): Remove.
15661 (CSGNVMODE): Ditto.
15662 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15663 ssevecmodef mode attribute instaed of CSGNVMODE.
15664 (copysign<mode>3_const): Ditto.
15665 (copysign<mode>3_var): Ditto.
15666 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15667 Use absneg code iterator. Simplify code using std::swap.
15668 * config/i386/predicates.md (absneg_operator): Remove.
15669
15670 2019-06-10 Martin Sebor <msebor@redhat.com>
15671
15672 * gimple-fold.c (get_range_strlen): Update comment that didn't
15673 make it into r267503 or related commits.
15674
15675 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
15676
15677 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15678 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15679
15680 2019-06-10 Jakub Jelinek <jakub@redhat.com>
15681
15682 * tree.def (OMP_SCAN): New tree code.
15683 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15684 OMP_CLAUSE_EXCLUSIVE.
15685 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15686 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15687 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15688 OMP_CLAUSE_{IN,EX}CLUSIVE.
15689 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15690 * tree-nested.c (convert_nonlocal_reference_stmt,
15691 convert_local_reference_stmt, convert_gimple_call): Handle
15692 GIMPLE_OMP_SCAN.
15693 * tree-pretty-print.c (dump_omp_clause): Handle
15694 OMP_CLAUSE_{IN,EX}CLUSIVE.
15695 (dump_generic_node): Handle OMP_SCAN.
15696 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15697 * gimple.h (gomp_scan): New type.
15698 (is_a_helper <gomp_scan *>::test,
15699 is_a_helper <const gomp_scan *>::test): New templates.
15700 (gimple_build_omp_scan): Declare.
15701 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15702 gimple_omp_scan_set_clauses): New inline functions.
15703 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15704 * gimple.c (gimple_build_omp_scan): New function.
15705 (gimple_copy): Handle GIMPLE_OMP_SCAN.
15706 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15707 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15708 GIMPLE_OMP_TASKGROUP.
15709 (dump_gimple_omp_scan): New function.
15710 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15711 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15712 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15713 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15714 (is_gimple_stmt): Handle OMP_SCAN.
15715 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15716 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15717 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15718 mentioned in nested #pragma omp scan. Handle
15719 OMP_CLAUSE_{IN,EX}CLUSIVE.
15720 (gimplify_expr): Handle OMP_SCAN.
15721 * omp-low.c (check_omp_nesting_restrictions): For parent context,
15722 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
15723 simd constructs.
15724 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15725 GIMPLE_OMP_SCAN.
15726
15727 2019-06-10 Martin Liska <mliska@suse.cz>
15728
15729 * ipa-cp.c (ignore_edge_p): New function.
15730 (build_toporder_info): Use it.
15731 * ipa-inline.c (ignore_edge_p): New function.
15732 (inline_small_functions): Use it.
15733 * ipa-pure-const.c (ignore_edge_for_nothrow):
15734 Verify opt_for_fn for caller and callee.
15735 (ignore_edge_for_pure_const): Likewise.
15736 * ipa-reference.c (ignore_edge_p): Extend to check
15737 for opt_for_fn.
15738 * ipa-utils.c (searchc): Refactor.
15739 * ipa-utils.h: Fix coding style.
15740
15741 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15742
15743 * config/arc/arc.c (arc_rtx_costs): Update costs.
15744
15745 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
15746
15747 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15748 (arc_split_ior): Likewise.
15749 (arc_check_mov_const): Likewise.
15750 (arc_split_mov_const): Likewise.
15751 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15752 (arc_rtx_costs): Replace check Crr with Cax constraint.
15753 (prepare_move_operands): Cleanup, remove unused code.
15754 (arc_split_ior): New function.
15755 (arc_check_ior_const): Likewise.
15756 (arc_split_mov_const): Likewise.
15757 (arc_check_mov_const): Likewise.
15758 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15759 in define_insn_and_split pattern.
15760 (iorsi3): Likewise.
15761 (mulsi3_v2): Add new matching variant.
15762 (andsi3_i): Cleanup pattern.
15763 (rotrsi3_cnt1): Update pattern.
15764 (rotrsi3_cnt8): New pattern.
15765 (ashlsi2_cnt8): Likewise.
15766 (ashlsi2_cnt16): Likewise.
15767 * config/arc/constraints.md (C0p): Update constraint.
15768 (Crr): Remove it.
15769 (C0x): New pattern.
15770 (Cax): New pattern.
15771
15772 2019-06-10 Martin Liska <mliska@suse.cz>
15773
15774 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15775 Update coding style.
15776 (sem_item_optimizer::dump_cong_classes):
15777 Print how many items are in a non-singular class. Improve
15778 coding style.
15779
15780 2019-06-10 Martin Liska <mliska@suse.cz>
15781
15782 * value-prof.c (dump_histogram_value): Change dump format.
15783 (gimple_mod_subtract_transform): Remove legacy comment.
15784
15785 2019-06-10 Martin Liska <mliska@suse.cz>
15786
15787 * value-prof.c (dump_histogram_value): Print histogram values
15788 only if present.
15789
15790 2019-06-10 Martin Liska <mliska@suse.cz>
15791
15792 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15793 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15794 * ipa-profile.c (ipa_profile_generate_summary):
15795 Use get_most_common_single_value.
15796 * tree-profile.c (gimple_init_gcov_profiler):
15797 Instrument with __gcov_one_value_profiler_v2
15798 and __gcov_indirect_call_profiler_v4.
15799 * value-prof.c (dump_histogram_value):
15800 Print all values for HIST_TYPE_SINGLE_VALUE.
15801 (stream_out_histogram_value): Update assert for
15802 N values.
15803 (stream_in_histogram_value): Set number of
15804 counters for HIST_TYPE_SINGLE_VALUE.
15805 (get_most_common_single_value): New.
15806 (gimple_divmod_fixed_value_transform):
15807 Use get_most_common_single_value.
15808 (gimple_ic_transform): Likewise.
15809 (gimple_stringops_transform): Likewise.
15810 (gimple_find_values_to_profile): Set number
15811 of counters for HIST_TYPE_SINGLE_VALUE.
15812 * value-prof.h (get_most_common_single_value): New.
15813
15814 2019-06-10 Martin Liska <mliska@suse.cz>
15815
15816 * hash-map.h: Pass default value to hash_table ctor.
15817 * hash-table.h: Add default value to call of a ctor.
15818
15819 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
15820
15821 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15822 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15823
15824 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
15825
15826 PR target/90751
15827 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15828 Call pa_output_function_label.
15829 (TARGET_ASM_FUNCTION_PROLOGUE): define.
15830 * config/pa/pa-protos.h (pa_output_function_label): Declare.
15831 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15832 to declaration.
15833 (pa_linux_output_function_prologue): Declare.
15834 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15835 (pa_output_function_label): New.
15836 (pa_output_function_prologue): Revise to use pa_output_function_label.
15837 (pa_linux_output_function_prologue): New.
15838 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15839
15840 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
15841
15842 * tree-vrp.h (value_range_base::intersect): New.
15843 (value_range::intersect_helper): Move from here...
15844 (value_range_base::intersect_helper): ...to here.
15845 * tree-vrp.c (value_range::intersect_helper): Rename to...
15846 (value_range_base::intersect_helper): ...this, and rewrite to
15847 return a value instead of modifying THIS in place.
15848 Also, move equivalence handling...
15849 (value_range::intersect): ...here, while calling intersect_helper.
15850 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15851 calling intersect.
15852 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15853 Same.
15854 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15855
15856 2019-06-07 Jakub Jelinek <jakub@redhat.com>
15857
15858 * Makefile.in (genprogerr): Add condmd.
15859 (genprog): Remove it here.
15860
15861 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
15862
15863 * doc/invoke.texi (AMD GCN Options): Add gfx906.
15864
15865 2019-06-07 Richard Biener <rguenther@suse.de>
15866
15867 PR debug/90574
15868 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15869 that appear after user labels.
15870
15871 2019-06-07 Martin Liska <mliska@suse.cz>
15872
15873 * cselib.c (cselib_init): Disable hash table
15874 sanitization.
15875 * hash-set.h: Pass new default argument to m_table.
15876 * hash-table.c: Add global variable with hash table
15877 sanitization limit.
15878 * hash-table.h (Allocator>::hash_table): Add new argument
15879 to ctor.
15880 (hashtab_chk_error): New.
15881 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15882 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15883 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15884
15885 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15886
15887 * common.opt (flto-odr-type-merging): Ignore.
15888 * invoke.texi (-flto-odr-type-merging): Remove.
15889 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15890 (can_be_vtable_hashed_p): Remove.
15891 (hash_odr_vtable): Remove.
15892 (odr_vtable_hasher::hash): Remove.
15893 (types_same_for_odr): Remove.
15894 (types_odr_comparable): Remove.
15895 (odr_vtable_hasher::equal): Remove.
15896 (odr_vtable_hash_type, odr_vtable_hash): Remove.
15897 (add_type_duplicate): Do not synchronize vtable and name hashtables.
15898 (get_odr_type): Do not use vtable hash.
15899 (dump_odr_type): Remove commented out code.
15900 (build_type_inheritance_graph): Do not allocate vtable hash.
15901 (rebuild_type_inheritance_graph): Do not delete vtable hash.
15902 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15903 (odr_type_p): Likewise.
15904 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15905 test.
15906
15907 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
15908
15909 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15910 immediately after same_types_for_tbaa_p returns -1 and continue
15911 looking for possible exact match; if matching types are arrays
15912 watch for partial overlaps.
15913 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15914 (indirect_refs_may_alias_p): Do type based disambiguation first;
15915 update comment.
15916
15917 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
15918
15919 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15920
15921 2019-06-07 Martin Liska <mliska@suse.cz>
15922
15923 * doc/invoke.texi: Remove param.
15924 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15925 Remove.
15926 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15927 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15928 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15929 * profile.c (instrument_values): Remove
15930 HIST_TYPE_INDIR_CALL_TOPN.
15931 * tree-profile.c (init_ic_make_global_vars):
15932 Always build __gcov_indirect_call only.
15933 (gimple_init_gcov_profiler): Remove usage
15934 of PARAM_INDIR_CALL_TOPN_PROFILE.
15935 (gimple_gen_ic_profiler): Likewise.
15936 * value-prof.c (dump_histogram_value): Likewise.
15937 (stream_in_histogram_value): Likewise.
15938 (gimple_indirect_call_to_profile): Likewise.
15939 (gimple_find_values_to_profile): Likewise.
15940 * value-prof.h (enum hist_type): Likewise.
15941
15942 2019-06-07 Martin Liska <mliska@suse.cz>
15943
15944 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15945 function.
15946
15947 2019-06-07 Martin Liska <mliska@suse.cz>
15948
15949 PR tree-optimization/78902
15950 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15951 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15952 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15953 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15954 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15955 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15956 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15957 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15958 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15959 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15960 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15961 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15962 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15963 New.
15964 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15965 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15966 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15967 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15968 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15969 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15970 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15971 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15972 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15973 warn_unused_result attribute.
15974 (BUILT_IN_STRDUP): Likewise.
15975 (BUILT_IN_STRNDUP): Likewise.
15976 (BUILT_IN_ALLOCA): Likewise.
15977 (BUILT_IN_CALLOC): Likewise.
15978 (BUILT_IN_MALLOC): Likewise.
15979 (BUILT_IN_REALLOC): Likewise.
15980
15981 2019-06-06 Jim Wilson <jimw@sifive.com>
15982
15983 PR target/89955
15984 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15985 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15986 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15987
15988 2019-06-06 Martin Sebor <msebor@redhat.com>
15989
15990 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15991 (handle_builtin_malloc): Remove trailing spaces.
15992 (handle_builtin_memset): Same.
15993 (handle_builtin_memcmp): Same.
15994 (compute_string_length): Same.
15995 (determine_min_objsize): Same.
15996 (handle_builtin_string_cmp): Same.
15997 (handle_char_store): Same. Break up excessively long line.
15998
15999 2019-06-06 Martin Jambor <mjambor@suse.cz>
16000
16001 * tree-sra.c (build_reconstructed_reference): Drop the alignment
16002 check.
16003
16004 2019-06-06 Martin Jambor <mjambor@suse.cz>
16005
16006 * tree-sra.c (struct access): New field grp_same_access_path.
16007 (dump_access): Dump it.
16008 (build_reconstructed_reference): New function.
16009 (build_ref_for_model): Use it if possible.
16010 (path_comparable_for_same_access): New function.
16011 (same_access_path_p): Likewise.
16012 (sort_and_splice_var_accesses): Set the new flag.
16013 (analyze_access_subtree): Likewise.
16014 (propagate_subaccesses_across_link): Propagate zero value of the new
16015 flag down the access tree.
16016
16017 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
16018
16019 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
16020 * config/gcn/gcn.opt (gpu_type): Add gfx906.
16021 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
16022 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
16023 Add gfx906.
16024
16025 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16026
16027 PR tree-optimization/90332
16028 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
16029 Handle VALS containing two vectors.
16030 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
16031 to...
16032 (@aarch64_combinez<mode>): ... This.
16033 (*aarch64_combinez_be<mode>): Rename to...
16034 (@aarch64_combinez_be<mode>): ... This.
16035 (vec_init<mode><Vhalf>): New define_expand.
16036 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
16037
16038 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16039
16040 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
16041 library functions only when not optimizing for size.
16042 (ashlsi3): Likewise.
16043 (ashrhi3): Likewise.
16044 (ashrsi3): Likewise.
16045 (lshrhi3): Likewise.
16046 (lshrsi3): Likewise.
16047
16048 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
16049
16050 PR rtl-optimization/88751
16051 * ira.c (ira): Use the number of the actually referenced registers
16052 when calculating the threshold.
16053
16054 2019-06-06 Jakub Jelinek <jakub@redhat.com>
16055
16056 * configure: Regenerate.
16057
16058 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16059
16060 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
16061 register if it is in memory, so the shift can be emulated with a rotate
16062 instruction.
16063 (ashrhi3): Likewise.
16064 (lshrhi3): Likewise.
16065
16066 2019-06-06 Martin Liska <mliska@suse.cz>
16067
16068 PR tree-optimization/87954
16069 * match.pd: Simplify mult where both arguments are 0 or 1.
16070
16071 2019-06-06 Richard Biener <rguenther@suse.de>
16072
16073 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
16074 put equivalences on UNDEFINED ranges.
16075 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16076 Make sure to drop defs of stmts added during simplification
16077 to VARYING.
16078
16079 2019-06-06 Richard Biener <rguenther@suse.de>
16080
16081 * tree-ssa-structalias.c: Include tree-cfg.h.
16082 (make_heapvar): Do not make heap vars artificial.
16083 (find_func_aliases_for_builtin_call): Handle stack allocation
16084 functions.
16085 (find_func_aliases): Delay processing of simple enough returns
16086 in non-IPA mode.
16087 (set_uids_in_ptset): Adjust.
16088 (find_what_var_points_to): Likewise.
16089 (solve_constraints): Do not dump points-to sets here.
16090 (compute_points_to_sets): Post-process return statements,
16091 amending the escaped solution. Dump points-to sets afterwards.
16092 (ipa_pta_execute): Dump points-to sets.
16093
16094 2019-06-06 Martin Liska <mliska@suse.cz>
16095
16096 PR web/87933
16097 * doc/install.texi: Fix HTML headers and
16098 titles for 'Installing GCC' pages.
16099
16100 2019-06-06 Martin Liska <mliska@suse.cz>
16101
16102 * ipa-icf-gimple.h (dump_message_1): Remove.
16103 (dump_message): Likewise.
16104 (return_false_with_message_1): Print also file.
16105 (return_false_with_msg): Likewise.
16106 (return_with_result): Likewise.
16107 (return_with_debug): Likewise.
16108 * ipa-icf.c (sem_function::equals_private): Remove call
16109 to dump_message.
16110
16111 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16112
16113 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
16114 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
16115 memory operand for it.
16116 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
16117
16118 2019-06-05 Martin Sebor <msebor@redhat.com>
16119
16120 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
16121 Adjust quoting and hyphenation.
16122 * convert.c (convert_to_real_1): Same.
16123 * gcc.c (driver_wrong_lang_callback): Same.
16124 (driver::handle_unrecognized_options): Same.
16125 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
16126 * opts-common.c (cmdline_handle_error): Same.
16127 (read_cmdline_option): Same.
16128 * opts-global.c (complain_wrong_lang): Same.
16129 (print_ignored_options): Same.
16130 (handle_common_deferred_options): Same.
16131 * pretty-print.h: Same.
16132 * print-rtl.c (debug_bb_n_slim): Same.
16133 * sched-rgn.c (make_pass_sched_fusion): Same.
16134 * tree-cfg.c (verify_gimple_assign_unary): Same.
16135 (verify_gimple_label): Same.
16136 * tree-ssa-operands.c (verify_ssa_operands): Same.
16137 * varasm.c (do_assemble_alias): Same.
16138 (assemble_alias): Same.
16139
16140 2019-06-05 Richard Henderson <rth@twiddle.net>
16141
16142 * config/alpha/alpha.c (direct_return): Move down after
16143 struct machine_function definition; use saved frame_size;
16144 return bool.
16145 (struct machine_function): Add sa_mask, sa_size, frame_size.
16146 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
16147 (alpha_compute_frame_layout): ... new function.
16148 (TARGET_COMPUTE_FRAME_LAYOUT): New.
16149 (alpha_initial_elimination_offset): Use saved sa_size.
16150 (alpha_vms_initial_elimination_offset): Likewise.
16151 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
16152 (alpha_expand_prologue): Use saved frame data. Merge integer
16153 and fp register save loops.
16154 (alpha_expand_epilogue): Likewise.
16155 (alpha_start_function): Use saved frame data.
16156 * config/alpha/alpha-protos.h (direct_return): Update.
16157 (alpha_sa_size): Remove.
16158
16159 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
16160
16161 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
16162 multiplication by a power-of-two value.
16163 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
16164 and turn the modulo operation into a masking operation.
16165
16166 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16167
16168 PR debug/90733
16169 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
16170 with VOIDmode inner operands.
16171
16172 2019-06-05 Richard Biener <rguenther@suse.de>
16173
16174 PR middle-end/90726
16175 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16176 turn an expression graph into a tree.
16177
16178 2019-06-05 Jakub Jelinek <jakub@redhat.com>
16179
16180 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16181 member.
16182 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16183 treat it like explicit monotonic schedule modifier.
16184 (expand_omp_for): Initialize has_lastprivate_conditional.
16185 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16186 schedule modifier.
16187
16188 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16189 references, lookup in in hash map MEM_REF operand instead of the
16190 MEM_REF itself.
16191 (lower_omp_1): When looking for lastprivate conditional assignments,
16192 handle MEM_REFs with REFERENCE_TYPE operands.
16193
16194 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16195 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16196 and references a VLA. Handle references to non-VLAs if is_simd
16197 all privatization clauses like reductions.
16198 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16199 If omp_is_reference, use always omp simd arrays and set
16200 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16201 fails, emit reference initialization.
16202
16203 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
16204
16205 PR target/89803
16206 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16207 _mm_mask_fpclass_sd_mask): New intrinsics.
16208 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16209 * config/i386/i386-builtin.def
16210 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16211 New builtins.
16212 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16213 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16214 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16215 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16216 case QI_FTYPE_V2SF_INT): Ditto.
16217 * config/i386/sse.md
16218 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16219 Extended to insnstructions with mask operands.
16220
16221 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16222
16223 * config/rs6000/constraints.md (define_register_constraint "wp"):
16224 Delete.
16225 (define_register_constraint "wq"): 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_wp and RS6000_CONSTRAINT_wq.
16230 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16231 (define_mode_attr VSa): Delete.
16232 (define_mode_attr VSisa): New.
16233 (rest of file): Adjust.
16234 * doc/md.texi (Machine Constraints): Adjust.
16235
16236 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16237
16238 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16239 (define_attr "enabled"): Handle those new isa values.
16240
16241 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16242
16243 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16244 (define_mode_attr VSr5): Delete.
16245 (define_mode_attr VStype_sqrt): Delete.
16246 (define_mode_iterator VSX_SPDP): Delete.
16247 (define_mode_attr VS_spdp_res): Delete.
16248 (define_mode_attr VS_spdp_insn): Delete.
16249 (define_mode_attr VS_spdp_type): Delete.
16250 (*vsx_sqrt<mode>2): Adjust.
16251 (vsx_<VS_spdp_insn>): Delete, split to...
16252 (vsx_xscvdpsp): ... this. New. And...
16253 (vsx_xvcvspdp): ... this. New. And...
16254 (vsx_xvcvdpsp): ... this. New.
16255
16256 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16257
16258 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16259 and V2DF.
16260 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16261 (rest of file): Adjust.
16262
16263 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16264
16265 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16266 (vsx_extract_<mode>_var): Ditto.
16267
16268 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16269
16270 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16271 with just "wa".
16272
16273 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16274
16275 * config/rs6000/constraints.md (define_register_constraint "ww"):
16276 Delete.
16277 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16278 (rs6000_init_hard_regno_mode_ok): Adjust.
16279 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16280 RS6000_CONSTRAINT_ww.
16281 * config/rs6000/rs6000.md: Adjust.
16282 * config/rs6000/vsx.md: Adjust.
16283 * doc/md.texi (Machine Constraints): Adjust.
16284
16285 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16286
16287 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16288 (define_mode_attr sd): New.
16289 (define_mode_attr s): New.
16290 (define_mode_attr Ftrad): Delete.
16291 (define_mode_attr Fvsx): Delete.
16292 (define_mode_attr Fs): Delete.
16293 (rest of file): Use the new mode attributes.
16294 * config.rs6000/vsx.md: Use the new mode attributes.
16295
16296 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16297
16298 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16299 with just "wa".
16300
16301 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16302
16303 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16304 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16305 used with VSX_B, VSX_D, or VSX_F, with just "wa".
16306
16307 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
16308
16309 PR target/78263
16310 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16311 C++ with strict ANSI requirements.
16312
16313 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
16314
16315 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16316 computations when step is 1.
16317
16318 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16319
16320 * config/rs6000/constraints.md (define_register_constraint "wf"):
16321 Delete.
16322 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16323 (rs6000_init_hard_regno_mode_ok): Adjust.
16324 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16325 RS6000_CONSTRAINT_wf.
16326 * config/rs6000/rs6000.md: Adjust.
16327 * config/rs6000/vsx.md: Adjust.
16328 * doc/md.texi (Machine Constraints): Adjust.
16329
16330 2019-06-04 Andrew Pinski <apinski@marvell.com>
16331
16332 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16333 Fix ILP32 value.
16334
16335 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16336
16337 * config/rs6000/constraints.md (define_register_constraint "wd"):
16338 Delete.
16339 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16340 (rs6000_init_hard_regno_mode_ok): Adjust.
16341 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16342 RS6000_CONSTRAINT_wd.
16343 * config/rs6000/rs6000.md: Adjust.
16344 * config/rs6000/vsx.md: Adjust.
16345 * doc/md.texi (Machine Constraints): Adjust.
16346
16347 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16348
16349 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16350 (rest of file): Adjust.
16351
16352 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16353
16354 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16355 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16356 (vsx_splat_<mode>_reg): Adjust.
16357
16358 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16359
16360 * config/rs6000/constraints.md (define_register_constraint "ws"):
16361 Delete.
16362 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16363 (rs6000_init_hard_regno_mode_ok): Adjust.
16364 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16365 RS6000_CONSTRAINT_ws.
16366 * config/rs6000/rs6000.md: Adjust.
16367 * config/rs6000/vsx.md: Adjust.
16368 * doc/md.texi (Machine Constraints): Adjust.
16369
16370 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16371
16372 * config/rs6000/constraints.md (define_register_constraint "wv"):
16373 Delete.
16374 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16375 (rs6000_init_hard_regno_mode_ok): Adjust.
16376 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16377 RS6000_CONSTRAINT_wv.
16378 * config/rs6000/rs6000.md: Adjust.
16379 * config/rs6000/vsx.md: Adjust.
16380 * doc/md.texi (Machine Constraints): Adjust.
16381
16382 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
16383
16384 * config/rs6000/constraints.md (define_register_constraint "wi"):
16385 Delete.
16386 (define_register_constraint "wt"): Delete.
16387 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16388 (rs6000_init_hard_regno_mode_ok): Adjust.
16389 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16390 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16391 * config/rs6000/rs6000.md: Adjust.
16392 * config/rs6000/vsx.md: Adjust.
16393 * doc/md.texi (Machine Constraints): Adjust.
16394
16395 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
16396
16397 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16398 const.
16399 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16400 default_elf_asm_output_external.
16401
16402 2019-06-04 Martin Liska <mliska@suse.cz>
16403
16404 * ipa-icf.c (INCLUDE_LIST): Remove.
16405 (sem_item_optimizer::execute): Remove call to init_wpa.
16406 * ipa-icf.h (init_wpa): Remove.
16407
16408 2019-06-04 Jakub Jelinek <jakub@redhat.com>
16409
16410 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16411 conditional on combined for simd.
16412 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16413 member.
16414 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16415 constructs, don't remove lastprivate_conditional_map, but instead set
16416 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16417 to parent construct temporaries.
16418 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16419 like !ctx->lastprivate_conditional_map.
16420 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16421 use up->outer context instead of up.
16422 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16423 gimple_omp_for_combined_p.
16424 (expand_omp_for_static_nochunk): Likewise.
16425 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16426 probably moved over into expand_omp_for_generic rather than being copied
16427 there.
16428
16429 2019-06-04 Martin Liska <mliska@suse.cz>
16430
16431 * value-prof.c (dump_histogram_value): Fix typo.
16432 (gimple_mod_subtract_transform): Likewise.
16433
16434 2019-06-04 Richard Biener <rguenther@suse.de>
16435
16436 PR middle-end/90726
16437 * tree-chrec.c (chrec_contains_symbols): Add to visited.
16438 (tree_contains_chrecs): Likewise.
16439 (chrec_contains_symbols_defined_in_loop): Move here and avoid
16440 exponential behaivor from ...
16441 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16442 ... here.
16443 (expression_expensive_p): Avoid exponential behavior and compute
16444 expanded size, rejecting any expansion.
16445 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16446 (idx_contains_abnormal_ssa_name_p): Likewise.
16447 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16448 (contains_abnormal_ssa_name_p): Simplify and use
16449 walk_tree_without_duplicates.
16450
16451 2019-06-04 Richard Biener <rguenther@suse.de>
16452
16453 PR tree-optimization/90738
16454 Revert
16455 2019-06-03 Richard Biener <rguenther@suse.de>
16456
16457 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16458 full reference tree and record in ref->ref.
16459 (vn_reference_lookup_3): Pass in original ref to
16460 ao_ref_init_from_vn_reference.
16461 (vn_reference_lookup): Likewise.
16462 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16463 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16464 Handle non-decl bases in the original reference.
16465
16466 2019-06-04 Martin Liska <mliska@suse.cz>
16467
16468 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16469 number of references.
16470 (sem_item_optimizer::do_congruence_step):
16471 (sem_item_optimizer::worklist_push): Dump how references
16472 a class has.
16473 (sem_item_optimizer::worklist_pop): Use heap.
16474 (sem_item_optimizer::process_cong_reduction): Likewise.
16475 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16476
16477 2019-06-04 Martin Liska <mliska@suse.cz>
16478
16479 * ipa-icf.h (struct sem_usage_pair_hash): New.
16480 (sem_usage_pair_hash::hash): Likewise.
16481 (sem_usage_pair_hash::equal): Likewise.
16482 (struct sem_usage_hash): Likewise.
16483 * ipa-icf.c (sem_item::sem_item): Initialize
16484 referenced_by_count.
16485 (sem_item::add_reference): Register a reference
16486 in ref_map and not in target->usages.
16487 (sem_item::setup): Remove initialization of
16488 dead vectors.
16489 (sem_item::~sem_item): Remove usage of dead vectors.
16490 (sem_item::dump): Remove dump of references.
16491 (sem_item_optimizer::sem_item_optimizer): Initialize
16492 m_references.
16493 (sem_item_optimizer::read_section): Remove useless
16494 dump.
16495 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16496 (sem_item_optimizer::build_graph): Pass m_references
16497 to ::add_reference.
16498 (sem_item_optimizer::verify_classes): Remove usage of dead
16499 vectors.
16500 (sem_item_optimizer::traverse_congruence_split): Return true
16501 when a class is split.
16502 (sem_item_optimizer::do_congruence_step_for_index): Use
16503 hash_map for look up of (sem_item *, index). That brings
16504 significant speed up.
16505 (sem_item_optimizer::do_congruence_step): Return true
16506 when a split is done.
16507 (congruence_class::is_class_used): Use referenced_by_count.
16508
16509 2019-06-04 Alan Modra <amodra@gmail.com>
16510
16511 PR target/90689
16512 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16513 error.
16514
16515 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16516
16517 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16518 * config/rs6000/rs6000.c (direct_move_p): Adjust.
16519 (rs6000_secondary_reload_simple_move): Adjust.
16520 (rs6000_opt_masks): Neuter the "mfpgpr" option.
16521 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16522 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16523 comment.
16524 (power6x): Adjust.
16525 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16526 (floatunssi<mode>2_lfiwzx): Adjust.
16527 (fix_trunc<mode>si2_stfiwx): Adjust.
16528 (fixuns_trunc<mode>si2_stfiwx): Adjust.
16529 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16530 (mfpgpr): Mark as deprecated.
16531 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16532 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16533 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16534
16535 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16536
16537 * config/rs6000/constraints.md (define_register_constraint "wg"):
16538 Delete.
16539 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16540 RS6000_CONSTRAINT_wg.
16541 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16542 (rs6000_init_hard_regno_mode_ok): Adjust.
16543 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16544 Delete "wg" alternatives.
16545 * doc/md.texi (Machine Constraints): Adjust.
16546
16547 2019-06-03 Alan Modra <amodra@gmail.com>
16548
16549 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16550 (get_uncond_jump_length): Assert length less than INT_MAX and
16551 non-negative.
16552
16553 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16554
16555 PR middle-end/64242
16556 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16557 block.
16558 (expand_builtin_nonlocal_goto): Likewise.
16559
16560 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
16561
16562 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16563 (aarch64_asm_output_external): Declare.
16564 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16565 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16566 (aarch64_asm_output_alias): New.
16567 (aarch64_asm_output_external): New.
16568 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16569 (ASM_OUTPUT_EXTERNAL): Define.
16570
16571 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
16572 * tree-vrp.h (value_range_base::nonzero_p): New.
16573 (value_range_base::set_nonnull): Rename to...
16574 (value_range_base::set_nonzero): ...this.
16575 (value_range_base::set_null): Rename to...
16576 (value_range_base::set_zero): ...this.
16577 (value_range::set_nonnull): Remove.
16578 (value_range::set_null): Remove.
16579 * tree-vrp.c (range_is_null): Remove.
16580 (range_is_nonnull): Remove.
16581 (extract_range_from_binary_expr): Use value_range_base::*zero_p
16582 instead of range_is_*null.
16583 (extract_range_from_unary_expr): Same.
16584 (value_range_base::set_nonnull): Rename to...
16585 (value_range_base::set_nonzero): ...this.
16586 (value_range::set_nonnull): Remove.
16587 (value_range_base::set_null): Rename to...
16588 (value_range_base::set_zero): ...this.
16589 (value_range::set_null): Remove.
16590 (extract_range_from_binary_expr): Rename set_*null uses to
16591 set_*zero.
16592 (extract_range_from_unary_expr): Same.
16593 (union_helper): Same.
16594 * vr-values.c (get_value_range): Use set_*zero instead of
16595 set_*null.
16596 (vr_values::extract_range_from_binary_expr): Same.
16597 (vr_values::extract_range_basic): Same.
16598
16599 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
16600
16601 PR driver/90684
16602 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16603
16604 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16605
16606 * config/aarch64/iterators.md (MAX_OPP): New code attr.
16607 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16608 Rename to...
16609 (aarch64_<su>abd<mode>_3): ... This.
16610 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16611
16612 2019-06-03 Richard Biener <rguenther@suse.de>
16613
16614 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16615 full reference tree and record in ref->ref.
16616 (vn_reference_lookup_3): Pass in original ref to
16617 ao_ref_init_from_vn_reference.
16618 (vn_reference_lookup): Likewise.
16619 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16620 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16621 Handle non-decl bases in the original reference.
16622
16623 2019-06-03 Martin Liska <mliska@suse.cz>
16624
16625 * doc/generic.texi: Remove Java Trees.
16626
16627 2019-06-03 Martin Liska <mliska@suse.cz>
16628
16629 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16630 returns 0 when operands are equal.
16631
16632 2019-06-03 Richard Biener <rguenther@suse.de>
16633
16634 PR tree-optimization/90716
16635 * tree-loop-distribution.c (destroy_loop): Process blocks in
16636 correct order.
16637
16638 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16639
16640 PR target/88837
16641 * vector-builder.h (vector_builder::count_dups): New method.
16642 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16643 Declare prototype.
16644 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16645 (vec_init<mode><Vel>): New pattern.
16646 * config/aarch64/aarch64.c (emit_insr): New function.
16647 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16648 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16649 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16650 (aarch64_sve_expand_vector_init): Define two overloaded functions.
16651
16652 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16653
16654 PR tree-optimization/90681
16655 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16656 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16657 special case for SLP, but fail on non-groupped loads.
16658
16659 2019-06-03 Martin Liska <mliska@suse.cz>
16660
16661 * cfg.c (debug): Use TDF_DETAILS for debug and
16662 print edge info only once.
16663
16664 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
16665
16666 PR fortran/90539
16667 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16668
16669 2019-06-01 Martin Sebor <msebor@redhat.com>
16670
16671 PR middle-end/90694
16672 * tree-pretty-print.c (dump_generic_node): Add parentheses.
16673
16674 2019-05-31 Jan Hubicka <jh@suse.cz>
16675
16676 * alias.c: Include ipa-utils.h.
16677 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16678 * ipa-devirt.c (prevailing_odr_type): New.
16679 * ipa-utils.h (previaling_odr_type): Declare.
16680
16681 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
16682 Hongtao Liu <hongtao.liu@intel.com>
16683
16684 PR target/89355
16685 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16686 NOTE_INSN_DELETED_LABEL check.
16687
16688 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
16689 Robert Suchanek <robert.suchanek@mips.com>
16690
16691 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16692 and 3rd operands of the fmadd/fmsub/maddv builtin.
16693
16694 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16695
16696 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16697 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16698 on OMP_SIMD if not nested inside of worksharing loop that also has
16699 lastprivate conditional clause for the same decl.
16700 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16701 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16702 on simd.
16703 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
16704 on simd construct.
16705 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16706 on simd construct.
16707 (lower_lastprivate_clauses): Likewise.
16708 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16709 calling lower_rec_input_clauses.
16710 (lower_omp_for): Likewise.
16711 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16712 clause on simd construct.
16713 * omp-expand.c (expand_omp_simd): Initialize cond_var if
16714 OMP_CLAUSE__CONDTEMP_ clause is present.
16715
16716 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16717 ivar and lvar.
16718
16719 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
16720
16721 PR c/43673
16722 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16723 TEX_D32, TEX_D64 or TEX_D128.
16724
16725 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16726
16727 * match.pd (~(vec?cst1:cst2)): New transformation.
16728
16729 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
16730
16731 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16732 ((size_t)(A /[ex] B) CMP C): New transformation.
16733
16734 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
16735
16736 * doc/md.texi: Document define_insn_and_rewrite.
16737 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16738 * gensupport.c (queue_elem): Update comment.
16739 (replace_operands_with_dups): New function.
16740 (gen_rewrite_sequence): Likewise.
16741 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16742 * read-rtl.c (apply_subst_iterator): Likewise.
16743 (add_condition_to_rtx, named_rtx_p): Likewise.
16744 (rtx_reader::read_rtx_operand): Likewise.
16745 * config/aarch64/aarch64-sve.md
16746 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16747 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16748 define_insn_and_rewrite.
16749 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16750 Remove separate define_split.
16751
16752 2019-05-31 Jan Hubicka <jh@suse.cz>
16753
16754 * tree-ssa-alias.c (type_has_components_p): New function.
16755 (aliasing_component_refs_p): Use it.
16756
16757 2019-05-31 Martin Liska <mliska@suse.cz>
16758
16759 * gdbhooks.py: Add const_tree to TreePrinter.
16760
16761 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
16762
16763 PR debug/86964
16764 * common.opt (feliminate-unused-debug-symbols): Enable by default.
16765 * doc/invoke.texi (Debugging Options): Document new default of
16766 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16767
16768 2019-05-31 Jakub Jelinek <jakub@redhat.com>
16769
16770 PR tree-optimization/90671
16771 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16772 template_block used to be empty on the first call, don't use
16773 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16774 seq with bb_seq and set it with set_bb_seq.
16775
16776 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
16777
16778 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16779
16780 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16781 Michael Meissner <meissner@linux.ibm.com>
16782
16783 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16784 (prefixed_mem_operand): Likewise.
16785 (non_prefixed_mem_operand): Likewise.
16786 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16787 prototype.
16788 * config/rs6000/rs6000.c (print_operand_address): Handle
16789 PC-relative addresses.
16790 (mode_supports_prefixed_address_p): New function.
16791 (rs6000_prefixed_address): New function.
16792 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16793 (SYMBOL_REF_PCREL_P): Likewise.
16794
16795 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16796
16797 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16798 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16799 (gimplify_omp_for): If worksharing loop with lastprivate conditional
16800 is nested inside of parallel region, add _condtemp_ clause to both.
16801 * tree-nested.c (convert_nonlocal_omp_clauses,
16802 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16803 assertion failure.
16804 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16805 member.
16806 * omp-general.c (omp_extract_for_data): Compute it.
16807 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16808 (lower_rec_input_clauses): Likewise.
16809 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16810 clause is already present, just add one further one after it.
16811 (lower_lastprivate_clauses): Handle cond_ptr with array type.
16812 (lower_send_shared_vars): Clear _condtemp_ vars.
16813 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16814 or section or taskgroup.
16815 * omp-expand.c (determine_parallel_type): Disallow combining only if
16816 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
16817 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16818 (expand_omp_for_generic, expand_omp_for_static_nochunk,
16819 expand_omp_for_static_chunk, expand_omp_for): Use
16820 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16821 determine if a special set of API routines are needed and if condtemp
16822 needs to be initialized, while always initialize cond_var if
16823 fd->lastprivate_conditional is non-zero.
16824
16825 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16826 Michael Meissner <meissner@linux.ibm.com>
16827
16828 * config/rs6000/constraints.md (eI): New constraint.
16829 * config/rs6000/predicates.md (cint34_operand): New predicate.
16830 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16831 (SIGNED_34BIT_OFFSET_P): Likewise.
16832 * doc/md.texi (eI): Document constraint.
16833
16834 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
16835
16836 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16837
16838 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
16839 Michael Meissner <meissner@linux.ibm.com>
16840
16841 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16842 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16843 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16844 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16845 (OTHER_FUTURE_MASKS): Likewise.
16846 (POWERPC_MASKS): Likewise.
16847 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16848 specified without -mprefixed-addr or -mcpu=future. Error if
16849 -mprefixed-addr is specified without -mcpu=future.
16850 (rs6000_opt_masks): Add entry for prefixed-addr.
16851 * rs6000.opt (mprefixed-addr): New option.
16852
16853 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
16854
16855 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16856 cfun->is_thunk check.
16857
16858 2019-05-30 Jakub Jelinek <jakub@redhat.com>
16859
16860 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16861 to length.
16862
16863 2019-05-30 Martin Liska <mliska@suse.cz>
16864
16865 * gdbinit.in: Fix 'ptc' command. Add trt
16866 that prints TREE_TYPE($).
16867
16868 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
16869 Alan Modra <amodra@gmail.com>
16870
16871 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16872 calls here...
16873 (rs6000_indirect_call_template_1): ...and here.
16874 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
16875 plt16_ha, plt16_lo, mtctr indirect calls. Use
16876 rs6000_pltseq_enum.
16877 (rs6000_decl_ok_for_sibcall): New function.
16878 (rs6000_function_ok_for_sibcall): Refactor.
16879 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16880 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16881 when pcrel. Reorganize.
16882 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16883 * rs6000.h (rs6000_pltseq_enum): New enum.
16884 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16885 (*pltseq_tocsave): Use rs6000_pltseq_enum.
16886 (*pltseq_plt16_ha): Likewise.
16887 (*pltseq_plt16_lo): Likewise.
16888 (*pltseq_mtctr): Likewise.
16889 (*pltseq_plt_pcrel): New insn.
16890 (*call_local_aix): Handle @notoc calls.
16891 (*call_value_local_aix): Likewise.
16892 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16893 (*call_value_nonlocal_aix): Likewise.
16894 (*call_indirect_pcrel): New insn.
16895 (*call_value_indirect_pcrel): Likewise.
16896
16897 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
16898
16899 * config/i386/sse.md (*save_multiple<mode>): Rename from
16900 save_multiple<mode>.
16901 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16902 (*restore_multiple_and_return<mode>): Rename from
16903 restore_multiple_and_return<mode>.
16904 (*restore_multiple_leave_return<mode>): Rename from
16905 restore_multiple_leave_return<mode>.
16906
16907 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
16908
16909 * config.gcc (rx-*-linux*): New target.
16910 * config/rx/elf.opt: New file.
16911 * config/rx/linux.h: Likewise.
16912 * config/rx/t-linux: Likewise.
16913 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16914 make it zero.
16915 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16916 (ASM_APP_OFF): Likewise.
16917 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16918 moved elsewhere.
16919
16920 2019-05-29 Jan Hubicka <jh@suse.cz>
16921
16922 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16923 variants are pointer equivalent.
16924
16925 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16926
16927 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16928 * config/aarch64/aarch64-sve2.md: New file.
16929 (<u>avg<mode>3_floor): New pattern.
16930 (<u>avg<mode>3_ceil): Likewise.
16931 (*<sur>h<addsub><mode>): Likewise.
16932 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16933 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16934
16935 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16936
16937 PR bootstrap/90543
16938 * optc-save-gen.awk: In cl_optimization_print, use correct condition
16939 for var_opt_string printing. In cl_optimization_print_diff, print
16940 (null) instead of invoking undefined behavior if one of the
16941 var_opt_string pointers is NULL and use && instead of first || in the
16942 guarding condition. For var_target_other options, handle const char *
16943 target variables similarly to const char * optimize node variables.
16944
16945 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
16946
16947 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16948 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16949 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16950 Add autib1716 and pacib1716 initialisation.
16951 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16952 for autib1716 and pacib1716.
16953 * config/aarch64/aarch64-protos.h (aarch64_key_type,
16954 aarch64_post_cfi_startproc): Define.
16955 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16956 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16957 aarch64_handle_pac_ret_protection): Set default sign key to A.
16958 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16959 aarch64_expand_prologue): Add check for b-key.
16960 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16961 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16962 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16963 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16964 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16965 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16966 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16967 * config/aarch64/aarch64.md (do_return): Add check for b-key.
16968 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16969 pauth_hint_num_a with pauth_hint_num.
16970 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16971 pauth_hint_num_a with pauth_hint_num.
16972 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16973 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16974 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16975 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16976 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16977 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16978 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16979 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16980 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16981 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16982 UNSPEC_AUTIA1716 respectively.
16983 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16984 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16985 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16986 * doc/invoke.texi (-mbranch-protection): Add b-key type.
16987 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16988 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16989
16990 2019-05-29 Jakub Jelinek <jakub@redhat.com>
16991
16992 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16993 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16994 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16995 explicit clause on combined parallel into implicit shared clause.
16996 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16997 and firstprivate if the decl has one too from combined parallel to
16998 the worksharing construct.
16999
17000 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
17001 Michael Meissner <meissner@linux.ibm.com>
17002
17003 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
17004
17005 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
17006
17007 * rtl.h (LABEL_REF_P): New #define.
17008
17009 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
17010
17011 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
17012
17013 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17014
17015 * internal-fn.c: Marked mask_load_direct as vectorizable.
17016 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
17017 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
17018 combined even if masks different with allow_slp_p param.
17019 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
17020 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
17021 dissolve SLP-only vectorizable groups when SLP has been discarded.
17022 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
17023 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
17024 masks.
17025 (vect_build_slp_tree_1): Fixed comment typo.
17026 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
17027 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
17028 loads for SLP only.
17029 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
17030 vectorizable.
17031 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
17032
17033 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17034
17035 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
17036 Remove obsolete use_thunk reference.
17037 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
17038 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17039 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
17040 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
17041 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
17042 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
17043 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17044 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
17045 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
17046
17047 2019-05-28 Nathan Sidwell <nathan@acm.org>
17048
17049 * tree.h (IDENTIFIER_ANON_P): New.
17050 (anon_aggrname_format, anon_aggname_p): Don't declare.
17051 (make_anon_name): Declare.
17052 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
17053 (hash_tree): Likewise.
17054 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
17055 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
17056 (anon_cnt, make_anon_name): New.
17057
17058 2019-05-28 Martin Liska <mliska@suse.cz>
17059
17060 PR other/90315
17061 * opts-global.c (decode_options): Print help for all
17062 help_option_arguments.
17063 * opts.c (print_help): Add new argument.
17064 (common_handle_option): Remember all values into
17065 help_option_arguments.
17066 * opts.h (print_help): Add new argument.
17067
17068 2019-05-28 Martin Liska <mliska@suse.cz>
17069
17070 PR ipa/90555
17071 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
17072 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
17073 (func_checker::compare_bb): Call compare_loops.
17074
17075 2019-05-27 Jakub Jelinek <jakub@redhat.com>
17076
17077 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
17078 on sections construct.
17079 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
17080 construct.
17081 (lower_omp_sections): Handle lastprivate conditional.
17082 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
17083 lastprivate_conditional_map.
17084 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
17085
17086 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
17087 critical, taskgroup and section regions when looking for a region
17088 with non-NULL lastprivate_conditional_map.
17089
17090 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17091
17092 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
17093 (*ix86_gen_sub3): Ditto.
17094 (*ix86_gen_sub3_carry): Ditto.
17095 (*ix86_gen_one_cmpl2): Ditto.
17096 (*ix86_gen_andsp): Ditto.
17097 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
17098 (gen_and2_insn): New static function.
17099 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
17100 Use gen_add3_insn instead of ix86_gen_add3.
17101 (ix86_expand_split_stack_prologue): Use gen_add2_insn
17102 instead of ix86_gen_add3.
17103 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
17104 Use gen_sub3_insn instead of ix86_gen_sub3.
17105 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
17106 instead of ix86_gen_add3.
17107 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
17108 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
17109 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
17110 * config/i386/i386-options.c (ix86_option_override_internal):
17111 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
17112 ix86_gen_one_cmpl2 and ix86_gen_andsp.
17113
17114 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
17115
17116 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
17117 and DW_OP_GNU_const_index opcodes.
17118
17119 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
17120
17121 * config/i386/i386.h (STACK_SIZE_MODE): Define.
17122
17123 2019-05-27 Richard Biener <rguenther@suse.de>
17124
17125 PR tree-optimization/90637
17126 * tree-ssa-sink.c (statement_sink_location): Honor the
17127 computed sink location for single-uses.
17128
17129 2019-05-27 Richard Biener <rguenther@suse.de>
17130
17131 PR middle-end/90610
17132 * match.pd (vec_perm): Avoid clobbering op0 when not generating
17133 a bit-insert.
17134
17135 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17136
17137 * config/i386/i386.md (@sub<mode>3_carry): Rename
17138 from sub<mode>3_carry.
17139 (@leave_<mode>): New expander.
17140 (*leave): Rename from leave.
17141 (*leave_rex64): Rename from leave_rex64.
17142 (@monitorx_<mode>): Rename from monitorx_<mode>.
17143 (@clzero_<mode>): Rename from clzero_<mode>.
17144 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
17145 from sse3_monitor_<mode>.
17146 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
17147 (*ix86_gen_leave): Ditto.
17148 (*ix86_gen_monitor): Ditto.
17149 (*ix86_gen_monitorx): Ditto.
17150 (*ix86_gen_clzero): Ditto.
17151 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
17152 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
17153 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
17154 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
17155 Use gen_sse3_monitor instead of ix86_gen_monitor.
17156 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
17157 instead of ix86_gen_monitorx.
17158 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
17159 instead of ix86_gen_clzero.
17160 * config/i386/i386-options.c (ix86_option_override_internal):
17161 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
17162 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
17163
17164 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17165
17166 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
17167 Rename from tls_global_dynamic_64_<mode>.
17168 (@tls_local_dynamic_base_64_<mode>): Rename from
17169 tls_local_dynamic_base_64_<mode>.
17170 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
17171 Remove indirect function.
17172 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17173 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17174 instead of ix86_gen_tls_global_dynamic_64.
17175 Use gen_tls_local_dynamic_base_64 instead of
17176 ix86_gen_tls_local_dynamic_base_64.
17177 * config/i386/i386-options.c (ix86_option_override_internal):
17178 Do not initialize ix86_gen_tls_global_dynamic_64 and
17179 ix86_gen_tls_local_dynamic_base_64.
17180
17181 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
17182
17183 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17184 Rename from pro_epilogue_adjust_stack_<mode>_add.
17185 (@pro_epilogue_adjust_stack_sub_<mode>)
17186 Rename from pro_epilogue_adjust_stack_<mode>_sub.
17187 (@allocate_stack_worker_probe_<mode>):
17188 Rename from allocate_stack_worker_probe_<mode>.
17189 (allocate_stack): Use gen_allocate_stack_worker_probe.
17190 (probe_stack): Use gen_probe_stack_1.
17191 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17192 (@adjust_stack_and_probe_<mode>): Rename from
17193 adjust_stack_and_probe<mode>.
17194 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17195 (stack_protect_set): Use gen_stack_protect_set_1.
17196 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17197 (stack_protect_test): Use gen_stack_protect_test_1.
17198 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17199 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17200 Remove indirect function.
17201 (*ix86_gen_adjust_stack_and_probe): Ditto.
17202 (*ix86_gen_probe_stack_range): Ditto.
17203 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17204 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17205 (ix86_adjust_stack_and_probe_stack_clash): Use
17206 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17207 (ix86_adjust_stack_and_probe): Ditto.
17208 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17209 of ix86_gen_probe_stack_range.
17210 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17211 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17212 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17213 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
17214 CODE_FOR_stack_protect_test_{si,di}.
17215 * config/i386/i386-options.c (ix86_option_override_internal):
17216 Do not initialize ix86_gen_allocate_stack_worker,
17217 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17218
17219 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
17220
17221 * doc/invoke.texi (Link Options): Many editorial changes around
17222 -flinker-output.
17223
17224 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17225
17226 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17227 pre-Solaris 11 referene and most Studio compiler details.
17228
17229 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
17230
17231 PR target/90530
17232 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17233 DImode to SImode in floating-point registers on 64-bit target.
17234 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17235 register_operand in xmpyu patterns.
17236
17237 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17238
17239 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17240 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17241 OMP_CLAUSE__REDUCTEMP_.
17242 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17243 OMP_CLAUSE__CONDTEMP_.
17244 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17245 * tree-pretty-print.c (dump_omp_clause): Likewise.
17246 * tree-nested.c (convert_nonlocal_omp_clauses,
17247 convert_local_omp_clauses): Likewise.
17248 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17249 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
17250 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17251 on OMP_FOR.
17252 (gimplify_omp_for): Warn and disable conditional modifier from
17253 lastprivate on loop iterators.
17254 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17255 member.
17256 * omp-general.c (omp_extract_for_data): Initialize it.
17257 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17258 member.
17259 (delete_omp_context): Delete it.
17260 (lower_lastprivate_conditional_clauses): New function.
17261 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17262 handle lastprivate conditional clauses.
17263 (lower_reduction_clauses): Add CLIST argument, emit it into
17264 the critical section if any.
17265 (lower_omp_sections): Adjust lower_lastprivate_clauses and
17266 lower_reduction_clauses callers.
17267 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17268 to lower_lastprivate_clauses.
17269 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17270 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17271 clist into a critical section if not emitted there already by
17272 lower_reduction_clauses.
17273 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17274 callers.
17275 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17276 conditional variables.
17277 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17278 clause is present.
17279 (expand_omp_for_generic, expand_omp_for_static_nochunk,
17280 expand_omp_for_static_chunk): Handle lastprivate conditional.
17281 (expand_omp_for): Handle fd.lastprivate_conditional like
17282 fd.have_reductemp.
17283
17284 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17285
17286 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17287 kernel does not exit cleanly.
17288 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17289
17290 2019-05-24 Jason Merrill <jason@redhat.com>
17291
17292 Revert:
17293 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17294
17295 2019-05-24 Richard Biener <rguenther@suse.de>
17296
17297 PR testsuite/90607
17298 * tree-loop-distribution.c (struct partition): Add location
17299 member.
17300 (partition_alloc): Initialize all fields.
17301 (generate_memset_builtin): Use the location recorded in the
17302 partition for the generated call.
17303 (generate_memcpy_builtin): Likewise.
17304 (classify_partition): Record the location of a single store
17305 as location for the partition.
17306
17307 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
17308
17309 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17310 for lo-part.
17311
17312 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
17313
17314 PR target/90588
17315 * common/config/aarch64/aarch64-common.c
17316 (aarch64_rewrite_selected_cpu): Change local temporary variable
17317 type from unsigned long to uint64_t.
17318 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17319 aarch64_get_extension_string_for_isa_flags): Change declaration to
17320 match new definition by replacing unsigned long with uint64_t.
17321
17322 2019-05-24 Jakub Jelinek <jakub@redhat.com>
17323
17324 PR target/90568
17325 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17326 gen_attr_type just once instead of 4-7 times. Formatting fixes.
17327 Handle stack_protect_test_<mode> codegen similarly to corresponding
17328 sub instruction.
17329
17330 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
17331
17332 * config/i386/darwin.h: Reject -mfentry*.
17333 * doc/sourcebuild.texi: Document mfentry target support.
17334
17335 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17336
17337 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17338 Rename to rs6000_global_entry_point_prologue_needed_p. Return
17339 false for PC-relative functions.
17340 (rs6000_output_function_prologue): Change called function name to
17341 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
17342 name,1" for PC-relative functions.
17343 (rs6000_elf_declare_function_name): Change called function name to
17344 rs6000_global_entry_point_prologue_needed_p.
17345
17346 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
17347
17348 PR target/90552
17349 * config/i386/i386.c (gen_rtx_cost):
17350 Use ix86_tune_cost instead of ix86_cost.
17351
17352 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17353 Michael Meissner <meissner@linux.ibm.com>
17354 Segher Boessenkool <segher@kernel.crashing.org>
17355
17356 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17357 OPTION_MASK_PCREL.
17358 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17359 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17360 (rs6000_fndecl_pcrel_p): Likewise.
17361 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17362 error if -mpcrel is requested without -mcpu=future.
17363 (rs6000_opt_masks): Add entry for pcrel.
17364 (rs6000_fndecl_pcrel_p): New function.
17365 (rs6000_pcrel_p): Likewise.
17366 * config/rs6000/rs6000.opt (mpcrel): New option.
17367 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17368
17369 2019-05-23 Jan Hubicka <jh@suse.cz>
17370 Martin Liska <mliska@suse.cz>
17371
17372 PR tree-optimization/90576
17373 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17374 poly_int_tree_p.
17375 (aliasing_component_refs_p): Fix three way size compare conditional;
17376 give up earlier in case we can not decide on equivalence.
17377
17378 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
17379 Michael Meissner <meissner@linux.ibm.com>
17380 Segher Boessenkool <segher@kernel.crashing.org>
17381
17382 * config.gcc: Add future cpu.
17383 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17384 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17385 #define.
17386 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17387 (RS6000_CPU): New instantiation for future cpu.
17388 * config/rs6000/rs6000-opts.h (enum processor_type): Add
17389 PROCESSOR_FUTURE.
17390 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17391 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17392 * config/rs6000/rs6000-tables.opt: Regenerate.
17393 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17394 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17395 (rs6000_machine_from_flags): Handle future cpu.
17396 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17397 PROCESSOR_POWER9 for now.
17398 (rs6000_adjust_cost): Likewise.
17399 (rs6000_issue_rate): Likewise.
17400 (rs6000_register_move_cost): Likewise.
17401 (rs6000_opt_masks): Add entry for future.
17402 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17403 (MASK_FUTURE): New #define.
17404 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17405 * config/rs6000/rs6000.opt (mfuture): New target option.
17406 * doc/invoke.texi (mcpu): Add future cpu.
17407
17408 2019-05-23 Martin Liska <mliska@suse.cz>
17409
17410 PR c++/90587
17411 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17412 operation points to a temporary (pointed via tree_to_wide_ref)
17413 that is out of scope after the &.
17414
17415 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
17416
17417 PR c++/90592
17418 * doc/extend.texi (Function Names): Add missing word.
17419
17420 2019-05-23 Richard Biener <rguenther@suse.de>
17421
17422 PR tree-optimization/88440
17423 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17424 at -O[2s]+.
17425 * tree-loop-distribution.c (generate_memset_builtin): Fold the
17426 generated call.
17427 (generate_memcpy_builtin): Likewise.
17428 (distribute_loop): Pass in whether to only distribute patterns.
17429 (prepare_perfect_loop_nest): Also allow size optimization.
17430 (pass_loop_distribution::execute): When optimizing a loop
17431 nest for size allow pattern replacement.
17432
17433 2019-05-23 Jakub Jelinek <jakub@redhat.com>
17434
17435 PR target/90568
17436 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17437 of xor.
17438
17439 2019-05-23 Martin Liska <mliska@suse.cz>
17440
17441 PR sanitizer/90570
17442 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17443 expression similarly to gimplify_decl_expr.
17444
17445 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17446
17447 * cse.c (cse_dump_path): s/dump_file/f.
17448
17449 2019-05-22 David Malcolm <dmalcolm@redhat.com>
17450
17451 PR c++/90462
17452 * diagnostic-format-json.cc: Include "selftest.h".
17453 (json_from_expanded_location): Only add "file" key for non-NULL
17454 file strings.
17455 (json_from_location_range): Don't add "start" and "finish"
17456 children if they are UNKNOWN_LOCATION.
17457 (selftest::test_unknown_location): New selftest.
17458 (selftest::test_bad_endpoints): New selftest.
17459 (selftest::diagnostic_format_json_cc_tests): New function.
17460 * json.cc (json::object::get): New function.
17461 (selftest::test_object_get): New selftest.
17462 (selftest::json_cc_tests): Call it.
17463 * json.h (json::object::get): New decl.
17464 * selftest-run-tests.c (selftest::run_tests): Call
17465 selftest::diagnostic_format_json_cc_tests.
17466 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17467 decl.
17468
17469 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
17470 Andrew Stubbs <amd@codesourcery.com>
17471
17472 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17473 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17474 (kernel): Rename to...
17475 (main_kernel): ... this.
17476 (load_image): Load _init_array and _fini_array kernels.
17477 (run): Add argument for kernel to run.
17478 (main): Run init_array_kernel before main_kernel, and
17479 fini_array_kernel after.
17480 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17481 amdgpu_hsa_kernel attribute on functions.
17482 (gcn_disable_constructors): Delete.
17483 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17484 * config/gcn/crt0.c (size_t): Define.
17485 (_init_array, _fini_array): New.
17486 (__preinit_array_start, __preinit_array_end,
17487 __init_array_start, __init_array_end,
17488 __fini_array_start, __fini_array_end): Declare weak references.
17489
17490 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
17491
17492 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17493
17494 2019-05-22 Jason Merrill <jason@redhat.com>
17495
17496 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17497
17498 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
17499
17500 PR target/88483
17501 * config/i386/i386-options.c (ix86_init_machine_status): Set
17502 stack_frame_required to true.
17503 * config/i386/i386.c (ix86_get_frame_size): New function.
17504 (ix86_frame_pointer_required): Replace get_frame_size with
17505 ix86_get_frame_size.
17506 (ix86_compute_frame_layout): Likewise.
17507 (ix86_find_max_used_stack_alignment): Changed to void. Set
17508 stack_frame_required.
17509 (ix86_finalize_stack_frame_flags): Always call
17510 ix86_find_max_used_stack_alignment. Replace get_frame_size with
17511 ix86_get_frame_size.
17512 * config/i386/i386.h (machine_function): Add stack_frame_required.
17513
17514 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
17515
17516 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17517
17518 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
17519
17520 * common/config/aarch64/aarch64-common.c
17521 (struct aarch64_option_extension, struct processor_name_to_arch,
17522 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17523 aarch64_contains_opt,
17524 aarch64_get_extension_string_for_isa_flags): Change type of
17525 variables storing flags to uint64_t.
17526 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17527 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17528 * config/aarch64/aarch64.c (struct processor,
17529 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17530 aarch64_validate_march, aarch64_override_options,
17531 aarch64_option_print, aarch64_handle_attr_isa_flags,
17532 aarch64_declare_function_name, aarch64_start_file): Make flag
17533 variables uint64_t.
17534 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17535 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17536 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17537 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17538 * config/aarch64/driver-aarch64.c
17539 (struct aarch64_arch_extension, struct aarch64_core_data,
17540 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17541 flag variables uint64_t.
17542 * doc/invoke.texi: Add documentation for new arguments.
17543
17544 2019-05-22 Richard Biener <rguenther@suse.de>
17545
17546 * alias.c (ao_ref_from_mem): Move stack-slot sharing
17547 rewrite ...
17548 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17549
17550 2019-05-22 Martin Liska <mliska@suse.cz>
17551
17552 PR lto/90500
17553 * doc/extend.texi: Document the change.
17554
17555 2019-05-22 Richard Biener <rguenther@suse.de>
17556
17557 PR tree-optimization/90450
17558 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17559 (mem_ref_hasher::equal): Check it.
17560 (mem_ref_alloc): Initialize it.
17561 (gather_mem_refs_stmt): Set it.
17562
17563 2019-05-22 Richard Biener <rguenther@suse.de>
17564
17565 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17566 Add ABS_EXPR.
17567 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17568 as ABSU_EXPR.
17569
17570 2019-05-22 Alan Modra <amodra@gmail.com>
17571
17572 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17573 (ASM_CPU_SPEC): Conditionally add -many.
17574 * config/rs6000/rs6000.c (rs6000_machine): New static var.
17575 (rs6000_machine_from_flags, emit_asm_machine): New functions..
17576 (rs6000_file_start): ..extracted from here, and modified to
17577 test all ISA bits.
17578 (rs6000_output_function_prologue): Emit .machine as necessary.
17579
17580 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
17581
17582 PR middle-end/90553
17583 * ira-lives.c (process_bb_node_lives): Consider defs
17584 for a call insn to be die before the call, not after.
17585
17586 * function.c (assign_parm_setup_block): Raise alignment of
17587 stacked parameter only for STRICT_ALIGNMENT targets.
17588
17589 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17590
17591 * config/rs6000/constraints.md (define_register_constraint "wz"):
17592 Delete.
17593 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17594 RS6000_CONSTRAINT_wz.
17595 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17596 (rs6000_init_hard_regno_mode_ok): Adjust.
17597 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17598 * doc/md.texi (Machine Constraints): Adjust.
17599
17600 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17601
17602 * config/rs6000/constraints.md (define_register_constraint "wl"):
17603 Delete.
17604 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17605 RS6000_CONSTRAINT_wl.
17606 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17607 (rs6000_init_hard_regno_mode_ok): Adjust.
17608 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17609 * doc/md.texi (Machine Constraints): Adjust.
17610
17611 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17612
17613 * config/rs6000/constraints.md (define_register_constraint "wm"):
17614 Delete.
17615 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17616 RS6000_CONSTRAINT_wm.
17617 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17618 (rs6000_init_hard_regno_mode_ok): Adjust.
17619 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17620 * doc/md.texi (Machine Constraints): Adjust.
17621
17622 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17623
17624 * config/rs6000/constraints.md (define_register_constraint "wk"):
17625 Delete.
17626 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17627 RS6000_CONSTRAINT_wk.
17628 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17629 (rs6000_init_hard_regno_mode_ok): Adjust.
17630 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17631 * doc/md.texi (Machine Constraints): Adjust.
17632
17633 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17634
17635 * config/rs6000/constraints.md (define_register_constraint "wj"):
17636 Delete.
17637 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17638 RS6000_CONSTRAINT_wj.
17639 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17640 (rs6000_init_hard_regno_mode_ok): Adjust.
17641 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17642 (VS_64dm): Delete.
17643 * config/rs6000/vsx.md: Ditto.
17644 * doc/md.texi (Machine Constraints): Adjust.
17645
17646 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
17647
17648 * config/rs6000/constraints.md (define_register_constraint "wh"):
17649 Delete.
17650 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17651 RS6000_CONSTRAINT_wh.
17652 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17653 (rs6000_init_hard_regno_mode_ok): Adjust.
17654 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17655 * doc/md.texi (Machine Constraints): Adjust.
17656
17657 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17658
17659 PR target/90547
17660 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17661 Avoid calling gen_lowpart with CONST operand.
17662
17663 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
17664
17665 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17666 field template_last_to_copy.
17667 (ssa_create_duplicates): Set it, and use it. Attempt to
17668 preserve more debug stmts.
17669
17670 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17671
17672 * config/i386/sse.md (VF1_AVX2): New mode iterator.
17673 (signbit<mode>2): New expander
17674
17675 2019-05-21 James Clarke <jrtc27@jrtc27.com>
17676
17677 PR bootstrap/87338
17678 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17679 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17680
17681 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
17682
17683 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17684 %ebx and %ecx bafore calling cpuid with leaf 1 or
17685 non-constant leaf argument.
17686
17687 2019-05-21 Alan Modra <amodra@gmail.com>
17688
17689 PR target/90545
17690 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17691 power9 direct move cost.
17692
17693 2019-05-21 Richard Biener <rguenther@suse.de>
17694
17695 PR middle-end/90510
17696 * fold-const.c (fold_read_from_vector): New function.
17697 * fold-const.h (fold_read_from_vector): Declare.
17698 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17699 single-element insert permutations. Canonicalize selector
17700 further and fix issue with last commit.
17701
17702 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17703
17704 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17705 parameter with default value false to declaration.
17706 (split_edges_for_insertion): New inline function. Wrapper for
17707 split_critical_edges with for_edge_insertion_p = true.
17708 * tree-cfg.c (split_critical_edges): Don't split non-critical
17709 edges if for_edge_insertion_p is false. Fix whitespace.
17710 * tree-ssa-pre.c (pass_pre::execute): Call
17711 split_edges_for_insertion instead of split_critical_edges.
17712 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17713 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17714 (pass_data_sink_code): Update function name in the comment.
17715
17716 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
17717
17718 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17719 around is_value_included_in that knows how to handle BIT_AND_EXPR.
17720 (is_pred_expr_subset_of): Use the new function. Handle more cases where
17721 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17722 positives.
17723
17724 2019-05-21 Martin Liska <mliska@suse.cz>
17725
17726 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17727 an extra newline.
17728 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17729 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17730 vec_lvsr.
17731 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17732 Quote a C type.
17733 (rs6000_function_arg): Likewise.
17734 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17735 (rs6000_expand_ternop_builtin): Use interval syntax.
17736 (get_element_number): Likewise.
17737 (altivec_expand_builtin): Likewise.
17738 (rs6000_get_function_versions_dispatcher): Quote target_clones.
17739
17740 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17741
17742 PR c++/59813
17743 PR target/90418
17744 * function.h (struct function): Add calls_eh_return member.
17745 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17746 gimplifying __builtin_eh_return call.
17747 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17748 to cfun.
17749 (expand_call_inline): Or in src_cfun->calls_eh_return into
17750 dst_cfun->calls_eh_return.
17751 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17752 cfun->calls_eh_return.
17753 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17754 * lto-streamer-out.c (output_struct_function_base): Write
17755 calls_eh_return.
17756
17757 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
17758
17759 PR rtl-optimization/43147
17760 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17761 IX86_BUILTIN_SHUFPD.
17762
17763 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17764
17765 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17766 (refs_may_alias_p_1): ... here; update stats.
17767 (refs_may_alias_p): Do not update stats here.
17768
17769 2019-05-20 Richard Biener <rguenther@suse.de>
17770
17771 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17772 doesn't produce pointers.
17773 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17774 the first operand points to.
17775
17776 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
17777
17778 * tree-ssa-alias.c (compare_sizes): New function.
17779 (sompare_type_sizes): New function
17780 (aliasing_component_refs_p): Use it.
17781 (indirect_ref_may_alias_decl_p): Likewise.
17782
17783 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17784
17785 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17786
17787 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17788
17789 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17790 (LIBLSAN_EARLY_SPEC): Likewise.
17791 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17792
17793 2019-05-20 Martin Liska <mliska@suse.cz>
17794
17795 * config/i386/i386.c (ix86_libc_has_fast_function):
17796 Add ATTRIBUTE_UNUSED for the argument.
17797
17798 2019-05-20 Richard Biener <rguenther@suse.de>
17799
17800 * gimple-match-head.c: Include vec-perm-indices.h.
17801 * generic-match-head.c: Likewise.
17802 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17803 is included.
17804 * fold-const.c (fold_vec_perm): Export.
17805 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17806 (match.pd): ...here.
17807
17808 2019-05-20 Jakub Jelinek <jakub@redhat.com>
17809
17810 * cfgloop.h (struct loop): Add simdlen member.
17811 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17812 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17813 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17814 as new argument to autovectorize_vector_sizes target hook. If
17815 loop->simdlen, pick up vector size where the vectorization factor
17816 is equal to loop->simd, and if there is none, fall back to the first
17817 successful one.
17818 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17819 caller.
17820 * omp-low.c (omp_clause_aligned_alignment): Likewise.
17821 * omp-general.c (omp_max_vf): Likewise.
17822 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17823 * tree-vect-slp.c (vect_slp_bb): Likewise.
17824 * target.def (autovectorize_vector_sizes): Add ALL argument and
17825 document it.
17826 * doc/tm.texi: Adjust documentation.
17827 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17828 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17829 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17830 bool argument.
17831 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17832 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17833 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17834 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
17835 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17836 preferred vector size is not 512-bit or 256-bit, just put those
17837 unpreferred ones last.
17838
17839 2019-05-20 Martin Liska <mliska@suse.cz>
17840
17841 * targhooks.c (default_libc_has_fast_function): New function.
17842 * targhooks.h (default_libc_has_fast_function): Likewise.
17843
17844 2019-05-20 Martin Liska <mliska@suse.cz>
17845
17846 PR middle-end/90263
17847 * builtins.c (expand_builtin_memory_copy_args): When having a
17848 target with fast mempcpy implementation do now use memcpy.
17849 * config/i386/i386.c (ix86_libc_has_fast_function): New.
17850 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17851 * doc/tm.texi: Likewise.
17852 * doc/tm.texi.in: Likewise.
17853 * target.def:
17854 * expr.c (emit_block_move_hints): Add 2 new arguments.
17855 * expr.h (emit_block_move_hints): Bail out when libcall
17856 to memcpy would be used.
17857
17858 2019-05-20 Martin Liska <mliska@suse.cz>
17859
17860 * profile-count.c: Add vertical spacing in order
17861 to separate functions.
17862 * profile-count.h: Likewise.
17863
17864 2019-05-20 Martin Liska <mliska@suse.cz>
17865
17866 * profile-count.h: Do not use full qualified
17867 names if possible.
17868 * profile-count.c (profile_count::to_frequency): Likewise.
17869
17870 2019-05-20 Martin Liska <mliska@suse.cz>
17871
17872 * profile-count.h (enum profile_quality): Use capital letters
17873 for enum value names. Use the adjusted names.
17874 * profile-count.c: Use the adjusted names.
17875
17876 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17877
17878 * config/rs6000/constraints.md (define_register_constraint "wH"):
17879 Delete.
17880 (define_register_constraint "wI"): Delete.
17881 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17882 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17883 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17884 (rs6000_init_hard_regno_mode_ok): Adjust.
17885 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17886 resp. "d", or with "wa" as appropriate, all with "p8v".
17887 * config/rs6000/vsx.md: Ditto.
17888 * doc/md.texi (Machine Constraints): Adjust.
17889
17890 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17891
17892 * config/rs6000/constraints.md (define_register_constraint "wy"):
17893 Delete.
17894 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17895 RS6000_CONSTRAINT_wy.
17896 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17897 (rs6000_init_hard_regno_mode_ok): Adjust.
17898 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17899 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17900 (define_mode_attr Fisa): New.
17901 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17902 * doc/md.texi (Machine Constraints): Adjust.
17903
17904 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17905
17906 * config/rs6000/constraints.md (define_register_constraint "wu"):
17907 Delete.
17908 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17909 RS6000_CONSTRAINT_wu.
17910 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17911 (rs6000_init_hard_regno_mode_ok): Adjust.
17912 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17913 both with "p8v".
17914 (define_mode_attr Fa): Delete.
17915 * config/rs6000/vsx.md: Ditto.
17916 * doc/md.texi (Machine Constraints): Adjust.
17917
17918 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17919
17920 * config/rs6000/constraints.md (define_register_constraint "wJ"):
17921 Delete.
17922 (define_register_constraint "wK"): Delete.
17923 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17924 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17925 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17926 (rs6000_init_hard_regno_mode_ok): Adjust.
17927 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17928 Replace "wK" constraint by "wH" with "p9v".
17929 * config/rs6000/vsx.md: Ditto.
17930 * doc/md.texi (Machine Constraints): Adjust.
17931
17932 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17933
17934 * config/rs6000/constraints.md (define_register_constraint "wb"):
17935 Delete.
17936 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17937 RS6000_CONSTRAINT_wb.
17938 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17939 (rs6000_init_hard_regno_mode_ok): Adjust.
17940 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17941 * config/rs6000/vsx.md: Ditto.
17942 * doc/md.texi (Machine Constraints): Adjust.
17943
17944 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17945
17946 * config/rs6000/constraints.md (define_register_constraint "wo"):
17947 Delete.
17948 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17949 RS6000_CONSTRAINT_wo.
17950 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17951 (rs6000_init_hard_regno_mode_ok): Adjust.
17952 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17953 * config/rs6000/altivec.md: Ditto.
17954 * doc/md.texi (Machine Constraints): Adjust.
17955
17956 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17957
17958 * config/darwin-c.c (darwin_register_objc_includes): Do not
17959 prepend the sysroot when building gnu-runtime header search
17960 paths.
17961
17962 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
17963
17964 * config/darwin.c (darwin_file_end): Use switch_to_section ()
17965 instead of direct output of the asm.
17966
17967 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17968
17969 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17970 argument to be type bool (was int before).
17971 (rs6000_emit_epilogue): Simplify some code. Declare some variables
17972 at first use. Use type bool for some variables. Fix a theoretical
17973 eh_return bug for svr4.
17974
17975 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
17976
17977 * config/rs6000/rs6000.md (isa): New attribute.
17978 (enabled): New attribute.
17979
17980 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
17981
17982 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17983 assemble_start_function and assemble_end_function.
17984
17985 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
17986
17987 PR middle-end/89433
17988 * omp-general.c (oacc_verify_routine_clauses): Change formal
17989 parameters. Add checking if already marked with an OpenACC
17990 'routine' directive. Adjust all users.
17991
17992 PR middle-end/89433
17993 * omp-general.c (oacc_build_routine_dims): Move some of its
17994 processing into...
17995 (oacc_verify_routine_clauses): ... this new function.
17996 * omp-general.h (oacc_verify_routine_clauses): New prototype.
17997
17998 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
17999
18000 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
18001 formating of picbase labels to match other ports.
18002
18003 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
18004
18005 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
18006 in the generated code.
18007
18008 2019-05-16 Martin Sebor <msebor@redhat.com>
18009
18010 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
18011 identifiers, keywords, operators, and types in diagnostics. Correct
18012 quoting, spelling, and sentence capitalization issues.
18013 (expand_builtin_atomic_is_lock_free): Same.
18014 (fold_builtin_next_arg): Same.
18015 * cfgexpand.c (expand_one_var): Same.
18016 (tree_conflicts_with_clobbers_p): Same.
18017 (expand_asm_stmt): Same.
18018 (verify_loop_structure): Same.
18019 * cgraphunit.c (process_function_and_variable_attributes): Same.
18020 * collect-utils.c (collect_execute): Same.
18021 * collect2.c (maybe_run_lto_and_relink): Same.
18022 (is_lto_object_file): Same.
18023 (scan_prog_file): Same.
18024 * convert.c (convert_to_real_1): Same.
18025 * dwarf2out.c (dwarf2out_begin_prologue): Same.
18026 * except.c (verify_eh_tree): Same.
18027 * gcc.c (execute): Same.
18028 (eval_spec_function): Same.
18029 (run_attempt): Same.
18030 (driver::set_up_specs): Same.
18031 (compare_debug_auxbase_opt_spec_function): Same.
18032 * gcov-tool.c (unlink_gcda_file): Same.
18033 (do_merge): Same.
18034 (do_rewrite): Same.
18035 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
18036 * gimplify.c (gimplify_asm_expr): Same.
18037 (gimplify_adjust_omp_clauses): Same.
18038 * hsa-gen.c (gen_hsa_addr_insns): Same.
18039 (gen_hsa_insns_for_load): Same.
18040 (gen_hsa_cmp_insn_from_gimple): Same.
18041 (gen_hsa_insns_for_operation_assignment): Same.
18042 (gen_get_level): Same.
18043 (gen_hsa_alloca): Same.
18044 (omp_simple_builtin::generate): Same.
18045 (gen_hsa_atomic_for_builtin): Same.
18046 (gen_hsa_insns_for_call): Same.
18047 * input.c (dump_location_info): Same.
18048 * ipa-devirt.c (compare_virtual_tables): Same.
18049 * ira.c (ira_setup_eliminable_regset): Same.
18050 * lra-assigns.c (lra_assign): Same.
18051 * lra-constraints.c (lra_constraints): Same.
18052 * lto-streamer-in.c (lto_input_mode_table): Same.
18053 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
18054 (merge_and_complain): Same.
18055 (compile_offload_image): Same.
18056 (compile_images_for_offload_targets): Same.
18057 (debug_objcopy): Same.
18058 (run_gcc): Same.
18059 (main): Same.
18060 * opts.c (print_specific_help): Same.
18061 (parse_no_sanitize_attribute): Same.
18062 (print_help): Same.
18063 (handle_param): Same.
18064 * plugin.c (add_new_plugin): Same.
18065 (parse_plugin_arg_opt): Same.
18066 (try_init_one_plugin): Same.
18067 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
18068 operators, and types in diagnostics. Correct quoting and spelling
18069 issues.
18070 * read-rtl-function.c (parse_edge_flag_token): Same.
18071 (function_reader::parse_enum_value): Same.
18072 * reg-stack.c (check_asm_stack_operands): Same.
18073 * regcprop.c (validate_value_data): Same.
18074 * sched-rgn.c (make_pass_sched_fusion): Same.
18075 * stmt.c (check_unique_operand_names): Same.
18076 * targhooks.c (default_target_option_pragma_parse): Same.
18077 * tlink.c (recompile_files): Same.
18078 * toplev.c (process_options): Same.
18079 (do_compile): Same.
18080 * trans-mem.c (diagnose_tm_1): Same.
18081 (ipa_tm_scan_irr_block): Same.
18082 (ipa_tm_diagnose_transaction): Same.
18083 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
18084 format a tree code name in a diagnostic.
18085 (verify_types_in_gimple_min_lval): Same.
18086 (verify_types_in_gimple_reference): Same.
18087 (verify_gimple_call): Same.
18088 (verify_gimple_assign_unary): Same.
18089 (verify_gimple_assign_binary): Same.
18090 (verify_gimple_assign_ternary): Same.
18091 (verify_gimple_assign_single): Same.
18092 (verify_gimple_switch): Same.
18093 (verify_gimple_label): Same.
18094 (verify_gimple_phi): Same.
18095 (verify_gimple_in_seq): Same.
18096 (verify_eh_throw_stmt_node): Same.
18097 (collect_subblocks): Same.
18098 (gimple_verify_flow_info): Same.
18099 (do_warn_unused_result): Same.
18100 * tree-inline.c (expand_call_inline): Same.
18101 * tree-into-ssa.c (update_ssa): Same.
18102 * tree.c (tree_int_cst_elt_check_failed): Same.
18103 (tree_vec_elt_check_failed): Same.
18104 (omp_clause_operand_check_failed): Same.
18105 (verify_type_variant): Same.
18106 (verify_type): Same.
18107 * value-prof.c (verify_histograms): Same.
18108 * varasm.c (assemble_start_function): Same.
18109
18110 2019-05-16 Martin Sebor <msebor@redhat.com>
18111
18112 * config/i386/i386-expand.c (get_element_number): Quote keywords
18113 and other internal names in diagnostics. Adjust other diagnostic
18114 formatting issues noted by -Wformat-diag.
18115 * config/i386/i386-features.c
18116 (ix86_mangle_function_version_assembler_name): Same.
18117 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
18118 * config/i386/i386.c (ix86_function_type_abi): Same.
18119 (ix86_function_ms_hook_prologue): Same.
18120 (classify_argument): Same.
18121 (ix86_expand_prologue): Same.
18122 (ix86_md_asm_adjust): Same.
18123 (ix86_memmodel_check): Same.
18124
18125 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18126
18127 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
18128 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
18129 and fpxx modes.
18130
18131 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
18132
18133 PR target/90497
18134 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
18135 intrinsics without SSE/SSE2/SSSE3.
18136 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
18137 check.
18138 (*mmx_uavgv8qi3): Likewise.
18139
18140 2019-05-17 Richard Biener <rguenther@suse.de>
18141
18142 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
18143 VEC_PERM_EXPR as __VEC_PERM with -gimple.
18144
18145 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
18146
18147 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
18148 vec_sldw insn pattern.
18149
18150 2019-05-17 Richard Biener <rguenther@suse.de>
18151
18152 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
18153
18154 2019-05-17 Martin Liska <mliska@suse.cz>
18155
18156 PR driver/90496
18157 * toplev.c (output_stack_usage): With LTO and sanitizer it
18158 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
18159 has no file location.
18160
18161 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18162
18163 PR c++/90484
18164 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
18165 sz0 is equal to sz1, instead return false in that case.
18166
18167 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
18168 has non-constant expression, force sctx.lane and use two
18169 argument IFN_GOMP_SIMD_LANE instead of single argument.
18170 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
18171 two argument IFN_GOMP_SIMD_LANE without lhs.
18172 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18173 member.
18174 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18175 Define.
18176 (LOOP_REQUIRES_VERSIONING): Or in
18177 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18178 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18179 simd_if_cond.
18180 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18181 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18182 from simd if clause if needed.
18183
18184 2019-05-16 Richard Biener <rguenther@suse.de>
18185
18186 * tree-affine.c (expr_to_aff_combination): New function split
18187 out from...
18188 (tree_to_aff_combination): ... here.
18189 (aff_combination_expand): Avoid building a GENERIC tree.
18190
18191 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
18192
18193 * cgraphunit.c (cgraph_node::expand_thunk): Remove
18194 assemble_start_function and assemble_end_function calls.
18195 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18196 assemble_start_function and assemble_end_function.
18197 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18198 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18199 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18200 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18201 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18202 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18203 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18204 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18205 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18206 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18207 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18208 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18209 Likewise.
18210 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18211 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18212 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18213 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18214 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18215 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18216 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18217 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18218 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18219 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18220 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18221 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18222 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18223 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18224 Likewise.
18225 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18226 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18227 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18228
18229 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
18230
18231 * tree-ssa-alias.c (alias_stats): Add
18232 aliasing_component_refs_p_may_alias and
18233 aliasing_component_refs_p_no_alias.
18234 (dump_alias_stats): Print aliasing_component_refs_p stats.
18235 (aliasing_component_refs_p): Update stats.
18236
18237 2019-05-16 Martin Liska <mliska@suse.cz>
18238
18239 PR lto/90500
18240 * multiple_target.c (expand_target_clones): Do not allow
18241 target_clones being used with a symbol that is an alias.
18242
18243 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
18244
18245 PR tree-optimization/90394
18246 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18247 positives rather than ICE for cases where (code2 == NE_EXPR
18248 && code1 == BIT_AND_EXPR).
18249
18250 2019-05-16 Jakub Jelinek <jakub@redhat.com>
18251
18252 PR fortran/90329
18253 * tree-core.h (struct tree_decl_common): Document
18254 decl_nonshareable_flag for PARM_DECLs.
18255 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18256 * calls.c (expand_call): Don't try tail call if caller
18257 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18258 passed on the stack and callee needs to pass any arguments on the
18259 stack.
18260 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18261 else if instead of series of mutually exclusive ifs. Handle
18262 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18263 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18264
18265 * lto-streamer.h (LTO_major_version): Bump to 9.
18266
18267 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
18268
18269 PR tree-optimization/90106
18270 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18271 new parameter as new internal function call, also move it to new
18272 basic block.
18273 (use_internal_fn): Pass internal function call to
18274 shrink_wrap_one_built_in_call_with_conds.
18275
18276 2019-05-15 Jakub Jelinek <jakub@redhat.com>
18277
18278 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18279 max_vf to 1.
18280 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18281 safelen_int and set loop->dont_vectorize.
18282
18283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18284
18285 PR target/89021
18286 * config/i386/i386-builtin.def: Enable MMX intrinsics with
18287 SSE/SSE2/SSSE3.
18288 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18289 Likewise.
18290 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18291 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18292 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18293 is defined.
18294
18295 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18296
18297 PR target/89021
18298 * config/i386/mmx.md (*vec_dupv2sf): Changed to
18299 define_insn_and_split to support SSE emulation.
18300 (*vec_extractv2sf_0): Likewise.
18301 (*vec_extractv2sf_1): Likewise.
18302 (*vec_extractv2si_0): Likewise.
18303 (*vec_extractv2si_1): Likewise.
18304 (*vec_extractv2si_zext_mem): Likewise.
18305 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18306 (vec_extractv2sf_1 splitter): Likewise.
18307 (vec_extractv2sfsf): Likewise.
18308 (vec_setv2si): Likewise.
18309 (vec_extractv2si_1 splitter): Likewise.
18310 (vec_extractv2sisi): Likewise.
18311 (vec_setv4hi): Likewise.
18312 (vec_extractv4hihi): Likewise.
18313 (vec_setv8qi): Likewise.
18314 (vec_extractv8qiqi): Likewise.
18315 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18316 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18317 (vec_extractv2sisi): Likewise.
18318 (vec_extractv4hihi): Likewise.
18319 (vec_extractv8qiqi): Likewise.
18320 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
18321 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18322 (vec_initv2sisi): Likewise.
18323 (vec_initv4hihi): Likewise.
18324 (vec_initv8qiqi): Likewise.
18325 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
18326 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18327 (vec_setv4hi): Likewise.
18328 (vec_setv8qi): Likewise.
18329
18330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18331
18332 PR target/89021
18333 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18334 TARGET_MMX_WITH_SSE.
18335 (MMXMODE:*mov<mode>_internal): Likewise.
18336 (MMXMODE:movmisalign<mode>): Likewise.
18337
18338 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
18339
18340 PR target/89021
18341 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18342 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18343 (sse2_cvtpd2pi): Ditto.
18344 (sse2_cvttpd2pi): Ditto.
18345 (*vec_concatv2sf_sse4_1): Ditto.
18346 (*vec_concatv2sf_sse): Ditto.
18347 (*vec_concatv2si_sse4_1): Ditto.
18348 (*vec_concatv2si): Ditto.
18349 (*vec_concatv4si_0): Ditto.
18350 (*vec_concatv2di_0): Ditto.
18351
18352 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18353
18354 PR target/89021
18355 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18356
18357 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18358
18359 PR target/89021
18360 * config/i386/sse.md (ssse3_palignrdi): Changed to
18361 define_insn_and_split to support SSE emulation.
18362
18363 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18364
18365 PR target/89021
18366 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18367
18368 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18369
18370 PR target/89021
18371 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18372 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18373 SSE emulation.
18374
18375 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18376
18377 PR target/89021
18378 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18379 or TARGET_MMX_WITH_SSE.
18380 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18381
18382 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18383
18384 PR target/89021
18385 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18386
18387 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18388
18389 PR target/89021
18390 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18391 Changed to define_insn_and_split to support SSE emulation.
18392
18393 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18394
18395 PR target/89021
18396 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18397 Changed to define_insn_and_split to support SSE emulation.
18398
18399 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18400
18401 PR target/89021
18402 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18403 (*mmx_<emms>): This.
18404 (mmx_<emms>): New expander.
18405
18406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18407
18408 PR target/89021
18409 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18410 support.
18411 (*sse2_umulv1siv1di3): Add SSE2 emulation.
18412
18413 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18414
18415 PR target/89021
18416 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18417
18418 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18419
18420 PR target/89021
18421 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18422
18423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18424
18425 PR target/89021
18426 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18427 TARGET_MMX_WITH_SSE.
18428 (*mmx_uavgv4hi3): Add SSE emulation.
18429
18430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18431
18432 PR target/89021
18433 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18434 and TARGET_MMX_WITH_SSE.
18435 (*mmx_uavgv8qi3): Add SSE emulation.
18436
18437 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18438
18439 PR target/89021
18440 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18441 maskmovdqu for __MMX_WITH_SSE__.
18442
18443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18444
18445 PR target/89021
18446 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18447 TARGET_MMX and TARGET_MMX_WITH_SSE.
18448 (*mmx_umulv4hi3_highpart): Add SSE emulation.
18449
18450 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18451
18452 PR target/89021
18453 * config/i386/mmx.md (mmx_pmovmskb): Changed to
18454 define_insn_and_split to support SSE emulation.
18455
18456 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18457
18458 PR target/89021
18459 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18460 and TARGET_MMX_WITH_SSE.
18461 (mmx_<code>v8qi3): Likewise.
18462 (smaxmin:<code>v4hi3): New.
18463 (umaxmin:<code>v8qi3): Likewise.
18464 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18465 (umaxmin:*mmx_<code>v8qi3): Likewise.
18466
18467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18468
18469 PR target/89021
18470 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18471 TARGET_MMX_WITH_SSE.
18472 (*mmx_pinsrw): Add SSE emulation.
18473
18474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18475
18476 PR target/89021
18477 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18478
18479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18480
18481 PR target/89021
18482 * config/i386/sse.md (sse_cvtpi2ps): Changed to
18483 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
18484 SSE emulation.
18485
18486 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18487
18488 PR target/89021
18489 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18490 (sse_cvttps2pi): Likewise.
18491
18492 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18493
18494 PR target/89021
18495 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18496 TARGET_MMX_WITH_SSE.
18497 (mmx_pshufw_1): Add SSE emulation.
18498 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18499 TARGET_MMX_WITH_SSE to support SSE emulation.
18500
18501 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18502
18503 PR target/89021
18504 * config/i386/constraints.md (Yw): New constraint.
18505 * config/i386/mmx.md (*vec_dupv2si): Changed to
18506 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18507 support SSE emulation.
18508
18509 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18510
18511 PR target/89021
18512 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18513 TARGET_MMX_WITH_SSE.
18514 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18515 support.
18516 (mmx_gt<mode>3): Likewise.
18517
18518 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18519
18520 PR target/89021
18521 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18522 TARGET_MMX_WITH_SSE. Add SSE support.
18523
18524 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18525
18526 PR target/89021
18527 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18528 TARGET_MMX_WITH_SSE.
18529 (any_logic:<code><mode>3): New.
18530 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18531 Add SSE support.
18532
18533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18534
18535 PR target/89021
18536 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18537 TARGET_MMX_WITH_SSE. Add SSE emulation.
18538 (mmx_<shift_insn><mode>3): Likewise.
18539 (ashr<mode>3): New.
18540 (<shift_insn><mode>3): Likewise.
18541
18542 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18543
18544 PR target/89021
18545 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18546 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
18547
18548 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18549
18550 PR target/89021
18551 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18552 TARGET_MMX_WITH_SSE.
18553 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18554 SSE support.
18555
18556 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18557
18558 PR target/89021
18559 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18560 TARGET_MMX_WITH_SSE.
18561 (mulv4hi3): New.
18562 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
18563 support.
18564
18565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18566
18567 PR target/89021
18568 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18569 (plusminus:mmx_<plusminus_insn><mode>3): Check
18570 TARGET_MMX_WITH_SSE.
18571 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18572 (<plusminus_insn><mode>3): New.
18573 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18574 (*mmx_<plusminus_insn><mode>3): Likewise.
18575
18576 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18577
18578 PR target/89021
18579 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18580 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18581 prototype.
18582 * config/i386/mmx.m (mmx_punpckhbw): Changed to
18583 define_insn_and_split to support SSE emulation.
18584 (mmx_punpcklbw): Likewise.
18585 (mmx_punpckhwd): Likewise.
18586 (mmx_punpcklwd): Likewise.
18587 (mmx_punpckhdq): Likewise.
18588 (mmx_punpckldq): Likewise.
18589
18590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18591 Uros Bizjak <ubizjak@gmail.com>
18592
18593 PR target/89021
18594 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18595 New function.
18596 (ix86_split_mmx_pack): Likewise.
18597 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18598 New prototype.
18599 (ix86_split_mmx_pack): Likewise.
18600 * config/i386/i386.md (mmx_isa): New.
18601 (enabled): Also check mmx_isa.
18602 * config/i386/mmx.md (any_s_truncate): New code iterator.
18603 (s_trunsuffix): New code attr.
18604 (mmx_packsswb): Removed.
18605 (mmx_packssdw): Likewise.
18606 (mmx_packuswb): Likewise.
18607 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18608 MMX packsswb/packuswb with SSE2.
18609 (mmx_packssdw): Likewise.
18610 * config/i386/predicates.md (register_mmxmem_operand): New.
18611
18612 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
18613
18614 PR target/89021
18615 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18616 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18617 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18618 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18619 (ix86_vector_mode_supported_p): Likewise.
18620 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18621
18622 2019-05-15 Martin Liska <mliska@suse.cz>
18623
18624 PR middle-end/90478
18625 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18626 Check for overflow.
18627
18628 2019-05-15 Richard Biener <rguenther@suse.de>
18629
18630 * tree-into-ssa.c (pass_build_ssa::execute): Run
18631 update_address_taken before going into SSA.
18632
18633 2019-05-15 Richard Biener <rguenther@suse.de>
18634
18635 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18636 as __BIT_FIELD_REF with type with -gimple.
18637
18638 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
18639
18640 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18641 semantically equivalent branches (left over after prior refactorings).
18642
18643 2019-05-15 Richard Biener <rguenther@suse.de>
18644
18645 PR tree-optimization/88828
18646 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18647 bogus check.
18648
18649 2019-05-14 Richard Biener <rguenther@suse.de>
18650
18651 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18652 as __VIEW_CONVERT with -gimple.
18653
18654 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18655
18656 PR target/82920
18657 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18658 Darwin.
18659
18660 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18661
18662 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18663 define_split to become a define_insn_and_split.
18664
18665 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
18666
18667 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18668 arguments.
18669 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18670 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18671 (sibcall_epilogue): Adjust.
18672 (epilogue): Adjust.
18673
18674 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18675
18676 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18677 to unsupported ones.
18678 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18679 * config.host: Likewise.
18680 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18681 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18682 __svr4__]: Remove "brand" fallback.
18683 [!KSTAT_DATA_STRING]: Remove.
18684 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18685 to *-*-solaris2*.
18686 (comdat_group): Likewise.
18687 (set_have_as_tls): Likewise.
18688 (gcc_cv_target_dl_iterate_phdr): Likewise.
18689 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18690 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18691 * configure: Regenerate.
18692 * doc/install.texi: Simplify Solaris target triplets.
18693 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18694 (Specific, *-*-solaris2*): Document Solaris 10 removal.
18695 Remove Solaris 10 references.
18696 Remove obsolete Solaris bug reference.
18697 (Specific, sparc-sun-solaris2.10): Remove.
18698
18699 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
18700
18701 * config/i386/i386.md (any_div): New code iterator.
18702 (paired_mod): New code attribute.
18703 (sgnprefix): Handle DIV and UDIV RTXes.
18704 (u): Ditto.
18705 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18706 and udivmod<mode>4 patterns using any_div code iterator.
18707 (divmod splitters): Macroize splitters using any_div code iterator.
18708 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18709 (*udivmodsi4_pow2_zext_2): Ditto.
18710 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18711 and *udivmod<mode>4_noext patterns using any_div code iterator.
18712 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18713 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18714 patterns using any_div code iterator.
18715 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18716 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18717 patterns using any_div code iterator.
18718 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18719 udivmodhiqi3 patterns using any_extend code iterator.
18720
18721 2019-05-14 Richard Biener <rguenther@suse.de>
18722 H.J. Lu <hongjiu.lu@intel.com>
18723
18724 PR tree-optimization/88828
18725 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18726 permuting in a single non-constant element not extracted
18727 from a vector.
18728
18729 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
18730
18731 * internal-fn.def (SIGNBIT): New.
18732 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18733 defined.
18734 (signbitv4sf2): Likewise.
18735
18736 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
18737
18738 PR target/90357
18739 * config/mips/mips.c (mips_split_move): Skip forward SRC into
18740 next insn when the SRC reg is dead.
18741
18742 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
18743
18744 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18745 (alloc_cand_and_find_basis): Ditto.
18746 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18747 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18748 (create_add_imm_cand, slsr_process_cast): Ditto.
18749 (slsr_process_copy, replace_mult_candidate): Ditto.
18750 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18751 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18752 (pass_strength_reduction::execute): Init the first NULL element.
18753
18754 2019-05-13 Nathan Sidwell <nathan@acm.org>
18755
18756 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
18757 (run_attempt): Reformat line break.
18758
18759 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
18760
18761 PR target/90418
18762 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18763 data registers in sibcall epilogues.
18764 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18765
18766 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
18767
18768 PR target/89221
18769 * configure.ac (--enable-frame-pointer):
18770 Disable by default for cygwin and mingw.
18771 * configure: Regenerate.
18772
18773 2019-05-13 Nathan Sidwell <nathan@acm.org>
18774
18775 * dwarf2out.c (breakout_comdat_types): Move comment to correct
18776 piece of code.
18777 (const_ok_for_output_1): Balance parens around #if/#else/#endif
18778 (gen_member_die): Move abstract origin check earlier. Only VARs
18779 can be static_inline_p. Simplify splicing control flow.
18780
18781 2019-05-13 Richard Biener <rguenther@suse.de>
18782
18783 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18784 VIEW_CONVERT_EXPR.
18785 (vect_build_slp_tree_1): Likewise.
18786
18787 2019-05-13 Richard Biener <rguenther@suse.de>
18788
18789 PR tree-optimization/90402
18790 * tree-if-conv.c (tree_if_conversion): Value number only
18791 the loop body by making the latch an exit of the region
18792 as well.
18793 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18794 processing PHIs.
18795 (do_rpo_vn): Deal with multiple edges into the entry block
18796 that are not backedges inside the region by skipping PHIs
18797 of the entry block.
18798
18799 2019-05-13 Richard Biener <rguenther@suse.de>
18800
18801 PR tree-optimization/90316
18802 * tree-ssa-pre.c (insert_aux): Fold into ...
18803 (insert): ... this function. Use a RPO walk to reduce the
18804 number of required iterations.
18805
18806 2019-05-13 Martin Liska <mliska@suse.cz>
18807
18808 PR tree-optimization/90416
18809 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18810 string instead of passing the second part as va_arg argument.
18811
18812 2019-05-13 Martin Liska <mliska@suse.cz>
18813
18814 PR gcov-profile/90380
18815 * gcov.c (handle_cycle): Do not support zero cycle count,
18816 it should not be possible.
18817 (path_contains_zero_cycle_arc): New function.
18818 (circuit): Ignore zero cycle arc counts.
18819
18820 2019-05-13 Martin Liska <mliska@suse.cz>
18821
18822 PR gcov-profile/90380
18823 * gcov.c (enum loop_type): Remove the enum and
18824 the operator.
18825 (handle_cycle): Assert that we should not reach
18826 a negative count.
18827 (circuit): Use loop_found instead of a tri-state loop_type.
18828 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18829 happen.
18830
18831 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18832
18833 PR target/82920
18834 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18835 (ix86_output_indirect_branch_via_reg): Use output mechanism
18836 accounting for __USER_LABEL_PREFIX__.
18837 (ix86_output_indirect_branch_via_push): Likewise.
18838 (ix86_output_function_return): Likewise.
18839 (ix86_output_indirect_function_return): Likewise.
18840
18841 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
18842
18843 * doc/md.texi: Document use of code attributes in rtx patterns.
18844 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18845 * read-rtl.c (find_code): Split out search loops into...
18846 (maybe_find_code): ...this new function.
18847 (check_code_iterator): Make the error message more informative.
18848 (check_code_attribute): New function.
18849 (rtx_reader::rtx_alloc_for_name): Likewise.
18850 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18851 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18852 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18853 <max_opp> directly as an rtx code instead of via a match_operator.
18854 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18855 (<su>abd<mode>_3): Update accordingly.
18856
18857 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
18858
18859 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18860 is given, print the state of the EH "save world" computation for
18861 Darwin.
18862
18863 2019-05-11 Jakub Jelinek <jakub@redhat.com>
18864
18865 PR c++/59813
18866 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18867 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18868
18869 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
18870
18871 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18872 Use pinsrd for TARGET_SSE4_1.
18873 * config/i386/sse.md (movdi_to_sse): Ditto.
18874
18875 2019-05-10 Richard Biener <rguenther@suse.de>
18876
18877 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18878 (do_rpo_vn): Initialize next_value_id.
18879
18880 2019-05-10 Martin Liska <mliska@suse.cz>
18881
18882 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18883 Fix plural form.
18884
18885 2019-05-10 Jakub Jelinek <jakub@redhat.com>
18886
18887 PR tree-optimization/90385
18888 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18889 arguments of the exit phis.
18890
18891 PR c++/90383
18892 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18893 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18894 id->do_not_fold.
18895 (copy_tree_body_r): Likewise.
18896 (copy_fn): Set id.do_not_fold to true.
18897
18898 2019-05-10 Martin Liska <mliska@suse.cz>
18899
18900 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18901 Reapply changes from r269790.
18902
18903 2019-05-10 Martin Liska <mliska@suse.cz>
18904
18905 PR middle-end/90340
18906 * doc/invoke.texi: New params.
18907 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18908 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18909 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18910 Use it.
18911 * tree-switch-conversion.h (struct jump_table_cluster):
18912 Likewise.
18913
18914 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
18915
18916 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18917
18918 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
18919
18920 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18921
18922 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
18923
18924 PR rtl-optimization/88879
18925 * sel-sched.c (sel_target_adjust_priority): Remove assert.
18926
18927 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
18928
18929 PR target/90405
18930 * config/arm/arm.c (callee_saved_reg_p): Move before
18931 thumb_find_work_register.
18932 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18933 thumb_find_work_register. Only call df_get_live_out once.
18934 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18935 (thumb_find_work_register): Use
18936 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18937 algorithms to locate a spare call clobbered reg.
18938
18939 2019-05-09 Martin Liska <mliska@suse.cz>
18940
18941 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18942 and MAX_EXPR in GIMPLE FE format.
18943
18944 2019-05-09 Martin Liska <mliska@suse.cz>
18945
18946 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18947 * gimple-pretty-print.c (dump_gimple_bb_header):
18948 Dump BB count.
18949 (pp_cfg_jump): Dump edge probability.
18950 * profile-count.c (profile_quality_as_string): Simplify
18951 with a static array.
18952 (parse_profile_quality): New function.
18953 (profile_count::dump): Simplify with a static array.
18954 (profile_count::from_gcov_type): Add new argument.
18955 * profile-count.h (parse_profile_quality): Likewise.
18956 * predict.h (set_hot_bb_threshold): New.
18957 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18958 New param.
18959 * predict.c (get_hot_bb_threshold): Set from the new param.
18960 (set_hot_bb_threshold): New.
18961
18962 2019-05-09 Richard Biener <rguenther@suse.de>
18963
18964 PR tree-optimization/90395
18965 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18966 rewrite vector stores that throw internally.
18967
18968 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
18969
18970 * cif-code.def (CHKP): Remove.
18971
18972 PR target/89221
18973 * configure.ac (--enable-frame-pointer): Disable by default for
18974 GNU systems.
18975 * configure: Regenerate.
18976
18977 2019-05-09 Alan Modra <amodra@gmail.com>
18978
18979 PR target/89271
18980 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18981 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18982 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18983 cost for general <-> vsx when direct moves are available.
18984 Cost union classes at minimal cost for any reg in the class.
18985 Correct calculation for moves between vsx, float, and altivec.
18986 Don't return a low cost for moves between special regs. Don't
18987 use hard coded register numbers.
18988 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18989 (rs6000_ira_change_pseudo_allocno_class): New function.
18990 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18991 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18992 alternatives.
18993 (movsi_internal1): Don't disparage vector alternatives.
18994 (mov<mode>_internal): Likewise, excepting alternative that
18995 will be split.
18996 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18997 we <- b alternative.
18998
18999 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19000
19001 PR c++/59813
19002 PR tree-optimization/89060
19003 * tree-ssa-live.h (live_vars_map): New typedef.
19004 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
19005 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
19006 (struct compute_live_vars_data): New type.
19007 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
19008 live_vars_at_stmt, destroy_live_vars): New functions.
19009 * tree-tailcall.c: Include tree-ssa-live.h.
19010 (live_vars, live_vars_vec): New global variables.
19011 (find_tail_calls): Perform variable life analysis before punting.
19012 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
19013 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
19014 member.
19015 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
19016 Perform variable life analysis to select variables that really need
19017 clobbers added.
19018 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
19019 instead set id->eh_landing_pad_dest and assert it is the same.
19020 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
19021
19022 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
19023 Richard Earnshaw <rearnsha@arm.com>
19024
19025 PR target/88167
19026 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
19027 function.
19028 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
19029 (thumb1_compute_save_core_reg_mask): Don't force a spare work
19030 register if both the epilogue and prologue can use call-clobbered
19031 regs.
19032 (thumb1_unexpanded_epilogue): Use
19033 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
19034 picking temporaries for restoring high regs to match that of the
19035 prologue where possible.
19036 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
19037 the list of work registers. Detect if the return address is still live
19038 at the end of the prologue and avoid using it for a work register if so.
19039 If the return address is not live, add LR to the list of pushable regs
19040 after the first pass.
19041
19042 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19043
19044 PR tree-optimization/90078
19045 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
19046 (INFTY): Increase the value for infinite cost.
19047 (struct comp_cost): Promote type of members to int64_t.
19048 (infinite_cost): Don't set complexity in initialization.
19049 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
19050 overflows to infinite_cost.
19051 (adjust_setup_cost): Promote type of parameter and cost computation
19052 to int64_t.
19053 (struct ainc_cost_data, struct iv_ca): Promote type of member to
19054 int64_t.
19055 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
19056 cost computation to int64_t.
19057 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
19058 int64_t's format specifier in dump.
19059
19060 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
19061
19062 PR tree-optimization/90240
19063 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
19064 with respect to scaling factor pre-computed for each basic block.
19065 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
19066 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
19067 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
19068 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
19069 live range for array of loop's basic blocks. Cleanup aux field of
19070 loop's basic blocks.
19071
19072 2019-05-08 Jakub Jelinek <jakub@redhat.com>
19073
19074 PR tree-optimization/90356
19075 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
19076
19077 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
19078
19079 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
19080 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
19081 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
19082 (ix86_handle_option): Handle -mavx512bf16.
19083 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
19084 to extra_headers.
19085 * config/i386/avx512bf16vlintrin.h: New.
19086 * config/i386/avx512bf16intrin.h: New.
19087 * config/i386/cpuid.h (bit_AVX512BF16): New.
19088 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
19089 * config/i386/i386-builtin-types.def: Add new types.
19090 * config/i386/i386-builtin.def: Add new builtins.
19091 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19092 __AVX512BF16__.
19093 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
19094 (ix86_option_override_internal): Handle BF16.
19095 (ix86_valid_target_attribute_inner_p): Ditto.
19096 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
19097 * config/i386/i386-builtin.c (enum processor_features): Add
19098 F_AVX512BF16.
19099 (static const _isa_names_table isa_names_table): Ditto.
19100 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
19101 (PTA_AVX512BF16): Ditto.
19102 * config/i386/i386.opt: Add -mavx512bf16.
19103 * config/i386/immintrin.h: Include avx512bf16intrin.h
19104 and avx512bf16vlintrin.h.
19105 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
19106 avx512f_cvtneps2bf16_<mode><mask_name>,
19107 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
19108 * config/i386/subst.md (mask_half): Add new subst.
19109 * doc/invoke.texi: Document -mavx512bf16.
19110
19111 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
19112
19113 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
19114 Delete declaration.
19115 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
19116 (rs6000_debug_legitimize_reload_address): Delete.
19117 (rs6000_legitimize_reload_address_ptr): Delete.
19118 (rs6000_option_override_internal): Adjust.
19119 (mem_operand_gpr): Adjust comment.
19120 (legitimate_lo_sum_address_p): Ditto.
19121 (rs6000_legitimize_reload_address): Delete.
19122 (rs6000_debug_legitimize_reload_address): Delete.
19123 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
19124
19125 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
19126
19127 PR target/89765
19128 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19129 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
19130 to compute vector element selector for both constant and variable
19131 operands.
19132
19133 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19134
19135 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
19136 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
19137 ashrdi3_cvt using SWI48 mode iterator.
19138
19139 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19140
19141 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
19142 (aarch64_<su>abd<mode>_3): Likewise.
19143 (*aarch64_<su>abd<mode>_3): New define_insn.
19144 (<sur>sad<vsi2qi>): New define_expand.
19145 * config/aarch64/iterators.md: Added MAX_OPP attribute.
19146 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
19147 (build_vect_cond_expr): Likewise.
19148
19149 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
19150
19151 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
19152 clobbers outside of accessible_reg_set.
19153 * config/i386/i386.c (ix86_conditional_register_usage):
19154 Disable register sets by clearing corresponding bits in
19155 accessible_reg_set. Do not set corresponding bits in fixed_regs,
19156 call_used_regs and don't clear corresponding reg_names array members.
19157
19158 2019-05-07 Richard Biener <rguenther@suse.de>
19159
19160 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
19161 not specified still compute a comp_vectype for invariant
19162 compares.
19163
19164 2019-05-07 Richard Biener <rguenther@suse.de>
19165
19166 PR tree-optimization/90316
19167 * tree-ssa-pre.c (translate_vuse_through_block): When
19168 same_valid is NULL do not bother to search for a virtual
19169 PHI continuation.
19170 (phi_translate_1): When operands changed we cannot keep
19171 the same value-number so do not bother to ask whether
19172 that's possible from translate_vuse_through_block.
19173
19174 2019-05-07 Martin Liska <mliska@suse.cz>
19175
19176 * bitmap.c (bitmap_register): Come up with
19177 alloc_descriptor_max_uid and assign it for
19178 a new bitmap.
19179 (register_overhead): Use get_descriptor as
19180 a descriptor.
19181 (release_overhead): New.
19182 (bitmap_elem_to_freelist): Call it.
19183 (bitmap_elt_clear_from): Likewise.
19184 (bitmap_obstack_free): Likewise.
19185 (bitmap_move): Sensitively release memory.
19186 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19187 (bitmap_initialize): Initialize alloc_descriptor to zero.
19188 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19189
19190 2019-05-07 Richard Biener <rguenther@suse.de>
19191
19192 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19193 we build a SLP node. Remove max_size and limiting.
19194 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19195
19196 2019-05-07 Richard Biener <rguenther@suse.de>
19197
19198 PR tree-optimization/90316
19199 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19200 limit by reference.
19201 (walk_non_aliased_vuses): Take walking limit argument.
19202 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19203 walking if it is reached instead of just counting.
19204 (get_continuation_for_phi): Likewise.
19205 (walk_non_aliased_vuses): Likewise, instead of leaving counter
19206 limiting to the callback.
19207 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19208 (vn_reference_lookup_3): Likewise.
19209 (vn_reference_lookup_pieces): Likewise.
19210 (vn_reference_lookup): Likewise.
19211 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19212 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19213 (avail_exprs_stack::lookup_avail_expr): Likewise.
19214
19215 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
19216
19217 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19218 for comparaible types in the second direction even if first one
19219 hits incomparable type.
19220
19221 2019-05-07 Richard Biener <rguenther@suse.de>
19222
19223 PR lto/90369
19224 * lto-wrapper.c (debug_objcopy): Use the original filename
19225 including archive offset for the filename used for -save-temps.
19226
19227 2019-05-07 Li Jia He <helijia@linux.ibm.com>
19228
19229 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19230 detection.
19231
19232 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
19233 Hongtao Liu <hongtao.liu@intel.com>
19234
19235 PR target/89750
19236 PR target/86444
19237 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19238 Modified, original implementation isn't correct.
19239
19240 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19241
19242 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19243 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19244 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19245 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19246 (FRAME_POINTER_REGNUM): Change numbering.
19247 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19248 (alt_reg_names): Adjust.
19249 (rs6000_conditional_register_usage): Don't mark hard register 64 as
19250 fixed.
19251 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19252 (DWARF_FRAME_REGISTERS): Delete.
19253 (DWARF2_FRAME_REG_OUT): Fix whitespace.
19254 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19255 Adjust.
19256 (REG_ALLOC_ORDER): Adjust.
19257 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19258 (REG_CLASS_CONTENTS): Adjust.
19259 (RETURN_ADDR_RTX): Change comment.
19260 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19261 instead of 67.
19262 (REGISTER_NAMES): Adjust.
19263 (ADDITIONAL_REGISTER_NAMES): Adjust.
19264 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19265
19266 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19267
19268 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19269 Delete.
19270 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19271 (DWARF_FRAME_REGISTERS): Adjust.
19272 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19273 Adjust.
19274 (REG_ALLOC_ORDER): Adjust.
19275 (enum reg_class): Delete SPR_REGS.
19276 (REG_CLASS_NAMES): Delete SPR_REGS.
19277 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
19278 (REGISTER_NAMES): Adjust.
19279 (ADDITIONAL_REGISTER_NAMES): Adjust.
19280 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19281 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19282 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19283 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19284 (htm_spr_regno): Delete.
19285 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19286 argument.
19287 (rs6000_dbx_register_number): Adjust.
19288
19289 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19290
19291 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19292
19293 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
19294
19295 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19296 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19297
19298 2019-05-06 Jakub Jelinek <jakub@redhat.com>
19299
19300 PR tree-optimization/88709
19301 PR tree-optimization/90271
19302 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19303 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19304 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
19305 variable.
19306 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19307 of the store merging group is larger than
19308 PARAM_STORE_MERGING_MAX_SIZE parameter.
19309 (split_group): Add bzero_first argument. If set, always emit first
19310 the first store which must be = {} of the whole area and then for the
19311 rest of the stores consider all zero bytes as paddings.
19312 (imm_store_chain_info::output_merged_store): Check if first store
19313 is = {} of the whole area and if yes, determine which setting of
19314 bzero_first for split_group gives smaller number of stores. Adjust
19315 split_group callers.
19316 (lhs_valid_for_store_merging_p): Allow decls.
19317 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19318 no elts.
19319 (pass_store_merging::process_store): Likewise.
19320
19321 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
19322
19323 PR target/89424
19324 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19325 handling of V1TImode.
19326
19327 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
19328
19329 PR target/89221
19330 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19331 and enable_frame_pointer ...
19332 * configure.ac: ... here. Update help strings for
19333 --enable-frame-pointer.
19334 * configure: Regenerate.
19335 * config/i386/i386-options.c (ix86_option_override_internal): Remove
19336 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19337 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19338 (USE_X86_64_FRAME_POINTER): Ditto.
19339
19340 2019-05-06 Martin Liska <mliska@suse.cz>
19341
19342 * config.gcc: Append to target_gtfiles and fix indentation.
19343
19344 2019-05-06 Richard Biener <rguenther@suse.de>
19345
19346 PR tree-optimization/90358
19347 * tree-vect-stmts.c (get_group_load_store_type): Properly
19348 detect unused upper half of load.
19349 (vectorizable_load): Likewise.
19350
19351 2019-05-06 Richard Biener <rguenther@suse.de>
19352
19353 PR tree-optimization/88828
19354 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19355 (simplify_vector_constructor): ...here. Handle constants in
19356 the constructor.
19357
19358 2019-05-06 Richard Biener <rguenther@suse.de>
19359
19360 PR tree-optimization/90328
19361 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19362 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19363 is valid in the loop nest before using it.
19364 (initialize_data_dependence_relation): Adjust.
19365 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19366 loop as loop-nest to dr_may_alias_p.
19367
19368 2019-05-06 Richard Biener <rguenther@suse.de>
19369
19370 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19371
19372 2019-05-06 Richard Biener <rguenther@suse.de>
19373
19374 PR tree-optimization/90316
19375 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19376 compute target on demand.
19377 (get_continuation_for_phi): Remove code walking stmts to
19378 get to a target virtual operand which could end up being
19379 quadratic.
19380
19381 2019-05-06 Martin Liska <mliska@suse.cz>
19382
19383 PR sanitizer/90312
19384 * config/i386/i386-options.c (ix86_option_override_internal): Error only
19385 when -mabi is selected to a non-default version.
19386
19387 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
19388 Martin Liska <mliska@suse.cz>
19389
19390 * Makefile.in: Add lto-dump.texi.
19391 * cgraph.h: Add new functions get_visibility_string and
19392 get_symtab_type_string.
19393 * doc/gcc.texi: Include lto-dump section.
19394 * doc/lto-dump.texi: New file.
19395 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19396 (parse_dump_option): Factor out this function.
19397 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19398 (parse_dump_option): Export the function.
19399 * symtab.c (symtab_node::get_visibility_string): New function.
19400 (symtab_node::get_symtab_type_string): Likewise.
19401
19402 2019-05-06 Martin Liska <mliska@suse.cz>
19403
19404 * config/i386/i386-builtins.c: New file.
19405 * config/i386/i386-builtins.h: New file.
19406 * config/i386/i386-expand.c: New file.
19407 * config/i386/i386-expand.h: New file.
19408 * config/i386/i386-features.c: New file.
19409 * config/i386/i386-features.h: New file.
19410 * config/i386/i386-options.c: New file.
19411 * config/i386/i386-options.h: New file.
19412 * config.gcc: Add new files into extra_objs and
19413 target_gtfiles.
19414 * config/i386/i386.c: Split content of the file
19415 into newly introduced files.
19416 * config/i386/i386.h: Declare common variables
19417 and macros.
19418 * config/i386/t-i386: Define dependencies for new files.
19419
19420 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
19421
19422 PR target/89400
19423 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19424 Restrict 'all' variant to 32-bit configurations.
19425 (unaligned_loadhiu): Likewise.
19426 (unaligned_storehi): Likewise.
19427 (unaligned_storesi): Likewise.
19428 (unaligned_loadhis): Disable when compiling for thumb1.
19429
19430 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
19431
19432 PR tree-optimization/90269
19433 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19434 Ignore clobbers.
19435
19436 2019-05-03 Martin Liska <mliska@suse.cz>
19437
19438 * hash-map.h: Add is_empty function.
19439 * hash-set.h: Likewise.
19440 * hash-table.h: Likewise.
19441 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19442 elements () == 0 (and similar usages).
19443 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19444 * gimplify.c (gimplify_bind_expr): Likewise.
19445 (gimplify_switch_expr): Likewise.
19446 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19447 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19448 * postreload-gcse.c (dump_hash_table): Likewise.
19449 (gcse_after_reload_main): Likewise.
19450 * predict.c (combine_predictions_for_bb): Likewise.
19451 * tree-parloops.c (reduction_phi): Likewise.
19452 (separate_decls_in_region): Likewise.
19453 (transform_to_exit_first_loop): Likewise.
19454 (gen_parallel_loop): Likewise.
19455 (gather_scalar_reductions): Likewise.
19456 (try_create_reduction_list): Likewise.
19457 * var-tracking.c (dump_vars): Likewise.
19458 (emit_notes_for_changes): Likewise.
19459 (vt_emit_notes): Likewise.
19460
19461 2019-05-03 Richard Biener <rguenther@suse.de>
19462
19463 PR tree-optimization/90316
19464 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19465 before running VN.
19466
19467 2019-05-03 Richard Biener <rguenther@suse.de>
19468
19469 * tree-vect-stmts.c (get_group_load_store_type): Avoid
19470 peeling for gaps by loading only lower halves of vectors
19471 if possible.
19472 (vectorizable_load): Likewise.
19473
19474 2019-05-03 Richard Biener <rguenther@suse.de>
19475
19476 PR middle-end/89518
19477 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19478
19479 2019-05-03 Richard Biener <rguenther@suse.de>
19480
19481 PR middle-end/87314
19482 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19483 Handle STRING_CST vs DECL or STRING_CST.
19484
19485 2019-05-03 Richard Biener <rguenther@suse.de>
19486
19487 PR tree-optimization/88963
19488 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19489 vector loads feeding only BIT_FIELD_REFs to component
19490 loads. Rewrite stores fed by CONSTRUCTORs to component
19491 stores.
19492
19493 2019-05-03 Jakub Jelinek <jakub@redhat.com>
19494
19495 * opts.h (finish_options): Remove lang_mask argument.
19496 (print_help, help_option_argument): Declare.
19497 * opts.c (print_help): Remove forward declaration, no longer static.
19498 (finish_options): Remove lang_mask argument, don't call print_help
19499 here.
19500 * opts-global.c (decode_options): Adjust finish_option caller, call
19501 print_help here.
19502
19503 PR tree-optimization/90303
19504 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19505 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19506
19507 2019-05-03 Richard Biener <rguenther@suse.de>
19508
19509 PR tree-optimization/89698
19510 * gimple-fold.c (canonicalize_constructor_val): Early out
19511 for constants, handle unfolded INTEGER_CSTs as they appear in
19512 C++ virtual table ctors.
19513
19514 2019-05-03 Richard Biener <rguenther@suse.de>
19515
19516 * passes.c (execute_function_todo): Remove dead code.
19517
19518 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19519
19520 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19521 the internal register number, for any "real" register.
19522
19523 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
19524
19525 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19526 correct numbers for TFHAR, TFIAR, TEXASR.
19527
19528 2019-05-02 Richard Biener <rguenther@suse.de>
19529
19530 PR tree-optimization/89653
19531 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19532 update-address-taken before the pass.
19533 * passes.def (pass_tree_loop_init): Put comment before it.
19534
19535 2019-05-02 Richard Biener <rguenther@suse.de>
19536
19537 PR tree-optimization/89509
19538 * tree-ssa-structalias.c (compute_dependence_clique): Look
19539 at the first subvar when determining whether it is restrict.
19540
19541 2019-05-02 Richard Biener <rguenther@suse.de>
19542
19543 PR tree-optimization/90273
19544 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19545 useless debug stmts.
19546
19547 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19548
19549 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19550 ACLE branch.
19551 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19552 SVE ACLE branch.
19553 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19554 VEC_COND_EXPR be inserted to emulate a conditional internal function.
19555 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19556 (vectorizable_reduction): Use the functions above to vectorize in a
19557 fully masked loop codes that don't have a conditional internal
19558 function.
19559
19560 2019-05-02 Martin Liska <mliska@suse.cz>
19561
19562 * cgraphclones.c: Call valid_attribute_p with 1 for
19563 target_clone.
19564 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19565 it's for target attribute.
19566 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19567 Add new boolean argument.
19568 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19569 Likewise.
19570 (ix86_valid_target_attribute_tree): Pass target_clone_attr
19571 to ix86_valid_target_attribute_inner_p.
19572 (ix86_valid_target_attribute_p): Pass flags argument to
19573 ix86_valid_target_attribute_inner_p.
19574 (get_builtin_code_for_version): Use 0 as it's target attribute.
19575
19576 2019-05-02 Martin Liska <mliska@suse.cz>
19577
19578 * gcc.c (process_command): Add dummy file only
19579 if n_infiles == 0.
19580 * opts-global.c (decode_options): Pass lang_mask.
19581 * opts.c (print_help): New function.
19582 (finish_options): Print --help if help_option_argument
19583 is set.
19584 (common_handle_option): Factor out content of OPT__help_
19585 into print_help.
19586 * opts.h (finish_options): Add new argument.
19587
19588 2019-05-02 Martin Liska <mliska@suse.cz>
19589
19590 PR target/88809
19591 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19592 With -minline-all-stringops use inline expansion using 4B loop.
19593 * doc/invoke.texi: Document the change of
19594 -minline-all-stringops.
19595
19596 2019-05-01 Jeff Law <law@redhat.com>
19597
19598 PR tree-optimization/88797
19599 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19600 PHI feeds a conditional on the RHS of an assignment.
19601
19602 2019-04-30 Andrew Waterman <andrew@sifive.com>
19603 Jim Wilson <jimw@sifive.com>
19604
19605 * config/riscv/constraints.md (L): New.
19606 * config/riscv/predicates.md (lui_operand): New.
19607 (sfb_alu_operand): New.
19608 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19609 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19610 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19611 * config/riscv/risc.md (type): Add sfb_alu.
19612 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
19613 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
19614 (branch_zero<mode>): Delete.
19615 (mov<mode>cc): New.
19616 (mov<GPR:mode><X:mode>cc): Likewise.
19617 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
19618
19619 2019-04-30 Nathan Sidwell <nathan@acm.org>
19620
19621 * tree.h (MARK_TS_EXP): New.
19622
19623 2019-04-30 Martin Liska <mliska@suse.cz>
19624
19625 * opts.c (enable_warning_as_error): Provide hints
19626 for unknown options.
19627
19628 2019-04-30 Martin Liska <mliska@suse.cz>
19629
19630 PR debug/90288
19631 * doc/invoke.texi: Add missing dash for gas-locview-support
19632 and gno-as-locview-support.
19633
19634 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19635
19636 PR target/89093
19637 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19638 whitespace at the start of target attribute string.
19639
19640 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19641
19642 PR target/86538
19643 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19644 Define __ARM_FEATURE_ATOMICS.
19645
19646 2019-04-30 Martin Liska <mliska@suse.cz>
19647
19648 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19649 into built_in_function enum. Remove code for endp == 2 and
19650 use BUILT_IN_* constants.
19651 (gimple_fold_builtin): Call the function with fcode.
19652
19653 2019-04-30 Martin Liska <mliska@suse.cz>
19654
19655 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19656 DECL_FUNCTION_CODE into ix86_builtins enum before
19657 the switch statement.
19658
19659 2019-04-30 Jakub Jelinek <jakub@redhat.com>
19660
19661 PR tree-optimization/89475
19662 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19663 calls.
19664
19665 2019-04-30 Martin Liska <mliska@suse.cz>
19666
19667 PR translation/90274
19668 * opts.c (print_filtered_help): Wrap string in _(...).
19669
19670 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
19671
19672 PR tree-optimization/90240
19673 Revert:
19674 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19675
19676 PR tree-optimization/90078
19677 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19678 checks for infinite_cost overflow.
19679
19680 2019-04-29 Jeff Law <law@redhat.com>
19681
19682 * passes.def: Move -Wrestrict pass after copy propagation.
19683
19684 2019-04-29 Maya Rashish <coypu@sdf.org>
19685
19686 * config.gcc (default_gnu_indirect_function): Default to yes
19687 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19688 sparc*-*-netbsd*, x86_64-*-netbsd*.
19689
19690 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
19691
19692 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19693 where cond2 is NE_EXPR.
19694 (is_value_included_in): Update comment.
19695
19696 2019-04-29 Richard Biener <rguenther@suse.de>
19697
19698 PR tree-optimization/90278
19699 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19700 EH on comparison simplification.
19701
19702 2019-04-29 Jason Merrill <jason@redhat.com>
19703
19704 PR c++/82081 - tail call optimization breaks noexcept
19705 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19706 nothrow function to a might-throw function into a tail call.
19707
19708 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
19709
19710 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19711 (DDR_INNER_LOOP): Likewise.
19712 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19713 (initialize_data_dependence_relation): Likewise.
19714 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19715
19716 2019-04-29 Jakub Jelinek <jakub@redhat.com>
19717
19718 PR rtl-optimization/90257
19719 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19720 return value.
19721
19722 Revert the revert:
19723 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19724
19725 PR target/90178
19726 Revert:
19727 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19728
19729 Revert the revert:
19730 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19731
19732 Revert:
19733 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19734
19735 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19736
19737 2019-04-29 Richard Biener <rguenther@suse.de>
19738
19739 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19740 rhs issue a reset.
19741
19742 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
19743
19744 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
19745 varasm.h, and netbsd-protos.h.
19746
19747 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
19748
19749 PR target/89261
19750 * config/i386/i386-protos.h (ix86_data_alignment): Change
19751 the second argument type to unsigned int.
19752 * config/i386/i386.c (ix86_data_alignment): Change "align"
19753 argument type to unsigned int.
19754
19755 2019-04-27 Martin Liska <mliska@suse.cz>
19756
19757 PR middle-end/90258
19758 * opt-suggestions.c (option_proposer::build_option_suggestions):
19759 When get_valid_option_values returns empty values, add the
19760 misspelling candidate.
19761
19762 2019-04-26 Jim Wilson <jimw@sifive.com>
19763
19764 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19765 parameter.
19766 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19767 Pass orig_mode to riscv_build_integer.
19768 (riscv_split_integer): Pass mode to riscv_move_integer.
19769 (riscv_legitimize_const_move): Likewise.
19770 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19771 promoted_mode. Replace force_reg call with code to load constant into
19772 promoted reg and then subreg it for the store.
19773 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19774 riscv_move_integer.
19775
19776 2018-04-26 Eugene Sharygin <eush@ispras.ru>
19777
19778 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19779 corrupt codes.
19780
19781 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
19782
19783 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19784 commentary about the encoding of precision.
19785
19786 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
19787
19788 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19789 * config/i386/t-freebsd64: New file.
19790 * config.gcc: Add the t-freebsd64 for multilib support.
19791
19792 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
19793
19794 * doc/extend.texi (vector_size): Add missing comma after @xref.
19795
19796 2019-04-25 Jakub Jelinek <jakub@redhat.com>
19797
19798 * BASE-VER: Set to 10.0.0.
19799
19800 2019-04-25 Richard Biener <rguenther@suse.de>
19801
19802 PR middle-end/89765
19803 * gimplify.c (gimplify_expr): Avoid turning a lvalue
19804 VIEW_CONVERT_EXPR into one operating on an rvalue.
19805
19806 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
19807
19808 PR target/89929
19809 * config/i386/i386.c (feature_priority): Moved to file scope.
19810 (processor_features): Likewise.
19811 (processor_model): Likewise.
19812 (_arch_names_table): Likewise.
19813 (arch_names_table): Likewise.
19814 (_feature_list): Removed.
19815 (feature_list): Likewise.
19816 (_isa_names_table): Moved to file scope. Add priority.
19817 (isa_names_table): Likewise.
19818 (get_builtin_code_for_version): Replace feature_list with
19819 isa_names_table. Update error message for P_ZERO priority.
19820
19821 2019-04-25 Richard Biener <rguenther@suse.de>
19822
19823 * tree-pass.h (make_pass_phi_only_cprop): Remove.
19824 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19825
19826 2019-04-24 Jeff Law <law@redhat.com>
19827
19828 PR tree-optimization/90037
19829 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19830 * passes.def: Replace all instance of phi-only cprop with the
19831 lattice propagator. Move propagation pass from after erroneous
19832 path isolation to before erroneous path isolation.
19833 * tree-ssa-phionlycprop.c: Remove.
19834
19835 2019-04-24 Richard Biener <rguenther@suse.de>
19836
19837 PR middle-end/90213
19838 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19839 by size and BITS_PER_UNIT on poly-wide-ints.
19840
19841 2019-04-25 Richard Biener <rguenther@suse.de>
19842
19843 PR middle-end/90194
19844 * match.pd: Add pattern to simplify view-conversion of an
19845 empty constructor.
19846
19847 2019-04-24 Clement Chigot <clement.chigot@atos.net>
19848
19849 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19850 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19851 for Go on 32 bit AIX.
19852 * config/rs6000/aix72.h: Likewise.
19853
19854 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19855
19856 PR target/90193
19857 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19858 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19859
19860 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
19861
19862 PR target/89952
19863 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19864 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
19865 for restored hard frame pointer.
19866 (s390_sched_dependencies_evaluation): Implement new target hook.
19867 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19868
19869 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
19870
19871 * config/arc/arc-options.def: Fix typos and spelling mistakes.
19872 * config/arc/arc.c (arc_init): Cleanup warning message.
19873 (arc_override_options): Likewise.
19874
19875 2019-04-24 Jakub Jelinek <jakub@redhat.com>
19876
19877 PR target/90187
19878 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19879 a register if both if_true and if_false are MEMs.
19880
19881 PR tree-optimization/90208
19882 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19883 after labels of new_bb, not before them.
19884
19885 PR tree-optimization/90211
19886 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19887 which are not SSA_NAMEs.
19888
19889 2018-04-23 Sudakshina Das <sudi.das@arm.com>
19890
19891 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19892 AArch64.
19893 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19894
19895 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19896
19897 PR rtl-optimization/87979
19898 * modulo-sched.c (sms_schedule): Start ii value "mii" should
19899 not equal zero.
19900
19901 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
19902
19903 PR rtl-optimization/84032
19904 * modulo-sched.c (ps_insn_find_column): Change condition so that
19905 branch will always be the last insn in a row inside partial
19906 schedule.
19907
19908 2019-04-23 Richard Biener <rguenther@suse.de>
19909
19910 PR debug/90131
19911 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19912 dest_single_pred_p argument.
19913 (remove_forwarder_block): Adjust.
19914 (remove_forwarder_block_with_phi): Likewise.
19915
19916 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19917 Bernd Edlinger <bernd.edlinger@hotmail.de>
19918 Jakub Jelinek <jakub@redhat.com>
19919
19920 PR target/89093
19921 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19922 if used with general-regs-only.
19923 (arm_conditional_register_usage): Don't add non-general regs if
19924 general-regs-only.
19925 (arm_valid_target_attribute_rec): Handle general-regs-only.
19926 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19927 general-regs-only.
19928 (TARGET_HARD_FLOAT_SUB): Define.
19929 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19930 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19931 (TARGET_REALLY_IWMMXT2): Likewise.
19932 * config/arm/arm.opt: Add -mgeneral-regs-only.
19933 * doc/extend.texi: Document ARM general-regs-only target.
19934 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19935
19936 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19937
19938 PR tree-optimization/90078
19939 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19940 checks for infinite_cost overflow.
19941
19942 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
19943
19944 PR tree-optimization/90021
19945 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19946 and check univariate against it.
19947 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19948 * tree-data-ref.c (add_other_self_distances): Pass new argument.
19949
19950 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
19951
19952 PR target/90178
19953 Revert:
19954 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
19955
19956 Revert the revert:
19957 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
19958
19959 Revert:
19960 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
19961
19962 * lra-spills.c (lra_final_code_change): Remove useless move insns.
19963
19964 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
19965
19966 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19967 names using operand format, rather than hard-wired.
19968 (speculation_barrier): Likewise.
19969
19970 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
19971
19972 PR tree-optimization/88055
19973 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19974 (gen_one_condition): Use it if !HONOR_NANS.
19975
19976 2019-04-19 Jakub Jelinek <jakub@redhat.com>
19977
19978 PR middle-end/90139
19979 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19980 assign_temp instead of gen_reg_rtx.
19981
19982 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
19983
19984 PR translation/90118
19985 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19986 Add missing space before %<.
19987
19988 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
19989
19990 PR rtl-optimization/87871
19991 * ira-lives.c (make_object_dead): Don't add conflicts to
19992 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19993
19994 2019-04-18 Martin Sebor <msebor@redhat.com>
19995
19996 PR middle-end/89797
19997 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19998 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19999 assuming type size fits in SHWI.
20000
20001 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
20002
20003 PR ipa/85051
20004 * ipa-inline.c (flatten_function): New parameter UPDATE.
20005 (ipa_inline, early_inliner): Use it.
20006
20007 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20008
20009 * fold-const.c (int_const_binop): Return early on failure.
20010
20011 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
20012
20013 PR middle-end/85164
20014 * combine.c (force_int_to_mode): Cast the argument rather than
20015 the result of known_alignment.
20016 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
20017
20018 2019-04-18 Richard Biener <rguenther@suse.de>
20019
20020 PR debug/90131
20021 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
20022 out from ...
20023 (remove_forwarder_block): ... here.
20024 (remove_forwarder_block_with_phi): Also move debug stmts here.
20025
20026 2019-04-18 Jakub Jelinek <jakub@redhat.com>
20027
20028 PR translation/79183
20029 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
20030 inform where appropriate.
20031
20032 2019-04-18 Richard Biener <rguenther@suse.de>
20033
20034 * tree.c (get_qualified_type): Put found type variants at the
20035 head of the variant list.
20036
20037 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20038
20039 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
20040
20041 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
20042
20043 PR target/90125
20044 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
20045 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
20046 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
20047 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
20048 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
20049
20050 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
20051
20052 * ira-conflicts.c (print_allocno_conflicts): Always print something,
20053 even for allocno's with no conflicts.
20054 (print_conflicts): Print an extra newline.
20055
20056 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20057
20058 * auto-inc-dec.c (attempt_change): Set the alignment of the
20059 temporary memory to that of the original.
20060
20061 2019-04-17 Joao Moreira <jmoreira@suse.de>
20062
20063 * targhooks.c (default_print_patchable_function_entry): Emit
20064 __patchable_function_entries section with writable flags to allow
20065 relocation resolution.
20066
20067 2019-04-17 Jonny Grant <jg@jguk.org>
20068
20069 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
20070
20071 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20072
20073 PR middle-end/90095
20074 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
20075 on lowpart SUBREGs.
20076
20077 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
20078
20079 * config/arc/arc.c (arc_init): Format diagnostic string.
20080 (arc_override_options): Likewise.
20081 (check_if_valid_regno_const): Likewise.
20082 (arc_reorg): Likewise.
20083
20084 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
20085
20086 PR target/17108
20087 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
20088 name.
20089 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
20090 name.
20091 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
20092 (*movdi_update1): Use Pmode.
20093 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
20094 (movdi_<mode>_update_stack): Rename to ...
20095 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
20096 use Pmode.
20097 (*movsi_update1): Use Pmode.
20098 (*movsi_update2): Use Pmode.
20099 (movsi_update): Rename to ...
20100 (movsi_<mode>_update): ... this. Use Pmode.
20101 (movsi_update_stack): Fix condition.
20102 (*movhi_update1): Use Pmode. Fix argument to
20103 avoiding_indexed_address_p.
20104 (*movhi_update2): Ditto.
20105 (*movhi_update3): Ditto.
20106 (*movhi_update4): Ditto.
20107 (*movqi_update1): Ditto.
20108 (*movqi_update2): Ditto.
20109 (*movqi_update3): Ditto.
20110 (*movsf_update1, *movdf_update1): Merge, rename to...
20111 (*mov<mode>_update1): This. Use Pmode. Fix argument to
20112 avoiding_indexed_address_p. Add "size" attribute.
20113 (*movsf_update2, *movdf_update2): Merge, rename to...
20114 (*mov<mode>_update2): This. Ditto.
20115 (*movsf_update3): Use Pmode. Fix argument to
20116 avoiding_indexed_address_p.
20117 (*movsf_update4): Ditto.
20118 (allocate_stack): Simplify condition. Adjust pattern names.
20119
20120 2019-04-17 Jakub Jelinek <jakub@redhat.com>
20121
20122 PR target/89093
20123 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
20124 whitespace at the start of target attribute string.
20125
20126 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
20127
20128 PR target/84369
20129 * config/rs6000/power9.md: Add store forwarding bypass.
20130
20131 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
20132
20133 PR debug/89528
20134 * valtrack.c (dead_debug_insert_temp): Reset debug references
20135 to the return value of a call being removed.
20136
20137 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20138
20139 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
20140 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
20141 implement target hook.
20142 (arc_memory_move_cost): New function.
20143 (TARGET_REGISTER_MOVE_COST): Define.
20144 (TARGET_MEMORY_MOVE_COST): Likewise.
20145 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
20146 (MEMORY_MOVE_COST): Likewise.
20147
20148 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20149
20150 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
20151 (sibcall_value_insn): Likewise.
20152 * config/arc/constraints.md (Rs5): Remove.
20153
20154 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20155
20156 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
20157 for last two fake registers.
20158 (arc_conditional_register_usage): Make sure fake frame and arg
20159 pointer regs are in general regs class.
20160 (FRAME_POINTER_MASK): Remove.
20161 (RETURN_ADDR_MASK): Remove.
20162 (arc_must_save_register): Use hard frame regnum.
20163 (frame_restore_reg): Use hard_frame_pointer_rtx.
20164 (arc_save_callee_saves): Likewise.
20165 (arc_restore_callee_saves): Likewise.
20166 (arc_save_callee_enter): Likewise.
20167 (arc_restore_callee_leave): Likewise.
20168 (arc_save_callee_milli): Likewise.
20169 (arc_eh_return_address_location): Likewise.
20170 (arc_check_multi): Use hard frame regnum.
20171 (arc_can_eliminate): Likewise.
20172 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20173 for register allocator.
20174 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20175 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20176 (FRAME_POINTER_REGNUM): Change it to a fake register.
20177 (HARD_FRAME_POINTER_REGNUM): Defined.
20178 (ARG_POINTER_REGNUM): Change it to a new fake register.
20179 (ELIMINABLE_REGS): Update.
20180 (REGISTER_NAMES): Update names.
20181 * config/arc/arc.md (LP_START): Remove.
20182 (LP_END): Likewise.
20183 (shift_si3_loop): Update pattern.
20184
20185 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
20186
20187 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20188 to avoid delay slot scheduling.
20189 (arc_must_save_register): Don't save SP.
20190 * config/arc/arc.md (stack_tie): Remove.
20191 (UNSPEC_ARC_STKTIE): Likewise.
20192
20193 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
20194 Shiva Chen <shiva0217@gmail.com>
20195
20196 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20197 code gen with large shift amount.
20198
20199 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
20200
20201 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20202 subreg.
20203
20204 2019-04-16 Jakub Jelinek <jakub@redhat.com>
20205
20206 PR target/90096
20207 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20208 print -m64/-mx32/-m32 if it is true.
20209 (ix86_debug_options, ix86_function_specific_print): Pass true as
20210 ADD_ABI_P to ix86_target_string.
20211 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20212 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20213 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20214
20215 PR rtl-optimization/90082
20216 * dce.c (can_delete_call): New function.
20217 (deletable_insn_p, mark_insn): Use it.
20218
20219 PR tree-optimization/90090
20220 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20221 throw internally.
20222 (is_division_by_square): Likewise. Formatting fix.
20223
20224 2019-04-16 Richard Biener <rguenther@suse.de>
20225
20226 PR tree-optimization/56049
20227 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20228 equality check if alias-set zero will prevail.
20229
20230 2019-04-15 Jeff Law <law@redhat.com>
20231
20232 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20233 size and alignment as unsigned.
20234
20235 2019-04-15 Richard Biener <rguenther@suse.de>
20236
20237 PR debug/90074
20238 * tree-loop-distribution.c (destroy_loop): Preserve correct
20239 debug info.
20240
20241 2019-04-15 Richard Biener <rguenther@suse.de>
20242
20243 PR tree-optimization/90071
20244 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20245 abnormal operands from def stmts.
20246
20247 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
20248
20249 PR rtl-optimization/89794
20250 * combine.c (count_auto_inc): New function.
20251 (try_combine): Count how many auto_inc expressions there were in the
20252 original instructions. Ensure we have the same number in the new
20253 instructions. Remove the code that tried to ensure auto_inc side
20254 effects on i1 and i0 are not lost.
20255
20256 2019-04-15 Richard Biener <rguenther@suse.de>
20257
20258 PR ipa/88936
20259 * tree.h (auto_var_p): Declare.
20260 * tree.c (auto_var_p): New function, split out from ...
20261 (auto_var_in_fn_p): ... here.
20262 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20263 member.
20264 (new_var_info): Initialize it.
20265 (set_uids_in_ptset): Also set the shadow variable uid if required.
20266 (ipa_pta_execute): Postprocess points-to solutions assigning
20267 shadow variable uids for locals that may reach their containing
20268 function recursively.
20269 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20270 assert but instead check whether the points-to solution is
20271 a singleton.
20272
20273 2019-04-15 Martin Jambor <mjambor@suse.cz>
20274
20275 PR ipa/pr89693
20276 * cgraph.c (clone_of_p): Loop over clone chain for each step in
20277 the thunk chain.
20278
20279 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20280
20281 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20282
20283 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
20284 Kito Cheng <kito.cheng@gmail.com>
20285 Shiva Chen <shiva0217@gmail.com>
20286
20287 * config/nds32/nds32-md-auxiliary.c
20288 (nds32_legitimize_pic_address): Use new PIC pattern.
20289 (nds32_legitimize_tls_address): Use new TLS pattern.
20290 (nds32_output_symrel): New.
20291 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20292 (nds32_alloc_relax_group_id): Ditto.
20293 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20294 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20295 relax_group_id.
20296 (nds32_group_tls_insn): Ditto.
20297 (nds32_group_float_insns): Ditto.
20298 * config/nds32/nds32.md (tls_le): New.
20299 (sym_got): Ditto.
20300
20301 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
20302
20303 * configure: Add nds32 target for dwarf2 debug_line checking.
20304 * configure.ac: Regenerated.
20305
20306 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
20307
20308 PR lto/89358
20309 * ipa-devirt.c (skip_in_fields_list_p): New.
20310 (odr_types_equivalent_p): Use it.
20311
20312 2019-04-13 Jakub Jelinek <jakub@redhat.com>
20313
20314 PR target/89093
20315 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20316 instead of strncmp when checking for thumb and arm. Formatting fixes.
20317
20318 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
20319
20320 * doc/install.texi: Document --with-target-system-zlib.
20321
20322 2019-04-12 Martin Sebor <msebor@redhat.com>
20323
20324 PR c/88383
20325 PR c/89288
20326 PR c/89798
20327 PR c/89797
20328 * targhooks.c (default_vector_alignment): Avoid assuming
20329 argument fits in SHWI.
20330 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20331 a shift expression.
20332 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20333
20334 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20335
20336 PR rtl-optimization/89965
20337 * dce.c: Include rtl-iter.h.
20338 (struct check_argument_load_data): New type.
20339 (check_argument_load): New function.
20340 (find_call_stack_args): Check for loads from stack slots still tracked
20341 in sp_bytes and punt if any is found.
20342
20343 * config/mips/loongson-mmiintrin.h: Fix up #error message.
20344
20345 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
20346
20347 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20348 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20349
20350 2019-04-12 Martin Liska <mliska@suse.cz>
20351
20352 PR middle-end/89970
20353 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20354 in error message.
20355 (separate_attrs): Handle multiple 'default's.
20356 (expand_target_clones): Rework error handling code.
20357
20358 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
20359
20360 PR target/87532
20361 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20362 mode of vector rather than mode of destination for move instruction.
20363 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20364 Use QI inner mode with V16QI vector mode.
20365
20366 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20367
20368 PR target/52726
20369 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20370 "invalid %%t operand" in output_operand_lossage message.
20371
20372 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
20373
20374 * config/s390/predicates.md (permute_pattern_operand): New
20375 predicate.
20376 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20377 operand for the permute pattern.
20378 ("*vec_perm<mode>"): New insn definition.
20379 ("bswap<mode>"): Generate the permute pattern operand in the
20380 expander and perform the operand reloads for pre arch13 level
20381 already.
20382 ("*bswap<mode>_emu"): Rename to ...
20383 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20384 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20385 Add the USE operand for the permute pattern.
20386 ("*vec_set_bswap_vec<mode>"): Likewise.
20387
20388 2019-04-12 Jakub Jelinek <jakub@redhat.com>
20389
20390 PR c/89946
20391 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20392 and gcc_unreachable if it fails, just call tree_to_uhwi which
20393 verifies that too. Test TREE_CHAIN instead of list_length > 1.
20394 Start warning message with a lower-case letter. Formatting fixes.
20395
20396 PR rtl-optimization/90026
20397 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20398 successors, look for BARRIERs inside of the whole BB_FOOTER chain
20399 rather than just at the start of it. If e->src BB_FOOTER is not NULL
20400 in cfglayout mode, use emit_barrier_after_bb.
20401
20402 2018-04-11 Steve Ellcey <sellcey@marvell.com>
20403
20404 PR rtl-optimization/87763
20405 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20406 New Instruction.
20407
20408 2019-04-11 Tom de Vries <tdevries@suse.de>
20409
20410 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20411 max macro using statement expression.
20412
20413 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
20414
20415 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20416 * xcoffout.c (xcoff_private_rodata_section_name): Define.
20417 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20418 read_only_private_data_section using xcoff_private_rodata_section_name.
20419 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20420
20421 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
20422
20423 PR target/90016
20424 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20425
20426 2019-04-11 Jakub Jelinek <jakub@redhat.com>
20427
20428 PR rtl-optimization/89965
20429 * dce.c (sp_based_mem_offset): New function.
20430 (find_call_stack_args): Use sp_based_mem_offset.
20431
20432 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
20433
20434 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20435
20436 2019-04-11 Richard Biener <rguenther@suse.de>
20437
20438 PR tree-optimization/90020
20439 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20440 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20441 * tree-ssa-pre.c (compute_avail): Use it to not put
20442 possibly trapping references after a call that might not
20443 return into EXP_GEN.
20444 * gcse.c (compute_hash_table_work): Do not elide
20445 marking a block containing a call if the call might not
20446 return.
20447
20448 2019-04-11 Richard Biener <rguenther@suse.de>
20449
20450 PR tree-optimization/90018
20451 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20452 Test both SLP and interleaving variants.
20453
20454 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
20455
20456 * config/s390/8561.md: New file.
20457 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20458 Add arch13 cpu model.
20459 * config/s390/s390-opts.h (enum processor_type): Likewise.
20460 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20461 (s390_get_unit_mask): Likewise.
20462 (s390_is_fpd): Likewise.
20463 (s390_is_fxd): Likewise.
20464 * config/s390/s390.h (s390_tune_attr): Likewise.
20465 * config/s390/s390.md: Include arch13 pipeline description.
20466 * config/s390/s390.opt: Add arch13.
20467
20468 2018-04-10 Steve Ellcey <sellcey@marvell.com>
20469
20470 PR rtl-optimization/87763
20471 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20472 New prototype.
20473 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20474 New function.
20475 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20476 New instruction.
20477 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20478 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20479 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20480 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20481
20482 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
20483
20484 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20485 "Although" in -fipa-icf documentation.
20486
20487 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20488 of using multiple -g options.
20489
20490 2019-04-10 Martin Liska <mliska@suse.cz>
20491
20492 PR gcov-profile/89959
20493 * doc/gcov.texi: Make documentation of -x option
20494 more precise.
20495
20496 2019-04-10 Richard Biener <rguenther@suse.de>
20497
20498 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20499 member.
20500 (DR_GROUP_SAME_DR_STMT): Remove.
20501 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20502 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20503 replace with assert.
20504 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20505 (vect_record_grouped_load_vectors): Remove unreachable code.
20506
20507 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
20508
20509 PR target/90016
20510 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20511 obsolete reference to N.
20512
20513 2019-04-10 Jakub Jelinek <jakub@redhat.com>
20514
20515 PR middle-end/90025
20516 * expr.c (store_expr): Set properly size on the MEM passed to
20517 clear_storage.
20518
20519 PR c++/90010
20520 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20521 with strlen in between hostsz-3 and hostsz-1 inclusive when no
20522 translation is needed, and when translation is needed, only append
20523 ... if the string length is hostsz or more bytes long. Avoid using
20524 strncpy or strcat.
20525
20526 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20527
20528 PR target/90024
20529 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20530 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20531 into three.
20532 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20533 differences directly.
20534 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20535
20536 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20537
20538 PR translation/90011
20539 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20540 from diagnostics.
20541 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20542 diagnostics.
20543 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20544 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20545 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20546 trailing space from -gsplit-dwarf diagnostics.
20547
20548 PR tree-optimization/89998
20549 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20550 instead of integer_type_node if possible, don't add ranges if return
20551 type is not compatible with int.
20552 * gimple-fold.c (gimple_fold_builtin_sprintf,
20553 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20554 integer_type_node.
20555
20556 2019-04-09 Martin Liska <mliska@suse.cz>
20557
20558 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20559 * doc/install.texi: Document the new config.
20560
20561 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
20562
20563 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20564 use gimple_expr_type for load and store calls. Skip over the
20565 condition argument in a conditional internal function.
20566 Protect use of TREE_INT_CST_LOW.
20567
20568 2019-04-09 Jakub Jelinek <jakub@redhat.com>
20569
20570 PR target/90015
20571 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20572 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
20573 trailing period from it too.
20574
20575 2019-04-08 wu yuan <wuyuan5@huawei.com>
20576
20577 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20578 * config/aarch64/aarch64.md : Add "tsv110.md"
20579 * config/aarch64/tsv110.md: New file.
20580
20581 2019-04-08 Richard Biener <rguenther@suse.de>
20582
20583 PR tree-optimization/90006
20584 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20585 calls like lrint.
20586
20587 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
20588
20589 PR target/83033
20590 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20591 construction.
20592 (fma_root_node): Likewise.
20593 (func_fma_steering): Likewise.
20594
20595 2019-04-08 Jakub Jelinek <jakub@redhat.com>
20596
20597 PR rtl-optimization/89865
20598 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20599
20600 PR rtl-optimization/89865
20601 * config/i386/i386.md
20602 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20603 numbers not to clash with the additional operands[4].
20604 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20605 with extra register copy in the middle.
20606
20607 2019-04-08 Martin Liska <mliska@suse.cz>
20608
20609 PR gcov-profile/89961
20610 * doc/gcov.texi: Document data_file.
20611 * gcov.c (generate_results): Add data_info into JSON output.
20612
20613 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
20614
20615 PR tree-optimization/89725
20616 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
20617 loop's chrec as invariant symbol.
20618 * tree-chrec.h (chrec_contains_symbols): New parameter.
20619 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20620 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20621 function of loops not in DDR's loop_nest.
20622 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20623
20624 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
20625
20626 PR target/89623
20627 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20628 Mask.
20629
20630 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
20631
20632 PR target/89945
20633 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20634 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20635
20636 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
20637
20638 * sched-deps.c (sched_macro_fuse_insns): Check return value of
20639 targetm.fixed_condition_code_regs.
20640
20641 2019-04-05 Richard Biener <rguenther@suse.de>
20642
20643 PR debug/89892
20644 PR debug/89905
20645 * tree-cfgcleanup.c (remove_forwarder_block): Always move
20646 debug bind stmts but reset them if they are not valid at the
20647 destination.
20648
20649 2019-04-05 Martin Liska <mliska@suse.cz>
20650
20651 PR translation/89936
20652 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20653 order to wrap keywords or arguments.
20654 * collect2.c (main): Likewise.
20655 (scan_prog_file): Likewise.
20656 (scan_libraries): Likewise.
20657 * common/config/riscv/riscv-common.c
20658 (riscv_subset_list::parsing_subset_version): Likewise.
20659 (riscv_subset_list::parse_std_ext): Likewise.
20660 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20661 Likewise.
20662 * config/arm/arm.c (arm_option_override): Likewise.
20663 * config/cris/cris.c (cris_print_operand): Likewise.
20664 * config/darwin-c.c (darwin_pragma_options): Likewise.
20665 (darwin_pragma_unused): Likewise.
20666 (darwin_pragma_ms_struct): Likewise.
20667 * config/ft32/ft32.c (ft32_print_operand): Likewise.
20668 * config/i386/i386.c (print_reg): Likewise.
20669 (ix86_print_operand): Likewise.
20670 * config/i386/xm-djgpp.h: Likewise.
20671 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20672 * config/m32c/m32c.c (m32c_option_override): Likewise.
20673 * config/msp430/msp430.c (msp430_option_override): Likewise.
20674 * config/nds32/nds32.c (nds32_option_override): Likewise.
20675 * config/nvptx/mkoffload.c (main): Likewise.
20676 * config/rx/rx.c (rx_print_operand): Likewise.
20677 (valid_psw_flag): Likewise.
20678 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20679 (vms_pragma_nomember_alignment): Likewise.
20680 (vms_pragma_extern_model): Likewise.
20681 * lto-wrapper.c (compile_offload_image): Likewise.
20682 * omp-offload.c (oacc_parse_default_dims): Likewise.
20683 * symtab.c (symtab_node::verify_base): Likewise.
20684 * tlink.c (recompile_files): Likewise.
20685 (start_tweaking): Likewise.
20686 * tree-profile.c (parse_profile_filter): Likewise.
20687
20688 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
20689
20690 PR tree-optimization/89956
20691 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20692 multiple negates of the same value.
20693
20694 2019-04-04 Martin Sebor <msebor@redhat.com>
20695
20696 PR middle-end/89957
20697 PR middle-end/89911
20698 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20699 have the same precision since the function crashes otherwise.
20700 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20701 has non-zero arguments.
20702
20703 2019-04-04 Martin Sebor <msebor@redhat.com>
20704
20705 PR middle-end/89934
20706 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20707 out if the number of arguments is less than expected.
20708
20709 2019-04-04 Jeff Law <law@redhat.com>
20710
20711 PR rtl-optimization/89399
20712 * ree.c (combine_set_extension): Use single_set rather than
20713 digging into PATTERN for items on the candidate list.
20714 (combine_reaching_defs): Likewise.
20715
20716 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
20717
20718 PR rtl-optimization/46590
20719 * loop-invariant.c (find_defs): Move df_remove_problem and
20720 df_process_deferred_rescans to move_invariants.
20721 Move df_live_add_problem and df_live_set_all_dirty calls
20722 to move_invariants.
20723 (move_invariants): Likewise.
20724 (move_loop_invariants): Likewise, making the df_live calls
20725 conditional on -O. Remove the problem again if we added it
20726 locally.
20727
20728 2019-04-03 qing zhao <qing.zhao@oracle.com>
20729
20730 PR tree-optimization/89730
20731 * ipa-inline.c (can_inline_edge_p): Delete the checking for
20732 -flive-patching=inline-only-static.
20733 (can_inline_edge_by_limits_p): Add the checking for
20734 -flive-patching=inline-only-static and grant always_inline
20735 even when -flive-patching=inline-only-static is specified.
20736
20737 2019-04-03 Jeff Law <law@redhat.com>
20738
20739 PR rtl-optimization/81025
20740 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20741
20742 2019-04-03 Richard Biener <rguenther@suse.de>
20743
20744 PR tree-optimization/84101
20745 * tree-vect-stmts.c: Include explow.h for hard_function_value,
20746 regs.h for hard_regno_nregs.
20747 (cfun_returns): New helper.
20748 (vect_model_store_cost): When vectorizing a store to a decl
20749 we return and the function ABI returns in a multi-reg location
20750 account for the possible spilling that will happen.
20751
20752 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
20753
20754 * config/s390/s390.c (s390_legitimate_address_p): Reject long
20755 displacement addresses for vector mode operands.
20756
20757 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
20758
20759 * config/arc/arc.c (GMASK_LEN): Define.
20760 (arc_restore_callee_saves): Restore first blink when
20761 !optimize_size.
20762
20763 2019-04-03 Sudakshina Das <sudi.das@arm.com>
20764
20765 * doc/extend.texi: Add deprecated comment on sign-return-address
20766 function attribute and add mbranch-protection.
20767 * doc/invoke.texi: Add bti to the options for mbranch-protection.
20768
20769 2019-04-03 Richard Biener <rguenther@suse.de>
20770
20771 PR lto/89896
20772 * lto-wrapper.c (run_gcc): Avoid implicit rules making
20773 the all target phony.
20774
20775 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
20776
20777 PR target/89902
20778 PR target/89903
20779 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20780 Return false for variable DImode shifts.
20781 (dimode_scalar_chain::compute_convert_gain): Do not handle
20782 register count operand in variable DImode shifts.
20783 (dimode_scalar_chain::make_vector_copies): Remove support to copy
20784 count argument of a variable shift instruction to a vector register.
20785 (dimode_scalar_chain::convert_reg): Remove support to convert
20786 count argument of a variable shift instruction.
20787
20788 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20789
20790 PR rtl-optimization/84206
20791 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20792 iterating over loop headers.
20793
20794 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
20795
20796 PR rtl-optimization/85876
20797 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20798 beyond the original fence.
20799
20800 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
20801
20802 * config.gcc: Mark spu* targets as deprecated/obsolete.
20803
20804 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20805
20806 * config/s390/s390-builtin-types.def: New builtin function type
20807 definitions. Remove unused types.
20808 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20809 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20810 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20811 overloaded builtins.
20812 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20813 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20814 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20815 (vec_double, vec_signed, vec_unsigned): Define to use the new
20816 overloaded builtins.
20817 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20818 Remove expanders.
20819
20820 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20821
20822 * config/s390/s390-builtin-types.def: New builtin function type
20823 definitions.
20824 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20825 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20826 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20827 (s390_vstrszh, s390_vstrszf): New low-level builtins.
20828 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20829 constant definitions.
20830 * config/s390/vecintrin.h (vec_search_string_cc)
20831 (vec_search_string_until_zero_cc): New builtin name definitions.
20832 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20833 expanders.
20834 ("vec_vstrs<mode>"): New insn definition.
20835
20836 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20837
20838 * config/s390/s390-builtin-types.def: Add new builtin function
20839 types.
20840 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20841 New overloaded builtins.
20842 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
20843 s390_vsrd.
20844 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20845 (UNSPEC_VEC_SLDBYTE): ... this.
20846 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20847 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20848 definitions.
20849 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20850 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20851 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20852
20853 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20854
20855 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20856 New insn definition.
20857 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20858 * config/s390/vector.md (V_HW_HSD): ... here.
20859
20860 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20861
20862 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20863 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20864 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20865 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20866 New insn definitions.
20867
20868 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20869
20870 * config/s390/s390-builtin-types.def: Add new builtin function type.
20871 * config/s390/s390-builtins.def: Add overloaded builtin
20872 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20873 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20874 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20875 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20876 ("eltswap<mode>"): New expander.
20877 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20878 insn definitions.
20879
20880 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20881
20882 * config/s390/s390-builtin-types.def: Add new builtin function types.
20883 * config/s390/s390-builtins.def: Add overloaded builtin
20884 s390_vec_revb. Add low-level builtins for vlbr and vstbr
20885 instructions.
20886 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20887 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20888 ("bswap<mode>"): New expander.
20889 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20890
20891 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20892
20893 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20894 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20895 vector builtin version number in __VEC__.
20896
20897 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20898
20899 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20900 iterators.
20901 (SFSI): New mode attribute.
20902 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20903 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20904 rename to ...
20905 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20906 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20907 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20908 ("floatsi<mode>2"): Add wcefb instruction.
20909
20910 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20911
20912 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20913 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20914 mode iterators.
20915 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20916 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20917 support 32 bit fp-int conversions. Rename to ...
20918 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20919 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20920 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20921 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20922 ... to these.
20923
20924 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20925
20926 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20927 if-then-else constructs if we can use the select instruction.
20928 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20929
20930 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20931
20932 * config/s390/s390.md ("*popcountdi_arch13_cc")
20933 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20934 definition.
20935 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20936 Append _z196 to make it ...
20937 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20938 ("popcounthi2_z196"): ... this.
20939 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20940 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20941
20942 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20943
20944 * config/s390/s390.c (s390_canonicalize_comparison): Convert
20945 certain compares for arch13 in order to make use of the condition
20946 code result produced by the new instructions.
20947 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20948 nxrk, and nxgrk instruction patterns.
20949 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20950 (inv_no): Add new code iterator together with some attributes.
20951 ("*andc_split_<mode>"): Disable splitter for arch13.
20952 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20953 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20954 ("*<ANDOR:bitops_name>c<GPR:mode>")
20955 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20956 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20957 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20958 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20959
20960 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20961
20962 * common/config/s390/s390-common.c (processor_flags_table): New
20963 entry for arch13.
20964 * config.gcc: Support arch13 with the --with-arch= configure flag.
20965 * config/s390/driver-native.c (s390_host_detect_local_cpu):
20966 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20967 * config/s390/s390.c (s390_get_sched_attrmask)
20968 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20969 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20970 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20971 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20972 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20973 definitions.
20974 * config/s390/s390.opt: Support arch13 as processor type in
20975 command line options.
20976
20977 2019-04-02 Martin Liska <mliska@suse.cz>
20978
20979 PR translation/89912
20980 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20981 Fix param description of graphite-max-arrays-per-scop.
20982
20983 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
20984
20985 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20986 (ASAN_CC1_SPEC): Use it in 64-bit mode.
20987 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20988
20989 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20990
20991 PR rtl-optimization/85412
20992 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20993 sel_sched_region_1, not after.
20994
20995 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
20996
20997 PR rtl-optimization/86928
20998 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20999 compute_live if necessary.
21000 (sel_redirect_edge_and_branch): Likewise.
21001
21002 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
21003
21004 PR rtl-optimization/89865
21005 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
21006 register if it is a part of small class.
21007
21008 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
21009
21010 PR rtl-optimization/87273
21011 * sel-sched-ir.c (merge_fences): Remove assert.
21012
21013 2019-04-01 Richard Biener <rguenther@suse.de>
21014
21015 PR tree-optimization/46590
21016 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
21017 (dom_walker::m_reachability): Add in place of...
21018 (dom_walker::m_skip_unreachable_blocks): ...this.
21019 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
21020 Move complex initialization ...
21021 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
21022 lazily and initialize edge flags on each invocation.
21023 (dom_walker::bb_reachable): Use m_reachability.
21024
21025 2019-04-01 Martin Liska <mliska@suse.cz>
21026
21027 PR driver/89861
21028 * opt-suggestions.c (option_proposer::build_option_suggestions):
21029 Add variant without any argument in order to provide better
21030 hints.
21031
21032 2019-04-01 Richard Biener <rguenther@suse.de>
21033
21034 PR c/71598
21035 * gimple.c: Include langhooks.h.
21036 (gimple_get_alias_set): Treat enumeral types as the underlying
21037 integer type.
21038
21039 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
21040 Eric Botcazou <ebotcazou@adacore.com>
21041
21042 PR rtl-optimization/89862
21043 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
21044 that operates on the full registers for WORD_REGISTER_OPERATIONS
21045 architectures.
21046
21047 2019-03-29 Jim Wilson <jimw@sifive.com>
21048
21049 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
21050 Clear MASK_RVC and then set if C subset supported.
21051
21052 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21053
21054 PR c/89872
21055 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
21056 non-addressable complit into its initializer if it is volatile.
21057
21058 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
21059
21060 * opts-common.c (integral_argument): Set errno properly in one case.
21061
21062 2019-03-29 Martin Liska <mliska@suse.cz>
21063
21064 * doc/invoke.texi: Remove -Wchkp from documentation.
21065
21066 2019-03-29 Martin Liska <mliska@suse.cz>
21067
21068 * dbgcnt.c (print_limit_reach): New function.
21069 (dbg_cnt): Use it.
21070
21071 2019-03-29 Martin Liska <mliska@suse.cz>
21072
21073 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
21074 (dbg_cnt_process_opt): Parse first tokens aas
21075 dbg_cnt_process_single_pair is also using strtok.
21076
21077 2019-03-29 Jakub Jelinek <jakub@redhat.com>
21078
21079 PR rtl-optimization/87485
21080 * function.c (expand_function_end): Move stack_protect_epilogue
21081 before loading of return value into hard register(s).
21082
21083 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21084
21085 PR middle-end/89621
21086 * tree-inline.h (struct copy_body_data): Add
21087 dont_remap_vla_if_no_change flag.
21088 * tree-inline.c (remap_type_3, remap_type_2): New functions.
21089 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
21090 and remap_type_2 returns false.
21091 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
21092 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
21093 only from where it is copied to nested contexts.
21094
21095 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21096
21097 PR target/89865
21098 * config/i386/i386.md (RMW operation with LEA peephole):
21099 Use LEAMODE mode attribute instead of SWI mode iterator for
21100 LEA pattern.
21101
21102 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
21103
21104 PR target/89848
21105 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
21106 Also process XEXP (src, 0) of a shift insn.
21107
21108 2019-03-28 David Malcolm <dmalcolm@redhat.com>
21109
21110 PR middle-end/89725
21111 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
21112 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
21113
21114 2019-03-28 Jakub Jelinek <jakub@redhat.com>
21115
21116 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
21117 test.
21118 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
21119 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
21120 immediately after first one with df_analyze in between, but rather
21121 process all bbs, queueing ones that need second pass in a worklist,
21122 df_analyze, process queued debug insn changes and if second pass is
21123 needed, process bbs from worklist, df_analyze, process queued debug
21124 insns again.
21125
21126 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
21127 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
21128 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
21129
21130 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
21131
21132 PR c/79022
21133 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
21134 definition.
21135
21136 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
21137
21138 PR target/85667
21139 * config/i386/i386.c (ix86_function_value_1): Call the newly added
21140 function for 32-bit MS_ABI.
21141 (function_value_ms_32): New function.
21142
21143 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
21144
21145 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
21146 (movdi): Call gen_movdi_symbol_save_scc.
21147 (gen_movdi_symbol_save_scc): New insn and split.
21148
21149 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
21150
21151 PR rtl-optimization/89313
21152 * function.c (matching_constraint_num): New static function.
21153 (match_asm_constraints_1): Use it. Fixup white space and comment.
21154 Don't replace inputs with non-matching constraints which conflict
21155 with early clobber outputs.
21156
21157 2019-03-27 Jeff Law <law@redhat.com>
21158
21159 PR rtl-optimization/87761
21160 PR rtl-optimization/89826
21161 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
21162 slightly later.
21163 (pass_cprop_hardreg::execute): Call df_analyze after adding the
21164 note problem to get REG_DEAD/REG_UNUSED notes updated.
21165
21166 2019-03-27 Richard Biener <rguenther@suse.de>
21167
21168 PR tree-optimization/89463
21169 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
21170 queue edges to remove.
21171 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21172 dead stmts. Delay edge removal until PHIs are removed to
21173 make debug-stmt creation not confused by seemingly degenerate
21174 PHIs.
21175
21176 2019-03-27 Alan Modra <amodra@gmail.com>
21177
21178 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21179 throughout file.
21180 * config/rs6000/darwin.h: Likewise.
21181 * config/rs6000/rs6000.c: Likewise.
21182
21183 2019-03-27 Alan Modra <amodra@gmail.com>
21184
21185 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21186 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
21187
21188 2019-03-26 Andrew Waterman <andrew@sifive.com>
21189 Jim Wilson <jimw@sifive.com>
21190
21191 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21192 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21193 (generic_idivdi, generic_fmul_single, generic_fmul_double)
21194 (generic_fdiv, generic_fsqrt): Add check for generic tune.
21195 (generic_alu): Add auipc to type list.
21196 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21197 (riscv_microarchitecture): Declare.
21198 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21199 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21200 field.
21201 (riscv_microarchitecture): New.
21202 (sifive_7_tune_info): New.
21203 (riscv_cpu_info_table): Add microarchitecture value for rocket and
21204 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
21205 entries.
21206 (riscv_store_data_bypass_p): New.
21207 (riscv_option_override): Set riscv_microarchitecture from
21208 cpu->microarchitecture.
21209 * config/riscv/riscv.md: Include sifive-7.md.
21210 (type): Add auipc.
21211 (tune): New.
21212 (auipc<mode>): Change type to auipc.
21213 (restore_stack_nonlocal): New.
21214 * config/riscv/sifive-7.md: New.
21215 * doc/invoke.texi (RISC-V Options): Update mtune docs.
21216
21217 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
21218
21219 PR target/89827
21220 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21221 Also process XEXP (src, 0) of a shift insn.
21222
21223 2019-03-26 Richard Biener <rguenther@suse.de>
21224
21225 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21226 (copy_debug_stmt): Likewise.
21227 (expand_call_inline): Likewise.
21228 (copy_bb): Avoid redundant lookup & set of gimple_block.
21229 * gimple-low.c (lower_gimple_return): Likewise.
21230 (lower_builtin_setjmp): Likewise.
21231
21232 2019-03-26 Jakub Jelinek <jakub@redhat.com>
21233
21234 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21235 is constant 0, turn into static const data member initialized to false.
21236 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21237 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21238
21239 2019-03-26 Jason Merrill <jason@redhat.com>
21240 Jakub Jelinek <jakub@redhat.com>
21241
21242 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21243 method.
21244 (mem_alloc_description::release_object_overhead): Fix comment typos.
21245 * hash-table.h (hash_table::~hash_table): Call
21246 release_instance_overhead only if m_entries is non-NULL, otherwise
21247 call unregister_descriptor.
21248
21249 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
21250
21251 PR tree-optimization/81740
21252 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21253 In case of outer loop vectorization, check for backward dependence
21254 at the inner loop if outer loop dependence is reversed.
21255
21256 2019-03-26 Alan Modra <amodra@gmail.com>
21257
21258 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21259 rs6000_vector_mem init. Correct wI and wJ comment.
21260
21261 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
21262
21263 PR rtl-optimization/88347
21264 PR rtl-optimization/88423
21265 * sched-deps.c (sched_analyze_insn): Take into account that for
21266 tablejumps the barrier appears after a label and a jump_table_data.
21267
21268 2019-03-25 Martin Sebor <msebor@redhat.com>
21269
21270 PR c/89812
21271 * c-common.c (check_user_alignment): Rename local. Correct maximum
21272 alignment in diagnostic. Avoid assuming argument fits in SHWI,
21273 convert it to UHWI when it fits.
21274
21275 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
21276
21277 PR debug/86964
21278 * dwarf2out.c (premark_used_variables): New function.
21279 (prune_unused_types_walk): Do not mark not premarked external
21280 variables.
21281 (prune_unused_types): Call premark_used_variables.
21282
21283 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
21284
21285 PR rtl-optimization/89676
21286 * lra-constraints.c (curr_insn_transform): Do match reload for
21287 early clobbers when the match was successful only for different
21288 registers.
21289
21290 2019-03-25 Martin Sebor <msebor@redhat.com>
21291
21292 * doc/extend.texi (Common Type Attributes): Document vector_size.
21293 (Common Variable Attributes): Mention size constraint. Correct
21294 quoting and typos.
21295 (Vector Extensions): Use @dfn when defining bas type. Clarify
21296 base type and size constraints.
21297
21298 2019-03-25 Richard Biener <rguenther@suse.de>
21299
21300 PR tree-optimization/89789
21301 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21302 changes from non-undefined back to undefined.
21303
21304 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
21305
21306 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21307 heap string and a gc string, but since this variable is unknown to
21308 ggc the gc string might get reused and corrupted. Fixed by always
21309 using a heap string.
21310
21311 2019-03-25 Richard Biener <rguenther@suse.de>
21312
21313 PR tree-optimization/89779
21314 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21315 to remove IV defs, delay actual removal.
21316 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
21317 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21318 very end, properly also reset loop control IV information.
21319
21320 2019-03-25 Richard Biener <rguenther@suse.de>
21321
21322 PR tree-optimization/89802
21323 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21324 move EH data to folded stmt.
21325
21326 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21327
21328 * config/s390/s390-builtin-types.def: Remove few unused types and
21329 fix sort order for others.
21330
21331 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
21332
21333 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21334 expected and found types with -mdebug during builtin matching.
21335
21336 2019-03-25 Richard Biener <rguenther@suse.de>
21337
21338 PR middle-end/89790
21339 * fold-const.c (operand_equal_p): Revert last change with
21340 updated comment.
21341
21342 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
21343
21344 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21345 notes for the result of the __tls_get_addr calls.
21346 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21347
21348 2019-03-24 Jeff Law <law@redhat.com>
21349
21350 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21351
21352 PR rtl-optimization/87761
21353 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21354 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
21355 as needed.
21356 (pass_cprop_hardreg::execute): Add df note problem and defer insn
21357 rescans. Reprocess blocks as needed, calling df_analyze before
21358 reprocessing. Always call df_analyze before fixing up debug bind
21359 insns.
21360
21361 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
21362
21363 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21364 big endian.
21365
21366 2019-03-22 Andrew Pinski <apinski@marvell.com>
21367
21368 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21369 attrribute for uxtw.
21370
21371 2019-03-26 Jeff Law <law@redhat.com>
21372
21373 PR rtl-optimization/87761
21374 * config/mips/mips-protos.h (mips_split_move): Add new argument.
21375 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21376 (mips_split_move): Accept new INSN argument. Try to forward SRC
21377 into the next instruction.
21378 (mips_split_move_insn): Pass INSN through to mips_split_move.
21379
21380 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
21381
21382 PR rtl-optimization/89676
21383 * lra-constraints.c (curr_insn_transform): Do match reload for
21384 early clobbers even if the match was successful.
21385
21386 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21387
21388 PR c++/87481
21389 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21390
21391 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
21392
21393 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21394
21395 2019-03-22 Jakub Jelinek <jakub@redhat.com>
21396
21397 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21398 <avx512>_fmsub_<mode>_mask3<round_name>,
21399 <avx512>_fnmadd_<mode>_mask3<round_name>,
21400 <avx512>_fnmsub_<mode>_mask3<round_name>,
21401 avx512f_vmfmadd_<mode>_mask3<round_name>,
21402 avx512f_vmfmsub_<mode>_mask3<round_name>,
21403 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21404 instead of register_operand and %v instead of v for match_operand 1.
21405 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21406 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
21407 <round_nimm_predicate> instead of register_operand and %v instead of v
21408 for match_operand 1.
21409
21410 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21411 <avx512>_fmadd_<mode>_mask3<round_name>,
21412 <avx512>_fmsub_<mode>_mask<round_name>,
21413 <avx512>_fmsub_<mode>_mask3<round_name>,
21414 <avx512>_fnmadd_<mode>_mask<round_name>,
21415 <avx512>_fnmadd_<mode>_mask3<round_name>,
21416 <avx512>_fnmsub_<mode>_mask<round_name>,
21417 <avx512>_fnmsub_<mode>_mask3<round_name>,
21418 <avx512>_fmaddsub_<mode>_mask<round_name>,
21419 <avx512>_fmaddsub_<mode>_mask3<round_name>,
21420 <avx512>_fmsubadd_<mode>_mask<round_name>,
21421 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21422 <round_nimm_predicate> instead of nonimmediate_operand.
21423 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21424 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21425 Use register_operand instead of <round_nimm_predicate> for the
21426 operand that needs to match output.
21427 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21428 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21429 Likewise. Formatting fixes.
21430
21431 PR target/89784
21432 * config/i386/i386.c (enum ix86_builtins): Remove
21433 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21434 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21435 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21436 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21437 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21438 __builtin_ia32_vfmsubss3_mask3): New builtins.
21439 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21440 avx512f_vmfmadd_<mode>_mask3<round_name>,
21441 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21442 *avx512f_vmfmsub_<mode>_mask<round_name>,
21443 avx512f_vmfmsub_<mode>_mask3<round_name>,
21444 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21445 *avx512f_vmfnmadd_<mode>_mask<round_name>,
21446 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21447 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21448 *avx512f_vmfnmsub_<mode>_mask<round_name>,
21449 avx512f_vmfnmsub_<mode>_mask3<round_name>,
21450 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21451 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21452 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21453 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21454 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21455 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21456 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21457 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21458 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21459 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21460 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21461 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21462 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21463 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21464 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21465 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21466 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21467 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21468 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21469 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21470 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21471 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21472
21473 2019-03-21 Martin Sebor <msebor@redhat.com>
21474
21475 PR tree-optimization/89350
21476 * builtins.c (compute_objsize): Also ignore offsets whose upper
21477 bound is negative.
21478 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21479 (builtin_memref::builtin_memref): Initialize new member.
21480 Allow EXPR to be null.
21481 (builtin_memref::extend_offset_range): Replace local with a member.
21482 Avoid assuming pointer offsets are unsigned.
21483 (builtin_memref::set_base_and_offset): Determine base object
21484 before computing offset range.
21485 (builtin_access::builtin_access): Handle memset.
21486 (builtin_access::generic_overlap): Replace local with a member.
21487 (builtin_access::strcat_overlap): Same.
21488 (builtin_access::overlap): Same.
21489 (maybe_diag_overlap): Same.
21490 (maybe_diag_access_bounds): Same.
21491 (wrestrict_dom_walker::check_call): Handle memset.
21492 (check_bounds_or_overlap): Same.
21493
21494 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
21495 Jakub Jelinek <jakub@redhat.com>
21496
21497 PR lto/89692
21498 * tree.c (fld_type_variant, fld_incomplete_type_of,
21499 fld_process_array_type): Call fld->pset.add and don't call
21500 add_tree_to_fld_list if it returns true.
21501 (free_lang_data_in_type): Similarly with self-recursive call. Purge
21502 non-marked types from TYPE_NEXT_VARIANT list.
21503 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21504
21505 2019-03-21 Jakub Jelinek <jakub@redhat.com>
21506
21507 * hash-table.h (hash_table): Add Lazy template parameter defaulted
21508 to false, if true, don't alloc_entries during construction, but defer
21509 it to the first method that needs m_entries allocated.
21510 (hash_table::hash_table, hash_table::~hash_table,
21511 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21512 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21513 hash_table::clear_slot, hash_table::traverse_noresize,
21514 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21515 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21516 false.
21517 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21518 NO_INSERT instead of find_with_hash.
21519 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21520 hash_set::m_table): Add Lazy to template params of hash_table.
21521 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21522 * attribs.c (test_attribute_exclusions): Likewise.
21523 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21524 hash_set. Add tests for hash_set with Lazy = true.
21525
21526 2019-03-21 Richard Biener <rguenther@suse.de>
21527
21528 PR tree-optimization/89779
21529 * tree.c (tree_nop_conversion): Consolidate and fix defensive
21530 checks with respect to released SSA names now having error_mark_node
21531 type.
21532 * fold-const.c (operand_equal_p): Likewise.
21533
21534 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
21535
21536 PR target/89775
21537 * config/s390/s390.c (global_not_special_regno_p): Move to make it
21538 available to ...
21539 (s390_optimize_register_info): Use global_not_special_regno_p to
21540 check for global regs.
21541
21542 2019-03-20 Jakub Jelinek <jakub@redhat.com>
21543
21544 PR target/89752
21545 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21546 update this_alternative nor this_alternative_set.
21547
21548 2019-03-19 Jim Wilson <jimw@sifive.com>
21549
21550 PR target/89411
21551 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
21552 align, size, offset. Use them to handle a BLKmode reference. Update
21553 comment.
21554 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21555
21556 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21557
21558 PR rtl-optimization/89768
21559 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21560 instead of GEN_INT.
21561 (unroll_loop_runtime_iterations): Likewise.
21562
21563 2019-03-19 Martin Sebor <msebor@redhat.com>
21564
21565 PR tree-optimization/89644
21566 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21567 rather than endptr as an indicator of nul-termination.
21568
21569 PR tree-optimization/89644
21570 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21571 arrays in determining sequence sizes in strncpy and stpncpy.
21572
21573 2019-03-19 Martin Liska <mliska@suse.cz>
21574
21575 PR middle-end/89737
21576 * predict.c (combine_predictions_for_bb): Empty likely_edges and
21577 unlikely_edges if there's an edge that belongs to both these sets.
21578
21579 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
21580
21581 PR target/89746
21582 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21583 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21584 go via a stack temporary.
21585
21586 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21587
21588 PR target/89378
21589 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21590 instead of gen_rtx_SUBREG.
21591 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21592
21593 2019-03-19 Richard Biener <rguenther@suse.de>
21594
21595 PR debug/88389
21596 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21597
21598 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
21599
21600 PR lto/87809
21601 PR lto/89335
21602 * tree.c (free_lang_data_in_decl): Do not free context of C++
21603 destrutors.
21604
21605 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21606
21607 PR target/89506
21608 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21609 subs for the first alternative except when operands[3] is 1.
21610
21611 PR target/89752
21612 * gimplify.c (gimplify_asm_expr): For output argument with
21613 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21614 diagnose error.
21615
21616 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
21617
21618 PR rtl-optimization/89753
21619 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21620 explicit unrolling factor even more robust.
21621
21622 2019-03-19 Jakub Jelinek <jakub@redhat.com>
21623
21624 PR target/89726
21625 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21626 compensation use x2 += 1 instead of x2 -= -1 and when honoring
21627 signed zeros, do another copysign after the compensation.
21628
21629 2019-03-18 Martin Sebor <msebor@redhat.com>
21630
21631 PR tree-optimization/89720
21632 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21633 more conservatively, the same as anti-range.
21634
21635 2019-03-18 Richard Biener <rguenther@suse.de>
21636
21637 PR middle-end/88945
21638 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21639 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21640 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
21641 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21642
21643 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
21644
21645 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21646 Extend queue to 1024 entries.
21647 Add "consumed" field.
21648 (gomp_print_output): Remove print_index parameter.
21649 Add final parameter.
21650 Change limit to unsigned.
21651 Use consumed field to implement circular buffer.
21652 Detect interrupted print in final pass.
21653 Flush output at the end.
21654 (run): Update gomp_print_output usage.
21655 (main): Initialize kernargs->output_data.consumed.
21656
21657 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
21658
21659 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21660 calculation of the minimum number of scalar iterations for
21661 fully-predicated loops.
21662
21663 2019-03-18 Martin Jambor <mjambor@suse.cz>
21664
21665 PR tree-optimization/89546
21666 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21667 any propagation to its children took place.
21668
21669 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21670
21671 PR target/89627
21672 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21673 parameter, and make use of it.
21674 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21675
21676 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21677
21678 * config/arc/arc.opt (mcode-density-frame): Get the inital value
21679 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21680 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21681 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21682 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21683 match what the ops is doing.
21684 (push_multi_fp_blink): Likewise.
21685 * config/arc/arc.c (arc_override_options): Enable enter/leave when
21686 compiling for size and elf target.
21687 (arc_save_callee_enter): Adjust note to match what enter/leave
21688 operation does.
21689
21690 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21691
21692 * config/arc/arc.md (tst_movb): Fix constraint.
21693
21694 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21695
21696 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21697
21698 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
21699
21700 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21701 * config/arc/arc.c (arc_conditional_register_usage): Remove all
21702 reg_alloc_order references.
21703 (size_alloc_order): Define.
21704 (arc_adjust_reg_alloc_order): New function.
21705 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21706 order.
21707 (ADJUST_REG_ALLOC_ORDER): Define.
21708 (HONOR_REG_ALLOC_ORDER): Likewise.
21709
21710 2019-03-18 Richard Biener <rguenther@suse.de>
21711
21712 PR target/87561
21713 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21714 loads and stores a bit more.
21715
21716 2019-03-18 Richard Biener <rguenther@suse.de>
21717
21718 PR target/87561
21719 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21720 load pessimization to stores as well.
21721
21722 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
21723
21724 PR middle-end/86979
21725 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21726 successor, use NULL as its av set.
21727
21728 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21729
21730 PR rtl-optimization/89721
21731 * lra-constraints (invariant_p): Return false if side_effects_p holds.
21732
21733 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
21734
21735 PR target/87532
21736 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21737 When handling vec_extract, use modular arithmetic to allow
21738 constant selectors greater than vector length.
21739 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21740 V1TImode vectors to have constant selector values greater than 0.
21741 Use modular arithmetic to compute vector index.
21742 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21743 index for in-memory vectors. Correct code generation for
21744 in-register vectors.
21745 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21746 compute index.
21747
21748 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
21749
21750 PR c++/88534
21751 PR c++/88537
21752 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21753 VAR_DECL args.
21754
21755 2019-03-15 Jakub Jelinek <jakub@redhat.com>
21756
21757 PR c++/89709
21758 * tree.c (inchash::add_expr): Strip any location wrappers.
21759 * fold-const.c (operand_equal_p): Move stripping of location wrapper
21760 after hash verification.
21761
21762 PR debug/89704
21763 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21764 SIGN_EXTEND and ZERO_EXTEND.
21765
21766 2019-03-14 Jason Merrill <jason@redhat.com>
21767 Jakub Jelinek <jakub@redhat.com>
21768
21769 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21770 than if is_empty (*slot).
21771 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21772 existing elt and for elt removal.
21773 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21774 of already removed elt.
21775
21776 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
21777
21778 PR target/89650
21779 * config/i386/i386.c (remove_partial_avx_dependency): Handle
21780 REG_EH_REGION note.
21781
21782 2019-03-14 Martin Liska <mliska@suse.cz>
21783
21784 PR other/89712
21785 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21786
21787 2019-03-14 Richard Biener <rguenther@suse.de>
21788
21789 PR target/89711
21790 * config/i386/i386.c (make_resolver_func): Properly set
21791 DECL_CONTEXT on the RESULT_DECL.
21792 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21793
21794 2019-03-14 Richard Biener <rguenther@suse.de>
21795
21796 * gimple-pretty-print.c: Include cfgloop.h.
21797 (dump_gimple_phi): Adjust.
21798 (dump_gimple_bb_header): Dump loop header for GIMPLE.
21799 (pp_cfg_jump): Adjust.
21800 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21801 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21802 (lower_phi_internal_fn): Remove.
21803 (verify_gimple_call): Remove IFN_PHI special-casing.
21804 (dump_function_to_file): Dump IL state.
21805 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21806 done to deal with PHI nodes being present in non-SSA state.
21807
21808 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21809
21810 PR ipa/89684
21811 * multiple_target.c (create_dispatcher_calls): Change
21812 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21813 In the node->iterate_referring loop, push *ref rather than ref, call
21814 ref->remove_reference () and always pass 0 to iterate_referring.
21815
21816 PR rtl-optimization/89679
21817 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21818 would contain a paradoxical SUBREG.
21819
21820 2019-03-14 Richard Biener <rguenther@suse.de>
21821
21822 PR tree-optimization/89710
21823 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21824 safe_dyn_cast.
21825
21826 2019-03-14 Martin Liska <mliska@suse.cz>
21827
21828 * coverage.c (coverage_begin_function): Stream also
21829 end_column.
21830 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
21831 documentation about function declaration location.
21832 * gcov-dump.c (tag_function): Print whole range
21833 of function declaration.
21834 * gcov.c (struct function_info): Add end_column field.
21835 (function_info::function_info): Initialize it.
21836 (output_json_intermediate_file): Output {start,end}_column
21837 fields.
21838 (read_graph_file): Read end_column.
21839
21840 2019-03-14 Richard Biener <rguenther@suse.de>
21841
21842 PR middle-end/89698
21843 * fold-const.c (operand_equal_p): For INDIRECT_REF check
21844 that the access types are similar.
21845
21846 2019-03-14 Jakub Jelinek <jakub@redhat.com>
21847
21848 PR tree-optimization/89703
21849 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21850 aren't compatible also with builtin_decl_explicit. Check pure
21851 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21852 and BUILT_IN_STPNCPY{,_CHK}.
21853
21854 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
21855
21856 PR target/89523
21857 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21858 addr32 prefix to VSIB address for X32.
21859 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21860 "%M2" to opcode.
21861 (*avx512pf_gatherpf<mode>df_mask): Likewise.
21862 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21863 (*avx512pf_scatterpf<mode>df_mask): Likewise.
21864 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21865 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21866 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21867 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21868 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21869 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21870 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21871 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21872 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21873 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21874 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21875 (*avx512f_scatterdi<mode>): Likewise.
21876
21877 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
21878
21879 PR target/85860
21880 * lra-constraints.c (inherit_in_ebb): Update
21881 potential_reload_hard_regs along with live_hard_regs.
21882
21883 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21884
21885 PR debug/89498
21886 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21887 DWARF_OFFSET_SIZE.
21888 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21889
21890 2019-03-13 Martin Sebor <msebor@redhat.com>
21891
21892 PR tree-optimization/89662
21893 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21894 has a size.
21895
21896 2019-03-13 Richard Biener <rguenther@suse.de>
21897
21898 PR middle-end/89677
21899 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21900 throw FP expressions at tree-affine.
21901
21902 2019-03-14 Richard Biener <rguenther@suse.de>
21903
21904 * tree-pretty-print.c (dump_generic_node): For -gimple properly
21905 dump negative integer constants using _Literal (type) -num.
21906
21907 2019-03-13 Jakub Jelinek <jakub@redhat.com>
21908
21909 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21910 nonlocal_value member.
21911
21912 PR middle-end/88588
21913 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21914 (ipa_simd_modify_function_body): Handle PHIs.
21915
21916 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21917
21918 * config/s390/s390.c (s390_option_override_internal): Use more
21919 aggressive inlining parameters.
21920
21921 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21922
21923 * config/s390/3906.md: New file.
21924 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21925 (LONGRUNNING_THRESHOLD): Remove.
21926 (MAX_SCHED_MIX_SCORE): Decrease.
21927 (MAX_SCHED_MIX_DISTANCE): Decrease.
21928 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21929 (struct s390_sched_state): New struct to hold scheduling state.
21930 (S390_SCHED_STATE_NORMAL): Remove.
21931 (S390_SCHED_STATE_CRACKED): Remove.
21932 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21933 (s390_get_sched_attrmask): Use new attribute.
21934 (s390_get_unit_mask): Use new units.
21935 (s390_is_fpd): New function.
21936 (s390_is_fxd): New function.
21937 (s390_is_longrunning): New function.
21938 (s390_sched_score): Use new functions.
21939 (s390_sched_reorder): Likewise.
21940 (s390_sched_variable_issue): Rework and use new functions.
21941 (s390_sched_init): Use new functions.
21942 * config/s390/s390.h (s390_tune_attr): Add z14.
21943 * config/s390/s390.md: Add z14.
21944
21945 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
21946
21947 * config/s390/2964.md: Update pipeline description.
21948 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21949 (LONGRUNNING_THRESHOLD): Remove.
21950 (LATENCY_FACTOR): Remove.
21951 (s390_get_unit_mask): Add unit.
21952 (s390_sched_score): Use fxd/fpd.
21953 (s390_sched_variable_issue): Use fxd/fpd.
21954
21955 2019-03-12 Martin Liska <mliska@suse.cz>
21956
21957 * config/i386/i386.c: Reword an error message.
21958
21959 2019-03-12 Martin Jambor <mjambor@suse.cz>
21960
21961 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21962 terminate with newline.
21963
21964 2019-03-12 Jakub Jelinek <jakub@redhat.com>
21965
21966 PR target/52726
21967 * config/s390/s390.md (tabort): Use %wd instead of
21968 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21969 letters and periods.
21970 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21971 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21972 's with %< and %>.
21973
21974 PR middle-end/89663
21975 * builtins.c (expand_builtin_int_roundingfn,
21976 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21977 gcc_unreachable if validate_arglist fails.
21978
21979 2019-03-12 Richard Biener <rguenther@suse.de>
21980
21981 PR tree-optimization/89664
21982 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21983 free the occurance tree after the early out.
21984
21985 2019-03-11 Jakub Jelinek <jakub@redhat.com>
21986
21987 PR middle-end/89655
21988 PR bootstrap/89656
21989 * vr-values.c (vr_values::update_value_range): If
21990 old_vr->varying_p (), don't update it, make new_vr also VARYING
21991 and return false.
21992
21993 2019-03-11 Martin Liska <mliska@suse.cz>
21994
21995 * config/aarch64/aarch64.c (aarch64_override_options_internal):
21996 Fix double string quoting.
21997
21998 2019-03-11 Martin Liska <mliska@suse.cz>
21999
22000 * collect-utils.c (collect_wait): Wrap apostrophes
22001 in gcc internal format with %'.
22002 * collect2.c (main): Likewise.
22003 (scan_prog_file): Likewise.
22004 (scan_libraries): Likewise.
22005 * config/i386/i386.c (ix86_expand_call): Likewise.
22006 (ix86_handle_interrupt_attribute): Likewise.
22007 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
22008 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
22009 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
22010 * lto-wrapper.c (find_crtoffloadtable): Likewise.
22011 * symtab.c (symtab_node::verify_base): Likewise.
22012 * tree-cfg.c (verify_gimple_label): Likewise.
22013 * tree.c (verify_type_variant): Likewise.
22014
22015 2019-03-11 Martin Liska <mliska@suse.cz>
22016
22017 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
22018 in a string format message and fix GNU coding style.
22019 (expand_builtin_set_thread_pointer): Likewise.
22020 * common/config/aarch64/aarch64-common.c
22021 (aarch64_rewrite_selected_cpu): Likewise.
22022 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
22023 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
22024 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
22025 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
22026 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
22027 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
22028 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
22029 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
22030 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
22031 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
22032 Likewise.
22033 * common/config/riscv/riscv-common.c
22034 (riscv_subset_list::parsing_subset_version): Likewise.
22035 (riscv_subset_list::parse_std_ext): Likewise.
22036 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22037 (riscv_subset_list::parse): Likewise.
22038 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
22039 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
22040 (aarch64_override_options_internal): Likewise.
22041 (aarch64_validate_mcpu): Likewise.
22042 (aarch64_validate_march): Likewise.
22043 (aarch64_validate_mtune): Likewise.
22044 (aarch64_override_options): Likewise.
22045 * config/alpha/alpha.c (alpha_option_override): Likewise.
22046 * config/arc/arc.c (arc_init): Likewise.
22047 (parse_mrgf_banked_regs_option): Likewise.
22048 (arc_override_options): Likewise.
22049 (arc_expand_builtin_aligned): Likewise.
22050 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
22051 (arm_expand_builtin): Likewise.
22052 * config/arm/arm.c (arm_option_check_internal): Likewise.
22053 (arm_configure_build_target): Likewise.
22054 (arm_option_override): Likewise.
22055 (arm_options_perform_arch_sanity_checks): Likewise.
22056 (arm_handle_cmse_nonsecure_entry): Likewise.
22057 (arm_handle_cmse_nonsecure_call): Likewise.
22058 (arm_tls_referenced_p): Likewise.
22059 (thumb1_expand_prologue): Likewise.
22060 * config/avr/avr.c (avr_option_override): Likewise.
22061 * config/bfin/bfin.c (bfin_option_override): Likewise.
22062 * config/c6x/c6x.c (c6x_option_override): Likewise.
22063 * config/cr16/cr16.c (cr16_override_options): Likewise.
22064 * config/cris/cris.c (cris_option_override): Likewise.
22065 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
22066 * config/darwin-c.c (macosx_version_as_macro): Likewise.
22067 * config/darwin.c (darwin_override_options): Likewise.
22068 * config/frv/frv.c (frv_expand_builtin): Likewise.
22069 * config/h8300/h8300.c (h8300_option_override): Likewise.
22070 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
22071 (ix86_option_override_internal): Likewise.
22072 (warn_once_call_ms2sysv_xlogues): Likewise.
22073 (ix86_expand_prologue): Likewise.
22074 (split_stack_prologue_scratch_regno): Likewise.
22075 (ix86_warn_parameter_passing_abi): Likewise.
22076 * config/ia64/ia64.c (fix_range): Likewise.
22077 * config/m68k/m68k.c (m68k_option_override): Likewise.
22078 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
22079 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
22080 (mips_set_compression_mode): Likewise.
22081 * config/mmix/mmix.c (mmix_option_override): Likewise.
22082 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
22083 * config/msp430/msp430.c (msp430_option_override): Likewise.
22084 * config/nds32/nds32.c (nds32_option_override): Likewise.
22085 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
22086 (nios2_option_override): Likewise.
22087 (nios2_expand_custom_builtin): Likewise.
22088 * config/nvptx/mkoffload.c (main): Likewise.
22089 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
22090 * config/pa/pa.c (fix_range): Likewise.
22091 (pa_option_override): Likewise.
22092 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
22093 (riscv_option_override): Likewise.
22094 * config/rl78/rl78.c (rl78_option_override): Likewise.
22095 * config/rs6000/aix61.h: Likewise.
22096 * config/rs6000/aix71.h: Likewise.
22097 * config/rs6000/aix72.h: Likewise.
22098 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
22099 * config/rs6000/freebsd64.h: Likewise.
22100 * config/rs6000/linux64.h: Likewise.
22101 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22102 (rs6000_expand_zeroop_builtin): Likewise.
22103 (rs6000_expand_mtfsb_builtin): Likewise.
22104 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
22105 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
22106 (rs6000_invalid_builtin): Likewise.
22107 (rs6000_expand_split_stack_prologue): Likewise.
22108 * config/rs6000/rtems.h: Likewise.
22109 * config/rx/rx.c (valid_psw_flag): Likewise.
22110 (rx_expand_builtin): Likewise.
22111 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
22112 * config/s390/s390.c (s390_expand_builtin): Likewise.
22113 (s390_function_profiler): Likewise.
22114 (s390_option_override_internal): Likewise.
22115 (s390_option_override): Likewise.
22116 * config/sh/sh.c (sh_option_override): Likewise.
22117 (sh_builtin_saveregs): Likewise.
22118 (sh_fix_range): Likewise.
22119 * config/sh/vxworks.h: Likewise.
22120 * config/sparc/sparc.c (sparc_option_override): Likewise.
22121 * config/spu/spu.c (spu_option_override): Likewise.
22122 (fix_range): Likewise.
22123 * config/visium/visium.c (visium_option_override): Likewise.
22124 (visium_handle_interrupt_attr): Likewise.
22125 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
22126 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
22127 (dbg_cnt_process_opt): Likewise.
22128 * dwarf2out.c (output_dwarf_version): Likewise.
22129 * except.c (expand_eh_return): Likewise.
22130 * gcc.c (defined): Likewise.
22131 (driver_handle_option): Likewise.
22132 (process_command): Likewise.
22133 (compare_files): Likewise.
22134 (driver::prepare_infiles): Likewise.
22135 (driver::do_spec_on_infiles): Likewise.
22136 (driver::maybe_run_linker): Likewise.
22137 * omp-offload.c (oacc_parse_default_dims): Likewise.
22138 * opts-global.c (handle_common_deferred_options): Likewise.
22139 * opts.c (parse_sanitizer_options): Likewise.
22140 (common_handle_option): Likewise.
22141 (enable_warning_as_error): Likewise.
22142 * passes.c (enable_disable_pass): Likewise.
22143 * plugin.c (parse_plugin_arg_opt): Likewise.
22144 (default_plugin_dir_name): Likewise.
22145 * targhooks.c (default_expand_builtin_saveregs): Likewise.
22146 (default_pch_valid_p): Likewise.
22147 * toplev.c (init_asm_output): Likewise.
22148 (process_options): Likewise.
22149 (toplev::run_self_tests): Likewise.
22150 * tree-cfg.c (verify_gimple_call): Likewise.
22151 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
22152 (tree_inlinable_function_p): Likewise.
22153 * var-tracking.c (vt_find_locations): Likewise.
22154
22155 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
22156
22157 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
22158 only on the else branch.
22159
22160 2019-03-11 Martin Liska <mliska@suse.cz>
22161
22162 * gcov.c (output_intermediate_json_line): Print function
22163 name of each line.
22164 (output_json_intermediate_file): Add new argument.
22165 * doc/gcov.texi: Document the change.
22166
22167 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
22168
22169 PR rtl-optimization/89588
22170 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
22171 explicit unrolling factor more robust.
22172
22173 2019-03-11 Richard Biener <rguenther@suse.de>
22174
22175 PR tree-optimization/89649
22176 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22177 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22178 on the prolog and epilog loops.
22179 (vect_loop_versioning): Return copy of loop.
22180 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22181 on the non-vectorized version of the loop.
22182
22183 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
22184
22185 PR target/68924
22186 * config/i386/sse.md (*vec_extractv2di_0_sse):
22187 Add (=r,x) alternative and corresponding splitter.
22188
22189 2019-03-10 Martin Jambor <mjambor@suse.cz>
22190
22191 PR tree-optimization/85762
22192 PR tree-optimization/87008
22193 PR tree-optimization/85459
22194 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22195 it points to if there is a type changing MEM_REF. Adjust all callers.
22196 (build_accesses_from_assign): Disable total scalarization if
22197 contains_vce_or_bfcref_p returns true through the new parameter, for
22198 both rhs and lhs.
22199
22200 2019-03-09 Jakub Jelinek <jakub@redhat.com>
22201
22202 PR c/88568
22203 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22204 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22205
22206 PR target/79645
22207 * common.opt (fdiagnostics-show-labels,
22208 fdiagnostics-show-line-numbers, fdiagnostics-format=,
22209 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22210 gas-locview-support, ginline-points, ginternal-reset-location-views):
22211 Terminate description text with a dot.
22212 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22213 * config/mcore/mcore.opt (m210, m340): Likewise.
22214 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22215 mnops=): Start description text with a capital letter.
22216 * config/arc/arc.opt (msize-level=): Likewise.
22217 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22218 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22219 mnewlib): Likewise.
22220 * config/ft32/ft32.opt (msim): Likewise.
22221 (mft32b, mcompress): Likewise. Terminate description text with a dot.
22222 (mnodiv, mnopm): Terminate description text with a dot.
22223 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22224 a colon.
22225 * config/i386/i386.opt (prefer_vector_width, instrument_return):
22226 Likewise.
22227 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22228 text.
22229
22230 PR rtl-optimization/89634
22231 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22232 are modified in BB_END (e->src) instruction.
22233
22234 2019-03-08 David Malcolm <dmalcolm@redhat.com>
22235
22236 PR target/79926
22237 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22238 messages more amenable to translation, and improve wording.
22239
22240 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
22241
22242 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22243 ud- and du-chains between phases.
22244
22245 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
22246
22247 PR debug/89631
22248 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22249 instead of POLY_INT_CST.
22250
22251 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
22252
22253 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22254 requirement.
22255
22256 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
22257
22258 PR target/68924
22259 PR target/78782
22260 PR target/87558
22261 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22262 (_mm_storeu_si64): Ditto.
22263
22264 2019-03-08 Martin Liska <mliska@suse.cz>
22265
22266 PR target/86952
22267 * config/i386/i386.c (ix86_option_override_internal): Disable
22268 jump tables when retpolines are used.
22269
22270 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
22271
22272 PR go/63560
22273 * ipa-split.c (execute_split_functions): Do not split
22274 'noinline' or 'section' function.
22275
22276 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22277
22278 PR target/79846
22279 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22280 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22281 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
22282
22283 PR ipa/80000
22284 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22285 from diagnostics. Formatting fixes.
22286
22287 PR target/85665
22288 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22289 warn_odr diagnostics.
22290
22291 PR other/80058
22292 * lra-constraints.c (process_alt_operands): Avoid one space before
22293 " at the end of line and another after " on another line in a string
22294 literal.
22295 * attribs.c (handle_dll_attribute): Likewise.
22296 * config/avr/avr-devices.c (avr_texinfo): Likewise.
22297
22298 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22299 warning_at or inform messages in G_() if there is no ?:.
22300
22301 PR tree-optimization/89550
22302 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22303 returned true. Formatting fixes.
22304 (expand_builtin_strnlen): Formatting fixes.
22305 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22306 if warning_at returned true.
22307 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22308
22309 2019-03-08 Richard Biener <rguenther@suse.de>
22310
22311 PR middle-end/89578
22312 * cfgloop.h (struct loop): Add owned_clique field.
22313 * cfgloopmanip.c (copy_loop_info): Copy it.
22314 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22315 cliques.
22316 * tree-inline.c (copy_loops): Remap owned_clique.
22317 * lto-streamer-in.c (input_cfg): Stream owned_clique.
22318 * lto-streamer-out.c (output_cfg): Likewise.
22319
22320 2019-03-08 Jakub Jelinek <jakub@redhat.com>
22321
22322 PR target/80190
22323 * config/darwin.c: Include intl.h.
22324 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22325 composing the message out of two separate parts.
22326
22327 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22328
22329 PR target/80003
22330 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22331 doesn't start with a capital letter and doesn't end with a dot.
22332 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22333 with a capital letter.
22334 (ix86_mangle_function_version_assembler_name): Likewise.
22335 (ix86_generate_version_dispatcher_body): Likewise.
22336 (fold_builtin_cpu): Likewise.
22337 (get_builtin_code_for_version): Likewise. Remove extraneous space.
22338 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22339 translators, wrap full type name in %qs.
22340
22341 PR translation/79999
22342 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22343 depend clause with source (or sink) modifier.
22344 * omp-expand.c (expand_omp_ordered_sink): Likewise.
22345
22346 PR target/89602
22347 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22348 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22349 (avx512f_load<mode>_mask): New define_expand.
22350 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22351 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22352 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22353 __builtin_ia32_movess_mask): New builtins.
22354 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22355 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22356 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22357 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22358
22359 2019-03-07 Martin Jambor <mjambor@suse.cz>
22360
22361 PR lto/87525
22362 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22363 for extern inline functions.
22364
22365 2019-03-07 Martin Jambor <mjambor@suse.cz>
22366
22367 PR ipa/88235
22368 * cgraph.h (cgraph_node): New inline method former_thunk_p.
22369 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22370 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22371 have multiple callees. At the end check if declarations match as
22372 opposed to cgraph_nodes.
22373
22374 2019-03-07 Martin Liska <mliska@suse.cz>
22375
22376 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22377 which is equivalent to searching for this in clones chain.
22378 * symtab.c (symtab_node::verify_base): Similarly compare ASM
22379 names with a neighbour and special case first node in a chain.
22380
22381 2019-01-25 Jason Merrill <jason@redhat.com>
22382
22383 PR c++/80916 - spurious "static but not defined" warning.
22384 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22385 for an internal symbol with DECL_EXTERNAL.
22386
22387 2019-04-07 Richard Biener <rguenther@suse.de>
22388
22389 PR middle-end/89618
22390 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22391 * tree-inline.c (copy_loops): Simplify.
22392
22393 2019-03-07 Martin Liska <mliska@suse.cz>
22394
22395 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22396
22397 2019-03-07 Richard Biener <rguenther@suse.de>
22398
22399 PR tree-optimization/89595
22400 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22401 stmt iterator as reference, take boolean output parameter to
22402 indicate whether the stmt was removed and thus the iterator
22403 already advanced.
22404 (dom_opt_dom_walker::before_dom_children): Re-iterate over
22405 stmts created by folding.
22406
22407 2019-03-07 Jakub Jelinek <jakub@redhat.com>
22408
22409 PR c++/89585
22410 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22411 at toplevel.
22412
22413 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
22414
22415 PR rtl-optimization/88845
22416 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22417 LRA.
22418 * lra.c (remove_scratches_1): New function.
22419 (remove_scratches): Use it.
22420 (lra_emit_move): Likewise.
22421
22422 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
22423
22424 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22425 unaligned_access variable.
22426 * config/arc/arc.c (arc_override_options): Set unaligned access
22427 default on for HS CPUs.
22428 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22429
22430 2019-03-06 Martin Liska <mliska@suse.cz>
22431
22432 PR gcov-profile/89577
22433 * doc/gcov.texi: Prefer to use --coverage.
22434 * doc/sourcebuild.texi: Likewise.
22435
22436 2019-03-02 Jason Merrill <jason@redhat.com>
22437
22438 PR c++/86485 - -Wmaybe-unused with empty class ?:
22439 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22440
22441 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22442
22443 PR target/89587
22444 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22445 if_multiarch.
22446
22447 PR middle-end/89590
22448 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22449 exactly one argument.
22450
22451 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22452 Richard Sandiford <richard.sandiford@arm.com>
22453
22454 PR tree-optimization/89570
22455 * match.pd (vec_cond into cond_op simplification): Don't use
22456 get_conditional_internal_fn, use as_internal_fn (cond_op).
22457
22458 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
22459
22460 PR target/89222
22461 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22462 to decide when to split off a non-zero offset from a symbol.
22463 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22464 in function symbols.
22465
22466 2019-03-05 Richard Biener <rguenther@suse.de>
22467
22468 PR tree-optimization/89594
22469 * tree-if-conv.c (pass_if_conversion::execute): Handle
22470 case where .LOOP_VECTORIZED_FUNCTION was removed.
22471
22472 2019-03-05 Jakub Jelinek <jakub@redhat.com>
22473
22474 PR bootstrap/89560
22475 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22476 instead alloca it only when needed with the needed size.
22477
22478 PR tree-optimization/89570
22479 * match.pd (vec_cond into cond_op simplification): Guard with
22480 vectorized_internal_fn_supported_p test and #if GIMPLE.
22481
22482 PR tree-optimization/89566
22483 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22484 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22485 Punt if get_user_idx_format succeeds, but idx_format argument is
22486 not provided or doesn't have pointer type, or if idx_args is above
22487 number of provided arguments.
22488
22489 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
22490
22491 PR tree-optimization/89437
22492 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22493
22494 2019-03-04 Richard Biener <rguenther@suse.de>
22495
22496 PR middle-end/89572
22497 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22498 safe_dyn_cast.
22499
22500 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
22501
22502 PR tree-optimization/89487
22503 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22504 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22505 (distribute_loop): Don't do runtime alias check if there is non-
22506 addressable data reference.
22507 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22508 is a register variable.
22509
22510 2019-03-02 Jakub Jelinek <jakub@redhat.com>
22511
22512 PR target/89506
22513 * config/arm/arm.md (cmpsi2_addneg): Use
22514 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22515 If operands[2] is 0 or INT_MIN, force use of subs.
22516 (*compare_scc splitter): Use gen_int_mode.
22517 (*negscc): Likewise.
22518 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22519
22520 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
22521 Monk Chiang <sh.chiang04@gmail.com>
22522
22523 * common/config/riscv/riscv-common.c: Include sstream.
22524 (riscv_subset_list::to_string): New.
22525 (riscv_arch_str): Likewise.
22526 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22527 * config.in: Regen.
22528 * config/riscv/riscv-protos.h (riscv_arch_str): New.
22529 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22530 (riscv_emit_attribute): New.
22531 (riscv_file_start): Emit attribute if needed.
22532 (riscv_option_override): Init riscv_emit_attribute_p.
22533 * config/riscv/riscv.opt (mriscv-attribute): New option.
22534 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22535 * configure: Regen.
22536 * doc/install.texi: Document --with-riscv-attribute.
22537 * doc/invoke.texi: Document -mriscv-attribute.
22538
22539 * common/config/riscv/riscv-common.c:
22540 Include config/riscv/riscv-protos.h.
22541 (INCLUDE_STRING): Defined.
22542 (RISCV_DONT_CARE_VERSION): Defined.
22543 (riscv_subset_t): Declare.
22544 (riscv_subset_t::riscv_subset_t): New.
22545 (riscv_subset_list): Declare.
22546 (riscv_subset_list::riscv_subset_list): New.
22547 (riscv_subset_list::~riscv_subset_list): Likewise.
22548 (riscv_subset_list::parsing_subset_version): Likewise.
22549 (riscv_subset_list::parse_std_ext): Likewise.
22550 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22551 (riscv_subset_list::add): Likewise.
22552 (riscv_subset_list::lookup): Likewise.
22553 (riscv_subset_list::xlen): Likewise.
22554 (riscv_subset_list::parse): Likewise.
22555 (riscv_supported_std_ext): Likewise.
22556 (current_subset_list): Likewise.
22557 (riscv_parse_arch_string): Using riscv_subset_list::parse to
22558 parse.
22559
22560 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
22561
22562 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22563 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22564 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22565
22566 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
22567
22568 PR rtl-optimization/85899
22569 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22570 fallthru edges leading to the exit block.
22571
22572 2019-03-01 Tamar Christina <tamar.christina@arm.com>
22573
22574 PR target/89517
22575 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22576 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22577
22578 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
22579
22580 PR tree-optimization/89535
22581 * tree-vect-stmts.c (vectorizable_call): Record the vector types
22582 for each operand. Calculate the fallback choice for mask operands
22583 and pass it to vect_get_vec_def_for_operand.
22584
22585 2019-03-01 Richard Biener <rguenther@suse.de>
22586
22587 PR middle-end/89541
22588 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22589 get virtual operands.
22590 (get_expr_operands): Handle CONST_DECL like other decls.
22591
22592 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22593
22594 PR middle-end/89503
22595 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22596 on DECL_P and EXPR_P.
22597
22598 2019-03-01 Richard Biener <rguenther@suse.de>
22599
22600 PR middle-end/89497
22601 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22602 argument, defaulted to zero.
22603 * passes.c (execute_function_todo): Pass down SSA update flags
22604 to cleanup_tree_cfg.
22605 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22606 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22607 form if requested.
22608 (cleanup_tree_cfg): Get and pass down SSA update flags.
22609
22610 2019-03-01 Jakub Jelinek <jakub@redhat.com>
22611
22612 PR bootstrap/89539
22613 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22614 early_lto_debug argument.
22615
22616 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
22617
22618 PR tree-optimization/89536
22619 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22620 only whether bit #0 of the value is 0 instead of the entire value.
22621
22622 2019-02-28 Marek Polacek <polacek@redhat.com>
22623
22624 PR c++/87068 - missing diagnostic with fallthrough statement.
22625 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22626 at the end of a seq, save its location to walk_stmt_info.
22627 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22628 a switch.
22629
22630 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
22631
22632 PR lto/88585
22633 * tree.c (find_atomic_core_type): Move ahead in file.
22634 (check_base_type): Correctly compare alignments of atomic types.
22635
22636 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
22637
22638 PR target/89455
22639 * config/i386/i386.c (get_builtin_code_for_version): Identify
22640 Westmere from PCLMUL, instead of AES.
22641
22642 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22643
22644 PR target/89434
22645 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22646 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22647 -UINTVAL (...).
22648
22649 2019-02-28 Tamar Christina <tamar.christina@arm.com>
22650
22651 PR target/88530
22652 * config/aarch64/aarch64-option-extensions.def: Document it.
22653 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22654 if empty hwcaps.
22655
22656 2019-02-28 Jakub Jelinek <jakub@redhat.com>
22657
22658 PR c/89520
22659 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22660 builtins if they don't have a single scalar floating point argument.
22661 Formatting fixes.
22662
22663 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
22664
22665 PR rtl-optimization/89490
22666 * varasm.c (get_block_for_section): Bail out for mergeable sections.
22667 (default_use_anchors_for_symbol_p, output_object_block): Assert the
22668 block section is not mergeable.
22669
22670 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22671
22672 PR target/70341
22673 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
22674 old define_insn to ...
22675 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
22676 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22677 Rename old define_insn to ...
22678 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
22679 (thumb2_casesi_internal_pic): New define_expand. Rename old
22680 define_insn to ...
22681 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
22682 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22683 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22684
22685 2019-02-27 Richard Biener <rguenther@suse.de>
22686
22687 PR debug/88878
22688 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22689
22690 2019-02-27 Richard Biener <rguenther@suse.de>
22691
22692 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22693 building.
22694
22695 2019-02-27 Richard Biener <rguenther@suse.de>
22696
22697 PR debug/88878
22698 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22699 parameter, prefix section name with .gnu.debuglto_ if true.
22700 (dwarf2out_finish): Pass false to output_comdat_type_unit.
22701 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22702
22703 2019-02-27 Richard Biener <rguenther@suse.de>
22704
22705 PR debug/89514
22706 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22707 rather than on use_debug_types, doing what output_die does.
22708 (value_format): Likewise.
22709
22710 2019-02-27 Martin Jambor <mjambor@suse.cz>
22711 Martin Sebor <msebor@redhat.com>
22712
22713 * doc/invoke.texi (Warning Options): Reword description of
22714 -Wno-absolute-value.
22715
22716 2019-02-27 Jakub Jelinek <jakub@redhat.com>
22717
22718 PR tree-optimization/89280
22719 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22720 builtin_setjmp_setup_bb): New functions.
22721 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22722 When visiting __builtin_setjmp_setup block, queue in special
22723 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22724 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
22725 from visited after the loop if they don't have any visited successor
22726 blocks.
22727
22728 2018-02-26 Steve Ellcey <sellcey@marvell.com>
22729
22730 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22731 New function.
22732 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22733
22734 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22735
22736 PR c++/89507
22737 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22738 with types other than sizetype/ssizetype.
22739
22740 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22741
22742 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22743 (enum sparc_processor_type): ...this.
22744 (enum sparc_code_model_type): New enumeration type.
22745 (enum sparc_memory_model_type): Tweak comments.
22746 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22747 (mtune): Likewise.
22748 (mcmodel): Use sparc_code_model enumeration and variable.
22749 (sparc_code_model): New enumeration.
22750 (mdebug): Add Undocumented marker.
22751 * config/sparc/sparc.h (enum cmodel): Delete.
22752 (sparc_cmodel): Likewise.
22753 (TARGET_CM_MEDLOW): Adjust to above renaming.
22754 (TARGET_CM_MEDMID): Likewise.
22755 (TARGET_CM_MEDANY): Likewise.
22756 (TARGET_CM_EMBMEDANY): Likewise.
22757 * config/sparc/sparc.c (sparc_cmodel): Delete.
22758 (sparc_option_override): Remove string/value mapping support for the
22759 code model. Move code and memory model support to after the handling
22760 of target flags. Do private machine setup last.
22761 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22762 (sparc_legitimize_reload_address): Likewise.
22763 (sparc_output_mi_thunk): Likewise.
22764 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22765
22766 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22767
22768 PR tree-optimization/89500
22769 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22770 (handle_builtin_strlen): Remove noncst_bound variable. Always
22771 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
22772 cst if the first cst bytes starting at x are known to be non-zero,
22773 even if the string is not zero terminated. Don't try to modify
22774 *si for strnlen. Update strlen_to_stridx only for strlen or if
22775 we can prove strnlen returns the same value as strlen would.
22776
22777 2019-02-26 Martin Liska <mliska@suse.cz>
22778
22779 * alloc-pool.h (struct pool_usage): Remove extra
22780 print_dash_line.
22781 * bitmap.h (struct bitmap_usage): Likewise.
22782 * ggc-common.c (struct ggc_usage): Likewise.
22783 * mem-stats.h (struct mem_usage): Likewise.
22784 (mem_alloc_description::dump): Print dash lines
22785 here and repeat header at the end of a table report.
22786 It's then more readable.
22787 * tree-phinodes.c (phinodes_print_statistics): Make
22788 horizontal alignment.
22789 * tree-ssanames.c (ssanames_print_statistics): Likewise.
22790 * vec.c (struct vec_usage): Remove extra print_dash_line.
22791 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22792
22793 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
22794
22795 * doc/extend.texi (__builtin_object_size):
22796 Use @pxref instead of @xref inside parenthesis.
22797 (__builtin_has_attribute): Add missing comma after @xref.
22798 (__builtin_object_size): Ditto.
22799 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22800
22801 2019-02-26 Jeff Law <law@redhat.com>
22802
22803 PR rtl-optimization/87761
22804 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22805 detect obviously dead insns and delete them.
22806
22807 2019-02-26 Richard Biener <rguenther@suse.de>
22808
22809 PR tree-optimization/89505
22810 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22811 to handle restrict pointed-to vars with multiple subvars
22812 correctly.
22813
22814 2019-02-26 Richard Biener <rguenther@suse.de>
22815
22816 PR tree-optimization/89489
22817 * tree-parloops.c (create_loop_fn): Copy over last_clique.
22818
22819 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
22820
22821 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22822 and move around comment.
22823 <BIT_AND_EXPR>: Likewise.
22824 <BIT_NOT_EXPR>: Add specific handling for boolean types.
22825
22826 2019-02-26 Jakub Jelinek <jakub@redhat.com>
22827
22828 PR target/89474
22829 * config/i386/i386.c (remove_partial_avx_dependency): Call
22830 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22831 after changing possibly many instructions to use that pseudo. Fix up
22832 insertion of v4sf_const0 setter at the start of bb.
22833
22834 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22835
22836 PR c/80409
22837 * doc/extend.texi (Variadic Pointer Args): New section.
22838
22839 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
22840 Martin Sebor <msebor@gmail.com>
22841
22842 * common.opt (Wattribute-alias): Likewise.
22843 * doc/invoke.texi (Option Summary): List general form of
22844 -Wattribute-alias=. List positive form of -Wmissing-attributes.
22845 (-Wmissing-attributes): Invert entry, rewrite and correct default.
22846 Add cross-references.
22847 (-Wattribute-alias): Rewrite and correct default. Mention
22848 considered attributes (same as for -Wmissing-attributes).
22849
22850 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
22851
22852 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22853 (_mm_cvtpd_ps): Likewise.
22854 (_mm_cvttpd_epi32): Likewise.
22855
22856 PR target/89338
22857 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22858 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22859
22860 PR target/89339
22861 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22862
22863 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22864
22865 PR target/88530
22866 * common/config/aarch64/aarch64-common.c
22867 (struct aarch64_option_extension): Add is_synthetic.
22868 (all_extensions): Use it.
22869 (TARGET_OPTION_INIT_STRUCT): Define hook.
22870 (struct gcc_targetm_common): Moved to end.
22871 (all_extensions_by_on): New.
22872 (opt_ext_cmp, typedef opt_ext): New.
22873 (aarch64_option_init_struct): New.
22874 (aarch64_contains_opt): New.
22875 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22876 * config/aarch64/aarch64-option-extensions.def
22877 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22878 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22879 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22880 Set is_synthetic to false.
22881 (crypto): Set is_synthetic to true.
22882 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22883 SYNTHETIC.
22884
22885 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22886
22887 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22888 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22889 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22890 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22891 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22892 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22893 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22894 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22895 Rename ...
22896 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22897 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22898 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22899 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22900 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22901 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22902 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22903 vfmlsl_laneq_high_f16): ... To this.
22904 * config/arm/neon.md: Update comments.
22905
22906 2019-02-25 Tamar Christina <tamar.christina@arm.com>
22907
22908 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22909 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22910 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22911 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22912 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22913 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22914 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22915 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22916 Rename ...
22917 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22918 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22919 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22920 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22921 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22922 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22923 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22924 vfmlslq_laneq_high_f16): ... To this.
22925
22926 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
22927
22928 PR rtl-optimization/86096
22929 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22930 comparing mw_order values.
22931
22932 2019-02-25 Jakub Jelinek <jakub@redhat.com>
22933
22934 PR target/89434
22935 * config/arm/arm.md (*subsi3_carryin_const): Use
22936 arm_neg_immediate_operand predicate instead of
22937 arm_not_immediate_operand, "L" constraint instead of "K" and
22938 print it using %n2 instead of %B2.
22939 (*subsi3_carryin_const0): New define_insn.
22940 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22941 instead of arm_not_operand and "I" constraint instead of "K" and
22942 print it using %n3 instead of %B2. Instead of using match_dup 2 add
22943 another match_operand and in the condition check that it is negation
22944 of operands[2].
22945 (*subsi3_carryin_compare_const0): New define_ins.
22946 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22947 *subsi3_carryin_const.
22948 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22949 split into *subsi3_carryin_compare_const0 if the highpart is zero.
22950
22951 PR target/89438
22952 * config/arm.vfp.md (*negdf2_vfp): Use
22953 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22954 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22955
22956 2019-02-24 Jakub Jelinek <jakub@redhat.com>
22957
22958 PR rtl-optimization/89445
22959 * simplify-rtx.c (simplify_ternary_operation): Don't use
22960 simplify_merge_mask on operands that may trap.
22961 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22962 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
22963 second operand is CONST_VECTOR, check if any element could be zero.
22964 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22965 their operands can trap.
22966
22967 2019-02-23 Martin Sebor <msebor@redhat.com>
22968
22969 * gimple-ssa-sprintf.c (target_strtol): Rename...
22970 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
22971 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
22972 check for range error.
22973
22974 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
22975
22976 PR driver/69471
22977 * opts-common.c (prune_options): Also prune joined switches
22978 with Negative and RejectNegative.
22979 * config/i386/i386.opt (march=): Add Negative(march=).
22980 (mtune=): Add Negative(mtune=).
22981 * doc/options.texi: Document Negative used together with Joined
22982 and RejectNegative.
22983
22984 2019-02-22 Martin Sebor <msebor@redhat.com>
22985
22986 * doc/extend.texi (Other Builtins): Add
22987 __builtin_is_constant_evaluated.
22988
22989 2019-02-22 Richard Biener <rguenther@suse.de>
22990
22991 PR tree-optimization/87609
22992 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22993
22994 2019-02-22 Jeff Law <law@redhat.com>
22995
22996 PR rtl-optimization/87761
22997 * config/mips/mips.md: Add new combiner pattern to recognize
22998 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22999
23000 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
23001
23002 PR target/89324
23003 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
23004 destination register in peepholes generating patterns for ADDS/SUBS.
23005 (add<mode>3_compare0,
23006 *addsi3_compare0_uxtw, add<mode>3_compareC,
23007 add<mode>3_compareV_imm, add<mode>3_compareV,
23008 *adds_<optab><ALLX:mode>_<GPI:mode>,
23009 *subs_<optab><ALLX:mode>_<GPI:mode>,
23010 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
23011 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
23012 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
23013 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
23014 sub<mode>3_compare1): Allow stack pointer for source register.
23015 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
23016
23017 2019-02-22 Martin Sebor <msebor@redhat.com>
23018
23019 PR tree-optimization/88993
23020 PR tree-optimization/88853
23021 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
23022 New helper.
23023 (sprintf_dom_walker::call_info::is_string_func): New helper.
23024 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
23025 for formatted string functions.
23026 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
23027
23028 2019-02-22 Martin Sebor <msebor@redhat.com>
23029
23030 PR c/89425
23031 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
23032 unreachable subexpressions.
23033
23034 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
23035 Hongtao Liu <hongtao.liu@intel.com>
23036 Sunil K Pandey <sunil.k.pandey@intel.com>
23037
23038 PR target/87007
23039 * config/i386/i386-passes.def: Add
23040 pass_remove_partial_avx_dependency.
23041 * config/i386/i386-protos.h
23042 (make_pass_remove_partial_avx_dependency): New.
23043 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
23044 New function.
23045 (pass_data_remove_partial_avx_dependency): New.
23046 (pass_remove_partial_avx_dependency): Likewise.
23047 (make_pass_remove_partial_avx_dependency): Likewise.
23048 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
23049 (*extendsfdf2): Add avx_partial_xmm_update.
23050 (truncdfsf2): Likewise.
23051 (*float<SWI48:mode><MODEF:mode>2): Likewise.
23052 (SF/DF conversion splitters): Disabled for TARGET_AVX.
23053
23054 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
23055
23056 PR middle-end/85598
23057 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
23058 analysis for pass.
23059
23060 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
23061
23062 PR target/89444
23063 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
23064 (PTA_SKYLAKE): Add PTA_AES.
23065 (PTA_GOLDMONT): Likewise.
23066
23067 2019-02-22 Sudakshina Das <sudi.das@arm.com>
23068
23069 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
23070 instruction if enabled.
23071 (aarch64_override_options): Remove reference to return address key.
23072
23073 2019-02-22 Richard Biener <rguenther@suse.de>
23074
23075 PR tree-optimization/89440
23076 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
23077 not necessary assert.
23078
23079 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
23080
23081 PR fortran/72741
23082 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
23083 (oacc_replace_fn_attrib_attr): ... this new function.
23084 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
23085 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
23086
23087 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23088
23089 * config/arm/arm-cpus.in (ares): Rename to...
23090 (neoverse-n1): ... This. Add ares as alias.
23091 * config/arm/arm-tables.opt: Regenerate.
23092 * config/arm/arm-tune.md: Likewise.
23093 * doc/invoke.txt (ARM Options): Document neoverse-n1.
23094
23095 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23096
23097 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
23098 * config/aarch64/aarch64-tune.md: Regenerate.
23099 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
23100
23101 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23102
23103 * config/aarch64/aarch64.c (ares_tunings): Rename to...
23104 (neoversen1_tunings): ... This.
23105 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
23106 (neoverse-n1): New CPU.
23107 * config/aarch64/aarch64-tune.md: Regenerate.
23108 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
23109
23110 2019-02-22 Richard Biener <rguenther@suse.de>
23111
23112 PR middle-end/87609
23113 * cfghooks.h (dependence_hash): New typedef.
23114 (struct copy_bb_data): New type.
23115 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
23116 (duplicate_block): Likewise.
23117 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
23118 (copy_bbs): Create and pass down copy_bb_data.
23119 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
23120 (rtl_duplicate_bb): Likewise.
23121 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
23122 remap dependence info.
23123
23124 2019-02-22 Richard Biener <rguenther@suse.de>
23125
23126 PR tree-optimization/87609
23127 * tree-core.h (tree_base): Document special clique values.
23128 * tree-inline.c (remap_dependence_clique): Do not use the
23129 special clique value of one.
23130 (maybe_set_dependence_info): Use clique one.
23131 (clear_dependence_clique): New callback.
23132 (compute_dependence_clique): Clear clique one from all refs
23133 before assigning it (again).
23134
23135 2019-02-21 Martin Sebor <msebor@redhat.com>
23136
23137 * doc/extend.texi (__clear_cache): Correct signature.
23138
23139 2019-02-21 Ian Lance Taylor <iant@golang.org>
23140
23141 PR go/89170
23142 * varasm.c (decode_addr_const): Call lookup_constant_def rather
23143 than output_constant_def.
23144 (add_constant_to_table): New static function.
23145 (output_constant_def): Call add_constant_to_table.
23146 (tree_output_constant_def): Likewise.
23147
23148 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23149
23150 PR c++/89285
23151 * builtins.c (fold_builtin_arith_overflow): If first two args are
23152 INTEGER_CSTs, set intres and ovfres to constants rather than calls
23153 to ifn.
23154
23155 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
23156
23157 PR target/87412
23158 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
23159 error for -mindirect-branch/-mfunction-return with incompatible
23160 -fcf-protection.
23161
23162 2019-02-21 Jakub Jelinek <jakub@redhat.com>
23163
23164 PR bootstrap/88714
23165 * constraints.md (q): Remove.
23166 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
23167 instead of q.
23168
23169 2019-02-21 Martin Jambor <mjambor@suse.cz>
23170
23171 PR hsa/89302
23172 * omp-general.c (omp_extract_for_data): Removed a duplicate call
23173 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23174 (omp_adjust_for_condition): ...here. Added necessary parameters.
23175 * omp-general.h (omp_adjust_for_condition): Updated declaration.
23176 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23177 proper values to new parameters of omp_adjust_for_condition.
23178
23179 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23180
23181 PR middle-end/89412
23182 * expr.c (expand_assignment): If result is a MEM, use change_address
23183 instead of simplify_gen_subreg.
23184
23185 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23186 David Malcolm <dmalcolm@redhat.com>
23187
23188 PR middle-end/89091
23189 * fold-const.c (decode_field_reference): Return NULL_TREE if
23190 lang_hooks.types.type_for_size returns NULL. Check it before
23191 overwriting *exp_. Use return NULL_TREE instead of return 0.
23192
23193 2019-02-20 Jakub Jelinek <jakub@redhat.com>
23194
23195 PR middle-end/88074
23196 PR middle-end/89415
23197 * toplev.c (do_compile): Double the emin/emax exponents to workaround
23198 buggy mpc_norm.
23199
23200 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
23201
23202 PR target/89397
23203 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23204 TARGET_SSE in addition to TARGET_SSE_MATH.
23205
23206 (ix86_excess_precision): Ditto.
23207 (ix86_float_exceptions_rounding_supported_p): Ditto.
23208 (use_rsqrt_p): Ditto.
23209 * config/i386/sse.md (rsqrt<mode>2): Ditto.
23210
23211 2019-02-20 David Malcolm <dmalcolm@redhat.com>
23212
23213 PR c/89410
23214 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23215 linenum_arith_t when determining if two adjacent line spans are
23216 close enough to merge.
23217 (diagnostic_show_locus): Use linenum_arith_t when iterating over
23218 lines within each line_span.
23219
23220 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23221
23222 PR target/86487
23223 * lra-constraints.c(uses_hard_regs_p): Fix handling of
23224 paradoxical SUBREGS.
23225
23226 2019-02-20 Li Jia He <helijia@linux.ibm.com>
23227
23228 PR target/88100
23229 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23230 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23231 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23232 range checking it.
23233
23234 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
23235
23236 * config/gcn/gcn.c (print_operand): Fix typo.
23237
23238 2019-02-19 Richard Biener <rguenther@suse.de>
23239
23240 PR middle-end/88074
23241 * toplev.c (do_compile): Initialize mpfr's exponent range
23242 based on available float modes.
23243
23244 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
23245
23246 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23247 as long as the epilogue isn't completed.
23248
23249 2019-02-18 Martin Sebor <msebor@redhat.com>
23250
23251 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23252 __has_cpp_attribute, and __has_include.
23253
23254 2019-02-18 Martin Sebor <msebor@redhat.com>
23255
23256 * doc/invoke.texi (-Wreturn-type): Correct and expand.
23257
23258 2019-02-18 Martin Sebor <msebor@redhat.com>
23259
23260 PR middle-end/89294
23261 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23262 expression.
23263 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23264
23265 2019-02-18 Richard Biener <rguenther@suse.de>
23266
23267 PR tree-optimization/89296
23268 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23269 of no-warning flag to cases that might emit the bogus warning.
23270
23271 2019-02-18 Jakub Jelinek <jakub@redhat.com>
23272
23273 PR bootstrap/88714
23274 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23275 "q" constraint.
23276 * config/arm/vfp.md (*movdi_vfp): Likewise.
23277 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23278 "q" constraint for operands[0].
23279
23280 PR target/89369
23281 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23282 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23283 pattern in a temporary buffer.
23284 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
23285 than 64-operands[2].
23286
23287 PR target/89361
23288 * config/s390/s390.c (s390_indirect_branch_attrvalue,
23289 s390_indirect_branch_settings): Define unconditionally.
23290 (s390_set_current_function): Likewise, but guard the whole body except
23291 the s390_indirect_branch_settings call with
23292 #if S390_USE_TARGET_ATTRIBUTE.
23293 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23294
23295 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23296 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23297 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23298 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23299 HOST_WIDE_INT_1U instead of 1ULL.
23300 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23301 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23302 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23303 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23304 instead of 1UL.
23305 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23306 instead of 1ul.
23307
23308 2019-02-18 Martin Jambor <mjambor@suse.cz>
23309
23310 PR tree-optimization/89209
23311 * tree-sra.c (create_access_replacement): New optional parameter
23312 reg_tree. Use it as a type if non-NULL and access type is not of
23313 a register type.
23314 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23315 to create_access_replacement.
23316 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23317 Check lacc is non-NULL before attempting to re-create it on the RHS.
23318
23319 2019-02-18 Martin Liska <mliska@suse.cz>
23320
23321 PR ipa/89306
23322 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23323 by default.
23324 (symbol_table::free_edge): Recycle m_summary_id.
23325 * cgraph.h (get_summary_id): New.
23326 (symbol_table::release_symbol): Set m_summary_id to -1
23327 by default.
23328 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23329 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23330 function_summary to fast_function_summary.
23331 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23332 * ipa-pure-const.c (class funct_state_summary_t):
23333 Switch from function_summary to fast_function_summary.
23334 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23335 (class ipa_ref_opt_summary_t): Switch from function_summary
23336 to fast_function_summary.
23337 * symbol-summary.h (class function_summary_base): New class
23338 that is created from base of former function_summary.
23339 (function_summary_base::unregister_hooks): New.
23340 (class function_summary): Inherit from function_summary_base.
23341 (class call_summary_base): New class
23342 that is created from base of former call_summary.
23343 (class call_summary): Inherit from call_summary_base.
23344 (struct is_same): New.
23345 (class fast_function_summary): New summary class.
23346 (class fast_call_summary): New summary class.
23347 * vec.h (vec_safe_grow_cleared): New function.
23348
23349 2019-02-18 Martin Liska <mliska@suse.cz>
23350
23351 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23352 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23353 * doc/tm.texi: Document new target hook.
23354 * doc/tm.texi.in: Likewise.
23355 * target.def: Add new target macro.
23356 * gcc.c (find_fortran_preinclude_file): Do not search multilib
23357 suffixes.
23358
23359 2019-02-17 Alan Modra <amodra@gmail.com>
23360
23361 PR target/89271
23362 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23363 output reg on add insn.
23364 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
23365
23366 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23367
23368 PR target/89372
23369 * config/i386/sse.md (ssedoublemode): Remove V4HI.
23370 (PMULHRSW): Likewise.
23371 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23372 TARGET_AVX2.
23373 (ssse3_pmulhrswv4hi3): New expander.
23374
23375 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
23376
23377 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23378 MMX. Add isa attribute.
23379
23380 2019-02-16 Jakub Jelinek <jakub@redhat.com>
23381
23382 PR rtl-optimization/66152
23383 * builtins.h (c_readstr): Declare.
23384 * builtins.c (c_readstr): Remove forward declaration. Add
23385 null_terminated_p argument, if false, read all bytes from the
23386 string instead of stopping after '\0'.
23387 * expr.c (string_cst_read_str): New function.
23388 (store_expr): Use string_cst_read_str instead of
23389 builtin_strncpy_read_str. Try to store by pieces the whole
23390 exp_len first, and only if that fails, split it up into
23391 store by pieces followed by clear_storage. Formatting fix.
23392
23393 * config/i386/i386.md (*movqi_internal): Remove static from
23394 buf variable. Use output_asm_insn (buf, operands); return "";
23395 instead of return buf;.
23396 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23397 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23398 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23399
23400 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23401
23402 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23403 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23404 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23405 (CC1_SPEC): Likewise.
23406 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23407
23408 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23409
23410 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23411 the base address on 64-bit strict-alignment platforms.
23412
23413 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
23414
23415 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23416
23417 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23418
23419 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23420
23421 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
23422
23423 PR rtl-optimization/88308
23424 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23425 on copied instruction.
23426
23427 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
23428
23429 * final.c (insn_current_reference_address): Replace test on JUMP_P
23430 with test on jump_to_label_p.
23431 * config/visium/visium-passes.def: New file.
23432 * config/visium/t-visium (PASSES_EXTRA): Define.
23433 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23434 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23435 (TRAMPOLINE_ALIGNMENT): Define.
23436 * config/visium/visium.c (visium_option_override): Do not register
23437 the machine-specific reorg pass here.
23438 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23439 for the GR6.
23440 (output_branch): Adjust threshold for long branch instruction.
23441 * config/visium/visium.md (cpu): Move around.
23442 (length): Adjust for the GR6.
23443
23444 2019-02-15 Richard Biener <rguenther@suse.de>
23445 Jakub Jelinek <jakub@redhat.com>
23446
23447 PR tree-optimization/89278
23448 * tree-loop-distribution.c: Include tree-eh.h.
23449 (generate_memset_builtin, generate_memcpy_builtin): Call
23450 rewrite_to_non_trapping_overflow on builtin->size before passing it
23451 to force_gimple_operand_gsi.
23452
23453 2019-02-15 Jakub Jelinek <jakub@redhat.com>
23454
23455 PR other/89342
23456 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23457 optimize_debug.
23458 * opth-gen.awk: Likewise.
23459
23460 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
23461
23462 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23463 Enable MMX, SSE and SSE2 by default.
23464 * config/i386/i386.c (ix86_option_override_internal): Do not
23465 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23466
23467 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23468
23469 PR rtl-optimization/89354
23470 * combine.c (make_extraction): Punt if extraction_mode is narrower
23471 than len bits.
23472
23473 2019-02-14 Maya Rashish <coypu@sdf.org>
23474
23475 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23476 * config/netbsd-d.c: New file.
23477 * config/t-netbsd: Add netbsd-d.o
23478
23479 2018-02-14 Steve Ellcey <sellcey@marvell.com>
23480
23481 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23482 affects_type_identity to true for aarch64_vector_pcs.
23483 (aarch64_comp_type_attributes): New function.
23484 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23485
23486 2019-02-14 Tamar Christina <tamar.christina@arm.com>
23487
23488 PR target/88850
23489 * config/arm/iterators.md (ANY64): Add V4HF.
23490
23491 2019-02-14 Martin Liska <mliska@suse.cz>
23492
23493 PR rtl-optimization/89242
23494 * dce.c (delete_unmarked_insns): Call free_dominance_info we
23495 process a transformation.
23496
23497 2019-02-14 Jakub Jelinek <jakub@redhat.com>
23498
23499 PR tree-optimization/89314
23500 * fold-const.c (fold_binary_loc): Cast strlen argument to
23501 const char * before dereferencing it. Formatting fixes.
23502
23503 PR middle-end/89284
23504 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23505
23506 2019-02-13 Ian Lance Taylor <iant@golang.org>
23507
23508 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23509 and set current index for other optimizations.
23510
23511 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
23512
23513 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23514 nonimmediate_operand as operand 2 predicate.
23515 (vec_set<VF2_512_256:mode>_0): Ditto.
23516 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23517 (*vec_concatv2si): Remove alternative 2.
23518 (*vec_concatv4si_0): Use vm constraint for alternative 0.
23519 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23520 (vec_concatv2di): Split alternatives 4,5,6 to ...
23521 (*vec_concatv2di_0) ... new pattern.
23522
23523 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
23524
23525 PR target/89190
23526 * config/arm/arm.c (ldm_stm_operation_p) Set
23527 addr_reg_in_reglist correctly for first register.
23528 (load_multiple_sequence): Remove dead base check.
23529 (gen_ldm_seq): Correctly set write_back for Thumb-1.
23530
23531 2019-02-13 Tamar Christina <tamar.christina@arm.com>
23532
23533 PR target/88847
23534 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23535 Expose as @aarch64_pred_mov.
23536 * config/aarch64/aarch64.c (aarch64_classify_address):
23537 Use expand_insn which legitimizes operands.
23538
23539 2019-02-13 Martin Liska <mliska@suse.cz>
23540
23541 * builtins.h (expand_builtin_with_bounds): Remove declaration.
23542 * calls.c (struct arg_data): Remove special_slot, pointer_arg
23543 and pointer_offset fields.
23544 (initialize_argument_information): Remove usage of dead
23545 fields.
23546 * cgraph.h (struct cgraph_thunk_info): Remove
23547 add_pointer_bounds_args.
23548 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23549 fields.
23550 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23551 fields.
23552 * config/i386/i386.c (ix86_function_arg_advance): Remove
23553 unrelated comment.
23554 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23555 (def_builtin): Remove usage of dead fields.
23556 (ix86_add_new_builtins): Likewise.
23557 * ipa-fnsummary.c (compute_fn_summary): Likewise.
23558 * ipa-icf.c (sem_function::equals_wpa): Likewise.
23559 (sem_function::init): Likewise.
23560 (sem_variable::merge): Likewise.
23561 * ipa-visibility.c (function_and_variable_visibility): Likewise.
23562 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23563 * lto-cgraph.c (lto_output_node): Likewise.
23564 (lto_output_varpool_node): Likewise.
23565 (input_node): Likewise.
23566 (input_varpool_node): Likewise.
23567 * lto-streamer-out.c (lto_output): Likewise.
23568 * tree-inline.c (expand_call_inline): Remove usage of
23569 assign_stmts.
23570 * tree-inline.h (struct copy_body_data): Likewise.
23571 * varpool.c (varpool_node::dump): Likewise.
23572
23573 2019-02-13 Jakub Jelinek <jakub@redhat.com>
23574
23575 PR middle-end/89303
23576 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23577 into pt->vars_contains_escaped_heap instead of setting
23578 pt->vars_contains_escaped_heap to it.
23579
23580 PR middle-end/89281
23581 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23582 INTVAL (size), compare it to GET_MODE_MASK instead of
23583 1 << GET_MODE_BITSIZE.
23584
23585 PR target/89290
23586 * config/i386/predicates.md (x86_64_immediate_operand): Allow
23587 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23588 -mcmodel=large.
23589
23590 2019-02-13 Martin Liska <mliska@suse.cz>
23591
23592 PR lto/88858
23593 * cfgrtl.c (remove_barriers_from_footer): New function.
23594 (try_redirect_by_replacing_jump): Use it.
23595 (cfg_layout_redirect_edge_and_branch): Likewise.
23596
23597 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
23598
23599 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23600 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23601 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23602 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23603 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23604 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23605 New BU_CRYPTO_2.
23606 * config/rs6000/rs6000.c (builtin_function_type)
23607 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23608 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23609 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23610 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23611 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23612
23613 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
23614
23615 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23616 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23617
23618 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
23619
23620 PR target/89229
23621 * config/i386/i386.md (*movoi_internal_avx): Revert revision
23622 268678 and revision 268657.
23623 (*movti_internal): Likewise.
23624
23625 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
23626
23627 PR target/89233
23628 * config/s390/s390.c (s390_decompose_address): Update comment.
23629 (s390_check_qrst_address): Reject invalid address forms after
23630 LRA.
23631
23632 2019-02-12 Martin Liska <mliska@suse.cz>
23633
23634 PR lto/88876
23635 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23636 we need default values of funct_state for a function that
23637 is not optimized.
23638
23639 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
23640
23641 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23642 the object to pick the size of stores on strict-alignment platforms.
23643
23644 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23645 (*movdi_insn_sp32): Likewise.
23646 (*movdi_insn_sp64): Likewise.
23647
23648 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
23649
23650 PR lto/88677
23651 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23652 types that needs constructiong.
23653 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23654
23655 2019-02-12 Richard Biener <rguenther@suse.de>
23656
23657 PR tree-optimization/89253
23658 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23659 duplicate the loop.
23660
23661 2019-02-11 David Malcolm <dmalcolm@redhat.com>
23662
23663 PR lto/88147
23664 * input.c (selftest::test_line_offset_overflow): New selftest.
23665 (selftest::input_c_tests): Call it.
23666
23667 2019-02-11 Martin Sebor <msebor@redhat.com>
23668
23669 PR tree-optimization/88771
23670 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23671 when -Wstringop-overflow is set.
23672 (builtin_memref::builtin_memref): Adjust excessive upper bound
23673 only when lower bound is not excessive.
23674 (maybe_diag_overlap): Detect and diagnose excessive bounds via
23675 -Wstringop-ovefflow.
23676 (maybe_diag_offset_bounds): Rename...
23677 (maybe_diag_access_bounds): ...to this.
23678 (check_bounds_or_overlap): Adjust for name change above.
23679
23680 2019-02-11 Martin Sebor <msebor@redhat.com>
23681
23682 PR c++/87996
23683 * builtins.c (max_object_size): Move from here...
23684 * builtins.h (max_object_size): ...and here...
23685 * tree.c (max_object_size): ...to here...
23686 * tree.h (max_object_size): ...and here.
23687
23688 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
23689
23690 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23691 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23692 for correct semantics.
23693
23694 2019-02-11 Alan Modra <amodra@gmail.com>
23695
23696 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23697 -mlongcall and -mpltseq.
23698 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23699 (RS/6000 and PowerPC Options <-mpltseq>): Document.
23700 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23701 * config/rs6000/sysv4.opt (mpltseq): New option.
23702 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23703 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23704 support is lacking. Don't allow -mpltseq with -mbss-plt.
23705 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23706 -mpltseq given for ELFv1.
23707 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23708 Only use UNSPEC_PLTSEQ for inline PLT calls.
23709 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
23710 use UNSPEC_PLTSEQ for inline PLT calls.
23711 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23712 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23713 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23714 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23715 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23716 (pltseq_mtctr_<mode>): Likewise.
23717
23718 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23719
23720 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23721 Solaris ld.
23722 * configure: Regenerate.
23723
23724 2019-02-11 Jakub Jelinek <jakub@redhat.com>
23725
23726 PR bootstrap/88714
23727 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23728 instead of r.
23729
23730 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23731
23732 * function.c (assign_parm_setup_block): Use the stored
23733 size, not the passed size, when allocating stack-space,
23734 also for a parameter with alignment larger than
23735 MAX_SUPPORTED_STACK_ALIGNMENT.
23736
23737 2019-02-11 Martin Liska <mliska@suse.cz>
23738
23739 PR ipa/89009
23740 * ipa-cp.c (build_toporder_info): Remove usage of a param.
23741 * ipa-inline.c (inline_small_functions): Likewise.
23742 * ipa-pure-const.c (propagate_pure_const): Likewise.
23743 (propagate_nothrow): Likewise.
23744 * ipa-reference.c (propagate): Likewise.
23745 * ipa-utils.c (struct searchc_env): Remove unused field.
23746 (searchc): Always search across AVAIL_INTERPOSABLE.
23747 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23748 the only called IPA pure const can properly not propagate
23749 across interposable boundary.
23750 * ipa-utils.h (ipa_reduced_postorder): Remove param.
23751
23752 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
23753
23754 * config/nds32/nds32.md (call_internal, call_value_internal,
23755 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23756
23757 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
23758
23759 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23760 typo.
23761
23762 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
23763
23764 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23765 in comments
23766
23767 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23768
23769 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23770
23771 2019-02-10 Jakub Jelinek <jakub@redhat.com>
23772
23773 PR tree-optimization/89268
23774 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23775 if preds is non-NULL.
23776
23777 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23778
23779 PR lto/89272
23780 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23781 polymorphic types.
23782
23783 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23784
23785 * config/nds32/nds32.md (trap): New pattern.
23786
23787 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
23788
23789 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23790 dwarf span.
23791
23792 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
23793
23794 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23795 to split POST_INC.
23796
23797 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23798
23799 * ipa-visibility.c (localize_node): Also do not localize
23800 LDPR_PREVAILING_DEF_IRONLY_EXP.
23801
23802 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23803
23804 PR lto/87957
23805 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23806 instead of type_with_linkage.
23807
23808 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
23809
23810 PR ipa/88755
23811 * params.def (uninlined-function-insns, uninlined-function-time,
23812 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23813 bound so we don't get overflows.
23814
23815 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
23816
23817 * config/rs6000/rs6000-string.c (expand_compare_loop,
23818 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23819 memcmp/strncmp.
23820
23821 2019-02-09 Jakub Jelinek <jakub@redhat.com>
23822
23823 PR middle-end/89246
23824 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23825 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23826 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23827
23828 2019-02-09 Alan Modra <amodra@gmail.com>
23829
23830 PR target/88343
23831 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23832 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
23833 setup.
23834
23835 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
23836
23837 PR middle-end/88560
23838 * lra-constraints.c (process_alt_operands): Don't increase reject
23839 for memory when offset memory is required.
23840
23841 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
23842
23843 * config/s390/vector.md: Implement vector copysign.
23844
23845 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23846
23847 * expr.c (expand_constructor): Correct indentations.
23848
23849 2019-02-08 Richard Biener <rguenther@suse.de>
23850
23851 PR tree-optimization/89247
23852 * tree-if-conv.c: Include tree-cfgcleanup.h.
23853 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23854 (tree_if_conversion): Pass through predicate vector.
23855 (pass_if_conversion::execute): Do CFG cleanup and SSA update
23856 inline, see if any if-converted loops we refrece in
23857 LOOP_VECTORIZED calls vanished and fixup.
23858 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23859
23860 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
23861
23862 * config/s390/constraints.md (jdd): New constraint.
23863
23864 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
23865
23866 PR target/89229
23867 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23868 upper 16 vector registers without TARGET_AVX512VL.
23869 (*movti_internal): Likewise.
23870
23871 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23872
23873 PR rtl-optimization/89234
23874 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23875 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23876 (copy_reg_eh_region_note_backward): Likewise.
23877
23878 2019-02-08 Richard Biener <rguenther@suse.de>
23879
23880 PR middle-end/89223
23881 * tree-data-ref.c (initialize_matrix_A): Fail if constant
23882 doesn't fit in HWI.
23883 (analyze_subscript_affine_affine): Handle failure from
23884 initialize_matrix_A.
23885
23886 2019-02-08 Jakub Jelinek <jakub@redhat.com>
23887
23888 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23889 cfun everywhere.
23890
23891 2019-02-07 David Malcolm <dmalcolm@redhat.com>
23892
23893 PR tree-optimization/86637
23894 PR tree-optimization/89235
23895 * tree-vect-loop.c (optimize_mask_stores): Add an
23896 auto_purge_vect_location sentinel to ensure that vect_location is
23897 purged on exit.
23898 * tree-vectorizer.c
23899 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23900 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23901 to ensure that vect_location is purged on exit.
23902 (pass_slp_vectorize::execute): Likewise, replacing the manual
23903 reset.
23904 * tree-vectorizer.h (class auto_purge_vect_location): New class.
23905
23906 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23907
23908 * config/aarch64/iterators.md (max_opp): New code_attr.
23909 (USMAX): New code iterator.
23910 * config/aarch64/predicates.md (aarch64_smin): New predicate.
23911 (aarch64_smax): Likewise.
23912 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23913 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23914 MINUS (MAX MIN).
23915
23916 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
23917
23918 PR target/89229
23919 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23920 for TARGET_AVX512VL.
23921 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23922
23923 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
23924
23925 * config/s390/s390-builtin-types.def: Add new types.
23926 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23927 (s390_vec_xlw4): Make the memory operand into a const pointer.
23928 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23929 float.
23930 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23931 a new vector type with the alignment of the scalar memory operand.
23932
23933 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
23934 Jakub Jelinek <jakub@redhat.com>
23935
23936 PR bootstrap/88714
23937 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23938 arm_count_ldrdstrd_insns): New declarations.
23939 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23940 MINUS.
23941 (valid_operands_ldrd_strd): New function.
23942 (arm_count_ldrdstrd_insns): New function.
23943 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23944 sets instead of single DImode set and define new insns to match this.
23945
23946 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23947
23948 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23949 Make it a C initializer.
23950
23951 2019-02-07 Tamar Christina <tamar.christina@arm.com>
23952
23953 PR/target 88850
23954 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23955
23956 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23957
23958 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23959 Use neon_dot<q> for type.
23960 (neon_<sup>dot_lane<vsi2qi>): Likewise.
23961
23962 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23963
23964 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23965 Use neon_dot<q> for type.
23966 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23967 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23968
23969 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
23970
23971 PR rtl-optimization/89225
23972 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23973 sizes check.
23974
23975 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
23976
23977 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23978 after restoring registers saved to allocate the frame on Windows.
23979
23980 2019-02-06 Richard Biener <rguenther@suse.de>
23981
23982 PR tree-optimization/89182
23983 * graphite.h (cached_scalar_evolution_in_region): Declare.
23984 * graphite.c (struct seir_cache_key): New.
23985 (struct sese_scev_hash): Likewise.
23986 (seir_cache): New global.
23987 (cached_scalar_evolution_in_region): New function.
23988 (graphite_transform_loops): Allocate and release seir_cache.
23989 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23990 cached_scalar_evolution_in_region.
23991 * graphite-scop-detection.c (scop_detection::can_represent_loop):
23992 Simplify.
23993 (scop_detection::graphite_can_represent_expr: Use
23994 cached_scalar_evolution_in_region.
23995 (scop_detection::stmt_simple_for_scop_p): Likewise.
23996 (find_params_in_bb): Likewise.
23997 (gather_bbs::before_dom_children): Likewise.
23998 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23999 (add_loop_constraints): Likewise.
24000
24001 2019-02-06 Jakub Jelinek <jakub@redhat.com>
24002
24003 PR middle-end/89210
24004 * fold-const-call.c (fold_const_vec_convert): Pass true as last
24005 operand to new_unary_operation only if both element types are integral
24006 and it isn't a widening conversion. Return NULL_TREE if
24007 new_unary_operation failed.
24008
24009 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
24010
24011 PR target/88856
24012 * config/s390/s390.md: Remove load and test FP splitter.
24013
24014 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24015
24016 PR target/89112
24017 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
24018 expand_compare_loop, expand_block_compare_gpr,
24019 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
24020 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
24021 #include "profile-count.h" and "predict.h" for types and functions
24022 needed to work with REG_BR_PROB notes.
24023
24024 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
24025
24026 PR target/89112
24027 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
24028 for the long branch case.
24029
24030 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24031
24032 PR target/89188
24033 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
24034 can throw, non-call exceptions are enabled and we can't delete
24035 dead exceptions or alter cfg. Set must_clean if
24036 delete_insn_and_edges returns true, don't set it blindly for calls.
24037 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
24038
24039 PR rtl-optimization/89195
24040 * combine.c (make_extraction): For MEMs, don't extract bytes outside
24041 of the original MEM.
24042
24043 2019-02-05 Martin Liska <mliska@suse.cz>
24044
24045 PR gcov-profile/89000
24046 * gcov.c (function_summary): Remove argument.
24047 (file_summary): New function.
24048 (print_usage): Replace tabs with spaces.
24049 (generate_results): Use new function file_summary.
24050
24051 2019-02-05 Jakub Jelinek <jakub@redhat.com>
24052
24053 PR target/89186
24054 * optabs.c (prepare_cmp_insn): Pass x and y to
24055 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
24056
24057 2019-02-05 Richard Biener <rguenther@suse.de>
24058
24059 PR middle-end/89150
24060 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
24061 (struct bitmap_element): Drop chain_prev so we properly recurse on
24062 the prev member, supporting tree views.
24063 (struct bitmap_head): GTY skip the obstack member.
24064
24065 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
24066
24067 PR c/88698
24068 * doc/extend.texi (Vector Extensions): Add an example of using vector
24069 types together with x86 intrinsics.
24070
24071 2019-02-04 Alan Modra <amodra@gmail.com>
24072
24073 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
24074 str[] size to 160, and comment.
24075
24076 2019-02-04 Alan Modra <amodra@gmail.com>
24077
24078 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
24079 (rs6000_pltseq_template): Guard output of TLS markers with
24080 TARGET_TLS_MARKERS.
24081 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
24082 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
24083 to use inline PLT sequences.
24084 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
24085 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
24086 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
24087
24088 2019-02-04 Martin Liska <mliska@suse.cz>
24089
24090 PR ipa/88985
24091 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
24092 out when ipa_fn_summaries does not contain entry for callee.
24093
24094 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
24095
24096 * config/sparc/sparc.h: Remove superfluous blank lines.
24097 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
24098 (got_register_rtx): ...this.
24099 (sparc_got): Adjust to above renaming.
24100 (sparc_tls_got): Likewise.
24101 (sparc_delegitimize_address): Likewise.
24102 (sparc_output_mi_thunk): Likewise.
24103 (sparc_init_pic_reg): Likewise.
24104 (save_local_or_in_reg_p): Fix test on the GOT register.
24105 (USE_HIDDEN_LINKONCE): Move around.
24106 (get_pc_thunk_name): Likewise.
24107 (gen_load_pcrel_sym): Likewise.
24108 (load_got_register): Likewise.
24109
24110 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
24111
24112 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
24113 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
24114
24115 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24116
24117 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
24118 into consideration.
24119
24120 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
24121
24122 * config.gcc (with_nds32_lib, glibc):
24123 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
24124 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
24125 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
24126
24127 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
24128
24129 PR target/89071
24130 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
24131 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
24132 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
24133 (*rcpsf2_sse): Ditto.
24134 (*rsqrtsf2_sse): Ditto.
24135 (sse4_1_round<mode<2): Ditto.
24136
24137 2019-02-03 Richard Biener <rguenther@suse.de>
24138
24139 PR debug/87295
24140 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
24141 orig.
24142
24143 2019-02-02 Jakub Jelinek <jakub@redhat.com>
24144
24145 PR middle-end/87887
24146 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
24147 Punt with warning on aggregate return or argument types. Ignore
24148 type/mode checking for uniform arguments.
24149
24150 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
24151
24152 * combine.c (try_combine): Do not print "Can't combine" messages unless
24153 printing failed combination attempts.
24154
24155 2019-02-01 Martin Jambor <mjambor@suse.cz>
24156
24157 PR hsa/87863
24158 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
24159 segment and global segment variables before making them static.
24160
24161 2019-02-01 Martin Jambor <mjambor@suse.cz>
24162
24163 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
24164 missed optimization dump with dump_enabled_p.
24165
24166 2019-02-01 Richard Biener <rguenther@suse.de>
24167
24168 PR middle-end/88597
24169 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
24170 the instantiate cache.
24171 (instantiate_scev_binary): Elide second operand procesing
24172 if equal to the first.
24173 * tree-chrec.c (chrec_contains_symbols): Add visited set.
24174 (chrec_contains_undetermined): Likewise.
24175 (tree_contains_chrecs): Likewise.
24176
24177 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
24178
24179 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24180
24181 2019-02-01 Jakub Jelinek <jakub@redhat.com>
24182
24183 PR tree-optimization/89143
24184 * wide-int-range.h (wide_int_range_absu): Declare.
24185 * wide-int-range.cc (wide_int_range_absu): New function.
24186 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24187
24188 PR tree-optimization/88107
24189 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24190 instead of assertion that eh_region_outermost is non-NULL, if it
24191 is NULL, set *ALL to true and return NULL.
24192 (move_sese_region_to_fn): Adjust caller, if all is set, call
24193 duplicate_eh_regions with NULL region.
24194
24195 2019-02-01 Richard Biener <rguenth@suse.de>
24196
24197 PR rtl-optimization/88593
24198 * mode-switching.c (optimize_mode_switching): Free dominators before
24199 calling cleanup_cfg.
24200
24201 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
24202
24203 PR tree-optimization/88932
24204 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24205
24206 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24207
24208 PR middle-end/89137
24209 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24210 bogus clang warning.
24211
24212 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
24213
24214 PR target/89071
24215 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24216 alternative to avoid partial SSE register stall for TARGET_AVX.
24217 (truncdfsf2): Ditto.
24218 (sse4_1_round<mode>2): Ditto.
24219
24220 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
24221
24222 PR tree-optimization/89008
24223 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24224 process anything of the form X * 0.
24225
24226 2019-01-31 Richard Biener <rguenther@suse.de>
24227
24228 PR tree-optimization/89135
24229 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24230 with abnormal preds.
24231
24232 2019-01-31 Jakub Jelinek <jakub@redhat.com>
24233
24234 PR sanitizer/89124
24235 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24236 always_inline callees into no_sanitize_address callers.
24237
24238 2019-01-31 Richard Biener <rguenther@suse.de>
24239
24240 PR rtl-optimization/89115
24241 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24242
24243 2019-01-30 Martin Sebor <msebor@redhat.com>
24244
24245 PR other/89106
24246 * doc/extend.texi (cast to a union): Correct and expand.
24247
24248 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
24249
24250 PR rtl-optimization/87246
24251 * lra-constraints.c (simplify_operand_subreg): Reload memory
24252 in subreg if the address became invalid.
24253
24254 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
24255
24256 PR target/87064
24257 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24258 Disable for little-endian.
24259
24260 2019-01-30 Richard Biener <rguenther@suse.de>
24261
24262 PR rtl-optimization/89115
24263 * opts.c (default_options_optimization): Reduce
24264 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24265 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24266 to the default.
24267
24268 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
24269
24270 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24271 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
24272 type of vector element when vec_extract is implemented by direct
24273 move.
24274
24275 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
24276
24277 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24278
24279 2019-01-30 Richard Biener <rguenther@suse.de>
24280
24281 PR tree-optimization/89111
24282 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24283 canonicalization to appropriately sized access types.
24284
24285 2019-01-30 Jakub Jelinek <jakub@redhat.com>
24286
24287 PR c++/89105
24288 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24289 for arguments to functions that are TU-local and shouldn't be
24290 referenced by assembly.
24291
24292 2019-01-30 Ulrich Drepper <drepper@redhat.com>
24293
24294 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24295 after '='.
24296
24297 2019-01-29 Martin Sebor <msebor@redhat.com>
24298
24299 PR c/88956
24300 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24301
24302 2019-01-29 Jakub Jelinek <jakub@redhat.com>
24303
24304 PR c++/66676
24305 PR ipa/89104
24306 * omp-simd-clone.c (simd_clone_clauses_extract)
24307 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24308 OMP_CLAUSE_ALIGNED_ALIGNMENT.
24309
24310 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
24311
24312 * config.gcc: Force .init_array for ARC.
24313
24314 2019-01-29 Richard Biener <rguenther@suse.de>
24315
24316 PR debug/87295
24317 * dwarf2out.c (collect_skeleton_dies): New helper.
24318 (copy_decls_for_unworthy_types): Call it.
24319 (build_abbrev_table): Assert we do not try to replace
24320 DW_AT_signature refs with local refs.
24321
24322 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24323
24324 PR middle-end/89002
24325 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24326 for lastprivate/linear IV, push gimplify context around gimplify_assign
24327 and, if it needed any temporaries, pop it into a gimple bind around the
24328 sequence.
24329
24330 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
24331
24332 * common.opt (-Wattribute-alias): Remove "no-" from name.
24333 Make -Wattribute-alias command line option and
24334 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24335
24336 2019-01-28 Jakub Jelinek <jakub@redhat.com>
24337
24338 PR target/89073
24339 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24340 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24341 x86 ISA options.
24342 (bmi2): Add missing @opindex.
24343 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24344 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
24345 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24346 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24347 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24348 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24349 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24350 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24351 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24352 xsavec, xsaveopt and xsaves options.
24353
24354 2019-01-28 Richard Biener <rguenther@suse.de>
24355
24356 PR debug/89076
24357 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24358 support removal.
24359
24360 2019-01-28 Richard Biener <rguenther@suse.de>
24361
24362 PR tree-optimization/88739
24363 * tree-cfg.c (verify_types_in_gimple_reference): Verify
24364 BIT_FIELD_REFs only are applied to mode-precision operands
24365 when they are integral.
24366 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24367 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24368 BIT_FIELD_REFs of non-mode-precision integral operands.
24369
24370 2019-01-27 Jakub Jelinek <jakub@redhat.com>
24371
24372 PR target/87214
24373 * config/i386/sse.md
24374 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24375 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24376 first constants in pairs are multiples of 2. Formatting fixes.
24377 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24378 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24379 first constants in each quadruple are multiples of 4. Formatting fixes.
24380
24381 2019-01-26 Martin Jambor <mjambor@suse.cz>
24382
24383 PR ipa/88933
24384 * tree-inline.c: Include tree-cfgcleanup.h.
24385 (delete_unreachable_blocks_update_callgraph): Move...
24386 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24387 ...here, make externally visible, make second argument bool, adjust
24388 all callers.
24389 * tree-cfgcleanup.c: Include cgraph.h.
24390 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24391 Declare.
24392 * ipa-prop.c: Include tree-cfgcleanup.h.
24393 (ipcp_transform_function): Call
24394 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24395
24396 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
24397
24398 PR rtl-optimization/88846
24399 * ira.c (process_set_for_memref_referenced_p): New.
24400 (memref_referenced_p): Add new param. Use
24401 process_set_for_memref_referenced_p. Add new switch cases.
24402 (memref_used_between_p): Pass new arg to memref_referenced_p.
24403
24404 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
24405
24406 PR target/88469
24407 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24408 argument ABI_BREAK. Set to true if the calculated alignment has
24409 changed in gcc-9. Check bit-fields for their base type alignment.
24410 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24411 (aarch64_function_arg_boundary): Likewise.
24412 (aarch64_gimplify_va_arg_expr): Likewise.
24413
24414 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24415
24416 PR middle-end/89037
24417 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24418 instead of accessing TREE_INT_CST_ELT directly.
24419
24420 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
24421
24422 * doc/sourcebuild.texi (Environment attributes): Add fenv and
24423 fenv_exceptions description.
24424
24425 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
24426
24427 PR rtl-optimization/87763
24428 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24429 Allow SUBREG when matching CC_NZmode compare.
24430
24431 2019-01-25 Richard Biener <rguenther@suse.de>
24432
24433 PR tree-optimization/89049
24434 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24435 Look at the pattern stmt to determine if the stmt is vectorized.
24436
24437 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
24438
24439 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24440 (pred_mov<mode>): Handle all-register forms using both a new
24441 alternative and a split.
24442
24443 2019-01-25 Richard Biener <rguenther@suse.de>
24444
24445 PR tree-optimization/86865
24446 * graphite-scop-detection.c (scop_detection::can_represent_loop):
24447 Reject non-do-while loops.
24448
24449 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
24450
24451 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24452 * config/rs6000/constraints.md (Q constraint): Use REG_P.
24453 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24454 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24455 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24456 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24457 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24458 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24459 vlogical_operand, gpc_reg_operand, int_reg_operand,
24460 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24461 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24462 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24463 (save_world_operation, restore_world_operation, lmw_operation,
24464 stmw_operation): Use MEM_P and REG_P.
24465 (tie_operand): Use MEM_P.
24466 (vrsave_operation, crsave_operation): Use REG_P.
24467 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24468 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24469 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24470 (call_operand): Use HARD_REGISTER_P.
24471 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24472 Use CONST_INT_P.
24473 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24474 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24475 quad_aligned_load_p, replace_swapped_aligned_store,
24476 recombine_lvx_pattern, replace_swapped_aligned_load,
24477 recombine_stvx_pattern): Use MEM_P.
24478 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24479 Use MEM_P and SYMBOL_REF_P.
24480 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24481 (insn_is_swappable_p): Use REG_P and MEM_P.
24482 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24483 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24484 Use CONST_INT_P.
24485 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24486 Use CONST_DOUBLE_P.
24487 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24488 CONST_WIDE_INT_P.
24489 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24490 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24491 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24492 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24493 reg_or_subregno:
24494 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24495 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24496 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24497 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24498 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24499 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24500 rs6000_split_logical_di): Use CONST_INT_P.
24501 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24502 REG_P and SYMBOL_REF_P.
24503 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24504 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24505 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24506 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24507 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24508 (small_data_operand, print_operand_address): Use CONST_INT_P and
24509 SYMBOL_REF_P.
24510 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24511 (rs6000_init_hard_regno_mode_ok, direct_move_p):
24512 Use HARD_REGISTER_NUM_P.
24513 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24514 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24515 SUBREG_P and SYMBOL_REF_P.
24516 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24517 and HARD_REGISTER_NUM_P.
24518 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24519 reg_or_subregno.
24520 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24521 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24522 MEM_P and REG_P.
24523 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24524 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24525 find_addr_reg): Use REG_P.
24526 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24527 (rs6000_emit_le_vsx_move): Use SUBREG_P.
24528 (offsettable_ok_by_alignment, constant_pool_expr_p,
24529 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24530 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24531 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24532 rs6000_assemble_integer, create_TOC_reference,
24533 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24534 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24535 (rs6000_split_vec_extract_var): Use reg_or_subregno.
24536 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24537 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24538 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24539 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24540 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24541 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24542 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24543 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24544 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24545 and cbranch<mode>4): Use CONST_INT_P.
24546 (multiple define_splits): Use REG_P and SUBREG_P.
24547 (define_expands call, call_value): Use MEM_P.
24548 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
24549 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24550 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24551 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24552 and HARD_REGISTER_NUM_P.
24553 (multiple define_splits): Use HARD_REGISTER_NUM_P.
24554
24555 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
24556
24557 PR rtl-optimization/88948
24558 * rtl.h (prepare_copy_insn): New prototype.
24559 * gcse.c (prepare_copy_insn): New function, split out from
24560 process_insert_insn.
24561 (process_insert_insn): Use prepare_copy_insn.
24562 * store-motion.c (replace_store_insn): Use prepare_copy_insn
24563 instead of gen_move_insn.
24564
24565 2019-01-24 Jakub Jelinek <jakub@redhat.com>
24566
24567 PR debug/89006
24568 * config/i386/i386.c (ix86_pic_register_p): Return true for
24569 UNSPEC_SET_GOT too.
24570
24571 PR tree-optimization/88964
24572 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24573 punt if HONOR_SNANS (chrec).
24574
24575 PR middle-end/89015
24576 * tree-nested.c (convert_nonlocal_reference_stmt,
24577 convert_local_reference_stmt, convert_tramp_reference_stmt,
24578 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24579 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24580 or GIMPLE_OMP_TASK.
24581
24582 PR tree-optimization/89027
24583 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24584 for "omp simd array" variables.
24585
24586 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
24587
24588 PR target/88469
24589 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24590 force the alignment of m_val.
24591
24592 2019-01-24 Richard Biener <rguenther@suse.de>
24593
24594 PR lto/87187
24595 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24596 When in "legacy" debug mode make sure to reset self-origins.
24597
24598 2019-01-24 Martin Liska <mliska@suse.cz>
24599
24600 PR gcov-profile/88994
24601 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24602 result will be always smaller or equal to the original.
24603 * gcov.c (mangle_name): Fix else branch where we should
24604 also copy to PTR and shift the pointer.
24605
24606 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
24607
24608 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24609 * vr-values.c (find_case_label_ranges): Fix a comment typo.
24610
24611 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
24612
24613 * common/config/i386/i386-common.c
24614 (OPTION_MASK_ISA_ENQCMD_SET,
24615 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24616 (ix86_handle_option): Handle -menqcmd.
24617 * config.gcc (enqcmdintrin.h): New header file.
24618 * config/i386/cpuid.h (bit_ENQCMD): New bit.
24619 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24620 -menqcmd.
24621 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24622 function type.
24623 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24624 __builtin_ia32_enqcmds): New builtins.
24625 * config/i386/i386-c.c (__ENQCMD__): New macro.
24626 * config/i386/i386-option.c (ix86_target_string): Add
24627 -menqcmd.
24628 (ix86_valid_target_attribute_inner_p): Likewise.
24629 * config/i386/i386-expand.c
24630 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24631 IX86_BUILTIN_ENQCMDS.
24632 * config/i386/i386.h (TARGET_ENQCMD): New.
24633 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24634 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24635 (movdir64b_<mode>): Parameterize to enable share expansion code
24636 with ENQCMD in function ix86_expand_builtin.
24637 * config/i386/i386.opt: Add -menqcmd.
24638 * config/i386/immintrin.h: Include enqcmdintrin.h.
24639 * config/i386/enqcmdintrin.h: New intrinsic file.
24640 * doc/invoke.texi: Add -menqcmd.
24641
24642 2019-01-23 Bin Cheng <bin.cheng@arm.com>
24643 Steve Ellcey <sellcey@marvell.com>
24644
24645 PR target/85711
24646 * recog.c (address_operand): Return false on wrong mode for address.
24647 (constrain_operands): Check for mode with 'p' constraint.
24648
24649 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
24650
24651 PR target/88998
24652 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24653 Disparage MMX alternative.
24654 (sse2_cvtpd2pi): Ditto.
24655 (sse2_cvttpd2pi): Ditto.
24656
24657 2019-01-23 David Malcolm <dmalcolm@redhat.com>
24658
24659 PR driver/89014
24660 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24661 use-after-free of the result of
24662 aarch64_get_extension_string_for_isa_flags.
24663
24664 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24665
24666 PR c/44715
24667 * doc/extend.texi: Document break and continue behavior in
24668 statement expressions.
24669
24670 2019-01-23 Richard Biener <rguenther@suse.de>
24671
24672 PR tree-optimization/89008
24673 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24674 not leave another stray operand.
24675
24676 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24677
24678 * BASE-VER: Bump to 9.0.1.
24679
24680 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
24681
24682 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24683 thunk that returns by reference, use the type of the return object
24684 of the thunk instead of that of the alias to build the dereference.
24685
24686 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
24687
24688 * config/arc/atomic.md: Add operand to DMB instruction.
24689
24690 2019-01-23 Jakub Jelinek <jakub@redhat.com>
24691
24692 PR tree-optimization/88964
24693 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24694 build_zero_cst instead of build_int_cst. Return false for loop
24695 invariants which honor signed zeros.
24696
24697 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
24698
24699 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24700
24701 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24702
24703 PR target/88965
24704 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24705 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24706 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24707
24708 PR middle-end/88968
24709 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24710 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24711
24712 PR target/87064
24713 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24714 Disable for little endian.
24715
24716 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24717
24718 PR target/88469
24719 * config/arm/arm.c (arm_needs_double_word_align): Check
24720 DECL_BIT_FIELD_TYPE.
24721
24722 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
24723 H.J. Lu <hongjiu.lu@intel.com>
24724
24725 PR target/88909
24726 * config/i386/i386-builtin.def: Add mask2 to all builtin
24727 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24728 SPECIAL_ARGS.
24729 * config/i386/i386.c (BDESC): Add mask2 to the definition.
24730 (BDESC_FIRST): Likewise.
24731 (define_builtin): Add an argument for mask2. Updated to handle
24732 both ix86_isa_flags and ix86_isa_flags2.
24733 (define_builtin_const): Likewise.
24734 (define_builtin_pure): Likewise.
24735 (define_builtin2): Deleted.
24736 (define_builtin_const2): Likewise.
24737 (builtin_description): Add a member, mask2.
24738 (bdesc_*): Add mask2 to builtin initializations.
24739 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24740 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
24741 support.
24742 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24743
24744 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
24745
24746 PR target/88954
24747 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24748 noplt attribute.
24749
24750 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
24751
24752 PR target/88469
24753 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24754 alignment is dominated by a bitfield with 64-bit aligned base type.
24755 (arm_function_arg): Emit a warning if the alignment has changed since
24756 earlier GCC releases.
24757 (arm_function_arg_boundary): Likewise.
24758 (arm_setup_incoming_varargs): Likewise.
24759
24760 2019-01-22 Richard Biener <rguenther@suse.de>
24761
24762 PR tree-optimization/88862
24763 * graphite-scop-detection.c
24764 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24765
24766 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
24767
24768 * doc/extend.tex (AMD GCN Function Attributes): New section.
24769 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24770 * doc/invoke.texi (AMD GCN Options): New section.
24771 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24772
24773 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
24774
24775 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24776 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24777
24778 2019-01-22 Jakub Jelinek <jakub@redhat.com>
24779
24780 PR tree-optimization/88044
24781 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24782 is false in the first iteration, but !every_iteration, return false
24783 instead of true with niter->niter zero.
24784
24785 PR rtl-optimization/88904
24786 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24787 any nonequal registers before processing BB_END (b).
24788
24789 PR target/88905
24790 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24791 GET_MODE (op0).
24792 (expand_binop_directly, expand_doubleword_clz,
24793 expand_doubleword_popcount, expand_ctz, expand_ffs,
24794 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24795
24796 PR rtl-optimization/49429
24797 PR target/49454
24798 PR rtl-optimization/86334
24799 PR target/88906
24800 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24801 addressable from here...
24802 (emit_block_op_via_libcall): ... to here.
24803
24804 2019-01-22 Richard Biener <rguenther@suse.de>
24805
24806 * tree-vect-loop.c (vect_analyze_loop_operations): Use
24807 auto_vec for cost vector to fix memleak.
24808 (vectorize_fold_left_reduction): Properly gather SLP defs.
24809 (vectorizable_comparison): Do not swap operands to properly
24810 gather SLP defs.
24811
24812 2019-01-22 Alan Modra <amodra@gmail.com>
24813
24814 PR target/88614
24815 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24816 stays a reg. Allow a const_int.
24817 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24818 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24819 (IS_NOMARK_TLSGETADDR): Define.
24820 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24821 (rs6000_output_tlsargs): New function.
24822 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24823 __tls_get_addr call takes an arg.
24824 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24825 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24826 delete split..
24827 (call_value_nonlocal_sysv): ..or here, delete split.
24828 (tls_gdld_nomark): Delete.
24829 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24830 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
24831 (call_value_nonlocal_sysv): Likewise.
24832 (call_value_nonlocal_sysv_secure): Likewise.
24833 (call_value_nonlocal_aix): Likewise.
24834 (call_value_indirect_aix): Likewise.
24835 (call_value_indirect_elfv2): Likewise.
24836 (call_value_local32, call_value_local64): Disable for no-mark tls.
24837 (call_value_local_aix): Likewise.
24838
24839 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
24840
24841 PR target/88938
24842 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24843 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24844
24845 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
24846
24847 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24848 string contents as hash_map keys.
24849
24850 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
24851
24852 PR c/88928
24853 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24854 for rvalue context. Handle rvalues correctly. Use min_align_of_type
24855 instead of TYPE_ALIGN.
24856 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24857 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
24858 pointer from TYPE_STUB_DECL.
24859
24860 2019-01-21 Richard Biener <rguenther@suse.de>
24861
24862 PR tree-optimization/88934
24863 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24864 at the possibly non-constant operand.
24865 (vect_get_constant_vectors): Adjust.
24866
24867 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
24868
24869 PR target/71659
24870 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24871 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24872 instead of _X86INTRIN_H_INCLUDED.
24873 * onfig/i386/clwbintrin.h: Likewise.
24874 * config/i386/pkuintrin.h: Likewise.
24875 * config/i386/prfchwintrin.h: Likewise.
24876 * config/i386/rdseedintrin.h: Likewise.
24877 * config/i386/wbnoinvdintrin.h: Likewise.
24878 * config/i386/xsavecintrin.h: Likewise.
24879 * config/i386/xsavesintrin.h: Likewise.
24880 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24881 * config/i386/xsaveintrin.h: Likewise.
24882 * config/i386/xsaveoptintrin.h: Likewise.
24883 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24884 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24885 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24886 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24887 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24888 * config/i386/immintrin.h: Here.
24889
24890 2019-01-20 Martin Jambor <mjambor@suse.cz>
24891
24892 PR ipa/87615
24893 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24894 with aa_walk_budget.
24895 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24896 aa_walk_budget_p parameter.
24897 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
24898 walk. Updated all callers.
24899 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24900 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24901 unmodified_parm.
24902 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24903 parameter info. Extract info from fbi. Pass fbi to recursive calls
24904 and to unmodified_parm.
24905 (phi_result_unknown_predicate): New parameter fbi, removed parameter
24906 info, updated call to will_be_nonconstant_expr_predicate.
24907 (param_change_prob): New parameter fbi, limit AA walking.
24908 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
24909 calls to various above functions.
24910 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24911 parameter. Use it to limit AA walking.
24912 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24913 fbi, limit AA walk.
24914 (detect_type_change): New parameter fbi, pass it on to
24915 detect_type_change_from_memory_writes.
24916 (detect_type_change_ssa): Likewise.
24917 (aa_overwalked): Removed.
24918 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24919 accordingly, adjust to the neew AA limiting scheme.
24920 (parm_ref_data_preserved_p): Likewise.
24921 (ipa_compute_jump_functions_for_edge): Adjust call to
24922 get_dynamic_type.
24923 (ipa_analyze_call_uses): Likewise.
24924 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24925 (ipa_analyze_node): Initialize aa_walk_budget.
24926 (ipcp_transform_function): Likewise.
24927 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24928 to get_dynamic_type.
24929
24930 2019-01-19 Jakub Jelinek <jakub@redhat.com>
24931
24932 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24933 outside of #if CHECKING_P code.
24934
24935 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
24936
24937 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24938 New function, split out from...
24939 (loop_versioning::analyze_stride): ...here.
24940 (loop_versioning::find_per_loop_multiplication): Use gassign.
24941 (loop_versioning::analyze_term_using_scevs): Return a success code.
24942 (loop_versioning::analyze_arbitrary_term): New function.
24943 (loop_versioning::analyze_address_fragment): Use
24944 analyze_arbitrary_term if all else fails.
24945
24946 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
24947
24948 PR target/88892
24949 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24950 operands.
24951
24952 2019-01-18 Richard Biener <rguenther@suse.de>
24953
24954 PR tree-optimization/88903
24955 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24956 scalar stmts a SLP shift amount is composed of when detecting
24957 shifts by scalars.
24958
24959 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
24960
24961 PR target/88799
24962 * config/arm/arm-cpus.in (mp): New feature.
24963 (sec): New feature.
24964 (fgroup ARMv7ve): Add mp and sec features.
24965 (arch armv7-a): Add options to allow mp and sec extensions.
24966 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24967 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24968 extenstions to the base architecture.
24969 (cpu cortex-a8): Add sec extension to the base architecture.
24970 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24971 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24972 variants down to the base v7-a varaint.
24973 * config/arm/t-multilib (v7_a_arch_variants): New variable.
24974 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24975 of permitted extensions for -march=armv7-a and for
24976 -mcpu=generic-armv7-a.
24977
24978 2019-01-18 Martin Liska <mliska@suse.cz>
24979
24980 * params.def: Fix comment.
24981 * tree-profile.c (gimple_init_gcov_profiler): Bump function
24982 name.
24983 (gimple_gen_ic_func_profiler): Likewise.
24984
24985 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24986
24987 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24988 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24989 and put in error checks for stack protector guard options.
24990 (aarch64_stack_protect_guard): New.
24991 (TARGET_STACK_PROTECT_GUARD): Define.
24992 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24993 (reg_stack_protect_address<mode>): New.
24994 (stack_protect_set): Adjust for SSP_GLOBAL.
24995 (stack_protect_test): Likewise.
24996 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24997 (-mstack-protector-guard): Likewise.
24998 (-mstack-protector-guard-offset): Likewise.
24999
25000 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25001
25002 PR tree-optimization/86214
25003 * tree-inline.h (struct copy_body_data): Add
25004 add_clobbers_to_eh_landing_pads member.
25005 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
25006 (copy_edges_for_bb): Call it if EH edge destination is <
25007 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
25008 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
25009 if flag_stack_reuse != SR_NONE and clear it afterwards.
25010
25011 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
25012
25013 PR target/85596
25014 * doc/install.texi (with-multilib-list): Document for aarch64.
25015
25016 2019-01-18 Jakub Jelinek <jakub@redhat.com>
25017
25018 PR target/88734
25019 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
25020 (("..."))) with ("...").
25021
25022 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
25023
25024 * doc/extend.texi (Built-in Functions for Memory Model Aware
25025 Atomic Operations): Document atomic fetch and nand.
25026
25027 2019-01-18 Martin Liska <mliska@suse.cz>
25028 Richard Biener <rguenther@suse.de>
25029
25030 PR middle-end/88587
25031 * cgraph.h (create_version_clone_with_body): Add new argument
25032 with attributes.
25033 * cgraphclones.c (cgraph_node::create_version_clone): Add
25034 DECL_ATTRIBUTES to a newly created decl. And call
25035 valid_attribute_p so that proper cl_target_optimization_node
25036 is set for the newly created declaration.
25037 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
25038 for declaration.
25039 (expand_target_clones): Do not call valid_attribute_p, it must
25040 be already done.
25041 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
25042 vector types.
25043
25044 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25045
25046 PR target/88734
25047 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
25048 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
25049 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
25050
25051 2019-01-17 Martin Sebor <msebor@redhat.com>
25052
25053 PR middle-end/88273
25054 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
25055 Handle anti-ranges the same as no range at all.
25056
25057 2018-01-17 Steve Ellcey <sellcey@cavium.com>
25058
25059 * config/aarch64/aarch64.c (cgraph.h): New include.
25060 (intl.h): New include.
25061 (supported_simd_type): New function.
25062 (currently_supported_simd_type): Ditto.
25063 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
25064 (aarch64_simd_clone_adjust): Ditto.
25065 (aarch64_simd_clone_usable): Ditto.
25066 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
25067 (TARGET_SIMD_CLONE_ADJUST): Ditto.
25068 (TARGET_SIMD_CLONE_USABLE): Ditto.
25069 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
25070 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
25071 call.
25072
25073 2019-01-17 Martin Sebor <msebor@redhat.com>
25074
25075 PR tree-optimization/88800
25076 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
25077 NO_WARNING bit here. Avoid folding out-of-bounds calls.
25078 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
25079 redundant argument. Add new argument and issue diagnostics under
25080 its control. Detect out-of-bounds access even with warnings
25081 disabled.
25082 (check_bounds_or_overlap): Change return type. Add argument.
25083 (wrestrict_dom_walker::check_call): Adjust.
25084 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
25085 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
25086 check_bounds_or_overlap's return value.
25087 (handle_builtin_stxncpy): Same.
25088 (handle_builtin_strcat): Same.
25089
25090 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25091 Kwok Cheung Yeung <kcy@codesourcery.com>
25092 Julian Brown <julian@codesourcery.com>
25093 Tom de Vries <tom@codesourcery.com>
25094
25095 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
25096
25097 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25098
25099 * doc/sourcebuild.texi: Document dg-require-effective-target
25100 llvm_binutils and offload_gcn.
25101
25102 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25103 Kwok Cheung Yeung <kcy@codesourcery.com>
25104 Julian Brown <julian@codesourcery.com>
25105 Tom de Vries <tom@codesourcery.com>
25106
25107 * doc/sourcebuild.texi: Document dg-required-effective-target
25108 exceptions.
25109
25110 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25111 Kwok Cheung Yeung <kcy@codesourcery.com>
25112 Julian Brown <julian@codesourcery.com>
25113 Tom de Vries <tom@codesourcery.com>
25114 Jan Hubicka <hubicka@ucw.cz>
25115 Martin Jambor <mjambor@suse.cz>
25116
25117 * config.gcc: Add amdgcn*-*-amdhsa configuration.
25118 * configure.ac: Check for dlopen.
25119 * configure: Regenerate.
25120
25121 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25122 Kwok Cheung Yeung <kcy@codesourcery.com>
25123 Julian Brown <julian@codesourcery.com>
25124 Tom de Vries <tom@codesourcery.com>
25125 Jan Hubicka <hubicka@ucw.cz>
25126 Martin Jambor <mjambor@suse.cz>
25127
25128 * common/config/gcn/gcn-common.c: New file.
25129 * config/gcn/driver-gcn.c: New file.
25130 * config/gcn/gcn-builtins.def: New file.
25131 * config/gcn/gcn-hsa.h: New file.
25132 * config/gcn/gcn-modes.def: New file.
25133 * config/gcn/gcn-opts.h: New file.
25134 * config/gcn/gcn-passes.def: New file.
25135 * config/gcn/gcn-protos.h: New file.
25136 * config/gcn/gcn-run.c: New file.
25137 * config/gcn/gcn-tree.c: New file.
25138 * config/gcn/gcn.c: New file.
25139 * config/gcn/gcn.h: New file.
25140 * config/gcn/gcn.opt: New file.
25141 * config/gcn/t-gcn-hsa: New file.
25142
25143 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
25144 Kwok Cheung Yeung <kcy@codesourcery.com>
25145 Julian Brown <julian@codesourcery.com>
25146 Tom de Vries <tom@codesourcery.com>
25147 Jan Hubicka <hubicka@ucw.cz>
25148 Martin Jambor <mjambor@suse.cz>
25149
25150 * config/gcn/constraints.md: New file.
25151 * config/gcn/gcn-valu.md: New file.
25152 * config/gcn/gcn.md: New file.
25153 * config/gcn/predicates.md: New file.
25154
25155 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
25156
25157 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
25158 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
25159 (stmt_uses_0_or_null_in_undefined_way): Likewise.
25160 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
25161
25162 2019-01-17 Tamar Christina <tamar.christina@arm.com>
25163
25164 PR target/88851
25165 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
25166 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
25167 it and document registers.
25168
25169 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25170
25171 * config/aarch64/aarch64.c (ares_tunings): Define.
25172 * config/aarch64/aarch64-cores.def (ares): Use the above.
25173
25174 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25175
25176 PR target/88794
25177 Revert:
25178 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
25179
25180 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25181 (_mm512_fixupimm_round_pd): Update parameters and builtin.
25182 (_mm512_maskz_fixupimm_round_pd): Ditto.
25183 (_mm512_fixupimm_round_ps): Ditto.
25184 (_mm512_maskz_fixupimm_round_ps): Ditto.
25185 (_mm_fixupimm_round_sd): Ditto.
25186 (_mm_maskz_fixupimm_round_sd): Ditto.
25187 (_mm_fixupimm_round_ss): Ditto.
25188 (_mm_maskz_fixupimm_round_ss): Ditto.
25189 (_mm512_fixupimm_pd): Ditto.
25190 (_mm512_maskz_fixupimm_pd): Ditto.
25191 (_mm512_fixupimm_ps): Ditto.
25192 (_mm512_maskz_fixupimm_ps): Ditto.
25193 (_mm_fixupimm_sd): Ditto.
25194 (_mm_maskz_fixupimm_sd): Ditto.
25195 (_mm_fixupimm_ss): Ditto.
25196 (_mm_maskz_fixupimm_ss): Ditto.
25197 (_mm512_mask_fixupimm_round_pd): Update builtin.
25198 (_mm512_mask_fixupimm_round_ps): Ditto.
25199 (_mm_mask_fixupimm_round_sd): Ditto.
25200 (_mm_mask_fixupimm_round_ss): Ditto.
25201 (_mm512_mask_fixupimm_pd): Ditto.
25202 (_mm512_mask_fixupimm_ps): Ditto.
25203 (_mm_mask_fixupimm_sd): Ditto.
25204 (_mm_mask_fixupimm_ss): Ditto.
25205 * config/i386/avx512vlintrin.h:
25206 (_mm256_fixupimm_pd): Update parameters and builtin.
25207 (_mm256_maskz_fixupimm_pd): Ditto.
25208 (_mm256_fixupimm_ps): Ditto.
25209 (_mm256_maskz_fixupimm_ps): Ditto.
25210 (_mm_fixupimm_pd): Ditto.
25211 (_mm_maskz_fixupimm_pd): Ditto.
25212 (_mm_fixupimm_ps): Ditto.
25213 (_mm_maskz_fixupimm_ps): Ditto.
25214 (_mm256_mask_fixupimm_pd): Update builtin.
25215 (_mm256_mask_fixupimm_ps): Ditto.
25216 (_mm_mask_fixupimm_pd): Ditto.
25217 (_mm_mask_fixupimm_ps): Ditto.
25218 * config/i386/i386-builtin-types.def: Add new types and remove
25219 useless ones.
25220 * config/i386/i386-builtin.def: Update builtin definitions.
25221 * config/i386/i386.c: Handle new builtin types and remove useless ones.
25222 * config/i386/sse.md: Update VFIXUPIMM* patterns.
25223 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25224 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25225 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25226 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25227 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25228 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25229 * config/i386/subst.md:
25230 (round_saeonly_sd_mask_operand4): Add new subst_attr.
25231 (round_saeonly_sd_mask_op4): Ditto.
25232 (round_saeonly_expand_operand5): Ditto.
25233 (round_saeonly_expand): Update.
25234
25235 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25236
25237 PR target/88794
25238 Revert:
25239 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
25240
25241 * config/i386/sse.md: Combine VFIXUPIMM* patterns
25242 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25243 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25244 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25245 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25246 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25247 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25248
25249 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
25250
25251 PR target/88794
25252 Revert:
25253 2018-12-15 Jakub Jelinek <jakub@redhat.com>
25254
25255 PR target/88489
25256 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25257 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25258 instead of UNSPEC_FIXUPIMM.
25259
25260 2019-01-17 Richard Biener <rguenther@suse.de>
25261
25262 PR lto/86736
25263 * dwarf2out.c (want_pubnames): Never generate pubnames sections
25264 and friends for the LTO part of debug info.
25265
25266 2019-01-17 Jakub Jelinek <jakub@redhat.com>
25267
25268 PR tree-optimization/86214
25269 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25270 if x == y.
25271
25272 PR rtl-optimization/88870
25273 * dce.c (deletable_insn_p): Never delete const/pure calls that can
25274 throw if we can't alter the cfg or delete dead exceptions.
25275 (mark_insn): Don't call find_call_stack_args for such calls.
25276
25277 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
25278
25279 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25280 prototypes for vec_st.
25281 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25282 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25283 mainly on signed/unsigned long long and double.
25284
25285 2019-01-16 David Malcolm <dmalcolm@redhat.com>
25286
25287 PR target/88861
25288 * combine.c (delete_noop_moves): Convert to "bool" return,
25289 returning true if any edges are eliminated.
25290 (combine_instructions): Also return true if delete_noop_moves
25291 returns true.
25292
25293 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25294
25295 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25296 correct max nunits for endian swap.
25297 (aarch64_expand_fcmla_builtin): Correct subreg code.
25298 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25299 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25300 lane endianness.
25301
25302 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
25303
25304 * config/alpha/alpha.c (alpha_gimplify_va_arg):
25305 Handle split indirect COMPLEX_TYPE arguments.
25306
25307 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
25308
25309 PR target/86891
25310 * config/aarch64/aarch64-modes.def: Add comment about how the carry
25311 bit is set by add and compare.
25312 (CC_ADC): New CC_MODE.
25313 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25314 to cache the code and mode of X. Adjust the shape of a CC_Cmode
25315 comparison. Add detection for CC_ADCmode.
25316 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
25317 CC_ADCmode.
25318 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25319 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25320 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
25321 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
25322 to eliminate the need for zero-extending the operands.
25323 (add<mode>3_compareC_imm): Delete. Merge into ...
25324 (add<mode>3_compareC): ... this. Restructure the comparison to
25325 eliminate the need for zero-extending the operands.
25326 (add<mode>3_carryin): Use LTU for the overflow detection.
25327 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25328 Reexpress comparison for overflow.
25329 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25330 (add<mode>3_carryinC): Likewise.
25331 (add<mode>3_carryinV): Use LTU for carry between partials.
25332 * config/aarch64/predicates.md (aarch64_carry_operation): Update
25333 handling of CC_Cmode and add CC_ADCmode.
25334 (aarch64_borrow_operation): Likewise.
25335
25336 2019-01-16 Tamar Christina <tamar.christina@arm.com>
25337
25338 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25339 Remove patternmode.
25340 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25341 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25342 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25343 Remove endianness conversion.
25344
25345 2019-01-16 Martin Liska <mliska@suse.cz>
25346
25347 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25348 for GCC driver.
25349 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25350 a new argument.
25351 * gcc.c (add_sysrooted_hdrs_prefix): New function.
25352 (path_prefix_reset): Move up in the source file.
25353 (find_fortran_preinclude_file): Make complex search for the
25354 fortran header files.
25355
25356 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
25357
25358 * godump.c (go_output_typedef): When outputting a typedef, refer
25359 to the underlying type by its name and not its structure.
25360
25361 2019-01-15 David Malcolm <dmalcolm@redhat.com>
25362
25363 PR c++/88795
25364 * tree.c (build_function_type): Assert that arg_types is not
25365 error_mark_node.
25366
25367 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
25368
25369 PR inline-asm/52813
25370 * doc/extend.texi: Document that listing the stack pointer in the
25371 clobber list of an asm is a deprecated feature.
25372 * common.opt (Wdeprecated): Moved from c-family/c.opt.
25373 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25374 warning instead of an error for clobbers of the stack pointer.
25375 Add a note explaining why.
25376
25377 2019-01-15 Richard Biener <rguenther@suse.de>
25378
25379 PR debug/88046
25380 * dwarf2out.c (gen_member_die): Do not generate inheritance
25381 DIEs late.
25382
25383 2019-01-15 Richard Biener <rguenther@suse.de>
25384
25385 PR tree-optimization/88855
25386 * tree-if-conv.c (combine_blocks): Collect
25387 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25388
25389 2019-01-15 Tom de Vries <tdevries@suse.de>
25390
25391 PR target/80547
25392 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25393 lhs == NULL_TREE for gang-level reduction.
25394
25395 2019-01-15 Richard Biener <rguenther@suse.de>
25396 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25397
25398 PR ipa/88788
25399 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25400 return true if SSA_NAME is already marked in visited bitmap.
25401 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25402
25403 2019-01-15 Jakub Jelinek <jakub@redhat.com>
25404
25405 PR tree-optimization/88775
25406 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25407 equal == 0 equality pointer comparisons some more if compared in
25408 integral types and either one points to an automatic var and the
25409 other to a global, or we can prove at least one points to the middle
25410 or both point to start or both point to end.
25411
25412 2019-01-14 Andi Kleen <ak@linux.intel.com>
25413
25414 * Makefile.in: Lower autofdo sampling rate by 10x.
25415 * Makefile.tpl: Dito.
25416
25417 2019-01-14 Tom Honermann <tom@honermann.net>
25418
25419 * defaults.h: Define CHAR8_TYPE.
25420
25421 2019-01-14 Martin Sebor <msebor@redhat.com>
25422
25423 PR target/88638
25424 * doc/extend.texi (Darwin Format Checks): Clarify.
25425
25426 2019-01-14 Richard Biener <rguenther@suse.de>
25427
25428 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25429 whether we are in (simplify ...) or (match ...) context.
25430
25431 2019-01-14 Jakub Jelinek <jakub@redhat.com>
25432
25433 PR rtl-optimization/88796
25434 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25435 * cfgexpand.c (stack_protect_prologue): Initialize
25436 crtl->stack_protect_guard_decl.
25437 * function.c (stack_protect_epilogue): Use it instead of calling
25438 targetm.stack_protect_guard again.
25439 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25440 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25441 crtl->stack_protect_guard_decl.
25442 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25443 on the returned MEM_EXPR.
25444
25445 2019-01-12 Tom de Vries <tdevries@suse.de>
25446
25447 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25448 vector length using -fopenacc-dim.
25449
25450 2019-01-12 Tom de Vries <tdevries@suse.de>
25451
25452 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25453 lengths into account.
25454
25455 2019-01-12 Svante Signell <svante.signell@gmail.com>
25456
25457 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25458 (TARGET_CAN_SPLIT_STACK): Define.
25459 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25460
25461 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
25462
25463 * params.def (inline-unit-growth): Set to 40.
25464
25465 2019-01-12 Jakub Jelinek <jakub@redhat.com>
25466
25467 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25468
25469 2019-01-12 Tom de Vries <tdevries@suse.de>
25470
25471 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25472 region calling vector-partitionable routine, set default_vector_length
25473 to WARP_SIZE.
25474
25475 2019-01-12 Tom de Vries <tdevries@suse.de>
25476
25477 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25478 variable default_vector_length.
25479
25480 2019-01-12 Tom de Vries <tdevries@suse.de>
25481
25482 PR middle-end/88703
25483 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25484 from oacc_default_dims, as oacc_validate_dims would do it, and apply
25485 dimensions limits.
25486
25487 2019-01-12 Tom de Vries <tdevries@suse.de>
25488
25489 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25490 (nvptx_goacc_validate_dims): Add used parameter.
25491 * doc/tm.texi: Regenerate.
25492 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25493 argument to call to targetm.goacc.validate_dims.
25494 (default_goacc_validate_dims): Add used
25495 parameter.
25496 * target.def (validate_dims): Add used parameter in DEFHOOK.
25497 * targhooks.h (default_goacc_validate_dims): Add used parameter.
25498
25499 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25500
25501 PR middle-end/85956
25502 PR lto/88733
25503 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25504 field.
25505 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
25506 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25507 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25508 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25509
25510 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
25511
25512 PR rtl-optimization/87305
25513 * lra-assigns.c
25514 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25515 for little endian pseudos used as paradoxical subreg.
25516
25517 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25518
25519 PR tree-optimization/88693
25520 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25521 for STRING_CSTs that don't contain any NUL characters in the first
25522 TREE_STRING_LENGTH bytes.
25523
25524 2019-01-11 Alan Modra <amodra@gmail.com>
25525
25526 PR 88777
25527 PR 88614
25528 * genattrtab.c (min_fn): Don't translate values.
25529 (min_attr_value): Return INT_MAX when the value can't be calculated.
25530 Return minimum among any values that can be calculated.
25531 (max_attr_value): Adjust.
25532
25533 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25534
25535 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25536
25537 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25538
25539 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25540 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25541 (aarch64_return_call_with_max_clobbers): New function.
25542 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25543 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25544 argument.
25545 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25546 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25547 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25548 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25549 * cselib.c (cselib_process_insn): Add argument to
25550 targetm.hard_regno_call_part_clobbered call.
25551 * ira-conflicts.c (ira_build_conflicts): Ditto.
25552 * ira-costs.c (ira_tune_allocno_costs): Ditto.
25553 * lra-constraints.c (inherit_reload_reg): Ditto.
25554 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25555 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25556 argument. Call targetm.return_call_with_max_clobbers.
25557 Add argument to targetm.hard_regno_call_part_clobbered call.
25558 (calls_have_same_clobbers_p): New function.
25559 (process_bb_lives): Add call_insn and last_call_insn variables.
25560 Pass call_insn to check_pseudos_live_through_calls.
25561 Modify if stmt to check targetm.return_call_with_max_clobbers.
25562 Update setting of flush variable.
25563 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25564 to false.
25565 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25566 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25567 targetm.hard_regno_call_part_clobbered call.
25568 * reginfo.c (choose_hard_reg_mode): Ditto.
25569 * regrename.c (check_new_reg_p): Ditto.
25570 * reload.c (find_equiv_reg): Ditto.
25571 * reload1.c (emit_reload_insns): Ditto.
25572 * sched-deps.c (deps_analyze_insn): Ditto.
25573 * sel-sched.c (init_regs_for_mode): Ditto.
25574 (mark_unavailable_hard_regs): Ditto.
25575 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25576 * target.def (hard_regno_call_part_clobbered): Add insn argument.
25577 (return_call_with_max_clobbers): New target function.
25578 * doc/tm.texi: Regenerate.
25579 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25580 * hooks.c (hook_bool_uint_mode_false): Change to
25581 hook_bool_insn_uint_mode_false.
25582 * hooks.h (hook_bool_uint_mode_false): Ditto.
25583
25584 2019-01-11 Steve Ellcey <sellcey@marvell.com>
25585
25586 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25587 (aarch64_remove_extra_call_preserved_regs): New function.
25588 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25589 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25590 * doc/tm.texi: Regenerate.
25591 * final.c (get_call_reg_set_usage): Call new hook.
25592 * target.def (remove_extra_call_preserved_regs): New hook.
25593 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25594 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25595
25596 2019-01-11 Jakub Jelinek <jakub@redhat.com>
25597
25598 PR bootstrap/88714
25599 * passes.c (finish_optimization_passes): Call print_combine_total_stats
25600 inside of pass_combine_1 dump rather than pass_profile_1.
25601
25602 2019-01-11 Tom de Vries <tdevries@suse.de>
25603
25604 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25605 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25606 (PTX_NUM_PER_WORKER_BARRIERS): Define.
25607 (nvptx_apply_dim_limits): Prevent vector_length 64 and
25608 num_workers 16.
25609
25610 2019-01-11 Tom de Vries <tdevries@suse.de>
25611
25612 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25613
25614 2019-01-11 Jan Beulich <jbeulich@suse.com>
25615
25616 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25617 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25618 sse2_cvtsi2sd): Add {l}.
25619 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25620 syntax.
25621
25622 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25623
25624 PR target/88785
25625 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25626 define_expand.
25627 (*float<floatunssuffix>v2div2sf2): New define_insn.
25628 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25629 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25630 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25631 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25632 match_operands with "const0_operand" "C".
25633
25634 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25635
25636 * config/aarch64/aarch64-builtins.c
25637 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25638 (aarch64_init_simd_builtins): ...Here
25639
25640 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
25641
25642 PR rtl-optimization/87305
25643 * lra-assigns.c
25644 (setup_live_pseudos_and_spill_after_risky_transforms): Check
25645 allocation for big endian pseudos used as paradoxical subregs and
25646 spill them if it is wrong.
25647 * lra-constraints.c (lra_constraints): Add a comment.
25648
25649 2019-01-10 Richard Biener <rguenther@suse.de>
25650
25651 PR tree-optimization/88792
25652 * tree-ssa-pre.c (get_representative_for): Do not return a
25653 value-number here.
25654
25655 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25656
25657 PR middle-end/84877
25658 PR bootstrap/88450
25659 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25660 (assign_parm_setup_block): Do the argument slot realignment here
25661 instead.
25662
25663 2019-01-10 Stefan Agner <stefan@agner.ch>
25664
25665 PR target/88648
25666 * config/arm/arm.c (arm_option_override_internal): Force
25667 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25668
25669 2019-01-10 Jakub Jelinek <jakub@redhat.com>
25670
25671 PR c/88568
25672 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25673 DECL_EXTERNAL.
25674
25675 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25676
25677 * config/arm/arm-builtins.c
25678 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25679 (MAC_LANE_PAIR_QUALIFIERS): New.
25680 (arm_expand_builtin_args): Use it.
25681 (arm_expand_builtin_1): Likewise.
25682 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25683 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25684 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25685 * config/arm/arm_neon.h:
25686 (vcadd_rot90_f16): New.
25687 (vcaddq_rot90_f16): New.
25688 (vcadd_rot270_f16): New.
25689 (vcaddq_rot270_f16): New.
25690 (vcmla_f16): New.
25691 (vcmlaq_f16): New.
25692 (vcmla_lane_f16): New.
25693 (vcmla_laneq_f16): New.
25694 (vcmlaq_lane_f16): New.
25695 (vcmlaq_laneq_f16): New.
25696 (vcmla_rot90_f16): New.
25697 (vcmlaq_rot90_f16): New.
25698 (vcmla_rot90_lane_f16): New.
25699 (vcmla_rot90_laneq_f16): New.
25700 (vcmlaq_rot90_lane_f16): New.
25701 (vcmlaq_rot90_laneq_f16): New.
25702 (vcmla_rot180_f16): New.
25703 (vcmlaq_rot180_f16): New.
25704 (vcmla_rot180_lane_f16): New.
25705 (vcmla_rot180_laneq_f16): New.
25706 (vcmlaq_rot180_lane_f16): New.
25707 (vcmlaq_rot180_laneq_f16): New.
25708 (vcmla_rot270_f16): New.
25709 (vcmlaq_rot270_f16): New.
25710 (vcmla_rot270_lane_f16): New.
25711 (vcmla_rot270_laneq_f16): New.
25712 (vcmlaq_rot270_lane_f16): New.
25713 (vcmlaq_rot270_laneq_f16): New.
25714 (vcadd_rot90_f32): New.
25715 (vcaddq_rot90_f32): New.
25716 (vcadd_rot270_f32): New.
25717 (vcaddq_rot270_f32): New.
25718 (vcmla_f32): New.
25719 (vcmlaq_f32): New.
25720 (vcmla_lane_f32): New.
25721 (vcmla_laneq_f32): New.
25722 (vcmlaq_lane_f32): New.
25723 (vcmlaq_laneq_f32): New.
25724 (vcmla_rot90_f32): New.
25725 (vcmlaq_rot90_f32): New.
25726 (vcmla_rot90_lane_f32): New.
25727 (vcmla_rot90_laneq_f32): New.
25728 (vcmlaq_rot90_lane_f32): New.
25729 (vcmlaq_rot90_laneq_f32): New.
25730 (vcmla_rot180_f32): New.
25731 (vcmlaq_rot180_f32): New.
25732 (vcmla_rot180_lane_f32): New.
25733 (vcmla_rot180_laneq_f32): New.
25734 (vcmlaq_rot180_lane_f32): New.
25735 (vcmlaq_rot180_laneq_f32): New.
25736 (vcmla_rot270_f32): New.
25737 (vcmlaq_rot270_f32): New.
25738 (vcmla_rot270_lane_f32): New.
25739 (vcmla_rot270_laneq_f32): New.
25740 (vcmlaq_rot270_lane_f32): New.
25741 (vcmlaq_rot270_laneq_f32): New.
25742 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25743 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25744 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25745 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25746 vcmlaq_lane270): New.
25747 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25748 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25749 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25750 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25751 (arm_option_reconfigure_globals): Use them.
25752 * config/arm/iterators.md (VDF, VQ_HSF): New.
25753 (VCADD, VCMLA): New.
25754 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25755 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25756 New.
25757 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25758 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25759
25760 2019-01-10 Tamar Christina <tamar.christina@arm.com>
25761
25762 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25763 Add qualifier_lane_pair_index.
25764 (emit-rtl.h): Include.
25765 (TYPES_QUADOP_LANE_PAIR): New.
25766 (aarch64_simd_expand_args): Use it.
25767 (aarch64_simd_expand_builtin): Likewise.
25768 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25769 New.
25770 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25771 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25772 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25773 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25774 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25775 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25776 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25777 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25778 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25779 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25780 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25781 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25782 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25783 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25784 Add __ARM_FEATURE_COMPLEX.
25785 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25786 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25787 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25788 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25789 fcmlaq_lane270): New.
25790 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25791 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25792 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25793 * config/aarch64/arm_neon.h:
25794 (vcadd_rot90_f16): New.
25795 (vcaddq_rot90_f16): New.
25796 (vcadd_rot270_f16): New.
25797 (vcaddq_rot270_f16): New.
25798 (vcmla_f16): New.
25799 (vcmlaq_f16): New.
25800 (vcmla_lane_f16): New.
25801 (vcmla_laneq_f16): New.
25802 (vcmlaq_lane_f16): New.
25803 (vcmlaq_rot90_lane_f16): New.
25804 (vcmla_rot90_laneq_f16): New.
25805 (vcmla_rot90_lane_f16): New.
25806 (vcmlaq_rot90_f16): New.
25807 (vcmla_rot90_f16): New.
25808 (vcmlaq_laneq_f16): New.
25809 (vcmla_rot180_laneq_f16): New.
25810 (vcmla_rot180_lane_f16): New.
25811 (vcmlaq_rot180_f16): New.
25812 (vcmla_rot180_f16): New.
25813 (vcmlaq_rot90_laneq_f16): New.
25814 (vcmlaq_rot270_laneq_f16): New.
25815 (vcmlaq_rot270_lane_f16): New.
25816 (vcmla_rot270_laneq_f16): New.
25817 (vcmlaq_rot270_f16): New.
25818 (vcmla_rot270_f16): New.
25819 (vcmlaq_rot180_laneq_f16): New.
25820 (vcmlaq_rot180_lane_f16): New.
25821 (vcmla_rot270_lane_f16): New.
25822 (vcadd_rot90_f32): New.
25823 (vcaddq_rot90_f32): New.
25824 (vcaddq_rot90_f64): New.
25825 (vcadd_rot270_f32): New.
25826 (vcaddq_rot270_f32): New.
25827 (vcaddq_rot270_f64): New.
25828 (vcmla_f32): New.
25829 (vcmlaq_f32): New.
25830 (vcmlaq_f64): New.
25831 (vcmla_lane_f32): New.
25832 (vcmla_laneq_f32): New.
25833 (vcmlaq_lane_f32): New.
25834 (vcmlaq_laneq_f32): New.
25835 (vcmla_rot90_f32): New.
25836 (vcmlaq_rot90_f32): New.
25837 (vcmlaq_rot90_f64): New.
25838 (vcmla_rot90_lane_f32): New.
25839 (vcmla_rot90_laneq_f32): New.
25840 (vcmlaq_rot90_lane_f32): New.
25841 (vcmlaq_rot90_laneq_f32): New.
25842 (vcmla_rot180_f32): New.
25843 (vcmlaq_rot180_f32): New.
25844 (vcmlaq_rot180_f64): New.
25845 (vcmla_rot180_lane_f32): New.
25846 (vcmla_rot180_laneq_f32): New.
25847 (vcmlaq_rot180_lane_f32): New.
25848 (vcmlaq_rot180_laneq_f32): New.
25849 (vcmla_rot270_f32): New.
25850 (vcmlaq_rot270_f32): New.
25851 (vcmlaq_rot270_f64): New.
25852 (vcmla_rot270_lane_f32): New.
25853 (vcmla_rot270_laneq_f32): New.
25854 (vcmlaq_rot270_lane_f32): New.
25855 (vcmlaq_rot270_laneq_f32): New.
25856 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25857 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25858 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25859 (FCADD, FCMLA): New.
25860 (rot): New.
25861 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25862
25863 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25864
25865 PR other/16615
25866
25867 * config/pa/pa.c: Change "can not" to "cannot".
25868 * gimple-ssa-evrp-analyze.c: Likewise.
25869 * ipa-icf.c: Likewise.
25870 * ipa-polymorphic-call.c: Likewise.
25871 * ipa-pure-const.c: Likewise.
25872 * lra-constraints.c: Likewise.
25873 * lra-remat.c: Likewise.
25874 * reload1.c: Likewise.
25875 * reorg.c: Likewise.
25876 * tree-ssa-uninit.c: Likewise.
25877
25878 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
25879
25880 PR other/16615
25881
25882 * Makefile.in: Mechanically replace "can not" with "cannot".
25883 * alias.c: Likewise.
25884 * builtins.c: Likewise.
25885 * calls.c: Likewise.
25886 * cgraph.c: Likewise.
25887 * cgraph.h: Likewise.
25888 * cgraphclones.c: Likewise.
25889 * cgraphunit.c: Likewise.
25890 * combine-stack-adj.c: Likewise.
25891 * combine.c: Likewise.
25892 * common/config/i386/i386-common.c: Likewise.
25893 * config/aarch64/aarch64.c: Likewise.
25894 * config/alpha/sync.md: Likewise.
25895 * config/arc/arc.c: Likewise.
25896 * config/arc/predicates.md: Likewise.
25897 * config/arm/arm-c.c: Likewise.
25898 * config/arm/arm.c: Likewise.
25899 * config/arm/arm.h: Likewise.
25900 * config/arm/arm.md: Likewise.
25901 * config/arm/cortex-r4f.md: Likewise.
25902 * config/csky/csky.c: Likewise.
25903 * config/csky/csky.h: Likewise.
25904 * config/darwin-f.c: Likewise.
25905 * config/epiphany/epiphany.md: Likewise.
25906 * config/i386/i386.c: Likewise.
25907 * config/i386/sol2.h: Likewise.
25908 * config/m68k/m68k.c: Likewise.
25909 * config/mcore/mcore.h: Likewise.
25910 * config/microblaze/microblaze.md: Likewise.
25911 * config/mips/20kc.md: Likewise.
25912 * config/mips/sb1.md: Likewise.
25913 * config/nds32/nds32.c: Likewise.
25914 * config/nds32/predicates.md: Likewise.
25915 * config/pa/pa.c: Likewise.
25916 * config/rs6000/e300c2c3.md: Likewise.
25917 * config/rs6000/rs6000.c: Likewise.
25918 * config/s390/s390.h: Likewise.
25919 * config/sh/sh.c: Likewise.
25920 * config/sh/sh.md: Likewise.
25921 * config/spu/vmx2spu.h: Likewise.
25922 * cprop.c: Likewise.
25923 * dbxout.c: Likewise.
25924 * df-scan.c: Likewise.
25925 * doc/cfg.texi: Likewise.
25926 * doc/extend.texi: Likewise.
25927 * doc/fragments.texi: Likewise.
25928 * doc/gty.texi: Likewise.
25929 * doc/invoke.texi: Likewise.
25930 * doc/lto.texi: Likewise.
25931 * doc/md.texi: Likewise.
25932 * doc/objc.texi: Likewise.
25933 * doc/rtl.texi: Likewise.
25934 * doc/tm.texi: Likewise.
25935 * dse.c: Likewise.
25936 * emit-rtl.c: Likewise.
25937 * emit-rtl.h: Likewise.
25938 * except.c: Likewise.
25939 * expmed.c: Likewise.
25940 * expr.c: Likewise.
25941 * fold-const.c: Likewise.
25942 * genautomata.c: Likewise.
25943 * gimple-fold.c: Likewise.
25944 * hard-reg-set.h: Likewise.
25945 * ifcvt.c: Likewise.
25946 * ipa-comdats.c: Likewise.
25947 * ipa-cp.c: Likewise.
25948 * ipa-devirt.c: Likewise.
25949 * ipa-fnsummary.c: Likewise.
25950 * ipa-icf.c: Likewise.
25951 * ipa-inline-transform.c: Likewise.
25952 * ipa-inline.c: Likewise.
25953 * ipa-polymorphic-call.c: Likewise.
25954 * ipa-profile.c: Likewise.
25955 * ipa-prop.c: Likewise.
25956 * ipa-pure-const.c: Likewise.
25957 * ipa-reference.c: Likewise.
25958 * ipa-split.c: Likewise.
25959 * ipa-visibility.c: Likewise.
25960 * ipa.c: Likewise.
25961 * ira-build.c: Likewise.
25962 * ira-color.c: Likewise.
25963 * ira-conflicts.c: Likewise.
25964 * ira-costs.c: Likewise.
25965 * ira-int.h: Likewise.
25966 * ira-lives.c: Likewise.
25967 * ira.c: Likewise.
25968 * ira.h: Likewise.
25969 * loop-invariant.c: Likewise.
25970 * loop-unroll.c: Likewise.
25971 * lower-subreg.c: Likewise.
25972 * lra-assigns.c: Likewise.
25973 * lra-constraints.c: Likewise.
25974 * lra-eliminations.c: Likewise.
25975 * lra-lives.c: Likewise.
25976 * lra-remat.c: Likewise.
25977 * lra-spills.c: Likewise.
25978 * lra.c: Likewise.
25979 * lto-cgraph.c: Likewise.
25980 * lto-streamer-out.c: Likewise.
25981 * postreload-gcse.c: Likewise.
25982 * predict.c: Likewise.
25983 * profile-count.h: Likewise.
25984 * profile.c: Likewise.
25985 * recog.c: Likewise.
25986 * ree.c: Likewise.
25987 * reload.c: Likewise.
25988 * reload1.c: Likewise.
25989 * reorg.c: Likewise.
25990 * resource.c: Likewise.
25991 * rtl.def: Likewise.
25992 * rtl.h: Likewise.
25993 * rtlanal.c: Likewise.
25994 * sched-deps.c: Likewise.
25995 * sched-ebb.c: Likewise.
25996 * sched-rgn.c: Likewise.
25997 * sel-sched-ir.c: Likewise.
25998 * sel-sched.c: Likewise.
25999 * shrink-wrap.c: Likewise.
26000 * simplify-rtx.c: Likewise.
26001 * symtab.c: Likewise.
26002 * target.def: Likewise.
26003 * toplev.c: Likewise.
26004 * tree-call-cdce.c: Likewise.
26005 * tree-cfg.c: Likewise.
26006 * tree-complex.c: Likewise.
26007 * tree-core.h: Likewise.
26008 * tree-eh.c: Likewise.
26009 * tree-inline.c: Likewise.
26010 * tree-loop-distribution.c: Likewise.
26011 * tree-nrv.c: Likewise.
26012 * tree-profile.c: Likewise.
26013 * tree-sra.c: Likewise.
26014 * tree-ssa-alias.c: Likewise.
26015 * tree-ssa-dce.c: Likewise.
26016 * tree-ssa-dom.c: Likewise.
26017 * tree-ssa-forwprop.c: Likewise.
26018 * tree-ssa-loop-im.c: Likewise.
26019 * tree-ssa-loop-ivcanon.c: Likewise.
26020 * tree-ssa-loop-ivopts.c: Likewise.
26021 * tree-ssa-loop-niter.c: Likewise.
26022 * tree-ssa-phionlycprop.c: Likewise.
26023 * tree-ssa-phiopt.c: Likewise.
26024 * tree-ssa-propagate.c: Likewise.
26025 * tree-ssa-threadedge.c: Likewise.
26026 * tree-ssa-threadupdate.c: Likewise.
26027 * tree-ssa-uninit.c: Likewise.
26028 * tree-ssanames.c: Likewise.
26029 * tree-streamer-out.c: Likewise.
26030 * tree.c: Likewise.
26031 * tree.h: Likewise.
26032 * vr-values.c: Likewise.
26033
26034 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
26035
26036 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
26037 (ix86_split_xorsign): Ditto.
26038 * config/i386/i386.c (ix86_expand_xorsign): New function.
26039 (ix86_split_xorsign): Ditto.
26040 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
26041 (xorsign<mode>3): New expander.
26042 (xorsign<mode>3_1): New insn_and_split pattern.
26043 * config/i386/sse.md (xorsign<mode>3): New expander.
26044
26045 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26046
26047 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
26048 (*tablejump_sp64): Likewise.
26049 (*tablejump<P:mode>): ...this.
26050 (*call_address_sp32): Merge into...
26051 (*call_address_sp64): Likewise.
26052 (*call_address<P:mode>): ...this.
26053 (*call_symbolic_sp32): Merge into...
26054 (*call_symbolic_sp64): Likewise.
26055 (*call_symbolic<P:mode>): ...this.
26056 (call_value): Remove constraint and add predicate.
26057 (*call_value_address_sp32): Merge into...
26058 (*call_value_address_sp64): Likewise.
26059 (*call_value_address<P:mode>): ...this.
26060 (*call_value_symbolic_sp32): Merge into...
26061 (*call_value_symbolic_sp64): Likewise.
26062 (*call_value_symbolic<P:mode>): ...this.
26063 (*sibcall_symbolic_sp32): Merge into...
26064 (*sibcall_symbolic_sp64): Likewise.
26065 (*sibcall_symbolic<P:mode>): ...this.
26066 (sibcall_value): Remove constraint and add predicate.
26067 (*sibcall_value_symbolic_sp32): Merge into...
26068 (*sibcall_value_symbolic_sp64): Likewise.
26069 (*sibcall_value_symbolic<P:mode>): ...this.
26070 (window_save): Minor tweak.
26071 (*branch_sp32): Merge into...
26072 (*branch_sp64): Likewise.
26073 (*branch<P:mode>): ...this.
26074
26075 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26076 James Clarke <jrtc27@jrtc27.com>
26077
26078 PR target/84010
26079 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
26080 consistently in TLS address generation and adjust code to the renaming
26081 of patterns. Mark calls to __tls_get_addr as const.
26082 * config/sparc/sparc.md (tgd_hi22): Turn into...
26083 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
26084 (tgd_lo10): Turn into...
26085 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
26086 (tgd_add32): Merge into...
26087 (tgd_add64): Likewise.
26088 (tgd_add<P:mode>): ...this and use Pmode throughout.
26089 (tldm_hi22): Turn into...
26090 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
26091 (tldm_lo10): Turn into...
26092 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
26093 (tldm_add32): Merge into...
26094 (tldm_add64): Likewise.
26095 (tldm_add<P:mode>): ...this and use Pmode throughout.
26096 (tldm_call32): Merge into...
26097 (tldm_call64): Likewise.
26098 (tldm_call<P:mode>): ...this and use Pmode throughout.
26099 (tldo_hix22): Turn into...
26100 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
26101 (tldo_lox10): Turn into...
26102 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
26103 (tldo_add32): Merge into...
26104 (tldo_add64): Likewise.
26105 (tldo_add<P:mode>): ...this and use Pmode throughout.
26106 (tie_hi22): Turn into...
26107 (tie_hi22<P:mode>): ...this and use Pmode throughout.
26108 (tie_lo10): Turn into...
26109 (tie_lo10<P:mode>): ...this and use Pmode throughout.
26110 (tie_ld64): Use DImode throughout.
26111 (tie_add32): Merge into...
26112 (tie_add64): Likewise.
26113 (tie_add<P:mode>): ...this and use Pmode throughout.
26114 (tle_hix22_sp32): Merge into...
26115 (tle_hix22_sp64): Likewise.
26116 (tle_hix22<P:mode>): ...this and use Pmode throughout.
26117 (tle_lox22_sp32): Merge into...
26118 (tle_lox22_sp64): Likewise.
26119 (tle_lox22<P:mode>): ...this and use Pmode throughout.
26120 (*tldo_ldub_sp32): Merge into...
26121 (*tldo_ldub_sp64): Likewise.
26122 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
26123 (*tldo_ldub1_sp32): Merge into...
26124 (*tldo_ldub1_sp64): Likewise.
26125 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
26126 (*tldo_ldub2_sp32): Merge into...
26127 (*tldo_ldub2_sp64): Likewise.
26128 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
26129 (*tldo_ldsb1_sp32): Merge into...
26130 (*tldo_ldsb1_sp64): Likewise.
26131 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
26132 (*tldo_ldsb2_sp32): Merge into...
26133 (*tldo_ldsb2_sp64): Likewise.
26134 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
26135 (*tldo_ldub3_sp64): Use DImode throughout.
26136 (*tldo_ldsb3_sp64): Likewise.
26137 (*tldo_lduh_sp32): Merge into...
26138 (*tldo_lduh_sp64): Likewise.
26139 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
26140 (*tldo_lduh1_sp32): Merge into...
26141 (*tldo_lduh1_sp64): Likewise.
26142 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
26143 (*tldo_ldsh1_sp32): Merge into...
26144 (*tldo_ldsh1_sp64): Likewise.
26145 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
26146 (*tldo_lduh2_sp64): Use DImode throughout.
26147 (*tldo_ldsh2_sp64): Likewise.
26148 (*tldo_lduw_sp32): Merge into...
26149 (*tldo_lduw_sp64): Likewise.
26150 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
26151 (*tldo_lduw1_sp64): Use DImode throughout.
26152 (*tldo_ldsw1_sp64): Likewise.
26153 (*tldo_ldx_sp64): Likewise.
26154 (*tldo_stb_sp32): Merge into...
26155 (*tldo_stb_sp64): Likewise.
26156 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
26157 (*tldo_sth_sp32): Merge into...
26158 (*tldo_sth_sp64): Likewise.
26159 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
26160 (*tldo_stw_sp32): Merge into...
26161 (*tldo_stw_sp64): Likewise.
26162 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
26163 (*tldo_stx_sp64): Use DImode throughout.
26164
26165 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26166
26167 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
26168 check configure option to set BTI and Return Address Signing.
26169 * configure.ac: Add --enable-standard-branch-protection and
26170 --disable-standard-branch-protection.
26171 * configure: Regenerated.
26172 * doc/install.texi: Document the same.
26173
26174 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26175 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26176
26177 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26178 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26179 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26180 if bti is enabled.
26181 * config/aarch64/aarch64-bti-insert.c: New file.
26182 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26183 pass.
26184 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26185 new bti pass.
26186 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26187 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26188 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26189 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26190
26191 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26192
26193 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26194 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26195 Disable bti for -mbranch-protection=none.
26196 (aarch64_handle_standard_branch_protection): Enable bti for
26197 -mbranch-protection=standard.
26198 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26199 -mbranch-protection.
26200 (aarch64_bti_enabled): Check if bti is enabled.
26201 * config/aarch64/aarch64.opt: Declare target variable.
26202 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26203
26204 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26205
26206 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26207 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26208 (aarch64_expand_epilogue): Likewise.
26209 (aarch64_output_mi_thunk): Likewise.
26210 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26211 TAILCALL_ADDR_REGS to x16 and x17.
26212 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26213
26214 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26215
26216 * config/aarch64/aarch64-option-extensions.def: Define
26217 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26218 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26219 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26220 (AARCH64_FL_PREDRES): New.
26221 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26222 AARCH64_FL_PREDRES by default.
26223 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26224
26225 2018-01-09 Sudakshina Das <sudi.das@arm.com>
26226
26227 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26228 ARMv8.5-A.
26229 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26230 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26231 * doc/invoke.texi: Document ARMv8.5-A.
26232
26233 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26234
26235 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26236 (xorsign<mode>3): Likewise.
26237
26238 2019-01-09 Jelinek <jakub@redhat.com>
26239
26240 PR middle-end/88758
26241 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26242 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26243
26244 PR rtl-optimization/88331
26245 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26246 not currently_expanding_to_rtl.
26247
26248 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
26249
26250 * doc/invoke.texi (-Os): Remove trailing spaces.
26251 (-finline-functions): Remove reference to -O2.
26252
26253 2019-01-08 Jakub Jelinek <jakub@redhat.com>
26254
26255 PR rtl-optimization/79593
26256 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26257
26258 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26259 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
26260
26261 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
26262
26263 PR bootstrap/88721
26264 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26265 to -1 on entry.
26266
26267 PR debug/88723
26268 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26269 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26270
26271 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
26272
26273 PR target/88717
26274 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26275 ix86_avx_u128_mode_entry.
26276
26277 2019-01-08 Martin Liska <mliska@suse.cz>
26278
26279 PR tree-optimization/88753
26280 * tree-switch-conversion.c (switch_conversion::build_one_array):
26281 Come up with local variable constructor. Convert first to
26282 type of constructor values.
26283
26284 2019-01-08 Richard Biener <rguenther@suse.de>
26285
26286 PR tree-optimization/86554
26287 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26288 rpo_avail): Move earlier.
26289 (visit_nary_op): When value-numbering to expressions
26290 with different overflow behavior make sure there's an
26291 available expression on the path.
26292
26293 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
26294
26295 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26296 aarch64_parse_branch_protection,
26297 struct aarch64_branch_protect_type,
26298 aarch64_handle_no_branch_protection,
26299 aarch64_handle_standard_branch_protection,
26300 aarch64_validate_mbranch_protection,
26301 aarch64_handle_pac_ret_protection,
26302 aarch64_handle_attr_branch_protection,
26303 accepted_branch_protection_string,
26304 aarch64_pac_ret_subtypes,
26305 aarch64_branch_protect_types,
26306 aarch64_handle_pac_ret_leaf): Define.
26307 (aarch64_override_options_after_change_1, aarch64_override_options):
26308 Add check for accepted_branch_protection_string.
26309 (aarch64_option_save): Save accepted_branch_protection_string.
26310 (aarch64_option_restore): Save accepted_branch_protection_string.
26311 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26312 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26313 msign-return-address.
26314 * doc/invoke.texi: Add mbranch-protection.
26315
26316 2019-01-08 Alan Modra <amodra@gmail.com>
26317
26318 PR target/88614
26319 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26320 Delete "unknownp" parameter. Adjust callers. Handle
26321 CONST_INT, PLUS, MINUS, and MULT.
26322 (attr_value_aligned): Renamed from or_attr_value.
26323 (min_attr_value): Return INT_MIN for unhandled rtl case..
26324 (min_fn): ..and translate to INT_MAX here.
26325 (write_length_unit_log): Modify to cope without "unknown".
26326 (write_attr_value): Handle IF_THEN_ELSE.
26327
26328 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26329
26330 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26331 optimization for masked stores.
26332
26333 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26334
26335 PR middle-end/88567
26336 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26337 output vector directly to duplicate_and_interleave instead of
26338 going through a temporary. Postpone insertion of ctor_seq to
26339 the end of the loop.
26340
26341 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
26342
26343 PR target/86891
26344 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26345 unsigned_p. Handle signed and unsigned overflow correction as
26346 required.
26347 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26348 prototype.
26349 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26350 for operand 2.
26351 (add<mode>3_compareV_imm): Make this callable for expanding.
26352 (subv<GPI:mode>4): Use register_operand for operand 1. Use
26353 aarch64_plus_operand for operand 2.
26354 (subv<GPI:mode>_insn): New insn pattern.
26355 (subv<GPI:mode>_imm): Likewise.
26356 (negv<GPI:mode>3): New expand pattern.
26357 (negv<GPI:mode>_insn): New insn pattern.
26358 (negv<GPI:mode>_cmp_only): Likewise.
26359 (cmpv<GPI:mode>_insn): Likewise.
26360 (subvti4): Use register_operand for operand 1. Update call to
26361 aarch64_expand_subvti.
26362 (usubvti4): Likewise.
26363 (negvti3): New expand pattern.
26364 (negdi_carryout): New insn pattern.
26365 (negvdi_carryinV): New insn pattern.
26366 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26367 version the named version.
26368 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26369 operands.
26370 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26371 patterns.
26372 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26373 patterns.
26374 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26375 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26376 (sub<mode>3_carryinCV): Delete.
26377 (sub<GPI:mode>3_carryinV): New expand pattern.
26378 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26379
26380 2019-01-07 Richard Biener <rguenther@suse.de>
26381
26382 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26383 of tree_operand_hash.
26384
26385 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26386
26387 PR tree-optimization/88598
26388 * tree.h (single_nonzero_element): Declare.
26389 * tree.c (single_nonzero_element): New function.
26390 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26391 if I is the only nonzero element of CST.
26392
26393 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
26394
26395 PR tree-optimization/88598
26396 * tree.h (initializer_each_zero_or_onep): Declare.
26397 * tree.c (initializer_each_zero_or_onep): New function.
26398 (signed_or_unsigned_type_for): Handle float types too.
26399 (unsigned_type_for, signed_type_for): Update comments accordingly.
26400 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26401 x & { 0 or -1, 0 or -1, ... }.
26402
26403 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
26404
26405 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26406 with x86_64-pc-linux-gnu.
26407
26408 2019-01-07 Tom de Vries <tdevries@suse.de>
26409
26410 PR target/85486
26411 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26412 function.
26413 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26414 routines.
26415
26416 2019-01-07 Jakub Jelinek <jakub@redhat.com>
26417
26418 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26419 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26420 TARGET_AVX512F as condition.
26421
26422 PR debug/88723
26423 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26424 const_not_ok_for_debug_p target hook.
26425 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26426 on UNSPEC and subexpressions thereof if all subexpressions of the
26427 UNSPEC are CONSTANT_P.
26428
26429 PR tree-optimization/88676
26430 * tree-ssa-phiopt.c (two_value_replacement): New function.
26431 (tree_ssa_phiopt_worker): Call it.
26432
26433 PR sanitizer/88619
26434 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26435 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26436
26437 PR c++/85052
26438 * tree-vect-generic.c: Include insn-config.h and recog.h.
26439 (expand_vector_piecewise): Add defaulted ret_type argument,
26440 if non-NULL, use that in preference to type for the result type.
26441 (expand_vector_parallel): Formatting fix.
26442 (do_vec_conversion, do_vec_narrowing_conversion,
26443 expand_vector_conversion): New functions.
26444 (expand_vector_operations_1): Call expand_vector_conversion
26445 for VEC_CONVERT ifn calls.
26446 * internal-fn.def (VEC_CONVERT): New internal function.
26447 * internal-fn.c (expand_VEC_CONVERT): New function.
26448 * fold-const-call.c (fold_const_vec_convert): New function.
26449 (fold_const_call): Use it for CFN_VEC_CONVERT.
26450 * doc/extend.texi (__builtin_convertvector): Document.
26451
26452 2019-01-07 Tom de Vries <tdevries@suse.de>
26453
26454 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26455 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26456 vector_red_partition, vector_red_sym): New global variables.
26457 (nvptx_option_override): Initialize vector_red_sym.
26458 (nvptx_declare_function_name): Restore red_partition register.
26459 (nvptx_file_end): Emit code to declare the vector reduction variables.
26460 (nvptx_output_red_partition): New function.
26461 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26462 large vector reductions.
26463 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26464 (nvptx_init_builtins): Add VECTOR_ADDR.
26465 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26466 Handle nvptx_expand_shared_addr.
26467 (nvptx_get_shared_red_addr): Add vector argument and handle large
26468 vectors.
26469 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26470 large vectors.
26471 (nvptx_goacc_reduction_init): Likewise.
26472 (nvptx_goacc_reduction_fini): Likewise.
26473 (nvptx_goacc_reduction_teardown): Likewise.
26474 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26475 init,fini,teardown}.
26476 (nvptx_init_axis_predicate): Initialize vector_red_partition.
26477 (nvptx_set_current_function): Init vector_red_partition.
26478 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26479 (nvptx_red_partition): New insn.
26480 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26481
26482 2019-01-07 Tom de Vries <tdevries@suse.de>
26483
26484 PR target/85381
26485 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26486 empty loops.
26487
26488 2019-01-07 Tom de Vries <tdevries@suse.de>
26489
26490 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26491 (nvptx_option_override): Init oacc_bcast_partition.
26492 (nvptx_init_oacc_workers): New function.
26493 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26494 (nvptx_needs_shared_bcast): New function.
26495 (nvptx_find_par): Generalize to enable vectors to use shared-memory
26496 to propagate state.
26497 (nvptx_shared_propagate): Initialize vector bcast partition and
26498 synchronization state.
26499 (nvptx_single): Generalize to enable vectors to use shared-memory
26500 to propagate state.
26501 (nvptx_process_pars): Likewise.
26502 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26503 * config/nvptx/nvptx.h (struct machine_function): Add
26504 bcast_partition and sync_bar members.
26505
26506 2019-01-07 Tom de Vries <tdevries@suse.de>
26507
26508 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26509 (nvptx_apply_dim_limits): New function.
26510 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26511 PTX_WARP_SIZE.
26512
26513 2019-01-07 Tom de Vries <tdevries@suse.de>
26514
26515 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26516 as late as possible.
26517
26518 2019-01-07 Tom de Vries <tdevries@suse.de>
26519
26520 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26521 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26522 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26523 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26524 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26525
26526 2019-01-07 Tom de Vries <tdevries@suse.de>
26527
26528 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26529
26530 2019-01-07 Tom de Vries <tdevries@suse.de>
26531
26532 * omp-offload.c (oacc_get_min_dim): New function.
26533 * omp-offload.h (oacc_get_min_dim): Declare.
26534
26535 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
26536
26537 PR target/88521
26538 * config/i386/i386.c (function_value_ms_64): Return small sturct in
26539 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26540
26541 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26542
26543 PR tree-opt/86020
26544 Revert:
26545 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
26546
26547 * ipa-inline.c (edge_badness): Use inlined_time instead of
26548 inline_summaries->get.
26549
26550 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26551
26552 * opts.c (enable_fdo_optimizations): Enable
26553 version-loops-for-strides, loop-interchange, unrol-and-jam
26554 and tree-loop-distribution.
26555 * invoke.texi: Document newly enabled options.
26556
26557 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26558
26559 * doc/invoke.texi (max-inline-insns-small): New parameters.
26560 * ipa-inline.c (want_early_inline_function_p): simplify.
26561 (want_inline_small_function_p): Fix pasto from previous patch;
26562 use max-inline-insns-small bound.
26563 * params.def (max-inline-insns-small): New param.
26564 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26565 variables correctly.
26566
26567 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26568
26569 * doc/invoke.texi: Document max-inline-insns-size,
26570 uninlined-function-insns, uninlined-function-time,
26571 uninlined-thunk-insns and uninlined-thunk-time.
26572 * params.def: Add max-inline-insns-size,
26573 uninlined-function-insns, uninlined-function-time,
26574 uninlined-thunk-insns and uninlined-thunk-time.
26575 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26576 new parameters.
26577 * ipa-inline.c (can_inline_edge_by_limits_p,
26578 want_inline_small_function_p): Use new parameters.
26579
26580 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
26581
26582 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26583
26584 2019-01-05 Jakub Jelinek <jakub@redhat.com>
26585
26586 PR middle-end/82564
26587 PR target/88620
26588 * expr.c (expand_assignment): For calls returning VLA structures
26589 if to_rtx is not a MEM, force it into a stack temporary.
26590
26591 PR debug/88635
26592 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26593 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26594 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26595 subexpressions of both operands.
26596 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26597 subrtxes are CONSTANT_P.
26598 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26599 2018-11-09 changes.
26600
26601 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
26602
26603 * params.def (hot-bb-count-ws-permille): Set to 990.
26604
26605 2019-01-04 Martin Sebor <msebor@redhat.com>
26606
26607 PR c/88546
26608 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26609 leaf.
26610
26611 2019-01-04 Martin Sebor <msebor@redhat.com>
26612
26613 PR c/88363
26614 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26615
26616 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26617
26618 * gdbinit.in: Turn off pagination for the skip commands, restore
26619 it to previous state afterwards.
26620
26621 2019-01-04 Jakub Jelinek <jakub@redhat.com>
26622
26623 PR target/88594
26624 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26625 of GET_MODE (opN) as modes of the libcall arguments.
26626
26627 2019-01-04 Jan Beulich <jbeulich@suse.com>
26628
26629 * config/i386/sse.md
26630 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26631 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26632 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26633 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26634 avx512f_vmcmp<mode>3<round_saeonly_name>,
26635 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26636 avx512f_maskcmp<mode>3,
26637 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26638 <avx512>_cvt<ssemodesuffix>2mask<mode>,
26639 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26640 *<avx512>_cvtmask2<ssemodesuffix><mode>,
26641 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26642 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26643 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26644 <avx512>_gt<mode>3<mask_scalar_merge_name>,
26645 <avx512>_testm<mode>3<mask_scalar_merge_name>,
26646 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26647 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26648 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26649 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26650 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26651 avx512cd_maskb_vec_dup<mode>,
26652 avx512cd_maskw_vec_dup<mode>,
26653 avx512dq_fpclass<mode><mask_scalar_merge_name>,
26654 avx512dq_vmfpclass<mode>,
26655 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26656 instead of =Yk.
26657
26658 2019-01-03 Martin Sebor <msebor@redhat.com>
26659
26660 PR tree-optimization/88659
26661 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26662
26663 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
26664
26665 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26666 unaligned vsx and avoid lxvd2x/stxvd2x.
26667 (gen_lvx_v4si_move): New function.
26668
26669 2019-01-03 Tom de Vries <tdevries@suse.de>
26670
26671 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26672 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26673 function.
26674 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26675
26676 2019-01-03 Tom de Vries <tdevries@suse.de>
26677
26678 * config/nvptx/nvptx.c (struct offload_attrs): New.
26679 (populate_offload_attrs): New function. Factor mask extraction out of
26680 nvptx_reorg. Add extraction of dimensions.
26681 (nvptx_reorg): Use populate_offload_attrs.
26682
26683 2019-01-03 Tom de Vries <tdevries@suse.de>
26684
26685 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26686 cases for oacc_min_dims_p and routine_p. Add asserts for
26687 oacc_default_dims_p and offload_region_p.
26688
26689 2019-01-03 Tom de Vries <tdevries@suse.de>
26690
26691 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26692 factored out of ...
26693 (nvptx_goacc_validate_dims): ... here.
26694
26695 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26696
26697 PR tree-optimization/85574
26698 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26699 structure.
26700 (struct ssa_equip_hash_traits): Declare.
26701 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26702
26703 2019-01-03 Jakub Jelinek <jakub@redhat.com>
26704
26705 PR debug/88644
26706 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26707 change it to qualified_type.
26708
26709 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
26710
26711 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26712 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26713
26714 2019-01-02 Martin Sebor <msebor@redhat.com>
26715 Jeff Law <law@redhat.com>
26716
26717 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26718 (get_range_strlen_tree): Update appropriately.
26719 (get_range_strlen)
26720 * gimple-fold.h (get_range_strlen): Drop unused last argument.
26721
26722 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26723 rather than set_range_info.
26724 * tree-ssa-strlen.c (set_strlen_range): Extracted from
26725 maybe_set_strlen_range. Handle potentially boundary crossing
26726 cases more conservatively.
26727 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26728 Call set_strlen_range.
26729 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26730
26731 PR middle-end/88663
26732 * gimple-fold.c (get_range_strlen): Update prototype to no longer
26733 need the flexp argument.
26734 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
26735 from calls to get_range_strlen. Update comments. Just update
26736 VAL for an unterminated const char array and let the reset of the
26737 code handle it normally. No longer try to set *flexp. Adjust
26738 return value.
26739 (get_range_strlen): Update for the new get_range_strlen API.
26740 (get_maxval_strlen): Similarly.
26741 (gimple_fold_builtin_strlen): Handle update meaning of return value
26742 from get_range_strlen.
26743 * gimple-ssa-sprintf.c (get_string_length): Update for the new
26744 get_range_strlen API.
26745
26746 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
26747
26748 PR lto/88130
26749 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26750 false at WPA time when body was removed.
26751
26752 2019-01-02 Martin Liska <mliska@suse.cz>
26753
26754 PR tree-optimization/88650
26755 * predict.c (set_even_probabilities): Calculate probability
26756 remainer only when really used.
26757
26758 2019-01-02 Richard Biener <rguenther@suse.de>
26759
26760 PR middle-end/88651
26761 * tree-data-ref.c (analyze_subscript_affine_affine): Use
26762 widest_ints when mangling max_stmt_execution results.
26763
26764 2019-01-02 Richard Biener <rguenther@suse.de>
26765
26766 PR tree-optimization/88621
26767 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26768 bitfields when canoncalizing.
26769
26770 2019-01-02 Richard Biener <rguenther@suse.de>
26771
26772 PR target/87545
26773 * config/i386/x86-tune-costs.h (intel_cost): Adjust
26774 cost of cheap SSE instruction.
26775
26776 2019-01-02 Richard Biener <rguenther@suse.de>
26777
26778 PR ipa/85574
26779 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26780 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26781 function.
26782 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26783 set after UIDs before splitting them.
26784
26785 2019-01-01 Martin Sebor <msebor@redhat.com>
26786 Jeff Law <law@redhat.com>
26787
26788 * gimple-fold.c (get_range_strlen_tree): Record if the computed
26789 length is optimistic. If it is, then arrange to compute the
26790 conservative length as well.
26791
26792 * gimple-fold.h (get_range_strlen): Update prototype.
26793 * builtins.c (check_access): Update call to get_range_strlen to use
26794 c_strlen_data pointer. Change various variable accesses to instead
26795 pull data from the c_strlen_data structure.
26796 (check_strncat_sizes, expand_builtin_strncat): Likewise.
26797 * calls.c (maybe_warn_nonstring_arg): Likewise.
26798 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
26799 minimum length if maximum lengh is unknown.
26800 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
26801 that used c_strlen, it's no longer needed. Restructure slightly.
26802 (format_string): Set unlikely range appropriately.
26803 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
26804 formatting issues.
26805 (get_range_strlen): Accept c_strlen_data pointer for external
26806 call sites as well. Pass through to call to internal get_range_strlen.
26807 Adjust minlen, maxlen and maxbound as needed.
26808 (get_maxval_strlen): Update comments.
26809 (gimple_fold_builtin_strlen): Update call to get_range_strlen
26810 to use c_strlen_data pointer. Change variable accesses to instead
26811 use c_strlen_data data members.
26812
26813 * gimple-fold.c (get_range_strlen): Update prototype.
26814 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
26815 local variables. Use pdata to return information to caller.
26816 Update calls to get_range_strlen. Update pdata->maxbound.
26817 (get_range_strlen -- static version): Similarly.
26818 (get_range_strlen -- extern version): Update for internal
26819 get_range_strlen API change. Convert to external data format.
26820 (get_maxval_strlen): Similarly.
26821
26822 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
26823
26824 * coverage.c (get_coverage_counts): Use current_function_decl.
26825 * profile.c (read_thunk_profile): New function.
26826 (branch_prob): Add THUNK parameter.
26827 * tree-profile.c (tree_profiling): Handle thunks.
26828 * value-prof.c (init_node_map): Handle thunks.
26829 * value-prof.h (branch_prob): Upate prototype.
26830 (read_thunk_profile): Declare.
26831
26832 2019-01-01 Jakub Jelinek <jakub@redhat.com>
26833
26834 Update copyright years.
26835
26836 * gcc.c (process_command): Update copyright notice dates.
26837 * gcov-dump.c (print_version): Ditto.
26838 * gcov.c (print_version): Ditto.
26839 * gcov-tool.c (print_version): Ditto.
26840 * gengtype.c (create_file): Ditto.
26841 * doc/cpp.texi: Bump @copying's copyright year.
26842 * doc/cppinternals.texi: Ditto.
26843 * doc/gcc.texi: Ditto.
26844 * doc/gccint.texi: Ditto.
26845 * doc/gcov.texi: Ditto.
26846 * doc/install.texi: Ditto.
26847 * doc/invoke.texi: Ditto.
26848 \f
26849 Copyright (C) 2019 Free Software Foundation, Inc.
26850
26851 Copying and distribution of this file, with or without modification,
26852 are permitted in any medium without royalty provided the copyright
26853 notice and this notice are preserved.